@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
  "use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("@emotion/react"),r=require("react-dom");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(t),a=o(r),l=function(){return l=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},l.apply(this,arguments)};function s(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 u(){return u=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},u.apply(null,arguments)}function c(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 d=/^((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)-.*))$/,f=c((function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p="undefined"!=typeof document;var h=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===p&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var g={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},m=!1,v=/[A-Z]|^ms/g,y=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!=typeof e},x=c((function(e){return b(e)?e:e.replace(v,"-$&").toLowerCase()})),C=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(y,(function(e,t,n){return E={name:t,styles:n,next:E},t}))}return 1===g[e]||b(e)||"number"!=typeof t||0===t?t:t+"px"},S="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function k(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 E={name:o.name,styles:o.styles,next:E},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)E={name:a.name,styles:a.styles,next:E},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+=k(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]+"}":w(l)&&(r+=x(i)+":"+C(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&m)throw new Error(S);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=k(e,t,a);switch(i){case"animation":case"animationName":r+=x(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)w(a[u])&&(r+=x(i)+":"+C(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=E,s=n(e);return E=l,k(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var E,O=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var D="undefined"!=typeof document,j=function(e){return e()},P=!!i.useInsertionEffect&&i.useInsertionEffect,T=D&&P||j,M=f,A=function(e){return"theme"!==e},_=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?M:A},R=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},L="undefined"!=typeof document,I=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;h(t,n,r);var o=T((function(){return function(e,t,n){h(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);p||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!p&&0!==o.length)return o}}(t,n,r)}));if(!L&&void 0!==o){for(var a,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return i.createElement("style",((a={})["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},N=function e(t,r){var o,a,l=t.__emotion_real===t,s=l&&t.__emotion_base||t;void 0!==r&&(o=r.label,a=r.target);var c=R(t,r,l),d=c||_(s),f=!d("as");return function(){var p=arguments,h=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&h.push("label:"+o+";"),null==p[0]||void 0===p[0].raw)h.push.apply(h,p);else{h.push(p[0][0]);for(var g=p.length,m=1;m<g;m++)h.push(p[m],p[0][m])}var v=n.withEmotionCache((function(e,t,r){var o,l,u,p,g=f&&e.as||s,m="",v=[],y=e;if(null==e.theme){for(var b in y={},e)y[b]=e[b];y.theme=i.useContext(n.ThemeContext)}"string"==typeof e.className?(o=t.registered,l=v,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==o[e]?l.push(o[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var w=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="";E=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=k(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=k(n,t,e[a]),r&&(o+=i[a]);O.lastIndex=0;for(var l,s="";null!==(l=O.exec(o));)s+="-"+l[1];var u=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:u,styles:o,next:E}}(h.concat(v),t.registered,y);m+=t.key+"-"+w.name,void 0!==a&&(m+=" "+a);var x=f&&void 0===c?_(g):d,C={};for(var S in e)f&&"as"===S||x(S)&&(C[S]=e[S]);return C.className=m,r&&(C.ref=r),i.createElement(i.Fragment,null,i.createElement(I,{cache:t,serialized:w,isStringTag:"string"==typeof g}),i.createElement(g,C))}));return v.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=h,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(t,n){return e(t,u({},r,n,{shouldForwardProp:R(v,n,!0)})).apply(void 0,h)},v}}.bind();function $(t,n=[]){let r=[];const o=()=>{const e=r.map((e=>i.createContext(e)));return function(n){const r=n?.[t]||e;return i.useMemo((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(n,o){const a=i.createContext(o),l=r.length;function s(n){const{scope:r,children:o,...s}=n,u=r?.[t][l]||a,c=i.useMemo((()=>s),Object.values(s));return e.jsx(u.Provider,{value:c,children:o})}return r=[...r,o],s.displayName=n+"Provider",[s,function(e,r){const s=r?.[t][l]||a,u=i.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},z(o,...n)]}function z(...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 i.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function F(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function B(...e){return i.useCallback(F(...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){N[e]=N(e)}));var K=i.forwardRef(((t,n)=>{const{children:r,...o}=t,a=i.Children.toArray(r),l=a.find(U);if(l){const t=l.props.children,r=a.map((e=>e===l?i.Children.count(t)>1?i.Children.only(null):i.isValidElement(t)?t.props.children:null:e));return e.jsx(V,{...o,ref:n,children:i.isValidElement(t)?i.cloneElement(t,void 0,r):null})}return e.jsx(V,{...o,ref:n,children:r})}));K.displayName="Slot";var V=i.forwardRef(((e,t)=>{const{children:n,...r}=e;if(i.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 i.cloneElement(n,{...W(r,n.props),ref:t?F(t,e):e})}return i.Children.count(n)>1?i.Children.only(null):null}));V.displayName="SlotClone";var H=({children:t})=>e.jsx(e.Fragment,{children:t});function U(e){return i.isValidElement(e)&&e.type===H}function W(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 Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function q(e){const t=i.useRef(e);return i.useEffect((()=>{t.current=e})),i.useMemo((()=>(...e)=>t.current?.(...e)),[])}function G({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=q(t);return i.useEffect((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:r,s=q(n);return[l,i.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[a,e,o,s])]}var Y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=i.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?K:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(a,{...i,ref:r})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{}),X=Boolean(globalThis?.document)?i.useLayoutEffect:()=>{};var J=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),l=i.useRef("none"),s=e?"mounted":"unmounted",[u,c]=function(e,t){return i.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect((()=>{const e=Q(r.current);l.current="mounted"===u?e:"none"}),[u]),X((()=>{const t=r.current,n=o.current;if(n!==e){const r=l.current,i=Q(t);if(e)c("MOUNT");else if("none"===i||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),X((()=>{if(t){const e=e=>{const n=Q(r.current).includes(e.animationName);e.target===t&&n&&a.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(l.current=Q(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)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),l=B(r.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}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:l}):null};function Q(e){return e?.animationName||"none"}J.displayName="Presence";var ee=i["useId".toString()]||(()=>{}),te=0;function ne(e){const[t,n]=i.useState(ee());return X((()=>{n((e=>e??String(te++)))}),[e]),t?`radix-${t}`:""}var re="Collapsible",[oe,ie]=$(re),[ae,le]=oe(re),se=i.forwardRef(((t,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:l,onOpenChange:s,...u}=t,[c=!1,d]=G({prop:o,defaultProp:a,onChange:s});return e.jsx(ae,{scope:r,disabled:l,contentId:ne(),open:c,onOpenToggle:i.useCallback((()=>d((e=>!e))),[d]),children:e.jsx(Y.div,{"data-state":he(c),"data-disabled":l?"":void 0,...u,ref:n})})}));se.displayName=re;var ue="CollapsibleTrigger",ce=i.forwardRef(((t,n)=>{const{__scopeCollapsible:r,...o}=t,i=le(ue,r);return e.jsx(Y.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":he(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:Z(t.onClick,i.onOpenToggle)})}));ce.displayName=ue;var de="CollapsibleContent",fe=i.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=le(de,t.__scopeCollapsible);return e.jsx(J,{present:r||i.open,children:({present:t})=>e.jsx(pe,{...o,ref:n,present:t})})}));fe.displayName=de;var pe=i.forwardRef(((t,n)=>{const{__scopeCollapsible:r,present:o,children:a,...l}=t,s=le(de,r),[u,c]=i.useState(o),d=i.useRef(null),f=B(n,d),p=i.useRef(0),h=p.current,g=i.useRef(0),m=g.current,v=s.open||u,y=i.useRef(v),b=i.useRef();return i.useEffect((()=>{const e=requestAnimationFrame((()=>y.current=!1));return()=>cancelAnimationFrame(e)}),[]),X((()=>{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),c(o)}}),[s.open,o]),e.jsx(Y.div,{"data-state":he(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 he(e){return e?"open":"closed"}var ge=se,me=ce,ve=fe,ye=i.createContext(void 0);var be="Accordion",we=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[xe,Ce,Se]=function(n){const r=n+"CollectionProvider",[o,i]=$(r),[a,l]=o(r,{collectionRef:{current:null},itemMap:new Map}),s=n=>{const{scope:r,children:o}=n,i=t.useRef(null),l=t.useRef(new Map).current;return e.jsx(a,{scope:r,itemMap:l,collectionRef:i,children:o})};s.displayName=r;const u=n+"CollectionSlot",c=t.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=B(n,l(u,r).collectionRef);return e.jsx(K,{ref:i,children:o})}));c.displayName=u;const d=n+"CollectionItemSlot",f="data-radix-collection-item",p=t.forwardRef(((n,r)=>{const{scope:o,children:i,...a}=n,s=t.useRef(null),u=B(r,s),c=l(d,o);return t.useEffect((()=>(c.itemMap.set(s,{ref:s,...a}),()=>{c.itemMap.delete(s)}))),e.jsx(K,{[f]:"",ref:u,children:i})}));return p.displayName=d,[{Provider:s,Slot:c,ItemSlot:p},function(e){const r=l(n+"CollectionConsumer",e),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},i]}(be),[ke,Ee]=$(be,[Se,ie]),Oe=ie(),De=t.forwardRef(((t,n)=>{const{type:r,...o}=t,i=o,a=o;return e.jsx(xe.Provider,{scope:t.__scopeAccordion,children:"multiple"===r?e.jsx(_e,{...a,ref:n}):e.jsx(Ae,{...i,ref:n})})}));De.displayName=be;var[je,Pe]=ke(be),[Te,Me]=ke(be,{collapsible:!1}),Ae=t.forwardRef(((n,r)=>{const{value:o,defaultValue:i,onValueChange:a=(()=>{}),collapsible:l=!1,...s}=n,[u,c]=G({prop:o,defaultProp:i,onChange:a});return e.jsx(je,{scope:n.__scopeAccordion,value:u?[u]:[],onItemOpen:c,onItemClose:t.useCallback((()=>l&&c("")),[l,c]),children:e.jsx(Te,{scope:n.__scopeAccordion,collapsible:l,children:e.jsx(Ie,{...s,ref:r})})})})),_e=t.forwardRef(((n,r)=>{const{value:o,defaultValue:i,onValueChange:a=(()=>{}),...l}=n,[s=[],u]=G({prop:o,defaultProp:i,onChange:a}),c=t.useCallback((e=>u(((t=[])=>[...t,e]))),[u]),d=t.useCallback((e=>u(((t=[])=>t.filter((t=>t!==e))))),[u]);return e.jsx(je,{scope:n.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:e.jsx(Te,{scope:n.__scopeAccordion,collapsible:!0,children:e.jsx(Ie,{...l,ref:r})})})})),[Re,Le]=ke(be),Ie=t.forwardRef(((n,r)=>{const{__scopeAccordion:o,disabled:a,dir:l,orientation:s="vertical",...u}=n,c=B(t.useRef(null),r),d=Ce(o),f=function(e){const t=i.useContext(ye);return e||t||"ltr"}(l),p="ltr"===f,h=Z(n.onKeyDown,(e=>{if(!we.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)},u=()=>{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():u());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(p?u():l());break;case"ArrowUp":"vertical"===s&&u()}const c=i%o;n[c].ref.current?.focus()}));return e.jsx(Re,{scope:o,disabled:a,direction:l,orientation:s,children:e.jsx(xe.Slot,{scope:o,children:e.jsx(Y.div,{...u,"data-orientation":s,ref:c,onKeyDown:a?void 0:h})})})})),Ne="AccordionItem",[$e,ze]=ke(Ne),Fe=t.forwardRef(((t,n)=>{const{__scopeAccordion:r,value:o,...i}=t,a=Le(Ne,r),l=Pe(Ne,r),s=Oe(r),u=ne(),c=o&&l.value.includes(o)||!1,d=a.disabled||t.disabled;return e.jsx($e,{scope:r,open:c,disabled:d,triggerId:u,children:e.jsx(ge,{"data-orientation":a.orientation,"data-state":Ze(c),...s,...i,ref:n,disabled:d,open:c,onOpenChange:e=>{e?l.onItemOpen(o):l.onItemClose(o)}})})}));Fe.displayName=Ne;var Be="AccordionHeader",Ke=t.forwardRef(((t,n)=>{const{__scopeAccordion:r,...o}=t,i=Le(be,r),a=ze(Be,r);return e.jsx(Y.h3,{"data-orientation":i.orientation,"data-state":Ze(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:n})}));Ke.displayName=Be;var Ve="AccordionTrigger",He=t.forwardRef(((t,n)=>{const{__scopeAccordion:r,...o}=t,i=Le(be,r),a=ze(Ve,r),l=Me(Ve,r),s=Oe(r);return e.jsx(xe.ItemSlot,{scope:r,children:e.jsx(me,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...o,ref:n})})}));He.displayName=Ve;var Ue="AccordionContent",We=t.forwardRef(((t,n)=>{const{__scopeAccordion:r,...o}=t,i=Le(be,r),a=ze(Ue,r),l=Oe(r);return e.jsx(ve,{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 Ze(e){return e?"open":"closed"}We.displayName=Ue;var qe=De,Ge=Fe,Ye=Ke,Xe=He,Je=We;const Qe=(e,n,r,o,i=[])=>{t.useEffect((()=>{if(!e)return()=>null;let t;t="current"in e?e.current:e;const i=()=>t.removeEventListener(n,r,!1);return!1!==o?t.addEventListener(n,r,!1):i(),i}),[e,n,o,...i])},et=(e,n,r)=>{const o=t.useRef(null),i=t=>{if((null==o?void 0:o.current)&&null!==t){if(!o.current.contains(t.target)){const n=(null==r?void 0:r.length)?r.join(", "):"",o=t.target,i=!(!o||!n)&&o.matches(n);n&&i||e()}}};return Qe(document,"mousedown",i,n),Qe(document,"touchstart",i,n),o};function tt(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 u=null;const c=()=>{null!=u&&clearTimeout(u),u=setTimeout((()=>{u=null,l&&s(),f()}),t)},d=()=>{null!==u&&(clearTimeout(u),u=null)},f=()=>{d(),o=void 0,i=null},p=function(...e){if(n?.aborted)return;o=this,i=e;const t=null==u;c(),a&&t&&s()};return p.schedule=c,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}function nt(){}function rt(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 ot(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 it(e){return Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))}function at(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const lt="[object RegExp]",st="[object String]",ut="[object Number]",ct="[object Boolean]",dt="[object Arguments]",ft="[object Symbol]",pt="[object Date]",ht="[object Map]",gt="[object Set]",mt="[object Array]",vt="[object Function]",yt="[object ArrayBuffer]",bt="[object Object]",wt="[object Error]",xt="[object DataView]",Ct="[object Uint8Array]",St="[object Uint8ClampedArray]",kt="[object Uint16Array]",Et="[object Uint32Array]",Ot="[object BigUint64Array]",Dt="[object Int8Array]",jt="[object Int16Array]",Pt="[object Int32Array]",Tt="[object BigInt64Array]",Mt="[object Float32Array]",At="[object Float64Array]";function _t(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 Rt(e,t,i,a)}return Rt(e,t,i,a)}function Rt(e,t,n,r){if(Object.is(e,t))return!0;let o=at(e),i=at(t);if(o===dt&&(o=bt),i===dt&&(i=bt),o!==i)return!1;switch(o){case st:return e.toString()===t.toString();case ut:{const n=e.valueOf(),r=t.valueOf();return(a=n)===(l=r)||Number.isNaN(a)&&Number.isNaN(l)}case ct:case pt:case ft:return Object.is(e.valueOf(),t.valueOf());case lt:return e.source===t.source&&e.flags===t.flags;case vt:return e===t}var a,l;const s=(n=n??new Map).get(e),u=n.get(t);if(null!=s&&null!=u)return s===t;n.set(e,t),n.set(t,e);try{switch(o){case ht:if(e.size!==t.size)return!1;for(const[o,i]of e.entries())if(!t.has(o)||!_t(i,t.get(o),o,e,t,n,r))return!1;return!0;case gt:{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=>_t(l,o,void 0,e,t,n,r)));if(-1===s)return!1;i.splice(s,1)}return!0}case mt:case Ct:case St:case kt:case Et:case Ot:case Dt:case jt:case Pt:case Tt:case Mt:case At: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(!_t(e[o],t[o],o,e,t,n,r))return!1;return!0;case yt:return e.byteLength===t.byteLength&&Rt(new Uint8Array(e),new Uint8Array(t),n,r);case xt:return e.byteLength===t.byteLength&&e.byteOffset===t.byteOffset&&Rt(new Uint8Array(e),new Uint8Array(t),n,r);case wt:return e.name===t.name&&e.message===t.message;case bt:{if(!(Rt(e.constructor,t.constructor,n,r)||ot(e)&&ot(t)))return!1;const o=[...Object.keys(e),...it(e)],i=[...Object.keys(t),...it(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(!_t(l,t[a],a,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function Lt(e,t){return function(e,t,n){return _t(e,t,void 0,void 0,void 0,void 0,n)}(e,t,nt)}const It=({options:e,select:n,close:r,open:o,searchText:i,isOpen:a,isFocused:l})=>{const[s,u]=t.useState(-1),[c,d]=t.useState(""),f=t.useRef(null),p="string"==typeof i,h=()=>{u(-1),d("")},g=()=>{h(),r()};t.useEffect((()=>{!1===a&&h()}),[a]),t.useEffect((()=>{const{current:e}=f;if(e){const{childNodes:t}=e,n=null==t?void 0:t[s];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)}}}),[s]);const m=tt((()=>d("")),1e3);t.useEffect((()=>{if(c||p){const t=p?i:c,r=e.findIndex((e=>{const n=t.toLowerCase(),r=e.label.toLowerCase().startsWith(n);return""!==i&&r}));a?u(r):a||p||n(e[r]),p||m()}}),[c,i]);return Qe(document,"keydown",(t=>{const{key:f,altKey:h,ctrlKey:m,metaKey:v}=t;if(!(h||m||v)&&f)switch(f){case"ArrowDown":if(t.preventDefault(),!a){o();break}u((t=>{const n=t+1;return n>=e.length?0:n}));break;case"ArrowUp":if(t.preventDefault(),!a){o();break}u((t=>{const n=t-1,r=n<0,o=e.length-1;return r?o:n}));break;case"Tab":case"Enter":if(a){p&&(p&&"Tab"===f)||t.preventDefault();const o=e[s];o?o.onClick?(o.onClick(),r()):n(o,t):p?n(i,t):g()}break;case" ":l&&(p||t.preventDefault(),a?g():o());break;case"Escape":a&&(t.preventDefault(),g());break;default:1===f.length&&f.match(/[a-z0-9]/i)&&!p&&(t.preventDefault(),d(c+f));break}}),a||l,[s,c,a,i]),[s,f]};var Nt=t["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function $t(){}function zt(e,n,r){void 0===r&&(r={});var o=Bt(r.polyfill),i=(e=>{var n=t.useRef(e);return t.useEffect((()=>{n.current=e})),n})(n);return Nt((()=>{function t(e,t){n||i.current(e,t)}var n=0,r=e&&"current"in e?e.current:e;return r?(o.subscribe(r,t),()=>{n=1,o.unsubscribe(r,t)}):$t}),[e,o,i]),o.observer}var Ft,Bt=e=>Ft||(Ft=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 Kt=(e,t)=>{zt(e,(e=>t(e.target)))},Vt=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},Ht=({width:e,height:t})=>({width:e,height:t}),Ut=({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}),Wt=({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}),Zt=({position:e,top:t,bottom:n,right:r,left:o})=>({position:e,top:t,bottom:n,right:r,left:o});const qt={"activity-history":function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("path",{d:"M20 10V7H18V10H15V12H18V15H20V12H23V10H20Z",fill:"currentColor"})]}))},"arrow-down":function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("g",{id:"auto mode",children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("path",{d:"M20 8L18 4H21.99L22 10H20H5.76L4 6.47V4H5L7 8H10L8 4L10 4L12 8H15L13 4H15L17 8H20Z",fill:"currentColor"})]}))},"clapperboard-open":function(t){return e.jsxs("svg",Object.assign({viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("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.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M5 12.5V11H19V12.5H5Z",fill:"currentColor"})})),devices:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M20 9H4V11H20V9ZM4 15H20V13H4V15Z",fill:"currentColor"})})),edit:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("g",{id:"exclamation",children:e.jsx("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 e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t,{children:[e.jsx("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),e.jsx("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 e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t,{children:[e.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M14.4 6L14 4H5V21H7V14H12.6L13 16H20V6H14.4Z",fill:"currentColor"})})),flask:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z",fill:"currentColor"})})),hourglass:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("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.jsx("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.jsx("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.jsx("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.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:"currentColor"})}))},merge:t=>e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("g",{clipPath:"url(#clip0)",children:e.jsx("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.jsx("defs",{children:e.jsx("clipPath",{id:"clip0",children:e.jsx("rect",{width:24,height:24,fill:"currentColor"})})})]}))},"mic-off":function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M21 11.01L3 11V13H21V11.01ZM3 16H15V18H3V16ZM21 6H3V8.01L21 8V6Z",fill:"currentColor"})})),open:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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=>e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("g",{clipPath:"url(#clip0_5137_89685)",children:e.jsx("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.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_5137_89685",children:e.jsx("rect",{width:24,height:24,fill:"currentColor"})})})]})),"phone-blocked":function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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 e.jsxs("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e.jsx("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.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("circle",{cx:12,cy:12,r:6,transform:"rotate(-90 12 12)",fill:"currentColor"})}))},refresh:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("g",{id:"spam protection shield",children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("path",{d:"M5 9.2H8V19H5V9.2ZM10.6 5H13.4V19H10.6V5ZM16.2 13H19V19H16.2V13Z",fill:"currentColor"})})),stop:function(t){return e.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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.jsx("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e.jsx("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"})}))}},Gt=t.forwardRef(((n,r)=>{var{name:o,svg:i,size:a,width:l,height:u,color:c,hoverColor:d,pointer:f=!1,inheritColor:p=!1,animation:h,style:g,onClick:m}=n,v=s(n,["name","svg","size","width","height","color","hoverColor","pointer","inheritColor","animation","style","onClick"]);let y=null;if(o)y=qt[o];else if(i){let e=i;"function"==typeof i&&(e=i());const n=t.cloneElement(e,{width:l||a,height:u||a});y=()=>n}const b={small:16,medium:24,large:40};let w=a||b.medium;return"small"!==a&&"medium"!==a&&"large"!==a||(w=b[a]),y?e.jsx(Xt,Object.assign({pointer:f,hoverColor:d,inheritColor:p,color:c,style:g,onClick:m,as:m?"button":void 0,tabIndex:m?0:-1,animation:h,ref:r},v,{children:e.jsx(Yt,{size:w,width:l,height:u,xmlns:"http://www.w3.org/2000/svg",children:e.jsx(y,{})})})):null})),Yt=N.svg((({size:e,width:t,height:n})=>({width:t||e,height:n||e}))),Xt=N.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}}}),Wt),Jt=n=>{var{children:r,defaultItem:o,preventCollapse:i,triggers:a,spaced:l,background:u,innerBackground:c,width:d,maxHeight:f,height:p}=n,h=s(n,["children","defaultItem","preventCollapse","triggers","spaced","background","innerBackground","width","maxHeight","height"]);return e.jsx(nn,Object.assign({type:"single",defaultValue:o,collapsible:!i,spaced:l,style:{width:d,height:p,maxHeight:f}},h,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{trigger:a,spaced:l,background:u,innerBackground:c}):null))}))};Jt.Item=({children:t,id:n,text:r,content:o,trigger:i,spaced:a,background:l,innerBackground:s})=>e.jsxs(Ge,{value:n,children:[e.jsx(Qt,{text:r,content:o,reversed:null==i?void 0:i.reversed,spaced:null==i?void 0:i.spaced,rounded:a,background:l}),e.jsx(en,{defaultPadding:"string"==typeof t,rounded:a,background:s,children:t})]});const Qt=t=>{var{text:n,content:r,reversed:o,spaced:i,rounded:a,background:l}=t,u=s(t,["text","content","reversed","spaced","rounded","background"]);return e.jsxs(on,{reverse:o,hasContent:!!r,rounded:a,background:l,children:[e.jsxs(an,Object.assign({reverse:o,spaced:i},u,{children:[e.jsx(Gt,{name:"caret-down",className:"trigger-caret"}),n]})),r]})},en=n=>{var{children:r,defaultPadding:o,rounded:i,background:a}=n,l=s(n,["children","defaultPadding","rounded","background"]);const u=t.useRef(null),[c,d]=t.useState(),[f,p]=t.useState();return Kt(u,(e=>{var t,n;if(!("open"===e.getAttribute("data-state")))return;const r=e.parentElement,o=null==r?void 0:r.parentElement,a=null==o?void 0:o.style.maxHeight,l=null==o?void 0:o.style.height,s=a?null===(t=a.match(/^[0-9]+/g))||void 0===t?void 0:t.pop():void 0,u=l?null===(n=l.match(/^[0-9]+/g))||void 0===n?void 0:n.pop():void 0;if(!s&&!u||!o)return;const h=[...o.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||u||0)-y-v-(i?8*(h.length-1):0);b!==c&&d(b),u&&b!==f&&p(b),e.scrollTo(0,0)})),e.jsx(rn,Object.assign({ref:u,maxHeight:c,minHeight:f,defaultPadding:o,rounded:i,background:a},l,{children:r}))},tn=(e,t)=>!t.includes(e),nn=N(qe,{shouldForwardProp:e=>tn(e,["spaced","margin","marginTop","marginBottom","marginRight","marginLeft"])})((({theme:e,spaced:t})=>({overflow:"hidden",position:"relative",[`& > div:not(:last-child) > ${on}`]:{borderBottom:t?void 0:e.defaultBorder},"& > div:not(:last-child)":{marginBottom:t?8:void 0}})),Wt),rn=N(Je,{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}}})),on=N(Ye,{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}}})),an=N(Xe,{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 sn(e,t){return sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sn(e,t)}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function cn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cn=function(){return!!e})()}function dn(e){var t="function"==typeof Map?new Map:void 0;return dn=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(cn())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&sn(o,n.prototype),o}(e,arguments,un(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sn(n,e)},dn(e)}var fn={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 pn(){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 hn=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,pn.apply(void 0,[fn[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,sn(t,n),r}(dn(Error));function gn(e){return Math.round(255*e)}function mn(e,t,n){return gn(e)+","+gn(t)+","+gn(n)}function vn(e,t,n,r){if(void 0===r&&(r=mn),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,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=n-i/2;return r(l+c,s+c,u+c)}var yn={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 bn=/^#[a-fA-F0-9]{6}$/,wn=/^#[a-fA-F0-9]{8}$/,xn=/^#[a-fA-F0-9]{3}$/,Cn=/^#[a-fA-F0-9]{4}$/,Sn=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,kn=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,En=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,On=/^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 Dn(e){if("string"!=typeof e)throw new hn(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return yn[t]?"#"+yn[t]:e}(e);if(t.match(bn))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(wn)){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(xn))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(Cn)){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=Sn.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=kn.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=En.exec(t);if(a){var l="rgb("+vn(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=Sn.exec(l);if(!s)throw new hn(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var u=On.exec(t.substring(0,50));if(u){var c="rgb("+vn(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=Sn.exec(c);if(!d)throw new hn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new hn(5)}function jn(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,u=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:u,lightness:l,alpha:e.alpha}:{hue:t,saturation:u,lightness:l}}(Dn(e))}var Pn=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 Tn(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Mn(e){return Tn(Math.round(255*e))}function An(e,t,n){return Pn("#"+Mn(e)+Mn(t)+Mn(n))}function _n(e,t,n){return vn(e,t,n,An)}function Rn(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Pn("#"+Tn(e)+Tn(t)+Tn(n));if("object"==typeof e&&void 0===t&&void 0===n)return Pn("#"+Tn(e.red)+Tn(e.green)+Tn(e.blue));throw new hn(6)}function Ln(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Dn(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?Rn(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?Rn(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new hn(7)}var In=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},Nn=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},$n=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},zn=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Fn(e){if("object"!=typeof e)throw new hn(8);if(Nn(e))return Ln(e);if(In(e))return Rn(e);if(zn(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?_n(e,t,n):"rgba("+vn(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+vn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new hn(2)}(e);if($n(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return _n(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return _n(e.hue,e.saturation,e.lightness);throw new hn(1)}(e);throw new hn(8)}function Bn(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Bn(e,t,r)}}function Kn(e){return Bn(e,e.length,[])}function Vn(e,t,n){return Math.max(e,Math.min(t,n))}Kn((function(e,t){if("transparent"===t)return t;var n=jn(t);return Fn(ln({},n,{hue:n.hue+parseFloat(e)}))}));var Hn=Kn((function(e,t){if("transparent"===t)return t;var n=jn(t);return Fn(ln({},n,{lightness:Vn(0,1,n.lightness-parseFloat(e))}))})),Un=Hn;Kn((function(e,t){if("transparent"===t)return t;var n=jn(t);return Fn(ln({},n,{saturation:Vn(0,1,n.saturation-parseFloat(e))}))}));var Wn=Kn((function(e,t){if("transparent"===t)return t;var n=jn(t);return Fn(ln({},n,{lightness:Vn(0,1,n.lightness+parseFloat(e))}))})),Zn=Wn;var qn=Kn((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=Dn(t),o=ln({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=Dn(n),a=ln({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),l=o.alpha-a.alpha,s=2*parseFloat(e)-1,u=((s*l==-1?s:s+l)/(1+s*l)+1)/2,c=1-u;return Ln({red:Math.floor(o.red*u+a.red*c),green:Math.floor(o.green*u+a.green*c),blue:Math.floor(o.blue*u+a.blue*c),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),Gn=qn;Kn((function(e,t){if("transparent"===t)return t;var n=Dn(t);return Ln(ln({},n,{alpha:Vn(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))})),Kn((function(e,t){if("transparent"===t)return t;var n=jn(t);return Fn(ln({},n,{saturation:Vn(0,1,n.saturation+parseFloat(e))}))})),Kn((function(e,t){return"transparent"===t?t:Fn(ln({},jn(t),{hue:parseFloat(e)}))})),Kn((function(e,t){return"transparent"===t?t:Fn(ln({},jn(t),{lightness:parseFloat(e)}))})),Kn((function(e,t){return"transparent"===t?t:Fn(ln({},jn(t),{saturation:parseFloat(e)}))})),Kn((function(e,t){return"transparent"===t?t:Gn(parseFloat(e),"rgb(0, 0, 0)",t)})),Kn((function(e,t){return"transparent"===t?t:Gn(parseFloat(e),"rgb(255, 255, 255)",t)}));var Yn=Kn((function(e,t){if("transparent"===t)return t;var n=Dn(t);return Ln(ln({},n,{alpha:Vn(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),Xn=Yn;const Jn=t.createContext(null);t.createContext(null),t.createContext(null),t.createContext(null),t.createContext(null);const Qn=t.createContext({});class er{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new er(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 tr{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 nr{*[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 rr extends nr{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof rr?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 rr?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 er(e,"react-aria-"+ ++t.nodeId),this.ownerDocument.startTransaction()}}class or extends nr{get isConnected(){return this.isMounted}createElement(e){return new rr(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 rr&&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 ir(e){let{children:n,items:r,idScope:o,addIdAndValue:i,dependencies:a=[]}=e,l=t.useMemo((()=>new WeakMap),a);return t.useMemo((()=>{if(r&&"function"==typeof n){let s=[];for(let u of r){let r=l.get(u);if(!r){var e,a;r=n(u);let s=null!==(a=null!==(e=r.props.id)&&void 0!==e?e:u.key)&&void 0!==a?a:u.id;if(null==s)throw new Error("Could not determine key for item");o&&(s=o+":"+s),r=t.cloneElement(r,i?{key:s,id:s,value:u}:{key:s}),l.set(u,r)}s.push(r)}return s}if("function"!=typeof n)return n}),[n,r,l,o,i])}const ar={prefix:String(Math.round(1e10*Math.random())),current:0},lr=t.createContext(ar),sr=t.createContext(!1);let ur=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),cr=new WeakMap;const dr="function"==typeof t.useId?function(e){let n=t.useId(),[r]=t.useState(gr()),o=r||"test"===process.env.NODE_ENV?"react-aria":`react-aria${ar.prefix}`;return e||`${o}-${n}`}:function(e){let n=t.useContext(lr);n!==ar||ur||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 r=function(e=!1){let n=t.useContext(lr),r=t.useRef(null);if(null===r.current&&!e){var o,i;let e=null===(i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let t=cr.get(e);null==t?cr.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,cr.delete(e))}r.current=++n.current}return r.current}(!!e),o=n===ar&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return e||`${o}-${r}`};function fr(){return!1}function pr(){return!0}function hr(e){return()=>{}}function gr(){return"function"==typeof t.useSyncExternalStore?t.useSyncExternalStore(hr,fr,pr):t.useContext(sr)}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 mr=t.createContext(!1),vr="undefined"!=typeof DocumentFragment?new DocumentFragment:null;function yr(e){let n=t.useContext(mr),o=gr();if(n)return t.createElement(t.Fragment,null,e.children);let i=t.createElement(mr.Provider,{value:!0},e.children);return o?t.createElement("template",{"data-react-aria-hidden":!0},i):r.createPortal(i,vr)}function br(e){let n=(n,r)=>t.useContext(mr)?null:e(n,r);return n.displayName=e.displayName||e.name,t.forwardRef(n)}const wr="undefined"!=typeof document?t.useLayoutEffect:()=>{};function xr(e){const n=t.useRef(null);return wr((()=>{n.current=e}),[e]),t.useCallback(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}let Cr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Sr=new Map;function kr(e){let[n,r]=t.useState(e),o=t.useRef(null),i=dr(n),a=t.useCallback((e=>{o.current=e}),[]);return Cr&&(Sr.has(i)&&!Sr.get(i).includes(a)?Sr.set(i,[...Sr.get(i),a]):Sr.set(i,[a])),wr((()=>{let e=i;return()=>{Sr.delete(e)}}),[i]),t.useEffect((()=>{let e=o.current;e&&(o.current=null,r(e))})),i}function Er(e,t){if(e===t)return e;let n=Sr.get(e);if(n)return n.forEach((e=>e(t))),t;let r=Sr.get(t);return r?(r.forEach((t=>t(e))),e):t}function Or(e=[]){let n=kr(),[r,o]=function(e){let[n,r]=t.useState(e),o=t.useRef(null),i=xr((()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:n===e.value?i():r(e.value)}));wr((()=>{o.current&&i()}));let a=xr((e=>{o.current=e(n),i()}));return[n,a]}(n),i=t.useCallback((()=>{o((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,o]);return wr(i,[n,i,...e]),r}function Dr(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const jr=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Pr=e=>{if(e&&"window"in e&&e.window===e)return e;return jr(e).defaultView||window};function Tr(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=Tr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tr(e))&&(r&&(r+=" "),r+=t);return r}function Ar(...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]=Dr(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Er(n,o):t[e]=void 0!==o?o:n:t[e]=Mr(n,o)}}return t}function _r(...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 Rr=new Set(["id"]),Lr=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ir=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Nr=/^(data-.*)$/;function $r(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Rr.has(t)||n&&Lr.has(t)||r&&Ir.has(t)||(null==o?void 0:o.has(t))||Nr.test(t))&&(i[t]=e[t]);return i}function zr(e){if(function(){if(null==Fr){Fr=!1;try{document.createElement("div").focus({get preventScroll(){return Fr=!0,!0}})}catch(e){}}return Fr}())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 Fr=null;function Br(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 Kr(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 Vr(e){let t=null;return()=>(null==t&&(t=e()),t)}const Hr=Vr((function(){return Kr(/^Mac/i)})),Ur=Vr((function(){return Kr(/^iPhone/i)})),Wr=Vr((function(){return Kr(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1})),Zr=Vr((function(){return Ur()||Wr()})),qr=Vr((function(){return Hr()||Zr()})),Gr=Vr((function(){return Br(/AppleWebKit/i)&&!Yr()})),Yr=Vr((function(){return Br(/Chrome/i)})),Xr=Vr((function(){return Br(/Android/i)})),Jr=Vr((function(){return Br(/Firefox/i)})),Qr=t.createContext({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 eo(){return t.useContext(Qr)}function to(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;Jr()&&(null===(o=window.event)||void 0===o||null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(Hr()?i=!0:a=!0);let u=Gr()&&Hr()&&!Wr()?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,zr(e),e.dispatchEvent(u),to.isOpening=!1}function no(e){var t;const n=eo().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 ro=new Map,oo=new Set;function io(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=ro.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),ro.delete(n.target)),0===ro.size)){for(let e of oo)e();oo.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=ro.get(n.target);r||(r=new Set,ro.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function ao(e){requestAnimationFrame((()=>{0===ro.size?e():oo.add(e)}))}function lo(){let e=t.useRef(new Map),n=t.useCallback(((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)}),[]),r=t.useCallback(((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)}),[]),o=t.useCallback((()=>{e.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return t.useEffect((()=>o),[o]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:o}}function so(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=kr(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 uo(e){const n=t.useRef(null);return t.useMemo((()=>({get current(){return n.current},set current(t){n.current=t,"function"==typeof e?e(t):e&&(e.current=t)}})),[e])}function co(e,n){const r=t.useRef(!0),o=t.useRef(null);t.useEffect((()=>(r.current=!0,()=>{r.current=!1})),[]),t.useEffect((()=>{r.current?r.current=!1:o.current&&!n.some(((e,t)=>!Object.is(e,o[t])))||e(),o.current=n}),n)}function fo(e){const{ref:n,box:r,onResize:o}=e;t.useEffect((()=>{let e=null==n?void 0:n.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)};{const t=new window.ResizeObserver((e=>{e.length&&o()}));return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}}),[o,n,r])}function po(e,t){wr((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function ho(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 go(e,t){let n=e;for(ho(n,t)&&(n=n.parentElement);n&&!ho(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?io():document.addEventListener("DOMContentLoaded",io));let mo="undefined"!=typeof document&&window.visualViewport;function vo(){return{width:mo&&(null==mo?void 0:mo.width)||window.innerWidth,height:mo&&(null==mo?void 0:mo.height)||window.innerHeight}}let yo=0;const bo=new Map;function wo(e){let[n,r]=t.useState();return wr((()=>{if(!e)return;let t=bo.get(e);if(t)r(t.element.id);else{let n="react-aria-description-"+yo++;r(n);let o=document.createElement("div");o.id=n,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},bo.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),bo.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function xo(e,n,r,o){let i=xr(r),a=null==r;t.useEffect((()=>{if(a||!e.current)return;let t=e.current;return t.addEventListener(n,i,o),()=>{t.removeEventListener(n,i,o)}}),[e,n,o,a,i])}function Co(e,t){let n=So(e,t,"left"),r=So(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(s,10),f=c+e.clientWidth,p=d+e.clientHeight;n<=a?a=n-parseInt(u,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 So(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 ko(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;)ho(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)Co(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:u}=e.getBoundingClientRect();var r,o,i;if(Math.abs(a-s)>1||Math.abs(l-u)>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 Eo(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Xr()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Oo(e,n){let r=t.useRef(null);return e&&r.current&&n(e,r.current)&&(e=r.current),r.current=e,e}function Do(e,n,r){let o=t.useRef(n),i=xr((()=>{r&&r(o.current)}));t.useEffect((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",i),()=>{null==n||n.removeEventListener("reset",i)}}),[e,i])}function jo(e,n,r){let[o,i]=t.useState(e||n),a=t.useRef(void 0!==e),l=void 0!==e;t.useEffect((()=>{let e=a.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l}),[l]);let s=l?e:o,u=t.useCallback(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(s,e)||r(e,...t)),l||(s=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"),i(((r,...o)=>{let i=e(l?s:r,...o);return n(i,...t),l?r:i}))}else l||i(e),n(e,...t)}),[l,s,r]);return[s,u]}function Po(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function To(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 Mo(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=To(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(To(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(To((n-t)/r,r))*r),i=To(i,r),i}var Ao="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ro,Lo={exports:{}},Io={};var No,$o={};"production"===process.env.NODE_ENV?Lo.exports=function(){if(Ro)return Io;Ro=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(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 n=t(),s=r({inst:{value:n,getSnapshot:t}}),u=s[0].inst,c=s[1];return i((function(){u.value=n,u.getSnapshot=t,l(u)&&c({inst:u})}),[e,n,t]),o((function(){return l(u)&&c({inst:u}),e((function(){l(u)&&c({inst:u})}))}),[e]),a(n),n};return Io.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Io}():Lo.exports=(No||(No=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=t,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="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,u=!1,c=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}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,n,f){u||void 0!==e.startTransition&&(u=!0,r("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=n();if(!c){var h=n();o(p,h)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var g=i({inst:{value:p,getSnapshot:n}}),m=g[0].inst,v=g[1];return l((function(){m.value=p,m.getSnapshot=n,d(m)&&v({inst:m})}),[t,p,n]),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;$o.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),$o);var zo=Lo.exports;const Fo=t.createContext(!1),Bo=t.createContext(null);function Ko(e){if(t.useContext(Bo))return e.content;let{collection:n,document:r}=function(e){let[n]=t.useState((()=>new or((null==e?void 0:e())||new tr))),r=t.useCallback((e=>n.subscribe(e)),[n]),o=t.useCallback((()=>{let e=n.getCollection();return n.isSSR&&n.resetAfterSSR(),e}),[n]),i=t.useCallback((()=>(n.isSSR=!0,n.getCollection())),[n]),a=Ho(r,o,i);return wr((()=>(n.isMounted=!0,()=>{n.isMounted=!1})),[n]),{collection:a,document:n}}(e.createCollection);return t.createElement(t.Fragment,null,t.createElement(yr,null,t.createElement(Bo.Provider,{value:r},e.content)),t.createElement(Vo,{render:e.children,collection:n}))}function Vo({collection:e,render:t}){return t(e)}const Ho="function"==typeof t.useSyncExternalStore?t.useSyncExternalStore:function(e,n,r){let o=gr(),i=t.useRef(o);i.current=o;let a=t.useCallback((()=>i.current?r():n()),[n,r]);return zo.useSyncExternalStore(e,a)};const Uo=t.createContext(null);function Wo(e,n,r,o,i,a){let l=t.useCallback((e=>{null==e||e.setProps(n,r,o,a)}),[n,r,o,a]),s=t.useContext(Uo);if(s){let l=s.ownerDocument.nodesByProps.get(n);return l||(l=s.ownerDocument.createElement(e),l.setProps(n,r,o,a),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(n,l)),i?t.createElement(Uo.Provider,{value:l},i):null}return t.createElement(e,{ref:l},i)}function Zo(e,n){let r=({node:e})=>n(e.props,e.props.ref,e),o=t.forwardRef(((o,i)=>{if(!t.useContext(Fo)){if(n.length>=3)throw new Error(n.name+" cannot be rendered outside a collection.");return n(o,i)}return Wo(e,o,i,"children"in o?o.children:null,null,(e=>t.createElement(r,{node:e})))}));return o.displayName=n.name,o}function qo(e,n,r=Go){let o=({node:e})=>n(e.props,e.props.ref,e),i=t.forwardRef(((n,i)=>{let a=r(n);var l;return null!==(l=Wo(e,n,i,null,a,(e=>t.createElement(o,{node:e}))))&&void 0!==l?l:t.createElement(t.Fragment,null)}));return i.displayName=n.name,i}function Go(e){return ir({...e,addIdAndValue:!0})}const Yo=t.createContext(null);function Xo(e){let n=t.useContext(Yo),r=((null==n?void 0:n.dependencies)||[]).concat(e.dependencies),o=e.idScope||(null==n?void 0:n.idScope),i=Go({...e,idScope:o,dependencies:r});return t.useContext(Bo)&&(i=t.createElement(Jo,null,i)),n=t.useMemo((()=>({dependencies:r,idScope:o})),[o,...r]),t.createElement(Yo.Provider,{value:n},i)}function Jo({children:e}){let n=t.useContext(Bo),o=t.useMemo((()=>t.createElement(Bo.Provider,{value:null},t.createElement(Fo.Provider,{value:!0},e))),[e]);return gr()?t.createElement(Uo.Provider,{value:n},o):r.createPortal(o,n)}const Qo=t.createContext(null),ei=qo("section",((e,n,r)=>{let{render:o}=t.useContext(Qo);return o(e,n,r)})),ti={CollectionRoot:({collection:e,renderDropIndicator:t})=>ni(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>ni(e,t,n)};function ni(e,n,r){return ir({items:n?e.getChildren(n.key):e,dependencies:[r],children(n){var o;let i=n.render(n);if(!r||"item"!==n.type)return i;let a=n.key,l=e.getKeyAfter(a);return t.createElement(t.Fragment,null,r({type:"item",key:a,dropPosition:"before"}),i,(null==l||"item"!==(null===(o=e.getItem(l))||void 0===o?void 0:o.type))&&r({type:"item",key:a,dropPosition:"after"}))}})}const ri=t.createContext(ti);const oi=Symbol("default");function ii({values:e,children:n}){for(let[r,o]of e)n=t.createElement(r.Provider,{value:o},n);return n}function ai(e){let{className:n,style:r,children:o,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:s}=e;return t.useMemo((()=>{let e,t,u;return e="function"==typeof n?n({...s,defaultClassName:i}):n,t="function"==typeof r?r({...s,defaultStyle:l||{}}):r,u="function"==typeof o?o({...s,defaultChildren:a}):null==o?a:o,{className:null!=e?e:i,style:t||l?{...l,...t}:void 0,children:null!=u?u:a,"data-rac":""}}),[n,r,o,i,a,l,s])}function li(e,n){let r=t.useContext(e);if(null===n)return null;if(r&&"object"==typeof r&&"slots"in r&&r.slots){let e=(new Intl.ListFormat).format(Object.keys(r.slots).map((e=>`"${e}"`)));if(!n&&!r.slots[oi])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let t=n||oi;if(!r.slots[t])throw new Error(`Invalid slot "${n}". Valid slot names are ${e}.`);return r.slots[t]}return r}function si(e,n,r){let o=li(r,e.slot)||{},{ref:i,...a}=o,l=uo(t.useMemo((()=>_r(n,i)),[n,i])),s=Ar(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?s.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:s.style={...a.style,...e.style}),[s,l]}function ui(){let[e,n]=t.useState(!0),r=t.useRef(!1),o=t.useCallback((e=>{r.current=!0,n(!!e)}),[]);return wr((()=>{r.current||n(!1)}),[]),[o,e]}function ci(e,n=!0){let[r,o]=t.useState(!0);return fi(e,r&&n,t.useCallback((()=>o(!1)),[])),r&&n}function di(e,n){let[r,o]=t.useState(!1),[i,a]=t.useState("idle");return!n&&e.current&&"idle"===i&&(r=!0,o(!0),a("exiting")),e.current||"exited"!==i||a("idle"),fi(e,r,t.useCallback((()=>{a("exited"),o(!1)}),[])),r}function fi(e,n,o){let i=t.useRef(null);n&&e.current&&(i.current=window.getComputedStyle(e.current).animation),wr((()=>{if(n&&e.current){let t=window.getComputedStyle(e.current);if(t.animationName&&"none"!==t.animationName&&t.animation!==i.current){let t=i=>{i.target===e.current&&(n.removeEventListener("animationend",t),r.flushSync((()=>{o()})))},n=e.current;return n.addEventListener("animationend",t),()=>{n.removeEventListener("animationend",t)}}o()}}),[e,n,o])}function pi(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}let hi="default",gi="",mi=new WeakMap;function vi(e){if(Zr()){if("default"===hi){const t=jr(e);gi=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}hi="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(mi.set(e,e.style.userSelect),e.style.userSelect="none")}function yi(e){if(Zr()){if("disabled"!==hi)return;hi="restoring",setTimeout((()=>{ao((()=>{if("restoring"===hi){const t=jr(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=gi||""),gi="",hi="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&mi.has(e)){let t=mi.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),mi.delete(e)}}const bi=t.createContext({register:()=>{}});function wi(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function xi(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 Ci(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,wi(e,t,"set"),n),n}bi.displayName="PressResponderContext";var Si=new WeakMap;class ki{continuePropagation(){Ci(this,Si,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,wi(e,Si,"get"));var e}constructor(e,t,n,r){var o;xi(this,Si,{writable:!0,value:void 0}),Ci(this,Si,!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,u=0,c=null;null!=n.clientX&&null!=n.clientY&&(s=n.clientX,c=n.clientY),a&&(null!=s&&null!=c?(l=s-a.left,u=c-a.top):(l=a.width/2,u=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=u}}const Ei=Symbol("linkClicked");function Oi(e){let{onPress:n,onPressChange:r,onPressStart:o,onPressEnd:i,onPressUp:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let n=t.useContext(bi);if(n){let{register:t,...r}=n;e=Ar(r,e),t()}return po(n,e.ref),e}(e),[h,g]=t.useState(!1),m=t.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:y}=lo(),b=xr(((e,t)=>{let n=m.current;if(l||n.didFirePressStart)return!1;let i=!0;if(n.isTriggeringEvent=!0,o){let n=new ki("pressstart",t,e);o(n),i=n.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,g(!0),i})),w=xr(((e,t,o=!0)=>{let a=m.current;if(!a.didFirePressStart)return!1;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1,a.isTriggeringEvent=!0;let s=!0;if(i){let n=new ki("pressend",t,e);i(n),s=n.shouldStopPropagation}if(r&&r(!1),g(!1),n&&o&&!l){let r=new ki("press",t,e);n(r),s&&(s=r.shouldStopPropagation)}return a.isTriggeringEvent=!1,s})),x=xr(((e,t)=>{let n=m.current;if(l)return!1;if(a){n.isTriggeringEvent=!0;let r=new ki("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),C=xr((e=>{let t=m.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&w(Mi(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,y(),d||yi(t.target))})),S=xr((e=>{c&&C(e)})),k=t.useMemo((()=>{let e=m.current,t={onKeyDown(t){if(ji(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;Li(t.target,t.key)&&t.preventDefault();let o=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,o=b(t,"keyboard");let r=t.currentTarget,i=t=>{ji(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&x(Mi(e.target,t),"keyboard")};v(jr(t.currentTarget),"keyup",Dr(i,n),!0)}o&&t.stopPropagation(),t.metaKey&&Hr()&&(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(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||Eo(t.nativeEvent))){l||u||zr(t.currentTarget);let e=b(t,"virtual"),r=x(t,"virtual"),o=w(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&ji(t,e.target)){var r;Li(t.target,t.key)&&t.preventDefault();let n=t.target;w(Mi(e.target,t),"keyboard",e.target.contains(n)),y(),"Enter"!==t.key&&Di(e.target)&&e.target.contains(n)&&!t[Ei]&&(t[Ei]=!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,!Xr()&&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;_i(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,l||u||zr(t.currentTarget),d||vi(e.target),a=b(t,e.pointerType),v(jr(t.currentTarget),"pointermove",n,!1),v(jr(t.currentTarget),"pointerup",r,!1),v(jr(t.currentTarget),"pointercancel",i,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(_i(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Ai(t,t.currentTarget)&&x(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&Ai(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,b(Mi(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,w(Mi(e.target,t),e.pointerType,!1),S(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(Ai(t,e.target)&&null!=e.pointerType?w(Mi(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&w(Mi(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),d||yi(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&v(e.target,"touchend",o,{once:!0}))},o=e=>{Ri(e.target)&&e.preventDefault()},i=e=>{C(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&C(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(_i(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=Eo(t.nativeEvent)?"virtual":"mouse",l||u||zr(t.currentTarget),b(t,e.pointerType)&&t.stopPropagation(),v(jr(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=b(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=w(t,e.pointerType,!1),S(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||x(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&Ai(t,e.target)&&null!=e.pointerType?w(Mi(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&w(Mi(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",l||u||zr(t.currentTarget),d||vi(e.target),b(Ti(e.target,t),e.pointerType)&&t.stopPropagation(),v(Pr(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Pi(t.nativeEvent,e.activePointerId),r=!0;n&&Ai(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=b(Ti(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=w(Ti(e.target,t),e.pointerType,!1),S(Ti(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=Pi(t.nativeEvent,e.activePointerId),r=!0;n&&Ai(n,t.currentTarget)&&null!=e.pointerType?(x(Ti(e.target,t),e.pointerType),r=w(Ti(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=w(Ti(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&yi(e.target),y()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&C(Ti(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&C({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&C(e)}}return t}),[v,l,u,y,d,C,S,w,b,x]);return t.useEffect((()=>()=>{var e;d||yi(null!==(e=m.current.target)&&void 0!==e?e:void 0)}),[d]),{isPressed:s||h,pressProps:Ar(p,k)}}function Di(e){return"A"===e.tagName&&e.hasAttribute("href")}function ji(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof Pr(o).HTMLInputElement&&!Ni(o,n)||o instanceof Pr(o).HTMLTextAreaElement||o.isContentEditable||("link"===i||!i&&Di(o))&&"Enter"!==n)}function Pi(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 Ti(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 Mi(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 Ai(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 _i(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function Ri(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!Di(e))}function Li(e,t){return e instanceof HTMLInputElement?!Ni(e,t):Ri(e)}const Ii=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ni(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Ii.has(e.type)}const $i=t.forwardRef((({children:e,...n},r)=>{let o=t.useRef(!1),i=t.useContext(bi);r=uo(r||(null==i?void 0:i.ref));let a=Ar(i||{},{...n,ref:r,register(){o.current=!0,i&&i.register()}});return po(i,r),t.useEffect((()=>{o.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)}),[]),t.createElement(bi.Provider,{value:a},e)}));function zi({children:e}){let n=t.useMemo((()=>({register:()=>{}})),[]);return t.createElement(bi.Provider,{value:n},e)}class Fi{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 Bi(e){let n=t.useRef({isFocused:!1,observer:null});wr((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=xr((t=>{null==e||e(t)}));return t.useCallback((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,o=e=>{n.current.isFocused=!1,t.disabled&&r(new Fi("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",o,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let r=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}function Ki(e){let{isDisabled:n,onFocus:r,onBlur:o,onFocusChange:i}=e;const a=t.useCallback((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),l=Bi(a),s=t.useCallback((e=>{const t=jr(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),i&&i(!0),l(e))}),[i,r,l]);return{focusProps:{onFocus:!n&&(r||i||o)?s:void 0,onBlur:n||!o&&!i?void 0:a}}}let Vi=null,Hi=new Set,Ui=new Map,Wi=!1,Zi=!1;const qi={Tab:!0,Escape:!0};function Gi(e,t){for(let n of Hi)n(e,t)}function Yi(e){Wi=!0,function(e){return!(e.metaKey||!Hr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Vi="keyboard",Gi("keyboard",e))}function Xi(e){Vi="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Wi=!0,Gi("pointer",e))}function Ji(e){Eo(e)&&(Wi=!0,Vi="virtual")}function Qi(e){e.target!==window&&e.target!==document&&(Wi||Zi||(Vi="virtual",Gi("virtual",e)),Wi=!1,Zi=!1)}function ea(){Wi=!1,Zi=!0}function ta(e){if("undefined"==typeof window||Ui.get(Pr(e)))return;const t=Pr(e),n=jr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Wi=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yi,!0),n.addEventListener("keyup",Yi,!0),n.addEventListener("click",Ji,!0),t.addEventListener("focus",Qi,!0),t.addEventListener("blur",ea,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Xi,!0),n.addEventListener("pointermove",Xi,!0),n.addEventListener("pointerup",Xi,!0)):(n.addEventListener("mousedown",Xi,!0),n.addEventListener("mousemove",Xi,!0),n.addEventListener("mouseup",Xi,!0)),t.addEventListener("beforeunload",(()=>{na(e)}),{once:!0}),Ui.set(t,{focus:r})}const na=(e,t)=>{const n=Pr(e),r=jr(e);t&&r.removeEventListener("DOMContentLoaded",t),Ui.has(n)&&(n.HTMLElement.prototype.focus=Ui.get(n).focus,r.removeEventListener("keydown",Yi,!0),r.removeEventListener("keyup",Yi,!0),r.removeEventListener("click",Ji,!0),n.removeEventListener("focus",Qi,!0),n.removeEventListener("blur",ea,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Xi,!0),r.removeEventListener("pointermove",Xi,!0),r.removeEventListener("pointerup",Xi,!0)):(r.removeEventListener("mousedown",Xi,!0),r.removeEventListener("mousemove",Xi,!0),r.removeEventListener("mouseup",Xi,!0)),Ui.delete(n))};function ra(){return"pointer"!==Vi}function oa(){return Vi}function ia(e){Vi=e,Gi(e,null)}function aa(){ta();let[e,n]=t.useState(Vi);return t.useEffect((()=>{let e=()=>{n(Vi)};return Hi.add(e),()=>{Hi.delete(e)}}),[]),gr()?null:e}"undefined"!=typeof document&&function(e){const t=jr(e);let n;"loading"!==t.readyState?ta(e):(n=()=>{ta(e)},t.addEventListener("DOMContentLoaded",n))}();const la=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sa(e,n,r){ta(),t.useEffect((()=>{let t=(t,n)=>{(function(e,t,n){var r;const o="undefined"!=typeof window?Pr(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?Pr(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Pr(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?Pr(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&&!qi[n.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(ra())};return Hi.add(t),()=>{Hi.delete(t)}}),n)}function ua(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:i}=e,a=t.useRef({isFocusWithin:!1}),l=t.useCallback((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(e),i&&i(!1))}),[r,i,a]),s=Bi(l),u=t.useCallback((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,s(e))}),[o,i,s]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let ca=!1,da=0;function fa(){ca=!0,setTimeout((()=>{ca=!1}),50)}function pa(e){"touch"===e.pointerType&&fa()}function ha(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",pa):document.addEventListener("touchend",fa),da++,()=>{da--,da>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",pa):document.removeEventListener("touchend",fa))}}function ga(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:o,isDisabled:i}=e,[a,l]=t.useState(!1),s=t.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;t.useEffect(ha,[]);let{hoverProps:u,triggerHoverEnd:c}=t.useMemo((()=>{let e=(e,t)=>{if(s.pointerType=t,i||"touch"===t||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,n&&n({type:"hoverstart",target:o,pointerType:t}),r&&r(!0),l(!0)},t=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let n=e.currentTarget;o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{ca&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(a.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||ca||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:a,triggerHoverEnd:t}}),[n,r,o,i,s]);return t.useEffect((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:u,isHovered:a}}function ma(e){let{ref:n,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:i}=e,a=t.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=xr((e=>{r&&va(e,n)&&(i&&i(e),a.current.isPointerDown=!0)})),s=xr((e=>{r&&r(e)}));t.useEffect((()=>{let e=a.current;if(o)return;const t=n.current,r=jr(t);if("undefined"!=typeof PointerEvent){let t=t=>{e.isPointerDown&&va(t,n)&&s(t),e.isPointerDown=!1};return r.addEventListener("pointerdown",l,!0),r.addEventListener("pointerup",t,!0),()=>{r.removeEventListener("pointerdown",l,!0),r.removeEventListener("pointerup",t,!0)}}{let t=t=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&va(t,n)&&s(t),e.isPointerDown=!1},o=t=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&va(t,n)&&s(t),e.isPointerDown=!1};return r.addEventListener("mousedown",l,!0),r.addEventListener("mouseup",t,!0),r.addEventListener("touchstart",l,!0),r.addEventListener("touchend",o,!0),()=>{r.removeEventListener("mousedown",l,!0),r.removeEventListener("mouseup",t,!0),r.removeEventListener("touchstart",l,!0),r.removeEventListener("touchend",o,!0)}}}),[n,o,l,s])}function va(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 ya(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 ba(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ya(e.onKeyDown),onKeyUp:ya(e.onKeyUp)}}}const wa=500;function xa(e){let{isDisabled:n,onLongPressStart:r,onLongPressEnd:o,onLongPress:i,threshold:a=wa,accessibilityDescription:l}=e;const s=t.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=lo(),{pressProps:d}=Oi({isDisabled:n,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(r&&r({...e,type:"longpressstart"}),s.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),s.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};u(e.target,"contextmenu",t,{once:!0}),u(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!o||"mouse"!==e.pointerType&&"touch"!==e.pointerType||o({...e,type:"longpressend"})}});return{longPressProps:Ar(d,wo(i&&!n?l:void 0))}}function Ca(e){const t=jr(e);if("virtual"===oa()){let n=t.activeElement;ao((()=>{t.activeElement===n&&e.isConnected&&zr(e)}))}else zr(e)}function Sa(e,t){return"#comment"!==e.nodeName&&function(e){const t=Pr(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||Sa(e.parentElement,e))}const ka=t.createContext(null),Ea="react-aria-focus-scope-restore";let Oa=null;function Da(e){let{children:n,contain:r,restoreFocus:o,autoFocus:i}=e,a=t.useRef(null),l=t.useRef(null),s=t.useRef([]),{parentNode:u}=t.useContext(ka)||{},c=t.useMemo((()=>new Ua({scopeRef:s})),[s]);wr((()=>{let e=u||Wa.root;if(Wa.getTreeNode(e.scopeRef)&&Oa&&!Ia(Oa,e.scopeRef)){let t=Wa.getTreeNode(Oa);t&&(e=t)}e.addChild(c),Wa.addNode(c)}),[c,u]),wr((()=>{let e=Wa.getTreeNode(s);e&&(e.contain=!!r)}),[r]),wr((()=>{var e;let t=null===(e=a.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==l.current;)n.push(t),t.addEventListener(Ea,r),t=t.nextSibling;return s.current=n,()=>{for(let e of n)e.removeEventListener(Ea,r)}}),[n]),function(e,t,n){wr((()=>{if(t||n)return;let r=e.current;const o=jr(r?r[0]:void 0);let i=t=>{let n=t.target;Ra(n,e.current)?Oa=e:_a(n)||(Oa=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])}(s,o,r),function(e,n){let r=t.useRef(void 0),o=t.useRef(void 0);wr((()=>{let t=e.current;if(!n)return void(o.current&&(cancelAnimationFrame(o.current),o.current=void 0));const i=jr(t?t[0]:void 0);let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!Aa(e)||t.isComposing)return;let n=i.activeElement,r=e.current;if(!r||!Ra(n,r))return;let o=Ba(Ma(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&&Na(a,!0)},l=t=>{Oa&&!Ia(Oa,e)||!Ra(t.target,e.current)?Aa(e)&&!La(t.target,e)?r.current?r.current.focus():Oa&&Oa.current&&za(Oa.current):Aa(e)&&(r.current=t.target):(Oa=e,r.current=t.target)},s=t=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((()=>{var n;i.activeElement&&Aa(e)&&!La(i.activeElement,e)&&(Oa=e,i.body.contains(t.target)?(r.current=t.target,null===(n=r.current)||void 0===n||n.focus()):Oa.current&&za(Oa.current))}))};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),null==t||t.forEach((e=>e.addEventListener("focusin",l,!1))),null==t||t.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),null==t||t.forEach((e=>e.removeEventListener("focusin",l,!1))),null==t||t.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,n]),wr((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(s,r),function(e,n,r){const o=t.useRef("undefined"!=typeof document?jr(e.current?e.current[0]:void 0).activeElement:null);wr((()=>{let t=e.current;const o=jr(t?t[0]:void 0);if(!n||r)return;let i=()=>{Oa&&!Ia(Oa,e)||!Ra(o.activeElement,e.current)||(Oa=e)};return o.addEventListener("focusin",i,!1),null==t||t.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{o.removeEventListener("focusin",i,!1),null==t||t.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[e,r]),wr((()=>{const t=jr(e.current?e.current[0]:void 0);if(!n)return;let o=n=>{if("Tab"!==n.key||n.altKey||n.ctrlKey||n.metaKey||!Aa(e)||n.isComposing)return;let r=t.activeElement;if(!Ra(r,e.current))return;let o=Wa.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=Ba(t.body,{tabbable:!0});a.currentNode=r;let l=n.shiftKey?a.previousNode():a.nextNode();if(i&&t.body.contains(i)&&i!==t.body||(i=void 0,o.nodeToRestore=void 0),(!l||!Ra(l,e.current))&&i){a.currentNode=i;do{l=n.shiftKey?a.previousNode():a.nextNode()}while(Ra(l,e.current));n.preventDefault(),n.stopPropagation(),l?Na(l,!0):_a(i)?Na(i,!0):r.blur()}};return r||t.addEventListener("keydown",o,!0),()=>{r||t.removeEventListener("keydown",o,!0)}}),[e,n,r]),wr((()=>{const t=jr(e.current?e.current[0]:void 0);if(!n)return;let r=Wa.getTreeNode(e);var i;return r?(r.nodeToRestore=null!==(i=o.current)&&void 0!==i?i:void 0,()=>{let r=Wa.getTreeNode(e);if(!r)return;let o=r.nodeToRestore;if(n&&o&&(Ra(t.activeElement,e.current)||t.activeElement===t.body&&function(e){let t=Wa.getTreeNode(Oa);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let n=Wa.clone();requestAnimationFrame((()=>{if(t.activeElement===t.body){let t=n.getTreeNode(e);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void Fa(t.nodeToRestore);t=t.parent}for(t=n.getTreeNode(e);t;){if(t.scopeRef&&t.scopeRef.current&&Wa.getTreeNode(t.scopeRef)){return void Fa($a(t.scopeRef.current,!0))}t=t.parent}}}))}}):void 0}),[e,n])}(s,o,r),function(e,n){const r=t.useRef(n);t.useEffect((()=>{if(r.current){Oa=e;!Ra(jr(e.current?e.current[0]:void 0).activeElement,Oa.current)&&e.current&&za(e.current)}r.current=!1}),[e])}(s,i),t.useEffect((()=>{const e=jr(s.current?s.current[0]:void 0).activeElement;let t=null;if(Ra(e,s.current)){for(let n of Wa.traverse())n.scopeRef&&Ra(e,n.scopeRef.current)&&(t=n);t===Wa.getTreeNode(s)&&(Oa=t.scopeRef)}}),[s]),wr((()=>()=>{var e,t,n;let r=null!==(n=null===(t=Wa.getTreeNode(s))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;s!==Oa&&!Ia(s,Oa)||r&&!Wa.getTreeNode(r)||(Oa=r),Wa.removeTreeNode(s)}),[s]);let d=t.useMemo((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||jr(n[0]).activeElement,s=n[0].previousElementSibling,u=Ba(Ma(n),{tabbable:o,accept:a},n);u.currentNode=Ra(l,n)?l:s;let c=u.nextNode();return!c&&i&&(u.currentNode=s,c=u.nextNode()),c&&Na(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||jr(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Ba(Ma(n),{tabbable:o,accept:a},n);u.currentNode=Ra(l,n)?l:s;let c=u.previousNode();return!c&&i&&(u.currentNode=s,c=u.previousNode()),c&&Na(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ba(Ma(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&Na(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ba(Ma(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&Na(a,!0),a}}}(s)),[]),f=t.useMemo((()=>({focusManager:d,parentNode:c})),[c,d]);return t.createElement(ka.Provider,{value:f},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}const ja=["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]"],Pa=ja.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ja.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ta=ja.join(':not([hidden]):not([tabindex="-1"]),');function Ma(e){return e[0].parentElement}function Aa(e){let t=Wa.getTreeNode(Oa);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function _a(e){return La(e)}function Ra(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function La(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Wa.traverse(Wa.getTreeNode(t)))if(n&&Ra(e,n.current))return!0;return!1}function Ia(e,t){var n;let r=null===(n=Wa.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Na(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Ca(e)}catch(e){}}function $a(e,t=!0){let n=e[0].previousElementSibling,r=Ma(e),o=Ba(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Ma(e),o=Ba(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function za(e,t=!0){Na($a(e,t))}function Fa(e){e.dispatchEvent(new CustomEvent(Ea,{bubbles:!0,cancelable:!0}))&&Na(e)}function Ba(e,t,n){let r=(null==t?void 0:t.tabbable)?Ta:Pa,o=jr(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)||!Sa(e)||n&&!Ra(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 Ka(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||jr(r).activeElement,u=Ba(r,{tabbable:i,accept:l});r.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&a&&(u.currentNode=r,c=u.nextNode()),c&&Na(c,!0),c},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||jr(r).activeElement,u=Ba(r,{tabbable:i,accept:l});if(!r.contains(s)){let e=Va(u);return e&&Na(e,!0),null!=e?e:null}u.currentNode=s;let c=u.previousNode();if(!c&&a){u.currentNode=r;let e=Va(u);if(!e)return null;c=e}return c&&Na(c,!0),null!=c?c:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Ba(r,{tabbable:o,accept:i}).nextNode();return a&&Na(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=Va(Ba(r,{tabbable:o,accept:i}));return a&&Na(a,!0),null!=a?a:null}}}function Va(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class Ha{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 Ua({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&&Ra(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 Ha;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 Ua({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ua{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 Wa=new Ha;function Za(e={}){let{autoFocus:n=!1,isTextInput:r,within:o}=e,i=t.useRef({isFocused:!1,isFocusVisible:n||ra()}),[a,l]=t.useState(!1),[s,u]=t.useState((()=>i.current.isFocused&&i.current.isFocusVisible)),c=t.useCallback((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),d=t.useCallback((e=>{i.current.isFocused=e,l(e),c()}),[c]);sa((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:r});let{focusProps:f}=Ki({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=ua({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:s,focusProps:o?p:f}}let qa=t.createContext(null);function Ga(e,n){let{children:r,...o}=e,i={...o,ref:uo(n)};return t.createElement(qa.Provider,{value:i},r)}let Ya=t.forwardRef(Ga);function Xa(e,n){let{focusProps:r}=Ki(e),{keyboardProps:o}=ba(e),i=Ar(r,o),a=function(e){let n=t.useContext(qa)||{};po(n,e);let{ref:r,...o}=n;return o}(n),l=e.isDisabled?{}:a,s=t.useRef(e.autoFocus);return t.useEffect((()=>{s.current&&n.current&&Ca(n.current),s.current=!1}),[n]),{focusableProps:Ar({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}const Ja=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Qa=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function el(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 Ja.has(t.script)}let t=e.split("-")[0];return Qa.has(t)}const tl=Symbol.for("react-aria.i18n.locale");function nl(){let e="undefined"!=typeof window&&window[tl]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:el(e)?"rtl":"ltr"}}let rl=nl(),ol=new Set;function il(){rl=nl();for(let e of ol)e(rl)}const al=t.createContext(null);function ll(){let e=function(){let e=gr(),[n,r]=t.useState(rl);return t.useEffect((()=>(0===ol.size&&window.addEventListener("languagechange",il),ol.add(r),()=>{ol.delete(r),0===ol.size&&window.removeEventListener("languagechange",il)})),[]),e?{locale:"en-US",direction:"ltr"}:n}();return t.useContext(al)||e}const sl=Symbol.for("react-aria.i18n.locale"),ul=Symbol.for("react-aria.i18n.strings");let cl;class dl{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[sl];if(void 0===cl){let e=window[ul];if(!e)return null;cl={};for(let n in e)cl[n]=new dl({[t]:e[n]},t)}let n=null==cl?void 0:cl[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 fl=new Map,pl=new Map;class hl{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=fl.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),fl.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=pl.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),pl.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 gl=new WeakMap;function ml(e,t){return t&&dl.getGlobalDictionaryForPackage(t)||function(e){let t=gl.get(e);return t||(t=new dl(e),gl.set(e,t)),t}(e)}function vl(e,n){let{locale:r}=ll(),o=ml(e,n);return t.useMemo((()=>new hl(r,o)),[r,o])}function yl(e,t){return e-t*Math.floor(e/t)}const bl=1721426;function wl(e,t,n,r){let o=(t=Cl(e,t))-1,i=-2;return n<=2?i=0:xl(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 xl(e){return e%4==0&&(e%100!=0||e%400==0)}function Cl(e,t){return"BC"===e?1-t:t}function Sl(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const kl={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 El{fromJulianDay(e){let t=e,n=t-bl,r=Math.floor(n/146097),o=yl(n,146097),i=Math.floor(o/36524),a=yl(o,36524),l=Math.floor(a/1461),s=yl(a,1461),u=Math.floor(s/365),c=400*r+100*i+4*l+u+(4!==i&&4!==u?1:0),[d,f]=Sl(c),p=t-wl(d,f,1,1),h=2;t<wl(d,f,3,1)?h=0:xl(f)&&(h=1);let g=Math.floor((12*(p+h)+373)/367),m=t-wl(d,f,g,1)+1;return new Rs(d,f,g,m)}toJulianDay(e){return wl(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return kl[xl(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return xl(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 Ol={"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 Dl(e,t){return t=os(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function jl(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 Pl(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=function(e){if(Intl.Locale){let t=Kl.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&Kl.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);return t&&Ol[t]||0}(t))%7;return r<0&&(r+=7),r}function Tl(e){return es(Date.now(),e)}function Ml(e){return ts(Tl(e))}function Al(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function _l(e,t){return Rl(e)-Rl(t)}function Rl(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let Ll=null;function Il(){return null==Ll&&(Ll=(new Intl.DateTimeFormat).resolvedOptions().timeZone),Ll}function Nl(e){return e.subtract({days:e.day-1})}function $l(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function zl(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Fl(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Bl(e,t){let n=Pl(e,t);return e.subtract({days:n})}const Kl=new Map;function Vl(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Hl(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Ul(e){return Wl(Cl((e=os(e,new El)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Wl(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 Zl(e,t){if("UTC"===t)return 0;if(e>0&&t===Il())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:o,hour:i,minute:a,second:l}=Gl(e,t);return Wl(n,r,o,i,a,l,0)-1e3*Math.floor(e/1e3)}const ql=new Map;function Gl(e,t){let n=ql.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"}),ql.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 Yl=864e5;function Xl(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=Gl(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 Jl(e,t,n="compatible"){let r=ns(e);if("UTC"===t)return Ul(r);if(t===Il()&&"compatible"===n){r=os(r,new El);let e=new Date,t=Cl(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=Ul(r),i=Zl(o-Yl,t),a=Zl(o+Yl,t),l=Xl(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 Ql(e,t,n="compatible"){return new Date(Jl(e,t,n))}function es(e,t){let n=Zl(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),l=r.getUTCHours(),s=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Fs(o,i,a,t,n,l,s,u,c)}function ts(e){return new Rs(e.calendar,e.era,e.year,e.month,e.day)}function ns(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 $s(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function rs(e){return new Is(e.hour,e.minute,e.second,e.millisecond)}function os(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,ds(r),r}function is(e,t,n){if(e instanceof Fs)return e.timeZone===t?e:function(e,t){let n=Ul(e)-e.offset;return os(es(n,t),e.calendar)}(e,t);return es(Jl(e,t,n),t)}const as=36e5;function ls(e,t){let n=e.copy(),r="hour"in n?ys(n,t):0;ss(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,us(n),cs(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,us(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,us(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 ss(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 us(e){for(;e.month<1;)ss(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ss(e,1)}function cs(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 ds(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),cs(e)}function fs(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function ps(e,t){return ls(e,fs(t))}function hs(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),ds(n),n}function gs(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),ms(n),n}function ms(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 vs(e,t){let n=e%t;return n<0&&(n+=t),n}function ys(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=vs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=vs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=vs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=vs(e.hour,24),t}(e)}function bs(e,t){let n=e.copy();return ys(n,t),n}function ws(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=Cs(i,n,0,t.length-1,null==r?void 0:r.round),o.era=t[i],ds(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=Cs(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=Cs(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=Cs(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),ds(o),o}function xs(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=Cs(t,n,i,a,null==r?void 0:r.round);break}case"minute":o.minute=Cs(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":o.second=Cs(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=Cs(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Cs(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 Ss(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=Jl(ls(ns(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else n=Ul(e)-e.offset;return n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),os(es(n,e.timeZone),e.calendar)}const ks=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Es=/^(\d{4})-(\d{2})-(\d{2})$/;function Os(e){let t=e.match(ks);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new Is(Ds(t[1],0,23),t[2]?Ds(t[2],0,59):0,t[3]?Ds(t[3],0,59):0,t[4]?1e3*Ds(t[4],0,1/0):0)}function Ds(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 js(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 Ps(e){let t=os(e,new El);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Ts(e){return`${Ps(e)}T${js(e)}`}function Ms(e){return`${Ts(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 As(e){let t,n="object"==typeof e[0]?e.shift():new El;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 _s=new WeakMap;class Rs{copy(){return this.era?new Rs(this.calendar,this.era,this.year,this.month,this.day):new Rs(this.calendar,this.year,this.month,this.day)}add(e){return ls(this,e)}subtract(e){return ps(this,e)}set(e){return hs(this,e)}cycle(e,t,n){return ws(this,e,t,n)}toDate(e){return Ql(this,e)}toString(){return Ps(this)}compare(e){return Al(this,e)}constructor(...e){xi(this,_s,{writable:!0,value:void 0});let[t,n,r,o,i]=As(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,ds(this)}}var Ls=new WeakMap;class Is{copy(){return new Is(this.hour,this.minute,this.second,this.millisecond)}add(e){return bs(this,e)}subtract(e){return function(e,t){return bs(e,fs(t))}(this,e)}set(e){return gs(this,e)}cycle(e,t,n){return xs(this,e,t,n)}toString(){return js(this)}compare(e){return _l(this,e)}constructor(e=0,t=0,n=0,r=0){xi(this,Ls,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,ms(this)}}var Ns=new WeakMap;class $s{copy(){return this.era?new $s(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new $s(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 ps(this,e)}set(e){return hs(gs(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return ws(this,e,t,n);default:return xs(this,e,t,n)}}toDate(e,t){return Ql(this,e,t)}toString(){return Ts(this)}compare(e){let t=Al(this,e);return 0===t?_l(this,ns(e)):t}constructor(...e){xi(this,Ns,{writable:!0,value:void 0});let[t,n,r,o,i]=As(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,ds(this)}}var zs=new WeakMap;class Fs{copy(){return this.era?new Fs(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Fs(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ss(this,e)}subtract(e){return function(e,t){return Ss(e,fs(t))}(this,e)}set(e,t){return function(e,t,n){let r=ns(e),o=gs(hs(r,t),t);return 0===o.compare(r)?e:os(es(Jl(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=ns(e),a=os(gs(i,{hour:t}),new El),l=[Jl(a,e.timeZone,"earlier"),Jl(a,e.timeZone,"later")].filter((t=>es(t,e.timeZone).day===a.day))[0],s=os(gs(i,{hour:o}),new El),u=[Jl(s,e.timeZone,"earlier"),Jl(s,e.timeZone,"later")].filter((t=>es(t,e.timeZone).day===s.day)).pop(),c=Ul(e)-e.offset,d=Math.floor(c/as),f=c%as;return c=Cs(d,n,Math.floor(l/as),Math.floor(u/as),null==r?void 0:r.round)*as+f,os(es(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return xs(e,t,n,r);case"era":case"year":case"month":case"day":return os(es(Jl(ws(ns(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=Ul(e)-e.offset;return new Date(t)}(this)}toString(){return Ms(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-is(e,this.timeZone).toDate().getTime()}constructor(...e){xi(this,zs,{writable:!0,value:void 0});let[t,n,r,o,i]=As(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,ds(this)}}const Bs=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Ks=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Vs=[1867,1911,1925,1988,2018],Hs=["meiji","taisho","showa","heisei","reiwa"];function Us(e){const t=Bs.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?Bs.length-1:0===t?0:t-1}function Ws(e){let t=Vs[Hs.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Rs(e.year+t,e.month,e.day)}class Zs extends El{fromJulianDay(e){let t=super.fromJulianDay(e),n=Us(t);return new Rs(this,Hs[n],t.year-Vs[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(Ws(e))}balanceDate(e){let t=Ws(e),n=Us(t);Hs[n]!==e.era&&(e.era=Hs[n],e.year=t.year-Vs[n]),this.constrainDate(e)}constrainDate(e){let t=Hs.indexOf(e.era),n=Ks[t];if(null!=n){let[r,o,i]=n,a=r-Vs[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]=Bs[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return Hs}getYearsInEra(e){let t=Hs.indexOf(e.era),n=Bs[t],r=Bs[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(Ws(e))}getMinimumMonthInYear(e){let t=qs(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=qs(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function qs(e){if(1===e.year){let t=Hs.indexOf(e.era);return Bs[t]}}class Gs extends El{fromJulianDay(e){let t=super.fromJulianDay(e),n=Cl(t.era,t.year);return new Rs(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Ys(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Ys(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Ys(e){let[t,n]=Sl(e.year+-543);return new Rs(t,n,e.month,e.day)}const Xs=1911;function Js(e){return"minguo"===e.era?e.year+Xs:1-e.year+Xs}function Qs(e){let t=e-Xs;return t>0?["minguo",t]:["before_minguo",1-t]}class eu extends El{fromJulianDay(e){let t=super.fromJulianDay(e),n=Cl(t.era,t.year),[r,o]=Qs(n);return new Rs(this,r,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(tu(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Qs(Js(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(tu(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-Xs}constructor(...e){super(...e),this.identifier="roc"}}function tu(e){let[t,n]=Sl(Js(e));return new Rs(t,n,e.month,e.day)}const nu=1948320,ru=[0,31,62,93,124,155,186,216,246,276,306,336];class ou{fromJulianDay(e){let t=e-nu,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 Rs(this,n,o+1,r-ru[o]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=ru[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 yl(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class iu extends El{fromJulianDay(e){let t,n,r,o=super.fromJulianDay(e),i=o.year-78,a=e-wl(o.era,o.year,1,1);if(a<80?(i--,t=xl(o.year-1)?31:30,a+=t+155+90+10):(t=xl(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 Rs(this,i,n,r)}toJulianDay(e){let t,n,r=e.year+78,[o,i]=Sl(r);return xl(i)?(t=31,n=wl(o,i,3,21)):(t=30,n=wl(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&&xl(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 au=1948440,lu=1948439,su=1300,uu=1600,cu=460322;function du(e,t,n,r){return r+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function fu(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+du(t,r,1,1)))/29.5)+1),i=n-du(t,r,o,1)+1;return new Rs(e,r,o,i)}function pu(e){return(14+11*e)%30<11}class hu{fromJulianDay(e){return fu(this,au,e)}toJulianDay(e){return du(au,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&pu(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return pu(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class gu extends hu{fromJulianDay(e){return fu(this,lu,e)}toJulianDay(e){return du(lu,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let mu,vu;function yu(e){return cu+vu[e-su]}function bu(e,t){let n=1<<11-(t-1);return 0==(mu[e-su]&n)?29:30}function wu(e,t){let n=yu(e);for(let r=1;r<t;r++)n+=bu(e,r);return n}function xu(e){return vu[e+1-su]-vu[e-su]}class Cu extends hu{fromJulianDay(e){let t=e-au,n=yu(su),r=yu(uu);if(t<n||t>r)return super.fromJulianDay(e);{let e=su-1,n=1,r=1;for(;r>0;){e++,r=t-yu(e)+1;let o=xu(e);if(r===o){n=12;break}if(r<o){let t=bu(e,n);for(n=1;r>t;)r-=t,n++,t=bu(e,n);break}}return new Rs(this,e,n,t-wu(e,n)+1)}}toJulianDay(e){return e.year<su||e.year>uu?super.toJulianDay(e):au+wu(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<su||e.year>uu?super.getDaysInMonth(e):bu(e.year,e.month)}getDaysInYear(e){return e.year<su||e.year>uu?super.getDaysInYear(e):xu(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",mu||(mu=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!vu){vu=new Uint32Array(uu-su+1);let e=0;for(let t=su;t<=uu;t++){vu[t-su]=e;for(let n=1;n<=12;n++)e+=bu(t,n)}}}}const Su=347997;function ku(e){return yl(7*e+1,19)<7}function Eu(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=29*t+Math.floor(n/25920);return yl(3*(r+1),7)<3&&(r+=1),r}function Ou(e){return Eu(e)+function(e){let t=Eu(e-1),n=Eu(e);return Eu(e+1)-n==356?2:n-t==382?1:0}(e)}function Du(e){return Ou(e+1)-Ou(e)}function ju(e,t){if(t>=6&&!ku(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=Du(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?ku(e)?30:0:30}class Pu{fromJulianDay(e){let t=e-Su,n=25920*t/765433,r=Math.floor((19*n+234)/235)+1,o=Ou(r),i=Math.floor(t-o);for(;i<1;)r--,o=Ou(r),i=Math.floor(t-o);let a=1,l=0;for(;l<i;)l+=ju(r,a),a++;return a--,l-=ju(r,a),new Rs(this,r,a,i-l)}toJulianDay(e){let t=Ou(e.year);for(let n=1;n<e.month;n++)t+=ju(e.year,n);return t+e.day+Su}getDaysInMonth(e){return ju(e.year,e.month)}getMonthsInYear(e){return ku(e.year)?13:12}getDaysInYear(e){return Du(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(ku(t.year)&&!ku(e.year)&&t.month>6?e.month--:!ku(t.year)&&ku(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Tu=1723856,Mu=1824665,Au=5500;function _u(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ru(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-_u(e,n,1,1))/30);return[n,r,t+1-_u(e,n,r,1)]}function Lu(e){return Math.floor(e%4/3)}function Iu(e,t){return t%13!=0?30:Lu(e)+5}class Nu{fromJulianDay(e){let[t,n,r]=Ru(Tu,e),o="AM";return t<=0&&(o="AA",t+=Au),new Rs(this,o,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Au),_u(Tu,t,e.month,e.day)}getDaysInMonth(e){return Iu(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Lu(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class $u extends Nu{fromJulianDay(e){let[t,n,r]=Ru(Tu,e);return t+=Au,new Rs(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class zu extends Nu{fromJulianDay(e){let[t,n,r]=Ru(Mu,e),o="CE";return t<=0&&(o="BCE",t=1-t),new Rs(this,o,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),_u(Mu,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Iu(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 Fu(e){switch(e){case"buddhist":return new Gs;case"ethiopic":return new Nu;case"ethioaa":return new $u;case"coptic":return new zu;case"hebrew":return new Pu;case"indian":return new iu;case"islamic-civil":return new hu;case"islamic-tbla":return new gu;case"islamic-umalqura":return new Cu;case"japanese":return new Zs;case"persian":return new ou;case"roc":return new eu;default:return new El}}let Bu=new Map;class Ku{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==Wu&&(Wu="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return Wu}()&&(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=Hu(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=Hu(e,t),this.options=t}}const Vu={true:{ja:"h11"},false:{}};function Hu(e,t={}){if("boolean"==typeof t.hour12&&function(){null==Uu&&(Uu="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return Uu}()){t={...t};let n=Vu[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(Bu.has(n))return Bu.get(n);let r=new Intl.DateTimeFormat(e,t);return Bu.set(n,r),r}let Uu=null;let Wu=null;function Zu(e){e=Oo(null!=e?e:{},qu);let{locale:n}=ll();return t.useMemo((()=>new Ku(n,e)),[n,e])}function qu(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 Gu=new Map,Yu=!1;try{Yu="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch($t){}let Xu=!1;try{Xu="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch($t){}const Ju={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Qu{format(e){let t="";if(t=Yu||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&&!Xu){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let i=null===(n=Ju[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 Yu||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Xu||"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&&!Xu){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=Ju[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(Gu.has(o))return Gu.get(o);let i=new Intl.NumberFormat(e,t);return Gu.set(o,i),i}(e,t),this.options=t}}const ec=new RegExp("^.*\\(.*\\).*$"),tc=["latn","arab","hanidec"];class nc{parse(e){return oc(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return oc(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return oc(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const rc=new Map;function oc(e,t,n){let r=ic(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let o of tc)if(o!==r.options.numberingSystem){let r=ic(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(r.isValidPartialNumber(n))return r}return r}function ic(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=rc.get(n);return r||(r=new ac(e,t),rc.set(n,r)),r}class ac{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=uc(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 nc(this.locale,e).parse(new Qu(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&ec.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=uc(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=uc(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=uc(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}),u=s.formatToParts(-10000.111),c=s.formatToParts(10000.111),d=sc.map((e=>s.formatToParts(e)));var f;let p=null!==(f=null===(o=u.find((e=>"minusSign"===e.type)))||void 0===o?void 0:o.value)&&void 0!==f?f:"-",h=null===(i=c.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=u.find((e=>"group"===e.type)))||void 0===l?void 0:l.value,y=u.filter((e=>!lc.has(e.type))).map((e=>cc(e.value))),b=d.flatMap((e=>e.filter((e=>!lc.has(e.type))).map((e=>cc(e.value))))),w=[...new Set([...y,...b])].sort(((e,t)=>t.length-e.length)),x=0===w.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),S=new Map(C.map(((e,t)=>[e,t]))),k=new RegExp(`[${C.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:m,group:v,literals:x,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 lc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),sc=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function uc(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function cc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dc(e={}){let{locale:n}=ll();return t.useMemo((()=>new Qu(n,e)),[n,e])}let fc=new Map;function pc(e){let{locale:t}=ll(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(fc.has(n))return fc.get(n);let r=new Intl.Collator(t,e);return fc.set(n,r),r}function hc(e){let n=pc({usage:"search",...e}),r=t.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t))),[n]),o=t.useCallback(((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t))),[n]),i=t.useCallback(((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,o=(t=t.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===n.compare(t,i))return!0}return!1}),[n]);return t.useMemo((()=>({startsWith:r,endsWith:o,contains:i})),[r,o,i])}var gc;gc={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 mc;mc={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 vc;vc={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 yc;yc={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 bc;bc={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 wc;wc={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 xc;xc={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 Cc;Cc={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 Sc;Sc={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 kc;kc={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 Ec;Ec={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 Oc;Oc={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 Dc;Dc={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 jc;jc={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 Pc;Pc={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 Tc;Tc={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 Mc;Mc={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 Ac;Ac={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 _c;_c={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 Rc;Rc={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 Lc;Lc={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 Ic;Ic={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 Nc;Nc={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 $c;$c={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 zc;zc={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 Fc;Fc={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 Bc;Bc={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 Kc;Kc={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 Vc;Vc={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 Hc;Hc={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 Uc;Uc={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 Wc;Wc={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 Zc;Zc={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 qc;qc={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 Gc={};function Yc(e){return e&&e.__esModule?e.default:e}Gc={"ar-AE":gc,"bg-BG":mc,"cs-CZ":vc,"da-DK":yc,"de-DE":bc,"el-GR":wc,"en-US":xc,"es-ES":Cc,"et-EE":Sc,"fi-FI":kc,"fr-FR":Ec,"he-IL":Oc,"hr-HR":Dc,"hu-HU":jc,"it-IT":Pc,"ja-JP":Tc,"ko-KR":Mc,"lt-LT":Ac,"lv-LV":_c,"nb-NO":Rc,"nl-NL":Lc,"pl-PL":Ic,"pt-BR":Nc,"pt-PT":$c,"ro-RO":zc,"ru-RU":Fc,"sk-SK":Bc,"sl-SI":Kc,"sr-SP":Vc,"sv-SE":Hc,"tr-TR":Uc,"uk-UA":Wc,"zh-CN":Zc,"zh-TW":qc};const Xc=new WeakMap;function Jc(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function Qc(e,n,r,o){let i=vl(Yc(Gc),"@react-aria/calendar"),a=Jc(e)||Jc(n),l=Zu({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:r}),s=Zu({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:r});return t.useMemo((()=>{if(Dl(e,Nl(e))){if(Dl(n,$l(e)))return l.format(e.toDate(r));if(Dl(n,$l(n)))return o?ed(l,i,e,n,r):l.formatRange(e.toDate(r),n.toDate(r))}return o?ed(s,i,e,n,r):s.formatRange(e.toDate(r),n.toDate(r))}),[e,n,l,s,i,r,o])}function ed(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 td=7e3;let nd=null;function rd(e,t="assertive",n=td){nd?nd.announce(e,t,n):(nd=new od,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?nd.announce(e,t,n):setTimeout((()=>{(null==nd?void 0:nd.isAttached())&&(null==nd||nd.announce(e,t,n))}),100))}class od{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=td){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 id(e,n){let r=vl(function(e){return e&&e.__esModule?e.default:e}(Gc),"@react-aria/calendar"),o=$r(e),i=Qc(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),a=Qc(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);co((()=>{n.isFocused||rd(a)}),[a]);let l=function(e){let n,r,o=vl(Yc(Gc),"@react-aria/calendar");"highlightedRange"in e?({start:n,end:r}=e.highlightedRange||{}):n=r=e.value;let i=Zu({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Jc(n)||Jc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return t.useMemo((()=>{if(!a&&n&&r){if(Dl(n,r)){let t=i.format(n.toDate(e.timeZone));return o.format("selectedDateDescription",{date:t})}{let t=ed(i,o,n,r,e.timeZone);return o.format("selectedRangeDescription",{dateRange:t})}}return""}),[n,r,a,e.timeZone,o,i])}(n);co((()=>{l&&rd(l,"polite",4e3)}),[l]);let s=Or([Boolean(e.errorMessage),e.isInvalid,e.validationState]);Xc.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:l});let[u,c]=t.useState(!1),d=e.isDisabled||n.isNextVisibleRangeInvalid();d&&u&&(c(!1),n.setFocused(!0));let[f,p]=t.useState(!1),h=e.isDisabled||n.isPreviousVisibleRangeInvalid();return h&&f&&(p(!1),n.setFocused(!0)),{calendarProps:Ar(o,so({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":r.format("next"),isDisabled:d,onFocusChange:c},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:h,onFocusChange:p},errorMessageProps:{id:s},title:i}}function ad(e,n,r){let{date:o,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:l}=Xc.get(n),s=vl(function(e){return e&&e.__esModule?e.default:e}(Gc),"@react-aria/calendar"),u=Zu({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Jc(o),timeZone:n.timeZone}),c=n.isSelected(o),d=n.isCellFocused(o);i=i||n.isCellDisabled(o);let f=n.isCellUnavailable(o),p=!i&&!f,h=n.isValueInvalid&&("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&o.compare(n.highlightedRange.start)>=0&&o.compare(n.highlightedRange.end)<=0:n.value&&Dl(n.value,o));h&&(c=!0),o=Oo(o,jl);let g=t.useMemo((()=>o.toDate(n.timeZone)),[o,n.timeZone]),m=function(e,t){return Dl(e,Ml(t))}(o,n.timeZone),v=t.useMemo((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(Dl(o,n.value.start)||Dl(o,n.value.end))&&(e=l+", "),e+=u.format(g),m?e=s.format(c?"todayDateSelected":"todayDate",{date:e}):c&&(e=s.format("dateSelected",{date:e})),n.minValue&&Dl(o,n.minValue)?e+=", "+s.format("minimumDate"):n.maxValue&&Dl(o,n.maxValue)&&(e+=", "+s.format("maximumDate")),e}),[u,g,s,c,m,o,n,l]),y="";"anchorDate"in n&&d&&!n.isReadOnly&&p&&(y=n.anchorDate?s.format("finishRangeSelectionPrompt"):s.format("startRangeSelectionPrompt"));let b=wo(y),w=t.useRef(!1),x=t.useRef(!1),C=t.useRef(null),{pressProps:S,isPressed:k}=Oi({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!p||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(o);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!h){if(Dl(o,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(o),n.setDragging(!0),void(x.current=!0);if(Dl(o,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(o),n.setDragging(!0),void(x.current=!0)}let t=()=>{n.setDragging(!0),C.current=null,n.selectDate(o),n.setFocusedDate(o),w.current=!0};"touch"===e.pointerType?C.current=setTimeout(t,200):t()}},onPressEnd(){x.current=!1,w.current=!1,clearTimeout(C.current),C.current=null},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(o),n.setFocusedDate(o))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&C.current&&(n.selectDate(o),n.setFocusedDate(o)),"anchorDate"in n))if(x.current)n.setAnchorDate(o);else if(n.anchorDate&&!w.current)n.selectDate(o),n.setFocusedDate(o);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(o),n.setFocusedDate(o));else{n.selectDate(o);let e=o.add({days:1});n.isInvalid(e)&&(e=o.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}}),E=null;i||(E=Dl(o,n.focusedDate)?0:-1),t.useEffect((()=>{d&&r.current&&(zr(r.current),"pointer"!==oa()&&document.activeElement===r.current&&ko(r.current,{containingElement:go(r.current)}))}),[d,r]);let O=Zu({day:"numeric",timeZone:n.timeZone,calendar:o.calendar.identifier}),D=t.useMemo((()=>O.formatToParts(g).find((e=>"day"===e.type)).value),[O,g]);return{cellProps:{role:"gridcell","aria-disabled":!p||null,"aria-selected":c||null,"aria-invalid":h||null},buttonProps:Ar(S,{onFocus(){i||n.setFocusedDate(o)},tabIndex:E,role:"button","aria-disabled":!p||null,"aria-label":v,"aria-invalid":h||null,"aria-describedby":[h?a:null,b["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&p&&n.highlightDate(o)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:k,isFocused:d,isSelected:c,isDisabled:i,isUnavailable:f,isOutsideVisibleRange:o.compare(n.visibleRange.start)<0||o.compare(n.visibleRange.end)>0,isInvalid:h,formattedDate:D}}function ld(e,n,r){let{validationBehavior:o,focus:i}=e;wr((()=>{if("native"===o&&(null==r?void 0:r.current)){let t=n.realtimeValidation.isInvalid?n.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(t),r.current.hasAttribute("title")||(r.current.title=""),n.realtimeValidation.isInvalid||n.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:sd(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let a=xr((()=>{n.resetValidation()})),l=xr((e=>{var t;n.displayValidation.isInvalid||n.commitValidation();let o=null==r||null===(t=r.current)||void 0===t?void 0:t.form;var a;!e.defaultPrevented&&r&&o&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(o)===r.current&&(i?i():null===(a=r.current)||void 0===a||a.focus(),ia("keyboard"));e.preventDefault()})),s=xr((()=>{n.commitValidation()}));t.useEffect((()=>{let e=null==r?void 0:r.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)}}),[r,l,s,a,o])}function sd(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 ud={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},cd={...ud,customError:!0,valid:!1},dd={isInvalid:!1,validationDetails:ud,validationErrors:[]},fd=t.createContext({}),pd="__formValidationState"+Date.now();function hd(e){if(e[pd]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[pd];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return function(e){let{isInvalid:n,validationState:r,name:o,value:i,builtinValidation:a,validate:l,validationBehavior:s="aria"}=e;r&&(n||(n="invalid"===r));let u=void 0!==n?{isInvalid:n,validationErrors:[],validationDetails:cd}:null,c=t.useMemo((()=>md(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return gd(n)}return[]}(l,i))),[l,i]);(null==a?void 0:a.validationDetails.valid)&&(a=null);let d=t.useContext(fd),f=t.useMemo((()=>o?Array.isArray(o)?o.flatMap((e=>gd(d[e]))):gd(d[o]):[]),[d,o]),[p,h]=t.useState(d),[g,m]=t.useState(!1);d!==p&&(h(d),m(!1));let v=t.useMemo((()=>md(g?[]:f)),[g,f]),y=t.useRef(dd),[b,w]=t.useState(dd),x=t.useRef(dd),C=()=>{if(!S)return;k(!1);let e=c||a||y.current;vd(e,x.current)||(x.current=e,w(e))},[S,k]=t.useState(!1);return t.useEffect(C),{realtimeValidation:u||v||c||a||dd,displayValidation:"native"===s?u||v||b:u||v||c||a||b,updateValidation(e){"aria"!==s||vd(b,e)?y.current=e:w(e)},resetValidation(){let e=dd;vd(e,x.current)||(x.current=e,w(e)),"native"===s&&k(!1),m(!0)},commitValidation(){"native"===s&&k(!0),m(!0)}}}(e)}function gd(e){return e?Array.isArray(e)?e:[e]:[]}function md(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:cd}:null}function vd(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 yd(...e){let t=new Set,n=!1,r={...ud};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 bd(e,n,r){let o=hd({...e,value:n.isSelected}),{isInvalid:i,validationErrors:a,validationDetails:l}=o.displayValidation,{labelProps:s,inputProps:u,isSelected:c,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":u,validationState:c="valid",isInvalid:d}=e;null!=l||null!=s||null!=u||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:f,isPressed:p}=Oi({isDisabled:r}),{pressProps:h,isPressed:g}=Oi({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:m}=Xa(e,n),v=Ar(f,m),y=$r(e,{labelable:!0});return Do(n,t.isSelected,t.setSelected),{labelProps:Ar(h,{onClick:e=>e.preventDefault()}),inputProps:Ar(y,{"aria-invalid":d||"invalid"===c||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"===c}}({...e,isInvalid:i},n,r);ld(e,o,r);let{isIndeterminate:h,isRequired:g,validationBehavior:m="aria"}=e;return t.useEffect((()=>{r.current&&(r.current.indeterminate=!!h)})),{labelProps:s,inputProps:{...u,checked:c,"aria-required":g&&"aria"===m||void 0,required:g&&"native"===m},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:i,validationErrors:a,validationDetails:l}}const wd=new WeakMap;function xd(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=kr(t);let a=kr(),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:so({id:t,"aria-label":o,"aria-labelledby":r})}}function Cd(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=xd(e),l=Or([Boolean(t),Boolean(n),r,o]),s=Or([Boolean(t),Boolean(n),r,o]);return a=Ar(a,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:l},errorMessageProps:{id:s}}}function Sd(e={}){let{isReadOnly:t}=e,[n,r]=jo(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}function kd(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 Ed={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 Od(e={}){let{style:n,isFocusable:r}=e,[o,i]=t.useState(!1),{focusWithinProps:a}=ua({isDisabled:!r,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:t.useMemo((()=>o?n:n?{...Ed,...n}:Ed),[o])}}}function Dd(e){let{children:n,elementType:r="div",isFocusable:o,style:i,...a}=e,{visuallyHiddenProps:l}=Od(e);return t.createElement(r,Ar(a,l),n)}function jd(e,n){let{inputElementType:r="input",isDisabled:o=!1,isRequired:i=!1,isReadOnly:a=!1,type:l="text",validationBehavior:s="aria"}=e,[u,c]=jo(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=Xa(e,n),f=hd({...e,value:u}),{isInvalid:p,validationErrors:h,validationDetails:g}=f.displayValidation,{labelProps:m,fieldProps:v,descriptionProps:y,errorMessageProps:b}=Cd({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=$r(e,{labelable:!0});const x={type:l,pattern:e.pattern};return Do(n,u,c),ld(e,f,n),t.useEffect((()=>{if(n.current instanceof Pr(n.current).HTMLTextAreaElement){let e=n.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[n]),{labelProps:m,inputProps:Ar(w,"input"===r?x:void 0,{disabled:o,readOnly:a,required:i&&"native"===s,"aria-required":i&&"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:u,onChange:e=>c(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 Pd(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var Td={};function Md(e){const n=t.useRef(void 0);let{value:r,textValue:o,minValue:i,maxValue:a,isDisabled:l,isReadOnly:s,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:g}=e;const m=vl(function(e){return e&&e.__esModule?e.default:e}(Td),"@react-aria/spinbutton"),v=()=>clearTimeout(n.current);t.useEffect((()=>()=>v()),[]);let y=t.useRef(!1),b=()=>{y.current=!0},w=()=>{y.current=!1},x=""===o?m.format("Empty"):(o||`${r}`).replace("-","−");t.useEffect((()=>{var e;y.current&&(e="assertive",nd&&nd.clear(e),rd(x,"assertive"))}),[x]);const C=xr((e=>{v(),null==c||c(),n.current=window.setTimeout((()=>{(void 0===a||isNaN(a)||void 0===r||isNaN(r)||r<a)&&C(60)}),e)})),S=xr((e=>{v(),null==f||f(),n.current=window.setTimeout((()=>{(void 0===i||isNaN(i)||void 0===r||isNaN(r)||r>i)&&S(60)}),e)}));let k=e=>{e.preventDefault()},{addGlobalListener:E,removeAllGlobalListeners:O}=lo();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===r||isNaN(r)?void 0:r,"aria-valuetext":x,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":l||void 0,"aria-readonly":s||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||s))switch(e.key){case"PageUp":if(d){e.preventDefault(),null==d||d();break}case"ArrowUp":case"Up":c&&(e.preventDefault(),null==c||c());break;case"PageDown":if(p){e.preventDefault(),null==p||p();break}case"ArrowDown":case"Down":f&&(e.preventDefault(),null==f||f());break;case"Home":h&&(e.preventDefault(),null==h||h());break;case"End":g&&(e.preventDefault(),null==g||g())}},onFocus:b,onBlur:w},incrementButtonProps:{onPressStart:()=>{C(400),E(window,"contextmenu",k)},onPressEnd:()=>{v(),O()},onFocus:b,onBlur:w},decrementButtonProps:{onPressStart:()=>{S(400),E(window,"contextmenu",k)},onPressEnd:()=>{v(),O()},onFocus:b,onBlur:w}}}Td={"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 Ad;Ad={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var _d;_d={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var Rd;Rd={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Ld;Ld={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Id;Id={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Nd;Nd={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var $d;$d={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var zd;zd={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Fd;Fd={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Bd;Bd={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Kd;Kd={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Vd;Vd={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var Hd;Hd={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var Ud;Ud={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var Wd;Wd={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var Zd;Zd={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var qd;qd={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var Gd;Gd={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var Yd;Yd={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Xd;Xd={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var Jd;Jd={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Qd;Qd={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var ef;ef={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 nf;nf={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var rf;rf={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var of;of={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var af;af={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 sf;sf={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var uf;uf={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var cf;cf={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var df;df={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var ff;ff={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var pf={};function hf(e,n,r){let{id:o,decrementAriaLabel:i,incrementAriaLabel:a,isDisabled:l,isReadOnly:s,isRequired:u,minValue:c,maxValue:d,autoFocus:f,label:p,formatOptions:h,onBlur:g=(()=>{}),onFocus:m,onFocusChange:v,onKeyDown:y,onKeyUp:b,description:w,errorMessage:x,isWheelDisabled:C,...S}=e,{increment:k,incrementToMax:E,decrement:O,decrementToMin:D,numberValue:j,inputValue:P,commit:T,commitValidation:M}=n;const A=vl(function(e){return e&&e.__esModule?e.default:e}(pf),"@react-aria/numberfield");let _=kr(o),{focusProps:R}=Ki({onBlur(){T()}}),L=dc(h),I=t.useMemo((()=>L.resolvedOptions()),[L]),N=dc({...h,currencySign:void 0}),$=t.useMemo((()=>isNaN(j)?"":N.format(j)),[N,j]),{spinButtonProps:z,incrementButtonProps:F,decrementButtonProps:B}=Md({isDisabled:l,isReadOnly:s,isRequired:u,maxValue:d,minValue:c,onIncrement:k,onIncrementToMax:E,onDecrement:O,onDecrementToMin:D,value:j,textValue:$}),[K,V]=t.useState(!1),{focusWithinProps:H}=ua({isDisabled:l,onFocusWithinChange:V}),U=t.useCallback((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?k():e.deltaY<0&&O())}),[O,k]);var W;!function(e,n){let{onScroll:r,isDisabled:o}=e,i=t.useCallback((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))}),[r]);xo(n,"wheel",o?void 0:i)}({onScroll:U,isDisabled:C||l||s||!K},r);let Z=(null!==(W=I.maximumFractionDigits)&&void 0!==W?W:0)>0,q=void 0===n.minValue||isNaN(n.minValue)||n.minValue<0,G="numeric";Ur()?q?G="text":Z&&(G="decimal"):Xr()&&(q?G="numeric":Z&&(G="decimal"));let Y=$r(e),X=t.useCallback((e=>{"Enter"===e.key?(T(),M()):e.continuePropagation()}),[T,M]),{isInvalid:J,validationErrors:Q,validationDetails:ee}=n.displayValidation,{labelProps:te,inputProps:ne,descriptionProps:re,errorMessageProps:oe}=function(e,n,r){let o=xr((e=>{let t,o=r.current;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":t=o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentForward":t=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":t=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":t=o.value.slice(o.selectionStart);break;default:null!=e.data&&(t=o.value.slice(0,o.selectionStart)+e.data+o.value.slice(o.selectionEnd))}null!=t&&n.validate(t)||e.preventDefault()}));t.useEffect((()=>{if(!Pd())return;let e=r.current;return e.addEventListener("beforeinput",o,!1),()=>{e.removeEventListener("beforeinput",o,!1)}}),[r,o]);let i=Pd()?null:e=>{let t=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);n.validate(t)||e.preventDefault()},{labelProps:a,inputProps:l,descriptionProps:s,errorMessageProps:u,...c}=jd(e,r),d=t.useRef(null);return{inputProps:Ar(l,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:n}=r.current;d.current={value:e,selectionStart:t,selectionEnd:n}},onCompositionEnd(){if(!n.validate(r.current.value)){let{value:e,selectionStart:t,selectionEnd:o}=d.current;r.current.value=e,r.current.setSelectionRange(t,o),n.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:u,...c}}({...S,...Y,name:void 0,label:p,autoFocus:f,isDisabled:l,isReadOnly:s,isRequired:u,validate:void 0,[pd]:n,value:P,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:_,type:"text",inputMode:G,onChange:e=>{n.validate(e)&&n.setInputValue(e)},onBlur:g,onFocus:m,onFocusChange:v,onKeyDown:t.useMemo((()=>Dr(X,y)),[X,y]),onKeyUp:b,description:w,errorMessage:x},n,r);Do(r,n.numberValue,n.setNumberValue);let ie=Ar(z,R,ne,{role:null,"aria-roledescription":Zr()?null:A.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ie["aria-required"]=void 0);let ae,le=e=>{var t;document.activeElement!==r.current&&("mouse"===e.pointerType?null===(t=r.current)||void 0===t||t.focus():e.target.focus())},se=e["aria-label"]||("string"==typeof e.label?e.label:"");se||(ae=null!=e.label?te.id:e["aria-labelledby"]);let ue=kr(),ce=kr();return{groupProps:{...H,role:"group","aria-disabled":l,"aria-invalid":J?"true":void 0},labelProps:te,inputProps:ie,incrementButtonProps:Ar(F,{"aria-label":a||A.format("increase",{fieldLabel:se}).trim(),id:ae&&!a?ue:null,"aria-labelledby":ae&&!a?`${ue} ${ae}`:null,"aria-controls":_,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!n.canIncrement,onPressStart:le}),decrementButtonProps:Ar(B,{"aria-label":i||A.format("decrease",{fieldLabel:se}).trim(),id:ae&&!i?ce:null,"aria-labelledby":ae&&!i?`${ce} ${ae}`:null,"aria-controls":_,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!n.canDecrement,onPressStart:le}),errorMessageProps:oe,descriptionProps:re,isInvalid:J,validationErrors:Q,validationDetails:ee}}pf={"ar-AE":Ad,"bg-BG":_d,"cs-CZ":Rd,"da-DK":Ld,"de-DE":Id,"el-GR":Nd,"en-US":$d,"es-ES":zd,"et-EE":Fd,"fi-FI":Bd,"fr-FR":Kd,"he-IL":Vd,"hr-HR":Hd,"hu-HU":Ud,"it-IT":Wd,"ja-JP":Zd,"ko-KR":qd,"lt-LT":Gd,"lv-LV":Yd,"nb-NO":Xd,"nl-NL":Jd,"pl-PL":Qd,"pt-BR":ef,"pt-PT":tf,"ro-RO":nf,"ru-RU":rf,"sk-SK":of,"sl-SI":af,"sr-SP":lf,"sv-SE":sf,"tr-TR":uf,"uk-UA":cf,"zh-CN":df,"zh-TW":ff};var gf;gf={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 mf;mf={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:"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 yf;yf={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 bf;bf={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 wf;wf={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 xf;xf={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 Cf;Cf={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 Sf;Sf={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 kf;kf={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 Ef;Ef={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 Of;Of={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 Df;Df={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 jf;jf={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 Pf;Pf={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 Tf;Tf={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 Mf;Mf={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 Af;Af={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 _f;_f={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 Rf;Rf={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 Lf;Lf={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 If;If={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 Nf;Nf={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 $f;$f={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 zf;zf={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 Ff;Ff={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 Bf;Bf={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 Kf;Kf={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 Vf;Vf={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 Hf;Hf={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 Uf;Uf={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 Wf;Wf={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 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={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 Gf={};Gf={"ar-AE":gf,"bg-BG":mf,"cs-CZ":vf,"da-DK":yf,"de-DE":bf,"el-GR":wf,"en-US":xf,"es-ES":Cf,"et-EE":Sf,"fi-FI":kf,"fr-FR":Ef,"he-IL":Of,"hr-HR":Df,"hu-HU":jf,"it-IT":Pf,"ja-JP":Tf,"ko-KR":Mf,"lt-LT":Af,"lv-LV":_f,"nb-NO":Rf,"nl-NL":Lf,"pl-PL":If,"pt-BR":Nf,"pt-PT":$f,"ro-RO":zf,"ru-RU":Ff,"sk-SK":Bf,"sl-SI":Kf,"sr-SP":Vf,"sv-SE":Hf,"tr-TR":Uf,"uk-UA":Wf,"zh-CN":Zf,"zh-TW":qf};const Yf={top:"top",bottom:"top",left:"left",right:"left"},Xf={top:"bottom",bottom:"top",left:"right",right:"left"},Jf={top:"left",left:"top"},Qf={top:"height",left:"width"},ep={width:"totalWidth",height:"totalHeight"},tp={};let np="undefined"!=typeof document&&window.visualViewport;function rp(e){let t=0,n=0,r=0,o=0,i=0,a=0,l={},s=(null==np?void 0:np.scale)>1;if("BODY"===e.tagName){let s=document.documentElement;var u,c;r=s.clientWidth,o=s.clientHeight,t=null!==(u=null==np?void 0:np.width)&&void 0!==u?u:r,n=null!==(c=null==np?void 0:np.height)&&void 0!==c?c:o,l.top=s.scrollTop||e.scrollTop,l.left=s.scrollLeft||e.scrollLeft,np&&(i=np.offsetTop,a=np.offsetLeft)}else({width:t,height:n,top:i,left:a}=cp(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,o=n;return Gr()&&("BODY"===e.tagName||"HTML"===e.tagName)&&s&&(l.top=0,l.left=0,i=np.pageTop,a=np.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:l,top:i,left:a}}function op(e,t,n,r,o,i,a){let l=o.scroll[e],s=r[Qf[e]],u=r.scroll[Yf[e]]+i,c=s+r.scroll[Yf[e]]-i,d=t-l+a[e]-r[Yf[e]],f=t-l+n+a[e]-r[Yf[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function ip(e){if(tp[e])return tp[e];let[t,n]=e.split(" "),r=Yf[t]||"right",o=Jf[r];Yf[n]||(n="center");let i=Qf[r],a=Qf[o];return tp[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},tp[e]}function ap(e,t,n,r,o,i,a,l,s,u){let{placement:c,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+u,y=e[p]+e[g]-s-u;if(m[p]=Po(m[p],v,y),c===f){const n=l?a[h]:t[ep[h]];m[Xf[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[Xf[l]]-o):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[Xf[l]]-o)}function sp(e,t,n,r,o,i,a,l,s,u,c,d,f,p,h,g){let m=ip(e),{size:v,crossAxis:y,crossSize:b,placement:w,crossPlacement:x}=m,C=ap(t,l,n,m,c,d,u,f,h,g),S=c,k=lp(l,u,t,o,i+c,m);if(a&&r[v]>k){let e=ip(`${Xf[w]} ${x}`),r=ap(t,l,n,e,c,d,u,f,h,g);lp(l,u,t,o,i+c,e)>k&&(m=e,C=r,S=c)}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=op(y,C[y],n[b],l,s,i,u);C[y]+=O;let D=function(e,t,n,r,o,i,a,l){const s=r?n.height:t[ep.height];let u=null!=e.top?n.top+e.top:n.top+(s-e.bottom-a),c="top"!==l?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-2*i,c)}(C,l,u,f,o,i,n.height,E);p&&p<D&&(D=p),n.height=Math.min(n.height,D),C=ap(t,l,n,m,S,d,u,f,h,g),O=op(y,C[y],n[b],l,s,i,u),C[y]+=O;let j={},P=t[y]+.5*t[b]-C[y]-o[Yf[y]];const T=h/2+g,M="left"===Yf[y]?o.left+o.right:o.top+o.bottom,A=n[b]-M-h/2-g,_=Po(P,t[y]+h/2-(C[y]+o[Yf[y]]),t[y]+t[b]-h/2-(C[y]+o[Yf[y]]));return j[y]=Po(_,T,A),{position:C,maxHeight:D,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:m.placement}}function up(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,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&&!fp(t)&&(t=document.documentElement);if(null==t)for(t=e.parentElement;t&&!fp(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?cp(n):dp(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=cp(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:(x=o).scrollTop,left:x.scrollLeft,width:x.scrollWidth,height:x.scrollHeight};var x;let C=rp(l),S=rp(p),k="BODY"===l.tagName?cp(p):dp(p,l);return"HTML"===p.tagName&&"BODY"===l.tagName&&(S.scroll.top=0,S.scroll.left=0),sp(t,v,y,w,b,i,a,C,S,k,s,u,m,c,d,f)}function cp(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 dp(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=cp(e);let r=cp(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 fp(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 pp=new WeakMap;let hp="undefined"!=typeof document&&window.visualViewport;function gp(e){let{direction:n}=ll(),{arrowSize:r=0,targetRef:o,overlayRef:i,scrollRef:a=i,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=("undefined"!=typeof document?document.body:null),offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:g,maxHeight:m,arrowBoundaryOffset:v=0}=e,[y,b]=t.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,l,i.current,o.current,a.current,s,u,c,d,f,h,n,m,v,r],x=t.useRef(null==hp?void 0:hp.scale);t.useEffect((()=>{h&&(x.current=null==hp?void 0:hp.scale)}),[h]);let C=t.useCallback((()=>{if(!(!1!==p&&h&&i.current&&o.current&&c))return;if((null==hp?void 0:hp.scale)!==x.current)return;let e=null;if(a.current&&a.current.contains(document.activeElement)){let t=document.activeElement.getBoundingClientRect(),n=a.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 t=i.current;var g,y;!m&&i.current&&(t.style.top="0px",t.style.bottom="",t.style.maxHeight=(null!==(y=null===(g=window.visualViewport)||void 0===g?void 0:g.height)&&void 0!==y?y:window.innerHeight)+"px");let w=up({placement:mp(l,n),overlayNode:i.current,targetNode:o.current,scrollNode:a.current||i.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:m,arrowSize:r,arrowBoundaryOffset:v});if(t.style.top="",t.style.bottom="",t.style.left="",t.style.right="",Object.keys(w.position).forEach((e=>t.style[e]=w.position[e]+"px")),t.style.maxHeight=null!=w.maxHeight?w.maxHeight+"px":void 0,e){let t=document.activeElement.getBoundingClientRect(),n=a.current.getBoundingClientRect(),r=t[e.type]-n[e.type];a.current.scrollTop+=r-e.offset}b(w)}),w);var S;wr(C,w),wr((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=C]),fo({ref:i,onResize:C}),fo({ref:o,onResize:C});let k=t.useRef(!1);wr((()=>{let e,t=()=>{k.current=!0,clearTimeout(e),e=setTimeout((()=>{k.current=!1}),500),C()},n=()=>{k.current&&t()};return null==hp||hp.addEventListener("resize",t),null==hp||hp.addEventListener("scroll",n),()=>{null==hp||hp.removeEventListener("resize",t),null==hp||hp.removeEventListener("scroll",n)}}),[C]);let E=t.useCallback((()=>{k.current||g()}),[g,k]);var O;return function(e){let{triggerRef:n,isOpen:r,onClose:o}=e;t.useEffect((()=>{if(!r||null===o)return;let e=e=>{let t=e.target;if(!n.current||t instanceof Node&&!t.contains(n.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let r=o||pp.get(n.current);r&&r()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[r,o,n])}({triggerRef:o,isOpen:h,onClose:g&&E}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...y.position,maxHeight:null!==(O=y.maxHeight)&&void 0!==O?O:"100vh"}},placement:y.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:C}}function mp(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const vp=[];function yp(e,n){let{onClose:r,shouldCloseOnBlur:o,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=e;t.useEffect((()=>(i&&vp.push(n),()=>{let e=vp.indexOf(n);e>=0&&vp.splice(e,1)})),[i,n]);let u=()=>{vp[vp.length-1]===n&&r&&r()};ma({ref:n,onInteractOutside:a&&i?e=>{s&&!s(e.target)||(vp[vp.length-1]===n&&(e.stopPropagation(),e.preventDefault()),u())}:null,onInteractOutsideStart:e=>{s&&!s(e.target)||vp[vp.length-1]===n&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ua({isDisabled:!o,onBlurWithin:e=>{e.relatedTarget&&!La(e.relatedTarget,Oa)&&(s&&!s(e.relatedTarget)||r())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||l||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const bp="undefined"!=typeof document&&window.visualViewport,wp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let xp,Cp=0;function Sp(e={}){let{isDisabled:t}=e;wr((()=>{if(!t)return Cp++,1===Cp&&(xp=Zr()?function(){let e,t,n=n=>{e=go(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=kp(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;Dp(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;Dp(t)&&(l(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",bp&&(bp.height<window.innerHeight?requestAnimationFrame((()=>{Op(t)})):bp.addEventListener("resize",(()=>Op(t)),{once:!0}))})))},a=null,l=()=>{if(a)return;let e=()=>{window.scrollTo(0,0)},t=window.pageXOffset,n=window.pageYOffset;a=Dr(Ep(window,"scroll",e),kp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),kp(document.documentElement,"overflow","hidden"),kp(document.body,"marginTop",`-${n}px`),(()=>{window.scrollTo(t,n)})),window.scrollTo(0,0)},s=Dr(Ep(document,"touchstart",n,{passive:!1,capture:!0}),Ep(document,"touchmove",r,{passive:!1,capture:!0}),Ep(document,"touchend",o,{passive:!1,capture:!0}),Ep(document,"focus",i,!0));return()=>{null==t||t(),null==a||a(),s()}}():Dr(kp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),kp(document.documentElement,"overflow","hidden"))),()=>{Cp--,0===Cp&&xp()}}),[t])}function kp(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ep(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Op(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=go(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 Dp(e){return e instanceof HTMLInputElement&&!wp.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const jp=t.createContext(null);function Pp(e){let{children:n}=e,r=t.useContext(jp),[o,i]=t.useState(0),a=t.useMemo((()=>({parent:r,modalCount:o,addModal(){i((e=>e+1)),r&&r.addModal()},removeModal(){i((e=>e-1)),r&&r.removeModal()}})),[r,o]);return t.createElement(jp.Provider,{value:a},n)}function Tp(e){let{modalProviderProps:n}=function(){let e=t.useContext(jp);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}();return t.createElement("div",{"data-overlay-container":!0,...e,...n})}function Mp(e){return t.createElement(Pp,null,t.createElement(Tp,e))}function Ap(e){let n=gr(),{portalContainer:o=(n?null:document.body),...i}=e;if(t.useEffect((()=>{if(null==o?void 0:o.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")}),[o]),!o)return null;let a=t.createElement(Mp,i);return r.createPortal(a,o)}var _p={};function Rp(e){let{onDismiss:n,...r}=e,o=vl(function(e){return e&&e.__esModule?e.default:e}(_p),"@react-aria/overlays"),i=so(r,o.format("dismiss"));return t.createElement(Dd,null,t.createElement("button",{...i,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}_p={"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 Lp=new WeakMap,Ip=[];function Np(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=Lp.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),Lp.set(e,n+1))};Ip.length&&Ip[Ip.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 Ip.push(l),()=>{a.disconnect();for(let e of r){let t=Lp.get(e);1===t?(e.removeAttribute("aria-hidden"),Lp.delete(e)):Lp.set(e,t-1)}l===Ip[Ip.length-1]?(Ip.pop(),Ip.length&&Ip[Ip.length-1].observe()):Ip.splice(Ip.indexOf(l),1)}}const $p=t.createContext({});const zp=t.createContext(null);function Fp(e){let n=gr(),{portalContainer:o=(n?null:document.body),isExiting:i}=e,[a,l]=t.useState(!1),s=t.useMemo((()=>({contain:a,setContain:l})),[a,l]),{getContainer:u}=null!==(c=t.useContext($p))&&void 0!==c?c:{};var c;if(!e.portalContainer&&u&&(o=u()),!o)return null;let d=e.children;return e.disableFocusManagement||(d=t.createElement(Da,{restoreFocus:!0,contain:a&&!i},d)),d=t.createElement(zp.Provider,{value:s},t.createElement(zi,null,d)),r.createPortal(d,o)}function Bp(){let e=t.useContext(zp),n=null==e?void 0:e.setContain;wr((()=>{null==n||n(!0)}),[n])}const Kp=new WeakMap;function Vp(e,t){let n=Kp.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 Hp(e){return qr()?e.altKey:e.ctrlKey}function Up(e){return Hr()?e.metaKey:e.ctrlKey}const Wp=1e3;function Zp(e){let{keyboardDelegate:n,selectionManager:r,onTypeSelect:o}=e,i=t.useRef({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?e=>{let t=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!t||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===t&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=t;let a=n.getKeyForSearch(i.search,r.focusedKey);null==a&&(a=n.getKeyForSearch(i.search)),null!=a&&(r.setFocusedKey(a),o&&o(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),Wp)}:null}}}function qp(e){let{selectionManager:n,keyboardDelegate:o,ref:i,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:c="replace"===n.selectionBehavior,disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:g=i,linkBehavior:m="action"}=e,{direction:v}=ll(),y=eo(),b=t.useRef({top:0,left:0});xo(g,"scroll",h?null:()=>{b.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const w=t.useRef(a);t.useEffect((()=>{if(w.current){let e=null;"first"===a&&(e=o.getFirstKey()),"last"===a&&(e=o.getLastKey());let t=n.selectedKeys;if(t.size)for(let r of t)if(n.canSelectItem(r)){e=r;break}n.setFocused(!0),n.setFocusedKey(e),null!=e||f||Ca(i.current)}}),[]);let x=t.useRef(n.focusedKey);t.useEffect((()=>{if(n.isFocused&&null!=n.focusedKey&&(n.focusedKey!==x.current||w.current)&&(null==g?void 0:g.current)){let e=oa(),t=i.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||w.current)&&(Co(g.current,t),"virtual"!==e&&ko(t,{containingElement:i.current}))}!f&&n.isFocused&&null==n.focusedKey&&null!=x.current&&Ca(i.current),x.current=n.focusedKey,w.current=!1})),xo(i,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),n.setFocused(!0)}));let C,S={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!i.current.contains(e.target))return;const t=(t,o)=>{if(null!=t){if(n.isLink(t)&&"selection"===m&&c&&!Hp(e)){r.flushSync((()=>{n.setFocusedKey(t,o)}));let i=g.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),a=n.getItemProps(t);return void y.open(i,e,a.href,a.routerOptions)}if(n.setFocusedKey(t,o),n.isLink(t)&&"override"===m)return;e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):c&&!Hp(e)&&n.replaceSelection(t)}};switch(e.key){case"ArrowDown":if(o.getKeyBelow){var a,d,f;let r=null!=n.focusedKey?null===(a=o.getKeyBelow)||void 0===a?void 0:a.call(o,n.focusedKey):null===(d=o.getFirstKey)||void 0===d?void 0:d.call(o);null==r&&l&&(r=null===(f=o.getFirstKey)||void 0===f?void 0:f.call(o,n.focusedKey)),null!=r&&(e.preventDefault(),t(r))}break;case"ArrowUp":if(o.getKeyAbove){var h,b,w;let r=null!=n.focusedKey?null===(h=o.getKeyAbove)||void 0===h?void 0:h.call(o,n.focusedKey):null===(b=o.getLastKey)||void 0===b?void 0:b.call(o);null==r&&l&&(r=null===(w=o.getLastKey)||void 0===w?void 0:w.call(o,n.focusedKey)),null!=r&&(e.preventDefault(),t(r))}break;case"ArrowLeft":if(o.getKeyLeftOf){var x,C,S;let r=null===(x=o.getKeyLeftOf)||void 0===x?void 0:x.call(o,n.focusedKey);null==r&&l&&(r="rtl"===v?null===(C=o.getFirstKey)||void 0===C?void 0:C.call(o,n.focusedKey):null===(S=o.getLastKey)||void 0===S?void 0:S.call(o,n.focusedKey)),null!=r&&(e.preventDefault(),t(r,"rtl"===v?"first":"last"))}break;case"ArrowRight":if(o.getKeyRightOf){var k,E,O;let r=null===(k=o.getKeyRightOf)||void 0===k?void 0:k.call(o,n.focusedKey);null==r&&l&&(r="rtl"===v?null===(E=o.getLastKey)||void 0===E?void 0:E.call(o,n.focusedKey):null===(O=o.getFirstKey)||void 0===O?void 0:O.call(o,n.focusedKey)),null!=r&&(e.preventDefault(),t(r,"rtl"===v?"last":"first"))}break;case"Home":if(o.getFirstKey){e.preventDefault();let t=o.getFirstKey(n.focusedKey,Up(e));n.setFocusedKey(t),Up(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):c&&n.replaceSelection(t)}break;case"End":if(o.getLastKey){e.preventDefault();let t=o.getLastKey(n.focusedKey,Up(e));n.setFocusedKey(t),Up(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):c&&n.replaceSelection(t)}break;case"PageDown":if(o.getKeyPageBelow){let r=o.getKeyPageBelow(n.focusedKey);null!=r&&(e.preventDefault(),t(r))}break;case"PageUp":if(o.getKeyPageAbove){let r=o.getKeyPageAbove(n.focusedKey);null!=r&&(e.preventDefault(),t(r))}break;case"a":Up(e)&&"multiple"===n.selectionMode&&!0!==u&&(e.preventDefault(),n.selectAll());break;case"Escape":s||0===n.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),n.clearSelection());break;case"Tab":if(!p){if(e.shiftKey)i.current.focus();else{let e,t,n=Ba(i.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&zr(e)}break}}},onFocus:e=>{if(n.isFocused)e.currentTarget.contains(e.target)||n.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(n.setFocused(!0),null==n.focusedKey){let i=e=>{null!=e&&(n.setFocusedKey(e),c&&n.replaceSelection(e))},a=e.relatedTarget;var t,r;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(t=n.lastSelectedKey)&&void 0!==t?t:o.getLastKey()):i(null!==(r=n.firstSelectedKey)&&void 0!==r?r:o.getFirstKey())}else h||(g.current.scrollTop=b.current.top,g.current.scrollLeft=b.current.left);if(null!=n.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||zr(e),"keyboard"===oa()&&ko(e,{containingElement:i.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:k}=Zp({keyboardDelegate:o,selectionManager:n});return d||(S=Ar(k,S)),f||(C=null==n.focusedKey?0:-1),{collectionProps:{...S,tabIndex:C}}}function Gp(e){let{selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=eo(),p=e=>{if("keyboard"===e.pointerType&&Hp(e))n.toggleSelection(r);else{if("none"===n.selectionMode)return;if(n.isLink(r)){if("selection"===d){let t=n.getItemProps(r);return f.open(o.current,e,t.href,t.routerOptions),void n.setSelectedKeys(n.selectedKeys)}if("override"===d||"none"===d)return}"single"===n.selectionMode?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):"toggle"===n.selectionBehavior||e&&(Up(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?n.toggleSelection(r):n.replaceSelection(r)}};t.useEffect((()=>{r===n.focusedKey&&n.isFocused&&!a&&(l?l():document.activeElement!==o.current&&Ca(o.current))}),[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),s=s||n.isDisabled(r);let h={};a||s?s&&(h.onMouseDown=e=>{e.preventDefault()}):h={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===o.current&&n.setFocusedKey(r)}};let g=n.isLink(r)&&"override"===d,m=n.isLink(r)&&"selection"!==d&&"none"!==d,v=!s&&n.canSelectItem(r)&&!g,y=(u||m)&&!s,b=y&&("replace"===n.selectionBehavior?!v:!v||n.isEmpty),w=y&&v&&"replace"===n.selectionBehavior,x=b||w,C=t.useRef(null),S=x&&v,k=t.useRef(!1),E=t.useRef(!1),O=e=>{if(u&&u(),m){let t=n.getItemProps(r);f.open(o.current,e,t.href,t.routerOptions)}},D={};i?(D.onPressStart=e=>{C.current=e.pointerType,k.current=S,"keyboard"!==e.pointerType||x&&!Xp()||p(e)},c?(D.onPressUp=b?null:e=>{"keyboard"!==e.pointerType&&v&&p(e)},D.onPress=b?O:null):D.onPress=e=>{if(b||w&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!Yp())return;O(e)}else"keyboard"!==e.pointerType&&v&&p(e)}):(D.onPressStart=e=>{C.current=e.pointerType,k.current=S,E.current=b,v&&("mouse"===e.pointerType&&!b||"keyboard"===e.pointerType&&(!y||Xp()))&&p(e)},D.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&x&&Yp()||"mouse"===e.pointerType&&E.current)&&(x?O(e):v&&p(e))}),h["data-key"]=r,D.preventFocusOnPress=a;let{pressProps:j,isPressed:P}=Oi(D),T=w?e=>{"mouse"===C.current&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:M}=xa({isDisabled:!S,onLongPress(e){"touch"===e.pointerType&&(p(e),n.setSelectionBehavior("toggle"))}}),A=n.isLink(r)?e=>{to.isOpening||e.preventDefault()}:void 0;return{itemProps:Ar(h,v||b?j:{},S?M:{},{onDoubleClick:T,onDragStartCapture:e=>{"touch"===C.current&&k.current&&e.preventDefault()},onClick:A}),isPressed:P,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:v,hasAction:x}}function Yp(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function Xp(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class Jp{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 Qp{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(!ho(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(!ho(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 Jp(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 Jp(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function eh(e){let{selectionManager:n,collection:r,disabledKeys:o,ref:i,keyboardDelegate:a,layoutDelegate:l}=e,s=pc({usage:"search",sensitivity:"base"}),u=n.disabledBehavior,c=t.useMemo((()=>a||new Qp({collection:r,disabledKeys:o,disabledBehavior:u,ref:i,collator:s,layoutDelegate:l})),[a,l,r,o,i,s,u]),{collectionProps:d}=qp({...e,ref:i,selectionManager:n,keyboardDelegate:c});return{listProps:d}}class th{build(e,t){return this.context=t,nh((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:r}=e;if(t.isValidElement(n)&&n.type===t.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if("function"==typeof n){if(!r)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];t.Children.forEach(n,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,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,n,r,o){if(t.isValidElement(e.element)&&e.element.type===t.Fragment){let i=[];t.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++},n,r,o);return}let i=e.element;if(!i&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=o?o.key:null,void(yield t);i=n.renderer(e.value)}if(t.isValidElement(i)){let t=i.type;if("function"!=typeof t&&"function"!=typeof t.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=t.getCollectionNode(i.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let t=s.value;e.index=l;let u=t.key;u||(u=t.element?null:this.getKey(i,e,n,r));let c=[...this.getFullNode({...t,key:u,index:l,wrapper:rh(e.wrapper,t.wrapper)},this.getChildState(n,t),r?`${r}${i.key}`:i.key,o)];for(let n of c){if(n.value=t.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error(`Unsupported type <${oh(n.type)}> in <${oh(o.type)}>. Only <${oh(e.type)}> is supported.`);l++,yield n}s=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.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:nh((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${l.key}${r.key}`),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}constructor(){this.cache=new WeakMap}}function nh(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 rh(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function oh(e){return e[0].toUpperCase()+e.slice(1)}function ih(e,n,r){let o=t.useMemo((()=>new th),[]),{children:i,items:a,collection:l}=e;return t.useMemo((()=>{if(l)return l;let e=o.build({children:i,items:a},r);return n(e)}),[o,i,a,l,r,n])}function ah(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function lh(e){return sh(e,0)}function sh(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function uh(e){let t;for(let n of e)t=n;return t}function ch(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...dh(e,t),t],o=[...dh(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 dh(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}const fh=new WeakMap;function ph(e){let t=fh.get(e);if(null!=t)return t;t=0;let n=r=>{for(let o of r)"section"===o.type?n(ah(o,e)):t++};return n(e),fh.set(e,t),t}var hh={};function gh(e,n,r){let{type:o="menu",isDisabled:i,trigger:a="press"}=e,l=kr(),{triggerProps:s,overlayProps:u}=function(e,n,r){let o,{type:i}=e,{isOpen:a}=n;t.useEffect((()=>{r&&r.current&&pp.set(r.current,n.close)})),"menu"===i?o=!0:"listbox"===i&&(o="listbox");let l=kr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":a,"aria-controls":a?l:null,onPress:n.toggle},overlayProps:{id:l}}}({type:o},n,r),c=vl(function(e){return e&&e.__esModule?e.default:e}(hh),"@react-aria/menu"),{longPressProps:d}=xa({isDisabled:i||"longPress"!==a,accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){n.close()},onLongPress(){n.open("first")}}),f={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||i||n.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||i||n.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,..."press"===a?f:d,id:l,onKeyDown:e=>{if(!i&&("longPress"!==a||e.altKey)&&r&&r.current)switch(e.key){case"Enter":case" ":if("longPress"===a)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),n.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),n.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...u,"aria-labelledby":l,autoFocus:n.focusStrategy||!0,onClose:n.close}}}hh={"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 mh=new WeakMap;const vh=2,yh=50,bh=1e3,wh=Math.PI/12;function xh(e,n,r){let{parentMenuRef:o,submenuRef:i,type:a="menu",isDisabled:l,delay:s=200}=e,u=kr(),c=kr(),{direction:d}=ll(),f=t.useRef(void 0),p=t.useCallback((()=>{f.current&&(clearTimeout(f.current),f.current=void 0)}),[f]),h=xr((e=>{p(),n.open(e)})),g=xr((()=>{p(),n.close()}));wr((()=>()=>{p()}),[p]);let m={id:c,"aria-labelledby":u,submenuLevel:n.submenuLevel,..."menu"===a&&{onClose:n.closeAll,autoFocus:n.focusStrategy,onKeyDown:e=>{switch(e.key){case"ArrowLeft":"ltr"===d&&e.currentTarget.contains(e.target)&&(e.stopPropagation(),g(),r.current.focus());break;case"ArrowRight":"rtl"===d&&e.currentTarget.contains(e.target)&&(e.stopPropagation(),g(),r.current.focus());break;case"Escape":e.stopPropagation(),n.closeAll()}}}};return function(e){let{menuRef:n,submenuRef:r,isOpen:o,isDisabled:i}=e,a=t.useRef(void 0),l=t.useRef(void 0),s=t.useRef(0),u=t.useRef(void 0),c=t.useRef(void 0),d=t.useRef(void 0),f=t.useRef(2),[p,h]=t.useState(!1);fo({ref:r,onResize:()=>{r.current&&(l.current=r.current.getBoundingClientRect(),d.current=void 0)}});let g=()=>{h(!1),f.current=vh,a.current=void 0},m=aa();t.useEffect((()=>{p&&n.current?n.current.style.pointerEvents="none":n.current.style.pointerEvents=""}),[n,p]),t.useEffect((()=>{let e=r.current,t=n.current;if(i||!e||!o||"pointer"!==m)return void g();l.current=e.getBoundingClientRect();let p=e=>{if("touch"===e.pointerType||"pen"===e.pointerType)return;let n=Date.now();if(n-s.current<yh)return;clearTimeout(u.current),clearTimeout(c.current);let{clientX:r,clientY:o}=e;if(!a.current)return void(a.current={x:r,y:o});if(!l.current)return;if(d.current||(d.current=r>l.current.right?"left":"right"),r<t.getBoundingClientRect().left||r>t.getBoundingClientRect().right||o<t.getBoundingClientRect().top||o>t.getBoundingClientRect().bottom)return void g();let i=a.current.x,p=a.current.y,m="right"===d.current?l.current.left-i:i-l.current.right,v=Math.atan2(p-l.current.top,m)+wh,y=Math.atan2(p-l.current.bottom,m)-wh,b=Math.atan2(p-o,"left"===d.current?-(r-i):r-i),w=b<v&&b>y;f.current=w?Math.min(f.current+1,vh):Math.max(f.current-1,0),f.current>=vh?h(!0):h(!1),s.current=n,a.current={x:r,y:o},w&&(u.current=setTimeout((()=>{g(),c.current=setTimeout((()=>{let e=document.elementFromPoint(r,o);e&&t.contains(e)&&e.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))}),100)}),bh))};return window.addEventListener("pointermove",p),()=>{window.removeEventListener("pointermove",p),clearTimeout(u.current),clearTimeout(c.current),f.current=vh}}),[i,o,n,m,h,r])}({menuRef:o,submenuRef:i,isOpen:n.isOpen,isDisabled:l}),{submenuTriggerProps:{id:u,"aria-controls":n.isOpen?c:void 0,"aria-haspopup":l?void 0:a,"aria-expanded":n.isOpen?"true":"false",onPressStart:e=>{l||"virtual"!==e.pointerType&&"keyboard"!==e.pointerType||h("first")},onPress:e=>{l||"touch"!==e.pointerType&&"mouse"!==e.pointerType||h()},onHoverChange:e=>{l||(e&&!n.isOpen?f.current||(f.current=setTimeout((()=>{h()}),s)):e||p())},onKeyDown:e=>{switch(e.key){case"ArrowRight":l||("ltr"===d?(n.isOpen||h("first"),"menu"===a&&(null==i?void 0:i.current)&&document.activeElement===(null==r?void 0:r.current)&&i.current.focus()):n.isOpen?g():e.continuePropagation());break;case"ArrowLeft":l||("rtl"===d?(n.isOpen||h("first"),"menu"===a&&(null==i?void 0:i.current)&&document.activeElement===(null==r?void 0:r.current)&&i.current.focus()):n.isOpen?g():e.continuePropagation());break;case"Escape":n.closeAll();break;default:e.continuePropagation()}},onBlur:e=>{n.isOpen&&o.current.contains(e.relatedTarget)&&g()},isOpen:n.isOpen},submenuProps:m,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:e=>e!==r.current}}}var Ch;Ch={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 Sh;Sh={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 kh;kh={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 Eh;Eh={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 Oh;Oh={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 Dh;Dh={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 jh;jh={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 Ph;Ph={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 Th;Th={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 Mh;Mh={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 Ah;Ah={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 _h;_h={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 Rh;Rh={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 Lh;Lh={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 Ih;Ih={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 Nh;Nh={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 $h;$h={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 zh;zh={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 Fh;Fh={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 Bh;Bh={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 Kh;Kh={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 Vh;Vh={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 Hh;Hh={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 Uh;Uh={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 Wh;Wh={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 Zh;Zh={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 qh;qh={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 Gh;Gh={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 Yh;Yh={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 Xh;Xh={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 Jh;Jh={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 Qh;Qh={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 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={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 ng={};function rg(e,n,r){let{direction:o}=ll(),i=t.useMemo((()=>Ka(n)),[n]),a=()=>{var e;let t=null===(e=window.event)||void 0===e?void 0:e.target,r=Ba(n.current,{tabbable:!0});if(t&&(r.currentNode=t,t=r.previousNode()),!t){let e;do{e=r.lastChild(),e&&(t=e)}while(e)}for(;null==t?void 0:t.hasAttribute("data-placeholder");){let e=r.previousNode();if(!e||!e.hasAttribute("data-placeholder"))break;t=e}t&&t.focus()},{pressProps:l}=Oi({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&a()},onPress(e){"mouse"!==e.pointerType&&a()}});return Ar(l,{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)),!r))switch(t.key){case"ArrowLeft":t.preventDefault(),t.stopPropagation(),"rtl"===o?i.focusNext():i.focusPrevious();break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),"rtl"===o?i.focusPrevious():i.focusNext()}}})}ng={"ar-AE":Ch,"bg-BG":Sh,"cs-CZ":kh,"da-DK":Eh,"de-DE":Oh,"el-GR":Dh,"en-US":jh,"es-ES":Ph,"et-EE":Th,"fi-FI":Mh,"fr-FR":Ah,"he-IL":_h,"hr-HR":Rh,"hu-HU":Lh,"it-IT":Ih,"ja-JP":Nh,"ko-KR":$h,"lt-LT":zh,"lv-LV":Fh,"nb-NO":Bh,"nl-NL":Kh,"pl-PL":Vh,"pt-BR":Hh,"pt-PT":Uh,"ro-RO":Wh,"ru-RU":Zh,"sk-SK":qh,"sl-SI":Gh,"sr-SP":Yh,"sv-SE":Xh,"tr-TR":Jh,"uk-UA":Qh,"zh-CN":eg,"zh-TW":tg};const og=new WeakMap,ig="__role_"+Date.now(),ag="__focusManager_"+Date.now();function lg(e,n,r){var o;let{isInvalid:i,validationErrors:a,validationDetails:l}=n.displayValidation,{labelProps:s,fieldProps:u,descriptionProps:c,errorMessageProps:d}=Cd({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),f=t.useRef(null),{focusWithinProps:p}=ua({...e,onFocusWithin(t){var r;f.current=n.value,null===(r=e.onFocus)||void 0===r||r.call(e,t)},onBlurWithin:t=>{var r;n.confirmPlaceholder(),n.value!==f.current&&n.commitValidation(),null===(r=e.onBlur)||void 0===r||r.call(e,t)},onFocusWithinChange:e.onFocusChange}),h=vl(function(e){return e&&e.__esModule?e.default:e}(ng),"@react-aria/datepicker"),g="hour"===n.maxGranularity?"selectedTimeDescription":"selectedDateDescription",m="hour"===n.maxGranularity?"time":"date",v=wo(n.value?h.format(g,{[m]:n.formatValue({month:"long"})}):""),y="presentation"===e[ig]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=e[ag],w=t.useMemo((()=>b||Ka(r)),[b,r]),x=rg(n,r,"presentation"===e[ig]);og.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:w});let C,S=t.useRef(e.autoFocus);C="presentation"===e[ig]?{role:"presentation"}:Ar(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),t.useEffect((()=>{S.current&&w.focusFirst(),S.current=!1}),[w]),Do(e.inputRef,n.value,n.setValue),ld({...e,focus(){w.focusFirst()}},n,e.inputRef);let k={type:"hidden",name:e.name,value:(null===(o=n.value)||void 0===o?void 0:o.toString())||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(k.type="text",k.hidden=!0,k.required=e.isRequired,k.onChange=()=>{});let E=$r(e);return{labelProps:{...s,onClick:()=>{w.focusFirst()}},fieldProps:Ar(E,C,x,p,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:k,descriptionProps:c,errorMessageProps:d,isInvalid:i,validationErrors:a,validationDetails:l}}class sg{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}function ug(e,n,r){let o=t.useRef(""),{locale:i}=ll(),a=function(){let{locale:e}=ll(),n=ml(function(e){return e&&e.__esModule?e.default:e}(ng),"@react-aria/datepicker");return t.useMemo((()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch(t){return new sg(e,n)}}),[e,n])}(),{ariaLabel:l,ariaLabelledBy:s,ariaDescribedBy:u,focusManager:c}=og.get(n),d=e.isPlaceholder?"":e.text,f=t.useMemo((()=>n.dateFormatter.resolvedOptions()),[n.dateFormatter]),p=Zu({month:"long",timeZone:f.timeZone}),h=Zu({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(d=h.format(n.dateValue));else{let e=p.format(n.dateValue);d=e!==d?`${d} – ${e}`:e}let{spinButtonProps:g}=Md({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly||!e.isEditable,isRequired:n.isRequired,onIncrement:()=>{o.current="",n.increment(e.type)},onDecrement:()=>{o.current="",n.decrement(e.type)},onIncrementPage:()=>{o.current="",n.incrementPage(e.type)},onDecrementPage:()=>{o.current="",n.decrementPage(e.type)},onIncrementToMax:()=>{o.current="",n.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{o.current="",n.setSegment(e.type,e.minValue)}}),m=t.useMemo((()=>new nc(i,{maximumFractionDigits:0})),[i]),v=()=>{if(e.text===e.placeholder&&c.focusPrevious(),!m.isValidPartialNumber(e.text)||n.isReadOnly||e.isPlaceholder)"dayPeriod"===e.type&&n.clearSegment(e.type);else{let t=e.text.slice(0,-1),r=m.parse(t);t=0===r?"":t,0===t.length||0===r?n.clearSegment(e.type):n.setSegment(e.type,r),o.current=t}},{startsWith:y}=hc({sensitivity:"base"}),b=Zu({hour:"numeric",hour12:!0}),w=t.useMemo((()=>{let e=new Date;return e.setHours(0),b.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[b]),x=t.useMemo((()=>{let e=new Date;return e.setHours(12),b.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[b]),C=Zu({year:"numeric",era:"narrow",timeZone:"UTC"}),S=t.useMemo((()=>{if("era"!==e.type)return[];let t=os(new Rs(1,1,1),n.calendar),r=n.calendar.getEras().map((e=>{let n=t.set({year:1,month:1,day:1,era:e}).toDate("UTC"),r=C.formatToParts(n).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}),[C,n.calendar,e.type]),k=t=>{if(n.isDisabled||n.isReadOnly)return;let r=o.current+t;switch(e.type){case"dayPeriod":if(y(w,t))n.setSegment("dayPeriod",0);else{if(!y(x,t))break;n.setSegment("dayPeriod",12)}c.focusNext();break;case"era":{let e=S.find((e=>y(e.formatted,t)));e&&(n.setSegment("era",e.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!m.isValidPartialNumber(r))return;let i=m.parse(r),a=i,l=0===e.minValue;if("hour"===e.type&&n.dateFormatter.resolvedOptions().hour12){switch(n.dateFormatter.resolvedOptions().hourCycle){case"h11":i>11&&(a=m.parse(t));break;case"h12":l=!1,i>12&&(a=m.parse(t))}e.value>=12&&i>1&&(i+=12)}else i>e.maxValue&&(a=m.parse(t));if(isNaN(i))return;let s=0!==a||l;s&&n.setSegment(e.type,a),Number(i+"0")>e.maxValue||r.length>=String(e.maxValue).length?(o.current="",s&&c.focusNext()):o.current=r;break}}};xo(t.useRef("undefined"!=typeof document?document:null),"selectionchange",(()=>{let e=window.getSelection();r.current&&r.current.contains(e.anchorNode)&&e.collapse(r.current)}));let E=t.useRef("");xo(r,"beforeinput",(t=>{switch(t.preventDefault(),t.inputType){case"deleteContentBackward":case"deleteContentForward":m.isValidPartialNumber(e.text)&&!n.isReadOnly&&v();break;case"insertCompositionText":E.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=t.data&&k(t.data)}})),xo(r,"input",(e=>{let{inputType:t,data:n}=e;if("insertCompositionText"===t)r.current.textContent=E.current,(y(w,n)||y(x,n))&&k(n)})),wr((()=>{let e=r.current;return()=>{if(document.activeElement===e){c.focusPrevious()||c.focusNext()}}}),[r,c]);let O=Zr()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},D=t.useMemo((()=>n.segments.find((e=>e.isEditable))),[n.segments]);e===D||n.isInvalid||(u=void 0);let j=kr(),P=!n.isDisabled&&!n.isReadOnly&&e.isEditable,T=so({"aria-label":`${"literal"===e.type?"":a.of(e.type)}${l?`, ${l}`:""}${s?", ":""}`,"aria-labelledby":s});return"literal"===e.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:Ar(g,T,{id:j,...O,"aria-invalid":n.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":n.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:P,suppressContentEditableWarning:P,spellCheck:P?"false":void 0,autoCorrect:P?"off":void 0,[parseInt(t.version,10)>=17?"enterKeyHint":"enterkeyhint"]:P?"next":void 0,inputMode:n.isDisabled||"dayPeriod"===e.type||"era"===e.type||!P?void 0:"numeric",tabIndex:n.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(Hr()?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(),v()}},onFocus:()=>{o.current="",ko(r.current,{containingElement:go(r.current)}),window.getSelection().collapse(r.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}class cg{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 sh(ah(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 sh(ah(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=ah(t,this.collection);return"rtl"===this.direction?uh(e).key:lh(e).key}if(this.isCell(t)){let n=ah(this.collection.getItem(t.parentKey),this.collection),r="rtl"===this.direction?sh(n,t.index-1):sh(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=ah(t,this.collection);return"rtl"===this.direction?lh(e).key:uh(e).key}if(this.isCell(t)){let n=ah(this.collection.getItem(t.parentKey),this.collection),r="rtl"===this.direction?sh(n,t.index+1):sh(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(ah(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(ah(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 uh(ah(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=uh(ah(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(ah(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 dg(e.layout):new Jp(e.ref)),this.focusMode=e.focusMode||"row"}}class dg{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 fg=new WeakMap;var pg;pg={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 hg;hg={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 gg;gg={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 mg;mg={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 vg;vg={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 yg;yg={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} 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 wg;wg={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 xg;xg={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 Cg;Cg={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 Sg;Sg={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 kg;kg={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 Eg;Eg={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 Og;Og={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 Dg;Dg={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 jg;jg={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 Pg;Pg={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 Tg;Tg={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 Mg;Mg={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 Ag;Ag={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 _g;_g={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 Rg;Rg={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 Lg;Lg={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 Ig;Ig={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 Ng;Ng={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 $g;$g={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 zg;zg={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 Fg;Fg={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 Bg;Bg={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 Kg;Kg={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 Vg;Vg={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 Hg;Hg={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 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}」。`,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 Zg={};function qg(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 Gg(e,n,r){let{isVirtualized:o,keyboardDelegate:i,focusMode:a,scrollRef:l,getRowText:s,onRowAction:u,onCellAction:c}=e,{selectionManager:d}=n;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let f=pc({usage:"search",sensitivity:"base"}),{direction:p}=ll(),h=n.selectionManager.disabledBehavior,g=t.useMemo((()=>i||new cg({collection:n.collection,disabledKeys:n.disabledKeys,disabledBehavior:h,ref:r,direction:p,collator:f,focusMode:a})),[i,n.collection,n.disabledKeys,h,r,p,f,a]),{collectionProps:m}=qp({ref:r,selectionManager:d,keyboardDelegate:g,isVirtualized:o,scrollRef:l}),v=kr(e.id);fg.set(n,{keyboardDelegate:g,actions:{onRowAction:u,onCellAction:c}});let y=function(e){let n=vl(function(e){return e&&e.__esModule?e.default:e}(Zg),"@react-aria/grid"),r=aa(),o=("pointer"===r||"virtual"===r||null==r)&&"undefined"!=typeof window&&"ontouchstart"in window,i=t.useMemo((()=>{let t,r=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return o&&(t=n.format("longPressToSelect")),"replace"===i&&"none"!==r&&e.hasItemActions?t:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,n,o]);return wo(i)}({selectionManager:d,hasItemActions:!(!u&&!c)}),b=$r(e,{labelable:!0}),w=t.useCallback((e=>{d.isFocused?e.currentTarget.contains(e.target)||d.setFocused(!1):e.currentTarget.contains(e.target)&&d.setFocused(!0)}),[d]),x=t.useMemo((()=>({onBlur:m.onBlur,onFocus:w})),[w,m.onBlur]),C=function(e,n){let r=null==n?void 0:n.isDisabled,[o,i]=t.useState(!1);return wr((()=>{if((null==e?void 0:e.current)&&!r){let t=()=>{if(e.current){let t=Ba(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!r&&o}(r,{isDisabled:0!==n.collection.size}),S=Ar(b,{role:"grid",id:v,"aria-multiselectable":"multiple"===d.selectionMode?"true":void 0},n.isKeyboardNavigationDisabled?x:m,0===n.collection.size&&{tabIndex:C?-1:0},y);return o&&(S["aria-rowcount"]=n.collection.size,S["aria-colcount"]=n.collection.columnCount),function(e,n){let{getRowText:r=(e=>{var t,r,o,i;return null!==(i=null===(t=(r=n.collection).getTextValue)||void 0===t?void 0:t.call(r,e))&&void 0!==i?i:null===(o=n.collection.getItem(e))||void 0===o?void 0:o.textValue})}=e,o=vl(function(e){return e&&e.__esModule?e.default:e}(Zg),"@react-aria/grid"),i=n.selectionManager.rawSelection,a=t.useRef(i);co((()=>{var e;if(!n.selectionManager.isFocused)return void(a.current=i);let t=qg(i,a.current),l=qg(a.current,i),s="replace"===n.selectionManager.selectionBehavior,u=[];if(1===n.selectionManager.selectedKeys.size&&s){if(n.collection.getItem(n.selectionManager.selectedKeys.keys().next().value)){let e=r(n.selectionManager.selectedKeys.keys().next().value);e&&u.push(o.format("selectedItem",{item:e}))}}else if(1===t.size&&0===l.size){let e=r(t.keys().next().value);e&&u.push(o.format("selectedItem",{item:e}))}else if(1===l.size&&0===t.size&&n.collection.getItem(l.keys().next().value)){let e=r(l.keys().next().value);e&&u.push(o.format("deselectedItem",{item:e}))}"multiple"===n.selectionManager.selectionMode&&(0===u.length||"all"===i||i.size>1||"all"===a.current||(null===(e=a.current)||void 0===e?void 0:e.size)>1)&&u.push("all"===i?o.format("selectedAll"):o.format("selectedCount",{count:i.size})),u.length>0&&rd(u.join(" ")),a.current=i}),[i])}({getRowText:s},n),{gridProps:S}}function Yg(e,n,r){let{node:o,isVirtualized:i,focusMode:a="child",shouldSelectOnPressUp:l,onAction:s}=e,{direction:u}=ll(),{keyboardDelegate:c,actions:{onCellAction:d}}=fg.get(n),f=t.useRef(null),p=()=>{let e=Ba(r.current);if("child"===a){if(r.current.contains(document.activeElement)&&r.current!==document.activeElement)return;let t="last"===n.selectionManager.childFocusStrategy?Xg(e):e.firstChild();if(t)return void Ca(t)}(null!=f.current&&o.key!==f.current||!r.current.contains(document.activeElement))&&Ca(r.current)},{itemProps:h,isPressed:g}=Gp({selectionManager:n.selectionManager,key:o.key,ref:r,isVirtualized:i,focus:p,shouldSelectOnPressUp:l,onAction:d?()=>d(o.key):s,isDisabled:0===n.collection.size}),m=Ar(h,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target)||n.isKeyboardNavigationDisabled)return;let t=Ba(r.current);switch(t.currentNode=document.activeElement,e.key){case"ArrowLeft":{let n="rtl"===u?t.nextNode():t.previousNode();if("child"===a&&n===r.current&&(n=null),e.preventDefault(),e.stopPropagation(),n)Ca(n),ko(n,{containingElement:go(r.current)});else{if(c.getKeyLeftOf(o.key)!==o.key){r.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}"cell"===a&&"rtl"===u?(Ca(r.current),ko(r.current,{containingElement:go(r.current)})):(t.currentNode=r.current,n="rtl"===u?t.firstChild():Xg(t),n&&(Ca(n),ko(n,{containingElement:go(r.current)})))}break}case"ArrowRight":{let n="rtl"===u?t.previousNode():t.nextNode();if("child"===a&&n===r.current&&(n=null),e.preventDefault(),e.stopPropagation(),n)Ca(n),ko(n,{containingElement:go(r.current)});else{if(c.getKeyRightOf(o.key)!==o.key){r.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}"cell"===a&&"ltr"===u?(Ca(r.current),ko(r.current,{containingElement:go(r.current)})):(t.currentNode=r.current,n="rtl"===u?Xg(t):t.firstChild(),n&&(Ca(n),ko(n,{containingElement:go(r.current)})))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&r.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{f.current=o.key,e.target===r.current?requestAnimationFrame((()=>{"child"===a&&document.activeElement===r.current&&p()})):ra()||n.selectionManager.setFocusedKey(o.key)}});var v;return i&&(m["aria-colindex"]=(null!==(v=o.colIndex)&&void 0!==v?v:o.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 Xg(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}Zg={"ar-AE":pg,"bg-BG":hg,"cs-CZ":gg,"da-DK":mg,"de-DE":vg,"el-GR":yg,"en-US":bg,"es-ES":wg,"et-EE":xg,"fi-FI":Cg,"fr-FR":Sg,"he-IL":kg,"hr-HR":Eg,"hu-HU":Og,"it-IT":Dg,"ja-JP":jg,"ko-KR":Pg,"lt-LT":Tg,"lv-LV":Mg,"nb-NO":Ag,"nl-NL":_g,"pl-PL":Rg,"pt-BR":Lg,"pt-PT":Ig,"ro-RO":Ng,"ru-RU":$g,"sk-SK":zg,"sl-SI":Fg,"sr-SP":Bg,"sv-SE":Kg,"tr-TR":Vg,"uk-UA":Hg,"zh-CN":Ug,"zh-TW":Wg};var Jg={};Jg={"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 Qg=new WeakMap;function em(e){let{state:n,triggerRef:r,label:o,name:i,isDisabled:a}=e,l=t.useRef(null),{containerProps:s,inputProps:u,selectProps:c}=function(e,t,n){let r=Qg.get(t)||{},{autoComplete:o,name:i=r.name,isDisabled:a=r.isDisabled}=e,{validationBehavior:l,isRequired:s}=r,u=aa(),{visuallyHiddenProps:c}=Od();var d;return Do(e.selectRef,t.selectedKey,t.setSelectedKey),ld({validationBehavior:l,focus:()=>n.current.focus()},t,e.selectRef),{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:null==u||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:l},n,r);var d;return n.collection.size<=300?t.createElement("div",{...s,"data-testid":"hidden-select-container"},t.createElement("input",u),t.createElement("label",null,o,t.createElement("select",{...c,ref:l},t.createElement("option",null),[...n.collection.getKeys()].map((e=>{let r=n.collection.getItem(e);if("item"===r.type)return t.createElement("option",{key:r.key,value:r.key},r.textValue)}))))):i?t.createElement("input",{type:"hidden",autoComplete:c.autoComplete,name:i,disabled:a,value:null!==(d=n.selectedKey)&&void 0!==d?d:""}):null}const tm=new WeakMap;function nm(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function rm(e,t){let n=tm.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${nm(t)}`}function om(e,t,n){let r=tm.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${nm(t)}-${nm(n)}`}function im(e,t){return[...e.collection.rowHeaderColumnKeys].map((n=>om(e,t,n))).join(" ")}var am;am={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 sm;sm={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 um;um={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 cm;cm={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 dm;dm={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var fm;fm={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 pm;pm={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 hm;hm={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 gm;gm={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 mm;mm={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 vm;vm={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var ym;ym={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 bm;bm={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 wm;wm={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 xm;xm={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Cm;Cm={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Sm;Sm={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 km;km={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 Em;Em={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 Om;Om={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 Dm;Dm={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 jm;jm={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 Pm;Pm={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 Tm;Tm={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 Mm;Mm={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var Am;Am={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 _m;_m={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 Rm;Rm={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 Lm;Lm={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 Im;Im={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 Nm;Nm={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var $m;$m={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var zm;zm={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var Fm={};Fm={"ar-AE":am,"bg-BG":lm,"cs-CZ":sm,"da-DK":um,"de-DE":cm,"el-GR":dm,"en-US":fm,"es-ES":pm,"et-EE":hm,"fi-FI":gm,"fr-FR":mm,"he-IL":vm,"hr-HR":ym,"hu-HU":bm,"it-IT":wm,"ja-JP":xm,"ko-KR":Cm,"lt-LT":Sm,"lv-LV":km,"nb-NO":Em,"nl-NL":Om,"pl-PL":Dm,"pt-BR":jm,"pt-PT":Pm,"ro-RO":Tm,"ru-RU":Mm,"sk-SK":Am,"sl-SI":_m,"sr-SP":Rm,"sv-SE":Lm,"tr-TR":Im,"uk-UA":Nm,"zh-CN":$m,"zh-TW":zm};class Bm extends cg{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(ah(t,this.collection));if(e)return e.key;let n=this.getFirstKey();if(null==n)return;return sh(ah(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 ah(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=[...ah(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 ah(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 Km=!1;function Vm(){return Km}const Hm={ltr:"ArrowRight",rtl:"ArrowLeft"},Um={ltr:"ArrowLeft",rtl:"ArrowRight"};function Wm(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:u}=fg.get(t),c=u.onRowAction?()=>u.onRowAction(i.key):s,{itemProps:d,...f}=Gp({selectionManager:t.selectionManager,key:i.key,ref:n,isVirtualized:a,shouldSelectOnPressUp:l,onAction:c||(null==i||null===(r=i.props)||void 0===r?void 0:r.onAction)?Dr(null==i||null===(o=i.props)||void 0===o?void 0:o.onAction,c):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||Vm()&&"expandedKeys"in t?delete i["aria-rowindex"]:i["aria-rowindex"]=r.index+1+t.collection.headerRows.length;let s={};if(Vm()&&"expandedKeys"in t){let e=t.keyMap.get(r.key);if(null!=e){var u,c,d;let n=(null===(u=e.props)||void 0===u?void 0:u.UNSTABLE_childItems)||(null===(d=e.props)||void 0===d||null===(c=d.children)||void 0===c?void 0:c.length)>t.userColumnCount;s={onKeyDown:r=>{(r.key===Hm[l]&&t.selectionManager.focusedKey===e.key&&n&&"all"!==t.expandedKeys&&!t.expandedKeys.has(e.key)||r.key===Um[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?uh(t.keyMap.get(null==e?void 0:e.parentKey).childNodes).indexOfType+1:uh(t.keyMap.get(t.collection.body.key).childNodes).indexOfType+1}}}let f=function(e){var t;const n=eo().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:{...Ar(i,s,a.hasAction?f:{}),"aria-labelledby":im(t,r.key)},...a}}function Zm(e,t){let{key:n}=e;const{checkboxProps:r}=function(e,t){let{key:n}=e,r=t.selectionManager,o=kr(),i=!t.selectionManager.canSelectItem(n),a=t.selectionManager.isSelected(n);const l=vl(function(e){return e&&e.__esModule?e.default:e}(Zg),"@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} ${im(t,n)}`}}}function qm(e,n,r){let{column:o,triggerRef:i,isDisabled:a,onResizeStart:l,onResize:s,onResizeEnd:u,"aria-label":c}=e;const d=vl(function(e){return e&&e.__esModule?e.default:e}(Fm),"@react-aria/table");let f=kr(),p=n.resizingColumn===o.key,h=t.useRef(p),g=t.useRef(null),m=t.useRef(!1),v=n.tableState.isKeyboardNavigationDisabled,{direction:y}=ll(),{keyboardProps:b}=ba({onKeyDown:e=>{v?"Escape"!==e.key&&"Enter"!==e.key&&" "!==e.key&&"Tab"!==e.key||(e.preventDefault(),C(o)):(e.continuePropagation(),"Enter"===e.key&&w(o))}}),w=xr((e=>{h.current||(g.current=n.updateResizedColumns(e.key,n.getColumnWidth(e.key)),n.startResize(e.key),n.tableState.setKeyboardNavigationDisabled(!0),null==l||l(g.current)),h.current=!0})),x=xr(((e,t)=>{let r=n.updateResizedColumns(e.key,t);null==s||s(r),g.current=r})),C=xr((e=>{h.current&&(null==g.current&&(g.current=n.updateResizedColumns(e.key,n.getColumnWidth(e.key))),n.endResize(),n.tableState.setKeyboardNavigationDisabled(!1),null==u||u(g.current),h.current=!1,(null==i?void 0:i.current)&&!m.current&&Ca(i.current)),g.current=null}));const S=t.useRef(0),{moveProps:k}=function(e){let{onMoveStart:n,onMove:r,onMoveEnd:o}=e,i=t.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:l}=lo(),s=xr(((e,t,o,a)=>{0===o&&0===a||(i.current.didMove||(i.current.didMove=!0,null==n||n({type:"movestart",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==r||r({type:"move",pointerType:t,deltaX:o,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),u=xr(((e,t)=>{yi(),i.current.didMove&&(null==o||o({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),c=t.useMemo((()=>{let e={},t=()=>{vi(),i.current.didMove=!1};if("undefined"==typeof PointerEvent){let n=e=>{var t,n,r,o;0===e.button&&(s(e,"mouse",e.pageX-(null!==(r=null===(t=i.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==o?o:0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(u(e,"mouse"),l(window,"mousemove",n,!1),l(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a(window,"mousemove",n,!1),a(window,"mouseup",r,!1))};let o=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id));if(t>=0){var n,r;let{pageX:l,pageY:u}=e.changedTouches[t];var o,a;s(e,"touch",l-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageX)&&void 0!==o?o:0),u-(null!==(a=null===(r=i.current.lastPosition)||void 0===r?void 0:r.pageY)&&void 0!==a?a:0)),i.current.lastPosition={pageX:l,pageY:u}}},c=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id))>=0&&(u(e,"touch"),i.current.id=null,l(window,"touchmove",o),l(window,"touchend",c),l(window,"touchcancel",c))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=i.current.id)return;let{pageX:n,pageY:r,identifier:l}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:n,pageY:r},i.current.id=l,a(window,"touchmove",o,!1),a(window,"touchend",c,!1),a(window,"touchcancel",c,!1)}}else{let n=e=>{if(e.pointerId===i.current.id){var t,n;let a=e.pointerType||"mouse";var r,o;s(e,a,e.pageX-(null!==(r=null===(t=i.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==o?o:0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||"mouse";u(e,t),i.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==i.current.id&&(t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId,a(window,"pointermove",n,!1),a(window,"pointerup",r,!1),a(window,"pointercancel",r,!1))}}let n=(e,n,r)=>{t(),s(e,"keyboard",n,r),u(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}),[i,a,l,s,u]);return{moveProps:c}}({onMoveStart(){S.current=n.getColumnWidth(o.key),w(o)},onMove(e){let{deltaX:t,deltaY:n,pointerType:r}=e;"rtl"===y&&(t*=-1),"keyboard"===r&&(0!==n&&0===t&&(t=-1*n),t*=10),0!==t&&(S.current+=t,x(o,S.current))},onMoveEnd(e){let{pointerType:t}=e;S.current=0,("mouse"===t||"touch"===t&&m.current)&&C(o)}});let E=t.useCallback((e=>{v&&k.onKeyDown(e)}),[v,k]),O=Math.floor(n.getColumnMinWidth(o.key)),D=Math.floor(n.getColumnMaxWidth(o.key));D===1/0&&(D=Number.MAX_SAFE_INTEGER);let j=Math.floor(n.getColumnWidth(o.key)),P=aa();"virtual"===P&&"undefined"!=typeof window&&"ontouchstart"in window&&(P="touch");let T=wo(null!=(null==i?void 0:i.current)||"keyboard"!==P&&"virtual"!==P||p?void 0:d.format("resizerDescription")),M={"aria-label":c,"aria-orientation":"horizontal","aria-labelledby":`${f} ${rm(n.tableState,o.key)}`,"aria-valuetext":d.format("columnSize",{value:j}),type:"range",min:O,max:D,value:j,...T};const A=t.useCallback((()=>{r.current&&Ca(r.current)}),[r]);let _=n.resizingColumn,R=t.useRef(null);t.useEffect((()=>{if(R.current!==_&&null!=_&&_===o.key){m.current=document.activeElement===r.current,w(o);let e=setTimeout((()=>A()),0),t=setTimeout(A,400);return()=>{clearTimeout(e),clearTimeout(t)}}R.current=_}),[_,o,A,r,w]);let{pressProps:L}=Oi({onPressStart:e=>{e.ctrlKey||e.altKey||e.metaKey||e.shiftKey||"keyboard"===e.pointerType||("virtual"!==e.pointerType||null==n.resizingColumn?(A(),"virtual"!==e.pointerType&&w(o)):C(o))},onPress:e=>{("touch"===e.pointerType&&m.current||"mouse"===e.pointerType)&&null!=n.resizingColumn&&C(o)}}),{visuallyHiddenProps:I}=Od();return{resizerProps:Ar(b,{...k,onKeyDown:E},L,{style:{touchAction:"none"}}),inputProps:Ar(I,{id:f,onBlur:()=>{C(o)},onChange:e=>{let t=n.getColumnWidth(o.key),r=parseFloat(e.target.value);r=r>t?t+10:t-10,x(o,r)},disabled:a},M),isResizing:p}}const Gm=t.createContext({});function Ym(e,n){[e,n]=si(e,n,Gm);let{elementType:r="label",...o}=e;return t.createElement(r,{className:"react-aria-Label",...o,ref:n})}const Xm=br(Ym),Jm=t.createContext(null),Qm=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),ev=t.createContext({});function tv(e,n){[e,n]=si(e,n,ev);let r=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:o}=r,{buttonProps:i,isPressed:a}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:s,onPressChange:u,preventFocusOnPress:c,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}=Oi({onPressStart:a,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:s,isDisabled:o,preventFocusOnPress:c,ref:t}),{focusableProps:b}=Xa(e,t);d&&(b.tabIndex=o?-1:b.tabIndex);let w=Ar(b,v,$r(e,{labelable:!0}));return{isPressed:y,buttonProps:Ar(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,n),{focusProps:l,isFocused:s,isFocusVisible:u}=Za(e),{hoverProps:c,isHovered:d}=ga({...e,isDisabled:e.isDisabled||o}),f={isHovered:d,isPressed:(r.isPressed||a)&&!o,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:null!=o&&o},p=ai({...e,values:f,defaultClassName:"react-aria-Button"}),h=kr(i.id),g=kr(),m=i["aria-labelledby"];o&&(m?m=`${m} ${g}`:i["aria-label"]&&(m=`${h} ${g}`));let v=t.useRef(o);return t.useEffect((()=>{let e={"aria-labelledby":m||h};(!v.current&&s&&o||v.current&&s&&!o)&&rd(e,"assertive"),v.current=o}),[o,s,m,h]),t.createElement("button",{...$r(e,{propNames:Qm}),...Ar(i,l,c),...p,id:h,ref:n,"aria-labelledby":m,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":d||void 0,"data-focused":s||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},t.createElement(Jm.Provider,{value:{id:g}},p.children))}const nv=br(tv),rv=t.createContext({});function ov(e,n){[e,n]=si(e,n,rv);let{elementType:r="span",...o}=e;return t.createElement(r,{className:"react-aria-Text",...o,ref:n})}const iv=t.forwardRef(ov);function av(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 cv(e,sv(e,t,n).subtract(i),t,n,r,o)}function sv(e,t,n,r,o){let i=e;return t.years?i=function(e){return Nl(e.subtract({months:e.month-1}))}(e):t.months?i=Nl(e):t.weeks&&(i=Bl(e,n)),cv(e,i,t,n,r,o)}function uv(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--,cv(e,sv(e,t,n).subtract(i),t,n,r,o)}function cv(e,t,n,r,o,i){if(o&&e.compare(o)>=0){let e=Hl(t,sv(ts(o),n,r));e&&(t=e)}if(i&&e.compare(i)<=0){let e=Vl(t,uv(ts(i),n,r));e&&(t=e)}return t}function dv(e,t,n){if(t){let n=Hl(e,ts(t));n&&(e=n)}if(n){let t=Vl(e,ts(n));t&&(e=t)}return e}function fv(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 pv(e){let n=t.useMemo((()=>new Ku(e.locale)),[e.locale]),r=t.useMemo((()=>n.resolvedOptions()),[n]),{locale:o,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:s,selectionAlignment:u,isDateUnavailable:c,pageBehavior:d="visible"}=e,f=t.useMemo((()=>i(r.calendar)),[i,r.calendar]);var p;let[h,g]=jo(e.value,null!==(p=e.defaultValue)&&void 0!==p?p:null,e.onChange),m=t.useMemo((()=>h?os(ts(h),f):null),[h,f]),v=t.useMemo((()=>h&&"timeZone"in h?h.timeZone:r.timeZone),[h,r.timeZone]),y=t.useMemo((()=>e.focusedValue?dv(os(ts(e.focusedValue),f),l,s):void 0),[e.focusedValue,f,l,s]),b=t.useMemo((()=>dv(e.defaultFocusedValue?os(ts(e.defaultFocusedValue),f):m||os(Ml(v),f),l,s)),[e.defaultFocusedValue,m,v,f,l,s]),[w,x]=jo(y,b,e.onFocusChange),[C,S]=t.useState((()=>{switch(u){case"start":return sv(w,a,o,l,s);case"end":return uv(w,a,o,l,s);default:return lv(w,a,o,l,s)}})),[k,E]=t.useState(e.autoFocus||!1),O=t.useMemo((()=>{let e={...a};return e.days?e.days--:e.days=-1,C.add(e)}),[C,a]),[D,j]=t.useState(f.identifier);if(f.identifier!==D){let e=os(w,f);S(lv(e,a,o,l,s)),x(e),j(f.identifier)}function P(e){e=dv(e,l,s),x(e)}function T(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void g(null);if(e=dv(e,l,s),e=fv(e,C,c),!e)return;e=os(e,(null==h?void 0:h.calendar)||new El),g(h&&"hour"in h?h.set(e):e)}}av(w,l,s)?x(dv(w,l,s)):w.compare(C)<0?S(uv(w,a,o,l,s)):w.compare(O)>0&&S(sv(w,a,o,l,s));let M=t.useMemo((()=>!!m&&(!(!c||!c(m))||av(m,l,s))),[m,c,l,s]),A=e.isInvalid||"invalid"===e.validationState||M,_=A?"invalid":null,R=t.useMemo((()=>"visible"===d?a:hv(a)),[d,a]);var L,I;return{isDisabled:null!==(L=e.isDisabled)&&void 0!==L&&L,isReadOnly:null!==(I=e.isReadOnly)&&void 0!==I&&I,value:m,setValue:T,visibleRange:{start:C,end:O},minValue:l,maxValue:s,focusedDate:w,timeZone:v,validationState:_,isValueInvalid:A,setFocusedDate(e){P(e),E(!0)},focusNextDay(){P(w.add({days:1}))},focusPreviousDay(){P(w.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&P(w.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&P(w.subtract({weeks:1}))},focusNextPage(){let e=C.add(R);x(dv(w.add(R),l,s)),S(sv(cv(w,e,R,o,l,s),R,o))},focusPreviousPage(){let e=C.subtract(R);x(dv(w.subtract(R),l,s)),S(sv(cv(w,e,R,o,l,s),R,o))},focusSectionStart(){a.days?P(C):a.weeks?P(Bl(w,o)):(a.months||a.years)&&P(Nl(w))},focusSectionEnd(){a.days?P(O):a.weeks?P(function(e,t){return Bl(e,t).add({days:6})}(w,o)):(a.months||a.years)&&P($l(w))},focusNextSection(e){e||a.days?a.days?this.focusNextPage():a.weeks?P(w.add({months:1})):(a.months||a.years)&&P(w.add({years:1})):P(w.add(hv(a)))},focusPreviousSection(e){e||a.days?a.days?this.focusPreviousPage():a.weeks?P(w.subtract({months:1})):(a.months||a.years)&&P(w.subtract({years:1})):P(w.subtract(hv(a)))},selectFocusedDate(){T(w)},selectDate(e){T(e)},isFocused:k,setFocused:E,isInvalid:e=>av(e,l,s),isSelected(e){return null!=m&&Dl(e,m)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>k&&w&&Dl(e,w),isCellDisabled(t){return e.isDisabled||t.compare(C)<0||t.compare(O)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=C.subtract({days:1});return Dl(e,C)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=O.add({days:1});return Dl(e,O)||this.isInvalid(e)},getDatesInWeek(e,t=C){let n=t.add({weeks:e}),r=[];n=Bl(n,o);let i=Pl(n,o);for(let e=0;e<i;e++)r.push(null);for(;r.length<7;){r.push(n);let e=n.add({days:1});if(Dl(n,e))break;n=e}for(;r.length<7;)r.push(null);return r}}}function hv(e){let t={...e};for(let n in e)t[n]=1;return t}function gv(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:ts(e),end:ts(t)}):null}function mv(e,t){return e=os(e,(null==t?void 0:t.calendar)||new El),t&&"hour"in t?t.set(e):e}function vv(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 yv{*[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 bv extends Set{constructor(e,t,n){super(e),e instanceof bv?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function wv(e){let{selectionMode:n="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=t.useRef(!1),[,s]=t.useState(!1),u=t.useRef(null),c=t.useRef(null),[,d]=t.useState(null),f=t.useMemo((()=>xv(e.selectedKeys)),[e.selectedKeys]),p=t.useMemo((()=>xv(e.defaultSelectedKeys,new bv)),[e.defaultSelectedKeys]),[h,g]=jo(f,p,e.onSelectionChange),m=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[v,y]=t.useState(i);"replace"===i&&"toggle"===v&&"object"==typeof h&&0===h.size&&y("replace");let b=t.useRef(i);return t.useEffect((()=>{i!==b.current&&(y(i),b.current=i)}),[i]),{selectionMode:n,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(e){l.current=e,s(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e,c.current=t,d(e)},selectedKeys:h,setSelectedKeys(e){!o&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||g(e)},disabledKeys:m,disabledBehavior:a}}function xv(e,t){return e?"all"===e?"all":new bv(e):t}class Cv{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&&ch(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&&ch(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 bv([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 bv(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?ch(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 bv("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 bv([e],e,e):new bv;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new bv;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(ah(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 bv)}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 Sv(e){let{filter:n,layoutDelegate:r}=e,o=wv(e),i=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=t.useCallback((e=>new yv(n?n(e):e)),[n]),l=t.useMemo((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),s=ih(e,a,l),u=t.useMemo((()=>new Cv(s,o,{layoutDelegate:r})),[s,o,r]);const c=t.useRef(null);return t.useEffect((()=>{if(null!=o.focusedKey&&!s.getItem(o.focusedKey)&&c.current){const d=c.current.getItem(o.focusedKey),f=[...c.current.getKeys()].map((e=>{const t=c.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),p=[...s.getKeys()].map((e=>{const t=s.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,r,i;let g=Math.min(h>1?Math.max((null!==(n=null==d?void 0:d.index)&&void 0!==n?n:0)-h+1,0):null!==(r=null==d?void 0:d.index)&&void 0!==r?r: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==d?void 0:d.index)&&void 0!==a?a:0)&&(g=null!==(l=null==d?void 0:d.index)&&void 0!==l?l:0),g--}o.setFocusedKey(m?m.key:null)}c.current=s}),[s,u,o,o.focusedKey]),{collection:s,disabledKeys:i,selectionManager:u}}function kv(e){var n;let[r,o]=jo(e.selectedKey,null!==(n=e.defaultSelectedKey)&&void 0!==n?n:null,e.onSelectionChange),i=t.useMemo((()=>null!=r?[r]:[]),[r]),{collection:a,disabledKeys:l,selectionManager:s}=Sv({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:t=>{if("all"===t)return;var n;let i=null!==(n=t.values().next().value)&&void 0!==n?n:null;i===r&&e.onSelectionChange&&e.onSelectionChange(i),o(i)}}),u=null!=r?a.getItem(r):null;return{collection:a,disabledKeys:l,selectionManager:s,selectedKey:r,setSelectedKey:o,selectedItem:u}}function Ev(e){let[n,r]=jo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=t.useCallback((()=>{r(!0)}),[r]),i=t.useCallback((()=>{r(!1)}),[r]),a=t.useCallback((()=>{r(!n)}),[r,n]);return{isOpen:n,setOpen:r,open:o,close:i,toggle:a}}function Ov(e){var n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:l=!0}=e,[s,u]=t.useState(!1),[c,d]=t.useState(!1),[f,p]=t.useState(null);var h;let{collection:g,selectionManager:m,selectedKey:v,setSelectedKey:y,selectedItem:b,disabledKeys:w}=kv({...e,onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===v&&($(),L())},items:null!==(h=e.items)&&void 0!==h?h:e.defaultItems}),x=e.defaultInputValue;var C,S;null==x&&(x=null==v?"":null!==(S=null===(C=g.getItem(v))||void 0===C?void 0:C.textValue)&&void 0!==S?S:"");let[k,E]=jo(e.inputValue,x,e.onInputChange),O=g,D=t.useMemo((()=>null==e.items&&r?function(e,t,n){return new yv(Dv(e,e,t,n))}(g,k,r):g),[g,k,r,e.items]),[j,P]=t.useState(D),T=t.useRef("focus"),M=Ev({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?T.current:void 0),m.setFocused(t),t||m.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),A=(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===o;(i||D.size>0||r&&O.size>0||e.items)&&(r&&!M.isOpen&&void 0===e.items&&u(!0),T.current=n,p(t),M.open())},_=t.useCallback((()=>{P(s?O:D)}),[s,O,D]),R=t.useCallback(((e=null)=>{M.isOpen&&_(),p(e),M.toggle()}),[M,_]),L=t.useCallback((()=>{M.isOpen&&(_(),M.close())}),[M,_]),[I,N]=t.useState(k),$=()=>{var e,t;let n=null!=v&&null!==(t=null===(e=g.getItem(v))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";N(n),E(n)};var z,F;let B=t.useRef(null!==(F=null!==(z=e.selectedKey)&&void 0!==z?z:e.defaultSelectedKey)&&void 0!==F?F:null);var K;let V=t.useRef(null!=v&&null!==(K=null===(n=g.getItem(v))||void 0===n?void 0:n.textValue)&&void 0!==K?K:"");t.useEffect((()=>{var t,n;c&&(D.size>0||i)&&!M.isOpen&&k!==I&&"manual"!==o&&A(null,"input"),s||i||!M.isOpen||0!==D.size||L(),null!=v&&v!==B.current&&L(),k!==I&&(m.setFocusedKey(null),u(!1),""!==k||void 0!==e.inputValue&&void 0!==e.selectedKey||y(null)),v===B.current||void 0!==e.inputValue&&void 0!==e.selectedKey?I!==k&&N(k):$();let r=null!=v&&null!==(n=null===(t=g.getItem(v))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";c||null==v||void 0!==e.inputValue||v!==B.current||V.current!==r&&(N(r),E(r)),B.current=v,V.current=r}));let H=hd({...e,value:t.useMemo((()=>({inputValue:k,selectedKey:v})),[k,v])}),U=()=>{B.current=null,y(null),L()},W=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n,r;null===(t=e.onSelectionChange)||void 0===t||t.call(e,v);let o=null!=v&&null!==(r=null===(n=g.getItem(v))||void 0===n?void 0:n.textValue)&&void 0!==r?r:"";N(o),L()}else $(),L()};const Z=()=>{if(a){var e,t;const n=null!=v&&null!==(t=null===(e=g.getItem(v))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";k===n?W():U()}else W()};let q=t.useRef(k),G=t.useMemo((()=>M.isOpen?s?O:D:j),[M.isOpen,O,D,s,j]);return{...H,...M,focusStrategy:f,toggle:(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===o;(i||D.size>0||r&&O.size>0||e.items||M.isOpen)&&(r&&!M.isOpen&&void 0===e.items&&u(!0),M.isOpen||(T.current=n),R(t))},open:A,close:Z,selectionManager:m,selectedKey:v,setSelectedKey:y,disabledKeys:w,isFocused:c,setFocused:t=>{t?(q.current=k,"focus"!==o||e.isReadOnly||A(null,"focus")):(l&&Z(),k!==q.current&&H.commitValidation()),d(t)},selectedItem:b,collection:G,inputValue:k,setInputValue:E,commit:()=>{M.isOpen&&null!=m.focusedKey?v===m.focusedKey?W():y(m.focusedKey):Z()},revert:()=>{a&&null==v?U():W()}}}function Dv(e,t,n,r){let o=[];for(let i of t)if("section"===i.type&&i.hasChildNodes){let t=Dv(e,ah(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 jv;jv={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Pv;Pv={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Tv;Tv={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 Mv;Mv={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 Av;Av={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 _v;_v={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Rv;Rv={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 Lv;Lv={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 Iv;Iv={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 Nv;Nv={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 $v;$v={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 zv;zv={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Fv;Fv={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 Bv;Bv={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 Kv;Kv={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 Vv;Vv={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Hv;Hv={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Uv;Uv={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 Wv;Wv={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 Zv;Zv={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 qv;qv={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 Gv;Gv={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 Yv;Yv={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 Xv;Xv={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 Jv;Jv={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 Qv;Qv={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var ey;ey={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 ty;ty={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 ny;ny={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 ry;ry={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 oy;oy={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 iy;iy={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var ay;ay={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var ly;ly={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};const sy=new dl(function(e){return e&&e.__esModule?e.default:e}({"ar-AE":jv,"bg-BG":Pv,"cs-CZ":Tv,"da-DK":Mv,"de-DE":Av,"el-GR":_v,"en-US":Rv,"es-ES":Lv,"et-EE":Iv,"fi-FI":Nv,"fr-FR":$v,"he-IL":zv,"hr-HR":Fv,"hu-HU":Bv,"it-IT":Kv,"ja-JP":Vv,"ko-KR":Hv,"lt-LT":Uv,"lv-LV":Wv,"nb-NO":Zv,"nl-NL":qv,"pl-PL":Gv,"pt-BR":Yv,"pt-PT":Xv,"ro-RO":Jv,"ru-RU":Qv,"sk-SK":ey,"sl-SI":ty,"sr-SP":ny,"sv-SE":ry,"tr-TR":oy,"uk-UA":iy,"zh-CN":ay,"zh-TW":ly}));function uy(){return"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US"}function cy(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,u=[];if(s){let e=uy(),r=dl.getGlobalDictionaryForPackage("@react-stately/datepicker")||sy,s=new hl(e,r),c=new Ku(e,py({},o)),d=c.resolvedOptions().timeZone;a&&u.push(s.format("rangeUnderflow",{minValue:c.format(t.toDate(d))})),i&&u.push(s.format("rangeOverflow",{maxValue:c.format(n.toDate(d))})),l&&u.push(s.format("unavailableDate"))}return{isInvalid:s,validationErrors:u,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const dy={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},fy={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function py(e,t){let n=t.shouldForceLeadingZeros?fy:dy;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 hy(e){return e&&"hour"in e?e:new Is}function gy(e,t){return null===e?null:e?os(e,t):void 0}function my(e,t,n,r){if(e)return gy(e,n);let o=os(Tl(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?ts(o):r?o:ns(o)}function vy(e,n){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&n&&!(n in e))throw new Error("Invalid granularity "+n+" for value "+e.toString());let[i,a]=t.useState([o,r]);return!e||i[0]===o&&i[1]===r||a([o,r]),n||(n=e?o:i[0]),[n,e?r:i[1]]}const yy=new dl({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 by={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},wy={year:5,month:2,day:7,hour:2,minute:15,second:15},xy={dayperiod:"dayPeriod"};function Cy(e){let{locale:n,createCalendar:r,hideTimeZone:o,isDisabled:i,isReadOnly:a,isRequired:l,minValue:s,maxValue:u,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue,[f,p]=vy(d,e.granularity),h=p||"UTC";if(d&&!(f in d))throw new Error("Invalid granularity "+f+" for value "+d.toString());let g=t.useMemo((()=>new Ku(n)),[n]),m=t.useMemo((()=>r(g.resolvedOptions().calendar)),[r,g]),[v,y]=jo(e.value,e.defaultValue,e.onChange),b=t.useMemo((()=>gy(v,m)),[v,m]),[w,x]=t.useState((()=>my(e.placeholderValue,f,m,p))),C=b||w,S="gregory"===m.identifier&&"BC"===C.era,k=t.useMemo((()=>{var t;return{granularity:f,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:p,hideTimeZone:o,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,o,S]),E=t.useMemo((()=>py({},k)),[k]),O=t.useMemo((()=>new Ku(n,E)),[n,E]),D=t.useMemo((()=>O.resolvedOptions()),[O]),j=t.useMemo((()=>O.formatToParts(new Date).filter((e=>by[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[O]),[P,T]=t.useState((()=>e.value||e.defaultValue?{...j}:{})),M=t.useRef(void 0),A=t.useRef(m.identifier);t.useEffect((()=>{m.identifier!==A.current&&(A.current=m.identifier,x((t=>Object.keys(P).length>0?os(t,m):my(e.placeholderValue,f,m,p))))}),[m,f,P,p,e.placeholderValue]),v&&Object.keys(P).length<Object.keys(j).length&&(P={...j},T(P)),null==v&&Object.keys(P).length===Object.keys(j).length&&(P={},T(P),x(my(e.placeholderValue,f,m,p)));let _=b&&Object.keys(P).length>=Object.keys(j).length?b:w,R=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(P),r=Object.keys(j);null==t?(y(null),x(my(e.placeholderValue,f,m,p)),T({})):n.length>=r.length||n.length===r.length-1&&j.dayPeriod&&!P.dayPeriod&&"dayPeriod"!==M.current?(t=os(t,(null==d?void 0:d.calendar)||new El),y(t)):x(t),M.current=null},L=t.useMemo((()=>_.toDate(h)),[_,h]),I=t.useMemo((()=>O.formatToParts(L).map((e=>{let t=by[e.type];"era"===e.type&&1===m.getEras().length&&(t=!1);let r=by[e.type]&&!P[e.type],o=by[e.type]?function(e,t,n){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?yy.getStringForLocale(e,n):"––"}(e.type,e.value,n):null;return{type:xy[e.type]||e.type,text:r?o:e.value,...Sy(_,e.type,D),isPlaceholder:r,placeholder:o,isEditable:t}}))),[L,P,O,D,_,m,n]);j.era&&P.year&&!P.era?(P.era=!0,T({...P})):!j.era&&P.era&&(delete P.era,T({...P}));let N=e=>{P[e]=!0,"year"===e&&j.era&&(P.era=!0),T({...P})},$=(e,t)=>{if(P[e])R(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})}}(_,e,t,D));else{N(e);let t=Object.keys(P),n=Object.keys(j);(t.length>=n.length||t.length===n.length-1&&j.dayPeriod&&!P.dayPeriod)&&R(_)}},z=t.useMemo((()=>cy(v,s,u,c,k)),[v,s,u,c,k]),F=hd({...e,value:v,builtinValidation:z}),B=F.displayValidation.isInvalid,K=e.validationState||(B?"invalid":null);var V;return{...F,value:b,dateValue:L,calendar:m,setValue:R,segments:I,dateFormatter:O,validationState:K,isInvalid:B,granularity:f,maxGranularity:null!==(V=e.maxGranularity)&&void 0!==V?V:"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(e){$(e,1)},decrement(e){$(e,-1)},incrementPage(e){$(e,wy[e]||1)},decrementPage(e){$(e,-(wy[e]||1))},setSegment(e,t){N(e),R(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})}}(_,e,t,D))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(P),n=Object.keys(j);t.length===n.length-1&&j.dayPeriod&&!P.dayPeriod&&(P={...j},T(P),R(_.copy()))},clearSegment(t){delete P[t],M.current=t,T({...P});let n=my(e.placeholderValue,f,m,p),r=_;if("dayPeriod"===t&&"hour"in _&&"hour"in n){let e=_.hour>=12,t=n.hour>=12;e&&!t?r=_.set({hour:_.hour-12}):!e&&t&&(r=_.set({hour:_.hour+12}))}else t in _&&(r=_.set({[t]:n[t]}));y(null),R(r)},formatValue(e){if(!b)return"";let t=py(e,k);return new Ku(n,t).format(L)},getDateFormatter(e,t){let n=py({},{...k,...t});return new Ku(e,n)}}}function Sy(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:zl(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Fl(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 ky(e){var n,r;let o=Ev(e),[i,a]=jo(e.value,e.defaultValue||null,e.onChange),[l,s]=t.useState((()=>i||{start:null,end:null}));null==i&&l.start&&l.end&&(l={start:null,end:null},s(l));let u=i||l,c=e=>{s(e||{start:null,end:null}),(null==e?void 0:e.start)&&e.end?a(e):a(null)},d=(null==u?void 0:u.start)||(null==u?void 0:u.end)||e.placeholderValue,[f,p]=vy(d,e.granularity),h="hour"===f||"minute"===f||"second"===f;var g;let m=null===(g=e.shouldCloseOnSelect)||void 0===g||g,[v,y]=t.useState(null),[b,w]=t.useState(null);u&&u.start&&u.end&&(v=u,"hour"in u.start&&(b=u));let x=(e,t)=>{c({start:"timeZone"in t.start?t.start.set(ts(e.start)):ns(e.start,t.start),end:"timeZone"in t.end?t.end.set(ts(e.end)):ns(e.end,t.end)}),y(null),w(null),T.commitValidation()},C=t=>{let n="function"==typeof m?m():m;h?n||t.start&&t.end&&(null==b?void 0:b.start)&&(null==b?void 0:b.end)?x(t,{start:(null==b?void 0:b.start)||hy(e.placeholderValue),end:(null==b?void 0:b.end)||hy(e.placeholderValue)}):y(t):t.start&&t.end?(c(t),T.commitValidation()):y(t),n&&o.setOpen(!1)},S=e=>{(null==v?void 0:v.start)&&(null==v?void 0:v.end)&&e.start&&e.end?x(v,e):w(e)},k="gregory"===(null==u||null===(n=u.start)||void 0===n?void 0:n.calendar.identifier)&&"BC"===u.start.era||"gregory"===(null==u||null===(r=u.end)||void 0===r?void 0:r.calendar.identifier)&&"BC"===u.end.era,E=t.useMemo((()=>({granularity:f,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k})),[f,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,k]),{minValue:O,maxValue:D,isDateUnavailable:j}=e,P=t.useMemo((()=>function(e,t,n,r,o){let i=yd(cy(null==e?void 0:e.start,t,n,r,o),cy(null==e?void 0:e.end,t,n,r,o));null!=e.end&&null!=e.start&&e.end.compare(e.start)<0&&(i=yd(i,{isInvalid:!0,validationErrors:[(dl.getGlobalDictionaryForPackage("@react-stately/datepicker")||sy).getStringForLocale("rangeReversed",uy())],validationDetails:{...ud,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}}));return i}(u,O,D,j,E)),[u,O,D,j,E]),T=hd({...e,value:i,name:t.useMemo((()=>[e.startName,e.endName]),[e.startName,e.endName]),builtinValidation:P}),M=T.displayValidation.isInvalid,A=e.validationState||(M?"invalid":null);return{...T,value:u,setValue:c,dateRange:v,timeRange:b,granularity:f,hasTime:h,setDate(e,t){C({...v,[e]:t})},setTime(e,t){S({...b,[e]:t})},setDateTime(e,t){c({...u,[e]:t})},setDateRange:C,setTimeRange:S,...o,setOpen(t){t||(null==u?void 0:u.start)&&(null==u?void 0:u.end)||!(null==v?void 0:v.start)||!(null==v?void 0:v.end)||!h||x(v,{start:(null==b?void 0:b.start)||hy(e.placeholderValue),end:(null==b?void 0:b.end)||hy(e.placeholderValue)}),o.setOpen(t)},validationState:A,isInvalid:M,formatValue(t,n){if(!u||!u.start||!u.end)return null;let r,o="timeZone"in u.start?u.start.timeZone:void 0,i=e.granularity||(u.start&&"minute"in u.start?"minute":"day"),a="timeZone"in u.end?u.end.timeZone:void 0,l=e.granularity||(u.end&&"minute"in u.end?"minute":"day"),s=py(n,{granularity:i,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===u.start.calendar.identifier&&"BC"===u.start.era||"gregory"===u.end.calendar.identifier&&"BC"===u.end.era}),c=u.start.toDate(o||"UTC"),d=u.end.toDate(a||"UTC"),f=new Ku(t,s);if(o===a&&i===l&&0!==u.start.compare(u.end)){try{let e=f.formatRangeToParts(c,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=py(n,{granularity:l,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});r=new Ku(t,o)}return{start:f.format(c),end:r.format(d)}},getDateFormatter(e,t){let n=py({},{...E,...t});return new Ku(e,n)}}}function Ey(e,t=Ml(Il())){return e?"day"in e?e:ns(t,e):null}function Oy(e){let n=Ev(e),[r,o]=t.useState(null),[i,a]=t.useState([]);return{focusStrategy:r,...n,open(e=null){o(e),n.open()},toggle(e=null){o(e),n.toggle()},close(){a([]),n.close()},expandedKeysStack:i,openSubmenu:(e,t)=>{a((n=>t>n.length?n:[...n.slice(0,t),e]))},closeSubmenu:(e,t)=>{a((n=>n[t]===e?n.slice(0,t):n))}}}function Dy(e){if(null!=e)return e.toString()}function jy(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 Py(e,t){return null!=e?jy(e,t):Number.MAX_SAFE_INTEGER}function Ty(e,t){return null!=e?jy(e,t):0}function My(e,t,n,r,o){let i=!1,a=t.map(((t,a)=>{var l,s,u;let c=null!=n.get(t.key)?n.get(t.key):null!==(u=null!==(s=null!==(l=t.width)&&void 0!==l?l:t.defaultWidth)&&void 0!==s?s:null==r?void 0:r(a))&&void 0!==u?u:"1fr",d=!1,f=0,p=0,h=null;var g,m;!function(e){return null!=e&&(!isNaN(e)||null!==String(e).match(/^(\d+)(?=%$)/))}(c)?(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)}(c),p<=0&&(d=!0)):(f=jy(c,e),d=!0);let v=Ty(null!==(m=null!==(g=t.minWidth)&&void 0!==g?g:null==o?void 0:o(a))&&void 0!==m?m:0,e),y=Py(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 Ay{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=My(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,Ty(null!==(a=i.props.minWidth)&&void 0!==a?a:this.getDefaultMinWidth(i),e)),this.columnMaxWidths.set(o,Py(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 _y(e,n){let{getDefaultWidth:r,getDefaultMinWidth:o,tableWidth:i=0}=e,[a,l]=t.useState(null),s=t.useMemo((()=>new Ay({getDefaultWidth:r,getDefaultMinWidth:o})),[r,o]),[u,c]=t.useMemo((()=>s.splitColumnsIntoControlledAndUncontrolled(n.collection.columns)),[n.collection.columns,s]),[d,f]=t.useState((()=>s.getInitialUncontrolledWidths(c))),[p,h]=t.useState(n.collection.columns);if(n.collection.columns!==p){if(n.collection.columns.length!==p.length||n.collection.columns.some(((e,t)=>e.key!==p[t].key))){let e=s.getInitialUncontrolledWidths(c);f(e)}h(n.collection.columns)}let g=t.useMemo((()=>s.recombineColumns(n.collection.columns,d,c,u)),[n.collection.columns,d,c,u,s]),m=t.useCallback((e=>{l(e)}),[l]),v=t.useCallback(((e,t)=>{let r=s.resizeColumnWidth(n.collection,d,e,t),o=new Map(Array.from(c).map((([e])=>[e,r.get(e)])));return o.set(e,t),f(o),r}),[c,f,s,n.collection,d]),y=t.useCallback((()=>{l(null)}),[l]),b=t.useMemo((()=>s.buildColumnWidths(i,n.collection,g)),[i,n.collection,g,s]);return t.useMemo((()=>({resizingColumn:a,updateResizedColumns:v,startResize:m,endResize:y,getColumnWidth:e=>s.getColumnWidth(e),getColumnMinWidth:e=>s.getColumnMinWidth(e),getColumnMaxWidth:e=>s.getColumnMaxWidth(e),tableState:n,columnWidths:b})),[s,b,a,v,m,y,n])}class Ry{*[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 Ly="row-header-column-"+Math.random().toString(36).slice(2);let Iy="row-header-column-"+Math.random().toString(36).slice(2);for(;Ly===Iy;)Iy="row-header-column-"+Math.random().toString(36).slice(2);function Ny(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 $y extends Ry{*[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=uh(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:Ly,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:Iy,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 u=Ny(l,i);u.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=u,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 zy={ascending:"descending",descending:"ascending"};function Fy(e){let[n,r]=t.useState(!1),{selectionMode:o="none",showSelectionCheckboxes:i,showDragButtons:a}=e,l=t.useMemo((()=>({showSelectionCheckboxes:i&&"none"!==o,showDragButtons:a,selectionMode:o,columns:[]})),[e.children,i,o,a]),s=ih(e,t.useCallback((e=>new $y(e,null,l)),[l]),l),{disabledKeys:u,selectionManager:c}=function(e){let{collection:n,focusMode:r}=e,o=e.UNSAFE_selectionState||wv(e),i=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=o.setFocusedKey;o.setFocusedKey=(e,t)=>{if("cell"===r&&null!=e){let r=n.getItem(e);if("item"===(null==r?void 0:r.type)){var o,i;let a=ah(r,n);e="last"===t?null===(o=uh(a))||void 0===o?void 0:o.key:null===(i=lh(a))||void 0===i?void 0:i.key}}a(e,t)};let l=t.useMemo((()=>new Cv(n,o)),[n,o]);const s=t.useRef(null);return t.useEffect((()=>{if(null!=o.focusedKey&&!n.getItem(o.focusedKey)){const e=s.current.getItem(o.focusedKey),t=null==e.parentKey||"cell"!==e.type&&"rowheader"!==e.type&&"column"!==e.type?e:s.current.getItem(e.parentKey),r=s.current.rows,i=n.rows,a=r.length-i.length;let u,c=Math.min(a>1?Math.max(t.index-a+1,0):t.index,i.length-1);for(;c>=0;){if(!l.isDisabled(i[c].key)&&"headerrow"!==i[c].type){u=i[c];break}c<i.length-1?c++:(c>t.index&&(c=t.index),c--)}if(u){const r=u.hasChildNodes?[...ah(u,n)]:[],i=u.hasChildNodes&&t!==e&&e.index<r.length?r[e.index].key:u.key;o.setFocusedKey(i)}else o.setFocusedKey(null)}s.current=n}),[n,l,o,o.focusedKey]),{collection:n,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"});return{collection:s,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:0===s.size||n,setKeyboardNavigationDisabled:r,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?zy[e.sortDescriptor.direction]:"ascending"})}}}const By=1500,Ky=500;let Vy={},Hy=0,Uy=!1,Wy=null,Zy=null;function qy(e={}){let{delay:n=By,closeDelay:r=Ky}=e,{isOpen:o,open:i,close:a}=Ev(e),l=t.useMemo((()=>""+ ++Hy),[]),s=t.useRef(void 0),u=t.useRef(a),c=()=>{Vy[l]=p},d=()=>{for(let e in Vy)e!==l&&(Vy[e](!0),delete Vy[e])},f=()=>{clearTimeout(s.current),s.current=null,d(),c(),Uy=!0,i(),Wy&&(clearTimeout(Wy),Wy=null),Zy&&(clearTimeout(Zy),Zy=null)},p=e=>{e||r<=0?(clearTimeout(s.current),s.current=null,u.current()):s.current||(s.current=setTimeout((()=>{s.current=null,u.current()}),r)),Wy&&(clearTimeout(Wy),Wy=null),Uy&&(Zy&&clearTimeout(Zy),Zy=setTimeout((()=>{delete Vy[l],Zy=null,Uy=!1}),Math.max(Ky,r)))};return t.useEffect((()=>{u.current=a}),[a]),t.useEffect((()=>()=>{clearTimeout(s.current),Vy[l]&&delete Vy[l]}),[l]),{isOpen:o,open:e=>{!e&&n>0&&!s.current?(d(),c(),o||Wy||Uy?o||f():Wy=setTimeout((()=>{Wy=null,Uy=!0,f()}),n)):f()},close:p}}class Gy{*[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 Yy(e){let{onExpandedChange:n}=e,[r,o]=jo(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,n),i=wv(e),a=t.useMemo((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=ih(e,t.useCallback((e=>new Gy(e,{expandedKeys:r})),[r]),null);t.useEffect((()=>{null==i.focusedKey||l.getItem(i.focusedKey)||i.setFocusedKey(null)}),[l,i.focusedKey]);return{collection:l,expandedKeys:r,disabledKeys:a,toggleKey:e=>{o(function(e,t){let n=new Set(e);n.has(t)?n.delete(t):n.add(t);return n}(r,e))},setExpandedKeys:o,selectionManager:new Cv(l,i)}}const Xy=t.createContext({}),Jy=t.createContext({}),Qy=t.createContext(null),eb=t.createContext(null);function tb(e,n){[e,n]=si(e,n,Xy);let{locale:r}=ll(),o=pv({...e,locale:r,createCalendar:Fu}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=function(e,t){return id(e,t)}(e,o),c=ai({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"});return t.createElement("div",{...c,...i,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},t.createElement(ii,{values:[[ev,{slots:{previous:a,next:l}}],[Qn,{"aria-hidden":!0,level:2,children:u}],[Qy,o],[rv,{slots:{errorMessage:s}}]]},t.createElement(Dd,null,t.createElement("h2",null,i["aria-label"])),c.children,t.createElement(Dd,null,t.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const nb=t.forwardRef(tb);function rb(e,n){[e,n]=si(e,n,Jy);let{locale:r}=ll(),o=function(e){let{value:n,defaultValue:r,onChange:o,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:s,maxValue:u,...c}=e,[d,f]=jo(n,r||null,o),[p,h]=t.useState(null),g="center";if(d&&d.start&&d.end){let e=lv(ts(d.start),l,a,s,u).add(l).subtract({days:1});d.end.compare(e)>0&&(g="start")}let m=t.useRef(null),[v,y]=t.useState(null),b=t.useMemo((()=>Hl(s,null==v?void 0:v.start)),[s,v]),w=t.useMemo((()=>Vl(u,null==v?void 0:v.end)),[u,v]),x=pv({...c,value:d&&d.start,createCalendar:i,locale:a,visibleDuration:l,minValue:b,maxValue:w,selectionAlignment:g}),C=t=>{if(t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const e=vv(t,x,-1),n=vv(t,x,1);m.current={start:e,end:n},y(m.current)}else m.current=null,y(null)},[S,k]=t.useState(x.visibleRange);jl(x.visibleRange.start,S.start)&&jl(x.visibleRange.end,S.end)||(C(p),k(x.visibleRange));let E=e=>{e?(h(e),C(e)):(h(null),C(null))},O=p?gv(p,x.focusedDate):d&&gv(d.start,d.end),D=t=>{if(e.isReadOnly)return;const n=fv(dv(t,b,w),x.visibleRange.start,e.isDateUnavailable);if(n)if(p){let e=gv(p,n);e&&f({start:mv(e.start,null==d?void 0:d.start),end:mv(e.end,null==d?void 0:d.end)}),E(null)}else E(n)},[j,P]=t.useState(!1),{isDateUnavailable:T}=e,M=t.useMemo((()=>!(!d||p)&&(!(!T||!T(d.start)&&!T(d.end))||av(d.start,s,u)||av(d.end,s,u))),[T,d,p,s,u]),A=e.isInvalid||"invalid"===e.validationState||M,_=A?"invalid":null;return{...x,value:d,setValue:f,anchorDate:p,setAnchorDate:E,highlightedRange:O,validationState:_,isValueInvalid:A,selectFocusedDate(){D(x.focusedDate)},selectDate:D,highlightDate(e){p&&x.setFocusedDate(e)},isSelected:e=>Boolean(O&&e.compare(O.start)>=0&&e.compare(O.end)<=0&&!x.isCellDisabled(e)&&!x.isCellUnavailable(e)),isInvalid(e){var t,n;return x.isInvalid(e)||av(e,null===(t=m.current)||void 0===t?void 0:t.start,null===(n=m.current)||void 0===n?void 0:n.end)},isDragging:j,setDragging:P}}({...e,locale:r,createCalendar:Fu}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=function(e,n,r){let o=id(e,n),i=t.useRef(!1),a=t.useRef("undefined"!=typeof window?window:null);return xo(a,"pointerdown",(e=>{i.current=0===e.width&&0===e.height})),xo(a,"pointerup",(e=>{if(i.current)return void(i.current=!1);if(n.setDragging(!1),!n.anchorDate)return;let t=e.target;!r.current||!r.current.contains(document.activeElement)||r.current.contains(t)&&t.closest('button, [role="button"]')||n.selectFocusedDate()})),o.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&r.current.contains(e.relatedTarget)||!n.anchorDate||n.selectFocusedDate())},xo(r,"touchmove",(e=>{n.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),o}(e,o,n),c=ai({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return t.createElement("div",{...c,...i,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},t.createElement(ii,{values:[[ev,{slots:{previous:a,next:l}}],[Qn,{"aria-hidden":!0,level:2,children:u}],[eb,o],[rv,{slots:{errorMessage:s}}]]},t.createElement(Dd,null,t.createElement("h2",null,i["aria-label"])),c.children,t.createElement(Dd,null,t.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}const ob=t.forwardRef(rb),ib=t.createContext(null);function ab(e,n){let r=t.useContext(Qy),o=t.useContext(eb),i=null!=r?r:o,a=i.visibleRange.start;e.offset&&(a=a.add(e.offset));let{gridProps:l,headerProps:s,weekDays:u}=function(e,n){let{startDate:r=n.visibleRange.start,endDate:o=n.visibleRange.end}=e,{direction:i}=ll(),a=Qc(r,o,n.timeZone,!0),{ariaLabel:l,ariaLabelledBy:s}=Xc.get(n),u=so({"aria-label":[l,a].filter(Boolean).join(", "),"aria-labelledby":s}),c=Zu({weekday:e.weekdayStyle||"narrow",timeZone:n.timeZone}),{locale:d}=ll(),f=t.useMemo((()=>{let e=Bl(Ml(n.timeZone),d);return[...new Array(7).keys()].map((t=>{let r=e.add({days:t}).toDate(n.timeZone);return c.format(r)}))}),[d,n.timeZone,c]);return{gridProps:Ar(u,{role:"grid","aria-readonly":n.isReadOnly||null,"aria-disabled":n.isDisabled||null,"aria-multiselectable":"highlightedRange"in n||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),n.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),n.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),n.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),n.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===i?n.focusNextDay():n.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===i?n.focusPreviousDay():n.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n.focusNextRow();break;case"Escape":"setAnchorDate"in n&&(e.preventDefault(),n.setAnchorDate(null))}},onFocus:()=>n.setFocused(!0),onBlur:()=>n.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:f}}({startDate:a,endDate:$l(a),weekdayStyle:e.weekdayStyle},i);var c;return t.createElement(ib.Provider,{value:{headerProps:s,weekDays:u,startDate:a}},t.createElement("table",{...$r(e),...l,ref:n,style:e.style,className:null!==(c=e.className)&&void 0!==c?c:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:t.createElement(t.Fragment,null,t.createElement(ub,null,(e=>t.createElement(db,null,e))),t.createElement(pb,null,e.children))))}const lb=t.forwardRef(ab);function sb(e,n){let{children:r,style:o,className:i}=e,{headerProps:a,weekDays:l}=t.useContext(ib);return t.createElement("thead",{...$r(e),...a,ref:n,style:o,className:i||"react-aria-CalendarGridHeader"},t.createElement("tr",null,l.map(((e,n)=>t.cloneElement(r(e),{key:n})))))}const ub=t.forwardRef(sb);function cb(e,n){let{children:r,style:o,className:i}=e;return t.createElement("th",{...$r(e),ref:n,style:o,className:i||"react-aria-CalendarHeaderCell"},r)}const db=t.forwardRef(cb);function fb(e,n){let{children:r,style:o,className:i}=e,a=t.useContext(Qy),l=t.useContext(eb),s=null!=a?a:l,{startDate:u}=t.useContext(ib),{locale:c}=ll(),d=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Pl(Nl(e),t)+n)/7)}(u,c);return t.createElement("tbody",{...$r(e),ref:n,style:o,className:i||"react-aria-CalendarGridBody"},[...new Array(d).keys()].map((e=>t.createElement("tr",{key:e},s.getDatesInWeek(e,u).map(((e,n)=>e?t.cloneElement(r(e),{key:n}):t.createElement("td",{key:n})))))))}const pb=t.forwardRef(fb);function hb({date:e,...n},r){let o=t.useContext(Qy),i=t.useContext(eb),a=null!=o?o:i;var l;let{startDate:s}=null!==(l=t.useContext(ib))&&void 0!==l?l:{startDate:a.visibleRange.start},u=t.useRef(null),{cellProps:c,buttonProps:d,...f}=ad({date:e},a,u),{hoverProps:p,isHovered:h}=ga({...n,isDisabled:f.isDisabled}),{focusProps:g,isFocusVisible:m}=Za();m&&(m=f.isFocused);let v=!function(e,t){return t=os(t,e.calendar),e=Nl(e),t=Nl(t),e.era===t.era&&e.year===t.year&&e.month===t.month}(s,e),y=!1,b=!1;"highlightedRange"in a&&a.highlightedRange&&(y=Dl(e,a.highlightedRange.start),b=Dl(e,a.highlightedRange.end));let w=ai({...n,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:v,isFocusVisible:m,isSelectionStart:y,isSelectionEnd:b,...f}}),x={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":m||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":v||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":y||void 0,"data-selection-end":b||void 0,"data-invalid":f.isInvalid||void 0};return t.createElement("td",{...c,ref:r},t.createElement("div",{...Ar($r(n),d,g,p,x,w),ref:u}))}const gb=t.forwardRef(hb),mb=t.createContext(null);function vb(e,n){let r=t.useContext(mb);return(null==r?void 0:r.isInvalid)?t.createElement(bb,{...e,ref:n}):null}const yb=t.forwardRef(vb),bb=t.forwardRef(((e,n)=>{let r=t.useContext(mb),o=$r(e),i=ai({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==i.children?null:t.createElement(iv,{slot:"errorMessage",...o,...i,ref:n})})),wb=t.createContext(null),xb=t.createContext(null);function Cb(e,n){let{inputRef:r=null,...o}=e;[e,n]=si(o,n,Jn);let{validationBehavior:i}=li(wb)||{};var a,l;let s=null!==(l=null!==(a=e.validationBehavior)&&void 0!==a?a:i)&&void 0!==l?l:"native",u=t.useContext(xb),c=uo(_r(r,void 0!==e.inputRef?e.inputRef:null)),{labelProps:d,inputProps:f,isSelected:p,isDisabled:h,isReadOnly:g,isPressed:m,isInvalid:v}=u?function(e,n,r){const o=Sd({isReadOnly:e.isReadOnly||n.isReadOnly,isSelected:n.isSelected(e.value),onChange(t){t?n.addValue(e.value):n.removeValue(e.value),e.onChange&&e.onChange(t)}});let{name:i,descriptionId:a,errorMessageId:l,validationBehavior:s}=wd.get(n);var u;s=null!==(u=e.validationBehavior)&&void 0!==u?u:s;let{realtimeValidation:c}=hd({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),d=t.useRef(dd),f=()=>{n.setInvalid(e.value,c.isInvalid?c:d.current)};t.useEffect(f);let p=n.realtimeValidation.isInvalid?n.realtimeValidation:c,h="native"===s?n.displayValidation:p;var g;let m=bd({...e,isReadOnly:e.isReadOnly||n.isReadOnly,isDisabled:e.isDisabled||n.isDisabled,name:e.name||i,isRequired:null!==(g=e.isRequired)&&void 0!==g?g:n.isRequired,validationBehavior:s,[pd]:{realtimeValidation:p,displayValidation:h,resetValidation:n.resetValidation,commitValidation:n.commitValidation,updateValidation(e){d.current=e,f()}}},o,r);return{...m,inputProps:{...m.inputProps,"aria-describedby":[e["aria-describedby"],n.isInvalid?l:null,a].filter(Boolean).join(" ")||void 0}}}({...e,value:e.value,children:"function"==typeof e.children||e.children},u,c):bd({...e,children:"function"==typeof e.children||e.children,validationBehavior:s},Sd(e),c),{isFocused:y,isFocusVisible:b,focusProps:w}=Za(),x=h||g,{hoverProps:C,isHovered:S}=ga({...e,isDisabled:x}),k=ai({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:p,isIndeterminate:e.isIndeterminate||!1,isPressed:m,isHovered:S,isFocused:y,isFocusVisible:b,isDisabled:h,isReadOnly:g,isInvalid:v,isRequired:e.isRequired||!1}}),E=$r(e);return delete E.id,t.createElement("label",{...Ar(E,d,C,k),ref:n,slot:e.slot||void 0,"data-selected":p||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":m||void 0,"data-hovered":S||void 0,"data-focused":y||void 0,"data-focus-visible":b||void 0,"data-disabled":h||void 0,"data-readonly":g||void 0,"data-invalid":v||void 0,"data-required":e.isRequired||void 0},t.createElement(Dd,{elementType:"span"},t.createElement("input",{...Ar(f,w),ref:c})),k.children)}const Sb=t.forwardRef(Cb),kb=t.createContext({});let Eb=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function Ob(e,n){[e,n]=si(e,n,kb);let{hoverProps:r,isHovered:o}=ga(e),{isFocused:i,isFocusVisible:a,focusProps:l}=Za({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],u=ai({...e,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return t.createElement("input",{...Ar(Eb(e),l,r),...u,ref:n,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}const Db=br(Ob);var jb;jb={"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 Pb=t.createContext({}),Tb=t.createContext(null);function Mb(e,n){let{render:r}=t.useContext(Tb);return t.createElement(t.Fragment,null,r(e,n))}const Ab=t.forwardRef(Mb);function _b(e,n){var r;let o=null==e?void 0:e.renderDropIndicator,i=null==e||null===(r=e.isVirtualDragging)||void 0===r?void 0:r.call(e),a=t.useCallback((e=>{if(i||(null==n?void 0:n.isDropTarget(e)))return o?o(e):t.createElement(Ab,{target:e})}),[null==n?void 0:n.target,i,o]);return(null==e?void 0:e.useDropIndicator)?a:void 0}function Rb(e,n,r){var o,i;let a=e.focusedKey,l=null;var s;(null==n||null===(o=n.isVirtualDragging)||void 0===o?void 0:o.call(n))&&"item"===(null==r||null===(i=r.target)||void 0===i?void 0:i.type)&&(l=r.target.key,"after"===r.target.dropPosition&&(l=null!==(s=r.collection.getKeyAfter(l))&&void 0!==s?s:l));return t.useMemo((()=>new Set([a,l].filter((e=>null!==e)))),[a,l])}const Lb=t.createContext({}),Ib=Zo("header",(function(e,n){return[e,n]=si(e,n,Lb),t.createElement("header",{className:"react-aria-Header",...e,ref:n},e.children)})),Nb=t.createContext({}),$b=Zo("separator",(function(e,n){[e,n]=si(e,n,Nb);let{elementType:r,orientation:o,style:i,className:a}=e,l=r||"hr";"hr"===l&&"vertical"===o&&(l="div");let{separatorProps:s}=function(e){let t,n=$r(e,{labelable:!0});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...n,role:"separator","aria-orientation":t}}:{separatorProps:n}}({elementType:r,orientation:o});return t.createElement(l,{...$r(e),...s,style:i,className:null!=a?a:"react-aria-Separator",ref:n,slot:e.slot||void 0})})),zb=t.createContext(null),Fb=t.createContext(null);function Bb(e,n){[e,n]=si(e,n,zb);let r=t.useContext(Fb);return r?t.createElement(Hb,{state:r,props:e,listBoxRef:n}):t.createElement(Ko,{content:t.createElement(Xo,e)},(r=>t.createElement(Kb,{props:e,listBoxRef:n,collection:r})))}function Kb({props:e,listBoxRef:n,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:o}=t.useContext(ri),i=Sv({...e,layoutDelegate:o});return t.createElement(Hb,{state:i,props:e,listBoxRef:n})}const Vb=t.forwardRef(Bb);function Hb({state:e,props:n,listBoxRef:r}){let o,i,a,{dragAndDropHooks:l,layout:s="stack",orientation:u="vertical"}=n,{collection:c,selectionManager:d}=e,f=!!(null==l?void 0:l.useDraggableCollectionState),p=!!(null==l?void 0:l.useDroppableCollectionState),{direction:h}=ll(),{disabledBehavior:g,disabledKeys:m}=d,v=pc({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:b,dropTargetDelegate:w,CollectionRoot:x}=t.useContext(ri),C=t.useMemo((()=>n.keyboardDelegate||new Qp({collection:c,collator:v,ref:r,disabledKeys:m,disabledBehavior:g,layout:s,orientation:u,direction:h,layoutDelegate:b})),[c,v,r,g,m,u,h,n.keyboardDelegate,s,b]),{listBoxProps:S}=function(e,t,n){let r=$r(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||("replace"===o?"action":"override");"toggle"===o&&"action"===i&&(i="override");let{listProps:a}=eh({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:l}=ua({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=kr(e.id);Kp.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=xd({...e,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:Ar(r,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ar(c,a)})}}({...n,shouldSelectOnPressUp:f||n.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},e,r),k=t.useRef(f),E=t.useRef(p);t.useEffect((()=>{k.current!==f&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),E.current!==p&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")}),[f,p]);let O=!1,D=null,j=t.useRef(null);if(f&&l){o=l.useDraggableCollectionState({collection:c,selectionManager:d,preview:l.renderDragPreview?j:void 0}),l.useDraggableCollection({},o,r);let e=l.DragPreview;D=l.renderDragPreview?t.createElement(e,{ref:j},l.renderDragPreview):null}if(p&&l){i=l.useDroppableCollectionState({collection:c,selectionManager:d});let e=l.dropTargetDelegate||w||new l.ListDropTargetDelegate(c,r,{orientation:u,layout:s,direction:h});a=l.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:e},i,r),O=i.isDropTarget({type:"root"})}let{focusProps:P,isFocused:T,isFocusVisible:M}=Za(),A={isDropTarget:O,isEmpty:0===e.collection.size,isFocused:T,isFocusVisible:M,layout:n.layout||"stack",state:e},_=ai({className:n.className,style:n.style,defaultClassName:"react-aria-ListBox",values:A}),R=null;return 0===e.collection.size&&n.renderEmptyState&&(R=t.createElement("div",{role:"option",style:{display:"contents"}},n.renderEmptyState(A))),t.createElement(Da,null,t.createElement("div",{...$r(n),...Ar(S,P,null==a?void 0:a.collectionProps),..._,ref:r,slot:n.slot||void 0,onScroll:n.onScroll,"data-drop-target":O||void 0,"data-empty":0===e.collection.size||void 0,"data-focused":T||void 0,"data-focus-visible":M||void 0,"data-layout":n.layout||"stack","data-orientation":n.orientation||"vertical"},t.createElement(ii,{values:[[zb,n],[Fb,e],[Pb,{dragAndDropHooks:l,dragState:o,dropState:i}],[Nb,{elementType:"div"}],[Tb,{render:Zb}],[Qo,{render:Ub}]]},t.createElement(x,{collection:c,scrollRef:r,persistedKeys:Rb(d,l,i),renderDropIndicator:_b(l,i)})),R,D))}function Ub(e,n,r){let o=t.useContext(Fb),{dragAndDropHooks:i,dropState:a}=t.useContext(Pb),{CollectionBranch:l}=t.useContext(ri),[s,u]=ui();var c;let{headingProps:d,groupProps:f}=function(e){let{heading:t,"aria-label":n}=e,r=kr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:u,"aria-label":null!==(c=e["aria-label"])&&void 0!==c?c:void 0}),p=ai({defaultClassName:"react-aria-Section",className:e.className,style:e.style,values:{}});return t.createElement("section",{...$r(e),...f,...p,ref:n},t.createElement(Lb.Provider,{value:{...d,ref:s}},t.createElement(l,{collection:o.collection,parent:r,renderDropIndicator:_b(i,a)})))}const Wb=Zo("item",(function(e,n,r){let o=uo(n),i=t.useContext(Fb),{dragAndDropHooks:a,dragState:l,dropState:s}=t.useContext(Pb),{optionProps:u,labelProps:c,descriptionProps:d,...f}=function(e,t,n){var r,o;let{key:i}=e,a=Kp.get(t);var l;let s=null!==(l=e.isDisabled)&&void 0!==l?l:t.selectionManager.isDisabled(i);var u;let c=null!==(u=e.isSelected)&&void 0!==u?u: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=Or(),w=Or(),x={role:"option","aria-disabled":s||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?c:void 0};Hr()&&Gr()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=b,x["aria-describedby"]=w);let C=t.collection.getItem(i);if(y){let e=Number(null==C?void 0:C.index);x["aria-posinset"]=Number.isNaN(e)?void 0:e+1,x["aria-setsize"]=ph(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:j}=Gp({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:m,isDisabled:s,onAction:S||(null==C||null===(r=C.props)||void 0===r?void 0:r.onAction)?Dr(null==C||null===(o=C.props)||void 0===o?void 0:o.onAction,S):void 0,linkBehavior:null==a?void 0:a.linkBehavior}),{hoverProps:P}=ga({isDisabled:s||!h,onHoverStart(){ra()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),T=$r(null==C?void 0:C.props);delete T.id;let M=no(null==C?void 0:C.props);return{optionProps:{...x,...Ar(T,k,P,M),id:Vp(t,i)},labelProps:{id:b},descriptionProps:{id:w},isFocused:O,isFocusVisible:O&&ra(),isSelected:c,isDisabled:s,isPressed:E,allowsSelection:j,hasAction:D}}({key:r.key,"aria-label":null==e?void 0:e["aria-label"]},i,o),{hoverProps:p,isHovered:h}=ga({isDisabled:!f.allowsSelection&&!f.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),g=null;l&&a&&(g=a.useDraggableItem({key:r.key},l));let m=null;s&&a&&(m=a.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,o));let v=l&&l.isDragging(r.key),y=ai({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...f,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:v,isDropTarget:null==m?void 0:m.isDropTarget}});t.useEffect((()=>{r.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.")}),[r.textValue]);let b=e.href?"a":"div";return t.createElement(b,{...Ar(u,p,null==g?void 0:g.dragProps,null==m?void 0:m.dropProps),...y,ref:o,"data-allows-dragging":!!l||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":(null==m?void 0:m.isDropTarget)||void 0,"data-selection-mode":"none"===i.selectionManager.selectionMode?void 0:i.selectionManager.selectionMode},t.createElement(ii,{values:[[rv,{slots:{label:c,description:d}}]]},y.children))}));function Zb(e,n){n=uo(n);let{dragAndDropHooks:r,dropState:o}=t.useContext(Pb),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);return a?null:t.createElement(Gb,{...e,dropIndicatorProps:i,isDropTarget:l,ref:n})}function qb(e,n){let{dropIndicatorProps:r,isDropTarget:o,...i}=e,a=ai({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return t.createElement("div",{...r,...a,role:"option",ref:n,"data-drop-target":o||void 0})}const Gb=t.forwardRef(qb),Yb=t.createContext({});function Xb(e,n){[e,n]=si(e,n,Yb);let{isDisabled:r,isInvalid:o,onHoverStart:i,onHoverChange:a,onHoverEnd:l,...s}=e,{hoverProps:u,isHovered:c}=ga({onHoverStart:i,onHoverChange:a,onHoverEnd:l,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:p}=Za({within:!0});null!=r||(r=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=o||(o=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=ai({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:o},defaultClassName:"react-aria-Group"});var g,m;return t.createElement("div",{...Ar(s,p,u),...h,ref:n,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":c||void 0,"data-focus-visible":f||void 0,"data-disabled":r||void 0,"data-invalid":o||void 0},h.children)}const Jb=t.forwardRef(Xb),Qb=t.createContext({placement:"bottom"});function ew(e,n){[e,n]=si(e,n,Qb);let r=e.placement,o={position:"absolute",[r]:"100%",transform:"top"===r||"bottom"===r?"translateX(-50%)":"translateY(-50%)"},i=ai({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});return i.style&&Object.keys(i.style).forEach((e=>void 0===i.style[e]&&delete i.style[e])),t.createElement("div",{...e,...i,style:{...o,...i.style},ref:n,"data-placement":r})}const tw=t.forwardRef(ew),nw=t.createContext(null);function rw(e,n){[e,n]=si(e,n,nw);let r=t.useContext(lw),o=Ev(e),i=null==e.isOpen&&null==e.defaultOpen&&r?r:o,a=di(n,i.isOpen)||e.isExiting||!1;if(t.useContext(mr)){let n=e.children;return"function"==typeof n&&(n=n({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),t.createElement(t.Fragment,null,n)}return!i||i.isOpen||a?t.createElement(iw,{...e,triggerRef:e.triggerRef,state:i,popoverRef:n,isExiting:a}):null}const ow=t.forwardRef(rw);function iw({state:e,isExiting:n,UNSTABLE_portalContainer:r,...o}){let i=t.useRef(null),[a,l]=t.useState(0);var s;wr((()=>{i.current&&e.isOpen&&l(i.current.getBoundingClientRect().width)}),[e.isOpen,i]);let{popoverProps:u,underlayProps:c,arrowProps:d,placement:f}=function(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...l}=e,{overlayProps:s,underlayProps:u}=yp({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:d,placement:f}=gp({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Sp({isDisabled:o||!t.isOpen}),wr((()=>{if(t.isOpen&&!o&&r.current)return Np([r.current])}),[o,t.isOpen,r]),{popoverProps:Ar(s,c),arrowProps:d,underlayProps:u,placement:f}}({...o,offset:null!==(s=o.offset)&&void 0!==s?s:8,arrowSize:a},e),p=o.popoverRef,h=ci(p,!!f)||o.isEntering||!1,g=ai({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:h,isExiting:n}}),m={...u.style,...g.style};return t.createElement(Fp,{isExiting:n,portalContainer:r},!o.isNonModal&&e.isOpen&&t.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),t.createElement("div",{...Ar($r(o),u),...g,ref:p,slot:o.slot||void 0,style:m,"data-trigger":o.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":n||void 0},!o.isNonModal&&t.createElement(Rp,{onDismiss:e.close}),t.createElement(Qb.Provider,{value:{...d,placement:f,ref:i}},g.children),t.createElement(Rp,{onDismiss:e.close})))}const aw=t.createContext(null),lw=t.createContext(null);function sw(e,n){let r=e["aria-labelledby"];[e,n]=si(e,n,aw);let{dialogProps:o,titleProps:i}=function(e,n){let{role:r="dialog"}=e,o=Or();o=e["aria-label"]?void 0:o;let i=t.useRef(!1);return t.useEffect((()=>{if(n.current&&!n.current.contains(document.activeElement)){Ca(n.current);let e=setTimeout((()=>{document.activeElement===n.current&&(i.current=!0,n.current&&(n.current.blur(),Ca(n.current)),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[n]),Bp(),{dialogProps:{...$r(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}({...e,"aria-labelledby":r},n),a=t.useContext(lw),l=e.children;var s;return"function"==typeof l&&(l=l({close:(null==a?void 0:a.close)||(()=>{})})),o["aria-label"]||o["aria-labelledby"]||(e["aria-labelledby"]?o["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.')),t.createElement("section",{...$r(e),...o,ref:n,slot:e.slot||void 0,style:e.style,className:null!==(s=e.className)&&void 0!==s?s:"react-aria-Dialog"},t.createElement(ii,{values:[[Qn,{slots:{[oi]:{},title:{...i,level:2}}}]]},l))}const uw=t.forwardRef(sw),cw=t.createContext(null),dw=t.createContext(null);function fw(e,n){[e,n]=si(e,n,cw);let{children:r,isDisabled:o=!1,isInvalid:i=!1,isRequired:a=!1}=e,l=t.useMemo((()=>{var n;return t.createElement(zb.Provider,{value:{items:null!==(n=e.items)&&void 0!==n?n:e.defaultItems}},"function"==typeof r?r({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:a,defaultChildren:null}):r)}),[r,o,i,a,e.items,e.defaultItems]);return t.createElement(Ko,{content:l},(r=>t.createElement(pw,{props:e,collection:r,comboBoxRef:n})))}function pw({props:e,collection:n,comboBoxRef:r}){let{name:o,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=li(wb)||{};var s,u;let c=null!==(u=null!==(s=e.validationBehavior)&&void 0!==s?s:l)&&void 0!==u?u:"native",{contains:d}=hc({sensitivity:"base"}),f=Ov({defaultFilter:e.defaultFilter||d,...e,items:e.items,children:void 0,collection:n,validationBehavior:c}),p=t.useRef(null),h=t.useRef(null),g=t.useRef(null),m=t.useRef(null),[v,y]=ui(),{buttonProps:b,inputProps:w,listBoxProps:x,labelProps:C,descriptionProps:S,errorMessageProps:k,...E}=function(e,n){let{buttonRef:r,popoverRef:o,inputRef:i,listBoxRef:a,keyboardDelegate:l,layoutDelegate:s,shouldFocusWrap:u,isReadOnly:c,isDisabled:d}=e,f=vl(function(e){return e&&e.__esModule?e.default:e}(Gf),"@react-aria/combobox"),{menuTriggerProps:p,menuProps:h}=gh({type:"listbox",isDisabled:d||c},n,r);Kp.set(n,{id:h.id});let{collection:g}=n,{disabledKeys:m}=n.selectionManager,v=t.useMemo((()=>l||new Qp({collection:g,disabledKeys:m,ref:a,layoutDelegate:s})),[l,s,g,m,a]),{collectionProps:y}=qp({selectionManager:n.selectionManager,keyboardDelegate:v,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:u,ref:i,isVirtualized:!0}),b=eo(),{isInvalid:w,validationErrors:x,validationDetails:C}=n.displayValidation,{labelProps:S,inputProps:k,descriptionProps:E,errorMessageProps:O}=jd({...e,onChange:n.setInputValue,onKeyDown:c?e.onKeyDown:Dr(n.isOpen&&y.onKeyDown,(t=>{if(!t.nativeEvent.isComposing)switch(t.key){case"Enter":case"Tab":if(n.isOpen&&"Enter"===t.key&&t.preventDefault(),n.isOpen&&null!=n.selectionManager.focusedKey&&n.selectionManager.isLink(n.selectionManager.focusedKey)){if("Enter"===t.key){let e=a.current.querySelector(`[data-key="${CSS.escape(n.selectionManager.focusedKey.toString())}"]`);if(e instanceof HTMLAnchorElement){let r=n.collection.getItem(n.selectionManager.focusedKey);b.open(e,t,r.props.href,r.props.routerOptions)}}n.close()}else n.commit();break;case"Escape":(null!==n.selectedKey||""===n.inputValue||e.allowsCustomValue)&&t.continuePropagation(),n.revert();break;case"ArrowDown":n.open("first","manual");break;case"ArrowUp":n.open("last","manual");break;case"ArrowLeft":case"ArrowRight":n.selectionManager.setFocusedKey(null)}}),e.onKeyDown),onBlur:t=>{var i;let a=(null==r?void 0:r.current)&&r.current===t.relatedTarget,l=null===(i=o.current)||void 0===i?void 0:i.contains(t.relatedTarget);a||l||(e.onBlur&&e.onBlur(t),n.setFocused(!1))},value:n.inputValue,onFocus:t=>{n.isFocused||(e.onFocus&&e.onFocus(t),n.setFocused(!0))},autoComplete:"off",validate:void 0,[pd]:n},i),D=so({id:p.id,"aria-label":f.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||S.id}),j=so({id:h.id,"aria-label":f.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||S.id}),P=t.useRef(0),T=null!=n.selectionManager.focusedKey&&n.isOpen?n.collection.getItem(n.selectionManager.focusedKey):void 0;var M;let A=null!==(M=null==T?void 0:T.parentKey)&&void 0!==M?M:null;var _;let R=null!==(_=n.selectionManager.focusedKey)&&void 0!==_?_:null,L=t.useRef(A),I=t.useRef(R);t.useEffect((()=>{if(qr()&&null!=T&&R!==I.current){let e=n.selectionManager.isSelected(R),t=null!=A?n.collection.getItem(A):null,r=(null==t?void 0:t["aria-label"])||("string"==typeof(null==t?void 0:t.rendered)?t.rendered:"")||"";rd(f.format("focusAnnouncement",{isGroupChange:t&&A!==L.current,groupTitle:r,groupCount:t?[...ah(t,n.collection)].length:0,optionText:T["aria-label"]||T.textValue||"",isSelected:e}))}L.current=A,I.current=R}));let N=ph(n.collection),$=t.useRef(N),z=t.useRef(n.isOpen);t.useEffect((()=>{let e=n.isOpen!==z.current&&(null==n.selectionManager.focusedKey||qr());n.isOpen&&(e||N!==$.current)&&rd(f.format("countAnnouncement",{optionCount:N})),$.current=N,z.current=n.isOpen}));let F=t.useRef(n.selectedKey);return t.useEffect((()=>{if(qr()&&n.isFocused&&n.selectedItem&&n.selectedKey!==F.current){let e=n.selectedItem["aria-label"]||n.selectedItem.textValue||"";rd(f.format("selectedAnnouncement",{optionText:e}))}F.current=n.selectedKey})),t.useEffect((()=>{if(n.isOpen)return Np([i.current,o.current])}),[n.isOpen,i,o]),{labelProps:S,buttonProps:{...p,...D,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:e=>{"touch"===e.pointerType&&(i.current.focus(),n.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(i.current.focus(),n.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:d||c},inputProps:Ar(k,{role:"combobox","aria-expanded":p["aria-expanded"],"aria-controls":n.isOpen?h.id:void 0,"aria-autocomplete":"list","aria-activedescendant":T?Vp(n,T.key):void 0,onTouchEnd:e=>{if(d||c)return;if(e.timeStamp-P.current<500)return e.preventDefault(),void i.current.focus();let t=e.target.getBoundingClientRect(),r=e.changedTouches[0],o=Math.ceil(t.left+.5*t.width),a=Math.ceil(t.top+.5*t.height);r.clientX===o&&r.clientY===a&&(e.preventDefault(),i.current.focus(),n.toggle(null,"manual"),P.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Ar(h,j,{autoFocus:n.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:E,errorMessageProps:O,isInvalid:w,validationErrors:x,validationDetails:C}}({...pi(e),label:y,inputRef:h,buttonRef:p,listBoxRef:g,popoverRef:m,name:"text"===i?o:void 0,validationBehavior:c},f),[O,D]=t.useState(null),j=t.useCallback((()=>{if(h.current){var e;let t=null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect(),n=h.current.getBoundingClientRect(),r=t?Math.min(t.left,n.left):n.left,o=t?Math.max(t.right,n.right):n.right;D(o-r+"px")}}),[p,h,D]);fo({ref:h,onResize:j});let P=t.useMemo((()=>({isOpen:f.isOpen,isDisabled:e.isDisabled||!1,isInvalid:E.isInvalid||!1,isRequired:e.isRequired||!1})),[f.isOpen,e.isDisabled,E.isInvalid,e.isRequired]),T=ai({...e,values:P,defaultClassName:"react-aria-ComboBox"}),M=$r(e);var A;return delete M.id,t.createElement(ii,{values:[[dw,f],[Gm,{...C,ref:v}],[ev,{...b,ref:p,isPressed:f.isOpen}],[kb,{...w,ref:h}],[lw,f],[nw,{ref:m,triggerRef:h,scrollRef:g,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":O}}],[zb,{...x,ref:g}],[Fb,f],[rv,{slots:{description:S,errorMessage:k}}],[Yb,{isInvalid:E.isInvalid,isDisabled:e.isDisabled||!1}],[mb,E]]},t.createElement("div",{...M,...T,ref:r,slot:e.slot||void 0,"data-focused":f.isFocused||void 0,"data-open":f.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-required":e.isRequired||void 0}),o&&"key"===i&&t.createElement("input",{type:"hidden",name:o,value:null!==(A=f.selectedKey)&&void 0!==A?A:""}))}const hw=t.forwardRef(fw),gw=t.createContext(null),mw=t.createContext(null),vw=t.createContext(null),yw=t.createContext(null);function bw(e,n){[e,n]=si(e,n,mw);let{validationBehavior:r}=li(wb)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",{locale:l}=ll(),s=function(e){let{placeholderValue:n=new Is,minValue:r,maxValue:o,granularity:i,validate:a}=e,[l,s]=jo(e.value,e.defaultValue,e.onChange),u=l||n,c=u&&"day"in u?u:void 0,d=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=t.useMemo((()=>{let e=u&&"timeZone"in u?u.timeZone:void 0;return(e||d)&&n?is(Ey(n),e||d):Ey(n)}),[n,u,d]),p=t.useMemo((()=>Ey(r,c)),[r,c]),h=t.useMemo((()=>Ey(o,c)),[o,c]),g=t.useMemo((()=>l&&"day"in l?rs(l):l),[l]),m=t.useMemo((()=>null==l?null:Ey(l)),[l]);return{...Cy({...e,value:m,defaultValue:void 0,minValue:p,maxValue:h,onChange:e=>{s(c||d?e:e&&rs(e))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new El,validate:t.useCallback((()=>null==a?void 0:a(l)),[a,l])}),timeValue:g}}({...e,locale:l,validationBehavior:a}),u=t.useRef(null),[c,d]=ui(),f=t.useRef(null),{labelProps:p,fieldProps:h,inputProps:g,descriptionProps:m,errorMessageProps:v,...y}=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}({...pi(e),label:d,inputRef:f,validationBehavior:a},s,u),b=ai({...e,values:{state:s,isInvalid:s.isInvalid,isDisabled:s.isDisabled},defaultClassName:"react-aria-TimeField"}),w=$r(e);return delete w.id,t.createElement(ii,{values:[[yw,s],[Yb,{...h,ref:u,isInvalid:s.isInvalid}],[kb,{...g,ref:f}],[Gm,{...p,ref:c,elementType:"span"}],[rv,{slots:{description:m,errorMessage:v}}],[mb,y]]},t.createElement("div",{...w,...b,ref:n,slot:e.slot||void 0,"data-invalid":s.isInvalid||void 0}))}const ww=t.forwardRef(bw);function xw(e,n){let r=t.useContext(vw),o=t.useContext(yw);return r||o?t.createElement(Sw,{...e,ref:n}):t.createElement(Cw,{...e,ref:n})}const Cw=t.forwardRef(((e,n)=>{let[r,o]=si({slot:e.slot},n,gw),{locale:i}=ll(),a=Cy({...r,locale:i,createCalendar:Fu}),l=t.useRef(null),{fieldProps:s,inputProps:u}=lg({...r,inputRef:l},a,o);return t.createElement(ii,{values:[[vw,a],[kb,{...u,ref:l}],[Yb,{...s,ref:o,isInvalid:a.isInvalid}]]},t.createElement(Sw,e))})),Sw=t.forwardRef(((e,n)=>{let{className:r,children:o}=e,i=t.useContext(vw),a=t.useContext(yw),l=null!=i?i:a;return t.createElement(t.Fragment,null,t.createElement(Jb,{...e,ref:n,slot:e.slot||void 0,className:null!=r?r:"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map(((e,n)=>t.cloneElement(o(e),{key:n})))),t.createElement(Db,null))})),kw=t.forwardRef(xw);function Ew({segment:e,...n},r){let o=t.useContext(vw),i=t.useContext(yw),a=null!=o?o:i,l=uo(r),{segmentProps:s}=ug(e,a,l),{focusProps:u,isFocused:c,isFocusVisible:d}=Za(),{hoverProps:f,isHovered:p}=ga({...n,isDisabled:a.isDisabled||"literal"===e.type}),h=ai({...n,values:{...e,isReadOnly:!e.isEditable,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:p,isFocused:c,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return t.createElement("div",{...Ar($r(n),s,u,f),...h,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":p||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0})}const Ow=t.forwardRef(Ew),Dw=t.createContext(null),jw=t.createContext(null),Pw=t.createContext(null),Tw=t.createContext(null);function Mw(e,n){[e,n]=si(e,n,Dw);let{validationBehavior:r}=li(wb)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=function(e){let n=Ev(e),[r,o]=jo(e.value,e.defaultValue||null,e.onChange),i=r||e.placeholderValue,[a,l]=vy(i,e.granularity),s=null!=r?r.toDate(null!=l?l:"UTC"):null,u="hour"===a||"minute"===a||"second"===a;var c;let d=null===(c=e.shouldCloseOnSelect)||void 0===c||c,[f,p]=t.useState(null),[h,g]=t.useState(null);if(r&&(f=r,"hour"in r&&(h=r)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let m="gregory"===(null==r?void 0:r.calendar.identifier)&&"BC"===r.era,v=t.useMemo((()=>({granularity:a,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:m})),[a,e.hourCycle,e.shouldForceLeadingZeros,l,e.hideTimeZone,m]),{minValue:y,maxValue:b,isDateUnavailable:w}=e,x=t.useMemo((()=>cy(r,y,b,w,v)),[r,y,b,w,v]),C=hd({...e,value:r,builtinValidation:x}),S=C.displayValidation.isInvalid,k=e.validationState||(S?"invalid":null),E=(e,t)=>{o("timeZone"in t?t.set(ts(e)):ns(e,t)),p(null),g(null),C.commitValidation()};return{...C,value:r,setValue:o,dateValue:f,timeValue:h,setDateValue:t=>{let r="function"==typeof d?d():d;u?h||r?E(t,h||hy(e.placeholderValue)):p(t):(o(t),C.commitValidation()),r&&n.setOpen(!1)},setTimeValue:e=>{f&&e?E(f,e):g(e)},granularity:a,hasTime:u,...n,setOpen(t){!t&&!r&&f&&u&&E(f,h||hy(e.placeholderValue)),n.setOpen(t)},validationState:k,isInvalid:S,formatValue(e,t){if(!s)return"";let n=py(t,v);return new Ku(e,n).format(s)},getDateFormatter(e,t){let n=py({},{...v,...t});return new Ku(e,n)}}}({...e,validationBehavior:a}),s=t.useRef(null),[u,c]=ui(),{groupProps:d,labelProps:f,fieldProps:p,buttonProps:h,dialogProps:g,calendarProps:m,descriptionProps:v,errorMessageProps:y,...b}=function(e,n,r){let o=kr(),i=kr(),a=kr(),l=vl(function(e){return e&&e.__esModule?e.default:e}(ng),"@react-aria/datepicker"),{isInvalid:s,validationErrors:u,validationDetails:c}=n.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=Cd({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||u}),g=rg(n,r),m=f["aria-labelledby"]||f.id,{locale:v}=ll(),y=n.formatValue(v,{month:"long"}),b=wo(y?l.format("selectedDateDescription",{date:y}):""),w=[b["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=$r(e),C=t.useMemo((()=>Ka(r)),[r]),{focusWithinProps:S}=ua({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Ar(x,g,f,b,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":m,"aria-describedby":w,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...d,onClick:()=>{C.focusFirst()}},fieldProps:{...f,id:a,[ig]:"presentation","aria-describedby":w,value:n.value,onChange:n.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,[pd]:n,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:h,buttonProps:{...b,id:o,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${o} ${m}`,"aria-describedby":w,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${o} ${m}`},calendarProps:{autoFocus:!0,value:n.dateValue,onChange:n.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:n.dateValue?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:s,validationErrors:u,validationDetails:c}}({...pi(e),label:c,validationBehavior:a},l,s),[w,x]=t.useState(null),C=t.useCallback((()=>{s.current&&x(s.current.offsetWidth+"px")}),[]);fo({ref:s,onResize:C});let{focusProps:S,isFocused:k,isFocusVisible:E}=Za({within:!0}),O=ai({...e,values:{state:l,isFocusWithin:k,isFocusVisible:E,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid,isOpen:l.isOpen},defaultClassName:"react-aria-DatePicker"}),D=$r(e);return delete D.id,t.createElement(ii,{values:[[Pw,l],[Yb,{...d,ref:s,isInvalid:l.isInvalid}],[gw,p],[ev,{...h,isPressed:l.isOpen}],[Gm,{...f,ref:u,elementType:"span"}],[Xy,m],[lw,l],[nw,{trigger:"DatePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":w}}],[aw,g],[rv,{slots:{description:v,errorMessage:y}}],[mb,b]]},t.createElement("div",{...S,...D,...O,ref:n,slot:e.slot||void 0,"data-focus-within":k||void 0,"data-invalid":l.isInvalid||void 0,"data-focus-visible":E||void 0,"data-disabled":e.isDisabled||void 0,"data-open":l.isOpen||void 0}))}const Aw=t.forwardRef(Mw);function _w(e,n){[e,n]=si(e,n,jw);let{validationBehavior:r}=li(wb)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=ky({...e,validationBehavior:a}),s=t.useRef(null),[u,c]=ui(),{groupProps:d,labelProps:f,startFieldProps:p,endFieldProps:h,buttonProps:g,dialogProps:m,calendarProps:v,descriptionProps:y,errorMessageProps:b,...w}=function(e,n,r){var o,i;let a=vl(function(e){return e&&e.__esModule?e.default:e}(ng),"@react-aria/datepicker"),{isInvalid:l,validationErrors:s,validationDetails:u}=n.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:p}=Cd({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),h=d["aria-labelledby"]||d.id,{locale:g}=ll(),m=n.formatValue(g,{month:"long"}),v=wo(m?a.format("selectedRangeDescription",{startDate:m.start,endDate:m.end}):""),y={"aria-label":a.format("startDate"),"aria-labelledby":h},b={"aria-label":a.format("endDate"),"aria-labelledby":h},w=kr(),x=kr(),C=rg(n,r),S=[v["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=t.useMemo((()=>Ka(r,{accept:e=>e.id!==w})),[r,w]),E={[ag]:k,[ig]:"presentation","aria-describedby":S,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},O=$r(e),{focusWithinProps:D}=ua({...e,isDisabled:n.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),j=t.useRef(dd),P=t.useRef(dd);return{groupProps:Ar(O,C,d,v,D,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(t){n.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){n.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...c,onClick:()=>{k.focusFirst()}},buttonProps:{...v,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":S,"aria-expanded":n.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>n.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${w} ${h}`},startFieldProps:{...y,...E,value:null===(o=n.value)||void 0===o?void 0:o.start,onChange:e=>n.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,[pd]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){j.current=e,n.updateValidation(yd(e,P.current))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},endFieldProps:{...b,...E,value:null===(i=n.value)||void 0===i?void 0:i.end,onChange:e=>n.setDateTime("end",e),name:e.endName,[pd]:{realtimeValidation:n.realtimeValidation,displayValidation:n.displayValidation,updateValidation(e){P.current=e,n.updateValidation(yd(j.current,e))},resetValidation:n.resetValidation,commitValidation:n.commitValidation}},descriptionProps:f,errorMessageProps:p,calendarProps:{autoFocus:!0,value:n.dateRange,onChange:n.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:n.dateRange?void 0:e.placeholderValue,isInvalid:n.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(n.displayValidation):e.errorMessage||n.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:s,validationDetails:u}}({...pi(e),label:c,validationBehavior:a},l,s),[x,C]=t.useState(null),S=t.useCallback((()=>{s.current&&C(s.current.offsetWidth+"px")}),[]);fo({ref:s,onResize:S});let{focusProps:k,isFocused:E,isFocusVisible:O}=Za({within:!0}),D=ai({...e,values:{state:l,isFocusWithin:E,isFocusVisible:O,isDisabled:e.isDisabled||!1,isInvalid:l.isInvalid,isOpen:l.isOpen},defaultClassName:"react-aria-DateRangePicker"}),j=$r(e);return delete j.id,t.createElement(ii,{values:[[Tw,l],[Yb,{...d,ref:s,isInvalid:l.isInvalid}],[ev,{...g,isPressed:l.isOpen}],[Gm,{...f,ref:u,elementType:"span"}],[Jy,v],[lw,l],[nw,{trigger:"DateRangePicker",triggerRef:s,placement:"bottom start",style:{"--trigger-width":x}}],[aw,m],[gw,{slots:{start:p,end:h}}],[rv,{slots:{description:y,errorMessage:b}}],[mb,w]]},t.createElement("div",{...k,...j,...D,ref:n,slot:e.slot||void 0,"data-focus-within":E||void 0,"data-invalid":l.isInvalid||void 0,"data-focus-visible":O||void 0,"data-disabled":e.isDisabled||void 0,"data-open":l.isOpen||void 0}))}const Rw=t.forwardRef(_w),Lw=t.createContext({}),Iw=t.createContext(null),Nw=t.createContext(null),$w=t.createContext(null);function zw(e){let n=Oy(e),r=t.useRef(null),{menuTriggerProps:o,menuProps:i}=gh({...e,type:"menu"},n,r),[a,l]=t.useState(null),s=t.useCallback((()=>{r.current&&l(r.current.offsetWidth+"px")}),[r]);fo({ref:r,onResize:s});let u=t.useRef(null);return t.createElement(ii,{values:[[Iw,{...i,ref:u}],[lw,n],[$w,n],[nw,{trigger:"MenuTrigger",triggerRef:r,scrollRef:u,placement:"bottom start",style:{"--trigger-width":a}}]]},t.createElement($i,{...o,ref:r,isPressed:n.isOpen},e.children))}const Fw=t.createContext(null),Bw=qo("submenutrigger",((e,n,r)=>{let{CollectionBranch:o}=t.useContext(ri),i=t.useContext(Nw),a=t.useContext($w),l=function(e,n){let{triggerKey:r}=e,{expandedKeysStack:o,openSubmenu:i,closeSubmenu:a,close:l}=n,[s]=t.useState(null==o?void 0:o.length),u=t.useMemo((()=>o[s]===r),[o,r,s]),[c,d]=t.useState(null),f=t.useCallback(((e=null)=>{d(e),i(r,s)}),[i,s,r]),p=t.useCallback((()=>{d(null),a(r,s)}),[a,s,r]),h=t.useCallback(((e=null)=>{d(e),u?p():f(e)}),[p,f,u]);return t.useMemo((()=>({focusStrategy:c,isOpen:u,open:f,close:p,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:h})),[u,f,p,l,c,h,s])}({triggerKey:r.key},a),s=t.useRef(null),u=uo(n),c=li(nw),{parentMenuRef:d}=t.useContext(Fw),{submenuTriggerProps:f,submenuProps:p,popoverProps:h}=xh({parentMenuRef:d,submenuRef:s,delay:e.delay},l,u);return t.createElement(ii,{values:[[Ww,{...f,onAction:void 0,ref:u}],[Iw,p],[lw,l],[nw,{ref:s,trigger:"SubmenuTrigger",triggerRef:u,placement:"end top",UNSTABLE_portalContainer:c.UNSTABLE_portalContainer||void 0,...h}]]},t.createElement(o,{collection:i.collection,parent:r}),e.children[1])}),(e=>e.children[0]));function Kw(e,n){return[e,n]=si(e,n,Iw),t.createElement(Ko,{content:t.createElement(Xo,e)},(r=>r.size>0&&t.createElement(Vw,{props:e,collection:r,menuRef:n})))}function Vw({props:e,collection:n,menuRef:r}){let o=Yy({...e,collection:n,children:void 0}),[i,a]=t.useState(null),{isVirtualized:l,CollectionRoot:s}=t.useContext(ri),{menuProps:u}=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=$r(e,{labelable:!0}),{listProps:s}=eh({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return mh.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Ar(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:e=>{"Escape"!==e.key&&s.onKeyDown(e)}})}}({...e,isVirtualized:l},o,r),c=t.useContext($w),d=t.useContext(nw);ma({ref:r,onInteractOutside:e=>{c&&!(null==i?void 0:i.contains(e.target))&&c.close()},isDisabled:"SubmenuTrigger"===(null==d?void 0:d.trigger)||0===(null==c?void 0:c.expandedKeysStack.length)});let f=t.useRef(null),[p,h]=t.useState({left:0});t.useEffect((()=>{if(i&&f.current!==i&&0===p.left){f.current=i;let{left:e}=i.getBoundingClientRect();h({left:-1*e})}}),[p,i]);let g=ai({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{}});return t.createElement(Da,null,t.createElement("div",{...$r(e),...u,...g,ref:r,slot:e.slot||void 0,onScroll:e.onScroll},t.createElement(ii,{values:[[Nw,o],[Nb,{elementType:"div"}],[nw,{UNSTABLE_portalContainer:i||void 0}],[Qo,{render:Uw}],[Fw,{parentMenuRef:r}],[Ww,null]]},t.createElement(s,{collection:n,persistedKeys:(m=o.selectionManager.focusedKey,t.useMemo((()=>null!=m?new Set([m]):null),[m])),scrollRef:r}))),t.createElement("div",{ref:a,style:{width:"100vw",position:"absolute",top:0,...p}}));var m}const Hw=t.forwardRef(Kw);function Uw(e,n,r){var o,i;let a=t.useContext(Nw),{CollectionBranch:l}=t.useContext(ri),[s,u]=ui();var c;let{headingProps:d,groupProps:f}=function(e){let{heading:t,"aria-label":n}=e,r=kr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:u,"aria-label":null!==(c=r.props["aria-label"])&&void 0!==c?c:void 0}),p=ai({defaultClassName:"react-aria-Section",className:null===(o=r.props)||void 0===o?void 0:o.className,style:null===(i=r.props)||void 0===i?void 0:i.style,values:{}});return t.createElement("section",{...$r(e),...f,...p,ref:n},t.createElement(Lb.Provider,{value:{...d,ref:s}},t.createElement(l,{collection:a.collection,parent:r})))}const Ww=t.createContext(null),Zw=Zo("item",(function(e,n,r){var o;[e,n]=si(e,n,Ww);let i=null===(o=li(Ww))||void 0===o?void 0:o.id,a=t.useContext(Nw),l=uo(n),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=function(e,t,n){let{id:r,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onHoverStart:p,onHoverChange:h,onHoverEnd:g,onKeyDown:m,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:w}=e,x=!!l;var C;let S=null!==(C=e.isDisabled)&&void 0!==C?C:t.selectionManager.isDisabled(o);var k;let E=null!==(k=e.isSelected)&&void 0!==k?k:t.selectionManager.isSelected(o),O=mh.get(t),D=t.collection.getItem(o),j=e.onClose||O.onClose,P=eo(),T=t=>{var n;x||((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&&P.open(t.target,t,D.props.href,D.props.routerOptions))},M="menuitem";x||("single"===t.selectionManager.selectionMode?M="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(M="menuitemcheckbox"));let A=Or(),_=Or(),R=Or(),L={id:r,"aria-disabled":S||void 0,role:M,"aria-label":e["aria-label"],"aria-labelledby":A,"aria-describedby":[_,R].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};"none"===t.selectionManager.selectionMode||x||(L["aria-checked"]=E),a&&(L["aria-posinset"]=null==D?void 0:D.index,L["aria-setsize"]=ph(t.collection));let{itemProps:I,isFocused:N}=Gp({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:$,isPressed:z}=Oi({onPressStart:e=>{"keyboard"===e.pointerType&&T(e),null==s||s(e)},onPress:c,onPressUp:e=>{"keyboard"!==e.pointerType&&(T(e),!x&&j&&(null!=i?i:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(o))&&j()),null==u||u(e)},onPressChange:d,onPressEnd:f,isDisabled:S}),{hoverProps:F}=ga({isDisabled:S,onHoverStart(e){ra()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),null==p||p(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:B}=ba({onKeyDown:e=>{if(e.repeat)e.continuePropagation();else switch(e.key){case" ":S||"none"!==t.selectionManager.selectionMode||x||!1===i||!j||j();break;case"Enter":S||!1===i||x||!j||j();break;default:x||e.continuePropagation(),null==m||m(e)}},onKeyUp:v}),{focusProps:K}=Ki({onBlur:w,onFocus:y,onFocusChange:b}),V=$r(D.props);delete V.id;let H=no(D.props);return{menuItemProps:{...L,...Ar(V,H,x?{onFocus:I.onFocus,"data-key":I["data-key"]}:I,$,F,B,K),tabIndex:null!=I.tabIndex?-1:void 0},labelProps:{id:A},descriptionProps:{id:_},keyboardShortcutProps:{id:R},isFocused:N,isSelected:E,isPressed:z,isDisabled:S}}({...e,id:i,key:r.key},a,l),{isFocusVisible:p,focusProps:h}=Za(),{hoverProps:g,isHovered:m}=ga({isDisabled:f.isDisabled}),v=ai({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:p,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:"true"===e["aria-expanded"]}}),y=e.href?"a":"div";return t.createElement(y,{...Ar(s,h,g),...v,ref:l,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":p||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},t.createElement(ii,{values:[[rv,{slots:{label:u,description:c}}],[Lw,d]]},v.children))})),qw=t.createContext(null),Gw=t.createContext(null);function Yw(e,n){if(t.useContext(Gw))return t.createElement(tx,{...e,modalRef:n},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:l,children:s,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f,...p}=e;return t.createElement(Qw,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:l,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f},t.createElement(tx,{...p,modalRef:n},s))}const Xw=t.forwardRef(Yw);function Jw(e,n){[e,n]=si(e,n,qw);let r=t.useContext(lw),o=Ev(e),i=null==e.isOpen&&null==e.defaultOpen&&r?r:o,a=uo(n),l=t.useRef(null),s=di(a,i.isOpen),u=di(l,i.isOpen),c=s||u||e.isExiting||!1,d=gr();return!i.isOpen&&!c||d?null:t.createElement(ex,{...e,state:i,isExiting:c,overlayRef:a,modalRef:l})}const Qw=t.forwardRef(Jw);function ex({UNSTABLE_portalContainer:e,...n}){let r=n.modalRef,{state:o}=n,{modalProps:i,underlayProps:a}=function(e,n,r){let{overlayProps:o,underlayProps:i}=yp({...e,isOpen:n.isOpen,onClose:n.close},r);return Sp({isDisabled:!n.isOpen}),Bp(),t.useEffect((()=>{if(n.isOpen)return Np([r.current])}),[n.isOpen,r]),{modalProps:Ar(o),underlayProps:i}}(n,o,r),l=ci(n.overlayRef)||n.isEntering||!1,s=ai({...n,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:n.isExiting,state:o}}),u=function(){let e=gr(),[n,r]=t.useState((()=>e?{width:0,height:0}:vo()));return t.useEffect((()=>{let e=()=>{r((e=>{let t=vo();return t.width===e.width&&t.height===e.height?e:t}))};return mo?mo.addEventListener("resize",e):window.addEventListener("resize",e),()=>{mo?mo.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),n}(),c={...s.style,"--visual-viewport-height":u.height+"px"};return t.createElement(Fp,{isExiting:n.isExiting,portalContainer:e},t.createElement("div",{...Ar($r(n),a),...s,style:c,ref:n.overlayRef,"data-entering":l||void 0,"data-exiting":n.isExiting||void 0},t.createElement(ii,{values:[[Gw,{modalProps:i,modalRef:r,isExiting:n.isExiting,isDismissable:n.isDismissable}],[lw,o]]},s.children)))}function tx(e){let{modalProps:n,modalRef:r,isExiting:o,isDismissable:i}=t.useContext(Gw),a=t.useContext(lw),l=uo(t.useMemo((()=>_r(e.modalRef,r)),[e.modalRef,r])),s=ci(l),u=ai({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:o,state:a}});return t.createElement("div",{...Ar($r(e),n),...u,ref:l,"data-entering":s||void 0,"data-exiting":o||void 0},i&&t.createElement(Rp,{onDismiss:a.close}),u.children)}const nx=t.createContext(null),rx=t.createContext(null);function ox(e,n){[e,n]=si(e,n,nx);let{validationBehavior:r}=li(wb)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",{locale:l}=ll(),s=function(e){let{minValue:n,maxValue:r,step:o,formatOptions:i,value:a,defaultValue:l=NaN,onChange:s,locale:u,isDisabled:c,isReadOnly:d}=e;null===a&&(a=NaN),void 0===a||isNaN(a)||(a=void 0===o||isNaN(o)?Po(a,n,r):Mo(a,n,r,o)),isNaN(l)||(l=void 0===o||isNaN(o)?Po(l,n,r):Mo(l,n,r,o));let[f,p]=jo(a,isNaN(l)?NaN:l,s),[h,g]=t.useState((()=>isNaN(f)?"":new Qu(u,i).format(f))),m=t.useMemo((()=>new nc(u,i)),[u,i]),v=t.useMemo((()=>m.getNumberingSystem(h)),[m,h]),y=t.useMemo((()=>new Qu(u,{...i,numberingSystem:v})),[u,i,v]),b=t.useMemo((()=>y.resolvedOptions()),[y]),w=t.useCallback((e=>isNaN(e)||null===e?"":y.format(e)),[y]),x=hd({...e,value:f}),C=void 0===o||isNaN(o)?1:o;"percent"!==b.style||void 0!==o&&!isNaN(o)||(C=.01);let[S,k]=t.useState(f),[E,O]=t.useState(u),[D,j]=t.useState(i);Object.is(f,S)&&u===E&&i===D||(g(w(f)),k(f),O(u),j(i));let P=t.useMemo((()=>m.parse(h)),[m,h]),T=(e,t=0)=>{let o=P;if(isNaN(o))return Mo(isNaN(t)?0:t,n,r,C);{let t=Mo(o,n,r,C);return"+"===e&&t>o||"-"===e&&t<o?t:Mo(kd(e,o,C),n,r,C)}},M=t.useMemo((()=>!c&&!d&&(isNaN(P)||void 0===r||isNaN(r)||Mo(P,n,r,C)>P||kd("+",P,C)<=r)),[c,d,n,r,C,P]),A=t.useMemo((()=>!c&&!d&&(isNaN(P)||void 0===n||isNaN(n)||Mo(P,n,r,C)<P||kd("-",P,C)>=n)),[c,d,n,r,C,P]);return{...x,validate:e=>m.isValidPartialNumber(e,n,r),increment:()=>{let e=T("+",n);e===f&&g(w(e)),p(e),x.commitValidation()},incrementToMax:()=>{null!=r&&(p(Mo(r,n,r,C)),x.commitValidation())},decrement:()=>{let e=T("-",r);e===f&&g(w(e)),p(e),x.commitValidation()},decrementToMin:()=>{null!=n&&(p(n),x.commitValidation())},canIncrement:M,canDecrement:A,minValue:n,maxValue:r,numberValue:P,setNumberValue:p,setInputValue:g,inputValue:h,commit:()=>{if(!h.length)return p(NaN),void g(void 0===a?"":w(f));if(isNaN(P))return void g(w(f));let e;e=void 0===o||isNaN(o)?Po(P,n,r):Mo(P,n,r,o),e=m.parse(w(e)),p(e),g(w(void 0===a?e:f))}}}({...e,locale:l,validationBehavior:a}),u=t.useRef(null),[c,d]=ui(),{labelProps:f,groupProps:p,inputProps:h,incrementButtonProps:g,decrementButtonProps:m,descriptionProps:v,errorMessageProps:y,...b}=hf({...pi(e),label:d,validationBehavior:a},s,u),w=ai({...e,values:{state:s,isDisabled:e.isDisabled||!1,isInvalid:b.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),x=$r(e);return delete x.id,t.createElement(ii,{values:[[rx,s],[Yb,p],[kb,{...h,ref:u}],[Gm,{...f,ref:c}],[ev,{slots:{increment:g,decrement:m}}],[rv,{slots:{description:v,errorMessage:y}}],[mb,b]]},t.createElement("div",{...x,...w,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":b.isInvalid||void 0}),e.name&&t.createElement("input",{type:"hidden",name:e.name,value:isNaN(s.numberValue)?"":s.numberValue}))}const ix=t.forwardRef(ox),ax=t.createContext(null);function lx(e,n){[e,n]=si(e,n,ax);let{validationBehavior:r}=li(wb)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=t.useRef(null),[s,u]=ui(),c=function(e){let[t,n]=jo(Dy(e.value),Dy(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}({...e,validationBehavior:a}),{labelProps:d,inputProps:f,clearButtonProps:p,descriptionProps:h,errorMessageProps:g,...m}=function(e,t,n){let r=vl(function(e){return e&&e.__esModule?e.default:e}(Jg),"@react-aria/searchfield"),{isDisabled:o,isReadOnly:i,onSubmit:a,onClear:l,type:s="search"}=e,{labelProps:u,inputProps:c,descriptionProps:d,errorMessageProps:f,...p}=jd({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:Dr((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:u,inputProps:{...c,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}}({...pi(e),label:u,validationBehavior:a},c,l),v=ai({...e,values:{isEmpty:""===c.value,isDisabled:e.isDisabled||!1,isInvalid:m.isInvalid||!1,state:c},defaultClassName:"react-aria-SearchField"}),y=$r(e);return delete y.id,t.createElement("div",{...y,...v,ref:n,slot:e.slot||void 0,"data-empty":""===c.value||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":m.isInvalid||void 0},t.createElement(ii,{values:[[Gm,{...d,ref:s}],[kb,{...f,ref:l}],[ev,p],[rv,{slots:{description:h,errorMessage:g}}],[Yb,{isInvalid:m.isInvalid,isDisabled:e.isDisabled||!1}],[mb,m]]},v.children))}const sx=t.forwardRef(lx);const ux=t.createContext(null),cx=t.createContext(null);function dx(e,n){[e,n]=si(e,n,ux);let{children:r,isDisabled:o=!1,isInvalid:i=!1,isRequired:a=!1}=e,l=t.useMemo((()=>"function"==typeof r?r({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r),[r,o,i,a]);return t.createElement(Ko,{content:l},(r=>t.createElement(fx,{props:e,collection:r,selectRef:n})))}function fx({props:e,selectRef:n,collection:r}){let{validationBehavior:o}=li(wb)||{};var i,a;let l=null!==(a=null!==(i=e.validationBehavior)&&void 0!==i?i:o)&&void 0!==a?a:"native",s=function(e){let n=Ev(e),[r,o]=t.useState(null),i=kv({...e,onSelectionChange:t=>{null!=e.onSelectionChange&&e.onSelectionChange(t),n.close(),a.commitValidation()}}),a=hd({...e,value:i.selectedKey}),[l,s]=t.useState(!1);return{...a,...i,...n,focusStrategy:r,open(e=null){0!==i.collection.size&&(o(e),n.open())},toggle(e=null){0!==i.collection.size&&(o(e),n.toggle())},isFocused:l,setFocused:s}}({...e,collection:r,children:void 0,validationBehavior:l}),{isFocusVisible:u,focusProps:c}=Za({within:!0}),d=t.useRef(null),[f,p]=ui(),{labelProps:h,triggerProps:g,valueProps:m,menuProps:v,descriptionProps:y,errorMessageProps:b,...w}=function(e,n,r){let{keyboardDelegate:o,isDisabled:i,isRequired:a,name:l,validationBehavior:s="aria"}=e,u=pc({usage:"search",sensitivity:"base"}),c=t.useMemo((()=>o||new Qp(n.collection,n.disabledKeys,null,u)),[o,n.collection,n.disabledKeys,u]),{menuTriggerProps:d,menuProps:f}=gh({isDisabled:i,type:"listbox"},n,r),{typeSelectProps:p}=Zp({keyboardDelegate:c,selectionManager:n.selectionManager,onTypeSelect(e){n.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:m}=n.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:w}=Cd({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||g});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let x=$r(e,{labelable:!0}),C=Ar(p,d,y),S=kr();return Qg.set(n,{isDisabled:i,isRequired:a,name:l,validationBehavior:s}),{labelProps:{...v,onClick:()=>{e.isDisabled||(r.current.focus(),ia("keyboard"))}},triggerProps:Ar(x,{...C,isDisabled:i,onKeyDown:Dr(C.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let t=null!=n.selectedKey?c.getKeyAbove(n.selectedKey):c.getFirstKey();t&&n.setSelectedKey(t);break}case"ArrowRight":{e.preventDefault();let t=null!=n.selectedKey?c.getKeyBelow(n.selectedKey):c.getFirstKey();t&&n.setSelectedKey(t);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[S,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(t){n.isFocused||(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0),n.setFocused(!0))},onBlur(t){n.isOpen||(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),n.setFocused(!1))}}),valueProps:{id:S},menuProps:{...f,autoFocus:n.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1),n.setFocused(!1))},"aria-labelledby":[y["aria-labelledby"],C["aria-label"]&&!y["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:w,isInvalid:h,validationErrors:g,validationDetails:m}}({...pi(e),label:p,validationBehavior:l},s,d),[x,C]=t.useState(null),S=t.useCallback((()=>{d.current&&C(d.current.offsetWidth+"px")}),[d]);fo({ref:d,onResize:S});let k=t.useMemo((()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:u,isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:e.isRequired||!1})),[s.isOpen,s.isFocused,u,e.isDisabled,w.isInvalid,e.isRequired]),E=ai({...e,values:k,defaultClassName:"react-aria-Select"}),O=$r(e);delete O.id;let D=t.useRef(null);return t.createElement(ii,{values:[[ux,e],[cx,s],[hx,m],[Gm,{...h,ref:f,elementType:"span"}],[ev,{...g,ref:d,isPressed:s.isOpen}],[lw,s],[nw,{trigger:"Select",triggerRef:d,scrollRef:D,placement:"bottom start",style:{"--trigger-width":x}}],[zb,{...v,ref:D}],[Fb,s],[rv,{slots:{description:y,errorMessage:b}}],[mb,w]]},t.createElement("div",{...O,...E,...c,ref:n,slot:e.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":u||void 0,"data-open":s.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":e.isRequired||void 0}),t.createElement(em,{state:s,triggerRef:d,label:p,name:e.name,isDisabled:e.isDisabled}))}const px=t.forwardRef(dx),hx=t.createContext(null);function gx(e,n){var r,o;[e,n]=si(e,n,hx);let i=t.useContext(cx),{placeholder:a}=li(ux),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 u=vl(function(e){return e&&e.__esModule?e.default:e}(jb),"react-aria-components");var c,d,f;let p=ai({...e,defaultChildren:null!==(c=null!=s?s:a)&&void 0!==c?c:u.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:null!==(d=null===(r=i.selectedItem)||void 0===r?void 0:r.value)&&void 0!==d?d:null,selectedText:null!==(f=null===(o=i.selectedItem)||void 0===o?void 0:o.textValue)&&void 0!==f?f:null,isPlaceholder:!l}}),h=$r(e);return t.createElement("span",{ref:n,...h,...p,"data-placeholder":!l||void 0},t.createElement(rv.Provider,{value:void 0},p.children))}const mx=t.forwardRef(gx);class vx extends tr{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=Ny(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 er("tableheader",-1),this.body=new er("tablebody",-2),this.columnsDirty=!0}}const yx=t.createContext(null);function bx(e,n){let r=uo(n),o=t.useRef(null),i=t.useRef(null),[a,l]=t.useState(0);wr((()=>{let e=o.current;for(;e&&e!==r.current&&!ho(e);)e=e.parentElement;i.current=e}),[r]),fo({ref:i,box:"border-box",onResize(){var e,t;l(null!==(t=null===(e=i.current)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:0)}}),wr((()=>{var e,t;l(null!==(t=null===(e=i.current)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:0)}),[]);let s=t.useMemo((()=>({tableRef:o,scrollRef:i,tableWidth:a,useTableColumnResizeState:_y,onResizeStart:e.onResizeStart,onResize:e.onResize,onResizeEnd:e.onResizeEnd})),[o,a,e.onResizeStart,e.onResize,e.onResizeEnd]);return t.createElement("div",{...$r(e),ref:r,className:e.className||"react-aria-ResizableTableContainer",style:e.style,onScroll:e.onScroll},t.createElement(yx.Provider,{value:s},e.children))}const wx=t.forwardRef(bx),xx=t.createContext(null),Cx=t.createContext(null),Sx=t.createContext(null);function kx(e,n){var r;[e,n]=si(e,n,xx);let o=wv(e),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=o,s=!!(null===(r=e.dragAndDropHooks)||void 0===r?void 0:r.useDraggableCollectionState),u=t.useMemo((()=>({selectionBehavior:"none"===a?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:s})),[i,a,l,s]),c=t.createElement(jx.Provider,{value:u},t.createElement(Xo,e));return t.createElement(Ko,{content:c,createCollection:()=>new vx},(r=>t.createElement(Ex,{props:e,forwardedRef:n,selectionState:o,collection:r})))}function Ex({props:e,forwardedRef:n,selectionState:r,collection:o}){let i=t.useContext(yx);n=uo(t.useMemo((()=>_r(n,null==i?void 0:i.tableRef)),[n,null==i?void 0:i.tableRef]));let a,l,s,u=Fy({...e,collection:o,children:void 0,UNSAFE_selectionState:r}),{isVirtualized:c,layoutDelegate:d,dropTargetDelegate:f,CollectionRoot:p}=t.useContext(ri),{dragAndDropHooks:h}=e,{gridProps:g}=function(e,n,r){let{keyboardDelegate:o,isVirtualized:i,layoutDelegate:a,layout:l}=e,s=pc({usage:"search",sensitivity:"base"}),{direction:u}=ll(),c=n.selectionManager.disabledBehavior,d=t.useMemo((()=>o||new Bm({collection:n.collection,disabledKeys:n.disabledKeys,disabledBehavior:c,ref:r,direction:u,collator:s,layoutDelegate:a,layout:l})),[o,n.collection,n.disabledKeys,c,r,u,s,a,l]),f=kr(e.id);tm.set(n,f);let{gridProps:p}=Gg({...e,id:f,keyboardDelegate:d},n,r);i&&(p["aria-rowcount"]=n.collection.size+n.collection.headerRows.length),Vm()&&"expandedKeys"in n&&(p.role="treegrid");let{column:h,direction:g}=n.sortDescriptor||{},m=vl(function(e){return e&&e.__esModule?e.default:e}(Fm),"@react-aria/table"),v=t.useMemo((()=>{var e;let t=null===(e=n.collection.columns.find((e=>e.key===h)))||void 0===e?void 0:e.textValue;return g&&h?m.format(`${g}Sort`,{columnName:t}):void 0}),[g,h,n.collection.columns]),y=wo(v);return co((()=>{rd(v,"assertive",500)}),[v]),{gridProps:Ar(p,y,{"aria-describedby":[y["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}({...e,layoutDelegate:d,isVirtualized:c},u,n),m=u.selectionManager,v=!!(null==h?void 0:h.useDraggableCollectionState),y=!!(null==h?void 0:h.useDroppableCollectionState),b=t.useRef(v),w=t.useRef(y);t.useEffect((()=>{b.current!==v&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),w.current!==y&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")}),[v,y]);let x=!1,C=null,S=t.useRef(null);if(v&&h){a=h.useDraggableCollectionState({collection:o,selectionManager:m,preview:h.renderDragPreview?S:void 0}),h.useDraggableCollection({},a,n);let e=h.DragPreview;C=h.renderDragPreview?t.createElement(e,{ref:S},h.renderDragPreview):null}if(y&&h){l=h.useDroppableCollectionState({collection:o,selectionManager:m});let e=new Qp({collection:o,disabledKeys:m.disabledKeys,disabledBehavior:m.disabledBehavior,ref:n,layoutDelegate:d}),t=h.dropTargetDelegate||f||new h.ListDropTargetDelegate(o.rows,n);s=h.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:t},l,n),x=l.isDropTarget({type:"root"})}let{focusProps:k,isFocused:E,isFocusVisible:O}=Za(),D=ai({className:e.className,style:e.style,defaultClassName:"react-aria-Table",values:{isDropTarget:x,isFocused:E,isFocusVisible:O,state:u}}),j=!(!v||(null==a?void 0:a.isDisabled)),P=D.style,T=null;i&&(T=i.useTableColumnResizeState({tableWidth:i.tableWidth},u),c||(P={...P,tableLayout:"fixed",width:"fit-content"}));let M=Dx("table");var A;return t.createElement(ii,{values:[[Cx,u],[Sx,T],[Pb,{dragAndDropHooks:h,dragState:a,dropState:l}],[Tb,{render:$x}]]},t.createElement(Da,null,t.createElement(M,{...$r(e),...D,...Ar(g,k,null==s?void 0:s.collectionProps),style:P,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":j||void 0,"data-drop-target":x||void 0,"data-focused":E||void 0,"data-focus-visible":O||void 0},t.createElement(p,{collection:o,scrollRef:null!==(A=null==i?void 0:i.scrollRef)&&void 0!==A?A:n,persistedKeys:Rb(m,h,l)}))),C)}const Ox=t.forwardRef(kx);function Dx(e){let{isVirtualized:n}=t.useContext(ri);return n?"div":e}const jx=t.createContext(null),Px=qo("tableheader",((e,n)=>{let r=ir({items:t.useContext(Cx).collection.headerRows,children:t.useCallback((e=>{if("headerrow"===e.type)return t.createElement(Tx,{item:e});throw new Error("Unsupported node type in TableHeader: "+e.type)}),[])}),o=Dx("thead"),{rowGroupProps:i}={rowGroupProps:{role:"rowgroup"}},{hoverProps:a,isHovered:l}=ga({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),s=ai({className:e.className,style:e.style,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return t.createElement(o,{...Ar($r(e),i,a),...s,ref:n,"data-hovered":l||void 0},r)}),(e=>t.createElement(Xo,{dependencies:e.dependencies,items:e.columns},e.children)));function Tx({item:e}){let n=t.useRef(null),r=t.useContext(Cx),{isVirtualized:o,CollectionBranch:i}=t.useContext(ri),{rowProps:a}=function(e,t,n){let{node:r,isVirtualized:o}=e,i={role:"row"};return!o||Vm()&&"expandedKeys"in t||(i["aria-rowindex"]=r.index+1),{rowProps:i}}({node:e,isVirtualized:o},r),{checkboxProps:l}=function(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;const o=vl(function(e){return e&&e.__esModule?e.default:e}(Fm),"@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()}}}(r),s=Dx("tr");return t.createElement(s,{...a,ref:n},t.createElement(ii,{values:[[Jn,{slots:{selection:l}}]]},t.createElement(i,{collection:r.collection,parent:e})))}const Mx=Zo("column",((e,n,r)=>{var o,i;let a=uo(n),l=t.useContext(Cx),{isVirtualized:s}=t.useContext(ri),{columnHeaderProps:u}=function(e,n,r){var o,i;let{node:a}=e,l=a.props.allowsSorting,{gridCellProps:s}=Yg({...e,focusMode:"child"},n,r),u=a.props.isSelectionCell&&"single"===n.selectionManager.selectionMode,{pressProps:c}=Oi({isDisabled:!l||u,onPress(){n.sort(a.key)},ref:r}),{focusableProps:d}=Xa({},r),f=null,p=(null===(o=n.sortDescriptor)||void 0===o?void 0:o.column)===a.key,h=null===(i=n.sortDescriptor)||void 0===i?void 0:i.direction;a.props.allowsSorting&&!Xr()&&(f=p?h:"none");let g,m=vl(function(e){return e&&e.__esModule?e.default:e}(Fm),"@react-aria/table");l&&(g=`${m.format("sortable")}`,p&&h&&Xr()&&(g=`${g}, ${m.format(h)}`));let v=wo(g),y=0===n.collection.size;return t.useEffect((()=>{y&&n.selectionManager.focusedKey===a.key&&n.selectionManager.setFocusedKey(null)}),[y,n.selectionManager,a.key]),{columnHeaderProps:{...Ar(s,c,d,v,y&&{tabIndex:-1}),role:"columnheader",id:rm(n,a.key),"aria-colspan":a.colspan&&a.colspan>1?a.colspan:null,"aria-sort":f}}}({node:r,isVirtualized:s},l,a),{isFocused:c,isFocusVisible:d,focusProps:f}=Za(),p=t.useContext(Sx),h=!1;if(p)h=p.resizingColumn===r.key;else for(let e in["width","defaultWidth","minWidth","maxWidth"])e in r.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:g,isHovered:m}=ga({isDisabled:!e.allowsSorting}),v=ai({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-Column",values:{isHovered:m,isFocused:c,isFocusVisible:d,allowsSorting:r.props.allowsSorting,sortDirection:(null===(o=l.sortDescriptor)||void 0===o?void 0:o.column)===r.key?l.sortDescriptor.direction:void 0,isResizing:h,startResize:()=>{if(!p)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");p.startResize(r.key),l.setKeyboardNavigationDisabled(!0)},sort:e=>{l.sort(r.key,e)}}}),y=v.style;p&&(y={...y,width:p.getColumnWidth(r.key)});let b=Dx("th");return t.createElement(b,{...Ar($r(e),u,f,g),...v,style:y,colSpan:r.colspan,ref:a,"data-hovered":m||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-resizing":h||void 0,"data-allows-sorting":r.props.allowsSorting||void 0,"data-sort-direction":(null===(i=l.sortDescriptor)||void 0===i?void 0:i.column)===r.key?l.sortDescriptor.direction:void 0},t.createElement(ii,{values:[[Ax,{column:r,triggerRef:a}],[ri,ti]]},v.children))})),Ax=t.createContext(null);function _x(e,n){let o=t.useContext(Sx);if(!o)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=vl(function(e){return e&&e.__esModule?e.default:e}(jb),"react-aria-components"),{onResizeStart:a,onResize:l,onResizeEnd:s}=t.useContext(yx),{column:u,triggerRef:c}=t.useContext(Ax),d=t.useRef(null),{resizerProps:f,inputProps:p,isResizing:h}=qm({column:u,"aria-label":e["aria-label"]||i.format("tableResizer"),onResizeStart:a,onResize:l,onResizeEnd:s,triggerRef:c},o,d),{focusProps:g,isFocused:m,isFocusVisible:v}=Za(),{hoverProps:y,isHovered:b}=ga(e),w=o.getColumnMinWidth(u.key)>=o.getColumnWidth(u.key),x=o.getColumnMaxWidth(u.key)<=o.getColumnWidth(u.key),{direction:C}=ll(),S="both";S=w?"rtl"===C?"right":"left":x?"rtl"===C?"left":"right":"both";let k=uo(n),[E,O]=t.useState("");t.useEffect((()=>{if(!k.current)return;let e=window.getComputedStyle(k.current);O(e.cursor)}),[k,S]);let D=ai({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:m,isFocusVisible:v,isResizing:h,isHovered:b,resizableDirection:S}}),[j,P]=t.useState(!1);return!h&&j&&P(!1),t.createElement("div",{ref:k,role:"presentation",...$r(e),...D,...Ar(f,{onPointerDown:e=>{"mouse"===e.pointerType&&P(!0)}},y),"data-hovered":b||void 0,"data-focused":m||void 0,"data-focus-visible":v||void 0,"data-resizing":h||void 0,"data-resizable-direction":S},D.children,t.createElement("input",{ref:d,...Ar(p,g)}),h&&j&&r.createPortal(t.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:E}}),document.body))}const Rx=t.forwardRef(_x),Lx=qo("tablebody",((e,n)=>{let r=t.useContext(Cx),{isVirtualized:o}=t.useContext(ri),i=r.collection,{CollectionBranch:a}=t.useContext(ri),{dragAndDropHooks:l,dropState:s}=t.useContext(Pb),u=!!(null==l?void 0:l.useDroppableCollectionState)&&!(null==s?void 0:s.isDisabled);var c;let d,f={isDropTarget:u&&!!s&&null!==(c=s.isDropTarget({type:"root"}))&&void 0!==c&&c,isEmpty:0===i.size},p=ai({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:f}),h=Dx("tr"),g=Dx("td"),m=i.columnCount;if(0===i.size&&e.renderEmptyState&&r){let n={},r={},a={};o?(n["aria-rowindex"]=i.headerRows.length+1,r["aria-colspan"]=m,a={display:"contents"}):r.colSpan=m,d=t.createElement(h,{role:"row",...n,style:a},t.createElement(g,{role:"rowheader",...r,style:a},e.renderEmptyState(f)))}let{rowGroupProps:v}={rowGroupProps:{role:"rowgroup"}},y=Dx("tbody");return t.createElement(y,{...Ar($r(e),v),...p,ref:n,"data-empty":0===i.size||void 0},u&&t.createElement(Bx,null),t.createElement(a,{collection:i,parent:i.body,renderDropIndicator:_b(l,s)}),d)})),Ix=qo("item",((e,n,r)=>{let o,i,a=uo(n),l=t.useContext(Cx),{dragAndDropHooks:s,dragState:u,dropState:c}=t.useContext(Pb),{isVirtualized:d,CollectionBranch:f}=t.useContext(ri),{rowProps:p,...h}=Wm({node:r,shouldSelectOnPressUp:!!u,isVirtualized:d},l,a),{isFocused:g,isFocusVisible:m,focusProps:v}=Za(),{isFocusVisible:y,focusProps:b}=Za({within:!0}),{hoverProps:w,isHovered:x}=ga({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:C}=Zm({key:r.key},l);u&&s&&(o=s.useDraggableItem({key:r.key,hasDragButton:!0},u));let S=t.useRef(null),{visuallyHiddenProps:k}=Od();c&&s&&(i=s.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"}},c,S));let E=t.useRef(null);t.useEffect((()=>{u&&!E.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 O=u&&u.isDragging(r.key),{children:D,...j}=e,P=ai({...j,id:void 0,defaultClassName:"react-aria-Row",values:{...h,isHovered:x,isFocused:g,isFocusVisible:m,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,isDragging:O,isDropTarget:null==i?void 0:i.isDropTarget,isFocusVisibleWithin:y}}),T=Dx("tr"),M=Dx("td");return t.createElement(t.Fragment,null,i&&!i.isHidden&&t.createElement(T,{role:"row",style:{height:0}},t.createElement(M,{role:"gridcell",colSpan:l.collection.columnCount,style:{padding:0}},t.createElement("div",{role:"button",...k,...i.dropIndicatorProps,ref:S}))),t.createElement(T,{...Ar($r(e),p,v,w,null==o?void 0:o.dragProps,b),...P,ref:a,"data-disabled":h.isDisabled||void 0,"data-selected":h.isSelected||void 0,"data-hovered":x||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":m||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":O||void 0,"data-drop-target":(null==i?void 0:i.isDropTarget)||void 0,"data-selection-mode":"none"===l.selectionManager.selectionMode?void 0:l.selectionManager.selectionMode,"data-focus-visible-within":y||void 0},t.createElement(ii,{values:[[Jn,{slots:{selection:C}}],[ev,{slots:{[oi]:{},drag:{...null==o?void 0:o.dragButtonProps,ref:E,style:{pointerEvents:"none"}}}}]]},t.createElement(f,{collection:l.collection,parent:r}))))}),(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 n=[e.value].concat(e.dependencies);return t.createElement(Xo,{dependencies:n,items:e.columns,idScope:e.id},e.children)})),Nx=Zo("cell",((e,n,r)=>{let o=uo(n),i=t.useContext(Cx),{dragState:a}=t.useContext(Pb),{isVirtualized:l}=t.useContext(ri);r.column=i.collection.columns[r.index];let{gridCellProps:s,isPressed:u}=function(e,t,n){let{gridCellProps:r,isPressed:o}=Yg(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=om(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:o}}({node:r,shouldSelectOnPressUp:!!a,isVirtualized:l},i,o),{isFocused:c,isFocusVisible:d,focusProps:f}=Za(),{hoverProps:p,isHovered:h}=ga({}),g=ai({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:c,isFocusVisible:d,isPressed:u,isHovered:h}}),m=Dx("td");return t.createElement(m,{...Ar($r(e),s,f,p),...g,ref:o,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":u||void 0},t.createElement(ri.Provider,{value:ti},g.children))}));function $x(e,n){n=uo(n);let{dragAndDropHooks:r,dropState:o}=t.useContext(Pb),i=t.useRef(null),{dropIndicatorProps:a,isHidden:l,isDropTarget:s}=r.useDropIndicator(e,o,i);return l?null:t.createElement(Fx,{...e,dropIndicatorProps:a,isDropTarget:s,buttonRef:i,ref:n})}function zx(e,n){let{dropIndicatorProps:r,isDropTarget:o,buttonRef:i,...a}=e,l=t.useContext(Cx),{visuallyHiddenProps:s}=Od(),u=ai({...a,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}}),c=Dx("tr"),d=Dx("td");return t.createElement(c,{...$r(e),...u,role:"row",ref:n,"data-drop-target":o||void 0},t.createElement(d,{role:"gridcell",colSpan:l.collection.columnCount,style:{padding:0}},t.createElement("div",{...s,role:"button",...r,ref:i}),u.children))}const Fx=t.forwardRef(zx);function Bx(){let e=t.useContext(Cx),{dragAndDropHooks:n,dropState:r}=t.useContext(Pb),o=t.useRef(null),{dropIndicatorProps:i}=n.useDropIndicator({target:{type:"root"}},r,o),a=r.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=Od(),s=Dx("tr"),u=Dx("td");return!a&&i["aria-hidden"]?null:t.createElement(s,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},t.createElement(u,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},t.createElement("div",{role:"button",...l,...i,ref:o})))}Zo("loader",(function(e,n,r){let o=t.useContext(Cx),{isVirtualized:i}=t.useContext(ri),a=o.collection.columns.length,l=ai({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",values:null}),s=Dx("tr"),u=Dx("td"),c={},d={},f={};return i?(c["aria-rowindex"]=o.collection.headerRows.length+o.collection.size,d["aria-colspan"]=a,f={display:"contents"}):d.colSpan=a,t.createElement(t.Fragment,null,t.createElement(s,{role:"row",ref:n,...Ar($r(e),c),...l},t.createElement(u,{role:"rowheader",...d,style:f},l.children)))}));const Kx=t.createContext({}),Vx=t.createContext(null);function Hx(e,n){[e,n]=si(e,n,Vx);let{validationBehavior:r}=li(wb)||{};var o,i;let a=null!==(i=null!==(o=e.validationBehavior)&&void 0!==o?o:r)&&void 0!==i?i:"native",l=t.useRef(null),[s,u]=ui(),[c,d]=t.useState("input"),{labelProps:f,inputProps:p,descriptionProps:h,errorMessageProps:g,...m}=jd({...pi(e),inputElementType:c,label:u,validationBehavior:a},l),v=t.useCallback((e=>{l.current=e,e&&d(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),y=ai({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:m.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),b=$r(e);return delete b.id,t.createElement("div",{...b,...y,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":m.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},t.createElement(ii,{values:[[Gm,{...f,ref:s}],[kb,{...p,ref:v}],[Kx,{...p,ref:v}],[rv,{slots:{description:h,errorMessage:g}}],[mb,m]]},y.children))}const Ux=t.forwardRef(Hx),Wx=t.createContext(null),Zx=t.createContext(null);function qx(e){let n=qy(e),r=t.useRef(null),{triggerProps:o,tooltipProps:i}=function(e,n,r){let{isDisabled:o,trigger:i}=e,a=kr(),l=t.useRef(!1),s=t.useRef(!1),u=()=>{(l.current||s.current)&&n.open(s.current)},c=e=>{l.current||s.current||n.close(e)};t.useEffect((()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),n.close(!0))};if(n.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[r,n]);let d=()=>{s.current=!1,l.current=!1,c(!0)},{hoverProps:f}=ga({isDisabled:o,onHoverStart:()=>{"focus"!==i&&("pointer"===oa()?l.current=!0:l.current=!1,u())},onHoverEnd:()=>{"focus"!==i&&(s.current=!1,l.current=!1,c())}}),{focusableProps:p}=Xa({isDisabled:o,onFocus:()=>{ra()&&(s.current=!0,u())},onBlur:()=>{s.current=!1,l.current=!1,c(!0)}},r);return{triggerProps:{"aria-describedby":n.isOpen?a:void 0,...Ar(p,f,{onPointerDown:d,onKeyDown:d})},tooltipProps:{id:a}}}(e,n,r);return t.createElement(ii,{values:[[Wx,n],[Zx,{...i,triggerRef:r}]]},t.createElement(Ya,{...o,ref:r},e.children))}function Gx({UNSTABLE_portalContainer:e,...n},r){[n,r]=si(n,r,Zx);let o=t.useContext(Wx),i=qy(n),a=null==n.isOpen&&null==n.defaultOpen&&o?o:i,l=di(r,a.isOpen)||n.isExiting||!1;return a.isOpen||l?t.createElement(Ap,{portalContainer:e},t.createElement(Xx,{...n,tooltipRef:r,isExiting:l})):null}const Yx=t.forwardRef(Gx);function Xx(e){let n=t.useContext(Wx),r=t.useRef(null),[o,i]=t.useState(0);wr((()=>{r.current&&n.isOpen&&i(r.current.getBoundingClientRect().width)}),[n.isOpen,r]);let{overlayProps:a,arrowProps:l,placement:s}=gp({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:n.isOpen,arrowSize:o,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip}),u=ci(e.tooltipRef,!!s)||e.isEntering||!1,c=ai({...e,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:u,isExiting:e.isExiting,state:n}});e=Ar(e,a);let{tooltipProps:d}=function(e,t){let n=$r(e,{labelable:!0}),{hoverProps:r}=ga({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:Ar(n,r,{role:"tooltip"})}}(e,n);return t.createElement("div",{...d,ref:e.tooltipRef,...c,style:{...a.style,...c.style},"data-placement":s,"data-entering":u||void 0,"data-exiting":e.isExiting||void 0},t.createElement(Qb.Provider,{value:{...l,placement:s,ref:r}},c.children))}const Jx=(e,t)=>!t.includes(e),Qx={shouldForwardProp:e=>Jx(e,["zIndex"])},eC=[({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}})],tC=N(Hw,Qx)(eC),nC=N.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}})),Wt),rC=N.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}}}))),oC=N.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),iC=n=>{var{label:r,labelPosition:o,checked:i,partial:a,disabled:l,readOnly:u,onChange:c}=n,d=s(n,["label","labelPosition","checked","partial","disabled","readOnly","onChange"]);const[f,p]=t.useState(i||!1),h="right"===o;return t.useEffect((()=>{p("boolean"==typeof i?i:f)}),[i,f]),e.jsx(aC,Object.assign({labelRight:h,isSelected:f,isIndeterminate:a,isDisabled:l,isReadOnly:u,onChange:()=>{const e=!!a||!f;p(e),c&&c(e)}},d,{children:({isIndeterminate:t,isSelected:n})=>{let o="checkbox-off";return a||t?o="checkbox-partial":(f||n)&&(o="checkbox"),e.jsxs(e.Fragment,{children:[r&&e.jsx(oC,{children:r}),e.jsx(Gt,{name:o,marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!l})]})}}))},aC=N(Sb)((({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`}})),Wt),lC=({header:t,body:n,inline:r})=>e.jsxs(sC,{inline:r,children:[e.jsx(uC,{slot:"label",children:t}),e.jsx(cC,{slot:"description",children:n})]}),sC=N.div((({inline:e})=>({display:"flex",flexDirection:e?"row":"column",alignItems:e?"center":void 0,gap:e?8:void 0}))),uC=N(iv)((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),cC=N(iv)((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),dC={shouldForwardProp:e=>Jx(e,["selected","noSelect","contentPosition","color","accented"])},fC=[({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})],pC=t=>{var{id:n,value:r,children:o,header:i,body:a,leftElement:l,rightElement:u,inline:c,disabled:d,checkbox:f,onClick:p}=t,h=s(t,["id","value","children","header","body","leftElement","rightElement","inline","disabled","checkbox","onClick"]);const g=o||r;return e.jsx(hC,Object.assign({id:n||r,textValue:r,onAction:p,isDisabled:d},h,{children:({selectionMode:t,isSelected:n})=>{const r="multiple"===t||"single"===t,o=f?e.jsx(iC,{checked:n,readOnly:!0,marginRight:4}):e.jsx(Gt,{name:"check",color:n?void 0:"transparent",size:"small",marginLeft:-12,marginRight:4});return e.jsxs(e.Fragment,{children:[r?o:null,l||null,i&&a?e.jsx(lC,{header:i,body:a,inline:c}):g,u&&e.jsx("div",{style:{marginLeft:"auto"},children:u})]})}}))},hC=N(Zw,dC)(fC),gC=N(Ib)((({theme:e})=>({backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}}))),mC=({id:t,title:n,children:r})=>e.jsxs(ei,{id:t,children:[n&&e.jsx(gC,{children:n}),r]}),vC=t=>{var{options:n,children:r,autoWidth:o,itemProps:i,width:a,menuRef:l}=t,u=s(t,["options","children","autoWidth","itemProps","width","menuRef"]);return e.jsxs(tC,Object.assign({autoWidth:o,shouldFocusWrap:!0,width:a,ref:l},u,{children:[null==n?void 0:n.map((t=>{if("options"in t){const n=t;return e.jsx(mC,{id:n.id,title:n.title,children:n.options.map((t=>e.jsx(pC,Object.assign({},t,i),t.id||t.value)))},n.id)}const n=t;return e.jsx(pC,Object.assign({},n,i),n.id||n.value)})),r]}))},yC=N(nv)((({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`}}))),bC=n.keyframes({from:{transform:"var(--origin)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),wC="300ms cubic-bezier(0.860, 0.000, 0.070, 1.000)",xC=N(ow)({'&[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:`${bC} ${wC}`},"&[data-exiting]":{animation:`${bC} ${wC} reverse`}}),CC=n=>{var{children:r,position:o="bottom",fixedPosition:i,trigger:a,isTriggerButton:l,options:u,offset:c=4,selectionMode:d,selectedKeys:f,afterShow:p,afterHide:h,onSelectionChange:g}=n,m=s(n,["children","position","fixedPosition","trigger","isTriggerButton","options","offset","selectionMode","selectedKeys","afterShow","afterHide","onSelectionChange"]);const[v,y]=t.useState(new Set),[b,w]=t.useState();t.useEffect((()=>{f&&("single"===d?w(new Set([f])):"multiple"===d&&w("string"==typeof f?f:new Set(f)))}),[f]);const x=l?a:e.jsx(yC,{"aria-label":"Menu",children:a}),C=e=>{y(e);const t=Array.from(e);g&&g("single"===d?t[0]:"all"===e?e:t)};return e.jsxs(zw,{onOpenChange:e=>{p&&e&&p(),h&&!e&&h()},children:[x,e.jsx(xC,{placement:o,offset:c,shouldFlip:!i&&void 0,children:({isEntering:t,isExiting:n})=>e.jsx(vC,Object.assign({options:u,autoWidth:!0,selectionMode:d,selectedKeys:b||v,onSelectionChange:C,readOnly:t||n},m,{children:r}))})]})},SC=N($b)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),kC=N.div({marginLeft:"auto",width:16,height:16}),EC=N.div({position:"absolute",right:8});CC.Item=pC,CC.Sub=({children:t,label:n,disabled:r})=>e.jsxs(Bw,{children:[e.jsx(pC,{value:n,disabled:r,rightElement:e.jsx(kC,{children:e.jsx(EC,{children:e.jsx(Gt,{name:"chevron-right",size:"small",inheritColor:r})})})}),e.jsx(xC,{offset:2,children:({isEntering:n,isExiting:r})=>e.jsx(tC,{autoWidth:!0,readOnly:n||r,children:t})})]}),CC.Section=mC,CC.Separator=SC;const OC=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:l,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f,position:p,top:h,bottom:g,right:m,left:v}=t,y=s(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:l,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f,position:p,top:h,bottom:g,right:m,left:v};return e.jsx(DC,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(PC,{children:e.jsx(Gt,Object.assign({},y,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},DC=N.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"}}),Wt,Zt),jC=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),PC=N.div({animation:`${jC} 1s linear infinite`,width:"max-content",height:"max-content"}),TC=({size:t})=>e.jsx(MC,{className:"button-loader",children:e.jsx(OC,{size:t})}),MC=N.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),AC=n=>{var{children:r,disabled:o,outline:i,size:a,small:l,large:u,secondary:c,negative:d,positive:f,caution:p,collapse:h}=n,g=s(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(_C,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let s;if(n>1&&(s=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=l||r.props.small,m=u||r.props.large,v=a||r.props.size,y=o||r.props.disabled,b=i||r.props.outline,w=c||r.props.secondary,x=d||r.props.negative,C=f||r.props.positive,S=p||r.props.caution,k=h||r.props.collapse,E=t.cloneElement(n,{joined:s,size:v,small:g,large:m,disabled:y,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:k});return"trigger"in e.props?t.cloneElement(e,{trigger:E}):E}return null}))}))}return null},_C=N.div((({width:e})=>({display:"inline-flex",width:e})),Wt),RC=t.forwardRef(((t,n)=>{const{content:r,children:o,dropdown:i,options:a}=t,l=s(t,["content","children","dropdown","options"]),u=r||o;return i&&a?e.jsx(IC,Object.assign({ref:n,options:a},l,{children:u})):e.jsx(LC,Object.assign({ref:n},l,{children:u}))})),LC=t.forwardRef(((t,r)=>{var{children:o,onClick:i,icon:a,iconPosition:l,iconColor:u,joined:c,size:d,small:f,large:p,isLoading:h,collapse:g,backgroundColor:m,color:v,type:y,animation:b,iconAnimation:w,disabled:x}=t,C=s(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation","disabled"]);const{button:S}=n.useTheme(),k=a&&(!o||g),E="right"===l;let O=d||"medium";f?O="small":p&&(O="large");const D=S[O],{iconSize:j}=D,P=g&&a;return e.jsxs(NC,Object.assign({},C,{ref:r,isDisabled:x,type:y||"button",size:O,iconOnly:k,iconRight:E,joined:c,onPress:i,isLoading:h,color:v,backgroundColor:m,animation:b,children:[a?e.jsx(Gt,{size:j,name:a,marginRight:k||E?0:4,marginLeft:!k&&E?4:0,color:u,inheritColor:!u,animation:w}):null,!P&&e.jsx(FC,{children:o}),h&&e.jsx(TC,{size:j})]}))})),IC=t.forwardRef(((n,r)=>{var{children:o,options:i,onClick:a,afterShow:l,afterHide:u,secondary:c,negative:d,positive:f,caution:p,outline:h,subtle:g,link:m,size:v,small:y,large:b,disabled:w,buttonDisabled:x,optionsDisabled:C,isLoading:S,direction:k,collapse:E,width:O,hideDivider:D,gap:j}=n,P=s(n,["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[T,M]=t.useState(!1),A={secondary:c,negative:d,positive:f,caution:p,outline:h,subtle:g,link:m,size:v,small:y,large:b};return e.jsx($C,{children:e.jsxs(AC,{width:E?void 0:O,children:[e.jsx(LC,Object.assign({},A,P,{ref:r,disabled:w||x,width:O&&!E?"100%":void 0,collapse:E,isLoading:S,onClick:e=>{a&&a(e)},hideJoinedBorder:D,joinedPadding:j,children:o&&e.jsx(zC,{children:o})})),e.jsx(CC,{options:i,position:`${k||"bottom"} right`,afterShow:()=>{l&&l(),M(!0)},afterHide:()=>{u&&u(),M(!1)},isTriggerButton:!0,trigger:e.jsx(LC,Object.assign({},A,{icon:T?"caret-up":"caret-down",preventPointerEvents:S,tabIndex:-1,joinedPadding:j,disabled:w||C}))})]})})})),NC=N(nv)((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:l,width:s,height:u,animation:c})=>{const d=i||a&&!o,f=n[r],p=s||"max-content",{height:h,font:g,padding:m,iconOnlyPadding:v}=f,y=u||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:c,"&: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:u,isDisabled:c,subtle:d,link:f})=>{const{button:p,size:h}=e;let g=p.primary;d?g=p.subtle:f?g=p.link:c?g=p.disabled:a?g=p.negative:l?g=p.positive:s?g=p.caution:u&&(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),c?v=p.disabled.color:a?v=e.negativeColor:l?v=e.positiveColor:s?v=e.cautionColor:u&&(v=e.secondaryColor)}const y="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=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&&!c?g.border.hover:void 0},"&:active":{background:m.active,color:v.active,borderColor:i&&!c?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?x:void 0,paddingRight:b?x: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?Un:Zn,i="dark"===e?Zn:Un;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}}}),Wt),$C=N.div({display:"inline-flex",flexDirection:"column",position:"relative"}),zC=N.div({marginRight:8}),FC=N.span({pointerEvents:"none"});var BC=Object.assign(RC,{Group:AC});const KC=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:l,onChange:u}=t,c=s(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(HC,Object.assign({},c,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;u&&u(+t)},step:o,width:i,height:a,disabled:l,readOnly:!u}))},VC=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),HC=N.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":VC(e,o||i),"&::-moz-range-thumb":VC(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),Wt),UC=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:l,centerAlignContent:u,small:c,collapsed:d,hideSliderOnStop:f,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:m,onPause:v,onStop:y}=n,b=s(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[k,E]=t.useState(0),[O,D]=t.useState(0),[j,P]=t.useState(""),[T,M]=t.useState(""),A=t.useRef(null),_=()=>{const{current:e}=A;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},R=()=>{const{current:e}=A;e&&e.pause()},L=()=>{const{current:e}=A;e&&e.load()};t.useImperativeHandle(r,(()=>({play:_,pause:R,stop:L})),[A,w]);const I=e=>{x(!1),S(!0),y&&y(e)};t.useEffect((()=>{(()=>{const{current:e}=A;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},$=C&&f,z=C&&p;return e.jsxs(WC,Object.assign({width:a},b,{children:[e.jsx(BC,{outline:!0,small:c,icon:w?"pause":"play",onClick:()=>{w?R():_()},marginRight:8}),!d&&e.jsxs(ZC,{alignDataTop:"top"===l,children:[!$&&e.jsx(KC,{value:k,max:O,step:.1,onChange:e=>{(null==A?void 0:A.current)&&(A.current.currentTime=e)}}),e.jsxs(qC,{alignTop:"top"===l,noSlider:$,relative:u||$,children:[i?e.jsx(GC,{fontSize:h,children:i}):e.jsx("div",{}),!z&&e.jsxs(GC,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:A,onPlay:e=>{x(!0),S(!1),m&&m(e)},onPause:e=>{x(!1),v&&v(e)},onEmptied:I,onEnded:I,onTimeUpdate:()=>{const{current:e}=A;if(e){const{currentTime:t}=e,n=N(t);E(t),P(n)}},onDurationChange:()=>{const{current:e}=A;if(e){const{duration:t}=e,n=N(t);D(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),WC=N.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),Wt),ZC=N.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),qC=N.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%"}))),GC=N.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var YC={},XC={};Object.defineProperty(XC,"__esModule",{value:!0}),XC.defaultOptions=void 0,XC.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var JC={};Object.defineProperty(JC,"__esModule",{value:!0}),JC.getLocales=JC.getFractionDigits=JC.roundTo=JC.parseValue=void 0,JC.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},JC.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))},JC.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},JC.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(YC,"__esModule",{value:!0}),YC.millify=void 0;const QC=XC,eS=JC,tS=1e3;function*nS(e){let t=tS;for(;;){const n=e/t;if(n<1)return;yield n,t*=tS}}function rS(e,t){var n,r;const o=t?{...QC.defaultOptions,...t}:QC.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=eS.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 nS(i))i=e,l+=1;if(l>=o.units.length)return e.toString();let s=eS.roundTo(i,o.precision);for(const e of nS(s))s=e,l+=1;const u=null!==(n=o.units[l])&&void 0!==n?n:"",c=o.lowercase?u.toLowerCase():u,d=o.space?" ":"";return`${a}${s.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:eS.getLocales(),{minimumFractionDigits:eS.getFractionDigits(s)})}${d}${c}`}YC.millify=rS;var oS=YC.default=rS,iS=Array.isArray,aS="object"==typeof Ao&&Ao&&Ao.Object===Object&&Ao,lS=aS,sS="object"==typeof self&&self&&self.Object===Object&&self,uS=lS||sS||Function("return this")(),cS=uS.Symbol,dS=cS,fS=Object.prototype,pS=fS.hasOwnProperty,hS=fS.toString,gS=dS?dS.toStringTag:void 0;var mS=function(e){var t=pS.call(e,gS),n=e[gS];try{e[gS]=void 0;var r=!0}catch(e){}var o=hS.call(e);return r&&(t?e[gS]=n:delete e[gS]),o},vS=Object.prototype.toString;var yS=mS,bS=function(e){return vS.call(e)},wS=cS?cS.toStringTag:void 0;var xS=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":wS&&wS in Object(e)?yS(e):bS(e)};var CS=function(e){return null!=e&&"object"==typeof e},SS=xS,kS=CS;var ES=function(e){return"symbol"==typeof e||kS(e)&&"[object Symbol]"==SS(e)},OS=iS,DS=ES,jS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PS=/^\w*$/;var TS=function(e,t){if(OS(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!DS(e))||(PS.test(e)||!jS.test(e)||null!=t&&e in Object(t))};var MS=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},AS=_o(MS),_S=xS,RS=MS;var LS,IS=function(e){if(!RS(e))return!1;var t=_S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},NS=_o(IS),$S=uS["__core-js_shared__"],zS=(LS=/[^.]+$/.exec($S&&$S.keys&&$S.keys.IE_PROTO||""))?"Symbol(src)_1."+LS:"";var FS=function(e){return!!zS&&zS in e},BS=Function.prototype.toString;var KS=function(e){if(null!=e){try{return BS.call(e)}catch(e){}try{return e+""}catch(e){}}return""},VS=IS,HS=FS,US=MS,WS=KS,ZS=/^\[object .+?Constructor\]$/,qS=Function.prototype,GS=Object.prototype,YS=qS.toString,XS=GS.hasOwnProperty,JS=RegExp("^"+YS.call(XS).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var QS=function(e,t){return null==e?void 0:e[t]},ek=function(e){return!(!US(e)||HS(e))&&(VS(e)?JS:ZS).test(WS(e))},tk=QS;var nk=function(e,t){var n=tk(e,t);return ek(n)?n:void 0},rk=nk(Object,"create"),ok=rk;var ik=function(){this.__data__=ok?ok(null):{},this.size=0};var ak=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},lk=rk,sk=Object.prototype.hasOwnProperty;var uk=function(e){var t=this.__data__;if(lk){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return sk.call(t,e)?t[e]:void 0},ck=rk,dk=Object.prototype.hasOwnProperty;var fk=rk;var pk=ik,hk=ak,gk=uk,mk=function(e){var t=this.__data__;return ck?void 0!==t[e]:dk.call(t,e)},vk=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fk&&void 0===t?"__lodash_hash_undefined__":t,this};function yk(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])}}yk.prototype.clear=pk,yk.prototype.delete=hk,yk.prototype.get=gk,yk.prototype.has=mk,yk.prototype.set=vk;var bk=yk;var wk=function(){this.__data__=[],this.size=0};var xk=function(e,t){return e===t||e!=e&&t!=t},Ck=xk;var Sk=function(e,t){for(var n=e.length;n--;)if(Ck(e[n][0],t))return n;return-1},kk=Sk,Ek=Array.prototype.splice;var Ok=Sk;var Dk=Sk;var jk=Sk;var Pk=wk,Tk=function(e){var t=this.__data__,n=kk(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ek.call(t,n,1),--this.size,!0)},Mk=function(e){var t=this.__data__,n=Ok(t,e);return n<0?void 0:t[n][1]},Ak=function(e){return Dk(this.__data__,e)>-1},_k=function(e,t){var n=this.__data__,r=jk(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Rk(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])}}Rk.prototype.clear=Pk,Rk.prototype.delete=Tk,Rk.prototype.get=Mk,Rk.prototype.has=Ak,Rk.prototype.set=_k;var Lk=Rk,Ik=nk(uS,"Map"),Nk=bk,$k=Lk,zk=Ik;var Fk=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Bk=function(e,t){var n=e.__data__;return Fk(t)?n["string"==typeof t?"string":"hash"]:n.map},Kk=Bk;var Vk=Bk;var Hk=Bk;var Uk=Bk;var Wk=function(){this.size=0,this.__data__={hash:new Nk,map:new(zk||$k),string:new Nk}},Zk=function(e){var t=Kk(this,e).delete(e);return this.size-=t?1:0,t},qk=function(e){return Vk(this,e).get(e)},Gk=function(e){return Hk(this,e).has(e)},Yk=function(e,t){var n=Uk(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Xk(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])}}Xk.prototype.clear=Wk,Xk.prototype.delete=Zk,Xk.prototype.get=qk,Xk.prototype.has=Gk,Xk.prototype.set=Yk;var Jk=Xk,Qk=Jk;function eE(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(eE.Cache||Qk),n}eE.Cache=Qk;var tE=eE,nE=_o(tE),rE=tE;var oE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iE=/\\(\\)?/g,aE=function(e){var t=rE(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(oE,(function(e,n,r,o){t.push(r?o.replace(iE,"$1"):n||e)})),t})),lE=aE;var sE=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},uE=sE,cE=iS,dE=ES,fE=cS?cS.prototype:void 0,pE=fE?fE.toString:void 0;var hE=function e(t){if("string"==typeof t)return t;if(cE(t))return uE(t,e)+"";if(dE(t))return pE?pE.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},gE=hE;var mE=function(e){return null==e?"":gE(e)},vE=iS,yE=TS,bE=lE,wE=mE;var xE=function(e,t){return vE(e)?e:yE(e,t)?[e]:bE(wE(e))},CE=ES;var SE=function(e){if("string"==typeof e||CE(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},kE=xE,EE=SE;var OE=function(e,t){for(var n=0,r=(t=kE(t,e)).length;null!=e&&n<r;)e=e[EE(t[n++])];return n&&n==r?e:void 0},DE=OE;var jE=function(e,t,n){var r=null==e?void 0:DE(e,t);return void 0===r?n:r},PE=_o(jE);var TE=_o((function(e){return null==e})),ME=xS,AE=iS,_E=CS;var RE,LE=_o((function(e){return"string"==typeof e||!AE(e)&&_E(e)&&"[object String]"==ME(e)})),IE={exports:{}},NE={};var $E,zE={};"production"===process.env.NODE_ENV?IE.exports=function(){if(RE)return NE;RE=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=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 u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return NE.AsyncMode=s,NE.ConcurrentMode=u,NE.ContextConsumer=l,NE.ContextProvider=a,NE.Element=t,NE.ForwardRef=c,NE.Fragment=r,NE.Lazy=h,NE.Memo=p,NE.Portal=n,NE.Profiler=i,NE.StrictMode=o,NE.Suspense=d,NE.isAsyncMode=function(e){return w(e)||b(e)===s},NE.isConcurrentMode=w,NE.isContextConsumer=function(e){return b(e)===l},NE.isContextProvider=function(e){return b(e)===a},NE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},NE.isForwardRef=function(e){return b(e)===c},NE.isFragment=function(e){return b(e)===r},NE.isLazy=function(e){return b(e)===h},NE.isMemo=function(e){return b(e)===p},NE.isPortal=function(e){return b(e)===n},NE.isProfiler=function(e){return b(e)===i},NE.isStrictMode=function(e){return b(e)===o},NE.isSuspense=function(e){return b(e)===d},NE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||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===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},NE.typeOf=b,NE}():IE.exports=($E||($E=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=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 u:case r:case i:case o:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case c:case h:case p:case a:return m;default:return f}}case n:return f}}}var w=s,x=u,C=l,S=a,k=t,E=c,O=r,D=h,j=p,P=n,T=i,M=o,A=d,_=!1;function R(e){return b(e)===u}zE.AsyncMode=w,zE.ConcurrentMode=x,zE.ContextConsumer=C,zE.ContextProvider=S,zE.Element=k,zE.ForwardRef=E,zE.Fragment=O,zE.Lazy=D,zE.Memo=j,zE.Portal=P,zE.Profiler=T,zE.StrictMode=M,zE.Suspense=A,zE.isAsyncMode=function(e){return _||(_=!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.")),R(e)||b(e)===s},zE.isConcurrentMode=R,zE.isContextConsumer=function(e){return b(e)===l},zE.isContextProvider=function(e){return b(e)===a},zE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zE.isForwardRef=function(e){return b(e)===c},zE.isFragment=function(e){return b(e)===r},zE.isLazy=function(e){return b(e)===h},zE.isMemo=function(e){return b(e)===p},zE.isPortal=function(e){return b(e)===n},zE.isProfiler=function(e){return b(e)===i},zE.isStrictMode=function(e){return b(e)===o},zE.isSuspense=function(e){return b(e)===d},zE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||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===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},zE.typeOf=b}()),zE);var FE=IE.exports,BE=xS,KE=CS;var VE=function(e){return"number"==typeof e||KE(e)&&"[object Number]"==BE(e)},HE=_o(VE),UE=VE;var WE=_o((function(e){return UE(e)&&e!=+e})),ZE=function(e){return 0===e?0:e>0?1:-1},qE=function(e){return LE(e)&&e.indexOf("%")===e.length-1},GE=function(e){return HE(e)&&!WE(e)},YE=function(e){return GE(e)||LE(e)},XE=0,JE=function(e){var t=++XE;return"".concat(e||"").concat(t)},QE=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(!GE(e)&&!LE(e))return r;if(qE(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return WE(n)&&(n=r),o&&n>t&&(n=t),n},eO=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},tO=function(e,t){return GE(e)&&GE(t)?function(n){return e+n*(t-e)}:function(){return t}};function nO(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):PE(e,t))===n})):null}function rO(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 oO(e){return oO="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},oO(e)}var iO=["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"],aO=["points","pathLength"],lO={svg:["viewBox","children"],polygon:aO,polyline:aO},sO=["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"],uO=function(e,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(t.isValidElement(e)&&(r=e.props),!AS(r))return null;var o={};return Object.keys(r).forEach((function(e){sO.includes(e)&&(o[e]=n||function(t){return r[e](r,t)})})),o},cO=function(e,t,n){if(!AS(e)||"object"!==oO(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];sO.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},dO=["children"],fO=["children"];function pO(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 hO(e){return hO="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},hO(e)}var gO={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},mO=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},vO=null,yO=null,bO=function e(n){if(n===vO&&Array.isArray(yO))return yO;var r=[];return t.Children.forEach(n,(function(t){TE(t)||(FE.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),yO=r,vO=n,r};function wO(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return mO(e)})):[mO(t)],bO(e).forEach((function(e){var t=PE(e,"type.displayName")||PE(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function xO(e,t){var n=wO(e,t);return n&&n[0]}var CO=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!GE(n)||n<=0||!GE(r)||r<=0)},SO=["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"],kO=function(e,n,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if(t.isValidElement(e)&&(o=e.props),!AS(o))return null;var i={};return Object.keys(o).forEach((function(e){var t;(function(e,t,n,r){var o,i=null!==(o=null==lO?void 0:lO[r])&&void 0!==o?o:[];return!NS(e)&&(r&&i.includes(t)||iO.includes(t))||n&&sO.includes(t)})(null===(t=o)||void 0===t?void 0:t[e],e,n,r)&&(i[e]=o[e])})),i},EO=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return OO(Array.isArray(n)?n[0]:n,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],l=r[i];if(Array.isArray(a)||Array.isArray(l)){if(!e(a,l))return!1}else if(!OO(a,l))return!1}return!0},OO=function(e,t){if(TE(e)&&TE(t))return!0;if(!TE(e)&&!TE(t)){var n=e.props||{},r=n.children,o=pO(n,dO),i=t.props||{},a=i.children,l=pO(i,fO);return r&&a?rO(o,l)&&EO(r,a):!r&&!a&&rO(o,l)}return!1},DO=function(e,t){var n=[],r={};return bO(e).forEach((function(e,o){if(function(e){return e&&e.type&&LE(e.type)&&SO.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=mO(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!r[i])){var u=l(e,i,o);n.push(u),r[i]=!0}}})),n},jO=["children","width","height","viewBox","className","style","title","desc"];function PO(){return PO=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},PO.apply(this,arguments)}function TO(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 MO(e){var n=e.children,r=e.width,o=e.height,i=e.viewBox,a=e.className,l=e.style,s=e.title,u=e.desc,c=TO(e,jO),d=i||{width:r,height:o,x:0,y:0},f=Mr("recharts-surface",a);return t.createElement("svg",PO({},kO(c,!0,"svg"),{className:f,width:r,height:o,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),t.createElement("title",null,s),t.createElement("desc",null,u),n)}var AO=["children","className"];function _O(){return _O=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},_O.apply(this,arguments)}function RO(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 LO=t.forwardRef((function(e,n){var r=e.children,o=e.className,i=RO(e,AO),a=Mr("recharts-layer",o);return t.createElement("g",_O({className:a},kO(i,!0),{ref:n}),r)})),IO="production"!==process.env.NODE_ENV,NO=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(IO&&"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 $O=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},zO=$O;var FO=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:zO(e,t,n)},BO=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var KO=function(e){return BO.test(e)};var VO=function(e){return e.split("")},HO="\\ud800-\\udfff",UO="["+HO+"]",WO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ZO="\\ud83c[\\udffb-\\udfff]",qO="[^"+HO+"]",GO="(?:\\ud83c[\\udde6-\\uddff]){2}",YO="[\\ud800-\\udbff][\\udc00-\\udfff]",XO="(?:"+WO+"|"+ZO+")"+"?",JO="[\\ufe0e\\ufe0f]?",QO=JO+XO+("(?:\\u200d(?:"+[qO,GO,YO].join("|")+")"+JO+XO+")*"),eD="(?:"+[qO+WO+"?",WO,GO,YO,UO].join("|")+")",tD=RegExp(ZO+"(?="+ZO+")|"+eD+QO,"g");var nD=function(e){return e.match(tD)||[]},rD=VO,oD=KO,iD=nD;var aD=function(e){return oD(e)?iD(e):rD(e)},lD=FO,sD=KO,uD=aD,cD=mE;var dD=function(e){return function(t){t=cD(t);var n=sD(t)?uD(t):void 0,r=n?n[0]:t.charAt(0),o=n?lD(n,1).join(""):t.slice(1);return r[e]()+o}},fD=_o(dD("toUpperCase"));function pD(e){return function(){return e}}const hD=Math.cos,gD=Math.sin,mD=Math.sqrt,vD=Math.PI,yD=2*vD,bD=Math.PI,wD=2*bD,xD=1e-6,CD=wD-xD;function SD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class kD{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?SD:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return SD;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,u=i-e,c=a-t,d=u*u+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>xD)if(Math.abs(c*l-s*u)>xD&&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((bD-Math.acos((h+d-g)/(2*m*v)))/2),b=y/v,w=y/m;Math.abs(b-1)>xD&&this._append`L${e+b*u},${t+b*c}`,this._append`A${o},${o},0,0,${+(c*f>u*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,u=t+l,c=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>xD||Math.abs(this._y1-u)>xD)&&this._append`L${s},${u}`,n&&(d<0&&(d=d%wD+wD),d>CD?this._append`A${n},${n},0,1,${c},${e-a},${t-l}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:d>xD&&this._append`A${n},${n},0,${+(d>=bD)},${c},${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 ED(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 kD(t)}function OD(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function DD(e){this._context=e}function jD(e){return new DD(e)}function PD(e){return e[0]}function TD(e){return e[1]}function MD(e,t){var n=pD(!0),r=null,o=jD,i=null,a=ED(l);function l(l){var s,u,c,d=(l=OD(l)).length,f=!1;for(null==r&&(i=o(c=a())),s=0;s<=d;++s)!(s<d&&n(u=l[s],s,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(u,s,l),+t(u,s,l));if(c)return i=null,c+""||null}return e="function"==typeof e?e:void 0===e?PD:pD(e),t="function"==typeof t?t:void 0===t?TD:pD(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:pD(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:pD(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:pD(!!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 AD(e,t,n){var r=null,o=pD(!0),i=null,a=jD,l=null,s=ED(u);function u(u){var c,d,f,p,h,g=(u=OD(u)).length,m=!1,v=new Array(g),y=new Array(g);for(null==i&&(l=a(h=s())),c=0;c<=g;++c){if(!(c<g&&o(p=u[c],c,u))===m)if(m=!m)d=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=c-1;f>=d;--f)l.point(v[f],y[f]);l.lineEnd(),l.areaEnd()}m&&(v[c]=+e(p,c,u),y[c]=+t(p,c,u),l.point(r?+r(p,c,u):v[c],n?+n(p,c,u):y[c]))}if(h)return l=null,h+""||null}function c(){return MD().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?PD:pD(+e),t="function"==typeof t?t:pD(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?TD:pD(+n),u.x=function(t){return arguments.length?(e="function"==typeof t?t:pD(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:pD(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:pD(+e),u):r},u.y=function(e){return arguments.length?(t="function"==typeof e?e:pD(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:pD(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:pD(+e),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:pD(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),u):i},u}DD.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 _D{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 RD={draw(e,t){const n=mD(t/vD);e.moveTo(n,0),e.arc(0,0,n,0,yD)}},LD={draw(e,t){const n=mD(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 ID=mD(1/3),ND=2*ID;var $D={draw(e,t){const n=mD(t/ND),r=n*ID;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},zD={draw(e,t){const n=mD(t),r=-n/2;e.rect(r,r,n,n)}};const FD=gD(vD/10)/gD(7*vD/10),BD=gD(yD/10)*FD,KD=-hD(yD/10)*FD;var VD={draw(e,t){const n=mD(.8908130915292852*t),r=BD*n,o=KD*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=yD*t/5,a=hD(i),l=gD(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}};const HD=mD(3);var UD={draw(e,t){const n=-mD(t/(3*HD));e.moveTo(0,2*n),e.lineTo(-HD*n,-n),e.lineTo(HD*n,-n),e.closePath()}};const WD=-.5,ZD=mD(3)/2,qD=1/mD(12),GD=3*(qD/2+1);var YD={draw(e,t){const n=mD(t/GD),r=n/2,o=n*qD,i=r,a=n*qD+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(WD*r-ZD*o,ZD*r+WD*o),e.lineTo(WD*i-ZD*a,ZD*i+WD*a),e.lineTo(WD*l-ZD*s,ZD*l+WD*s),e.lineTo(WD*r+ZD*o,WD*o-ZD*r),e.lineTo(WD*i+ZD*a,WD*a-ZD*i),e.lineTo(WD*l+ZD*s,WD*s-ZD*l),e.closePath()}};function XD(){}function JD(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 QD(e){this._context=e}function ej(e){this._context=e}function tj(e){this._context=e}function nj(e){this._context=e}function rj(e){return e<0?-1:1}function oj(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(rj(i)+rj(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function ij(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aj(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 lj(e){this._context=e}function sj(e){this._context=new uj(e)}function uj(e){this._context=e}function cj(e){this._context=e}function dj(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 fj(e,t){this._context=e,this._t=t}function pj(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 hj(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function gj(e,t){return e[t]}function mj(e){const t=[];return t.key=e,t}function vj(e){return vj="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},vj(e)}QD.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:JD(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:JD(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ej.prototype={areaStart:XD,areaEnd:XD,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:JD(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},tj.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:JD(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},nj.prototype={areaStart:XD,areaEnd:XD,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))}},lj.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:aj(this,this._t0,ij(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,aj(this,ij(this,n=oj(this,e,t)),n);break;default:aj(this,this._t0,n=oj(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(sj.prototype=Object.create(lj.prototype)).point=function(e,t){lj.prototype.point.call(this,t,e)},uj.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)}},cj.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=dj(e),o=dj(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)}},fj.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 yj=["type","size","sizeType"];function bj(){return bj=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},bj.apply(this,arguments)}function wj(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 xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wj(Object(n),!0).forEach((function(t){Cj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vj(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 Sj(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 kj={symbolCircle:RD,symbolCross:LD,symbolDiamond:$D,symbolSquare:zD,symbolStar:VD,symbolTriangle:UD,symbolWye:YD},Ej=Math.PI/180,Oj=function(e){var n,r,o=e.type,i=void 0===o?"circle":o,a=e.size,l=void 0===a?64:a,s=e.sizeType,u=void 0===s?"area":s,c=xj(xj({},Sj(e,yj)),{},{type:i,size:l,sizeType:u}),d=c.className,f=c.cx,p=c.cy,h=kO(c,!0);return f===+f&&p===+p&&l===+l?t.createElement("path",bj({},h,{className:Mr("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:(n=function(e){var t="symbol".concat(fD(e));return kj[t]||RD}(i),r=function(e,t){let n=null,r=ED(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:pD(e||RD),t="function"==typeof t?t:pD(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:pD(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:pD(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(n).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*Ej;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,u,i)),r())})):null};function Dj(e){return Dj="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},Dj(e)}function jj(){return jj=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},jj.apply(this,arguments)}function Pj(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 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,Ij(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mj(e,t,n){return t=_j(t),function(e,t){if(t&&("object"===Dj(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,Aj()?Reflect.construct(t,n||[],_j(e).constructor):t.apply(e,n))}function Aj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Aj=function(){return!!e})()}function _j(e){return _j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_j(e)}function Rj(e,t){return Rj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rj(e,t)}function Lj(e,t,n){return(t=Ij(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ij(e){var t=function(e,t){if("object"!=Dj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Dj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dj(t)?t:String(t)}Oj.registerSymbol=function(e,t){kj["symbol".concat(fD(e))]=t};var Nj=32,$j=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Mj(this,n,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&&Rj(e,t)}(n,t.PureComponent),Tj(n,[{key:"renderIcon",value:function(e){var n=this.props.inactiveColor,r=16,o=Nj/6,i=Nj/3,a=e.inactive?n:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Nj,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Nj,"M").concat(2*i,",").concat(r,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Nj,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pj(Object(n),!0).forEach((function(t){Lj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete l.legendIcon,t.cloneElement(e.legendIcon,l)}return t.createElement(Oj,{fill:a,cx:r,cy:r,size:Nj,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,n=this.props,r=n.payload,o=n.iconSize,i=n.layout,a=n.formatter,l=n.inactiveColor,s={x:0,y:0,width:Nj,height:Nj},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(n,r){var i=n.formatter||a,d=Mr(Lj(Lj({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",n.inactive));if("none"===n.type)return null;var f=NS(n.value)?null:n.value;NO(!NS(n.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=n.inactive?l:n.color;return t.createElement("li",jj({className:d,style:u,key:"legend-item-".concat(r)},cO(e.props,n,r)),t.createElement(MO,{width:o,height:o,viewBox:s,style:c},e.renderIcon(n)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,n,r):f))}))}},{key:"render",value:function(){var e=this.props,n=e.payload,r=e.layout,o=e.align;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}]),n}();Lj($j,"displayName","Legend"),Lj($j,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var zj=Lk;var Fj=Lk,Bj=Ik,Kj=Jk;var Vj=Lk,Hj=function(){this.__data__=new zj,this.size=0},Uj=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Wj=function(e){return this.__data__.get(e)},Zj=function(e){return this.__data__.has(e)},qj=function(e,t){var n=this.__data__;if(n instanceof Fj){var r=n.__data__;if(!Bj||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kj(r)}return n.set(e,t),this.size=n.size,this};function Gj(e){var t=this.__data__=new Vj(e);this.size=t.size}Gj.prototype.clear=Hj,Gj.prototype.delete=Uj,Gj.prototype.get=Wj,Gj.prototype.has=Zj,Gj.prototype.set=qj;var Yj=Gj;var Xj=Jk,Jj=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Qj=function(e){return this.__data__.has(e)};function eP(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xj;++t<n;)this.add(e[t])}eP.prototype.add=eP.prototype.push=Jj,eP.prototype.has=Qj;var tP=eP;var nP=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 rP=function(e,t){return e.has(t)},oP=tP,iP=nP,aP=rP;var lP=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 u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new oP: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(!iP(t,(function(e,t){if(!aP(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 sP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var uP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},cP=uS.Uint8Array,dP=xk,fP=lP,pP=sP,hP=uP,gP=cS?cS.prototype:void 0,mP=gP?gP.valueOf:void 0;var vP=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 cP(e),new cP(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return dP(+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=pP;case"[object Set]":var s=1&r;if(l||(l=hP),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=fP(l(e),l(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(mP)return mP.call(e)==mP.call(t)}return!1};var yP=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},bP=yP,wP=iS;var xP=function(e,t,n){var r=t(e);return wP(e)?r:bP(r,n(e))};var CP=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 SP=CP,kP=function(){return[]},EP=Object.prototype.propertyIsEnumerable,OP=Object.getOwnPropertySymbols,DP=OP?function(e){return null==e?[]:(e=Object(e),SP(OP(e),(function(t){return EP.call(e,t)})))}:kP,jP=DP;var PP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},TP=xS,MP=CS;var AP=function(e){return MP(e)&&"[object Arguments]"==TP(e)},_P=CS,RP=Object.prototype,LP=RP.hasOwnProperty,IP=RP.propertyIsEnumerable,NP=AP(function(){return arguments}())?AP:function(e){return _P(e)&&LP.call(e,"callee")&&!IP.call(e,"callee")},$P={exports:{}};var zP=function(){return!1};!function(e,t){var n=uS,r=zP,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}($P,$P.exports);var FP=$P.exports,BP=/^(?:0|[1-9]\d*)$/;var KP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&BP.test(e))&&e>-1&&e%1==0&&e<t};var VP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},HP=xS,UP=VP,WP=CS,ZP={};ZP["[object Float32Array]"]=ZP["[object Float64Array]"]=ZP["[object Int8Array]"]=ZP["[object Int16Array]"]=ZP["[object Int32Array]"]=ZP["[object Uint8Array]"]=ZP["[object Uint8ClampedArray]"]=ZP["[object Uint16Array]"]=ZP["[object Uint32Array]"]=!0,ZP["[object Arguments]"]=ZP["[object Array]"]=ZP["[object ArrayBuffer]"]=ZP["[object Boolean]"]=ZP["[object DataView]"]=ZP["[object Date]"]=ZP["[object Error]"]=ZP["[object Function]"]=ZP["[object Map]"]=ZP["[object Number]"]=ZP["[object Object]"]=ZP["[object RegExp]"]=ZP["[object Set]"]=ZP["[object String]"]=ZP["[object WeakMap]"]=!1;var qP=function(e){return WP(e)&&UP(e.length)&&!!ZP[HP(e)]};var GP=function(e){return function(t){return e(t)}},YP={exports:{}};!function(e,t){var n=aS,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}(YP,YP.exports);var XP=YP.exports,JP=qP,QP=GP,eT=XP&&XP.isTypedArray,tT=eT?QP(eT):JP,nT=PP,rT=NP,oT=iS,iT=FP,aT=KP,lT=tT,sT=Object.prototype.hasOwnProperty;var uT=function(e,t){var n=oT(e),r=!n&&rT(e),o=!n&&!r&&iT(e),i=!n&&!r&&!o&&lT(e),a=n||r||o||i,l=a?nT(e.length,String):[],s=l.length;for(var u in e)!t&&!sT.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||aT(u,s))||l.push(u);return l},cT=Object.prototype;var dT=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||cT)};var fT=function(e,t){return function(n){return e(t(n))}},pT=fT(Object.keys,Object),hT=dT,gT=pT,mT=Object.prototype.hasOwnProperty;var vT=function(e){if(!hT(e))return gT(e);var t=[];for(var n in Object(e))mT.call(e,n)&&"constructor"!=n&&t.push(n);return t},yT=IS,bT=VP;var wT=function(e){return null!=e&&bT(e.length)&&!yT(e)},xT=uT,CT=vT,ST=wT;var kT=function(e){return ST(e)?xT(e):CT(e)},ET=xP,OT=jP,DT=kT;var jT=function(e){return ET(e,DT,OT)},PT=jT,TT=Object.prototype.hasOwnProperty;var MT=function(e,t,n,r,o,i){var a=1&n,l=PT(e),s=l.length;if(s!=PT(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:TT.call(t,c)))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;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,i):r(g,m,c,e,t,i);if(!(void 0===v?g===m||o(g,m,n,r,i):v)){p=!1;break}h||(h="constructor"==c)}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},AT=nk(uS,"DataView"),_T=nk(uS,"Promise"),RT=nk(uS,"Set"),LT=AT,IT=Ik,NT=_T,$T=RT,zT=nk(uS,"WeakMap"),FT=xS,BT=KS,KT="[object Map]",VT="[object Promise]",HT="[object Set]",UT="[object WeakMap]",WT="[object DataView]",ZT=BT(LT),qT=BT(IT),GT=BT(NT),YT=BT($T),XT=BT(zT),JT=FT;(LT&&JT(new LT(new ArrayBuffer(1)))!=WT||IT&&JT(new IT)!=KT||NT&&JT(NT.resolve())!=VT||$T&&JT(new $T)!=HT||zT&&JT(new zT)!=UT)&&(JT=function(e){var t=FT(e),n="[object Object]"==t?e.constructor:void 0,r=n?BT(n):"";if(r)switch(r){case ZT:return WT;case qT:return KT;case GT:return VT;case YT:return HT;case XT:return UT}return t});var QT=Yj,eM=lP,tM=vP,nM=MT,rM=JT,oM=iS,iM=FP,aM=tT,lM="[object Arguments]",sM="[object Array]",uM="[object Object]",cM=Object.prototype.hasOwnProperty;var dM=function(e,t,n,r,o,i){var a=oM(e),l=oM(t),s=a?sM:rM(e),u=l?sM:rM(t),c=(s=s==lM?uM:s)==uM,d=(u=u==lM?uM:u)==uM,f=s==u;if(f&&iM(e)){if(!iM(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new QT),a||aM(e)?eM(e,t,n,r,o,i):tM(e,t,s,n,r,o,i);if(!(1&n)){var p=c&&cM.call(e,"__wrapped__"),h=d&&cM.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new QT),o(g,m,n,r,i)}}return!!f&&(i||(i=new QT),nM(e,t,n,r,o,i))},fM=dM,pM=CS;var hM=function e(t,n,r,o,i){return t===n||(null==t||null==n||!pM(t)&&!pM(n)?t!=t&&n!=n:fM(t,n,r,o,e,i))},gM=Yj,mM=hM;var vM=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],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new gM;if(r)var f=r(u,c,s,e,t,d);if(!(void 0===f?mM(c,u,3,r,d):f))return!1}}return!0},yM=MS;var bM=function(e){return e==e&&!yM(e)},wM=bM,xM=kT;var CM=function(e){for(var t=xM(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wM(o)]}return t};var SM=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},kM=vM,EM=CM,OM=SM;var DM=function(e){var t=EM(e);return 1==t.length&&t[0][2]?OM(t[0][0],t[0][1]):function(n){return n===e||kM(n,e,t)}};var jM=function(e,t){return null!=e&&t in Object(e)},PM=xE,TM=NP,MM=iS,AM=KP,_M=VP,RM=SE;var LM=function(e,t,n){for(var r=-1,o=(t=PM(t,e)).length,i=!1;++r<o;){var a=RM(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&_M(o)&&AM(a,o)&&(MM(e)||TM(e))},IM=jM,NM=LM;var $M=function(e,t){return null!=e&&NM(e,t,IM)},zM=hM,FM=jE,BM=$M,KM=TS,VM=bM,HM=SM,UM=SE;var WM=function(e,t){return KM(e)&&VM(t)?HM(UM(e),t):function(n){var r=FM(n,e);return void 0===r&&r===t?BM(n,e):zM(t,r,3)}};var ZM=function(e){return e};var qM=function(e){return function(t){return null==t?void 0:t[e]}},GM=OE;var YM=function(e){return function(t){return GM(t,e)}},XM=qM,JM=YM,QM=TS,eA=SE;var tA=DM,nA=WM,rA=ZM,oA=iS,iA=function(e){return QM(e)?XM(eA(e)):JM(e)};var aA=function(e){return"function"==typeof e?e:null==e?rA:"object"==typeof e?oA(e)?nA(e[0],e[1]):tA(e):iA(e)};var lA=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 sA=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},uA=lA,cA=function(e){return e!=e},dA=sA;var fA=function(e,t,n){return t==t?dA(e,t,n):uA(e,cA,n)},pA=fA;var hA=function(e,t){return!!(null==e?0:e.length)&&pA(e,t,0)>-1};var gA=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 mA=RT,vA=function(){},yA=mA&&1/uP(new mA([,-0]))[1]==1/0?function(e){return new mA(e)}:vA,bA=tP,wA=hA,xA=gA,CA=rP,SA=yA,kA=uP;var EA=function(e,t,n){var r=-1,o=wA,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=xA;else if(i>=200){var u=t?null:SA(e);if(u)return kA(u);a=!1,o=CA,s=new bA}else s=t?[]:l;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l},OA=aA,DA=EA;var jA=function(e,t){return e&&e.length?DA(e,OA(t)):[]},PA=_o(jA);function TA(e,t,n){return!0===t?PA(e,n):NS(t)?PA(e,t):e}function MA(e){return MA="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},MA(e)}var AA=["ref"];function _A(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 RA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_A(Object(n),!0).forEach((function(t){BA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LA(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,KA(r.key),r)}}function IA(e,t,n){return t=$A(t),function(e,t){if(t&&("object"===MA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zA(e)}(e,NA()?Reflect.construct(t,n||[],$A(e).constructor):t.apply(e,n))}function NA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NA=function(){return!!e})()}function $A(e){return $A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$A(e)}function zA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FA(e,t){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FA(e,t)}function BA(e,t,n){return(t=KA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KA(e){var t=function(e,t){if("object"!=MA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=MA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MA(t)?t:String(t)}function VA(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 HA(e){return e.value}var UA=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return BA(zA(e=IA(this,n,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var r,o,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&&FA(e,t)}(n,t.PureComponent),r=n,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&GE(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(o=[{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?RA({},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,u=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:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),RA(RA({},t),n)}},{key:"render",value:function(){var e=this,n=this.props,r=n.content,o=n.width,i=n.height,a=n.wrapperStyle,l=n.payloadUniqBy,s=n.payload,u=RA(RA({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if("function"==typeof e)return t.createElement(e,n);n.ref;var r=VA(n,AA);return t.createElement($j,r)}(r,RA(RA({},this.props),{},{payload:TA(s,l,HA)})))}}])&&LA(r.prototype,o),i&&LA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();BA(UA,"displayName","Legend"),BA(UA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var WA=NP,ZA=iS,qA=cS?cS.isConcatSpreadable:void 0;var GA=yP,YA=function(e){return ZA(e)||WA(e)||!!(qA&&e&&e[qA])};var XA=function e(t,n,r,o,i){var a=-1,l=t.length;for(r||(r=YA),i||(i=[]);++a<l;){var s=t[a];n>0&&r(s)?n>1?e(s,n-1,r,o,i):GA(i,s):o||(i[i.length]=s)}return i};var JA=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}},QA=JA(),e_=kT;var t_=function(e,t){return e&&QA(e,t,e_)},n_=wT;var r_=function(e,t){return function(n,r){if(null==n)return n;if(!n_(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}}(t_),o_=r_,i_=wT;var a_=function(e,t){var n=-1,r=i_(e)?Array(e.length):[];return o_(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var l_=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},s_=ES;var u_=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=s_(e),a=void 0!==t,l=null===t,s=t==t,u=s_(t);if(!l&&!u&&!i&&e>t||i&&a&&s&&!l&&!u||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!s)return-1}return 0};var c_=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=u_(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index},d_=sE,f_=OE,p_=aA,h_=a_,g_=l_,m_=GP,v_=c_,y_=ZM,b_=iS;var w_=function(e,t,n){t=t.length?d_(t,(function(e){return b_(e)?function(t){return f_(t,1===e.length?e[0]:e)}:e})):[y_];var r=-1;t=d_(t,m_(p_));var o=h_(e,(function(e,n,o){return{criteria:d_(t,(function(t){return t(e)})),index:++r,value:e}}));return g_(o,(function(e,t){return v_(e,t,n)}))};var x_=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)},C_=x_,S_=Math.max;var k_=function(e,t,n){return t=S_(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=S_(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),C_(e,this,l)}};var E_=function(e){return function(){return e}},O_=nk,D_=function(){try{var e=O_(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),j_=E_,P_=D_,T_=P_?function(e,t){return P_(e,"toString",{configurable:!0,enumerable:!1,value:j_(t),writable:!0})}:ZM,M_=T_,A_=Date.now;var __=function(e){var t=0,n=0;return function(){var r=A_(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},R_=__(M_),L_=ZM,I_=k_,N_=R_;var $_=xk,z_=wT,F_=KP,B_=MS;var K_=function(e,t,n){if(!B_(n))return!1;var r=typeof t;return!!("number"==r?z_(n)&&F_(t,n.length):"string"==r&&t in n)&&$_(n[t],e)},V_=XA,H_=w_,U_=K_,W_=_o(function(e,t){return N_(I_(e,t,L_),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&U_(e,t[0],t[1])?t=[]:n>2&&U_(t[0],t[1],t[2])&&(t=[t[0]]),H_(e,V_(t,1),[])})));function Z_(e){return Z_="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},Z_(e)}function q_(){return q_=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},q_.apply(this,arguments)}function G_(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Y_(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 Y_(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 Y_(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 X_(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 J_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X_(Object(n),!0).forEach((function(t){Q_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q_(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Z_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Z_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z_(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 eR(e){return Array.isArray(e)&&YE(e[0])&&YE(e[1])?e.join(" ~ "):e}var tR=function(e){var n=e.separator,r=void 0===n?" : ":n,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,l=void 0===a?{}:a,s=e.labelStyle,u=void 0===s?{}:s,c=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=J_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=J_({margin:0},u),x=!TE(g),C=x?g:"",S=Mr("recharts-default-tooltip",p),k=Mr("recharts-tooltip-label",h);x&&m&&null!=c&&(C=m(g,c));var E=y?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",q_({className:S,style:b},E),t.createElement("p",{className:k,style:w},t.isValidElement(C)?C:"".concat(C)),function(){if(c&&c.length){var e=(f?W_(c,f):c).map((function(e,n){if("none"===e.type)return null;var o=J_({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},l),i=e.formatter||d||eR,a=e.value,s=e.name,u=a,f=s;if(i&&null!=u&&null!=f){var p=i(a,s,e,n,c);if(Array.isArray(p)){var h=G_(p,2);u=h[0],f=h[1]}else u=p}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:o},YE(f)?t.createElement("span",{className:"recharts-tooltip-item-name"},f):null,YE(f)?t.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,t.createElement("span",{className:"recharts-tooltip-item-value"},u),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function nR(e){return nR="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},nR(e)}function rR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=nR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nR(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 oR="recharts-tooltip-wrapper",iR={visibility:"hidden"};function aR(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Mr(oR,rR(rR(rR(rR({},"".concat(oR,"-right"),GE(n)&&t&&GE(t.x)&&n>=t.x),"".concat(oR,"-left"),GE(n)&&t&&GE(t.x)&&n<t.x),"".concat(oR,"-bottom"),GE(r)&&t&&GE(t.y)&&r>=t.y),"".concat(oR,"-top"),GE(r)&&t&&GE(t.y)&&r<t.y))}function lR(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,u=e.viewBoxDimension;if(i&&GE(i[r]))return i[r];var c=n[r]-l-o,d=n[r]+o;return t[r]?a[r]?c:d:a[r]?c<s[r]?Math.max(d,s[r]):Math.max(c,s[r]):d+l>s[r]+u?Math.max(c,s[r]):Math.max(d,s[r])}function sR(e){return sR="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},sR(e)}function uR(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 cR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uR(Object(n),!0).forEach((function(t){vR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dR(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,yR(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fR(e,t,n){return t=hR(t),function(e,t){if(t&&("object"===sR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gR(e)}(e,pR()?Reflect.construct(t,n||[],hR(e).constructor):t.apply(e,n))}function pR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pR=function(){return!!e})()}function hR(e){return hR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hR(e)}function gR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mR(e,t){return mR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mR(e,t)}function vR(e,t,n){return(t=yR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yR(e){var t=function(e,t){if("object"!=sR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sR(t)?t:String(t)}var bR=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return vR(gR(e=fR(this,n,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),vR(gR(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&&mR(e,t)}(n,t.PureComponent),dR(n,[{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,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,l=n.children,s=n.coordinate,u=n.hasPayload,c=n.isAnimationActive,d=n.offset,f=n.position,p=n.reverseDirection,h=n.useTranslate3d,g=n.viewBox,m=n.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,u=e.useTranslate3d,c=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=lR({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),translateY:n=lR({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),useTranslate3d:u}):iR,cssClasses:aR({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:o,coordinate:s,offsetTopLeft:d,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}),y=v.cssClasses,b=v.cssProperties,w=cR(cR({transition:c&&r?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},m);return t.createElement("div",{tabIndex:-1,className:y,style:w,ref:function(t){e.wrapperNode=t}},l)}}]),n}(),wR={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return wR[e]},set:function(e,t){if("string"==typeof e)wR[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){wR[t]=e[t]}))}}};function xR(e){return xR="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},xR(e)}function CR(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 SR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CR(Object(n),!0).forEach((function(t){PR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kR(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,TR(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ER(e,t,n){return t=DR(t),function(e,t){if(t&&("object"===xR(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,OR()?Reflect.construct(t,n||[],DR(e).constructor):t.apply(e,n))}function OR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OR=function(){return!!e})()}function DR(e){return DR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DR(e)}function jR(e,t){return jR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jR(e,t)}function PR(e,t,n){return(t=TR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){var t=function(e,t){if("object"!=xR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xR(t)?t:String(t)}function MR(e){return e.dataKey}var AR=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ER(this,n,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&&jR(e,t)}(n,t.PureComponent),kR(n,[{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,l=n.content,s=n.coordinate,u=n.filterNull,c=n.isAnimationActive,d=n.offset,f=n.payload,p=n.payloadUniqBy,h=n.position,g=n.reverseDirection,m=n.useTranslate3d,v=n.viewBox,y=n.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=TA(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,MR));var w=b.length>0;return t.createElement(bR,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:c,active:r,coordinate:s,hasPayload:w,offset:d,position:h,reverseDirection:g,useTranslate3d:m,viewBox:v,wrapperStyle:y},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):"function"==typeof e?t.createElement(e,n):t.createElement(tR,n)}(l,SR(SR({},this.props),{},{payload:b})))}}]),n}();PR(AR,"displayName","Tooltip"),PR(AR,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!wR.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 _R=uS,RR=/\s/;var LR=function(e){for(var t=e.length;t--&&RR.test(e.charAt(t)););return t},IR=LR,NR=/^\s+/;var $R=function(e){return e?e.slice(0,IR(e)+1).replace(NR,""):e},zR=$R,FR=MS,BR=ES,KR=/^[-+]0x[0-9a-f]+$/i,VR=/^0b[01]+$/i,HR=/^0o[0-7]+$/i,UR=parseInt;var WR=function(e){if("number"==typeof e)return e;if(BR(e))return NaN;if(FR(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=FR(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zR(e);var n=VR.test(e);return n||HR.test(e)?UR(e.slice(2),n?2:8):KR.test(e)?NaN:+e},ZR=MS,qR=function(){return _R.Date.now()},GR=WR,YR=Math.max,XR=Math.min;var JR=function(e,t,n){var r,o,i,a,l,s,u=0,c=!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,u=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=i}function g(){var e=qR();if(h(e))return m(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?XR(n,i-(e-u)):n}(e))}function m(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=qR(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(g,t),c?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=GR(t)||0,ZR(n)&&(c=!!n.leading,i=(d="maxWait"in n)?YR(GR(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:m(qR())},v},QR=JR,eL=MS;var tL=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return eL(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),QR(e,t,{leading:r,maxWait:t,trailing:o})},nL=_o(tL);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 oL(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 iL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oL(Object(n),!0).forEach((function(t){aL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aL(e,t,n){return t=function(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)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lL(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)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}var uL=t.forwardRef((function(e,n){var r=e.aspect,o=e.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=e.width,l=void 0===a?"100%":a,s=e.height,u=void 0===s?"100%":s,c=e.minWidth,d=void 0===c?0:c,f=e.minHeight,p=e.maxHeight,h=e.children,g=e.debounce,m=void 0===g?0:g,v=e.id,y=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,C=t.useRef(null),S=t.useRef();S.current=b,t.useImperativeHandle(n,(function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})}));var k=lL(t.useState({containerWidth:i.width,containerHeight:i.height}),2),E=k[0],O=k[1],D=t.useCallback((function(e,t){O((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);t.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;D(r,o),null===(t=S.current)||void 0===t||t.call(S,r,o)};m>0&&(e=nL(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect(),r=n.width,o=n.height;return D(r,o),t.observe(C.current),function(){t.disconnect()}}),[D,m]);var j=t.useMemo((function(){var e=E.containerWidth,n=E.containerHeight;if(e<0||n<0)return null;NO(qE(l)||qE(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,u),NO(!r||r>0,"The aspect(%s) must be greater than zero.",r);var o=qE(l)?e:l,i=qE(u)?n:u;r&&r>0&&(o?i=o/r:i&&(o=i*r),p&&i>p&&(i=p)),NO(o>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.",o,i,l,u,d,f,r);var a=!Array.isArray(h)&&FE.isElement(h)&&mO(h.type).endsWith("Chart");return t.Children.map(h,(function(e){return FE.isElement(e)?t.cloneElement(e,iL({width:o,height:i},a?{style:iL({height:"100%",width:"100%",maxHeight:i,maxWidth:o},e.props.style)}:{})):e}))}),[r,h,u,p,f,d,E,l]);return t.createElement("div",{id:v?"".concat(v):void 0,className:Mr("recharts-responsive-container",y),style:iL(iL({},x),{},{width:l,height:u,minWidth:d,minHeight:f,maxHeight:p}),ref:C},j)})),cL=function(e){return null};function dL(e){return dL="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},dL(e)}function fL(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 pL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fL(Object(n),!0).forEach((function(t){hL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=dL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cL.displayName="Cell";var gL={widthCache:{},cacheCount:0},mL={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vL="recharts_measurement_span";var yL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||wR.isSsr)return{width:0,height:0};var n,r=(n=pL({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(gL.widthCache[o])return gL.widthCache[o];try{var i=document.getElementById(vL);i||((i=document.createElement("span")).setAttribute("id",vL),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=pL(pL({},mL),r);Object.assign(i.style,a),i.textContent="".concat(e);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return gL.widthCache[o]=s,++gL.cacheCount>2e3&&(gL.cacheCount=0,gL.widthCache={}),s}catch(e){return{width:0,height:0}}};function bL(e){return bL="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},bL(e)}function wL(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xL(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 xL(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 xL(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 CL(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,SL(r.key),r)}}function SL(e){var t=function(e,t){if("object"!=bL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=bL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==bL(t)?t:String(t)}var kL=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,EL=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,OL=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,DL=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,jL={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},PL=Object.keys(jL),TL="NaN";var ML=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||OL.test(n)||(this.num=NaN,this.unit=""),PL.includes(n)&&(this.num=function(e,t){return e*jL[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=wL(null!==(n=DL.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)}}])&&CL(t.prototype,n),r&&CL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function AL(e){if(e.includes(TL))return TL;for(var t=e;t.includes("*")||t.includes("/");){var n,r=wL(null!==(n=kL.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],l=ML.parse(null!=o?o:""),s=ML.parse(null!=a?a:""),u="*"===i?l.multiply(s):l.divide(s);if(u.isNaN())return TL;t=t.replace(kL,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=wL(null!==(c=EL.exec(t))&&void 0!==c?c:[],4),f=d[1],p=d[2],h=d[3],g=ML.parse(null!=f?f:""),m=ML.parse(null!=h?h:""),v="+"===p?g.add(m):g.subtract(m);if(v.isNaN())return TL;t=t.replace(EL,v.toString())}return t}var _L=/\(([^()]*)\)/;function RL(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=wL(_L.exec(t),2)[1];t=t.replace(_L,AL(n))}return t}(t),t=AL(t)}function LL(e){var t=function(e){try{return RL(e)}catch(e){return TL}}(e.slice(5,-1));return t===TL?"":t}var IL=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],NL=["dx","dy","angle","className","breakAll"];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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$L.apply(this,arguments)}function zL(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 FL(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return BL(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 BL(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 BL(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 KL=/[ \f\n\r\t\v\u2028\u2029]+/,VL=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return TE(t)||(o=n?t.toString().split(""):t.toString().split(KL)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:yL(e,r).width}})),spaceWidth:n?0:yL(" ",r).width}}catch(e){return null}},HL=function(e){return[{words:TE(e)?[]:e.toString().split(KL)}]},UL=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!wR.isSsr){var l=VL({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,u=GE(i),c=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(!u)return f;for(var p,h=function(e){var t=c.slice(0,e),n=VL({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=c.length-1,v=0;g<=m&&v<=c.length-1;){var y=Math.floor((g+m)/2),b=FL(h(y-1),2),w=b[0],x=b[1],C=FL(h(y),1)[0];if(w||C||(g=y+1),w&&C&&(m=y-1),!w&&C){p=x;break}v++}return p||f}({breakAll:i,children:r,maxLines:a,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):HL(r)}return HL(r)},WL="#808080",ZL=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.lineHeight,l=void 0===a?"1em":a,s=e.capHeight,u=void 0===s?"0.71em":s,c=e.scaleToFit,d=void 0!==c&&c,f=e.textAnchor,p=void 0===f?"start":f,h=e.verticalAnchor,g=void 0===h?"end":h,m=e.fill,v=void 0===m?WL:m,y=zL(e,IL),b=t.useMemo((function(){return UL({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:d,style:y.style,width:y.width})}),[y.breakAll,y.children,y.maxLines,d,y.style,y.width]),w=y.dx,x=y.dy,C=y.angle,S=y.className,k=y.breakAll,E=zL(y,NL);if(!YE(r)||!YE(i))return null;var O,D=r+(GE(w)?w:0),j=i+(GE(x)?x:0);switch(g){case"start":O=LL("calc(".concat(u,")"));break;case"middle":O=LL("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:O=LL("calc(".concat(b.length-1," * -").concat(l,")"))}var P=[];if(d){var T=b[0].width,M=y.width;P.push("scale(".concat((GE(M)?M/T:1)/T,")"))}return C&&P.push("rotate(".concat(C,", ").concat(D,", ").concat(j,")")),P.length&&(E.transform=P.join(" ")),t.createElement("text",$L({},kO(E,!0),{x:D,y:j,className:Mr("recharts-text",S),textAnchor:p,fill:v.includes("url")?WL:v}),b.map((function(e,n){var r=e.words.join(k?"":" ");return t.createElement("tspan",{x:D,dy:0===n?O:l,key:r},r)})))};function qL(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function GL(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function YL(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=qL,n=(t,n)=>qL(e(t),n),r=(t,n)=>e(t)-n):(t=e===qL||e===GL?e:XL,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 XL(){return 0}function JL(e){return null===e?NaN:+e}const QL=YL(qL).right;YL(JL).center;class eI extends Map{constructor(e,t=nI){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(tI(this,e))}has(e){return super.has(tI(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 tI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function nI(e){return null!==e&&"object"==typeof e?e.valueOf():e}function rI(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const oI=Math.sqrt(50),iI=Math.sqrt(10),aI=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>=oI?10:i>=iI?5:i>=aI?2:1;let l,s,u;return o<0?(u=Math.pow(10,-o)/a,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,o)*a,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?lI(e,t,2*n):[l,s,u]}function sI(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 uI(e,t,n){return lI(e=+e,t=+t,n=+n)[2]}function cI(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?uI(t,e,n):uI(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function dI(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){let n;for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);return n}function pI(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?rI:function(e=qL){if(e===qL)return rI;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),u=.5*Math.sqrt(l*s*(i-s)/i)*(a-i/2<0?-1:1);pI(e,t,Math.max(n,Math.floor(t-a*s/i+u)),Math.min(r,Math.floor(t+(i-a)*s/i+u)),o)}const i=e[t];let a=n,l=r;for(hI(e,n,t),o(e[r],i)>0&&hI(e,n,r);a<l;){for(hI(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[n],i)?hI(e,n,l):(++l,hI(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function hI(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function gI(e,t,n=JL){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 mI(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function vI(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 yI=Symbol("implicit");function bI(){var e=new eI,t=[],n=[],r=yI;function o(o){let i=e.get(o);if(void 0===i){if(r!==yI)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 eI;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 bI(t,n).unknown(r)},mI.apply(o,arguments),o}function wI(){var e,t,n=bI().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,s=0,u=0,c=.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*u),l&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*c,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,u=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return wI(r(),[i,a]).round(l).paddingInner(s).paddingOuter(u).align(c)},mI.apply(d(),arguments)}function xI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xI(t())},e}function CI(){return xI(wI.apply(null,arguments).paddingInner(1))}function SI(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function EI(){}var OI=.7,DI=1/OI,jI="\\s*([+-]?\\d+)\\s*",PI="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",TI="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MI=/^#([0-9a-f]{3,8})$/,AI=new RegExp(`^rgb\\(${jI},${jI},${jI}\\)$`),_I=new RegExp(`^rgb\\(${TI},${TI},${TI}\\)$`),RI=new RegExp(`^rgba\\(${jI},${jI},${jI},${PI}\\)$`),LI=new RegExp(`^rgba\\(${TI},${TI},${TI},${PI}\\)$`),II=new RegExp(`^hsl\\(${PI},${TI},${TI}\\)$`),NI=new RegExp(`^hsla\\(${PI},${TI},${TI},${PI}\\)$`),$I={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 zI(){return this.rgb().formatHex()}function FI(){return this.rgb().formatRgb()}function BI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=MI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?KI(t):3===n?new UI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?VI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?VI(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=AI.exec(e))?new UI(t[1],t[2],t[3],1):(t=_I.exec(e))?new UI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=RI.exec(e))?VI(t[1],t[2],t[3],t[4]):(t=LI.exec(e))?VI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=II.exec(e))?XI(t[1],t[2]/100,t[3]/100,1):(t=NI.exec(e))?XI(t[1],t[2]/100,t[3]/100,t[4]):$I.hasOwnProperty(e)?KI($I[e]):"transparent"===e?new UI(NaN,NaN,NaN,0):null}function KI(e){return new UI(e>>16&255,e>>8&255,255&e,1)}function VI(e,t,n,r){return r<=0&&(e=t=n=NaN),new UI(e,t,n,r)}function HI(e,t,n,r){return 1===arguments.length?function(e){return e instanceof EI||(e=BI(e)),e?new UI((e=e.rgb()).r,e.g,e.b,e.opacity):new UI}(e):new UI(e,t,n,null==r?1:r)}function UI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function WI(){return`#${YI(this.r)}${YI(this.g)}${YI(this.b)}`}function ZI(){const e=qI(this.opacity);return`${1===e?"rgb(":"rgba("}${GI(this.r)}, ${GI(this.g)}, ${GI(this.b)}${1===e?")":`, ${e})`}`}function qI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function GI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function YI(e){return((e=GI(e))<16?"0":"")+e.toString(16)}function XI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new QI(e,t,n,r)}function JI(e){if(e instanceof QI)return new QI(e.h,e.s,e.l,e.opacity);if(e instanceof EI||(e=BI(e)),!e)return new QI;if(e instanceof QI)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 QI(a,l,s,e.opacity)}function QI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function eN(e){return(e=(e||0)%360)<0?e+360:e}function tN(e){return Math.max(0,Math.min(1,e||0))}function nN(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}SI(EI,BI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zI,formatHex:zI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return JI(this).formatHsl()},formatRgb:FI,toString:FI}),SI(UI,HI,kI(EI,{brighter(e){return e=null==e?DI:Math.pow(DI,e),new UI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?OI:Math.pow(OI,e),new UI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new UI(GI(this.r),GI(this.g),GI(this.b),qI(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:WI,formatHex:WI,formatHex8:function(){return`#${YI(this.r)}${YI(this.g)}${YI(this.b)}${YI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ZI,toString:ZI})),SI(QI,(function(e,t,n,r){return 1===arguments.length?JI(e):new QI(e,t,n,null==r?1:r)}),kI(EI,{brighter(e){return e=null==e?DI:Math.pow(DI,e),new QI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?OI:Math.pow(OI,e),new QI(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 UI(nN(e>=240?e-240:e+120,o,r),nN(e,o,r),nN(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new QI(eN(this.h),tN(this.s),tN(this.l),qI(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=qI(this.opacity);return`${1===e?"hsl(":"hsla("}${eN(this.h)}, ${100*tN(this.s)}%, ${100*tN(this.l)}%${1===e?")":`, ${e})`}`}}));var rN=e=>()=>e;function oN(e){return 1==(e=+e)?iN: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):rN(isNaN(t)?n:t)}}function iN(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):rN(isNaN(e)?t:e)}var aN=function e(t){var n=oN(t);function r(e,t){var r=n((e=HI(e)).r,(t=HI(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=iN(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 sN(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]=gN(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 uN(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function cN(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dN(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]=gN(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var fN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pN=new RegExp(fN.source,"g");function hN(e,t){var n,r,o,i=fN.lastIndex=pN.lastIndex=0,a=-1,l=[],s=[];for(e+="",t+="";(n=fN.exec(e))&&(r=pN.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:cN(n,r)})),i=pN.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 gN(e,t){var n,r=typeof t;return null==t||"boolean"===r?rN(t):("number"===r?cN:"string"===r?(n=BI(t))?(t=n,aN):hN:t instanceof BI?aN:t instanceof Date?uN:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?lN:Array.isArray(t)?sN:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?dN:cN)(e,t)}function mN(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function vN(e,t){void 0===t&&(t=e,e=gN);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 yN(e){return+e}var bN=[0,1];function wN(e){return e}function xN(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function CN(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=xN(o,r),i=n(a,i)):(r=xN(r,o),i=n(i,a)),function(e){return i(r(e))}}function SN(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]=xN(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=QL(e,t,1,r)-1;return i[n](o[n](t))}}function kN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function EN(){var e,t,n,r,o,i,a=bN,l=bN,s=gN,u=wN;function c(){var e=Math.min(a.length,l.length);return u!==wN&&(u=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?SN:CN,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,s)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(l,a.map(e),cN)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,yN),c()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=mN,c()},d.clamp=function(e){return arguments.length?(u=!!e||wN,c()):u!==wN},d.interpolate=function(e){return arguments.length?(s=e,c()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function ON(){return EN()(wN,wN)}function DN(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 jN(e){return(e=DN(Math.abs(e)))?e[1]:NaN}var PN,TN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function MN(e){if(!(t=TN.exec(e)))throw new Error("invalid format: "+e);var t;return new AN({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 AN(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 _N(e,t){var n=DN(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")}MN.prototype=AN.prototype,AN.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 RN={"%":(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)=>_N(100*e,t),r:_N,s:function(e,t){var n=DN(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(PN=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")+DN(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LN(e){return e}var IN,NN,$N,zN=Array.prototype.map,FN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function BN(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?LN:(t=zN.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?LN:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(zN.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=MN(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"):RN[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:"",x=RN[y],C=/[defgprs%]/.test(y);function S(e){var o,i,s,f=b,S=w;if("c"===y)S=x(e)+S,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(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:u:"-"===d||"("===d?"":d)+f,S=("s"===y?FN[8+PN/3]:"")+S+(k&&"("===d?")":""),C)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=MN(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(jN(t)/3))),o=Math.pow(10,-r),i=FN[8+r/3];return function(e){return n(o*e)+i}}}}function KN(e,t,n,r){var o,i=cI(e,t,n);switch((r=MN(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(jN(t)/3)))-jN(Math.abs(e)))}(i,a))||(r.precision=o),$N(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,jN(t)-jN(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,-jN(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return NN(r)}function VN(e){var t=e.domain;return e.ticks=function(e){var n=t();return sI(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return KN(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],u=i[l],c=10;for(u<s&&(o=s,s=u,u=o,o=a,a=l,l=o);c-- >0;){if((o=uI(s,u,n))===r)return i[a]=s,i[l]=u,t(i);if(o>0)s=Math.floor(s/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function HN(){var e=ON();return e.copy=function(){return kN(e,HN())},mI.apply(e,arguments),VN(e)}function UN(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 WN(e){return Math.log(e)}function ZN(e){return Math.exp(e)}function qN(e){return-Math.log(-e)}function GN(e){return-Math.exp(-e)}function YN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function XN(e){return(t,n)=>-e(-t,n)}function JN(e){const t=e(WN,ZN),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?YN:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=XN(r),o=XN(o),e(qN,GN)):e(WN,ZN),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 u,c,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(u=1;u<i;++u)if(c=d<0?u/o(-d):u*o(d),!(c<a)){if(c>l)break;h.push(c)}}else for(;d<=f;++d)for(u=i-1;u>=1;--u)if(c=d>0?u/o(-d):u*o(d),!(c<a)){if(c>l)break;h.push(c)}2*h.length<p&&(h=sI(a,l,p))}else h=sI(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=MN(n)).precision||(n.trim=!0),n=NN(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(UN(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function QN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function e$(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function t$(e){var t=1,n=e(QN(t),e$(t));return n.constant=function(n){return arguments.length?e(QN(t=+n),e$(t)):t},VN(n)}function n$(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function r$(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function o$(e){return e<0?-e*e:e*e}function i$(e){var t=e(wN,wN),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(wN,wN):.5===n?e(r$,o$):e(n$(n),n$(1/n)):n},VN(t)}function a$(){var e=i$(EN());return e.copy=function(){return kN(e,a$()).exponent(e.exponent())},mI.apply(e,arguments),e}function l$(e){return Math.sign(e)*e*e}IN=BN({thousands:",",grouping:[3],currency:["$",""]}),NN=IN.format,$N=IN.formatPrefix;const s$=new Date,u$=new Date;function c$(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=>c$((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)=>(s$.setTime(+t),u$.setTime(+r),e(s$),e(u$),Math.floor(n(s$,u$))),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 d$=c$((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));d$.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?c$((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):d$:null),d$.range;const f$=1e3,p$=6e4,h$=36e5,g$=864e5,m$=6048e5,v$=2592e6,y$=31536e6,b$=c$((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*f$)}),((e,t)=>(t-e)/f$),(e=>e.getUTCSeconds()));b$.range;const w$=c$((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*f$)}),((e,t)=>{e.setTime(+e+t*p$)}),((e,t)=>(t-e)/p$),(e=>e.getMinutes()));w$.range;const x$=c$((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*p$)}),((e,t)=>(t-e)/p$),(e=>e.getUTCMinutes()));x$.range;const C$=c$((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*f$-e.getMinutes()*p$)}),((e,t)=>{e.setTime(+e+t*h$)}),((e,t)=>(t-e)/h$),(e=>e.getHours()));C$.range;const S$=c$((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*h$)}),((e,t)=>(t-e)/h$),(e=>e.getUTCHours()));S$.range;const k$=c$((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*p$)/g$),(e=>e.getDate()-1));k$.range;const E$=c$((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/g$),(e=>e.getUTCDate()-1));E$.range;const O$=c$((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/g$),(e=>Math.floor(e/g$)));function D$(e){return c$((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())*p$)/m$))}O$.range;const j$=D$(0),P$=D$(1),T$=D$(2),M$=D$(3),A$=D$(4),_$=D$(5),R$=D$(6);function L$(e){return c$((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)/m$))}j$.range,P$.range,T$.range,M$.range,A$.range,_$.range,R$.range;const I$=L$(0),N$=L$(1),$$=L$(2),z$=L$(3),F$=L$(4),B$=L$(5),K$=L$(6);I$.range,N$.range,$$.range,z$.range,F$.range,B$.range,K$.range;const V$=c$((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()));V$.range;const H$=c$((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()));H$.range;const U$=c$((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()));U$.every=e=>isFinite(e=Math.floor(e))&&e>0?c$((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,U$.range;const W$=c$((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 Z$(e,t,n,r,o,i){const a=[[b$,1,f$],[b$,5,5e3],[b$,15,15e3],[b$,30,3e4],[i,1,p$],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,h$],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,g$],[r,2,1728e5],[n,1,m$],[t,1,v$],[t,3,7776e6],[e,1,y$]];function l(t,n,r){const o=Math.abs(n-t)/r,i=YL((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(cI(t/y$,n/y$,r));if(0===i)return d$.every(Math.max(cI(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]}W$.every=e=>isFinite(e=Math.floor(e))&&e>0?c$((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,W$.range;const[q$,G$]=Z$(W$,H$,I$,O$,S$,x$),[Y$,X$]=Z$(U$,V$,j$,k$,C$,w$);function J$(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 Q$(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 ez(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var tz,nz,rz,oz={"-":"",_:" ",0:"0"},iz=/^\s*\d+/,az=/^%/,lz=/[\\^$*+?|[\]().{}]/g;function sz(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 uz(e){return e.replace(lz,"\\$&")}function cz(e){return new RegExp("^(?:"+e.map(uz).join("|")+")","i")}function dz(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function fz(e,t,n){var r=iz.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function pz(e,t,n){var r=iz.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function hz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vz(e,t,n){var r=iz.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function yz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function bz(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 wz(e,t,n){var r=iz.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function xz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Cz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Sz(e,t,n){var r=iz.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function kz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ez(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Oz(e,t,n){var r=iz.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Dz(e,t,n){var r=iz.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jz(e,t,n){var r=iz.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pz(e,t,n){var r=az.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Tz(e,t,n){var r=iz.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Mz(e,t,n){var r=iz.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Az(e,t){return sz(e.getDate(),t,2)}function _z(e,t){return sz(e.getHours(),t,2)}function Rz(e,t){return sz(e.getHours()%12||12,t,2)}function Lz(e,t){return sz(1+k$.count(U$(e),e),t,3)}function Iz(e,t){return sz(e.getMilliseconds(),t,3)}function Nz(e,t){return Iz(e,t)+"000"}function $z(e,t){return sz(e.getMonth()+1,t,2)}function zz(e,t){return sz(e.getMinutes(),t,2)}function Fz(e,t){return sz(e.getSeconds(),t,2)}function Bz(e){var t=e.getDay();return 0===t?7:t}function Kz(e,t){return sz(j$.count(U$(e)-1,e),t,2)}function Vz(e){var t=e.getDay();return t>=4||0===t?A$(e):A$.ceil(e)}function Hz(e,t){return e=Vz(e),sz(A$.count(U$(e),e)+(4===U$(e).getDay()),t,2)}function Uz(e){return e.getDay()}function Wz(e,t){return sz(P$.count(U$(e)-1,e),t,2)}function Zz(e,t){return sz(e.getFullYear()%100,t,2)}function qz(e,t){return sz((e=Vz(e)).getFullYear()%100,t,2)}function Gz(e,t){return sz(e.getFullYear()%1e4,t,4)}function Yz(e,t){var n=e.getDay();return sz((e=n>=4||0===n?A$(e):A$.ceil(e)).getFullYear()%1e4,t,4)}function Xz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sz(t/60|0,"0",2)+sz(t%60,"0",2)}function Jz(e,t){return sz(e.getUTCDate(),t,2)}function Qz(e,t){return sz(e.getUTCHours(),t,2)}function eF(e,t){return sz(e.getUTCHours()%12||12,t,2)}function tF(e,t){return sz(1+E$.count(W$(e),e),t,3)}function nF(e,t){return sz(e.getUTCMilliseconds(),t,3)}function rF(e,t){return nF(e,t)+"000"}function oF(e,t){return sz(e.getUTCMonth()+1,t,2)}function iF(e,t){return sz(e.getUTCMinutes(),t,2)}function aF(e,t){return sz(e.getUTCSeconds(),t,2)}function lF(e){var t=e.getUTCDay();return 0===t?7:t}function sF(e,t){return sz(I$.count(W$(e)-1,e),t,2)}function uF(e){var t=e.getUTCDay();return t>=4||0===t?F$(e):F$.ceil(e)}function cF(e,t){return e=uF(e),sz(F$.count(W$(e),e)+(4===W$(e).getUTCDay()),t,2)}function dF(e){return e.getUTCDay()}function fF(e,t){return sz(N$.count(W$(e)-1,e),t,2)}function pF(e,t){return sz(e.getUTCFullYear()%100,t,2)}function hF(e,t){return sz((e=uF(e)).getUTCFullYear()%100,t,2)}function gF(e,t){return sz(e.getUTCFullYear()%1e4,t,4)}function mF(e,t){var n=e.getUTCDay();return sz((e=n>=4||0===n?F$(e):F$.ceil(e)).getUTCFullYear()%1e4,t,4)}function vF(){return"+0000"}function yF(){return"%"}function bF(e){return+e}function wF(e){return Math.floor(+e/1e3)}function xF(e){return new Date(e)}function CF(e){return e instanceof Date?+e:+new Date(+e)}function SF(e,t,n,r,o,i,a,l,s,u){var c=ON(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),y=u("%b %d"),b=u("%B"),w=u("%Y");function x(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 c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?f(Array.from(e,CF)):f().map(xF)},c.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?x:u(t)},c.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(UN(n,e)):c},c.copy=function(){return kN(c,SF(e,t,n,r,o,i,a,l,s,u))},c}function kF(){var e,t,n,r,o,i=0,a=1,l=wN,s=!1;function u(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 c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(gN),u.rangeRound=c(mN),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function EF(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function OF(){var e=i$(kF());return e.copy=function(){return EF(e,OF()).exponent(e.exponent())},vI.apply(e,arguments)}function DF(){var e,t,n,r,o,i,a,l=0,s=.5,u=1,c=1,d=wN,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(c*e<c*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=vN(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(a){return arguments.length?([l,s,u]=a,e=i(l=+l),t=i(s=+s),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p):[l,s,u]},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(gN),p.rangeRound=h(mN),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(s),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p}}function jF(){var e=i$(DF());return e.copy=function(){return EF(e,jF()).exponent(e.exponent())},vI.apply(e,arguments)}!function(e){tz=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,u=cz(o),c=dz(o),d=cz(i),f=dz(i),p=cz(a),h=dz(a),g=cz(l),m=dz(l),v=cz(s),y=dz(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:Az,e:Az,f:Nz,g:qz,G:Yz,H:_z,I:Rz,j:Lz,L:Iz,m:$z,M:zz,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:bF,s:wF,S:Fz,u:Bz,U:Kz,V:Hz,w:Uz,W:Wz,x:null,X:null,y:Zz,Y:Gz,Z:Xz,"%":yF},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:Jz,e:Jz,f:rF,g:hF,G:mF,H:Qz,I:eF,j:tF,L:nF,m:oF,M:iF,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:bF,s:wF,S:aF,u:lF,U:sF,V:cF,w:dF,W:fF,x:null,X:null,y:pF,Y:gF,Z:vF,"%":yF},x={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:Cz,e:Cz,f:jz,g:yz,G:vz,H:kz,I:kz,j:Sz,L:Dz,m:xz,M:Ez,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:wz,Q:Tz,s:Mz,S:Oz,u:pz,U:hz,V:gz,w:fz,W:mz,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:yz,Y:vz,Z:bz,"%":Pz};function C(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(o=oz[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=ez(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=Q$(ez(i.y,0,1))).getUTCDay(),r=o>4||0===o?N$.ceil(r):N$(r),r=E$.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=J$(ez(i.y,0,1))).getDay(),r=o>4||0===o?P$.ceil(r):P$(r),r=k$.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?Q$(ez(i.y,0,1)).getUTCDay():J$(ez(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,Q$(i)):J$(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=x[o in oz?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=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(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=C(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),nz=tz.format,tz.parse,rz=tz.utcFormat,tz.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 PF=Object.freeze({__proto__:null,scaleBand:wI,scaleDiverging:function e(){var t=VN(DF()(wN));return t.copy=function(){return EF(t,e())},vI.apply(t,arguments)},scaleDivergingLog:function e(){var t=JN(DF()).domain([.1,1,10]);return t.copy=function(){return EF(t,e()).base(t.base())},vI.apply(t,arguments)},scaleDivergingPow:jF,scaleDivergingSqrt:function(){return jF.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=t$(DF());return t.copy=function(){return EF(t,e()).constant(t.constant())},vI.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,yN),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,yN):[0,1],VN(r)},scaleImplicit:yI,scaleLinear:HN,scaleLog:function e(){const t=JN(EN()).domain([1,10]);return t.copy=()=>kN(t,e()).base(t.base()),mI.apply(t,arguments),t},scaleOrdinal:bI,scalePoint:CI,scalePow:a$,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]=gI(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[QL(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(qL),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)},mI.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[QL(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)},mI.apply(VN(l),arguments)},scaleRadial:function e(){var t,n=ON(),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,yN)).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)},mI.apply(i,arguments),VN(i)},scaleSequential:function e(){var t=VN(kF()(wN));return t.copy=function(){return EF(t,e())},vI.apply(t,arguments)},scaleSequentialLog:function e(){var t=JN(kF()).domain([1,10]);return t.copy=function(){return EF(t,e()).base(t.base())},vI.apply(t,arguments)},scaleSequentialPow:OF,scaleSequentialQuantile:function e(){var t=[],n=wN;function r(e){if(null!=e&&!isNaN(e=+e))return n((QL(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(qL),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 fI(e);if(t>=1)return dI(e);var r,o=(r-1)*t,i=Math.floor(o),a=dI(pI(e,i).subarray(0,i+1));return a+(fI(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},vI.apply(r,arguments)},scaleSequentialSqrt:function(){return OF.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=t$(kF());return t.copy=function(){return EF(t,e()).constant(t.constant())},vI.apply(t,arguments)},scaleSqrt:function(){return a$.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=t$(EN());return t.copy=function(){return kN(t,e()).constant(t.constant())},mI.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[QL(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)},mI.apply(i,arguments)},scaleTime:function(){return mI.apply(SF(Y$,X$,U$,V$,j$,k$,C$,w$,b$,nz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return mI.apply(SF(q$,G$,W$,H$,I$,E$,S$,x$,b$,rz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:KN}),TF=ES;var MF=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&&!TF(a):n(a,l)))var l=a,s=i}return s};var AF=function(e,t){return e>t},_F=MF,RF=AF,LF=ZM;var IF=function(e){return e&&e.length?_F(e,LF,RF):void 0},NF=_o(IF);var $F=function(e,t){return e<t},zF=MF,FF=$F,BF=ZM;var KF=function(e){return e&&e.length?zF(e,BF,FF):void 0},VF=_o(KF),HF=sE,UF=aA,WF=a_,ZF=iS;var qF=XA,GF=function(e,t){return(ZF(e)?HF:WF)(e,UF(t))};var YF=_o((function(e,t){return qF(GF(e,t),1)})),XF=hM;var JF,QF=_o((function(e,t){return XF(e,t)})),eB=1e9,tB=!0,nB="[DecimalError] ",rB=nB+"Invalid argument: ",oB=nB+"Exponent out of range: ",iB=Math.floor,aB=Math.pow,lB=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sB=1e7,uB=7,cB=9007199254740991,dB=iB(cB/uB),fB={};function pB(e,t){var n,r,o,i,a,l,s,u,c=e.constructor,d=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),tB?SB(t,d):t;if(s=e.d,u=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,l=u.length):(r=u,o=a,l=s.length),i>(l=(a=Math.ceil(d/uB))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=s.length)-(i=u.length)<0&&(i=l,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/sB|0,s[i]%=sB;for(n&&(s.unshift(n),++o),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=o,tB?SB(t,d):t}function hB(e,t,n){if(e!==~~e||e<t||e>n)throw Error(rB+e)}function gB(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=uB-r.length)&&(i+=wB(n)),i+=r;a=e[t],(n=uB-(r=a+"").length)&&(i+=wB(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}fB.absoluteValue=fB.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},fB.comparedTo=fB.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},fB.decimalPlaces=fB.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*uB;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},fB.dividedBy=fB.div=function(e){return mB(this,new this.constructor(e))},fB.dividedToIntegerBy=fB.idiv=function(e){var t=this.constructor;return SB(mB(this,new t(e),0,1),t.precision)},fB.equals=fB.eq=function(e){return!this.cmp(e)},fB.exponent=function(){return yB(this)},fB.greaterThan=fB.gt=function(e){return this.cmp(e)>0},fB.greaterThanOrEqualTo=fB.gte=function(e){return this.cmp(e)>=0},fB.isInteger=fB.isint=function(){return this.e>this.d.length-2},fB.isNegative=fB.isneg=function(){return this.s<0},fB.isPositive=fB.ispos=function(){return this.s>0},fB.isZero=function(){return 0===this.s},fB.lessThan=fB.lt=function(e){return this.cmp(e)<0},fB.lessThanOrEqualTo=fB.lte=function(e){return this.cmp(e)<1},fB.logarithm=fB.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(JF))throw Error(nB+"NaN");if(n.s<1)throw Error(nB+(n.s?"NaN":"-Infinity"));return n.eq(JF)?new r(0):(tB=!1,t=mB(xB(n,i),xB(e,i),i),tB=!0,SB(t,o))},fB.minus=fB.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kB(t,e):pB(t,(e.s=-e.s,e))},fB.modulo=fB.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(nB+"NaN");return n.s?(tB=!1,t=mB(n,e,0,1).times(e),tB=!0,n.minus(t)):SB(new r(n),o)},fB.naturalExponential=fB.exp=function(){return vB(this)},fB.naturalLogarithm=fB.ln=function(){return xB(this)},fB.negated=fB.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},fB.plus=fB.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?pB(t,e):kB(t,(e.s=-e.s,e))},fB.precision=fB.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(rB+e);if(t=yB(o)+1,n=(r=o.d.length-1)*uB+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},fB.squareRoot=fB.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(nB+"NaN")}for(e=yB(l),tB=!1,0==(o=Math.sqrt(+l))||o==1/0?(((t=gB(l.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=iB((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(mB(l,i,a+2)).times(.5),gB(i.d).slice(0,a)===(t=gB(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(SB(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if("9999"!=t)break;a+=4}return tB=!0,SB(r,n)},fB.times=fB.mul=function(e){var t,n,r,o,i,a,l,s,u,c=this,d=c.constructor,f=c.d,p=(e=new d(e)).d;if(!c.s||!e.s)return new d(0);for(e.s*=c.s,n=c.e+e.e,(s=f.length)<(u=p.length)&&(i=f,f=p,p=i,a=s,s=u,u=a),i=[],r=a=s+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=s+r;o>r;)l=i[o]+p[r]*f[o-r-1]+t,i[o--]=l%sB|0,t=l/sB|0;i[o]=(i[o]+t)%sB|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,tB?SB(e,d.precision):e},fB.toDecimalPlaces=fB.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(hB(e,0,eB),void 0===t?t=r.rounding:hB(t,0,8),SB(n,e+yB(n)+1,t))},fB.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=EB(r,!0):(hB(e,0,eB),void 0===t?t=o.rounding:hB(t,0,8),n=EB(r=SB(new o(r),e+1,t),!0,e+1)),n},fB.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?EB(o):(hB(e,0,eB),void 0===t?t=i.rounding:hB(t,0,8),n=EB((r=SB(new i(o),e+yB(o)+1,t)).abs(),!1,e+yB(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},fB.toInteger=fB.toint=function(){var e=this,t=e.constructor;return SB(new t(e),yB(e)+1,t.rounding)},fB.toNumber=function(){return+this},fB.toPower=fB.pow=function(e){var t,n,r,o,i,a,l=this,s=l.constructor,u=+(e=new s(e));if(!e.s)return new s(JF);if(!(l=new s(l)).s){if(e.s<1)throw Error(nB+"Infinity");return l}if(l.eq(JF))return l;if(r=s.precision,e.eq(JF))return SB(l,r);if(a=(t=e.e)>=(n=e.d.length-1),i=l.s,a){if((n=u<0?-u:u)<=cB){for(o=new s(JF),t=Math.ceil(r/uB+4),tB=!1;n%2&&OB((o=o.times(l)).d,t),0!==(n=iB(n/2));)OB((l=l.times(l)).d,t);return tB=!0,e.s<0?new s(JF).div(o):SB(o,r)}}else if(i<0)throw Error(nB+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,tB=!1,o=e.times(xB(l,r+12)),tB=!0,(o=vB(o)).s=i,o},fB.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=EB(o,(n=yB(o))<=i.toExpNeg||n>=i.toExpPos):(hB(e,1,eB),void 0===t?t=i.rounding:hB(t,0,8),r=EB(o=SB(new i(o),e,t),e<=(n=yB(o))||n<=i.toExpNeg,e)),r},fB.toSignificantDigits=fB.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(hB(e,1,eB),void 0===t?t=n.rounding:hB(t,0,8)),SB(new n(this),e,t)},fB.toString=fB.valueOf=fB.val=fB.toJSON=fB[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=yB(e),n=e.constructor;return EB(e,t<=n.toExpNeg||t>=n.toExpPos)};var mB=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%sB|0,r=n/sB|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*sB+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var l,s,u,c,d,f,p,h,g,m,v,y,b,w,x,C,S,k,E=r.constructor,O=r.s==o.s?1:-1,D=r.d,j=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(nB+"Division by zero");for(s=r.e-o.e,S=j.length,x=D.length,h=(p=new E(O)).d=[],u=0;j[u]==(D[u]||0);)++u;if(j[u]>(D[u]||0)&&--s,(y=null==i?i=E.precision:a?i+(yB(r)-yB(o))+1:i)<0)return new E(0);if(y=y/uB+2|0,u=0,1==S)for(c=0,j=j[0],y++;(u<x||c)&&y--;u++)b=c*sB+(D[u]||0),h[u]=b/j|0,c=b%j|0;else{for((c=sB/(j[0]+1)|0)>1&&(j=e(j,c),D=e(D,c),S=j.length,x=D.length),w=S,m=(g=D.slice(0,S)).length;m<S;)g[m++]=0;(k=j.slice()).unshift(0),C=j[0],j[1]>=sB/2&&++C;do{c=0,(l=t(j,g,S,m))<0?(v=g[0],S!=m&&(v=v*sB+(g[1]||0)),(c=v/C|0)>1?(c>=sB&&(c=sB-1),1==(l=t(d=e(j,c),g,f=d.length,m=g.length))&&(c--,n(d,S<f?k:j,f))):(0==c&&(l=c=1),d=j.slice()),(f=d.length)<m&&d.unshift(0),n(g,d,m),-1==l&&(l=t(j,g,S,m=g.length))<1&&(c++,n(g,S<m?k:j,m)),m=g.length):0===l&&(c++,g=[0]),h[u++]=c,l&&g[0]?g[m++]=D[w]||0:(g=[D[w]],m=1)}while((w++<x||void 0!==g[0])&&y--)}return h[0]||h.shift(),p.e=s,SB(p,a?i+yB(p)+1:i)}}();function vB(e,t){var n,r,o,i,a,l=0,s=0,u=e.constructor,c=u.precision;if(yB(e)>16)throw Error(oB+yB(e));if(!e.s)return new u(JF);for(null==t?(tB=!1,a=c):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),s+=5;for(a+=Math.log(aB(2,s))/Math.LN10*2+5|0,n=r=o=new u(JF),u.precision=a;;){if(r=SB(r.times(e),a),n=n.times(++l),gB((i=o.plus(mB(r,n,a))).d).slice(0,a)===gB(o.d).slice(0,a)){for(;s--;)o=SB(o.times(o),a);return u.precision=c,null==t?(tB=!0,SB(o,c)):o}o=i}}function yB(e){for(var t=e.e*uB,n=e.d[0];n>=10;n/=10)t++;return t}function bB(e,t,n){if(t>e.LN10.sd())throw tB=!0,n&&(e.precision=n),Error(nB+"LN10 precision limit exceeded");return SB(new e(e.LN10),t)}function wB(e){for(var t="";e--;)t+="0";return t}function xB(e,t){var n,r,o,i,a,l,s,u,c,d=1,f=e,p=f.d,h=f.constructor,g=h.precision;if(f.s<1)throw Error(nB+(f.s?"NaN":"-Infinity"));if(f.eq(JF))return new h(0);if(null==t?(tB=!1,u=g):u=t,f.eq(10))return null==t&&(tB=!0),bB(h,u);if(u+=10,h.precision=u,r=(n=gB(p)).charAt(0),i=yB(f),!(Math.abs(i)<15e14))return s=bB(h,u+2,g).times(i+""),f=xB(new h(r+"."+n.slice(1)),u-10).plus(s),h.precision=g,null==t?(tB=!0,SB(f,g)):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=gB((f=f.times(e)).d)).charAt(0),d++;for(i=yB(f),r>1?(f=new h("0."+n),i++):f=new h(r+"."+n.slice(1)),l=a=f=mB(f.minus(JF),f.plus(JF),u),c=SB(f.times(f),u),o=3;;){if(a=SB(a.times(c),u),gB((s=l.plus(mB(a,new h(o),u))).d).slice(0,u)===gB(l.d).slice(0,u))return l=l.times(2),0!==i&&(l=l.plus(bB(h,u+2,g).times(i+""))),l=mB(l,new h(d),u),h.precision=g,null==t?(tB=!0,SB(l,g)):l;l=s,o+=2}}function CB(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=iB(n/uB),e.d=[],r=(n+1)%uB,n<0&&(r+=uB),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=uB;r<o;)e.d.push(+t.slice(r,r+=uB));t=t.slice(r),r=uB-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),tB&&(e.e>dB||e.e<-dB))throw Error(oB+n)}else e.s=0,e.e=0,e.d=[0];return e}function SB(e,t,n){var r,o,i,a,l,s,u,c,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=uB,o=t,u=d[c=0];else{if((c=Math.ceil((r+1)/uB))>=(i=d.length))return e;for(u=i=d[c],a=1;i>=10;i/=10)a++;o=(r%=uB)-uB+a}if(void 0!==n&&(l=u/(i=aB(10,a-o-1))%10|0,s=t<0||void 0!==d[c+1]||u%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?u/aB(10,a-o):0:d[c-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return s?(i=yB(e),d.length=1,t=t-i-1,d[0]=aB(10,(uB-t%uB)%uB),e.e=iB(-t/uB)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(0==r?(d.length=c,i=1,c--):(d.length=c+1,i=aB(10,uB-r),d[c]=o>0?(u/aB(10,a-o)%aB(10,o)|0)*i:0),s)for(;;){if(0==c){(d[0]+=i)==sB&&(d[0]=1,++e.e);break}if(d[c]+=i,d[c]!=sB)break;d[c--]=0,i=1}for(r=d.length;0===d[--r];)d.pop();if(tB&&(e.e>dB||e.e<-dB))throw Error(oB+yB(e));return e}function kB(e,t){var n,r,o,i,a,l,s,u,c,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),tB?SB(t,p):t;if(s=e.d,d=t.d,r=t.e,u=e.e,s=s.slice(),a=u-r){for((c=a<0)?(n=s,a=-a,l=d.length):(n=d,r=u,l=s.length),a>(o=Math.max(Math.ceil(p/uB),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((c=(o=s.length)<(l=d.length))&&(l=o),o=0;o<l;o++)if(s[o]!=d[o]){c=s[o]<d[o];break}a=0}for(c&&(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]=sB-1;--s[i],s[o]+=sB}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,tB?SB(t,p):t):new f(0)}function EB(e,t,n){var r,o=yB(e),i=gB(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+wB(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+wB(-o-1)+i,n&&(r=n-a)>0&&(i+=wB(r))):o>=a?(i+=wB(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+wB(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=wB(r))),e.s<0?"-"+i:i}function OB(e,t){if(e.length>t)return e.length=t,!0}function DB(e){if(!e||"object"!=typeof e)throw Error(nB+"Object expected");var t,n,r,o=["precision",1,eB,"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(!(iB(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(rB+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(rB+n+": "+r);this[n]=new this(r)}return this}var jB=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(rB+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])):CB(t,e.toString())}if("string"!=typeof e)throw Error(rB+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!lB.test(e))throw Error(rB+e);CB(t,e)}if(i.prototype=fB,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=DB,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"});JF=new jB(1);var PB=jB;function TB(e){return function(e){if(Array.isArray(e))return MB(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 MB(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 MB(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 MB(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 AB=function(e){return e},_B={"@@functional/placeholder":!0},RB=function(e){return e===_B},LB=function(e){return function t(){return 0===arguments.length||1===arguments.length&&RB(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},IB=function e(t,n){return 1===t?n:LB((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!==_B})).length;return a>=t?n.apply(void 0,o):e(t-a,LB((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 RB(e)?t.shift():e}));return n.apply(void 0,TB(i).concat(t))})))}))},NB=function(e){return IB(e.length,e)},$B=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},zB=NB((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),FB=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return AB;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))}},BB=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},KB=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 VB=NB((function(e,t,n){var r=+e;return r+n*(+t-r)})),HB=NB((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),UB=NB((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),WB={rangeStep:function(e,t,n){for(var r=new PB(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 PB(e).abs().log(10).toNumber())+1},interpolateNumber:VB,uninterpolateNumber:HB,uninterpolateTruncation:UB};function ZB(e){return function(e){if(Array.isArray(e))return YB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||GB(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 qB(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)||GB(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 GB(e,t){if(e){if("string"==typeof e)return YB(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)?YB(e,t):void 0}}function YB(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 XB(e){var t=qB(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function JB(e,t,n){if(e.lte(0))return new PB(0);var r=WB.getDigitCount(e.toNumber()),o=new PB(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new PB(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new PB(Math.ceil(l))}function QB(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 PB(0),tickMin:new PB(0),tickMax:new PB(0)};var i,a=JB(new PB(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new PB(0):(i=new PB(e).add(t).div(2)).sub(new PB(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),s=Math.ceil(new PB(t).sub(i).div(a).toNumber()),u=l+s+1;return u>n?QB(e,t,n,r,o+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:a,tickMin:i.sub(new PB(l).mul(a)),tickMax:i.add(new PB(s).mul(a))})}var eK=KB((function(e){var t=qB(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=qB(XB([n,r]),2),s=l[0],u=l[1];if(s===-1/0||u===1/0){var c=u===1/0?[s].concat(ZB($B(0,o-1).map((function(){return 1/0})))):[].concat(ZB($B(0,o-1).map((function(){return-1/0}))),[u]);return n>r?BB(c):c}if(s===u)return function(e,t,n){var r=1,o=new PB(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new PB(10).pow(WB.getDigitCount(e)-1),o=new PB(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new PB(Math.floor(e)))}else 0===e?o=new PB(Math.floor((t-1)/2)):n||(o=new PB(Math.floor(e)));var a=Math.floor((t-1)/2),l=FB(zB((function(e){return o.add(new PB(e-a).mul(r)).toNumber()})),$B);return l(0,t)}(s,o,i);var d=QB(s,u,a,i),f=d.step,p=d.tickMin,h=d.tickMax,g=WB.rangeStep(p,h.add(new PB(.1).mul(f)),f);return n>r?BB(g):g})),tK=KB((function(e,t){var n=qB(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=qB(XB([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 u=Math.max(t,2),c=JB(new PB(s).sub(l).div(u-1),i,0),d=[].concat(ZB(WB.rangeStep(new PB(l),new PB(s).sub(new PB(.99).mul(c)),c)),[s]);return r>o?BB(d):d})),nK="production"===process.env.NODE_ENV,rK="Invariant failed";function oK(e,t){if(nK)throw new Error(rK);var n="function"==typeof t?t():t,r=n?"".concat(rK,": ").concat(n):rK;throw new Error(r)}var iK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function aK(){return aK=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},aK.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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sK(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 sK(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 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 uK(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 cK(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,l=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,c=uK(e,iK),d=kO(c,!1);"x"===e.direction&&"number"!==s.type&&("production"!==process.env.NODE_ENV?oK(0,'ErrorBar requires Axis type property to be "number".'):oK());var f=a.map((function(e){var a=l(e,i),c=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"===r){var b=s.scale,w=f+n,x=w+o,C=w-o,S=b(p-g),k=b(p+m);v.push({x1:k,y1:x,x2:k,y2:C}),v.push({x1:S,y1:w,x2:k,y2:w}),v.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===r){var E=u.scale,O=c+n,D=O-o,j=O+o,P=E(p-g),T=E(p+m);v.push({x1:D,y1:T,x2:j,y2:T}),v.push({x1:O,y1:P,x2:O,y2:T}),v.push({x1:D,y1:P,x2:j,y2:P})}return t.createElement(LO,aK({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 t.createElement("line",aK({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(LO,{className:"recharts-errorBars"},f)}function dK(e){return dK="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},dK(e)}function fK(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 pK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fK(Object(n),!0).forEach((function(t){hK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=dK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cK.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},cK.displayName="ErrorBar";var gK=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=xO(n,UA);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:kK(t),value:o||r,payload:t.props}})),pK(pK(pK({},a.props),UA.getWithHeight(a,o)),{},{payload:t,item:a})):null};function mK(e){return mK="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},mK(e)}function vK(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 yK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vK(Object(n),!0).forEach((function(t){bK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vK(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"!=mK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mK(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 wK(e){return function(e){if(Array.isArray(e))return xK(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 xK(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 xK(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 xK(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 CK(e,t,n){return TE(e)||TE(t)?n:YE(t)?PE(e,t,n):NS(t)?t(e):n}function SK(e,t,n,r){var o=YF(e,(function(e){return CK(e,t)}));if("number"===n){var i=o.filter((function(e){return GE(e)||parseFloat(e)}));return i.length?[VF(i),NF(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!TE(e)})):o).map((function(e){return YE(e)||e instanceof Date?e:""}))}var kK=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},EK=function(e,t,n,r,o){var i=wO(t.props.children,cK).filter((function(e){return function(e,t,n){return!!TE(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=CK(t,n);if(TE(r))return e;var o=Array.isArray(r)?[VF(r),NF(r)]:[r,r],i=a.reduce((function(e,n){var r=CK(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},OK=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&EK(e,t,i,r)||SK(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}),[])},DK=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},jK=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},PK=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*ZE(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!WE(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}}))},TK=new WeakMap,MK=function(e,t){if("function"!=typeof t)return e;TK.has(e)||TK.set(e,new WeakMap);var n=TK.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},AK=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:wI(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:HN(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:CI(),realScaleType:"point"}:"category"===o?{scale:wI(),realScaleType:"band"}:{scale:HN(),realScaleType:"linear"};if(LE(r)){var l="scale".concat(fD(r));return{scale:(PF[l]||CI)(),realScaleType:PF[l]?l:"point"}}return NS(r)?{scale:r}:{scale:CI(),realScaleType:"point"}},_K=1e-4,RK=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])-_K,i=Math.max(r[0],r[1])+_K,a=e(t[0]),l=e(t[n-1]);(a<o||a>i||l<o||l>i)&&e.domain([t[0],t[n-1]])}},LK={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=WE(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}pj(e,t)}},none:pj,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}pj(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,u=0;l<o;++l){for(var c=e[t[l]],d=c[a][1]||0,f=(d-(c[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,u+=f*d}n[a-1][1]+=n[a-1][0]=i,s&&(i-=u/s)}n[a-1][1]+=n[a-1][0]=i,pj(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=WE(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)}}},IK=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=LK[n],i=function(){var e=pD([]),t=hj,n=pj,r=gj;function o(o){var i,a,l=Array.from(e.apply(this,arguments),mj),s=l.length,u=-1;for(const e of o)for(i=0,++u;i<s;++i)(l[i][u]=[0,+r(e,l[i].key,u,o)]).data=e;for(i=0,a=OD(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:pD(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:pD(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?hj:"function"==typeof e?e:pD(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?pj:e,o):n},o}().keys(r).value((function(e,t){return+CK(e,t,0)})).order(hj).offset(o);return i(e)},NK=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 u=eK(s,o,a);return e.domain([VF(u),NF(u)]),{niceTicks:u}}if(o&&"number"===r){var c=e.domain();return{niceTicks:tK(c,o,a)}}return null};function $K(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&&!TE(o[t.dataKey])){var l=nO(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var s=CK(o,TE(a)?t.dataKey:a);return TE(s)?null:t.scale(s)}var zK=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=CK(i,t.dataKey,t.domain[a]);return TE(l)?null:t.scale(l)-o/2+r},FK=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[VF(t.concat([e[0]]).filter(GE)),NF(t.concat([e[1]]).filter(GE))]}),[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}))},BK=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,KK=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,VK=function(e,t,n){if(NS(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(GE(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(BK.test(e[0])){var o=+BK.exec(e[0])[1];r[0]=t[0]-o}else NS(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(GE(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(KK.test(e[1])){var i=+KK.exec(e[1])[1];r[1]=t[1]+i}else NS(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},HK=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=W_(t,(function(e){return e.coordinate})),i=1/0,a=1,l=o.length;a<l;a++){var s=o[a],u=o[a-1];i=Math.min((s.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},UK=function(e,t,n){return e&&e.length?QF(e,PE(n,"type.defaultProps.domain"))?t:e:t},WK=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,u=n.hide;return yK(yK({},kO(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:kK(e),value:CK(t,r),type:l,payload:t,chartType:s,hide:u})};function ZK(e){return ZK="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},ZK(e)}function qK(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 GK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qK(Object(n),!0).forEach((function(t){YK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ZK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZK(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 XK(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return JK(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 JK(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 JK(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 QK=Math.PI/180,eV=function(e){return 180*e/Math.PI},tV=function(e,t,n,r){return{x:e+Math.cos(-QK*r)*n,y:t+Math.sin(-QK*r)*n}},nV=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},rV=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:eV(s),angleInRadian:s}},oV=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)},iV=function(e,t){var n=e.x,r=e.y,o=rV({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 u,c=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=c.startAngle,f=c.endAngle,p=a;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;u=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;u=p>=f&&p<=d}return u?GK(GK({},t),{},{radius:i,angle:oV(p,t)}):null},aV=function(e){return t.isValidElement(e)||NS(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 sV=["offset"];function uV(e){return function(e){if(Array.isArray(e))return cV(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 cV(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 cV(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 cV(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 dV(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 fV(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 pV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fV(Object(n),!0).forEach((function(t){hV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hV(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 gV(){return gV=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},gV.apply(this,arguments)}var mV=function(e){var t=e.value,n=e.formatter,r=TE(e.children)?t:e.children;return NS(n)?n(r):r},vV=function(e,n,r){var o,i,a=e.position,l=e.viewBox,s=e.offset,u=e.className,c=l,d=c.cx,f=c.cy,p=c.innerRadius,h=c.outerRadius,g=c.startAngle,m=c.endAngle,v=c.clockWise,y=(p+h)/2,b=function(e,t){return ZE(t-e)*Math.min(Math.abs(t-e),360)}(g,m),w=b>=0?1:-1;"insideStart"===a?(o=g+w*s,i=v):"insideEnd"===a?(o=m-w*s,i=!v):"end"===a&&(o=m+w*s,i=v),i=b<=0?i:!i;var x=tV(d,f,y,o),C=tV(d,f,y,o+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(y,",").concat(y,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),k=TE(e.id)?JE("recharts-radial-line-"):e.id;return t.createElement("text",gV({},r,{dominantBaseline:"central",className:Mr("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:k,d:S})),t.createElement("textPath",{xlinkHref:"#".concat(k)},n))},yV=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,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var c=tV(i,a,s+n,u),d=c.x;return{x:d,y:c.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=tV(i,a,(l+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},bV=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,u=i.height,c=u>=0?1:-1,d=c*r,f=c>0?"end":"start",p=c>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 pV(pV({},{x:a+s/2,y:l-c*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(l-n.y,0),width:s}:{});if("bottom"===o)return pV(pV({},{x:a+s/2,y:l+u+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(l+u),0),width:s}:{});if("left"===o){var y={x:a-g,y:l+u/2,textAnchor:m,verticalAnchor:"middle"};return pV(pV({},y),n?{width:Math.max(y.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+s+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"};return pV(pV({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:s,height:u}:{};return"insideLeft"===o?pV({x:a+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?pV({x:a+s-g,y:l+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===o?pV({x:a+s/2,y:l+d,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?pV({x:a+s/2,y:l+u-d,textAnchor:"middle",verticalAnchor:f},w):"insideTopLeft"===o?pV({x:a+g,y:l+d,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?pV({x:a+s-g,y:l+d,textAnchor:m,verticalAnchor:p},w):"insideBottomLeft"===o?pV({x:a+g,y:l+u-d,textAnchor:v,verticalAnchor:f},w):"insideBottomRight"===o?pV({x:a+s-g,y:l+u-d,textAnchor:m,verticalAnchor:f},w):AS(o)&&(GE(o.x)||qE(o.x))&&(GE(o.y)||qE(o.y))?pV({x:a+QE(o.x,s),y:l+QE(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):pV({x:a+s/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},wV=function(e){return"cx"in e&&GE(e.cx)};function xV(e){var n,r=e.offset,o=pV({offset:void 0===r?5:r},dV(e,sV)),i=o.viewBox,a=o.position,l=o.value,s=o.children,u=o.content,c=o.className,d=void 0===c?"":c,f=o.textBreakAll;if(!i||TE(l)&&TE(s)&&!t.isValidElement(u)&&!NS(u))return null;if(t.isValidElement(u))return t.cloneElement(u,o);if(NS(u)){if(n=t.createElement(u,o),t.isValidElement(n))return n}else n=mV(o);var p=wV(i),h=kO(o,!0);if(p&&("insideStart"===a||"insideEnd"===a||"end"===a))return vV(o,n,h);var g=p?yV(o):bV(o);return t.createElement(ZL,gV({className:Mr("recharts-label",d)},h,g,{breakAll:f}),n)}xV.displayName="Label";var CV=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,u=e.outerRadius,c=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(GE(h)&&GE(g)){if(GE(c)&&GE(d))return{x:c,y:d,width:h,height:g};if(GE(f)&&GE(p))return{x:f,y:p,width:h,height:g}}return GE(c)&&GE(d)?{x:c,y:d,width:0,height:0}:GE(t)&&GE(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:s||0,outerRadius:u||l||a||0,clockWise:m}:e.viewBox?e.viewBox:{}};xV.parseViewBox=CV,xV.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=CV(e),a=wO(o,xV).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var l=function(e,n){return e?!0===e?t.createElement(xV,{key:"label-implicit",viewBox:n}):YE(e)?t.createElement(xV,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===xV?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(xV,{key:"label-implicit",content:e,viewBox:n}):NS(e)?t.createElement(xV,{key:"label-implicit",content:e,viewBox:n}):AS(e)?t.createElement(xV,gV({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[l].concat(uV(a))};var SV=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},kV=_o(SV);function EV(e){return EV="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},EV(e)}var OV=["valueAccessor"],DV=["data","dataKey","clockWise","id","textBreakAll"];function jV(e){return function(e){if(Array.isArray(e))return PV(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 PV(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 PV(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 PV(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 TV(){return TV=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},TV.apply(this,arguments)}function MV(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 AV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MV(Object(n),!0).forEach((function(t){_V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _V(e,t,n){return t=function(e){var t=function(e,t){if("object"!=EV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=EV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==EV(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 RV(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 LV=function(e){return Array.isArray(e.value)?kV(e.value):e.value};function IV(e){var n=e.valueAccessor,r=void 0===n?LV:n,o=RV(e,OV),i=o.data,a=o.dataKey,l=o.clockWise,s=o.id,u=o.textBreakAll,c=RV(o,DV);return i&&i.length?t.createElement(LO,{className:"recharts-label-list"},i.map((function(e,n){var o=TE(a)?r(e,n):CK(e&&e.payload,a),i=TE(s)?{}:{id:"".concat(s,"-").concat(n)};return t.createElement(xV,TV({},kO(e,!0),c,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:u,viewBox:xV.parseViewBox(TE(l)?e:AV(AV({},e),{},{clockWise:l})),key:"label-".concat(n),index:n}))}))):null}function NV(e){return NV="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},NV(e)}function $V(){return $V=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},$V.apply(this,arguments)}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"!=NV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=NV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==NV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}IV.displayName="LabelList",IV.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=wO(e.children,IV).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(IV,{key:"labelList-implicit",data:n}):t.isValidElement(e)||NS(e)?t.createElement(IV,{key:"labelList-implicit",data:n,content:e}):AS(e)?t.createElement(IV,TV({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(jV(o)):o};var KV=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,u=l*(a?1:-1)+r,c=Math.asin(l/u)/QK,d=s?o:o+i*c,f=s?o-i*c:o;return{center:tV(t,n,u,d),circleTangency:tV(t,n,r,d),lineTangency:tV(t,n,u*Math.cos(c*QK),f),theta:c}},VV=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return ZE(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),l=i+a,s=tV(t,n,o,i),u=tV(t,n,o,l),c="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(u.x,",").concat(u.y,"\n ");if(r>0){var d=tV(t,n,r,i),f=tV(t,n,r,l);c+="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 c+="L ".concat(t,",").concat(n," Z");return c},HV={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},UV=function(e){var n=FV(FV({},HV),e),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,d=n.endAngle,f=n.className;if(a<i||c===d)return null;var p,h=Mr("recharts-sector",f),g=a-i,m=QE(l,g,0,!0);return p=m>0&&Math.abs(c-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,u=e.endAngle,c=ZE(u-s),d=KV({cx:t,cy:n,radius:o,angle:s,sign:c,cornerRadius:i,cornerIsExternal:l}),f=d.circleTangency,p=d.lineTangency,h=d.theta,g=KV({cx:t,cy:n,radius:o,angle:u,sign:-c,cornerRadius:i,cornerIsExternal:l}),m=g.circleTangency,v=g.lineTangency,y=g.theta,b=l?Math.abs(s-u):Math.abs(s-u)-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 "):VV({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:u});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(f.x,",").concat(f.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=KV({cx:t,cy:n,radius:r,angle:s,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),C=x.circleTangency,S=x.lineTangency,k=x.theta,E=KV({cx:t,cy:n,radius:r,angle:u,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),O=E.circleTangency,D=E.lineTangency,j=E.theta,P=l?Math.abs(s-u):Math.abs(s-u)-k-j;if(P<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(+(c<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(c>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:d}):VV({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:c,endAngle:d}),t.createElement("path",$V({},kO(n,!0),{className:h,d:p,role:"img"}))};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 ZV(){return ZV=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},ZV.apply(this,arguments)}function qV(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 GV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qV(Object(n),!0).forEach((function(t){YV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YV(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}var XV={curveBasisClosed:function(e){return new ej(e)},curveBasisOpen:function(e){return new tj(e)},curveBasis:function(e){return new QD(e)},curveBumpX:function(e){return new _D(e,!0)},curveBumpY:function(e){return new _D(e,!1)},curveLinearClosed:function(e){return new nj(e)},curveLinear:jD,curveMonotoneX:function(e){return new lj(e)},curveMonotoneY:function(e){return new sj(e)},curveNatural:function(e){return new cj(e)},curveStep:function(e){return new fj(e,.5)},curveStepAfter:function(e){return new fj(e,1)},curveStepBefore:function(e){return new fj(e,0)}},JV=function(e){return e.x===+e.x&&e.y===+e.y},QV=function(e){return e.x},eH=function(e){return e.y},tH=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,u=void 0!==s&&s,c=function(e,t){if(NS(e))return e;var n="curve".concat(fD(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?XV[n]||jD:XV["".concat(n).concat("vertical"===t?"Y":"X")]}(r,l),d=u?i.filter((function(e){return JV(e)})):i;if(Array.isArray(a)){var f=u?a.filter((function(e){return JV(e)})):a,p=d.map((function(e,t){return GV(GV({},e),{},{base:f[t]})}));return(t="vertical"===l?AD().y(eH).x1(QV).x0((function(e){return e.base.x})):AD().x(QV).y1(eH).y0((function(e){return e.base.y}))).defined(JV).curve(c),t(p)}return(t="vertical"===l&&GE(a)?AD().y(eH).x1(QV).x0(a):GE(a)?AD().x(QV).y1(eH).y0(a):MD().x(QV).y(eH)).defined(JV).curve(c),t(d)},nH=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?tH(e):o;return t.createElement("path",ZV({},kO(e,!1),uO(e),{className:Mr("recharts-curve",n),d:a,ref:i}))},rH={exports:{}},oH=Object.getOwnPropertySymbols,iH=Object.prototype.hasOwnProperty,aH=Object.prototype.propertyIsEnumerable;var lH,sH,uH,cH,dH,fH,pH,hH,gH,mH,vH=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]))iH.call(n,a)&&(o[a]=n[a]);if(oH){r=oH(n);for(var l=0;l<r.length;l++)aH.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o};function yH(){if(sH)return lH;sH=1;return lH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function bH(){return cH?uH:(cH=1,uH=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var wH=FE;rH.exports=function(){if(hH)return pH;hH=1;var e=FE,t=vH,n=yH(),r=bH(),o=function(){if(fH)return dH;fH=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=yH(),n={},r=bH();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 u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,l,a,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var f=s?s():"";e("Failed "+a+" type: "+c.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},dH=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){}}),pH=function(l,s){var u="function"==typeof Symbol&&Symbol.iterator,c="@@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 u=e(l,s,o,i,a+"["+s+"]",n);if(u instanceof Error)return u}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],u=b(s);if("object"!==u)return new h("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in s)if(r(s,c)){var d=e(s,c,i,a,l+"."+c,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 "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,l){for(var s=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,a,l,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&s.push(c.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 u in e){var c=e[u];if("function"!=typeof c)return v(o,i,a,u,w(c));var d=c(l,u,o,i,a+"."+u,n);if(d)return d}return null}))},exact:function(e){return g((function(o,i,a,l,s){var u=o[i],c=b(u);if("object"!==c)return new h("Invalid "+l+" `"+s+"` of type `"+c+"` 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(u,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,u,c,f,p){if(u=u||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=u+":"+l;!t[m]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. 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 "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,l,u,c,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&&(u&&e[u]||e[c]);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 x(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},pH}()(wH.isElement,!0)}else rH.exports=function(){if(mH)return gH;mH=1;var e=yH();function t(){}function n(){}return n.resetWarningCache=t,gH=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},gH}()();var xH=_o(rH.exports),CH=Object.getOwnPropertyNames,SH=Object.getOwnPropertySymbols,kH=Object.prototype.hasOwnProperty;function EH(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function OH(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 DH(e){return CH(e).concat(SH(e))}var jH=Object.hasOwn||function(e,t){return kH.call(e,t)};function PH(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var TH="_owner",MH=Object.getOwnPropertyDescriptor,AH=Object.keys;function _H(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 RH(e,t){return PH(e.getTime(),t.getTime())}function LH(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(),u=!1,c=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];u||i[c]||!(u=n.equals(f,g,l,c,e,t,n)&&n.equals(p,m,f,g,e,t,n))||(i[c]=!0),c++}if(!u)return!1;l++}return!0}function IH(e,t,n){var r,o=AH(e),i=o.length;if(AH(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===TH&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!jH(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function NH(e,t,n){var r,o,i,a=DH(e),l=a.length;if(DH(t).length!==l)return!1;for(;l-- >0;){if((r=a[l])===TH&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!jH(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=MH(e,r),i=MH(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function $H(e,t){return PH(e.valueOf(),t.valueOf())}function zH(e,t){return e.source===t.source&&e.flags===t.flags}function FH(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,u=0;(o=l.next())&&!o.done;)s||i[u]||!(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[u]=!0),u++;if(!s)return!1}return!0}function BH(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 KH="[object Arguments]",VH="[object Boolean]",HH="[object Date]",UH="[object Map]",WH="[object Number]",ZH="[object Object]",qH="[object RegExp]",GH="[object Set]",YH="[object String]",XH=Array.isArray,JH="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,QH=Object.assign,eU=Object.prototype.toString.call.bind(Object.prototype.toString);var tU=nU();function nU(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?NH:_H,areDatesEqual:RH,areMapsEqual:r?EH(LH,NH):LH,areObjectsEqual:r?NH:IH,arePrimitiveWrappersEqual:$H,areRegExpsEqual:zH,areSetsEqual:r?EH(FH,NH):FH,areTypedArraysEqual:r?NH:BH};if(n&&(o=QH({},o,n(o))),t){var i=OH(o.areArraysEqual),a=OH(o.areMapsEqual),l=OH(o.areObjectsEqual),s=OH(o.areSetsEqual);o=QH({},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,u,c){if(e===u)return!0;if(null==e||null==u||"object"!=typeof e||"object"!=typeof u)return e!=e&&u!=u;var d=e.constructor;if(d!==u.constructor)return!1;if(d===Object)return o(e,u,c);if(XH(e))return t(e,u,c);if(null!=JH&&JH(e))return s(e,u,c);if(d===Date)return n(e,u,c);if(d===RegExp)return a(e,u,c);if(d===Map)return r(e,u,c);if(d===Set)return l(e,u,c);var f=eU(e);return f===HH?n(e,u,c):f===qH?a(e,u,c):f===UH?r(e,u,c):f===GH?l(e,u,c):f===ZH?"function"!=typeof e.then&&"function"!=typeof u.then&&o(e,u,c):f===KH?o(e,u,c):(f===VH||f===WH||f===YH)&&i(e,u,c)}}(l),u=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,u=void 0===s?t?new WeakMap:void 0:s,c=l.meta;return n(e,a,{cache:u,equals:o,meta:c,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:u,strict:a})}function rU(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 oU(e){return oU="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},oU(e)}function iU(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 aU(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 aU(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 aU(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=iU(r),i=o[0],a=o.slice(1);return"number"==typeof i?void rU(n.bind(null,a),i):(n(i),void rU(n.bind(null,a)))}"object"===oU(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 sU(e){return sU="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},sU(e)}function uU(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 cU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uU(Object(n),!0).forEach((function(t){dU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dU(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==sU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sU(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nU({strict:!0}),nU({circular:!0}),nU({circular:!0,strict:!0}),nU({createInternalComparator:function(){return PH}}),nU({strict:!0,createInternalComparator:function(){return PH}}),nU({circular:!0,createInternalComparator:function(){return PH}}),nU({circular:!0,createInternalComparator:function(){return PH},strict:!0});var fU=function(e){return e},pU=function(e,t){return Object.keys(t).reduce((function(n,r){return cU(cU({},n),{},dU({},r,e(r,t[r])))}),{})},hU=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(",")},gU="production"!==process.env.NODE_ENV,mU=function(e,t,n,r,o,i,a,l){if(gU&&"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],u=0;console.warn(t.replace(/%s/g,(function(){return s[u++]})))}};function vU(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||bU(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 yU(e){return function(e){if(Array.isArray(e))return wU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bU(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 bU(e,t){if(e){if("string"==typeof e)return wU(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)?wU(e,t):void 0}}function wU(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 xU=1e-4,CU=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},SU=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},kU=function(e,t){return function(n){var r=CU(e,t);return SU(r,n)}},EU=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)})),u=vU(s,4);r=u[0],o=u[1],i=u[2],a=u[3]}else mU(!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)}mU([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 c,d,f=kU(r,i),p=kU(o,a),h=(c=r,d=i,function(e){var t=CU(c,d),n=[].concat(yU(t.map((function(e,t){return e*t})).slice(1)),[0]);return SU(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)<xU||a<xU)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},OU=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 EU(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)<xU&&Math.abs(i)<xU?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l}();default:if("cubic-bezier"===r.split("(")[0])return EU(r);mU(!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:(mU(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function DU(e){return DU="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},DU(e)}function jU(e){return function(e){if(Array.isArray(e))return RU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_U(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 PU(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 TU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PU(Object(n),!0).forEach((function(t){MU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MU(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==DU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DU(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AU(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||_U(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 _U(e,t){if(e){if("string"==typeof e)return RU(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)?RU(e,t):void 0}}function RU(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 LU=function(e,t,n){return e+(t-e)*n},IU=function(e){return e.from!==e.to},NU=function e(t,n,r){var o=pU((function(e,n){if(IU(n)){var r=AU(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return TU(TU({},n),{},{from:o,velocity:i})}return n}),n);return r<1?pU((function(e,t){return IU(t)?TU(TU({},t),{},{velocity:LU(t.velocity,o[e].velocity,r),from:LU(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},$U=function(e,t,n,r,o){var i,a,l,s,u=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),c=u.reduce((function(n,r){return TU(TU({},n),{},MU({},r,[e[r],t[r]]))}),{}),d=u.reduce((function(n,r){return TU(TU({},n),{},MU({},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=NU(n,d,i),o(TU(TU(TU({},e),t),pU((function(e,t){return t.from}),d))),l=r,Object.values(d).filter(IU).length&&(f=requestAnimationFrame(p))}:function(i){s||(s=i);var a=(i-s)/r,l=pU((function(e,t){return LU.apply(void 0,jU(t).concat([n(a)]))}),c);if(o(TU(TU(TU({},e),t),l)),a<1)f=requestAnimationFrame(p);else{var u=pU((function(e,t){return LU.apply(void 0,jU(t).concat([n(1)]))}),c);o(TU(TU(TU({},e),t),u))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}};function zU(e){return zU="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},zU(e)}var FU=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function BU(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 KU(e){return function(e){if(Array.isArray(e))return VU(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 VU(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 VU(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 VU(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 HU(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 UU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HU(Object(n),!0).forEach((function(t){WU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WU(e,t,n){return(t=qU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZU(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,qU(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qU(e){var t=function(e,t){if("object"!==zU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zU(t)?t:String(t)}function GU(e,t){return GU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GU(e,t)}function YU(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=QU(e);if(t){var o=QU(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return XU(this,n)}}function XU(e,t){if(t&&("object"===zU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JU(e)}function JU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QU(e){return QU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QU(e)}var eW=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&&GU(e,t)}(r,t.PureComponent);var n=YU(r);function r(e,t){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=n.call(this,e,t)).props,a=i.isActive,l=i.attributeName,s=i.from,u=i.to,c=i.steps,d=i.children,f=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(JU(o)),o.changeStyle=o.changeStyle.bind(JU(o)),!a||f<=0)return o.state={style:{}},"function"==typeof d&&(o.state={style:u}),XU(o);if(c&&c.length)o.state={style:c[0].style};else if(s){if("function"==typeof d)return o.state={style:s},XU(o);o.state={style:l?WU({},l,s):s}}else o.state={style:{}};return o}return ZU(r,[{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(!(tU(e.to,a)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=u||i?l:e.to;if(this.state&&s){var d={style:o?WU({},o,c):c};(o&&s[o]!==c||!o&&s!==c)&&this.setState(d)}this.runAnimation(UU(UU({},this.props),{},{from:c,begin:0}))}}else{var f={style:o?WU({},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,u=$U(n,r,OU(i),o,this.changeStyle);this.manager.start([s,a,function(){t.stopJSAnimation=u()},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(KU(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,u=r.properties,c=r.onAnimationEnd,d=o>0?n[o-1]:r,f=u||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(KU(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:i,easing:l}),i]);var p=hU(f,i,l),h=UU(UU(UU({},d.style),s),{},{transition:p});return[].concat(KU(e),[h,i,c]).filter(fU)}),[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,u=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof u&&"spring"!==i)if(s.length>1)this.runStepAnimation(e);else{var d=r?WU({},r,o):o,f=hU(Object.keys(d),n,i);c.start([a,t,UU(UU({},d),{},{transition:f}),n,l])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var o=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=BU(e,FU),a=t.Children.count(n),l=this.state.style;if("function"==typeof n)return n(l);if(!o||0===a||r<=0)return n;var s=function(e){var n=e.props,r=n.style,o=void 0===r?{}:r,a=n.className;return t.cloneElement(e,UU(UU({},i),{},{style:UU(UU({},o),l),className:a}))};return 1===a?s(t.Children.only(n)):t.createElement("div",null,t.Children.map(n,(function(e){return s(e)})))}}]),r}();function tW(e){return tW="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},tW(e)}function nW(){return nW=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},nW.apply(this,arguments)}function rW(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oW(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 oW(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 oW(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 iW(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 aW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iW(Object(n),!0).forEach((function(t){lW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iW(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"!=tW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tW(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}eW.displayName="Animate",eW.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},eW.propTypes={from:xH.oneOfType([xH.object,xH.string]),to:xH.oneOfType([xH.object,xH.string]),attributeName:xH.string,duration:xH.number,begin:xH.number,easing:xH.oneOfType([xH.string,xH.func]),steps:xH.arrayOf(xH.shape({duration:xH.number.isRequired,style:xH.object.isRequired,easing:xH.oneOfType([xH.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),xH.func]),properties:xH.arrayOf("string"),onAnimationEnd:xH.func})),children:xH.oneOfType([xH.node,xH.func]),isActive:xH.bool,canBegin:xH.bool,onAnimationEnd:xH.func,shouldReAnimate:xH.bool,onAnimationStart:xH.func,onAnimationReStart:xH.func},xH.object,xH.object,xH.object,xH.element,xH.object,xH.object,xH.object,xH.oneOfType([xH.array,xH.element]),xH.any;var sW=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,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0;d<4;d++)c[d]=o[d]>a?a:o[d];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(e+s*c[0],",").concat(t)),i+="L ".concat(e+n-s*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,",\n ").concat(e+n-s*c[2],",").concat(t+r)),i+="L ".concat(e+s*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-l*c[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(u,",").concat(e+s*f,",").concat(t,"\n L ").concat(e+n-s*f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").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(u,",").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(u,",").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},uW=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),u=Math.max(o,o+a),c=Math.min(i,i+l),d=Math.max(i,i+l);return n>=s&&n<=u&&r>=c&&r<=d}return!1},cW={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dW=function(e){var n=aW(aW({},cW),e),r=t.useRef(),o=rW(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var l=n.x,s=n.y,u=n.width,c=n.height,d=n.radius,f=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,m=n.isAnimationActive,v=n.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||0===u||0===c)return null;var y=Mr("recharts-rectangle",f);return v?t.createElement(eW,{canBegin:i>0,from:{width:u,height:c,x:l,y:s},to:{width:u,height:c,x:l,y:s},duration:h,animationEasing:p,isActive:v},(function(e){var o=e.width,a=e.height,l=e.x,s=e.y;return t.createElement(eW,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:m,easing:p},t.createElement("path",nW({},kO(n,!0),{className:y,d:sW(l,s,o,a,d),ref:r})))})):t.createElement("path",nW({},kO(n,!0),{className:y,d:sW(l,s,u,c,d)}))},fW=["points","className","baseLinePoints","connectNulls"];function pW(){return pW=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},pW.apply(this,arguments)}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}var vW=function(e){return e&&e.x===+e.x&&e.y===+e.y},yW=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){vW(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),vW(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(gW(e),gW(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},bW=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=hW(e,fW);if(!n||!n.length)return null;var l=Mr("recharts-polygon",r);if(o&&o.length){var s=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=yW(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(yW(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:l},t.createElement("path",pW({},kO(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),s?t.createElement("path",pW({},kO(a,!0),{fill:"none",d:yW(n,i)})):null,s?t.createElement("path",pW({},kO(a,!0),{fill:"none",d:yW(o,i)})):null)}var c=yW(n,i);return t.createElement("path",pW({},kO(a,!0),{fill:"Z"===c.slice(-1)?a.fill:"none",className:l,d:c}))};function wW(){return wW=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},wW.apply(this,arguments)}var xW=function(e){var n=e.cx,r=e.cy,o=e.r,i=Mr("recharts-dot",e.className);return n===+n&&r===+r&&o===+o?t.createElement("circle",wW({},kO(e,!1),uO(e),{className:i,cx:n,cy:r,r:o})):null};function CW(e){return CW="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},CW(e)}var SW=["x","y","top","left","width","height","className"];function kW(){return kW=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},kW.apply(this,arguments)}function EW(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 OW(e,t,n){return t=function(e){var t=function(e,t){if("object"!=CW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=CW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CW(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 DW(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 jW=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},PW=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.top,l=void 0===a?0:a,s=e.left,u=void 0===s?0:s,c=e.width,d=void 0===c?0:c,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?EW(Object(n),!0).forEach((function(t){OW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:r,y:i,top:l,left:u,width:d,height:p},DW(e,SW));return GE(r)&&GE(i)&&GE(d)&&GE(p)&&GE(l)&&GE(u)?t.createElement("path",kW({},kO(g,!0),{className:Mr("recharts-cross",h),d:jW(r,i,d,p,l,u)})):null},TW=MF,MW=AF,AW=aA;var _W=function(e,t){return e&&e.length?TW(e,AW(t),MW):void 0},RW=_o(_W),LW=MF,IW=aA,NW=$F;var $W=function(e,t){return e&&e.length?LW(e,IW(t),NW):void 0},zW=_o($W),FW=["cx","cy","angle","ticks","axisLine"],BW=["ticks","tick","angle","tickFormatter","stroke"];function KW(e){return KW="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},KW(e)}function VW(){return VW=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},VW.apply(this,arguments)}function HW(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 UW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HW(Object(n),!0).forEach((function(t){JW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WW(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 ZW(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,QW(r.key),r)}}function qW(e,t,n){return t=YW(t),function(e,t){if(t&&("object"===KW(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,GW()?Reflect.construct(t,n||[],YW(e).constructor):t.apply(e,n))}function GW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GW=function(){return!!e})()}function YW(e){return YW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YW(e)}function XW(e,t){return XW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XW(e,t)}function JW(e,t,n){return(t=QW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QW(e){var t=function(e,t){if("object"!=KW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=KW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KW(t)?t:String(t)}var eZ=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),qW(this,n,arguments)}var r,o,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&&XW(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return tV(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=RW(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:zW(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,l=WW(e,FW),s=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=tV(n,r,s[0],o),c=tV(n,r,s[1],o),d=UW(UW(UW({},kO(l,!1)),{},{fill:"none"},kO(a,!1)),{},{x1:u.x,y1:u.y,x2:c.x,y2:c.y});return t.createElement("line",VW({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.angle,l=r.tickFormatter,s=r.stroke,u=WW(r,BW),c=this.getTickTextAnchor(),d=kO(u,!1),f=kO(i,!1),p=o.map((function(r,o){var u=e.getTickValueCoord(r),p=UW(UW(UW(UW({textAnchor:c,transform:"rotate(".concat(90-a,", ").concat(u.x,", ").concat(u.y,")")},d),{},{stroke:"none",fill:s},f),{},{index:o},u),{},{payload:r});return t.createElement(LO,VW({className:Mr("recharts-polar-radius-axis-tick",aV(i)),key:"tick-".concat(r.coordinate)},cO(e.props,r,o)),n.renderTickItem(i,p,l?l(r.value,o):r.value))}));return t.createElement(LO,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(LO,{className:Mr("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),o&&this.renderTicks(),xV.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement(ZL,VW({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],o&&ZW(r.prototype,o),i&&ZW(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function tZ(e){return tZ="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},tZ(e)}function nZ(){return nZ=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},nZ.apply(this,arguments)}function rZ(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 oZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rZ(Object(n),!0).forEach((function(t){cZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iZ(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,dZ(r.key),r)}}function aZ(e,t,n){return t=sZ(t),function(e,t){if(t&&("object"===tZ(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||[],sZ(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 sZ(e){return sZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sZ(e)}function uZ(e,t){return uZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uZ(e,t)}function cZ(e,t,n){return(t=dZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dZ(e){var t=function(e,t){if("object"!=tZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tZ(t)?t:String(t)}JW(eZ,"displayName","PolarRadiusAxis"),JW(eZ,"axisType","radiusAxis"),JW(eZ,"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 fZ=Math.PI/180,pZ=1e-5,hZ=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),aZ(this,n,arguments)}var r,o,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&&uZ(e,t)}(n,t.PureComponent),r=n,o=[{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=tV(n,r,o,e.coordinate),s=tV(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*fZ);return n>pZ?"outer"===t?"start":"end":n<-pZ?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,l=oZ(oZ({},kO(this.props,!1)),{},{fill:"none"},kO(i,!1));if("circle"===a)return t.createElement(xW,nZ({className:"recharts-polar-angle-axis-line"},l,{cx:n,cy:r,r:o}));var s=this.props.ticks.map((function(e){return tV(n,r,o,e.coordinate)}));return t.createElement(bW,nZ({className:"recharts-polar-angle-axis-line"},l,{points:s}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.tickLine,l=r.tickFormatter,s=r.stroke,u=kO(this.props,!1),c=kO(i,!1),d=oZ(oZ({},u),{},{fill:"none"},kO(a,!1)),f=o.map((function(r,o){var f=e.getTickLineCoord(r),p=oZ(oZ(oZ({textAnchor:e.getTickTextAnchor(r)},u),{},{stroke:"none",fill:s},c),{},{index:o,payload:r,x:f.x2,y:f.y2});return t.createElement(LO,nZ({className:Mr("recharts-polar-angle-axis-tick",aV(i)),key:"tick-".concat(r.coordinate)},cO(e.props,r,o)),a&&t.createElement("line",nZ({className:"recharts-polar-angle-axis-tick-line"},d,f)),i&&n.renderTickItem(i,p,l?l(r.value,o):r.value))}));return t.createElement(LO,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(LO,{className:Mr("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement(ZL,nZ({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],o&&iZ(r.prototype,o),i&&iZ(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();cZ(hZ,"displayName","PolarAngleAxis"),cZ(hZ,"axisType","angleAxis"),cZ(hZ,"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 gZ=fT(Object.getPrototypeOf,Object),mZ=xS,vZ=gZ,yZ=CS,bZ=Function.prototype,wZ=Object.prototype,xZ=bZ.toString,CZ=wZ.hasOwnProperty,SZ=xZ.call(Object);var kZ=_o((function(e){if(!yZ(e)||"[object Object]"!=mZ(e))return!1;var t=vZ(e);if(null===t)return!0;var n=CZ.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xZ.call(n)==SZ})),EZ=xS,OZ=CS;var DZ=_o((function(e){return!0===e||!1===e||OZ(e)&&"[object Boolean]"==EZ(e)}));function jZ(e){return jZ="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},jZ(e)}function PZ(){return PZ=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},PZ.apply(this,arguments)}function TZ(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MZ(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 MZ(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 MZ(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 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 _Z(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){RZ(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 RZ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=jZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jZ(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 LZ,IZ=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")},NZ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$Z=function(e){var n=_Z(_Z({},NZ),e),r=t.useRef(),o=TZ(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var l=n.x,s=n.y,u=n.upperWidth,c=n.lowerWidth,d=n.height,f=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,m=n.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||d!==+d||0===u&&0===c||0===d)return null;var v=Mr("recharts-trapezoid",f);return m?t.createElement(eW,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:u,lowerWidth:c,height:d,x:l,y:s},duration:h,animationEasing:p,isActive:m},(function(e){var o=e.upperWidth,a=e.lowerWidth,l=e.height,s=e.x,u=e.y;return t.createElement(eW,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:p},t.createElement("path",PZ({},kO(n,!0),{className:v,d:IZ(s,u,o,a,l),ref:r})))})):t.createElement("g",null,t.createElement("path",PZ({},kO(n,!0),{className:v,d:IZ(l,s,u,c,d)})))},zZ=["option","shapeType","propTransformer","activeClassName","isActive"];function FZ(e){return FZ="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},FZ(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 KZ(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 VZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KZ(Object(n),!0).forEach((function(t){HZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HZ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=FZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FZ(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 UZ(e,t){return VZ(VZ({},t),e)}function WZ(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(dW,r);case"trapezoid":return t.createElement($Z,r);case"sector":return t.createElement(UV,r);case"symbols":if(function(e,t){return"symbols"===e}(n))return t.createElement(Oj,r);break;default:return null}}function ZZ(e){var n,r=e.option,o=e.shapeType,i=e.propTransformer,a=void 0===i?UZ:i,l=e.activeClassName,s=void 0===l?"recharts-active-shape":l,u=e.isActive,c=BZ(e,zZ);if(t.isValidElement(r))n=t.cloneElement(r,VZ(VZ({},c),function(e){return t.isValidElement(e)?e.props:e}(r)));else if(NS(r))n=r(c);else if(kZ(r)&&!DZ(r)){var d=a(r,c);n=t.createElement(WZ,{shapeType:o,elementProps:d})}else{var f=c;n=t.createElement(WZ,{shapeType:o,elementProps:f})}return u?t.createElement(LO,{className:s},n):n}function qZ(e,t){return null!=t&&"trapezoids"in e.props}function GZ(e,t){return null!=t&&"sectors"in e.props}function YZ(e,t){return null!=t&&"points"in e.props}function XZ(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 JZ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function QZ(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function eq(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return qZ(e,t)?n="trapezoids":GZ(e,t)?n="sectors":YZ(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return qZ(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:GZ(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:YZ(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=QF(i,e),l=n.props[o].filter((function(e){var r=function(e,t){var n;return qZ(e,t)?n=XZ:GZ(e,t)?n=JZ:YZ(e,t)&&(n=QZ),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 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){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 oq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rq(Object(n),!0).forEach((function(t){dq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iq(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,fq(r.key),r)}}function aq(e,t,n){return t=sq(t),function(e,t){if(t&&("object"===tq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uq(e)}(e,lq()?Reflect.construct(t,n||[],sq(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 sq(e){return sq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sq(e)}function uq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cq(e,t){return cq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cq(e,t)}function dq(e,t,n){return(t=fq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fq(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)}var pq=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),dq(uq(t=aq(this,n,[e])),"pieRef",null),dq(uq(t),"sectorRefs",[]),dq(uq(t),"id",JE("recharts-pie-")),dq(uq(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),NS(e)&&e()})),dq(uq(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),NS(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}var r,o,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&&cq(e,t)}(n,t.PureComponent),r=n,o=[{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 r=this.props,o=r.label,i=r.labelLine,a=r.dataKey,l=r.valueKey,s=kO(this.props,!1),u=kO(o,!1),c=kO(i,!1),d=o&&o.offsetRadius||20,f=e.map((function(e,r){var f=(e.startAngle+e.endAngle)/2,p=tV(e.cx,e.cy,e.outerRadius+d,f),h=oq(oq(oq(oq({},s),e),{},{stroke:"none"},u),{},{index:r,textAnchor:n.getTextAnchor(p.x,e.cx)},p),g=oq(oq(oq(oq({},s),e),{},{fill:"none",stroke:e.fill},c),{},{index:r,points:[tV(e.cx,e.cy,e.outerRadius,f),p],key:"line"}),m=a;return TE(a)&&TE(l)?m="value":TE(a)&&(m=l),t.createElement(LO,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(r)},i&&n.renderLabelLineItem(i,g),n.renderLabelItem(o,h,CK(e,m)))}));return t.createElement(LO,{className:"recharts-pie-labels"},f)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return e.map((function(r,l){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var s=n.isActiveIndex(l),u=a&&n.hasActiveIndex()?a:null,c=s?o:u,d=oq(oq({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(LO,nq({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},cO(n.props,r,l),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(l)}),t.createElement(ZZ,nq({option:c,isActive:s,shapeType:"sector"},d)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,l=n.animationEasing,s=n.animationId,u=this.state,c=u.prevSectors,d=u.prevIsAnimationActive;return t.createElement(eW,{begin:i,duration:a,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=c&&c[t],r=t>0?PE(e,"paddingAngle",0):0;if(n){var l=tO(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=oq(oq({},e),{},{startAngle:a+r,endAngle:a+l(o)+r});i.push(s),a=s.endAngle}else{var u=e.endAngle,d=e.startAngle,f=tO(0,u-d)(o),p=oq(oq({},e),{},{startAngle:a+r,endAngle:a+f+r});i.push(p),a=p.endAngle}})),t.createElement(LO,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&&QF(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,l=n.cx,s=n.cy,u=n.innerRadius,c=n.outerRadius,d=n.isAnimationActive,f=this.state.isAnimationFinished;if(r||!o||!o.length||!GE(l)||!GE(s)||!GE(u)||!GE(c))return null;var p=Mr("recharts-pie",i);return t.createElement(LO,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),xV.renderCallByParent(this.props,null,!1),(!d||f)&&IV.renderCallByParent(this.props,o,!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,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(NS(e))return e(n);var r=Mr("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return t.createElement(nH,nq({},n,{type:"linear",className:r}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;if(NS(e)&&(o=e(n),t.isValidElement(o)))return o;var i=Mr("recharts-pie-label-text","boolean"==typeof e||NS(e)?"":e.className);return t.createElement(ZL,nq({},n,{alignmentBaseline:"middle",className:i}),o)}}],o&&iq(r.prototype,o),i&&iq(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();LZ=pq,dq(pq,"displayName","Pie"),dq(pq,"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:!wR.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),dq(pq,"parseDeltaAngle",(function(e,t){return ZE(t-e)*Math.min(Math.abs(t-e),360)})),dq(pq,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=kO(e.props,!1),i=wO(r,cL);return n&&n.length?n.map((function(e,t){return oq(oq(oq({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return oq(oq({},o),e.props)})):[]})),dq(pq,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=nV(o,i);return{cx:r+QE(e.props.cx,o,o/2),cy:n+QE(e.props.cy,i,i/2),innerRadius:QE(e.props.innerRadius,a,0),outerRadius:QE(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),dq(pq,"getComposedData",(function(e){var t=e.item,n=e.offset,r=LZ.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,l=o.endAngle,s=o.paddingAngle,u=o.dataKey,c=o.nameKey,d=o.valueKey,f=o.tooltipType,p=Math.abs(t.props.minAngle),h=LZ.parseCoordinateOfPie(t,n),g=LZ.parseDeltaAngle(a,l),m=Math.abs(g),v=u;TE(u)&&TE(d)?(NO(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):TE(u)&&(NO(!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!==CK(e,v,0)})).length,x=m-w*p-(m>=360?w:w-1)*s,C=r.reduce((function(e,t){var n=CK(t,v,0);return e+(GE(n)?n:0)}),0);C>0&&(y=r.map((function(e,t){var n,r=CK(e,v,0),o=CK(e,c,t),l=(GE(r)?r:0)/C,u=(n=t?b.endAngle+ZE(g)*s*(0!==r?1:0):a)+ZE(g)*((0!==r?p:0)+l*x),d=(n+u)/2,m=(h.innerRadius+h.outerRadius)/2,y=[{name:o,value:r,payload:e,dataKey:v,type:f}],w=tV(h.cx,h.cy,m,d);return b=oq(oq(oq({percent:l,cornerRadius:i,name:o,tooltipPayload:y,midAngle:d,middleRadius:m,tooltipPosition:w},e),h),{},{value:CK(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:ZE(g)*s})})));return oq(oq({},h),{},{sectors:y,data:r})}));var hq=Math.ceil,gq=Math.max;var mq=WR,vq=1/0;var yq=function(e){return e?(e=mq(e))===vq||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},bq=function(e,t,n,r){for(var o=-1,i=gq(hq((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},wq=K_,xq=yq;var Cq=_o(function(e){return function(t,n,r){return r&&"number"!=typeof r&&wq(t,n,r)&&(n=r=void 0),t=xq(t),void 0===n?(n=t,t=0):n=xq(n),r=void 0===r?t<n?1:-1:xq(r),bq(t,n,r,e)}}());function Sq(e){return Sq="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},Sq(e)}function kq(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 Eq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kq(Object(n),!0).forEach((function(t){Oq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oq(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Sq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Sq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sq(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 Dq=["Webkit","Moz","O","ms"];function jq(e){return jq="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},jq(e)}function Pq(){return Pq=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},Pq.apply(this,arguments)}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 Mq(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){$q(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 Aq(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 _q(e,t,n){return t=Lq(t),function(e,t){if(t&&("object"===jq(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,Rq()?Reflect.construct(t,n||[],Lq(e).constructor):t.apply(e,n))}function Rq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rq=function(){return!!e})()}function Lq(e){return Lq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lq(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"!=jq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jq(t)?t:String(t)}var Fq=function(e){return e.changedTouches&&!!e.changedTouches.length},Bq=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),$q(Iq(t=_q(this,n,[e])),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),$q(Iq(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),$q(Iq(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})})),t.detachDragEndListener()})),$q(Iq(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),$q(Iq(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),$q(Iq(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),$q(Iq(t),"handleSlideDragStart",(function(e){var n=Fq(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(Iq(t),"startX"),endX:t.handleTravellerDragStart.bind(Iq(t),"endX")},t.state={},t}var r,o,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)}(n,t.PureComponent),r=n,o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,s=Math.min(t,r),u=Math.max(t,r),c=n.getIndexInRange(o,s),d=n.getIndexInRange(o,u);return{startIndex:c-c%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=CK(n[e],o,e);return NS(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,u=i.startIndex,c=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===u&&p.endIndex===c||!d||d(p),this.setState({startX:r+f,endX:o+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=Fq(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,u=l.width,c=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+u-c-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($q($q({},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 u=s+e;if(!(-1===u||u>=o.length)){var c=o[u];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState($q({},t,c),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,l=e.stroke;return t.createElement("rect",{stroke:l,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,l=e.children,s=e.padding,u=t.Children.only(l);return u?t.cloneElement(u,{x:n,y:r,width:o,height:i,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,r){var o,i,a=this,l=this.props,s=l.y,u=l.travellerWidth,c=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=Mq(Mq({},kO(this.props,!1)),{},{x:m,y:s,width:u,height:c}),y=f||"Min value: ".concat(null===(o=p[h])||void 0===o?void 0:o.name,", Max value: ").concat(null===(i=p[g])||void 0===i?void 0:i.name);return t.createElement(LO,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(d,v))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,l=r.travellerWidth,s=Math.min(e,n)+l,u=Math.max(Math.abs(n-e)-l,0);return t.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:o,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,l=e.stroke,s=this.state,u=s.startX,c=s.endX,d={pointerEvents:"none",fill:l};return t.createElement(LO,{className:"recharts-brush-texts"},t.createElement(ZL,Pq({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,c)-5,y:o+i/2},d),this.getTextOfTick(n)),t.createElement(ZL,Pq({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,c)+a+5,y:o+i/2},d),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,l=e.width,s=e.height,u=e.alwaysShowText,c=this.state,d=c.startX,f=c.endX,p=c.isTextActive,h=c.isSlideMoving,g=c.isTravellerMoving,m=c.isTravellerFocused;if(!n||!n.length||!GE(i)||!GE(a)||!GE(l)||!GE(s)||l<=0||s<=0)return null;var v,y,b,w,x=Mr("recharts-brush",r),C=1===t.Children.count(o),S=(y="none",b=(v="userSelect").replace(/(\w)/,(function(e){return e.toUpperCase()})),(w=Dq.reduce((function(e,t){return Eq(Eq({},e),{},Oq({},t+b,y))}),{}))[v]=y,w);return t.createElement(LO,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(d,f),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||g||m||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,l=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:l,x2:n+o-1,y2:l,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:l+2,x2:n+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):NS(e)?e(r):n.renderDefaultTraveller(r)}},{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 Mq({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=CI().domain(Cq(0,l)).range([o,o+i-a]),u=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:u}}({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 u=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:u}}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}}],o&&Aq(r.prototype,o),i&&Aq(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();$q(Bq,"displayName","Brush"),$q(Bq,"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 Kq=r_;var Vq=nP,Hq=aA,Uq=function(e,t){var n;return Kq(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Wq=iS,Zq=K_;var qq=function(e,t,n){var r=Wq(e)?Vq:Uq;return n&&Zq(e,t,n)&&(t=void 0),r(e,Hq(t))},Gq=_o(qq),Yq=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},Xq=D_;var Jq=function(e,t,n){"__proto__"==t&&Xq?Xq(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Qq=Jq,eG=t_,tG=aA;var nG=function(e,t){var n={};return t=tG(t),eG(e,(function(e,r,o){Qq(n,r,t(e,r,o))})),n},rG=_o(nG);var oG=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},iG=r_;var aG=oG,lG=function(e,t){var n=!0;return iG(e,(function(e,r,o){return n=!!t(e,r,o)})),n},sG=aA,uG=iS,cG=K_;var dG=function(e,t,n){var r=uG(e)?aG:lG;return n&&cG(e,t,n)&&(t=void 0),r(e,sG(t))},fG=_o(dG),pG=["x","y"];function hG(e){return hG="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},hG(e)}function gG(){return gG=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},gG.apply(this,arguments)}function mG(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 vG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mG(Object(n),!0).forEach((function(t){yG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yG(e,t,n){return t=function(e){var t=function(e,t){if("object"!=hG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hG(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 bG(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 wG(e,t){var n=e.x,r=e.y,o=bG(e,pG),i="".concat(n),a=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||o.height),c=parseInt(u,10),d="".concat(t.width||o.width),f=parseInt(d,10);return vG(vG(vG(vG(vG({},t),o),a?{x:a}:{}),s?{y:s}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function xG(e){return t.createElement(ZZ,gG({shapeType:"rectangle",propTransformer:wG,activeClassName:"recharts-active-bar"},e))}var CG,SG=["value","background"];function kG(e){return kG="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},kG(e)}function EG(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 OG(){return OG=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},OG.apply(this,arguments)}function DG(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 jG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DG(Object(n),!0).forEach((function(t){LG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PG(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,IG(r.key),r)}}function TG(e,t,n){return t=AG(t),function(e,t){if(t&&("object"===kG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _G(e)}(e,MG()?Reflect.construct(t,n||[],AG(e).constructor):t.apply(e,n))}function MG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MG=function(){return!!e})()}function AG(e){return AG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AG(e)}function _G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RG(e,t){return RG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RG(e,t)}function LG(e,t,n){return(t=IG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IG(e){var t=function(e,t){if("object"!=kG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kG(t)?t:String(t)}var NG=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return LG(_G(e=TG(this,n,[].concat(r))),"state",{isAnimationFinished:!1}),LG(_G(e),"id",JE("recharts-bar-")),LG(_G(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),LG(_G(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var r,o,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&&RG(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.dataKey,a=r.activeIndex,l=r.activeBar,s=kO(this.props,!1);return e&&e.map((function(e,r){var u=r===a,c=u?l:o,d=jG(jG(jG({},s),e),{},{isActive:u,option:c,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(LO,OG({className:"recharts-bar-rectangle"},cO(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(xG,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,l=n.animationDuration,s=n.animationEasing,u=n.animationId,c=this.state.prevData;return t.createElement(eW,{begin:a,duration:l,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=c&&c[t];if(n){var r=tO(n.x,e.x),a=tO(n.y,e.y),l=tO(n.width,e.width),s=tO(n.height,e.height);return jG(jG({},e),{},{x:r(i),y:a(i),width:l(i),height:s(i)})}if("horizontal"===o){var u=tO(0,e.height)(i);return jG(jG({},e),{},{y:e.y+e.height-u,height:u})}var d=tO(0,e.width)(i);return jG(jG({},e),{},{width:d})}));return t.createElement(LO,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&&QF(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,o=n.dataKey,i=n.activeIndex,a=kO(this.props.background,!1);return r.map((function(n,r){n.value;var l=n.background,s=EG(n,SG);if(!l)return null;var u=jG(jG(jG(jG(jG({},s),{},{fill:"#eee"},l),a),cO(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return t.createElement(xG,OG({option:e.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,l=r.layout,s=wO(r.children,cK);if(!s)return null;var u="vertical"===l?o[0].height/2:o[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:CK(e,t)}},d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(LO,d,s.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,offset:u,dataPointFormatter:c})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,l=e.left,s=e.top,u=e.width,c=e.height,d=e.isAnimationActive,f=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Mr("recharts-bar",o),m=i&&i.allowDataOverflow,v=a&&a.allowDataOverflow,y=m||v,b=TE(p)?this.id:p;return t.createElement(LO,{className:g},m||v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:m?l:l-u/2,y:v?s:s-c/2,width:m?u:2*u,height:v?c:2*c}))):null,t.createElement(LO,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,b),(!d||h)&&IV.renderCallByParent(this.props,r))}}],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}}],o&&PG(r.prototype,o),i&&PG(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function $G(e){return $G="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},$G(e)}function zG(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,VG(r.key),r)}}function FG(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 BG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FG(Object(n),!0).forEach((function(t){KG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KG(e,t,n){return(t=VG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VG(e){var t=function(e,t){if("object"!=$G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$G(t)?t:String(t)}CG=NG,LG(NG,"displayName","Bar"),LG(NG,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!wR.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),LG(NG,"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,u=e.stackedData,c=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=u?b.scale.domain():null,x=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}),C=wO(v,cL),S=d.map((function(e,t){var r,d,f,g,v,b;u?r=function(e,t){if(!t||2!==t.length||!GE(t[0])||!GE(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(!GE(e[0])||e[0]<n)&&(o[0]=n),(!GE(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(u[c+t],w):(r=CK(e,m),Array.isArray(r)||(r=[x,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?oK(0,"minPointSize callback function received a value with type of ".concat(hG(n),". Currently only numbers are supported.")):oK()),t)}}(y,CG.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=zK({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 j=O-D;if(v=Number.isNaN(j)?0:j,b={x:d,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(v)<Math.abs(S)){var P=ZE(v||S)*(Math.abs(S)-Math.abs(v));f-=P,v+=P}}else{var T=[i.scale(r[0]),i.scale(r[1])],M=T[0],A=T[1];if(d=M,f=zK({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),g=A-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+=ZE(g||S)*(Math.abs(S)-Math.abs(g))}return jG(jG(jG({},e),{},{x:d,y:f,width:g,height:v,value:u?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[WK(n,e)],tooltipPosition:{x:d+g/2,y:f+v/2}})}));return jG({data:S,layout:h},f)}));var HG=function(e,t,n,r,o){var i=e.width,a=e.height,l=e.layout,s=e.children,u=Object.keys(t),c={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=!!xO(s,NG);return u.reduce((function(i,a){var s,u,f,p,h,g=t[a],m=g.orientation,v=g.domain,y=g.padding,b=void 0===y?{}:y,w=g.mirror,x=g.reversed,C="".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 j=QE(e.barCategoryGap,O*D),P=O*D/2;s=P-j-(P-j)/D*j}}}u="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,x&&(u=[u[1],u[0]]);var T=AK(g,o,d),M=T.scale,A=T.realScaleType;M.domain(v).range(u),RK(M);var _=NK(M,BG(BG({},g),{},{realScaleType:A}));"xAxis"===r?(h="top"===m&&!w||"bottom"===m&&w,f=n.left,p=c[C]-h*g.height):"yAxis"===r&&(h="left"===m&&!w||"right"===m&&w,f=c[C]-h*g.width,p=n.top);var R=BG(BG(BG({},g),_),{},{realScaleType:A,x:f,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=HK(R,_),g.hide||"xAxis"!==r?g.hide||(c[C]+=(h?-1:1)*R.width):c[C]+=(h?-1:1)*R.height,BG(BG({},i),{},KG({},a,R))}),{})},UG=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)}},WG=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&&zG(t.prototype,n),r&&zG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();KG(WG,"EPS",1e-4);var ZG=function(e){var t=Object.keys(e).reduce((function(t,n){return BG(BG({},t),{},KG({},n,WG.create(e[n])))}),{});return BG(BG({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return rG(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return fG(e,(function(e,n){return t[n].isInRange(e)}))}})};var qG=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)},GG=aA,YG=wT,XG=kT;var JG=function(e){return function(t,n,r){var o=Object(t);if(!YG(t)){var i=GG(n);t=XG(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}},QG=yq;var eY=lA,tY=aA,nY=function(e){var t=QG(e),n=t%1;return t==t?n?t-n:t:0},rY=Math.max;var oY=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:nY(n);return o<0&&(o=rY(r+o,0)),eY(e,tY(t),o)},iY=_o(JG(oY)),aY=nE((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 sY=t.createContext(void 0),uY=t.createContext(void 0),cY=t.createContext(void 0),dY=t.createContext({}),fY=t.createContext(void 0),pY=t.createContext(0),hY=t.createContext(0),gY=function(e){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=e.clipPathId,l=e.children,s=e.width,u=e.height,c=aY(i);return t.createElement(sY.Provider,{value:r},t.createElement(uY.Provider,{value:o},t.createElement(dY.Provider,{value:i},t.createElement(cY.Provider,{value:c},t.createElement(fY.Provider,{value:a},t.createElement(pY.Provider,{value:u},t.createElement(hY.Provider,{value:s},l)))))))};function mY(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var vY=function(e){var n=t.useContext(sY);null==n&&("production"!==process.env.NODE_ENV?oK(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):oK());var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?oK(0,'Could not find xAxis by id "'.concat(e,'" [').concat(lY(e),"]. ").concat(mY(n))):oK()),r},yY=function(e){var n=t.useContext(uY);null==n&&("production"!==process.env.NODE_ENV?oK(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):oK());var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?oK(0,'Could not find yAxis by id "'.concat(e,'" [').concat(lY(e),"]. ").concat(mY(n))):oK()),r},bY=function(){return t.useContext(hY)},wY=function(){return t.useContext(pY)};function xY(e){return xY="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},xY(e)}function CY(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 SY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CY(Object(n),!0).forEach((function(t){kY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=xY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xY(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 EY(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OY(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 OY(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 OY(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 DY(){return DY=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},DY.apply(this,arguments)}function jY(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,l=e.shape,s=e.className,u=e.alwaysShow,c=t.useContext(fY),d=vY(i),f=yY(a),p=t.useContext(cY);if(!c||!p)return null;NO(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,i,a,l,s){var u=o.x,c=o.y,d=o.width,f=o.height;if(n){var p=s.y,h=e.y.apply(p,{position:i});if(Yq(s,"discard")&&!e.y.isInRange(h))return null;var g=[{x:u+d,y:h},{x:u,y:h}];return"left"===l?g.reverse():g}if(t){var m=s.x,v=e.x.apply(m,{position:i});if(Yq(s,"discard")&&!e.x.isInRange(v))return null;var y=[{x:v,y:c+f},{x:v,y:c}];return"top"===a?y.reverse():y}if(r){var b=s.segment.map((function(t){return e.apply(t,{position:i})}));return Yq(s,"discard")&&Gq(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(ZG({x:d.scale,y:f.scale}),YE(n),YE(r),o&&2===o.length,p,e.position,d.orientation,f.orientation,e);if(!h)return null;var g=EY(h,2),m=g[0],v=m.x,y=m.y,b=g[1],w=b.x,x=b.y,C=SY(SY({clipPath:Yq(e,"hidden")?"url(#".concat(c,")"):void 0},kO(e,!0)),{},{x1:v,y1:y,x2:w,y2:x});return t.createElement(LO,{className:Mr("recharts-reference-line",s)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement("line",DY({},n,{className:"recharts-reference-line-line"}))}(l,C),xV.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return UG({x:t,y:n},{x:r,y:o})}({x1:v,y1:y,x2:w,y2:x})))}function PY(e){return PY="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},PY(e)}function TY(){return TY=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},TY.apply(this,arguments)}function MY(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 AY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MY(Object(n),!0).forEach((function(t){_Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _Y(e,t,n){return t=function(e){var t=function(e,t){if("object"!=PY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jY.displayName="ReferenceLine",jY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function RY(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,l=YE(n),s=YE(r);if(NO(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=ZG({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return Yq(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var c=u.x,d=u.y,f=e.shape,p=e.className,h=AY(AY({clipPath:Yq(e,"hidden")?"url(#".concat(a,")"):void 0},kO(e,!0)),{},{cx:c,cy:d});return t.createElement(LO,{className:Mr("recharts-reference-dot",p)},RY.renderDot(f,h),xV.renderCallByParent(e,{x:c-o,y:d-o,width:2*o,height:2*o}))}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)}function IY(){return IY=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},IY.apply(this,arguments)}function NY(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 $Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NY(Object(n),!0).forEach((function(t){zY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=LY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}RY.displayName="ReferenceDot",RY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},RY.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement(xW,TY({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function FY(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,l=e.alwaysShow,s=e.clipPathId;NO(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=YE(n),c=YE(r),d=YE(o),f=YE(i),p=e.shape;if(!(u||c||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,u=o.xAxis,c=o.yAxis;if(!u||!c)return null;var d=ZG({x:u.scale,y:c.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!Yq(o,"discard")||d.isInRange(f)&&d.isInRange(p)?UG(f,p):null}(u,c,d,f,e);if(!h&&!p)return null;var g=Yq(e,"hidden")?"url(#".concat(s,")"):void 0;return t.createElement(LO,{className:Mr("recharts-reference-area",a)},FY.renderRect(p,$Y($Y({clipPath:g},kO(e,!0)),h)),xV.renderCallByParent(e,h))}function BY(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 KY(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 VY(e){return VY="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},VY(e)}function HY(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 UY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HY(Object(n),!0).forEach((function(t){WY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=VY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VY(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 ZY(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,c=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(GE(s)||wR.isSsr)return function(e,t){return BY(e,t+1)}(o,"number"==typeof s&&GE(s)?s:0);var f=[],p="top"===l||"bottom"===l?"width":"height",h=c&&"width"===p?yL(c,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=NS(u)?u(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 qG(r,n)}(yL(o,{fontSize:t,letterSpacing:n}),h,d):yL(o,{fontSize:t,letterSpacing:n})[p]},m=o.length>=2?ZE(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,u=0,c=1,d=l,f=function(){var t=null==r?void 0:r[u];if(void 0===t)return{v:BY(r,c)};var i,a=u,f=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===u||KY(e,p,f,d,s);h||(u=0,d=l,c+=1),h&&(d=p+e*(f()/2+o),u+=c)};c<=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,u=t.end;if(i){var c=r[l-1],d=n(c,l-1),f=e*(c.coordinate+e*d/2-u);a[l-1]=c=UY(UY({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate}),KY(e,c.tickCoord,(function(){return d}),s,u)&&(u=c.tickCoord-e*(d/2+o),a[l-1]=UY(UY({},c),{},{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 c=e*(i.coordinate-e*l()/2-s);a[t]=i=UY(UY({},i),{},{tickCoord:c<0?i.coordinate-c*e:i.coordinate})}else a[t]=i=UY(UY({},i),{},{tickCoord:i.coordinate});KY(e,i.tickCoord,l,s,u)&&(s=i.tickCoord+e*(l()/2+o),a[t]=UY(UY({},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,u=function(t){var r,u=i[t],c=function(){return void 0===r&&(r=n(u,t)),r};if(t===a-1){var d=e*(u.coordinate+e*c()/2-s);i[t]=u=UY(UY({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate})}else i[t]=u=UY(UY({},u),{},{tickCoord:u.coordinate});KY(e,u.tickCoord,c,l,s)&&(s=u.tickCoord-e*(c()/2+o),i[t]=UY(UY({},u),{},{isShow:!0}))},c=a-1;c>=0;c--)u(c);return i}(m,v,g,o,a),f.filter((function(e){return e.isShow})))}FY.displayName="ReferenceArea",FY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},FY.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement(dW,IY({},n,{className:"recharts-reference-area-rect"}))};var qY=["viewBox"],GY=["viewBox"],YY=["ticks"];function XY(e){return XY="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},XY(e)}function JY(){return JY=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},JY.apply(this,arguments)}function QY(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 eX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QY(Object(n),!0).forEach((function(t){lX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tX(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 nX(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,sX(r.key),r)}}function rX(e,t,n){return t=iX(t),function(e,t){if(t&&("object"===XY(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,oX()?Reflect.construct(t,n||[],iX(e).constructor):t.apply(e,n))}function oX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oX=function(){return!!e})()}function iX(e){return iX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iX(e)}function aX(e,t){return aX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aX(e,t)}function lX(e,t,n){return(t=sX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sX(e){var t=function(e,t){if("object"!=XY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XY(t)?t:String(t)}var uX=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=rX(this,n,[e])).state={fontSize:"",letterSpacing:""},t}var r,o,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&&aX(e,t)}(n,t.Component),r=n,o=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=tX(e,qY),o=this.props,i=o.viewBox,a=tX(o,GY);return!rO(n,i)||!rO(r,a)||!rO(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,u=l.y,c=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=GE(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*d)-m*v)-m*g,i=y;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*c)-m*v)-m*g,a=y;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*c)+m*v)+m*g,a=y;break;default:t=n=e.coordinate,a=(r=(o=u+ +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,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,l=e.mirror,s=e.axisLine,u=eX(eX(eX({},kO(this.props,!1)),kO(s,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var c=+("top"===a&&!l||"bottom"===a&&l);u=eX(eX({},u),{},{x1:n,y1:r+c*i,x2:n+o,y2:r+c*i})}else{var d=+("left"===a&&!l||"right"===a&&l);u=eX(eX({},u),{},{x1:n+d*o,y1:r,x2:n+d*o,y2:r+i})}return t.createElement("line",JY({},u,{className:Mr("recharts-cartesian-axis-line",PE(s,"className"))}))}},{key:"renderTicks",value:function(e,r,o){var i=this,a=this.props,l=a.tickLine,s=a.stroke,u=a.tick,c=a.tickFormatter,d=a.unit,f=ZY(eX(eX({},this.props),{},{ticks:e}),r,o),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=kO(this.props,!1),m=kO(u,!1),v=eX(eX({},g),{},{fill:"none"},kO(l,!1)),y=f.map((function(e,r){var o=i.getTickLineCoord(e),a=o.line,y=o.tick,b=eX(eX(eX(eX({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:s},m),y),{},{index:r,payload:e,visibleTicksCount:f.length,tickFormatter:c});return t.createElement(LO,JY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},cO(i.props,e,r)),l&&t.createElement("line",JY({},v,a,{className:Mr("recharts-cartesian-axis-tick-line",PE(l,"className"))})),u&&n.renderTickItem(u,b,"".concat(NS(c)?c(e.value,r):e.value).concat(d||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,l=n.className;if(n.hide)return null;var s=this.props,u=s.ticks,c=tX(s,YY),d=u;return NS(a)&&(d=u&&u.length>0?a(this.props):a(c)),o<=0||i<=0||!d||!d.length?null:t.createElement(LO,{className:Mr("recharts-cartesian-axis",l),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),xV.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement(ZL,JY({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],o&&nX(r.prototype,o),i&&nX(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();lX(uX,"displayName","CartesianAxis"),lX(uX,"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 cX=["x1","y1","x2","y2","key"],dX=["offset"];function fX(e){return fX="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},fX(e)}function pX(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 hX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pX(Object(n),!0).forEach((function(t){gX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=fX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fX(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 mX(){return mX=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},mX.apply(this,arguments)}function vX(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 yX=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height;return t.createElement("rect",{x:o,y:i,width:a,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function bX(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(NS(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,l=n.y2,s=n.key,u=vX(n,cX),c=kO(u,!1);c.offset;var d=vX(c,dX);r=t.createElement("line",mX({},d,{x1:o,y1:i,x2:a,y2:l,fill:"none",key:s}))}return r}function wX(e){var n=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(t,o){var a=hX(hX({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(o),index:o});return bX(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function xX(e){var n=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(t,o){var a=hX(hX({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(o),index:o});return bX(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function CX(e){var n=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,s=e.horizontalPoints,u=e.horizontal;if(!(void 0===u||u)||!n||!n.length)return null;var c=s.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var d=c.map((function(e,s){var u=!c[s+1]?i+l-e:c[s+1]-e;if(u<=0)return null;var d=s%n.length;return t.createElement("rect",{key:"react-".concat(s),y:e,x:o,height:u,width:a,stroke:"none",fill:n[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function SX(e){var n=e.vertical,r=void 0===n||n,o=e.verticalFill,i=e.fillOpacity,a=e.x,l=e.y,s=e.width,u=e.height,c=e.verticalPoints;if(!r||!o||!o.length)return null;var d=c.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,n){var r=!d[n+1]?a+s-e:d[n+1]-e;if(r<=0)return null;var c=n%o.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:l,width:r,height:u,stroke:"none",fill:o[c],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var kX=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return jK(ZY(hX(hX(hX({},uX.defaultProps),n),{},{ticks:PK(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},EX=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return jK(ZY(hX(hX(hX({},uX.defaultProps),n),{},{ticks:PK(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},OX={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function DX(e){var n,r,o,i,a,l,s,u,c=bY(),d=wY(),f=t.useContext(dY),p=hX(hX({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:OX.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:OX.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:OX.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:OX.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:OX.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:OX.verticalFill,x:GE(e.x)?e.x:f.left,y:GE(e.y)?e.y:f.top,width:GE(e.width)?e.width:f.width,height:GE(e.height)?e.height:f.height}),h=p.x,g=p.y,m=p.width,v=p.height,y=p.syncWithTicks,b=p.horizontalValues,w=p.verticalValues,x=(s=t.useContext(sY),eO(s)),C=(u=t.useContext(uY),iY(u,(function(e){return fG(e.domain,Number.isFinite)}))||eO(u));if(!GE(m)||m<=0||!GE(v)||v<=0||!GE(h)||h!==+h||!GE(g)||g!==+g)return null;var S=p.verticalCoordinatesGenerator||kX,k=p.horizontalCoordinatesGenerator||EX,E=p.horizontalPoints,O=p.verticalPoints;if((!E||!E.length)&&NS(k)){var D=b&&b.length,j=k({yAxis:C?hX(hX({},C),{},{ticks:D?b:C.ticks}):void 0,width:c,height:d,offset:f},!!D||y);NO(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fX(j),"]")),Array.isArray(j)&&(E=j)}if((!O||!O.length)&&NS(S)){var P=w&&w.length,T=S({xAxis:x?hX(hX({},x),{},{ticks:P?w:x.ticks}):void 0,width:c,height:d,offset:f},!!P||y);NO(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fX(T),"]")),Array.isArray(T)&&(O=T)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(yX,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height}),t.createElement(wX,mX({},p,{offset:f,horizontalPoints:E,xAxis:x,yAxis:C})),t.createElement(xX,mX({},p,{offset:f,verticalPoints:O,xAxis:x,yAxis:C})),t.createElement(CX,mX({},p,{horizontalPoints:E})),t.createElement(SX,mX({},p,{verticalPoints:O})))}DX.displayName="CartesianGrid";var jX=["type","layout","connectNulls","ref"];function PX(e){return PX="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},PX(e)}function TX(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 MX(){return MX=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},MX.apply(this,arguments)}function AX(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 _X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AX(Object(n),!0).forEach((function(t){KX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RX(e){return function(e){if(Array.isArray(e))return LX(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 LX(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 LX(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 LX(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 IX(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,VX(r.key),r)}}function NX(e,t,n){return t=zX(t),function(e,t){if(t&&("object"===PX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FX(e)}(e,$X()?Reflect.construct(t,n||[],zX(e).constructor):t.apply(e,n))}function $X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($X=function(){return!!e})()}function zX(e){return zX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zX(e)}function FX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BX(e,t){return BX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BX(e,t)}function KX(e,t,n){return(t=VX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(e){var t=function(e,t){if("object"!=PX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PX(t)?t:String(t)}var HX=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return KX(FX(e=NX(this,n,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),KX(FX(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),KX(FX(e),"getStrokeDasharray",(function(t,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,t);for(var a=Math.floor(t/i),l=t%i,s=r-t,u=[],c=0,d=0;c<o.length;d+=o[c],++c)if(d+o[c]>l){u=[].concat(RX(o.slice(0,c)),[l-d]);break}var f=u.length%2==0?[0,s]:[s];return[].concat(RX(n.repeat(o,a)),RX(u),f).map((function(e){return"".concat(e,"px")})).join(", ")})),KX(FX(e),"id",JE("recharts-line-")),KX(FX(e),"pathRef",(function(t){e.mainCurve=t})),KX(FX(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),KX(FX(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var r,o,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&&BX(e,t)}(n,t.PureComponent),r=n,o=[{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,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,l=r.layout,s=wO(r.children,cK);if(!s)return null;var u=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:CK(e.payload,t)}},c={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(LO,c,s.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,l=i.points,s=i.dataKey,u=kO(this.props,!1),c=kO(a,!0),d=l.map((function(e,t){var r=_X(_X(_X({key:"dot-".concat(t),r:3},u),c),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(o,")"):null};return t.createElement(LO,MX({className:"recharts-line-dots",key:"dots"},f),d)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,l=i.layout,s=i.connectNulls;i.ref;var u=TX(i,jX),c=_X(_X(_X({},kO(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:l,connectNulls:s});return t.createElement(nH,MX({},c,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,l=o.isAnimationActive,s=o.animationBegin,u=o.animationDuration,c=o.animationEasing,d=o.animationId,f=o.animateNewValues,p=o.width,h=o.height,g=this.state,m=g.prevPoints,v=g.totalLength;return t.createElement(eW,{begin:s,duration:u,isActive:l,easing:c,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.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=tO(r.x,e.x),a=tO(r.y,e.y);return _X(_X({},e),{},{x:i(o),y:a(o)})}if(f){var s=tO(2*p,e.x),u=tO(h/2,e.y);return _X(_X({},e),{},{x:s(o),y:u(o)})}return _X(_X({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,e,n)}var u,c=tO(0,v)(o);if(a){var d="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(c,v,d)}else u=r.generateSimpleStrokeDasharray(v,c);return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{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||!QF(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,l=n.xAxis,s=n.yAxis,u=n.top,c=n.left,d=n.width,f=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,m=1===i.length,v=Mr("recharts-line",a),y=l&&l.allowDataOverflow,b=s&&s.allowDataOverflow,w=y||b,x=TE(h)?this.id:h,C=null!==(e=kO(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,k=void 0===S?3:S,E=C.strokeWidth,O=void 0===E?2:E,D=(function(e){return e&&"object"===hO(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===D||D,P=2*k+O;return t.createElement(LO,{className:v},y||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:y?c:c-d/2,y:b?u:u-f/2,width:y?d:2*d,height:b?f:2*f})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:c-P/2,y:u-P/2,width:d+P,height:f+P}))):null,!m&&this.renderCurve(w,x),this.renderErrorBar(w,x),(m||o)&&this.renderDots(w,j,x),(!p||g)&&IV.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(RX(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(RX(r),RX(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(NS(e))r=e(n);else{var o=Mr("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(xW,MX({},n,{className:o}))}return r}}],o&&IX(r.prototype,o),i&&IX(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function UX(){return UX=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},UX.apply(this,arguments)}KX(HX,"displayName","Line"),KX(HX,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!wR.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),KX(HX,"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,u=e.offset,c=t.layout;return _X({points:s.map((function(e,t){var s=CK(e,a);return"horizontal"===c?{x:$K({axis:n,ticks:o,bandSize:l,entry:e,index:t}),y:TE(s)?null:r.scale(s),value:s,payload:e}:{x:TE(s)?null:n.scale(s),y:$K({axis:r,ticks:i,bandSize:l,entry:e,index:t}),value:s,payload:e}})),layout:c},u)}));var WX=function(e){var n=e.xAxisId,r=bY(),o=wY(),i=vY(n);return null==i?null:t.createElement(uX,UX({},i,{className:Mr("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return PK(e,!0)}}))};function ZX(){return ZX=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},ZX.apply(this,arguments)}WX.displayName="XAxis",WX.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 qX=function(e){var n=e.yAxisId,r=bY(),o=wY(),i=yY(n);return null==i?null:t.createElement(uX,ZX({},i,{className:Mr("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return PK(e,!0)}}))};function GX(e){return function(e){if(Array.isArray(e))return YX(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 YX(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 YX(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 YX(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}qX.displayName="YAxis",qX.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 XX=function(e,t,n,r,o){var i=wO(e,jY),a=wO(e,RY),l=[].concat(GX(i),GX(a)),s=wO(e,FY),u="".concat(r,"Id"),c=r[0],d=t;if(l.length&&(d=l.reduce((function(e,t){if(t.props[u]===n&&Yq(t.props,"extendDomain")&&GE(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),s.length){var f="".concat(c,"1"),p="".concat(c,"2");d=s.reduce((function(e,t){if(t.props[u]===n&&Yq(t.props,"extendDomain")&&GE(t.props[f])&&GE(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 GE(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},JX={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,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].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,u=[],c=l.length;s<c;s++)(l[s].fn!==t||o&&!l[s].once||r&&l[s].context!==r)&&u.push(l[s]);u.length?this._events[i]=1===u.length?u[0]:u: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}(JX);var QX=new(_o(JX.exports)),eJ="recharts.syncMouseEvents";function tJ(e){return tJ="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},tJ(e)}function nJ(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,oJ(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rJ(e,t,n){return(t=oJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oJ(e){var t=function(e,t){if("object"!=tJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tJ(t)?t:String(t)}var iJ=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rJ(this,"activeIndex",0),rJ(this,"coordinateList",[]),rJ(this,"layout","horizontal")}return nJ(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,u=void 0===s?null:s,c=e.mouseHandlerCallback,d=void 0===c?null:c;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!=u?u: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,u=r+a+l,c=o+this.offset.top+i/2+s;this.mouseHandlerCallback({pageX:u,pageY:c})}}}]),e}();function aJ(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[tV(t,n,r,o),tV(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 aJ(t);var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,d=t.angle,f=tV(l,s,u,d),p=tV(l,s,c,d);r=f.x,o=f.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function sJ(e){return sJ="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},sJ(e)}function uJ(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 cJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uJ(Object(n),!0).forEach((function(t){dJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dJ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=sJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sJ(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 fJ(e){var n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,d=e.layout,f=e.chartName;if(!r||!r.props.cursor||!i||!a||"ScatterChart"!==f&&"axis"!==o)return null;var p=nH;if("ScatterChart"===f)n=a,p=PW;else if("BarChart"===f)n=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,a,s,c),p=dW;else if("radial"===d){var h=aJ(a),g=h.cx,m=h.cy,v=h.radius;n={cx:g,cy:m,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=UV}else n={points:lJ(d,a,s)},p=nH;var y=cJ(cJ(cJ(cJ({stroke:"#ccc",pointerEvents:"none"},s),n),kO(r.props.cursor,!1)),{},{payload:l,payloadIndex:u,className:Mr("recharts-tooltip-cursor",r.props.cursor.className)});return t.isValidElement(r.props.cursor)?t.cloneElement(r.props.cursor,y):t.createElement(p,y)}var pJ=["item"],hJ=["children","className","width","height","style","compact","title","desc"];function gJ(e){return gJ="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},gJ(e)}function mJ(){return mJ=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},mJ.apply(this,arguments)}function vJ(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,u=!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){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||OJ(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 yJ(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 bJ(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 wJ(e,t,n){return t=CJ(t),function(e,t){if(t&&("object"===gJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return SJ(e)}(e,xJ()?Reflect.construct(t,n||[],CJ(e).constructor):t.apply(e,n))}function xJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xJ=function(){return!!e})()}function CJ(e){return CJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CJ(e)}function SJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kJ(e,t){return kJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kJ(e,t)}function EJ(e){return function(e){if(Array.isArray(e))return DJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OJ(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 OJ(e,t){if(e){if("string"==typeof e)return DJ(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)?DJ(e,t):void 0}}function DJ(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 jJ(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 PJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jJ(Object(n),!0).forEach((function(t){TJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TJ(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"!=gJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gJ(t)?t:String(t)}var AJ={xAxis:["bottom","top"],yAxis:["left","right"]},_J={width:"100%",height:"100%"},RJ={x:0,y:0};function LJ(e){return e}var IJ=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(EJ(e),EJ(n)):e}),[]);return i.length>0?i:e&&e.length&&GE(r)&&GE(o)?e.slice(r,o+1):[]};function NJ(e){return"number"===e?[0,"auto"]:void 0}var $J=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=IJ(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,l){var s,u,c=null!==(s=l.props.data)&&void 0!==s?s:t;(c&&e.dataStartIndex+e.dataEndIndex!==0&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?u=nO(void 0===c?a:c,i.dataKey,r):u=c&&c[n]||a[n];return u?[].concat(EJ(o),[WK(l,u)]):o}),[])},zJ=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,u=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 u=s>0?r[s-1].coordinate:r[a-1].coordinate,c=r[s].coordinate,d=s>=a-1?r[0].coordinate:r[s+1].coordinate,f=void 0;if(ZE(c-u)!==ZE(d-c)){var p=[];if(ZE(d-c)===ZE(l[1]-l[0])){f=d;var h=c+l[1]-l[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{f=u;var g=d+l[1]-l[0];p[0]=Math.min(c,(g+c)/2),p[1]=Math.max(c,(g+c)/2)}var m=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=r[s].index;break}}else{var v=Math.min(u,d),y=Math.max(u,d);if(e>(v+c)/2&&e<=(y+c)/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(u>=0&&s){var c=s[u]&&s[u].value,d=$J(e,t,u,c),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 PJ(PJ(PJ({},r),tV(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,s=r.angle;return PJ(PJ(PJ({},r),tV(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}return RJ}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:c,activePayload:d,activeCoordinate:f}}return null},FJ=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,u=e.layout,c=e.children,d=e.stackOffset,f=DK(u,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,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,k,E,O=IJ(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),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&&GE(r)&&GE(o))return!0}return!1})(n.props.domain,v,g)&&(S=VK(n.props.domain,null,v),!f||"number"!==g&&"auto"===b||(E=SK(O,m,"category")));var j=NJ(g);if(!S||0===S.length){var P,T=null!==(P=n.props.domain)&&void 0!==P?P:j;if(m){if(S=SK(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=Cq(0,D)):y||(S=UK(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(EJ(e),[t])}),[]))}else if("category"===g)S=y?S.filter((function(e){return""!==e&&!TE(e)})):UK(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||TE(t)?e:[].concat(EJ(e),[t])}),[]);else if("number"===g){var A=function(e,t,n,r,o){var i=t.map((function(t){return EK(e,t,n,o,r)})).filter((function(e){return!TE(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]===C&&(x||!e.props.hide)})),m,o,u);A&&(S=A)}!f||"number"!==g&&"auto"===b||(E=SK(O,m,"category"))}else S=f?Cq(0,D):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===d?[0,1]:FK(a[C].stackGroups,l,s):OK(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,u,!0);if("number"===g)S=XX(c,S,C,o,w),T&&(S=VK(T,S,v));else if("category"===g&&T){var _=T;S.every((function(e){return _.indexOf(e)>=0}))&&(S=_)}}return PJ(PJ({},t),{},TJ({},C,PJ(PJ({},n.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:k,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:f,layout:u})))}),{})},BJ=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,u=e.children,c="".concat(r,"Id"),d=wO(u,o),f={};return d&&d.length?f=FJ(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:c,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,u=e.layout,c=e.children,d=IJ(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),f=d.length,p=DK(u,o),h=-1;return n.reduce((function(e,t){var g,m=t.props[i],v=NJ("number");return e[m]?e:(h++,p?g=Cq(0,f):a&&a[m]&&a[m].hasStack?(g=FK(a[m].stackGroups,l,s),g=XX(c,g,m,o)):(g=VK(v,OK(d,n.filter((function(e){return e.props[i]===m&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=XX(c,g,m,o)),PJ(PJ({},e),{},TJ({},m,PJ(PJ({axisType:o},r.defaultProps),{},{hide:!0,orientation:PE(AJ,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:p,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:s})),f},KJ=function(e){var t=e.children,n=e.defaultShowTooltip,r=xO(t,Bq),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)}},VJ=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"}},HJ=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,u=n.children,c=n.margin||{},d=xO(u,Bq),f=xO(u,UA),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:PJ(PJ({},e),{},TJ({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:PJ(PJ({},e),{},TJ({},r,PE(e,"".concat(r))+n.height))}),{top:c.top||0,bottom:c.bottom||0}),g=PJ(PJ({},h),p),m=g.bottom;d&&(g.bottom+=d.props.height||Bq.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=gK({children:o,legendWidth:l});if(s){var u=r||{},c=u.width,d=u.height,f=s.align,p=s.verticalAlign,h=s.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&GE(e[f]))return yK(yK({},e),{},bK({},f,e[f]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&GE(e[p]))return yK(yK({},e),{},bK({},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 PJ(PJ({brushBottom:m},g),{},{width:Math.max(v,0),height:Math.max(y,0)})},UJ=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},WJ=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,l=e.validateTooltipEventTypes,s=void 0===l?["axis"]:l,u=e.axisComponents,c=e.legendContent,d=e.formatAxisMap,f=e.defaultProps,p=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=VJ(c),g=h.numericAxisName,m=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=mO(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),y=[];return n.forEach((function(n,h){var b=IJ(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:l}),w=n.props,x=w.dataKey,C=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?oK(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:"")):oK());var s=a[l];return PJ(PJ({},e),{},TJ(TJ({},r.axisType,s),"".concat(r.axisType,"Ticks"),PK(s)))}),{}),O=E[m],D=E["".concat(m,"Ticks")],j=r&&r[S]&&r[S].hasStack&&function(e,t){var n=e.props.stackId;if(YE(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),P=mO(n.type).indexOf("Bar")>=0,T=HK(O,D),M=[],A=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 u=o[a[l]].stackGroups,c=Object.keys(u),d=0,f=c.length;d<f;d++){var p=u[c[d]],h=p.items,g=p.cateAxisId,m=h.filter((function(e){return mO(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=TE(v)?t:v;i[y].push({item:m[0],stackList:m.slice(1),barSize:TE(b)?void 0:QE(b,n,0)})}}return i}({barSize:s,stackGroups:r,totalSize:UJ(E,m)});if(P){var _,R,L=TE(C)?p:C,I=null!==(_=null!==(R=HK(O,D,!0))&&void 0!==R?R:L)&&void 0!==_?_: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,u=QE(t,r,0,!0),c=[];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)*u)>=r&&(p-=(l-1)*u,u=0),p>=r&&f>0&&(d=!0,p=l*(f*=.9));var h={offset:((r-p)/2>>0)-u,size:0};s=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+u,size:d?f:t.barSize}},r=[].concat(wK(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}),c)}else{var g=QE(n,r,0,!0);r-2*g-(l-1)*u<=0&&(u=0);var m=(r-2*g-(l-1)*u)/l;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;s=i.reduce((function(e,t,n){var r=[].concat(wK(e),[{item:t.item,position:{offset:g+(m+u)*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}),c)}return s}({barGap:d,barCategoryGap:f,bandSize:I!==T?I:T,sizeList:A[k],maxBarSize:L}),I!==T&&(M=M.map((function(e){return PJ(PJ({},e),{},{position:PJ(PJ({},e.position),{},{offset:e.position.offset-I/2})})})))}var N,$,z=n&&n.type&&n.type.getComposedData;z&&y.push({props:PJ(PJ({},z(PJ(PJ({},E),{},{displayedData:b,props:e,dataKey:x,item:n,bandSize:T,barPosition:M,offset:o,stackedData:j,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},TJ(TJ(TJ({key:n.key||"item-".concat(h)},g,E[g]),m,E[m]),"animationId",i)),childIndex:(N=n,$=e.children,bO($).indexOf(N)),item:n})})),y},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!CO({props:n}))return null;var s=n.children,c=n.layout,f=n.stackOffset,h=n.data,g=n.reverseStackOrder,m=VJ(c),v=m.numericAxisName,y=m.cateAxisName,b=wO(s,o),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(YE(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[JE("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return yK(yK({},e),{},bK({},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 yK(yK({},t),{},bK({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:IK(e,a.items,o)}))}),{})),yK(yK({},t),{},bK({},i,l))}),{})}(h,b,"".concat(v,"Id"),"".concat(y,"Id"),f,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return PJ(PJ({},e),{},TJ({},r,BJ(n,PJ(PJ({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=HJ(PJ(PJ({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=d(n,x[e],C,e.replace("Map",""),r)}));var S,k,E=x["".concat(y,"Map")],O=(S=eO(E),{tooltipTicks:k=PK(S,!1,!0),orderedTooltipTicks:W_(k,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:HK(S,k)}),D=p(n,PJ(PJ({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:C}));return PJ(PJ({formattedGraphicalItems:D,graphicalItems:b,offset:C,stackGroups:w},O),x)};return n=function(e){function n(e){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),TJ(SJ(a=wJ(this,n,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),TJ(SJ(a),"accessibilityManager",new iJ),TJ(SJ(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(PJ({legendBBox:e},h({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},PJ(PJ({},a.state),{},{legendBBox:e}))))}})),TJ(SJ(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),TJ(SJ(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 PJ({dataStartIndex:t,dataEndIndex:n},h({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),TJ(SJ(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=PJ(PJ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;NS(r)&&r(n,e)}})),TJ(SJ(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?PJ(PJ({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;NS(r)&&r(n,e)})),TJ(SJ(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),TJ(SJ(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),TJ(SJ(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),TJ(SJ(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;NS(n)&&n(t,e)})),TJ(SJ(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&gO[t]?gO[t]:null}(e),r=PE(a.props,"".concat(n));n&&NS(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),TJ(SJ(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=PJ(PJ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;NS(r)&&r(n,e)}})),TJ(SJ(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;NS(t)&&t(a.getMouseInfo(e),e)})),TJ(SJ(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;NS(t)&&t(a.getMouseInfo(e),e)})),TJ(SJ(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),TJ(SJ(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),TJ(SJ(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),TJ(SJ(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&QX.emit(eJ,a.props.syncId,e,a.eventEmitterSymbol)})),TJ(SJ(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(PJ({dataStartIndex:i,dataEndIndex:l},h({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,u=e.chartY,c=e.activeTooltipIndex,d=a.state,f=d.offset,p=d.tooltipTicks;if(!f)return;if("function"==typeof r)c=r(p,e);else if("value"===r){c=-1;for(var g=0;g<p.length;g++)if(p[g].value===e.activeLabel){c=g;break}}var m=PJ(PJ({},f),{},{x:f.left,y:f.top}),v=Math.min(s,m.x+m.width),y=Math.min(u,m.y+m.height),b=p[c]&&p[c].value,w=$J(a.state,a.props.data,c),x=p[c]?{x:"horizontal"===n?p[c].coordinate:v,y:"horizontal"===n?y:p[c].coordinate}:RJ;a.setState(PJ(PJ({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:c}))}else a.setState(e)})),TJ(SJ(a),"renderCursor",(function(e){var n,o=a.state,i=o.isTooltipActive,l=o.activeCoordinate,s=o.activePayload,u=o.offset,c=o.activeTooltipIndex,d=o.tooltipAxisBandSize,f=a.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:i,h=a.props.layout,g=e.key||"_recharts-cursor";return t.createElement(fJ,{key:g,activeCoordinate:l,activePayload:s,activeTooltipIndex:c,chartName:r,element:e,isActive:p,layout:h,offset:u,tooltipAxisBandSize:d,tooltipEventType:f})})),TJ(SJ(a),"renderPolarAxis",(function(e,n,r){var o=PE(e,"type.axisType"),i=PE(a.state,"".concat(o,"Map")),l=i&&i[e.props["".concat(o,"Id")]];return t.cloneElement(e,PJ(PJ({},l),{},{className:Mr(o,l.className),key:e.key||"".concat(n,"-").concat(r),ticks:PK(l,!0)}))})),TJ(SJ(a),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,l=a.state,s=l.radiusAxisMap,u=l.angleAxisMap,c=eO(s),d=eO(u),f=d.cx,p=d.cy,h=d.innerRadius,g=d.outerRadius;return t.cloneElement(e,{polarAngles:Array.isArray(o)?o:PK(d,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(i)?i:PK(c,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),TJ(SJ(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,n=a.props,r=n.children,o=n.width,i=n.height,l=a.props.margin||{},s=o-(l.left||0)-(l.right||0),u=gK({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:c});if(!u)return null;var d=u.item,f=yJ(u,pJ);return t.cloneElement(d,PJ(PJ({},f),{},{chartWidth:o,chartHeight:i,margin:l,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),TJ(SJ(a),"renderTooltip",(function(){var e,n=a.props,r=n.children,o=n.accessibilityLayer,i=xO(r,AR);if(!i)return null;var l=a.state,s=l.isTooltipActive,u=l.activeCoordinate,c=l.activePayload,d=l.activeLabel,f=l.offset,p=null!==(e=i.props.active)&&void 0!==e?e:s;return t.cloneElement(i,{viewBox:PJ(PJ({},f),{},{x:f.left,y:f.top}),active:p,label:d,payload:p?c:[],coordinate:u,accessibilityLayer:o})})),TJ(SJ(a),"renderBrush",(function(e){var n=a.props,r=n.margin,o=n.data,i=a.state,l=i.offset,s=i.dataStartIndex,u=i.dataEndIndex,c=i.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:MK(a.handleBrushChange,e.props.onChange),data:o,x:GE(e.props.x)?e.props.x:l.left,y:GE(e.props.y)?e.props.y:l.top+l.height+l.brushBottom-(r.bottom||0),width:GE(e.props.width)?e.props.width:l.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})})),TJ(SJ(a),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=SJ(a).clipPathId,i=a.state,l=i.xAxisMap,s=i.yAxisMap,u=i.offset,c=e.props,d=c.xAxisId,f=c.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:l[d],yAxis:s[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})})),TJ(SJ(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,l=[],s=t.props.key,u=t.item.props,c=u.activeDot,d=PJ(PJ({index:i,dataKey:u.dataKey,cx:r.x,cy:r.y,r:4,fill:kK(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(s,"-activePoint-").concat(i)},kO(c,!1)),uO(c));return l.push(n.renderActiveDot(c,d)),o?l.push(n.renderActiveDot(c,PJ(PJ({},d),{},{cx:o.x,cy:o.y,key:"".concat(s,"-basePoint-").concat(i)}))):a&&l.push(null),l})),TJ(SJ(a),"renderGraphicChild",(function(e,n,r){var o=a.filterFormatItem(e,n,r);if(!o)return null;var i=a.getTooltipEventType(),l=a.state,s=l.isTooltipActive,u=l.tooltipAxis,c=l.activeTooltipIndex,d=l.activeLabel,f=xO(a.props.children,AR),p=o.props,h=p.points,g=p.isRange,m=p.baseLine,v=o.item.props,y=v.activeDot,b=v.hide,w=v.activeBar,x=v.activeShape,C=Boolean(!b&&s&&f&&(y||w||x)),S={};"axis"!==i&&f&&"click"===f.props.trigger?S={onClick:MK(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(S={onMouseLeave:MK(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:MK(a.handleItemMouseEnter,e.props.onMouseEnter)});var k=t.cloneElement(e,PJ(PJ({},o.props),S));if(C){if(!(c>=0)){var E,O=(null!==(E=a.getItemByXY(a.state.activeCoordinate))&&void 0!==E?E:{graphicalItem:k}).graphicalItem,D=O.item,j=void 0===D?e:D,P=O.childIndex,T=PJ(PJ(PJ({},o.props),S),{},{activeIndex:P});return[t.cloneElement(j,T),null,null]}var M,A;if(u.dataKey&&!u.allowDuplicatedCategory){var _="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());M=nO(h,_,d),A=g&&m&&nO(m,_,d)}else M=null==h?void 0:h[c],A=g&&m&&m[c];if(x||w){var R=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[t.cloneElement(e,PJ(PJ(PJ({},o.props),S),{},{activeIndex:R})),null,null]}if(!TE(M))return[k].concat(EJ(a.renderActivePoints({item:o,activePoint:M,basePoint:A,childIndex:c,isRange:g})))}return g?[k,null,null]:[k,null]})),TJ(SJ(a),"renderCustomized",(function(e,n,r){return t.cloneElement(e,PJ(PJ({key:"recharts-customized-".concat(r)},a.props),a.state))})),TJ(SJ(a),"renderMap",{CartesianGrid:{handler:LJ,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:LJ},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:LJ},YAxis:{handler:LJ},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!==(o=e.id)&&void 0!==o?o:JE("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=nL(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&&kJ(e,t)}(n,t.Component),bJ(n,[{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=xO(t,AR);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=$J(this.state,n,a,l),u=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+r)/2,d="horizontal"===o?{x:u,y:c}:{y:u,x:c},f=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));f&&(d=PJ(PJ({},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){EO([xO(e.children,AR)],[xO(this.props.children,AR)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=xO(this.props.children,AR);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,u=s.xAxisMap,c=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var d=eO(u).scale,f=eO(c).scale,p=d&&d.invert?d.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return PJ(PJ({},i),{},{xValue:p,yValue:h})}var g=zJ(this.state,this.props.data,this.props.layout,l);return g?PJ(PJ({},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,u=l.radiusAxisMap;if(s&&u){var c=eO(s);return iV({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=xO(e,AR),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}),PJ(PJ({},uO(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){QX.on(eJ,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){QX.removeListener(eJ,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===mO(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=vJ(t,2),r=n[0],o=n[1];return PJ(PJ({},e),{},TJ({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=vJ(t,2),r=n[0],o=n[1];return PJ(PJ({},e),{},TJ({},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,u=mO(s.type);if("Bar"===u){var c=(l.data||[]).find((function(t){return uW(e,t)}));if(c)return{graphicalItem:a,payload:c}}else if("RadialBar"===u){var d=(l.data||[]).find((function(t){return iV(e,t)}));if(d)return{graphicalItem:a,payload:d}}else if(qZ(a,r)||GZ(a,r)||YZ(a,r)){var f=eq({graphicalItem:a,activeTooltipItem:r,itemData:s.props.data}),p=void 0===s.props.activeIndex?f:s.props.activeIndex;return{graphicalItem:PJ(PJ({},a),{},{childIndex:p}),payload:YZ(a,r)?s.props.data[f]:a.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!CO(this))return null;var n,r,o=this.props,i=o.children,a=o.className,l=o.width,s=o.height,u=o.style,c=o.compact,d=o.title,f=o.desc,p=yJ(o,hJ),h=kO(p,!1);if(c)return t.createElement(gY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(MO,mJ({},h,{width:l,height:s,title:d,desc:f}),this.renderClipPath(),DO(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(n=this.props.tabIndex)&&void 0!==n?n:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return t.createElement(gY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",mJ({className:Mr("recharts-wrapper",a),style:PJ({position:"relative",cursor:"default",width:l,height:s},u)},g,{ref:function(t){e.container=t}}),t.createElement(MO,mJ({},h,{width:l,height:s,title:d,desc:f,style:_J}),this.renderClipPath(),DO(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),n}(),TJ(n,"displayName",r),TJ(n,"defaultProps",PJ({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),TJ(n,"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,u=e.margin,c=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var f=KJ(e);return PJ(PJ(PJ({},f),{},{updateId:0},h(PJ(PJ({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||l!==t.prevLayout||s!==t.prevStackOffset||!rO(u,t.prevMargin)){var p=KJ(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=PJ(PJ({},zJ(t,r,l)),{},{updateId:t.updateId+1}),v=PJ(PJ(PJ({},p),g),m);return PJ(PJ(PJ({},v),h(PJ({props:e},v),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:o})}if(!EO(o,t.prevChildren)){var y,b,w,x,C=xO(o,Bq),S=C&&null!==(y=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==y?y:c,k=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:d,E=S!==c||k!==d,O=!TE(r)&&!E?t.updateId:t.updateId+1;return PJ(PJ({updateId:O},h(PJ(PJ({props:e},t),{},{updateId:O,dataStartIndex:S,dataEndIndex:k}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:k})}return null})),TJ(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):NS(e)?e(n):t.createElement(xW,n),t.createElement(LO,{className:"recharts-active-dot",key:n.key},r)})),n},ZJ=WJ({chartName:"LineChart",GraphicalChild:HX,axisComponents:[{axisType:"xAxis",AxisComp:WX},{axisType:"yAxis",AxisComp:qX}],formatAxisMap:HG}),qJ=WJ({chartName:"BarChart",GraphicalChild:NG,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:WX},{axisType:"yAxis",AxisComp:qX}],formatAxisMap:HG}),GJ=WJ({chartName:"PieChart",GraphicalChild:pq,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:hZ},{axisType:"radiusAxis",AxisComp:eZ}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,l=e.startAngle,s=e.endAngle,u=QE(e.cx,i,i/2),c=QE(e.cy,a,a/2),d=nV(i,a,n),f=QE(e.innerRadius,d,0),p=QE(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(TE(a.range))"angleAxis"===r?i=[l,s]:"radiusAxis"===r&&(i=[f,p]),h&&(i=[i[1],i[0]]);else{var g=XK(i=a.range,2);l=g[0],s=g[1]}var m=AK(a,o),v=m.realScaleType,y=m.scale;y.domain(d).range(i),RK(y);var b=NK(y,GK(GK({},a),{},{realScaleType:v})),w=GK(GK(GK({},a),b),{},{range:i,radius:p,realScaleType:v,scale:y,cx:u,cy:c,innerRadius:f,outerRadius:p,startAngle:l,endAngle:s});return GK(GK({},e),{},YK({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const YJ=N.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}),Wt,Zt);function XJ(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 JJ(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function QJ(e,t){const n=XJ(e);return isNaN(t)?JJ(e,NaN):t?(n.setDate(n.getDate()+t),n):n}const eQ=6048e5,tQ=864e5;let nQ={};function rQ(){return nQ}function oQ(e,t){const n=rQ(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=XJ(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 iQ(e){return oQ(e,{weekStartsOn:1})}function aQ(e){const t=XJ(e),n=t.getFullYear(),r=JJ(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=iQ(r),i=JJ(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=iQ(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function lQ(e){const t=XJ(e);return t.setHours(0,0,0,0),t}function sQ(e){const t=XJ(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 uQ(e,t){const n=lQ(e),r=lQ(t),o=+n-sQ(n),i=+r-sQ(r);return Math.round((o-i)/tQ)}function cQ(e){return JJ(e,Date.now())}function dQ(e,t){return+lQ(e)==+lQ(t)}function fQ(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=XJ(e);return!isNaN(Number(n))}function pQ(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 hQ(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function gQ(e,t,n){const r=function(e,t){return+XJ(e)-+XJ(t)}(e,t)/6e4;return hQ(n?.roundingMethod)(r)}function mQ(e,t,n){const r=function(e,t){const n=XJ(e),r=XJ(t),o=pQ(n,r),i=Math.abs(uQ(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(pQ(n,r)===-o));return 0===a?0:a}(e,t)/7;return hQ(n?.roundingMethod)(r)}const vQ={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 yQ(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const bQ={date:yQ({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yQ({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:yQ({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},wQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function xQ(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 CQ={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:xQ({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:xQ({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:xQ({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:xQ({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:xQ({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 SQ(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 u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}const kQ={ordinalNumber:(EQ={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(EQ.matchPattern);if(!n)return null;const r=n[0],o=e.match(EQ.parsePattern);if(!o)return null;let i=EQ.valueCallback?EQ.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:SQ({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:SQ({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:SQ({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:SQ({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:SQ({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 EQ;const OQ={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=vQ[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:bQ,formatRelative:(e,t,n,r)=>wQ[e],localize:CQ,match:kQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function DQ(e){const t=XJ(e),n=uQ(t,function(e){const t=XJ(e),n=JJ(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function jQ(e){const t=XJ(e),n=+iQ(t)-+function(e){const t=aQ(e),n=JJ(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),iQ(n)}(t);return Math.round(n/eQ)+1}function PQ(e,t){const n=XJ(e),r=n.getFullYear(),o=rQ(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=JJ(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=oQ(a,t),s=JJ(e,0);s.setFullYear(r,0,i),s.setHours(0,0,0,0);const u=oQ(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function TQ(e,t){const n=XJ(e),r=+oQ(n,t)-+function(e,t){const n=rQ(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=PQ(e,t),i=JJ(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),oQ(i,t)}(n,t);return Math.round(r/eQ)+1}function MQ(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const AQ={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return MQ("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):MQ(n+1,2)},d:(e,t)=>MQ(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)=>MQ(e.getHours()%12||12,t.length),H:(e,t)=>MQ(e.getHours(),t.length),m:(e,t)=>MQ(e.getMinutes(),t.length),s:(e,t)=>MQ(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return MQ(Math.trunc(r*Math.pow(10,n-3)),t.length)}},_Q="midnight",RQ="noon",LQ="morning",IQ="afternoon",NQ="evening",$Q="night",zQ={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 AQ.y(e,t)},Y:function(e,t,n,r){const o=PQ(e,r),i=o>0?o:1-o;if("YY"===t){return MQ(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):MQ(i,t.length)},R:function(e,t){return MQ(aQ(e),t.length)},u:function(e,t){return MQ(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 MQ(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 MQ(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 AQ.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 MQ(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=TQ(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):MQ(o,t.length)},I:function(e,t,n){const r=jQ(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):MQ(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):AQ.d(e,t)},D:function(e,t,n){const r=DQ(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):MQ(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 MQ(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 MQ(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 MQ(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?RQ:0===r?_Q: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?NQ:r>=12?IQ:r>=4?LQ:$Q,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 AQ.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):AQ.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):MQ(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):MQ(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):AQ.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):AQ.s(e,t)},S:function(e,t){return AQ.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return BQ(r);case"XXXX":case"XX":return KQ(r);default:return KQ(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return BQ(r);case"xxxx":case"xx":return KQ(r);default:return KQ(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+FQ(r,":");default:return"GMT"+KQ(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+FQ(r,":");default:return"GMT"+KQ(r,":")}},t:function(e,t,n){return MQ(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return MQ(e.getTime(),t.length)}};function FQ(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+MQ(i,2)}function BQ(e,t){if(e%60==0){return(e>0?"-":"+")+MQ(Math.abs(e)/60,2)}return KQ(e,t)}function KQ(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+MQ(Math.trunc(r/60),2)+t+MQ(r%60,2)}const VQ=(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"})}},HQ=(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"})}},UQ={p:HQ,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return VQ(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}}",VQ(r,t)).replace("{{time}}",HQ(o,t))}},WQ=/^D+$/,ZQ=/^Y+$/,qQ=["D","DD","YY","YYYY"];const GQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,YQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XQ=/^'([^]*?)'?$/,JQ=/''/g,QQ=/[a-zA-Z]/;function e1(e,t,n){const r=rQ(),o=r.locale??OQ,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=XJ(e);if(!fQ(l))throw new RangeError("Invalid time value");let s=t.match(YQ).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,UQ[t])(e,o.formatLong)}return e})).join("").match(GQ).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:t1(e)};if(zQ[t])return{isToken:!0,value:e};if(t.match(QQ))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 u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return ZQ.test(e)}(r)||function(e){return WQ.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),qQ.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,zQ[r[0]])(l,r,o.localize,u)})).join("")}function t1(e){const t=e.match(XQ);return t?t[1].replace(JQ,"'"):e}function n1(e){return function(e,t){const n=XJ(e),r=XJ(t);return n.getFullYear()===r.getFullYear()}(e,cQ(e))}function r1(e){return dQ(e,function(e,t){return QJ(e,-t)}(cQ(e),1))}const o1=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},i1=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),a1=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),l1=N.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})),Wt),s1=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(p1,{children:[e.jsx(h1,{children:r}),null==n?void 0:n.map((t=>{var n,r;const o=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color),i=`${null===(r=t.payload)||void 0===r?void 0:r.name}-${t.dataKey}-${t.value}`;return e.jsxs(f1,{children:[o&&e.jsx(YJ,{color:o}),t.name,": ",i1(t.value||0)]},i)}))]}):null,u1=()=>{const{elevation1:t}=n.useTheme();return e.jsx(AR,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(s1,{})})},c1=({payload:t,toggleData:n})=>e.jsx(d1,{children:null==t?void 0:t.map((t=>e.jsxs(f1,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx(YJ,{color:t.color}),t.value]},`${t.dataKey}-${t.value}`)))}),d1=N.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),f1=N.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}))),p1=N.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),h1=N.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),g1=[({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"})],m1=({range:t,initialDate:n})=>e.jsxs(lb,{children:[e.jsx(b1,{children:t=>e.jsx(w1,{children:t})}),e.jsx(v1,{range:t,children:r=>e.jsx(y1,{date:r,current:n?Dl(r,n):void 0,range:t})})]}),v1=N(pb)({"& > 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))"}})),y1=N(gb)((({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}))),b1=N(ub)((({theme:e})=>({"& > tr > th":{paddingBottom:8,color:e.scale4,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium}}))),w1=N(db)((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),x1=[({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,isDisabled:a,isInvalid:l,isReadOnly:s,hasLabel:u,pointer:c})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",width:"100%",minHeight:u?48:40,height:u?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:c?"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}}),Ht,({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}),Wt,Ut],C1=({description:t,errorMessage:n})=>t||n?e.jsxs(e.Fragment,{children:[t&&!n&&e.jsx(k1,{slot:"description",children:t}),n&&e.jsx(E1,{children:n})]}):null,S1=({theme:e})=>({position:"absolute",left:0,top:"100%",fontSize:e.font.size.sm,textAlign:"left",lineHeight:`${e.font.size.lg}px`}),k1=N(iv)((({theme:e})=>({color:e.input.color.description})),S1),E1=N(yb)((({theme:e})=>({color:e.input.color.descriptionError})),S1),O1=N(Xm,{shouldForwardProp:e=>Jx(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}))),D1=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:l,inline:u,disabled:c}=t,d=s(t,["id","value","header","body","leftElement","rightElement","inline","disabled"]);return e.jsxs(j1,Object.assign({id:n||r,textValue:r,isDisabled:c},d,{children:[a||null,o&&i?e.jsx(lC,{header:o,body:i,inline:u}):r,l&&e.jsx("div",{style:{marginLeft:"auto"},children:l})]}))},j1=N(Wb,dC)(fC),P1=N(Vb,Qx)(eC),T1=t=>{var{options:n,children:r,autoWidth:o,width:i}=t,a=s(t,["options","children","autoWidth","width"]);return e.jsxs(P1,Object.assign({autoWidth:o,shouldFocusWrap:!0,width:o?void 0:i},a,{children:[null==n?void 0:n.map((t=>{if("options"in t){const n=t;return e.jsx(mC,{id:n.id,title:n.title,children:n.options.map((t=>e.jsx(D1,Object.assign({},t),t.id||t.value)))},n.id)}const n=t;return e.jsx(D1,Object.assign({},n),n.id||n.value)})),r]}))},M1={shouldForwardProp:e=>Jx(e,["textOnly"])},A1=[({width:e,textOnly:t})=>({width:t?"max-content":e||"100%"})],_1=t.forwardRef(((n,r)=>{var{backgroundColor:o,children:i,fontSize:a,fontWeight:l,color:u,disabled:c,invalid:d,required:f,readOnly:p,loading:h,label:g,options:m,placeholder:v="Select",placeholderColor:y,description:b,errorMessage:w,textOnly:x,value:C,defaultValue:S,width:k,maxHeight:E,allowRepeatSelection:O,hideCaret:D,position:j,fixedPosition:P,borderRadius:T,onChange:M,afterShow:A,afterHide:_}=n,R=s(n,["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[L,I]=t.useState(!1),[N,$]=t.useState(C||""),z=Vt(C),{padding:F,paddingTop:B,paddingBottom:K,paddingRight:V,paddingLeft:H}=R,{margin:U,marginTop:W,marginBottom:Z,marginRight:q,marginLeft:G}=R,Y={padding:F,paddingTop:B,paddingBottom:K,paddingRight:V,paddingLeft:H},X={margin:U,marginTop:W,marginBottom:Z,marginRight:q,marginLeft:G};t.useEffect((()=>{C&&C!==z&&C!==N&&$(C)}),[C,z,N]);const J=!(!N&&!S),Q=!J&&g,ee=D?null:e.jsx(Gt,{name:L?"caret-up":"caret-down",inheritColor:!u,color:u});return e.jsxs(I1,Object.assign({placeholder:v,onOpenChange:e=>{I(e),A&&e&&A(),_&&!e&&_()},onSelectionChange:e=>{(O||e!==N)&&($(e),M&&M(e))},isDisabled:c||p||h,isInvalid:d,isRequired:f,selectedKey:C?N:void 0,defaultSelectedKey:S,textOnly:x,width:k},R,{children:[e.jsxs(N1,Object.assign({backgroundColor:o,textOnly:x,hasLabel:!!g,isDisabled:c,isReadOnly:p||h,isInvalid:d,borderRadius:T,pointer:!0,ref:r},Y,X,{children:[e.jsxs(O1,{filled:J,disabled:c,disablePointerEvents:!0,children:[g,e.jsx($1,{fontSize:a,fontWeight:l,color:u,placeholderColor:y,isDisabled:c,style:({isPlaceholder:e})=>e&&Q?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),h?e.jsx(OC,{size:"small"}):ee,e.jsx(C1,{description:b,errorMessage:w})]})),e.jsx(yb,{}),e.jsx(xC,{offset:2,placement:j,shouldFlip:!P&&void 0,maxHeight:E,children:({isEntering:t,isExiting:n})=>e.jsx(T1,{options:m,autoWidth:x,readOnly:t||n,children:i})})]}))})),R1=D1,L1=mC,I1=N(px,M1)(A1),N1=N(nv)(x1,(({textOnly:e})=>({paddingRight:e?void 0:8})),Ut),$1=N(mx)((({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 z1=Object.assign(_1,{Item:R1,Section:L1});const F1=({date:t,setDate:r})=>{const{calendar:o}=n.useTheme(),i=rt(1900,2100).map((e=>({value:e.toString()}))),{month:a,year:l,day:s}=t||{},u=(null==a?void 0:a.toString())||"",c=(null==l?void 0:l.toString())||"";return e.jsxs(B1,{children:[e.jsx(V1,{slot:"previous",children:e.jsx(Gt,{name:"chevron-left",inheritColor:!0})}),e.jsxs(K1,{children:[e.jsx(z1,{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:u,onChange:e=>{r(new Rs(+c,+e,s||1))},textOnly:!0,fontSize:12,color:o.color.monthYear,hideCaret:!0,maxHeight:200,position:"bottom",fixedPosition:!0}),e.jsx(z1,{options:i,value:c,onChange:e=>{r(new Rs(+e,+u,s||1))},textOnly:!0,fontSize:12,color:o.color.monthYear,hideCaret:!0,maxHeight:200,position:"bottom",fixedPosition:!0})]}),e.jsx(V1,{slot:"next",children:e.jsx(Gt,{name:"chevron-right",inheritColor:!0})})]})},B1=N.header({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8}),K1=N.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}))),V1=N(yC)((({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"}}))),H1=()=>Ml(Il()),U1=e=>e.toDate(Il()),W1=e=>function(e){let t=e.match(Es);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Rs(Ds(t[1],0,9999),Ds(t[2],1,12),1);return n.day=Ds(t[3],0,n.calendar.getDaysInMonth(n)),n}(e1(e,"yyyy-MM-dd")),Z1=({past:e,future:n,rel:r})=>({min:t.useMemo((()=>!0===e?r:e instanceof Date?W1(e):void 0),[e]),max:t.useMemo((()=>!0===n?r:n instanceof Date?W1(n):void 0),[n])}),q1=H1(),G1=n=>{var{date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:l}=n,u=s(n,["date","onChange","preventPast","preventFuture","noShadow"]);const{current:c}=t.useRef(r?W1(r):q1),[d,f]=t.useState(c),[p,h]=t.useState(c),{min:g,max:m}=Z1({past:i,future:a,rel:c});return e.jsxs(Y1,Object.assign({value:d,onChange:e=>{const{year:t,month:n,day:r}=e,i=new Rs(t,n,r);f(i);const a=U1(e);o&&o(a)},minValue:g,maxValue:m,noShadow:l,focusedValue:p,onFocusChange:h},u,{children:[e.jsx(F1,{date:p,setDate:h}),e.jsx(m1,{initialDate:c})]}))},Y1=N(nb)(g1);function X1(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=X1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function J1(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=X1(e))&&(r&&(r+=" "),r+=t);return r}var Q1,e0,t0=Object.create,n0=Object.defineProperty,r0=Object.defineProperties,o0=Object.getOwnPropertyDescriptor,i0=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertyNames,l0=Object.getOwnPropertySymbols,s0=Object.getPrototypeOf,u0=Object.prototype.hasOwnProperty,c0=Object.prototype.propertyIsEnumerable,d0=(e,t,n)=>t in e?n0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f0=(e,t)=>{for(var n in t||(t={}))u0.call(t,n)&&d0(e,n,t[n]);if(l0)for(var n of l0(t))c0.call(t,n)&&d0(e,n,t[n]);return e},p0=(e,t)=>r0(e,i0(t)),h0=(e,t)=>{var n={};for(var r in e)u0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&l0)for(var r of l0(e))t.indexOf(r)<0&&c0.call(e,r)&&(n[r]=e[r]);return n},g0=(Q1={"../../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 u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&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],u=r.util.type(s);"Object"!==u||i[a(s)]?"Array"!==u||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,c,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 x=g.pattern||g,C=l.next,S=c;C!==t.tail&&!(d&&S>=d.reach);S+=C.value.length,C=C.next){var k=C.value;if(t.length>e.length)return;if(!(k instanceof o)){var E,O=1;if(y){if(!(E=i(x,S,e,v))||E.index>=e.length)break;var D=E.index,j=E.index+E[0].length,P=S;for(P+=C.value.length;D>=P;)P+=(C=C.next).value.length;if(S=P-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(P<j||"string"==typeof T.value);T=T.next)O++,P+=T.value.length;O--,k=e.slice(S,P),E.index-=S}else if(!(E=i(x,0,k,v)))continue;D=E.index;var M=E[0],A=k.slice(0,D),_=k.slice(D+M.length),R=S+k.length;d&&R>d.reach&&(d.reach=R);var L=C.prev;if(A&&(L=s(t,L,A),S+=A.length),u(t,L,O),C=s(t,L,new o(f,m?r.tokenize(M,m):M,b,M)),_&&s(t,C,_),O>1){var I={cause:f+","+h,reach:R};a(e,t,n,C.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 u(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 e0||(0,Q1[a0(Q1)[0]])((e0={exports:{}}).exports,e0),e0.exports}),m0=((e,t,n)=>(n=null!=e?t0(s0(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a0(t))u0.call(e,o)||o===n||n0(e,o,{get:()=>t[o],enumerable:!(r=o0(t,o))||r.enumerable});return e})(e&&e.__esModule?n:n0(n,"default",{value:e,enumerable:!0}),e)))(g0());m0.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]},m0.languages.markup.tag.inside["attr-value"].inside.entity=m0.languages.markup.entity,m0.languages.markup.doctype.inside["internal-subset"].inside=m0.languages.markup,m0.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(m0.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:m0.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:m0.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},m0.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(m0.languages.markup.tag,"addAttribute",{value:function(e,t){m0.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:m0.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),m0.languages.html=m0.languages.markup,m0.languages.mathml=m0.languages.markup,m0.languages.svg=m0.languages.markup,m0.languages.xml=m0.languages.extend("markup",{}),m0.languages.ssml=m0.languages.xml,m0.languages.atom=m0.languages.xml,m0.languages.rss=m0.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"}}}(m0),m0.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:/[{}[\];(),.:]/},m0.languages.javascript=m0.languages.extend("clike",{"class-name":[m0.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}|\?\?=?|\?\.?|[~:]/}),m0.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,m0.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:m0.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:m0.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:m0.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:m0.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:m0.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),m0.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:m0.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"}}),m0.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),m0.languages.markup&&(m0.languages.markup.tag.addInlined("script","javascript"),m0.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")),m0.languages.js=m0.languages.javascript,m0.languages.actionscript=m0.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),m0.languages.actionscript["class-name"].alias="function",delete m0.languages.actionscript.parameter,delete m0.languages.actionscript["literal-property"],m0.languages.markup&&m0.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:m0.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}(m0),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)}(m0),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"))}(m0),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})}(m0),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}(m0),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 u,c=e.languages[n];c?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})),c,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);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}(m0),m0.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:m0.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+/},m0.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"])&&"("===c(1).content){n+=2;var i=f(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=c(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),0<o.length)){var l=f(/^\{$/,/^\}$/);if(-1!==l)for(var s=n;s<l;s++){var u=t[s];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(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)}})),m0.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}}),u=0,c={},d=(s=l(s.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+a.toUpperCase()+"_"+r+"___")););return c[n]=e,n})).join(""),n,a),Object.keys(c));return u=0,function t(n){for(var i=0;i<n.length;i++){if(u>=d.length)return;var a,s,f,p,h,g,m,v=n[i];"string"==typeof v||"string"==typeof v.content?(a=d[u],-1!==(m=(g="string"==typeof v?v:v.content).indexOf(a))&&(++u,s=g.substring(0,m),h=c[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 u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function c(e){return"string"==typeof e?e:Array.isArray(e)?e.map(c).join(""):c(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,l,u=n[r];"string"!=typeof u&&(i=u.content,Array.isArray(i)?"template-string"===u.type?(u=i[1],3===i.length&&"string"!=typeof u&&"embedded-code"===u.type&&(a=c(u),u=u.alias,u=Array.isArray(u)?u[0]:u,l=e.languages[u])&&(i[1]=s(a,l,u))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(m0),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}(m0),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)}(m0),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})}(m0),m0.languages.n4js=m0.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/}),m0.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),m0.languages.n4jsd=m0.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]*/}}(m0),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)}))}(m0),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}(m0),m0.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:/[{}[\]();,.:\\]/},m0.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=m0.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}(m0),m0.languages.c=m0.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|[?:~]|[-+*/%&|^!=<>]=?/}),m0.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),m0.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},m0.languages.c.string],char:m0.languages.c.char,comment:m0.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:m0.languages.c}}}}),m0.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 m0.languages.c.boolean,m0.languages.objectivec=m0.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 m0.languages.objectivec["class-name"],m0.languages.objc=m0.languages.objectivec,m0.languages.reason=m0.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/}),m0.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 m0.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}(m0),m0.languages.go=m0.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/}),m0.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete m0.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"])}(m0),m0.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:/[{}[\];(),.:]/},m0.languages.python["string-interpolation"].inside.interpolation.inside.rest=m0.languages.python,m0.languages.py=m0.languages.python;var v0={};((e,t)=>{for(var n in t)n0(e,n,{get:t[n],enumerable:!0})})(v0,{dracula:()=>y0,duotoneDark:()=>b0,duotoneLight:()=>w0,github:()=>x0,jettwaveDark:()=>R0,jettwaveLight:()=>L0,nightOwl:()=>C0,nightOwlLight:()=>S0,oceanicNext:()=>O0,okaidia:()=>D0,oneDark:()=>I0,oneLight:()=>N0,palenight:()=>j0,shadesOfPurple:()=>P0,synthwave84:()=>T0,ultramin:()=>M0,vsDark:()=>A0,vsLight:()=>_0});var y0={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)"}}]},b0={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"}}]},w0={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"}}]},x0={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"}}]},C0={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)"}}]},S0={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)"}}]},k0="#c5a5c5",E0="#8dc891",O0={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:k0}},{types:["attr-value"],style:{color:E0}},{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:E0}},{types:["punctuation"],style:{color:E0}},{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:k0}},{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}}]},D0={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"}}]},j0={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)"}}]},P0={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)"}}]},T0={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"}}]},M0={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)"}}]},A0={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)"}}]},_0={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)"}}]},R0={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"}}]},L0={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"}}]},I0={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%)"}}]},N0={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%)"}}]},$0=(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=f0(f0({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=p0(f0({},n),{backgroundColor:void 0}),r},z0=/\r\n|\r|\n/,F0=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)},B0=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},K0=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,u=t[a];const c=n[a][i];if("string"==typeof c?(u=a>0?u:["plain"],e=c):(u=B0(u,c.type),c.alias&&(u=B0(u,c.alias)),e=c.content),"string"!=typeof e){a++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(z0),f=d.length;l.push({types:u,content:d[0]});for(let e=1;e<f;e++)F0(l),s.push(l=[]),l.push({types:u,content:d[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return F0(l),s},V0=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),l=((e,n)=>{const[r,o]=t.useState($0(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o($0(n,e)))}),[e,n]),r})(a,o),s=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=h0(n,["className","style","line"]);const l=p0(f0({},a),{className:J1("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=f0(f0({},l.style||{}),o)),l}),[e]))(l),u=(e=>{const n=t.useCallback((({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 t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=h0(t,["token","className","style"]);const l=p0(f0({},a),{className:J1("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(l.style=f0(f0({},l.style||{}),i)),l}),[n])})(l),c=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return K0([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),K0(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:c,className:`prism-code language-${a}`,style:null!=l?l.root:{},getLineProps:s,getTokenProps:u})},H0=e=>t.createElement(V0,p0(f0({},e),{prism:e.prism||m0,theme:e.theme||A0,code:e.code,language:e.language}));const U0=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:l}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(W0,{onClick:()=>{o1(r),i(!0)},copied:o,children:o?e.jsx(Gt,{name:"check-circle",color:a.success}):e.jsx(Gt,{name:"copy",color:l})})},W0=N.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}}))),Z0=({method:t,url:r})=>{const o=n.useTheme(),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 e.jsxs(q0,Object.assign({},i,{children:[e.jsx(G0,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(Y0,{children:r}),e.jsx(U0,{content:r})]}))},q0=N.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}))),G0=N.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),Y0=N.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),X0=N.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),Wt),J0=N.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),Q0=N.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),e2={shouldForwardProp:e=>Jx(e,["hide","placeholderColor","isDisabled"])},t2=[({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}})],n2=N(Db,e2)(t2),r2=({value:n,placeholder:r,fontSize:o,active:i=!0})=>{const a=t.useRef(null),[l,s]=t.useState(i?50:void 0);t.useLayoutEffect((()=>{if(i&&(null==a?void 0:a.current)){const{current:e}=a;n&&(e.innerHTML=n.replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&s(t+3)}}),[i,n,r,a]);return[l,()=>i?e.jsx(o2,{ref:a,fontSize:o,children:n||r}):null]},o2=N.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),i2=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(Gt,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(Gt,Object.assign({},n,r))},a2=t.forwardRef(((n,r)=>{var{backgroundColor:o,children:i,fontSize:a,disabled:l,invalid:u,required:c,readOnly:d,loading:f,label:p,options:h,placeholder:g="Select",placeholderColor:m,description:v,errorMessage:y,textOnly:b,value:w,defaultValue:x,width:C,maxHeight:S,iconLeft:k,allowRepeatSelection:E,position:O,fixedPosition:D,onChange:j,afterShow:P,afterHide:T,onTextChange:M}=n,A=s(n,["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[_,R]=t.useState(!1),[L,I]=t.useState(w||""),[N,$]=t.useState((null==w?void 0:w.toString())||""),z=Vt(w),[F,B]=r2({value:N,placeholder:g,fontSize:a,active:!!b}),K=t.useRef(null),{margin:V,marginTop:H,marginBottom:U,marginRight:W,marginLeft:Z}=A,q={margin:V,marginTop:H,marginBottom:U,marginRight:W,marginLeft:Z};t.useEffect((()=>{w&&w!==z&&w!==L&&I(w)}),[w,z,L]),t.useEffect((()=>{M&&M(N)}),[N]);const G=!!(L||x||N),Y=!(G||!p);return e.jsxs(u2,Object.assign({onOpenChange:e=>{R(e),P&&e&&P(),T&&!e&&T()},menuTrigger:"focus",onInputChange:$,onSelectionChange:e=>{e&&(E||e!==L)&&(I(e),j&&j(e))},isDisabled:l,isReadOnly:d||f,isInvalid:u,isRequired:c,shouldFocusWrap:!0,selectedKey:w?L:void 0,defaultSelectedKey:x,textOnly:b,width:C},A,{children:[e.jsxs(c2,Object.assign({ref:K,hasLabel:!!p,textOnly:b,backgroundColor:o,isDisabled:l,isReadOnly:d||f,isInvalid:u},q,{children:[k&&i2(k,{marginRight:8}),e.jsxs(O1,{filled:G,disabled:l,children:[p,e.jsx(n2,{placeholder:g,hide:Y,placeholderColor:m,fontSize:a,isDisabled:l,width:F,ref:r}),e.jsx(B,{})]}),f?e.jsx(OC,{size:"small"}):e.jsx(d2,{disabled:l,readOnly:d,children:e.jsx(Gt,{name:_?"caret-up":"caret-down",inheritColor:!0})}),e.jsx(C1,{description:v,errorMessage:y})]})),e.jsx(yb,{}),e.jsx(xC,{triggerRef:K,offset:2,placement:O,shouldFlip:!D&&void 0,maxHeight:S,children:({isEntering:t,isExiting:n})=>{var r;return e.jsx(T1,{options:h,autoWidth:b,width:null===(r=null==K?void 0:K.current)||void 0===r?void 0:r.offsetWidth,readOnly:t||n,children:i})}})]}))})),l2=D1,s2=mC,u2=N(hw,M1)(A1),c2=N.div(x1,{paddingRight:8}),d2=N(yC)((({theme:e,disabled:t,readOnly:n})=>({color:t||n?e.input.labelColor.disabled:e.input.labelColor.default,cursor:n?"default":void 0})));var f2=Object.assign(a2,{Item:l2,Section:s2}),p2=1,h2=.9,g2=.8,m2=.17,v2=.1,y2=.999,b2=.9999,w2=.99,x2=/[\\\/_+.#"@\[\(\{&]/,C2=/[\\\/_+.#"@\[\(\{&]/g,S2=/[\s-]/,k2=/[\s-]/g;function E2(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?p2:w2;var l=`${o},${i}`;if(void 0!==a[l])return a[l];for(var s,u,c,d,f=r.charAt(i),p=n.indexOf(f,o),h=0;p>=0;)(s=E2(e,t,n,r,p+1,i+1,a))>h&&(p===o?s*=p2:x2.test(e.charAt(p-1))?(s*=g2,(c=e.slice(o,p-1).match(C2))&&o>0&&(s*=Math.pow(y2,c.length))):S2.test(e.charAt(p-1))?(s*=h2,(d=e.slice(o,p-1).match(k2))&&o>0&&(s*=Math.pow(y2,d.length))):(s*=m2,o>0&&(s*=Math.pow(y2,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=b2)),(s<v2&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((u=E2(e,t,n,r,p+1,i+2,a))*v2>s&&(s=u*v2)),s>h&&(h=s),p=n.indexOf(f,p+1);return a[l]=h,h}function O2(e){return e.toLowerCase().replace(k2," ")}function D2(e,t,n){return E2(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,O2(e),O2(t),0,0,{})}function j2(){return j2=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},j2.apply(this,arguments)}function P2(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 T2(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function M2(...e){return t.useCallback(T2(...e),e)}function A2(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const _2=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},R2=i["useId".toString()]||(()=>{});let L2=0;function I2(e){const[t,n]=i.useState(R2());return _2((()=>{e||n((e=>null!=e?e:String(L2++)))}),[e]),e||(t?`radix-${t}`:"")}function N2(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function $2({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=N2(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,l=a?e:o,s=N2(r);return[l,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)}),[a,e,i,s])]}const z2=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(K2);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(F2,j2({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(F2,j2({},o,{ref:n}),r)}));z2.displayName="Slot";const F2=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...V2(o,r.props),ref:n?T2(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));F2.displayName="SlotClone";const B2=({children:e})=>t.createElement(t.Fragment,null,e);function K2(e){return t.isValidElement(e)&&e.type===B2}function V2(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 H2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?z2:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,j2({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});const U2="dismissableLayer.update",W2="dismissableLayer.pointerDownOutside",Z2="dismissableLayer.focusOutside";let q2;const G2=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Y2=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=t.useContext(G2),[f,p]=t.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=t.useState({}),m=M2(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=N2(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){J2(W2,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=N2(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){J2(Z2,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=N2(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(q2=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),X2(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=q2)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),X2())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(U2,e),()=>document.removeEventListener(U2,e)}),[]),t.createElement(H2.div,j2({},c,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:P2(e.onFocusCapture,k.onFocusCapture),onBlurCapture:P2(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:P2(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function X2(){const e=new CustomEvent(U2);document.dispatchEvent(e)}function J2(e,t,n,{discrete:o}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?function(e,t){e&&r.flushSync((()=>e.dispatchEvent(t)))}(i,a):i.dispatchEvent(a)}const Q2="focusScope.autoFocusOnMount",e5="focusScope.autoFocusOnUnmount",t5={bubbles:!1,cancelable:!0},n5=t.forwardRef(((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[s,u]=t.useState(null),c=N2(i),d=N2(a),f=t.useRef(null),p=M2(n,(e=>u(e))),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect((()=>{if(o){function e(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?f.current=t:a5(f.current,{select:!0})}function t(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||a5(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&a5(s)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,s,h.paused]),t.useEffect((()=>{if(s){l5.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Q2,t5);s.addEventListener(Q2,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(a5(r,{select:t}),document.activeElement!==n)return}((e=r5(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&a5(s))}return()=>{s.removeEventListener(Q2,c),setTimeout((()=>{const e=new CustomEvent(e5,t5);s.addEventListener(e5,d),s.dispatchEvent(e),e.defaultPrevented||a5(null!=t?t:document.body,{select:!0}),s.removeEventListener(e5,d),l5.remove(h)}),0)}}var e}),[s,c,d,h]);const g=t.useCallback((e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=r5(e),n=o5(t,e),r=o5(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&a5(i,{select:!0})):(e.preventDefault(),r&&a5(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,h.paused]);return t.createElement(H2.div,j2({tabIndex:-1},l,{ref:p,onKeyDown:g}))}));function r5(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 o5(e,t){for(const n of e)if(!i5(n,{upTo:t}))return n}function i5(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 a5(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 l5=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=s5(e,t),e.unshift(t)},remove(t){var n;e=s5(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function s5(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const u5=t.forwardRef(((e,n)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?r.createPortal(t.createElement(H2.div,j2({},a,{ref:n})),i):null}));const c5=e=>{const{present:n,children:o}=e,i=function(e){const[n,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),l=t.useRef("none"),s=e?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const e=d5(i.current);l.current="mounted"===u?e:"none"}),[u]),_2((()=>{const t=i.current,n=a.current;if(n!==e){const r=l.current,o=d5(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),_2((()=>{if(n){const e=e=>{const t=d5(i.current).includes(e.animationName);e.target===n&&t&&r.flushSync((()=>c("ANIMATION_END")))},t=e=>{e.target===n&&(l.current=d5(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(n),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),l=M2(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:l}):null};function d5(e){return(null==e?void 0:e.animationName)||"none"}c5.displayName="Presence";let f5=0;function p5(){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",g5="width-before-scroll-bar";function m5(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v5="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,y5=new WeakMap;function b5(e,n){var r,o,i,a=(r=null,o=function(t){return e.forEach((function(e){return m5(e,t)}))},i=t.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0],i.callback=o,i.facade);return v5((function(){var t=y5.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach((function(e){r.has(e)||m5(e,null)})),r.forEach((function(e){n.has(e)||m5(e,o)}))}y5.set(a,e)}),[e]),a}function w5(e){return e}var x5=function(e){var t=e.sideCar,n=s(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,l({},n))};x5.isSideCarExport=!0;var C5=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=w5);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=l({async:!0,ssr:!1},e),t}(),S5=function(){},k5=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:S5,onWheelCapture:S5,onTouchMoveCapture:S5}),o=r[0],a=r[1],u=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,x=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=g,S=b5([n,t]),k=l(l({},x),o);return i.createElement(i.Fragment,null,p&&i.createElement(C,{sideCar:C5,removeScrollBar:f,shards:h,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),u?i.cloneElement(i.Children.only(c),l(l({},k),{ref:S})):i.createElement(w,l({},k,{className:d,ref:S}),c))}));k5.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},k5.classNames={fullWidth:g5,zeroRight:h5};function E5(){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 O5=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=E5())&&(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)}}},D5=function(){var e,t=(e=O5(),function(t,n){i.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}},j5={left:0,top:0,right:0,gap:0},P5=function(e){return parseInt(e||"",10)||0},T5=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return j5;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[P5(n),P5(r),P5(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])}},M5=D5(),A5="data-scroll-locked",_5=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(A5,"] {\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(g5," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(h5," .").concat(h5," {\n right: 0 ").concat(r,";\n }\n \n .").concat(g5," .").concat(g5," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(A5,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},R5=function(){var e=parseInt(document.body.getAttribute(A5)||"0",10);return isFinite(e)?e:0},L5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;i.useEffect((function(){return document.body.setAttribute(A5,(R5()+1).toString()),function(){var e=R5()-1;e<=0?document.body.removeAttribute(A5):document.body.setAttribute(A5,e.toString())}}),[]);var a=i.useMemo((function(){return T5(o)}),[o]);return i.createElement(M5,{styles:_5(a,!t,o,n?"":"!important")})},I5=!1;if("undefined"!=typeof window)try{var N5=Object.defineProperty({},"passive",{get:function(){return I5=!0,!0}});window.addEventListener("test",N5,N5),window.removeEventListener("test",N5,N5)}catch(e){I5=!1}var $5=!!I5&&{passive:!1},z5=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])},F5=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),B5(e,n)){var r=K5(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},B5=function(e,t){return"v"===e?function(e){return z5(e,"overflowY")}(t):function(e){return z5(e,"overflowX")}(t)},K5=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},V5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},H5=function(e){return[e.deltaX,e.deltaY]},U5=function(e){return e&&"current"in e?e.current:e},W5=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Z5=0,q5=[];var G5,Y5=(G5=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Z5++)[0],a=i.useState((function(){return D5()}))[0],l=i.useRef(e);i.useEffect((function(){l.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));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(U5),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=V5(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=F5(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=F5(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;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),u=!1,c=a>0,d=0,f=0;do{var p=K5(e,l),h=p[0],g=p[1]-p[2]-i*h;(h||g)&&B5(e,l)&&(d+=g,f+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(!c||0!==d&&o)&&(c||0!==f&&o)||(u=!0),u}(p,t,e,"h"===p?s:u,!0)}),[]),u=i.useCallback((function(e){var n=e;if(q5.length&&q5[q5.length-1]===a){var r="deltaY"in n?H5(n):V5(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(U5).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?s(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=i.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=i.useCallback((function(e){n.current=V5(e),r.current=void 0}),[]),f=i.useCallback((function(t){c(t.type,H5(t),t.target,s(t,e.lockRef.current))}),[]),p=i.useCallback((function(t){c(t.type,V5(t),t.target,s(t,e.lockRef.current))}),[]);i.useEffect((function(){return q5.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,$5),document.addEventListener("touchmove",u,$5),document.addEventListener("touchstart",d,$5),function(){q5=q5.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,$5),document.removeEventListener("touchmove",u,$5),document.removeEventListener("touchstart",d,$5)}}),[]);var h=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(a,{styles:W5(o)}):null,h?i.createElement(L5,{gapMode:"margin"}):null)},C5.useMedium(G5),x5),X5=i.forwardRef((function(e,t){return i.createElement(k5,l({},e,{ref:t,sideCar:Y5}))}));X5.classNames=k5.classNames;var J5=new WeakMap,Q5=new WeakMap,e9={},t9=0,n9=function(e){return e&&(e.host||n9(e.parentNode))},r9=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=n9(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]);e9[n]||(e9[n]=new WeakMap);var i=e9[n],a=[],l=new Set,s=new Set(o),u=function(e){e&&!l.has(e)&&(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(J5.get(e)||0)+1,u=(i.get(e)||0)+1;J5.set(e,s),i.set(e,u),a.push(e),1===s&&o&&Q5.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),l.clear(),t9++,function(){a.forEach((function(e){var t=J5.get(e)-1,o=i.get(e)-1;J5.set(e,t),i.set(e,o),t||(Q5.has(e)||e.removeAttribute(r),Q5.delete(e)),o||e.removeAttribute(n)})),--t9||(J5=new WeakMap,J5=new WeakMap,Q5=new WeakMap,e9={})}},o9=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]"))),r9(r,o,n,"aria-hidden")):function(){return null}};const i9="Dialog",[a9,l9]=function(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function l(n){const{scope:r,children:o,...l}=n,s=(null==r?void 0:r[e][a])||i,u=t.useMemo((()=>l),Object.values(l));return t.createElement(s.Provider,{value:u},o)}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,l){const s=(null==l?void 0:l[e][a])||i,u=t.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},A2(o,...n)]}(i9),[s9,u9]=a9(i9),c9="DialogPortal",[d9,f9]=a9(c9,{forceMount:void 0}),p9="DialogOverlay",h9=t.forwardRef(((e,n)=>{const r=f9(p9,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=u9(p9,e.__scopeDialog);return a.modal?t.createElement(c5,{present:o||a.open},t.createElement(g9,j2({},i,{ref:n}))):null})),g9=t.forwardRef(((e,n)=>{const{__scopeDialog:r,...o}=e,i=u9(p9,r);return t.createElement(X5,{as:z2,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(H2.div,j2({"data-state":x9(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))})),m9="DialogContent",v9=t.forwardRef(((e,n)=>{const r=f9(m9,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=u9(m9,e.__scopeDialog);return t.createElement(c5,{present:o||a.open},a.modal?t.createElement(y9,j2({},i,{ref:n})):t.createElement(b9,j2({},i,{ref:n})))})),y9=t.forwardRef(((e,n)=>{const r=u9(m9,e.__scopeDialog),o=t.useRef(null),i=M2(n,r.contentRef,o);return t.useEffect((()=>{const e=o.current;if(e)return o9(e)}),[]),t.createElement(w9,j2({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P2(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:P2(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:P2(e.onFocusOutside,(e=>e.preventDefault()))}))})),b9=t.forwardRef(((e,n)=>{const r=u9(m9,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(w9,j2({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const l=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))})),w9=t.forwardRef(((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=e,s=u9(m9,r),u=M2(n,t.useRef(null));return t.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:p5()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:p5()),f5++,()=>{1===f5&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),f5--}}),[]),t.createElement(t.Fragment,null,t.createElement(n5,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a},t.createElement(Y2,j2({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":x9(s.open)},l,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}));function x9(e){return e?"open":"closed"}const C9=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,s=t.useRef(null),u=t.useRef(null),[c=!1,d]=$2({prop:o,defaultProp:i,onChange:a});return t.createElement(s9,{scope:n,triggerRef:s,contentRef:u,contentId:I2(),titleId:I2(),descriptionId:I2(),open:c,onOpenChange:d,onOpenToggle:t.useCallback((()=>d((e=>!e))),[d]),modal:l},r)},S9=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,a=u9(c9,n);return t.createElement(d9,{scope:n,forceMount:r},t.Children.map(o,(e=>t.createElement(c5,{present:r||a.open},t.createElement(u5,{asChild:!0,container:i},e)))))},k9=h9,E9=v9;var O9='[cmdk-group=""]',D9='[cmdk-group-items=""]',j9='[cmdk-item=""]',P9=`${j9}:not([aria-disabled="true"])`,T9="cmdk-item-select",M9="data-value",A9=(e,t,n)=>D2(e,t,n),_9=i.createContext(void 0),R9=()=>i.useContext(_9),L9=i.createContext(void 0),I9=()=>i.useContext(L9),N9=i.createContext(void 0),$9=i.forwardRef(((e,t)=>{let n=J9((()=>{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}}})),r=J9((()=>new Set)),o=J9((()=>new Map)),a=J9((()=>new Map)),l=J9((()=>new Set)),s=Y9(e),{label:u,children:c,value:d,onValueChange:f,filter:p,shouldFilter:h,loop:g,disablePointerSelection:m=!1,vimBindings:v=!0,...y}=e,b=i.useId(),w=i.useId(),x=i.useId(),C=i.useRef(null),S=n3();X9((()=>{if(void 0!==d){let e=d.trim();n.current.value=e,k.emit()}}),[d]),X9((()=>{S(6,T)}),[]);let k=i.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)P(),D(),S(1,j);else if("value"===e&&(r||S(5,T),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=i.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)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),S(3,(()=>{P(),D(),n.current.value||j(),k.emit()})),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=M();S(4,(()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&j(),k.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:m,listId:b,inputId:x,labelId:w,listInnerRef:C})),[]);function O(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:A9;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=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=C.current;A().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(D9);t?t.appendChild(e.parentElement===t?e:e.closest(`${D9} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${D9} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=C.current.querySelector(`${O9}[${M9}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function j(){let e=A().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(M9);k.setState("value",t||void 0)}function P(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=O(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}for(let[e,t]of o.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=u}function T(){var e,t,n;let r=M();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(O9))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function M(){var e;return null==(e=C.current)?void 0:e.querySelector(`${j9}[aria-selected="true"]`)}function A(){var e;return Array.from(null==(e=C.current)?void 0:e.querySelectorAll(P9))}function _(e){let t=A()[e];t&&k.setState("value",t.getAttribute(M9))}function R(e){var t;let n=M(),r=A(),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(M9))}function L(e){let t,n=M(),r=null==n?void 0:n.closest(O9);for(;r&&!t;)r=e>0?q9(r,O9):G9(r,O9),t=null==r?void 0:r.querySelector(P9);t?k.setState("value",t.getAttribute(M9)):R(e)}let I=()=>_(A().length-1),N=e=>{e.preventDefault(),e.metaKey?I():e.altKey?L(1):R(1)},$=e=>{e.preventDefault(),e.metaKey?_(0):e.altKey?L(-1):R(-1)};return i.createElement(H2.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(),_(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(T9);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:o3},u),r3(e,(e=>i.createElement(L9.Provider,{value:k},i.createElement(_9.Provider,{value:E},e)))))})),z9=i.forwardRef(((e,t)=>{var n,r;let o=i.useId(),a=i.useRef(null),l=i.useContext(N9),s=R9(),u=Y9(e),c=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==l?void 0:l.forceMount;X9((()=>{if(!c)return s.item(o,null==l?void 0:l.id)}),[c]);let d=t3(o,a,[e.value,e.children,a],e.keywords),f=I9(),p=e3((e=>e.value&&e.value===d.current)),h=e3((e=>!(!c&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0)));function g(){var e,t;m(),null==(t=(e=u.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(i.useEffect((()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(T9,g),()=>t.removeEventListener(T9,g)}),[h,e.onSelect,e.disabled]),!h)return null;let{disabled:v,value:y,onSelect:b,forceMount:w,keywords:x,...C}=e;return i.createElement(H2.div,{ref:Q9([a,t]),...C,id:o,"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)})),F9=i.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,l=i.useId(),s=i.useRef(null),u=i.useRef(null),c=i.useId(),d=R9(),f=e3((e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(l))));X9((()=>d.group(l)),[]),t3(l,s,[e.value,e.heading,u]);let p=i.useMemo((()=>({id:l,forceMount:o})),[o]);return i.createElement(H2.div,{ref:Q9([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&i.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),r3(e,(e=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},i.createElement(N9.Provider,{value:p},e)))))})),B9=i.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=e3((e=>!e.search));return n||a?i.createElement(H2.div,{ref:Q9([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),K9=i.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=I9(),l=e3((e=>e.search)),s=e3((e=>e.value)),u=R9(),c=i.useMemo((()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${j9}[${M9}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return i.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),i.createElement(H2.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":c,id:u.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),V9=i.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=i.useRef(null),l=i.useRef(null),s=R9();return i.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)}}}),[]),i.createElement(H2.div,{ref:Q9([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},r3(e,(e=>i.createElement("div",{ref:Q9([l,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),H9=i.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:l,...s}=e;return i.createElement(C9,{open:n,onOpenChange:r},i.createElement(S9,{container:l},i.createElement(k9,{"cmdk-overlay":"",className:o}),i.createElement(E9,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement($9,{ref:t,...s}))))})),U9=i.forwardRef(((e,t)=>e3((e=>0===e.filtered.count))?i.createElement(H2.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),W9=i.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return i.createElement(H2.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},r3(e,(e=>i.createElement("div",{"aria-hidden":!0},e))))})),Z9=Object.assign($9,{List:V9,Item:z9,Input:K9,Group:F9,Separator:B9,Dialog:H9,Empty:U9,Loading:W9});function q9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function G9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Y9(e){let t=i.useRef(e);return X9((()=>{t.current=e})),t}var X9="undefined"==typeof window?i.useEffect:i.useLayoutEffect;function J9(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function Q9(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function e3(e){let t=I9(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function t3(e,t,n,r=[]){let o=i.useRef(),a=R9();return X9((()=>{var i;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():o.current}})(),s=r.map((e=>e.trim()));a.value(e,l,s),null==(i=t.current)||i.setAttribute(M9,l),o.current=l})),o}var n3=()=>{let[e,t]=i.useState(),n=J9((()=>new Map));return X9((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function r3({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.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 o3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const i3=t=>{var{id:n,value:r,header:o,body:i,leftElement:a,rightElement:l,inline:u,disabled:c,onClick:d}=t,f=s(t,["id","value","header","body","leftElement","rightElement","inline","disabled","onClick"]);return e.jsxs(a3,Object.assign({id:n||r,disabled:c,onSelect:d},f,{children:[a||null,o&&i?e.jsx(lC,{header:o,body:i,inline:u}):r,l&&e.jsx("div",{style:{marginLeft:"auto"},children:l})]}))},a3=N(Z9.Item,dC)((({theme:{optionItem:e}})=>({'&[data-selected="true"]':{backgroundColor:e.background.active}})),fC),l3=({id:t,title:n,children:r})=>e.jsx(s3,{id:t,heading:n,children:r}),s3=N(Z9.Group)((({theme:e})=>({"& > div[cmdk-group-heading]":{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none"}}))),u3=({options:t,onItemSelect:n})=>e.jsx(e.Fragment,{children:t.map((t=>{if("options"in t){const r=t;return e.jsx(l3,{id:r.id,title:r.title,children:r.options.map((t=>e.jsx(i3,Object.assign({onClick:()=>n(t)},t),t.id||t.value)))},r.id)}return e.jsx(i3,Object.assign({onClick:()=>n(t)},t),t.id||t.value)}))}),c3=N($9)(eC,{display:"flex",flexDirection:"column",overflow:"hidden"},(({maxWidth:e,maxHeight:t})=>({maxWidth:e,maxHeight:t})),Ht),d3=N.div(x1),f3=N(K9)(t2),p3=N(V9)({overflowY:"auto"}),h3=N(U9)((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),g3=N(Qw)((({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"}))),m3=N.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 v3={exports:{}};v3.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)&&!u(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 u(e){return l(e)||s(e)}function c(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=u,n.isOrdered=c,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},x={value:!1};function C(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(j)),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 j(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return A(e,t,0)}function M(e,t){return A(e,t,t)}function A(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var _=0,R=1,L=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():ue(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=_,z.VALUES=R,z.ENTRIES=L,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=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(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 ce(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)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(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 xe(e,t,n){if(!(this instanceof xe))return new xe(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 Ce(){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 P(e,t,n)?this:new be(this._value,M(t,n)-T(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(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return P(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.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},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.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},xe.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)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(Ce,n),t(Se,Ce),t(ke,Ce),t(Ee,Ce),Ce.Keyed=Se,Ce.Indexed=ke,Ce.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 je(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?Pe(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Pe(e){var t=Ke[e];return void 0===t&&(t=Te(e),Be===Fe&&(Be=0,Ke={}),Be++,Ke[e]=t),t}function Te(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=Le.get(e)))return t;if(void 0!==(t=e[$e]))return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[$e]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Le.set(e,t);else{if(void 0!==Ae&&!1===Ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)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 Ae=Object.isExtensible,_e=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Le,Ie="function"==typeof WeakMap;Ie&&(Le=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)&&!c(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,Cn(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=C(w),a=C(x);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 ut(e,t,n,r){e||(e=new k);for(var o=new Qe(e,je(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 ct(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,u=t.length;l<u;l++,s<<=1){var c=t[l];void 0!==c&&l!==r&&(o|=s,a[i++]=c)}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,u=o?b:e.get(s,b),c=mt(u,t,n,r);return c===u?e:c===b?e.remove(s):(o?ot():e).set(s,c)}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,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(S(a),(l||!d)&&S(i),!l||1!==s.length){if(!d&&!l&&s.length>=xt)return ut(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[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=je(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=je(r));var l=(0===t?n:n>>>t)&y,s=1<<l,u=this.bitmap,c=0!=(u&s);if(!c&&o===b)return this;var d=vt(u&s-1),f=this.nodes,p=c?f[d]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!c&&h&&f.length>=Ct)return dt(e,f,u,l,h);if(c&&!h&&2===f.length&&lt(f[1^d]))return f[1^d];if(c&&h&&1===f.length&&lt(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^s:u|s,w=c?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=je(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=je(r));var l=(0===t?n:n>>>t)&y,s=o===b,u=this.nodes,c=u[l];if(s&&!c)return this;var d=at(c,e,t+m,n,r,o,i,a);if(d===c)return this;var f=this.count;if(c){if(!d&&--f<St)return ct(e,u,f,l)}else f++;var p=e&&e===this.ownerID,h=yt(u,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=je(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,u=0,c=s.length;u<c&&!ve(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(S(a),(l||!d)&&S(i),l&&2===c)return new Qe(e,this.keyHash,s[1^u]);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?u===c-1?p.pop():p[u]=p.pop():p[u]=[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,je(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 xt=v/4,Ct=v/2,St=v/4;function kt(e){var t=Rt();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?_t(0,r,m,null,new jt(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 Lt(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):Rt()},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 P(e,t,n)?this:zt(this,T(e,n),M(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=At(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=At(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_t(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 jt(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,jt.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 jt([],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},jt.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 Pt,Tt,Mt={};function At(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,u=r-a;return u>v&&(u=v),function(){if(s===u)return Mt;var e=t?--u:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>v&&(c=v),function(){for(;;){if(l){var e=l();if(e!==Mt)return e;l=null}if(u===c)return Mt;var n=t?--c:u++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function _t(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 Rt(){return Pt||(Pt=_t(0,0,m))}function Lt(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=C(x);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):_t(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 u=e&&e.array[l],c=It(u,t,n-m,r,o,i);return c===u?e:((a=Nt(e,t)).array[l]=c,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 jt(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,u=e._root,c=0;a+c<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(s+=m);c&&(a+=c,o+=c,l+=c,i+=c);for(var d=Bt(i),f=Bt(l);f>=1<<s+m;)u=new jt(u&&u.array.length?[u]:[],r),s+=m;var p=e._tail,h=f<d?$t(e,l-1):f>d?new jt([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=u=Nt(u,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,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(c=0;u;){var w=a>>>s&y;if(w!==f>>>s&y)break;w&&(c+=(1<<s)*w),s-=m,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,s,a-c)),u&&f<d&&(u=u.removeAfter(r,s,f-c)),c&&(a-=c,l-=c)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):_t(a,l,s,u,h)}function Ft(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],u=o(s);u.size>i&&(i=u.size),a(s)||(u=u.map((function(e){return pe(e)}))),r.push(u)}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)&&c(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 Tt||(Tt=Ht(ot(),Rt()))}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===L){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===R?_:R,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(L,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(L,i),l=0;return new z((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return F(o,r?u:l++,c,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=(c(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),P(t,n,o))return e;var i=T(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 u=bn(e);return u.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(u.get=function(t,n){return(t=D(this,t))>=0&&t<l?e.get(t+i,n):n}),u.__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,u=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==l})),u},u.__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===R?e:F(t,s-1,t===_?void 0:e.value[1],e)}))},u}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(L,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],u=o[1];return t.call(n,u,s,i)?r===L?e:F(r,s,u,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,u){if(!l||!(l=t.call(n,e,i,u)))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(L,i),s=!0,u=0;return new z((function(){var e,i,c;do{if((e=l.next()).done)return r||o===R?e:F(o,u++,o===_?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],s&&(s=t.call(n,c,i,a))}while(s);return o===L?e:F(o,i,c,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 u=new te(o);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,u){var c=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?s(e,u+1):!1===r(e,n?o:i++,c)&&(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 u=e.value;if(r===L&&(u=u[1]),t&&!(l.length<t)||!a(u))return n?e:F(r,s++,u,e);l.push(i),i=u.__iterator(r,o)}else i=l.pop()}return B()}))},r}function un(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 cn(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(R,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=xn);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=xn),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(R,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 xn(e,t){return e>t?1:e<t?-1:0}function Cn(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(R,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(R,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(R,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(R,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(jn.bind(void 0,e))}catch(e){}}function jn(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 Pn(e){return null==e?In():Tn(e)&&!c(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[An])}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(Pn,Ee),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(r(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(e){return this._map.has(e)},Pn.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},Pn.prototype.remove=function(e){return Rn(this,this._map.remove(e))},Pn.prototype.clear=function(){return Rn(this,this._map.clear())},Pn.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])},Pn.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)}))}))},Pn.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)}))}))},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Pn.prototype.sort=function(e){return Nn(dn(this,e))},Pn.prototype.sortBy=function(e,t){return Nn(dn(this,t,e))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Pn.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)},Pn.isSet=Tn;var Mn,An="@@__IMMUTABLE_SET__@@",_n=Pn.prototype;function Rn(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 Ln(e,t){var n=Object.create(_n);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Ln(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 Tn(e)&&c(e)}_n[An]=!0,_n[g]=_n.remove,_n.mergeDeep=_n.merge,_n.mergeDeepWith=_n.mergeWith,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,_n.__empty=In,_n.__make=Ln,t(Nn,Pn),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(P(e,t,this.size))return this;var n=T(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 Pn(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(L)},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(_)},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(R)},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(j)},flatMap:function(e,t){return gn(this,un(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=Cn(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=c(e),n=l(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sr(je(e),je(t))|0}:function(e,t){r=r+sr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(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=T(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,cn(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 ur={Iterable:n,Seq:Z,Collection:Ce,Map:He,OrderedMap:Kt,List:kt,Stack:Vn,Set:Pn,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ve,fromJS:pe};return ur}();var y3=v3.exports,b3=y3.OrderedMap,w3={createFromArray:function(e){return b3(e.map((function(e){return[e.getKey(),e]})))}};var x3=y3,C3=x3.Map,S3=x3.OrderedSet,k3=x3.Record,E3=S3(),O3={style:E3,entity:null},D3=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 j3;var t=C3({style:E3,entity:null}).merge(e),n=P3.get(t);if(n)return n;var o=new r(t);return P3=P3.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?S3(t):t,entity:Array.isArray(n)?S3(n):n})},r}(k3(O3)),j3=new D3,P3=C3([[C3(O3),j3]]);D3.EMPTY=j3;var T3=D3;var M3=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 A3=T3,_3=M3,R3=y3,L3=R3.List,I3=R3.Map,N3=R3.OrderedSet,$3=R3.Record,z3=R3.Repeat,F3=N3(),B3=$3({key:"",type:"unstyled",text:"",characterList:L3(),depth:0,data:I3()}),K3=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=L3(z3(A3.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():F3},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){_3(this.getCharacterList(),V3,e,t)},o.findEntityRanges=function(e,t){_3(this.getCharacterList(),H3,e,t)},r}(B3);function V3(e,t){return e.getStyle()===t.getStyle()}function H3(e,t){return e.getEntity()===t.getEntity()}var U3=K3;var W3=T3,Z3=M3,q3=y3,G3=q3.List,Y3=q3.Map,X3=q3.OrderedSet,J3=q3.Record,Q3=q3.Repeat,e4=X3(),t4={parent:null,characterList:G3(),data:Y3(),depth:0,key:"",text:"",type:"unstyled",children:G3(),prevSibling:null,nextSibling:null},n4=function(e,t){return e.getStyle()===t.getStyle()},r4=function(e,t){return e.getEntity()===t.getEntity()},o4=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t4;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=G3(Q3(W3.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():e4},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){Z3(this.getCharacterList(),n4,e,t)},o.findEntityRanges=function(e,t){Z3(this.getCharacterList(),r4,e,t)},r}(J3(t4)),i4=o4,a4=T3,l4=y3.Map;function s4(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat(l4([[l,o.get(l)]])).map((function(e,t){var o,u;i===l?(o=a,u=s):(o=t===i?a:0,u=t===l?s:e.getLength());for(var c,d=e.getCharacterList();o<u;)c=d.get(o),d=d.set(o,r?a4.applyStyle(c,n):a4.removeStyle(c,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var u4={add:function(e,t,n){return s4(e,t,n,!0)},remove:function(e,t,n){return s4(e,t,n,!1)}},c4=T3;var d4=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,c4.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},f4=y3;var p4=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(f4.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return d4(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})},h4={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,u=null,c=0;c<i.length;c++){if(e<(a=l+i[c].length)&&l<t)null!==s||(s=l),u=a;else if(null!==s)break;l=a}var d=r+n.length,f=s===r,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:s!==r&&s--),{start:s,end:u}}},g4="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var m4=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(g4(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}},v4=m4;var y4=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?v4(!1,"Entity key not found in this range."):v4(!1)),n},b4=h4,w4=y4,x4=m4;function C4(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),u=e.__get(o).getMutability(),c=a?l:s;if("MUTABLE"===u)return n;var d=w4(t,o).filter((function(e){return c<=e.end&&c>=e.start}));1!=d.length&&("production"!==process.env.NODE_ENV?x4(!1,"There should only be one entity range within this removal range."):x4(!1));var f=d[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:l=f.start);var p=b4.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 S4=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 u=r;if(l&&l===s)u=C4(e,t,u,o,l,!0,!0);else if(l&&s){var c=C4(e,t,u,o,l,!1,!0),d=C4(e,n,u,o,s,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var f=C4(e,t,u,o,l,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var p=C4(e,n,u,o,s,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},k4={},E4=Math.pow(2,24);var O4=function(){for(var e;void 0===e||k4.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*E4).toString(32);return k4[e]=!0,e},D4=i4,j4=O4,P4=y3.OrderedMap,T4=function(e){return e.first()instanceof D4?function(e){var t,n={};return P4(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),u=r.getParentKey(),c=j4();if(n[i]=c,a&&(e.get(a)?e.setIn([a,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),c))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):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 P4(e.toArray().map((function(e){var t=j4();return[t,e.set("key",t)]})))}(e)},M4=T3,A4=M3,_4=m4;function R4(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,u=function(e,t,n){var r;return A4(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?_4(!1,"Removal range must exist within character list."):_4(!1)),r}(r,l,n),c=u.start,d=u.end;c<d;)s=r.get(c),r=r.set(c,M4.applyEntity(s,null)),c++;return t.set("characterList",r)}return t}var L4=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=R4(r,l,a);s!==l&&(o[i]=s);var u=t.getEndKey(),c=t.getEndOffset(),d=n.get(u);i===u&&(d=s);var f=R4(r,d,c);return f!==d&&(o[u]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},I4=T4,N4=L4,$4=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=N4(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),u=l.indexOf(o)+1;return I4(a.slice(s,u).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 z4=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},F4=w3,B4=i4,K4=z4,V4=m4,H4=T4,U4=y3.List,W4=function(e,t,n,r,o,i){var a=n.first()instanceof B4,l=[],s=r.size,u=n.get(o),c=r.first(),d=r.last(),f=d.getLength(),p=d.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!c.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=F4.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),u=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([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var c=e.get(l).getChildKeys(),d=c.indexOf(o)+1,f=c.toArray();f.splice.apply(f,[d,0].concat(s)),t.setIn([l,"children"],U4(f))}}))}(g,0,u,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},Z4=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?V4(!1,"`insertFragment` should only be called with a collapsed selection state."):V4(!1));var o=e.getBlockMap(),i=H4(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof B4&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?V4(!1,"`insertFragment` should not be called when a container node is selected."):V4(!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(),u=l.getCharacterList(),c=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:K4(u,r.getCharacterList(),i),type:p,data:f});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:d,focusKey:c,focusOffset:d,isBackward:!1})})}(e,t,o,i.first(),a,l,r):W4(e,t,o,i,a,l)},q4=z4,G4=m4,Y4=y3.Repeat;var X4=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?G4(!1,"`insertText` should only be called with a collapsed range."):G4(!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),u=s.getText(),c=s.merge({text:u.slice(0,l)+n+u.slice(l,s.getLength()),characterList:q4(s.getCharacterList(),Y4(r,o).toList(),l)}),d=l+o;return e.merge({blockMap:i.set(a,c),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},J4=y3.Map;var Q4=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(J4([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},e6=i4,t6=function(e,t){if(!(e instanceof e6))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},n6=i4,r6=t6,o6=y3;o6.List;var i6=o6.Map,a6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l6=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},s6=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},u6=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},c6=function(e,t,n,r){return e.withMutations((function(o){if(a6(t.getKey(),o,(function(e){return e.merge({nextSibling:s6(e,o,r),prevSibling:u6(e,o,r)})})),a6(n.getKey(),o,(function(e){return e.merge({nextSibling:s6(e,o,r),prevSibling:u6(e,o,r)})})),l6(t.getKey(),r).forEach((function(e){return a6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:s6(e,o,r),prevSibling:u6(e,o,r)})}))})),a6(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),a6(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:s6(e,o,r)})})),a6(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:u6(e,o,r)})})),a6(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),l6(n.getKey(),r).forEach((function(e){a6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:s6(e,o,r),prevSibling:u6(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=r6(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?r6(o,t):null}return n}(n,r).forEach((function(e){return a6(e,o,(function(e){return e.merge({nextSibling:s6(e,o,r),prevSibling:u6(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();a6(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),a6(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){a6(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);a6(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}a6(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},d6=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},f6=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),u=r.get(a),c=s instanceof n6,d=[];if(c){var f=u.getChildKeys(),p=l6(a,r);u.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([a]))),d=d.concat(l6(r6(u,r),r))}n=s===u?d6(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+u.getText().slice(l),characterList:n}),g=c&&0===i&&0===l&&u.getParentKey()===o&&null==u.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 c&&s!==u&&(m=c6(m,s,u,r)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},p6=i4,h6=O4,g6=y3,m6=m4,v6=Q4,y6=g6.List,b6=g6.Map,w6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},x6=T3,C6=u4,S6=p4,k6=S4,E6=$4,O6=Z4,D6=X4,j6=m4,P6=Q4,T6=L4,M6=f6,A6=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?m6(!1,"Selection range must be collapsed."):m6(!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 v6(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),u=h6(),c=o instanceof p6,d=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),f=d.merge({key:u,text:i.slice(l),characterList:s.slice(l),data:b6()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,d],[u,f]],h).toOrderedMap();return c&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?m6(!1,"ContentBlockNode must not have children"):m6(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();w6(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:y6(i)})})),w6(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),w6(r,e,(function(e){return e.merge({nextSibling:o})})),w6(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},_6=y3.OrderedSet,R6={replaceText:function(e,t,n,r,o){var i=T6(e,t),a=M6(i,t),l=x6.create({style:r||_6(),entity:o||null});return D6(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?j6(!1,"Target range must be collapsed for `insertText`."):j6(!1)),R6.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=E6(e,t),o=R6.removeRange(e,t,"backward");return R6.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=T6(e,t),i=M6(o,t);return O6(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(),u=i.getEntityAt(l),c=a.getEntityAt(s-1);if(r===o&&u&&u===c){var d=k6(e.getEntityMap(),i,a,t,n);return M6(e,d)}var f=T6(e,t);return M6(f,t)},splitBlock:function(e,t){var n=T6(e,t),r=M6(n,t);return A6(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return C6.add(e,t,n)},removeInlineStyle:function(e,t,n){return C6.remove(e,t,n)},setBlockType:function(e,t,n){return P6(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return P6(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return P6(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=T6(e,t);return S6(r,t,n)}},L6=R6;var I6=function(e){return Object.keys(e).map((function(t){return e[t]}))};function N6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $6=M3,z6=I6,F6=y3,B6=F6.List,K6=F6.Repeat,V6=F6.Record,H6=function(){return!0},U6=V6({start:null,end:null}),W6=V6({start:null,end:null,decoratorKey:null,leaves:null}),Z6={generate:function(e,t,n){var r=t.getLength();if(!r)return B6.of(new W6({start:0,end:0,decoratorKey:null,leaves:B6.of(new U6({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):B6(K6(null,r)),a=t.getCharacterList();return $6(i,G6,H6,(function(e,t){o.push(new W6({start:e,end:t,decoratorKey:i.get(e),leaves:q6(a.slice(e,t).toList(),e)}))})),B6(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 W6(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){N6(e,t,n[t])}))}return e}({},n,{leaves:null!=t?B6(Array.isArray(t)?t:z6(t)).map((function(e){return U6(e)})):null}))}};function q6(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return $6(r,G6,H6,(function(e,r){n.push(new U6({start:e+t,end:r+t}))})),B6(n)}function G6(e,t){return e===t}var Y6=Z6;var X6=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,y3.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),J6=X6;var Q6=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 e7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t7=J6,n7=m4,r7=Q6,o7=(0,y3.Map)(),i7=r7();function a7(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var l7={getLastCreatedEntityKey:function(){return a7("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l7.__getLastCreatedEntityKey()},create:function(e,t,n){return a7("DraftEntity.create","contentState.createEntity"),l7.__create(e,t,n)},add:function(e){return a7("DraftEntity.add","contentState.addEntity"),l7.__add(e)},get:function(e){return a7("DraftEntity.get","contentState.getEntity"),l7.__get(e)},__getAll:function(){return o7},__loadWithEntities:function(e){o7=e,i7=r7()},mergeData:function(e,t){return a7("DraftEntity.mergeData","contentState.mergeEntityData"),l7.__mergeData(e,t)},replaceData:function(e,t){return a7("DraftEntity.replaceData","contentState.replaceEntityData"),l7.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return i7},__create:function(e,t,n){return l7.__add(new t7({type:e,mutability:t,data:n||{}}))},__add:function(e){return i7=r7(),o7=o7.set(i7,e),i7},__get:function(e){var t=o7.get(e);return t||("production"!==process.env.NODE_ENV?n7(!1,"Unknown DraftEntity key: %s.",e):n7(!1)),t},__mergeData:function(e,t){var n=l7.__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){e7(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return o7=o7.set(e,o),o},__replaceData:function(e,t){var n=l7.__get(e).set("data",t);return o7=o7.set(e,n),n}},s7=l7;var u7=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,y3.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),c7=u7,d7=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},f7=new RegExp("\r","g");var p7=function(e){return e.replace(f7,"")};function h7(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){g7(e,t,n[t])}))}return e}function g7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m7=w3,v7=T3,y7=U3,b7=i4,w7=s7,x7=c7,C7=O4,S7=I6,k7=d7,E7=y3,O7=p7,D7=E7.List,j7=E7.Record,P7=E7.Repeat,T7=E7.Map,M7=E7.OrderedMap,A7=j7({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),_7=k7("draft_tree_data_support")?b7:y7,R7=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 w7},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 w7.__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 w7.__create(e,t,n),this},o.mergeEntityData=function(e,t){return w7.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return w7.__replaceData(e,t),this},o.addEntity=function(e){return w7.__add(e),this},o.getEntity=function(e){return w7.__get(e)},o.getAllEntities=function(){return w7.__getAll()},o.loadWithEntities=function(e){return w7.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=m7.createFromArray(n),i=o.isEmpty()?new x7:x7.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||w7,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=O7(e),new _7({key:C7(),text:e,type:"unstyled",characterList:D7(P7(v7.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(h7({},e,{blockMap:M7(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new x7(e.selectionBefore),selectionAfter:new x7(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new _7(h7({},e,{data:T7(e.data),characterList:null!=t?D7((Array.isArray(t)?t:S7(t)).map((function(e){return v7.fromJS(e)}))):void 0}))},r}(A7),L7=R7,I7=m4,N7="LTR",$7="RTL",z7=null;function F7(e){return e===N7||e===$7}function B7(e){return F7(e)||("production"!==process.env.NODE_ENV?I7(!1,"`dir` must be a strong direction to be converted to HTML Direction"):I7(!1)),e===N7?"ltr":"rtl"}function K7(e){z7=e}var V7={NEUTRAL:"NEUTRAL",LTR:N7,RTL:$7,isStrong:F7,getHTMLDir:B7,getHTMLDirIfDifferent:function(e,t){return F7(e)||("production"!==process.env.NODE_ENV?I7(!1,"`dir` must be a strong direction to be converted to HTML Direction"):I7(!1)),F7(t)||("production"!==process.env.NODE_ENV?I7(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):I7(!1)),e===t?null:B7(e)},setGlobalDir:K7,initGlobalDir:function(){K7(N7)},getGlobalDir:function(){return z7||this.initGlobalDir(),z7||("production"!==process.env.NODE_ENV?I7(!1,"Global direction not set."):I7(!1)),z7}},H7=V7,U7=m4,W7="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",Z7="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",q7=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+W7+Z7+"]"),G7=new RegExp("["+W7+Z7+"]");function Y7(e){var t=q7.exec(e);return null==t?null:t[0]}function X7(e){var t=Y7(e);return null==t?H7.NEUTRAL:G7.exec(t)?H7.RTL:H7.LTR}function J7(e,t){if(t=t||H7.NEUTRAL,!e.length)return t;var n=X7(e);return n===H7.NEUTRAL?t:n}function Q7(e,t){return t||(t=H7.getGlobalDir()),H7.isStrong(t)||("production"!==process.env.NODE_ENV?U7(!1,"Fallback direction must be a strong direction"):U7(!1)),J7(e,t)}var e8={firstStrongChar:Y7,firstStrongCharDir:X7,resolveBlockDir:J7,getDirection:Q7,isDirectionLTR:function(e,t){return Q7(e,t)===H7.LTR},isDirectionRTL:function(e,t){return Q7(e,t)===H7.RTL}};function t8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n8,r8=e8,o8=V7,i8=m4,a8=function(){function e(e){t8(this,"_defaultDir",void 0),t8(this,"_lastDir",void 0),e?o8.isStrong(e)||("production"!==process.env.NODE_ENV?i8(!1,"Default direction must be a strong direction (LTR or RTL)"):i8(!1)):e=o8.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=r8.getDirection(e,this._lastDir),this._lastDir},e}(),l8=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},s8=a8,u8=y3,c8=l8,d8=u8.OrderedMap;function f8(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){p8(e,t,n[t])}))}return e}function p8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h8=Y6,g8=L7,m8={getDirectionMap:function(e,t){n8?n8.reset():n8=new s8;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return c8(n8).getDirection(e.getText())})),o=d8(n.keySeq().zip(r));return null!=t&&u8.is(t,o)?t:o}},v8=c7,y8=y3,b8=y8.OrderedSet,w8=y8.Record,x8=y8.Stack,C8=y8.OrderedMap,S8=y8.List,k8=w8({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:x8(),selection:null,treeMap:null,undoStack:x8()}),E8=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(g8.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:x8(),redoStack:x8(),decorator:n||null,selection:v8.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=f8({},e,{treeMap:D8(n,e.decorator),directionMap:m8.getDirectionMap(n)});return new t(new k8(r))},t.fromJS=function(e){return new t(new k8(f8({},e,{directionMap:null!=e.directionMap?C8(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?b8(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?g8.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?x8(e.redoStack.map((function(e){return g8.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new v8(e.selection):e.selection,treeMap:null!=e.treeMap?C8(e.treeMap).map((function(e){return S8(e).map((function(e){return h8.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?x8(e.undoStack.map((function(e){return g8.fromJS(e)}))):e.undoStack,currentContent:g8.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 h8.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):D8(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 h8.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){p8(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 j8(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 j8(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 O8(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),O8(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new v8({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=m8.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(),u=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),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var c=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(c=null);var d={currentContent:u,directionMap:i,undoStack:s,redoStack:x8(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:c};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=m8.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=m8.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 O8(e,t,n){return E8.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function D8(e,t){return e.getBlockMap().map((function(n){return h8.generate(e,n,t)})).toOrderedMap()}function j8(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):b8()}var P8=E8,T8=i4,M8=t6,A8=y3,_8=m4,R8=A8.OrderedMap,L8=A8.List,I8=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},N8=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),u=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),d=n.getParentKey(),f=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){I8(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),I8(c,e,(function(e){return e.merge({nextSibling:u})})),I8(u,e,(function(e){return e.merge({prevSibling:c})})),I8(f,e,(function(e){return e.merge({prevSibling:a})})),I8(p,e,(function(e){return e.merge({nextSibling:a})})),I8(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:L8(o)})})),I8(a,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))};function $8(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){z8(e,t,n[t])}))}return e}function z8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F8=w3,B8=T3,K8=U3,V8=i4,H8=L6,U8=P8,W8=O4,Z8=y3,q8=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?_8(!1,"Replacing blocks is not supported."):_8(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?_8(!1,"Block cannot be moved next to itself."):_8(!1));var a=e.getBlockMap(),l=t instanceof T8,s=[t],u=a.delete(i);l&&(s=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=M8(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 c=u.toSeq().takeUntil((function(e){return e===n})),d=u.toSeq().skipUntil((function(e){return e===n})).skip(1),f=s.map((function(e){return[e.getKey(),e]})),p=R8();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?_8(!1,"Block cannot be moved next to itself."):_8(!1)),p=c.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?_8(!1,"Block cannot be moved next to itself."):_8(!1)),p=c.concat([[o,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:N8(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},G8=d7("draft_tree_data_support"),Y8=G8?V8:K8,X8=Z8.List,J8=Z8.Repeat,Q8={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=H8.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=H8.splitBlock(i,a),s=l.getSelectionAfter(),u=H8.setBlockType(l,s,"atomic"),c=B8.create({entity:t}),d={key:W8(),type:"atomic",text:n,characterList:X8(J8(c,n.length))},f={key:W8(),type:"unstyled"};G8&&(d=$8({},d,{nextSibling:f.key}),f=$8({},f,{prevSibling:d.key}));var p=[new Y8(d),new Y8(f)],h=F8.createFromArray(p),g=H8.replaceWithFragment(u,s,h),m=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return U8.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=q8(i,t,l,r)}else{var s=H8.removeRange(i,n,"backward"),u=s.getSelectionAfter(),c=s.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=q8(s,t,c,"before");else if(u.getEndOffset()===c.getLength())o=q8(s,t,c,"after");else{var d=H8.splitBlock(s,u),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());o=q8(d,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return U8.push(e,h,"move-block")}};var eee=y3.List,tee=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)})),eee(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 nee=tee;function ree(e){return e.replace(/\//g,"-")}var oee=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(ree).join(" "):Array.prototype.map.call(arguments,ree).join(" ")},iee=t,aee=oee,lee=(0,y3.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:iee.createElement("ul",{className:aee("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:iee.createElement("ol",{className:aee("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:iee.createElement("pre",{className:aee("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),see={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},uee={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",u="model",c="name",d="type",f="vendor",p="version",h="architecture",g="console",m="mobile",v="tablet",y="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",k="BlackBerry",E="Browser",O="Chrome",D="Firefox",j="Google",P="Huawei",T="LG",M="Microsoft",A="Motorola",_="Opera",R="Samsung",L="Sharp",I="Sony",N="Xiaomi",$="Zebra",z="Facebook",F="Chromium OS",B="Mac OS",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===l&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,l,s,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=i=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(l=0;l<p.length;l++)c=u[++i],typeof(s=p[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):r:this[s[0]]=c?s[1].call(this,c,s[2]):r:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):r):this[s]=c||r;d+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return e},q={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"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,_+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[c,_]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"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],[c,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[c,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,_+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,_+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[p,[c,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+E],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,R+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[c,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,z],p],[/(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],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,Z,{"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],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,D+" 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],[c,p],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,H]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,H]]],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],[u,[f,R],[d,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,R],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,C],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,C],[d,v]],[/(macintosh);/i],[u,[f,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,L],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,P],[d,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,P],[d,m]],[/\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],[[u,/_/g," "],[f,N],[d,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,N],[d,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[d,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[d,m]],[/\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],[u,[f,A],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,A],[d,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,T],[d,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,T],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[d,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[d,m]],[/(pixel c)\b/i],[u,[f,j],[d,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,j],[d,m]],[/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],[u,[f,I],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,I],[d,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,x],[d,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,x],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[d,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,k],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,S],[d,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,S],[d,m]],[/(nexus 9)/i],[u,[f,"HTC"],[d,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[d,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[d,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[f,"Ulefone"],[d,m]],[/(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],[f,u,[d,m]],[/(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],[f,u,[d,v]],[/(surface duo)/i],[u,[f,M],[d,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[d,m]],[/(u304aa)/i],[u,[f,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[d,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[d,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[d,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[d,v]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[d,v]],[/\b(k88) b/i],[u,[f,"ZTE"],[d,v]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[d,v]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[d,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[d,v]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[d,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[d,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[d,m]],[/\b(ph-1) /i],[u,[f,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[d,v]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[d,v]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[d,v]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[d,v]],[/(sprint) (\w+)/i],[f,u,[d,m]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,M],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,$],[d,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,$],[d,m]],[/smart-tv.+(samsung)/i],[f,[d,y]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,R],[d,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,T],[d,y]],[/(apple) ?tv/i],[f,[u,C+" TV"],[d,y]],[/crkey/i],[[u,O+"cast"],[f,j],[d,y]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,x],[d,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,L],[d,y]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,I],[d,y]],[/(mitv-\w{5}) bui/i],[u,[f,N],[d,y]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[d,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,U],[u,U],[d,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[d,g]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[u,[f,I],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,M],[d,g]],[/((pebble))app/i],[f,u,[d,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,C],[d,b]],[/droid.+; (glass) \d/i],[u,[f,j],[d,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,$],[d,b]],[/(quest( 2| pro)?)/i],[u,[f,z],[d,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[d,w]],[/(aeobc)\b/i],[u,[f,x],[d,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"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],[c,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[c,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[c,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,B],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,p],[/\(bb(10);/i],[p,[c,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,F],p],[/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],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,y=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=t?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}(G,t):G,x=g&&g.userAgent==y;return this.getBrowser=function(){var e,t={};return t[c]=r,t[p]=r,W.call(t,y,w.browser),t[s]=typeof(e=t[p])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,y,w.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[u]=r,e[d]=r,W.call(e,y,w.device),x&&!e[d]&&b&&b.mobile&&(e[d]=m),x&&"Macintosh"==e[u]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[u]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,W.call(e,y,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,W.call(e,y,w.os),x&&!e[c]&&b&&"Unknown"!=b.platform&&(e[c]=b.platform.replace(/chrome os/i,F).replace(/macos/i,B)),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===l&&e.length>500?U(e,500):e,this},this.setUA(y),this};Y.VERSION="0.7.37",Y.BROWSER=K([c,p,s]),Y.CPU=K([h]),Y.DEVICE=K([u,f,d,g,m,y,v,b,w]),Y.ENGINE=Y.OS=K([c,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:Ao)}(uee,uee.exports);var cee="Unknown",dee={"Mac OS":"Mac OS X"};var fee,pee=(new(0,uee.exports)).getResult(),hee=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(pee.browser.version),gee={browserArchitecture:pee.cpu.architecture||cee,browserFullVersion:pee.browser.version||cee,browserMinorVersion:hee.minor||cee,browserName:pee.browser.name||cee,browserVersion:pee.browser.major||cee,deviceName:pee.device.model||cee,engineName:pee.engine.name||cee,engineVersion:pee.engine.version||cee,platformArchitecture:pee.cpu.architecture||cee,platformName:(fee=pee.os.name,dee[fee]||fee||cee),platformVersion:pee.os.version||cee,platformFullVersion:pee.os.version||cee},mee=m4,vee=/\./,yee=/\|\|/,bee=/\s+\-\s+/,wee=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,xee=/^(\d*)(.*)/;function Cee(e,t){var n=e.split(yee);return n.length>1?n.some((function(e){return _ee.contains(e,t)})):function(e,t){var n=e.split(bee);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?mee(!1,'the "-" operator expects exactly 2 operands'):mee(!1)),1===n.length)return See(n[0],t);var r=n[0],o=n[1];return jee(r)&&jee(o)||("production"!==process.env.NODE_ENV?mee(!1,'operands to the "-" operator must be simple (no modifiers)'):mee(!1)),See(">="+r,t)&&See("<="+o,t)}(e=n[0].trim(),t)}function See(e,t){if(""===(e=e.trim()))return!0;var n=t.split(vee),r=Oee(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return kee(n,i);case"<=":return function(e,t){var n=Aee(e,t);return-1===n||0===n}(n,i);case">=":return Eee(n,i);case">":return function(e,t){return 1===Aee(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);Dee(i)&&(r[o]=i+1+"");return Eee(e,n)&&kee(e,r)}(n,i);default:return function(e,t){return 0===Aee(e,t)}(n,i)}}function kee(e,t){return-1===Aee(e,t)}function Eee(e,t){var n=Aee(e,t);return 1===n||0===n}function Oee(e){var t=e.split(vee),n=t[0].match(wee);return n||("production"!==process.env.NODE_ENV?mee(!1,"expected regex to match but it did not"):mee(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function Dee(e){return!isNaN(e)&&isFinite(e)}function jee(e){return!Oee(e).modifier}function Pee(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function Tee(e,t){var n=e.match(xee)[1],r=t.match(xee)[1],o=parseInt(n,10),i=parseInt(r,10);return Dee(o)&&Dee(i)&&o!==i?Mee(o,i):Mee(e,t)}function Mee(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?mee(!1,'"a" and "b" must be of the same type'):mee(!1)),e>t?1:e<t?-1:0}function Aee(e,t){for(var n=function(e,t){Pee(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 Pee(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=Tee(r[i],o[i]);if(a)return a}return 0}var _ee={contains:function(e,t){return Cee(e.trim(),t.trim())}},Ree=_ee,Lee=Object.prototype.hasOwnProperty;var Iee=function(e,t,n){if(!e)return null;var r={};for(var o in e)Lee.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var Nee=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},$ee=gee,zee=Ree;function Fee(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,zee.contains(o,t))}function Bee(e){return"Windows"===$ee.platformName?e.replace(/^\s*NT/,""):e}var Kee=Iee({isBrowser:function(e){return Fee($ee.browserName,$ee.browserFullVersion,e)},isBrowserArchitecture:function(e){return Fee($ee.browserArchitecture,null,e)},isDevice:function(e){return Fee($ee.deviceName,null,e)},isEngine:function(e){return Fee($ee.engineName,$ee.engineVersion,e)},isPlatform:function(e){return Fee($ee.platformName,$ee.platformFullVersion,e,Bee)},isPlatformArchitecture:function(e){return Fee($ee.platformArchitecture,null,e)}},Nee);var Vee=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var Hee=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},Uee=Hee;var Wee=function e(t){if(Uee(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},Zee=Vee,qee=Wee;var Gee=function(e){for(var t=e;t&&t!==Zee(e).documentElement;){var n=qee(t);if(null!=n)return n;t=t.parentNode}return null};var Yee=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function Xee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jee=Kee,Qee=Gee,ete=Yee,tte=m4,nte=l8,rte=y3.Map,ote={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},ite=Jee.isBrowser("IE <= 11"),ate=function(){function e(e){var t=this;Xee(this,"observer",void 0),Xee(this,"container",void 0),Xee(this,"mutations",void 0),Xee(this,"onCharData",void 0),this.container=e,this.mutations=rte();var n=ete(e);n.MutationObserver&&!ite?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?tte(!1,"Expected target to be an instance of Node"):tte(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,ote):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=rte(),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 ite?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=nte(Qee(e.target));this.mutations=this.mutations.set(n,t)}},e}(),lte="-",ste={encode:function(e,t,n){return e+lte+t+lte+n},decode:function(e){var t=e.split(lte).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(lte),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},ute={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},cte={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var dte=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},fte=m4,pte=dte;var hte=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?fte(!1,"Missing editorNode"):fte(!1)),pte(t.firstChild)||("production"!==process.env.NODE_ENV?fte(!1,"editorNode.firstChild is not an HTMLElement"):fte(!1)),t.firstChild},gte=ste,mte=l8;var vte=function(e,t,n,r,o){var i=mte(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=gte.decode(t),l=a.blockKey,s=e.getBlockTree(l),u=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),c=gte.decode(r),d=c.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=p.get("start"),m=u?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=u.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})},yte=Gee,bte=Wee,wte=vte,xte=m4,Cte=Hee,Ste=l8;function kte(e,t,n){var r=t,o=yte(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?xte(!1,"Unknown node in selection range."):xte(!1)),e===r)&&(r=r.firstChild,Cte(r)||("production"!==process.env.NODE_ENV?xte(!1,"Invalid DraftEditorContents node."):xte(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?xte(!1,"Invalid DraftEditorContents structure."):xte(!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&&(Cte(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||bte(e.firstChild));)e=e.firstChild;return e}(r);i=Ste(bte(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,u=null;if(bte(l)){var c=function(e){for(;e.lastChild&&(Cte(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||bte(e.lastChild));)e=e.lastChild;return e}(l);s=Ste(bte(c)),u=Ete(c)}else s=Ste(o),u=Ete(l);return{key:s,offset:u}}function Ete(e){var t=e.textContent;return"\n"===t?0:t.length}var Ote=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:wte(e,Ste(yte(n)),r,Ste(yte(o)),i),needsRecovery:!1};var s=null,u=null,c=!0;return a?(s={key:Ste(yte(n)),offset:r},u=kte(t,o,i)):l?(u={key:Ste(yte(o)),offset:i},s=kte(t,n,r)):(s=kte(t,n,r),u=kte(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:wte(e,s.key,s.offset,u.key,u.offset),needsRecovery:c}},Dte=Ote;var jte=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}:Dte(e,t,r,o,i,a)},Pte=cte,Tte=P8,Mte=hte,Ate=jte;var _te=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();Pte.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=Ate(n,Mte(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?Tte.forceSelection(n,o):Tte.acceptSelection(n,o),e.update(n))}};var Rte={notEmptyKey:function(e){return null!=e&&""!=e}},Lte=Rte.notEmptyKey;function Ite(e,t){return Lte(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var Nte=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:Ite(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),Ite(e.getEntityMap(),n)},$te=ate,zte=L6,Fte=ste,Bte=P8,Kte=ute,Vte=_te,Hte=hte,Ute=jte,Wte=Nte,Zte=l8,qte=Kee.isBrowser("IE"),Gte=!1,Yte=!1,Xte=null;var Jte,Qte,ene={onCompositionStart:function(e){Yte=!0,function(e){Xte||(Xte=new $te(Hte(e))).start()}(e)},onCompositionEnd:function(e){Gte=!1,Yte=!1,setTimeout((function(){Gte||ene.resolveComposition(e)}),20)},onSelect:Vte,onKeyDown:function(e,t){if(!Yte)return ene.resolveComposition(e),void e._onKeyDown(t);t.which!==Kte.RIGHT&&t.which!==Kte.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===Kte.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!Yte){var t=Zte(Xte).stopAndFlushMutations();Xte=null,Gte=!0;var n=Bte.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=Fte.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),u=s.start,c=s.end,d=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:c,isBackward:!1}),f=Wte(r,d),p=r.getBlockForKey(i).getInlineStyleAt(u);r=zte.replaceText(r,d,e,p,f),n=Bte.set(n,{currentContent:r})}));var o=Ute(n,Hte(e)).selectionState;e.restoreEditorDOM();var i=qte?Bte.forceSelection(n,o):Bte.acceptSelection(n,o);e.update(Bte.push(i,r,"insert-characters"))}else e.update(n)}}},tne=ene;function nne(){if(Qte)return Jte;Qte=1;var e=vH;function n(){return n=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},n.apply(this,arguments)}var r=ste,o=t,i=e8,a=V7,l=function(e){var t,l;function s(){return e.apply(this,arguments)||this}return l=e,(t=s).prototype=Object.create(l.prototype),t.prototype.constructor=t,t.__proto__=l,s.prototype.render=function(){var e=this.props,t=e.block,l=e.children,s=e.contentState,u=e.decorator,c=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=t.getKey(),g=f.get("leaves"),m=u.getComponentForKey(c),v=u.getPropsForKey(c),y=r.encode(h,parseInt(c,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),d);return o.createElement(m,n({},v,{contentState:s,decoratedText:b,dir:w,key:y,entityKey:t.getEntityAt(f.get("start")),offsetKey:y}),l)},s}(o.Component);return Jte=l}function rne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function one(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ine=t,ane=m4,lne=Hee,sne=Kee.isBrowser("IE <= 11");var une=function(e){var t,n;function r(t){var n;return one(rne(n=e.call(this,t)||this),"_forceFlag",void 0),one(rne(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;lne(t)||("production"!==process.env.NODE_ENV?ane(!1,"node is not an Element"):ane(!1));var r=t;return n?!function(e){return sne?"\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},sne?ine.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):ine.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return sne?ine.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):ine.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):ine.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(ine.Component),cne=une,dne=Hee;var fne=function(e){return!(!e||!e.ownerDocument)&&(dne(e)&&"BR"===e.nodeName)},pne={initODS:function(){},handleExtensionCausedError:function(){}};var hne=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))},gne=hne;var mne=function(e){return gne(e)&&3==e.nodeType},vne=mne;var yne=function e(t,n){return!(!t||!n)&&(t===n||!vne(t)&&(vne(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var bne=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}},wne=pne,xne=cte,Cne=yne,Sne=bne,kne=Vee,Ene=m4,One=Hee,Dne=Kee.isBrowser("IE");function jne(e,t){if(!e)return"[empty]";var n=Pne(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(One(n)||("production"!==process.env.NODE_ENV?Ene(!1,"Node must be an Element if it is not a text node."):Ene(!1)),n.outerHTML)}function Pne(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return kne(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(Pne(i[a],t));return o}function Tne(e,t){for(var n=e,r=n;n;){if(One(n)&&r.hasAttribute("contenteditable"))return jne(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function Mne(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function Ane(e,t,n,r){var o=Sne();if(e.extend&&null!=t&&Cne(o,t)){n>Mne(t)&&xne.logSelectionStateFailure({anonymizedDom:Tne(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 xne.logSelectionStateFailure({anonymizedDom:Tne(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 _ne(e,t,n,r){var o=kne(t).createRange();if(n>Mne(t)&&(xne.logSelectionStateFailure({anonymizedDom:Tne(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),wne.handleExtensionCausedError()),o.setStart(t,n),Dne)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 Rne=function(e,t,n,r,o){var i=kne(t);if(Cne(i.documentElement,t)){var a=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),u=e.getFocusKey(),c=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var f=l,p=s;l=u,s=c,u=f,c=p,d=!1}var h=l===n&&r<=s&&o>=s,g=u===n&&r<=c&&o>=c;if(h&&g)return a.removeAllRanges(),_ne(a,t,s-r,e),void Ane(a,t,c-r,e);if(d){if(g&&(a.removeAllRanges(),_ne(a,t,c-r,e)),h){var m=a.focusNode,v=a.focusOffset;a.removeAllRanges(),_ne(a,t,s-r,e),Ane(a,m,v,e)}}else h&&(a.removeAllRanges(),_ne(a,t,s-r,e)),g&&Ane(a,t,c-r,e)}},Lne=vH;var Ine,Nne,$ne=cne,zne=t,Fne=m4,Bne=fne,Kne=Rne,Vne=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?Fne(!1,"Missing node"):Fne(!1));var s,u=l.firstChild;u||("production"!==process.env.NODE_ENV?Fne(!1,"Missing child"):Fne(!1)),u.nodeType===Node.TEXT_NODE?s=u:Bne(u)?s=l:(s=u.firstChild)||("production"!==process.env.NODE_ENV?Fne(!1,"Missing targetNode"):Fne(!1)),Kne(e,s,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?Fne(!1,"Missing leafNode"):Fne(!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()),Lne(e,r,n)}),{});if(i){var u=i(l,t);s=Lne(s,u)}return zne.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:s},zne.createElement($ne,null,n))},r}(zne.Component),Hne=Vne;function Une(){if(Nne)return Ine;Nne=1;var e=nne(),n=Hne,r=ste,o=t,i=oee;y3.List;var a=function(t){var a,l;function s(){return t.apply(this,arguments)||this}return l=t,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l,s.prototype.render=function(){var t=this.props,a=t.block,l=t.contentState,s=t.customStyleFn,u=t.customStyleMap,c=t.decorator,d=t.direction,f=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,m=a.getKey(),v=a.getText(),y=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var l=r.encode(m,i,t),c=e.get("start"),d=e.get("end");return o.createElement(n,{key:l,offsetKey:l,block:a,start:c,selection:p?h:null,forceSelection:f,text:v.slice(c,d),styleSet:a.getInlineStyleAt(c),customStyleMap:u,customStyleFn:s,isLast:g===y&&t===w})})).toArray();return g&&c?o.createElement(e,{block:a,children:x,contentState:l,decorator:c,decoratorKey:g,direction:d,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(m,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},s}(o.Component);return Ine=a}function Wne(e,t){return!!t&&(e===t.documentElement||e===t.body)}var Zne={getTop:function(e){var t=e.ownerDocument;return Wne(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;Wne(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return Wne(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;Wne(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},qne=/-(.)/g;var Gne=function(e){return e.replace(qne,(function(e,t){return t.toUpperCase()}))},Yne=/([A-Z])/g;var Xne=function(e){return e.replace(Yne,"-$1").toLowerCase()},Jne=Gne,Qne=Xne;function ere(e){return null==e?e:String(e)}var tre=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return ere(n.getPropertyValue(Qne(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return ere(n.getPropertyValue(Qne(t)));if("display"===t)return"none"}return e.currentStyle?ere("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Jne(t)]):ere(e.style&&e.style[Jne(t)])};function nre(e,t){var n=rre.get(e,t);return"auto"===n||"scroll"===n}var rre={get:tre,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(nre(e,"overflow")||nre(e,"overflowY")||nre(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},ore=rre,ire=yne;var are=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!ire(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 lre=function(e){var t=are(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},sre="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var ure=function(e){return(e=e||document).scrollingElement?e.scrollingElement:sre||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},cre=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 dre=function(e){var t=ure(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=cre(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 fre(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function pre(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function hre(){return{width:window.innerWidth||fre(),height:window.innerHeight||pre()}}hre.withoutScrollbars=function(){return{width:fre(),height:pre()}};var gre,mre,vre,yre,bre=hre;function wre(){if(mre)return gre;mre=1;var e=vH;function n(){return n=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},n.apply(this,arguments)}function r(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){o(e,t,n[t])}))}return e}function o(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=Une(),a=ste,l=t,s=Zne,u=ore,c=lre,d=dre,f=bre,p=m4,h=dte;y3.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,n,o,i,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},s=o(e);return s&&(l.className=s),void 0!==i.customEditable&&(l=r({},l,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),l},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(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(r))||this),"wrapperRef",l.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.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},x.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=u.getScrollParent(n),i=d(o);if(o===window){var a=c(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)}}}},x.render=function(){var e=this,t=this.props,o=t.block,s=t.blockRenderMap,u=t.blockRendererFn,c=t.blockStyleFn,d=t.contentState,f=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,k=t.selection,E=t.tree,O=null;o.children.size&&(O=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=d.getBlockForKey(n),f=v(i,u),g=f.CustomComponent||w,b=m(i,s),x=b.Element,C=b.wrapperTemplate,S=y(i,p,o,c,f,null),k=r({},e.props,{tree:h.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:i});return t.push(l.createElement(x,S,l.createElement(g,k))),!C||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 u,c=n.reverse()[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,s=e}finally{try{o||null==c.return||c.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))}(C,x,t),t}),[]));var D=o.getKey(),j=a.encode(D,0,0),P=v(o,u),T=P.CustomComponent,M=null!=T?l.createElement(T,n({},this.props,{tree:h.getBlockTree(D),blockProps:P.customProps,offsetKey:j,block:o})):l.createElement(i,{block:o,children:O,contentState:d,customStyleFn:b,customStyleMap:x,decorator:f,direction:C,forceSelection:S,hasSelection:g(k,D),selection:k,tree:E});if(o.getParentKey())return M;var A=m(o,s).Element,_=y(o,p,j,c,P,this.wrapperRef);return l.createElement(A,_,M)},w}(l.Component);return gre=b}var xre=vH;function Cre(){return Cre=xre||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},Cre.apply(this,arguments)}var Sre,kre,Ere,Ore,Dre=Hne,jre=ste,Pre=t,Tre=Zne,Mre=ore,Are=e8,_re=V7,Rre=oee,Lre=lre,Ire=dre,Nre=bre,$re=m4,zre=dte,Fre=l8,Bre=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},Kre=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||Bre(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=Mre.getScrollParent(n),i=Ire(o);if(o===window){var a=Lre(n);(r=a.y+a.height-Nre().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{zre(n)||("production"!==process.env.NODE_ENV?$re(!1,"blockNode is not an HTMLElement"):$re(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&Tre.setTop(o,Tre.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=Bre(this.props.selection,n);return this.props.tree.map((function(a,l){var s=a.get("leaves");if(0===s.size)return null;var u=s.size-1,c=s.map((function(a,s){var c=jre.encode(n,l,s),d=a.get("start"),f=a.get("end");return Pre.createElement(Dre,{key:c,offsetKey:c,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===u})})).toArray(),d=a.get("decoratorKey");if(null==d)return c;if(!e.props.decorator)return c;var f=Fre(e.props.decorator),p=f.getComponentForKey(d);if(!p)return c;var h=f.getPropsForKey(d),g=jre.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=_re.getHTMLDirIfDifferent(Are.getDirection(y),e.props.direction),x={contentState:e.props.contentState,decoratedText:y,dir:w,start:m,end:v,blockKey:n,entityKey:b,offsetKey:g};return Pre.createElement(p,Cre({},h,x,{key:g}),c)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=Rre({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return Pre.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(Pre.Component),Vre=Kre;var Hre=d7("draft_tree_data_support")?function(){if(yre)return vre;yre=1;var e=vH;function n(){return n=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},n.apply(this,arguments)}var r=wre(),o=ste,i=t,a=l8,l=function(e){var t,l;function s(){return e.apply(this,arguments)||this}l=e,(t=s).prototype=Object.create(l.prototype),t.prototype.constructor=t,t.__proto__=l;var u=s.prototype;return u.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(),u=n.getDecorator();return o!==i||a!==l||s!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,u=e.customStyleMap,c=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 x=w.getKey(),C={blockRenderMap:t,blockRendererFn:l,blockStyleFn:s,contentState:h,customStyleFn:c,customStyleMap:u,decorator:v,editorKey:f,editorState:d,forceSelection:m,selection:g,block:w,direction:p||y.get(x),tree:d.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,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 j=[];do{j.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var P=i.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},j);E.push(P)}else E.push(D.block),O++}return i.createElement("div",{"data-contents":"true"},E)},s}(i.Component);return vre=l}():function(){if(Ore)return Ere;Ore=1;var e=vH;function n(){return n=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},n.apply(this,arguments)}function r(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){o(e,t,n[t])}))}return e}function o(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=Vre,a=ste,l=t,s=oee,u=(kre||(kre=1,Sre=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}),Sre),c=l8,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 t,o;function s(){return e.apply(this,arguments)||this}o=e,(t=s).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__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(),u=n.getDecorator();return o!==i||a!==l||s!==u||n.mustForceSelection()},f.render=function(){for(var e=this.props,t=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(),x=h.getDecorator(),C=c(h.getDirectionMap()),S=y.getBlocksAsArray(),k=[],E=null,O=null,D=0;D<S.length;D++){var j=S[D],P=j.getKey(),T=j.getType(),M=o(j),A=void 0,_=void 0,R=void 0;M&&(A=M.component,_=M.props,R=M.editable);var L=v||C.get(P),I=a.encode(P,0,0),N={contentState:y,block:j,blockProps:_,blockStyleFn:s,customStyleMap:f,customStyleFn:p,decorator:x,direction:L,forceSelection:w,offsetKey:I,preventScroll:m,selection:b,tree:h.getBlockTree(P)},$=t.get(T)||t.get("unstyled"),z=$.wrapper,F=$.element||t.get("unstyled").element,B=j.getDepth(),K="";if(s&&(K=s(j)),"li"===F)K=u(K,d(T,B,O!==z||null===E||B>E,L));var V=A||i,H={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:P};void 0!==R&&(H=r({},H,{contentEditable:R,suppressContentEditableWarning:!0}));var U=l.createElement(F,H,l.createElement(V,n({},N,{key:P})));k.push({block:U,wrapperTemplate:z,key:P,offsetKey:I}),E=z?j.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 Ere=f}(),Ure={isImage:function(e){return"image"===Wre(e)[0]},isJpeg:function(e){var t=Wre(e);return Ure.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function Wre(e){return e.split("/")}var Zre=Ure,qre=m4;var Gre=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?qre(!1,"toArray: Array-like object expected"):qre(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?qre(!1,"toArray: Object needs a length property"):qre(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?qre(!1,"toArray: Object should have keys for indices"):qre(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?qre(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):qre(!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 Yre(e){return function(){return e}}var Xre=function(){};Xre.thatReturns=Yre,Xre.thatReturnsFalse=Yre(!1),Xre.thatReturnsTrue=Yre(!0),Xre.thatReturnsNull=Yre(null),Xre.thatReturnsThis=function(){return this},Xre.thatReturnsArgument=function(e){return e};var Jre=Xre,Qre=Zre,eoe=Gre,toe=Jre,noe=new RegExp("\r\n","g"),roe={"text/rtf":1,"text/html":1};function ooe(e){if("file"==e.kind)return e.getAsFile()}var ioe=function(){function e(e){this.data=e,this.types=e.types?eoe(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return roe[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(noe,"\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(!Qre.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(ooe).filter(toe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),aoe=ioe,loe=m4,soe=/\.textClipping$/,uoe={"text/plain":!0,"text/html":!0,"text/rtf":!0};var coe=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!Ao.FileReader||e.type&&!(e.type in uoe))return void t("");if(""===e.type){var n="";return soe.test(e.name)&&(n=e.name.replace(soe,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?loe(!1,'We should be calling "FileReader.readAsText" which returns a string'):loe(!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 doe=function(e){return"handled"===e||!0===e},foe=aoe,poe=L6,hoe=P8,goe=Gee,moe=Vee,voe=coe,yoe=vte,boe=Yee,woe=doe,xoe=l8;var Coe={onDragEnd:function(e){e.exitCurrentMode(),Soe(e)},onDrop:function(e,t){var n=new foe(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=moe(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=xoe(n),r=xoe(r);var a=xoe(goe(n));return yoe(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&&woe(e.props.handleDroppedFiles(o,i)))return;voe(i,(function(t){t&&e.update(koe(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&woe(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=poe.moveText(e.getCurrentContent(),e.getSelection(),t);return hoe.push(e,n,"insert-fragment")}(r,o)):e.update(koe(r,o,n.getText()))),Soe(e)}}}};function Soe(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:boe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function koe(e,t,n){var r=poe.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return hoe.push(e,r,"insert-fragment")}var Eoe=Coe;var Ooe=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={},u=!1,c=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)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.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(u)setTimeout(p,0,e);else{var n=s[e];if(n){u=!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),u=!1}}}}}("undefined"==typeof self?Ao:self);var Doe=Ao.setImmediate,joe=L6,Poe=P8,Toe=Nte,Moe=doe,Aoe=Ooe,_oe=l8,Roe=Doe,Loe="'",Ioe="/",Noe=Kee.isBrowser("Firefox");function $oe(e,t,n,r,o){var i=joe.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return Poe.push(e,i,"insert-characters",o)}var zoe=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&&Moe(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($oe(n,r,n.getCurrentInlineStyle(),Toe(n.getCurrentContent(),n.getSelection()),!0));var l,s=$oe(n,r,n.getCurrentInlineStyle(),Toe(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=Aoe(e._latestCommittedEditorState)),!u){var c=n.getBlockTree(a),d=s.getBlockTree(a);u=c.size!==d.size||c.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),u=n.get("start"),c=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||a!==u||s!==c||null!=d&&c-u!=l-o}))}if(u||(l=r,u=Noe&&(l==Loe||l==Ioe)),u||(u=_oe(s.getDirectionMap()).get(a)!==_oe(n.getDirectionMap()).get(a)),u)return t.preventDefault(),s=Poe.set(s,{forceSelection:!0}),void e.update(s);s=Poe.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,Roe((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},Foe=P8,Boe=yne,Koe=bne;var Voe=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&Koe(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&Boe(o,r.anchorNode)&&Boe(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(Foe.acceptSelection(i,l))}},Hoe=P8;var Uoe=function(e,t){e.setMode("composite"),e.update(Hoe.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},Woe=$4;var Zoe=function(e){var t=e.getSelection();return t.isCollapsed()?null:Woe(e.getCurrentContent(),t)},qoe=Zoe;var Goe=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(qoe(e._latestEditorState))};var Yoe=L6,Xoe=P8,Joe=ore,Qoe=Zoe,eie=dre,tie=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 nie=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(tie(i)){var a=i;n=eie(Joe.getScrollParent(a))}var l=Qoe(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=Yoe.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Xoe.push(e,t,"remove-range")}(r))}),0)}};var rie=function(e,t){e.setMode("drag"),t.preventDefault()};var oie=function(e){e._internalDrag=!0,e.setMode("drag")},iie=P8,aie=Kee;var lie=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),aie.isBrowser("Chrome < 60.0.3081.0")?e.update(iie.forceSelection(n,o)):e.update(iie.acceptSelection(n,o))}},sie=m4,uie=55296,cie=57343,die=/[\uD800-\uDFFF]/;function fie(e){return uie<=e&&e<=cie}function pie(e){return die.test(e)}function hie(e,t){return 1+fie(e.charCodeAt(t))}function gie(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!pie(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+=hie(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=hie(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=hie(e,i);return e.substring(o,i)}var mie={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=hie(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:hie,hasSurrogateUnit:pie,isCodeUnitInSurrogateRange:fie,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?sie(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):sie(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return uie<=n&&n<=56319&&56320<=r&&r<=cie},strlen:function(e){if(!pie(e))return e.length;for(var t=0,n=0;n<e.length;n+=hie(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 gie(e,t=t<n?t:n,r)},substr:gie},vie=mie,yie=Jre;function bie(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 wie="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];bie.apply(void 0,[t].concat(r))}}:yie,xie=wie,Cie=xie;var Sie=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Cie(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})},kie=L6,Eie=d7("draft_tree_data_support");var Oie=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(Eie&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Eie)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(s.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return kie.removeRange(o,i,n)},Die=P8,jie=vie,Pie=Sie,Tie=Oie;var Mie=function(e){var t=Tie(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return Pie(e,i?jie.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Die.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},Aie=L6,_ie=ste,Rie=P8,Lie=Rte.notEmptyKey,Iie=Gee,Nie=Mie,$ie=l8,zie=Kee.isEngine("Gecko");var Fie=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,u=e._latestEditorState,c=$ie(Iie(r)),d=_ie.decode(c),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=u.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,y=u.getCurrentContent(),b=y.getBlockForKey(f),w=b.getText().slice(m,v);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==w){var x,C,S,k,E=u.getSelection(),O=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),D=b.getEntityAt(m),j=Lie(D)?y.getEntity(D):null,P="MUTABLE"===(null!=j?j.getMutability():null),T=P?"spellcheck-change":"apply-entity",M=Aie.replaceText(y,O,s,b.getInlineStyleAt(m),P?b.getEntityAt(m):null);if(zie)x=n.anchorOffset,C=n.focusOffset,k=(S=m+Math.min(x,C))+Math.abs(x-C),x=S,C=k;else{var A=s.length-w.length;S=E.getStartOffset(),k=E.getEndOffset(),x=o?k+A:S,C=k+A}var _=M.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:x,focusOffset:C})});e.update(Rie.push(u,_,T))}else{var R=t.nativeEvent.inputType;if(R){var L=function(e,t){return"deleteContentBackward"===e?Nie(t):t}(R,u);if(L!==u)return e.restoreEditorDOM(),void e.update(L)}}}},Bie=ute;var Kie=function(e){return e.which===Bie.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},Vie=Kie,Hie=Kee.isPlatform("Mac OS X"),Uie={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return Hie&&e.altKey},usesMacOSHeuristics:function(){return Hie},hasCommandModifier:function(e){return Hie?!!e.metaKey&&!e.altKey:Uie.isCtrlKeyCommand(e)},isSoftNewlineEvent:Vie},Wie=Uie,Zie=L6,qie=P8,Gie=$4,Yie=l8,Xie=null,Jie={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=Yie(r),Xie=Gie(t,r);var l=Zie.removeRange(t,r,"forward");return l===t?e:qie.push(e,l,"remove-range")},paste:function(e){if(!Xie)return e;var t=Zie.replaceWithFragment(e.getCurrentContent(),e.getSelection(),Xie);return qie.push(e,t,"insert-fragment")}},Qie=m4;var eae=Kee.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?Qie(!1,"Found an unexpected detached subtree when getting range client rects."):Qie(!1)}:function(e){return Array.from(e.getClientRects())},tae=eae,nae=vie,rae=Vee,oae=tae,iae=m4;function aae(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 lae(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 sae=function(e){e.collapsed||("production"!==process.env.NODE_ENV?iae(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):iae(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=rae(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?iae(!1,"Missing document.body"):iae(!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);aae(oae(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?iae(!1,"Found unexpected detached subtree when traversing."):iae(!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&&nae.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!aae(oae(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=lae(i=i.childNodes[s])}return e.setStart(r,o),e},uae=P8,cae=sae,dae=Ote,fae=Sie,pae=Oie;var hae=function(e,t){var n=pae(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return fae(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=cae(r),dae(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:uae.push(e,n,"remove-range")},gae="['‘’]",mae="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),vae=new RegExp("^(?:"+mae+")*(?:"+gae+"|(?!"+mae+").)*(?:(?!"+mae+").)"),yae=new RegExp("(?:(?!"+mae+").)(?:"+gae+"|(?!"+mae+").)*(?:"+mae+")*$");function bae(e,t){var n=t?yae.exec(e):vae.exec(e);return n?n[0]:e}var wae={getBackward:function(e){return bae(e,!0)},getForward:function(e){return bae(e,!1)}},xae=wae,Cae=P8,Sae=Sie,kae=Oie;var Eae=xie;var Oae=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Eae(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})},Dae=wae,jae=P8,Pae=Oae,Tae=Oie;var Mae=L6,Aae=P8;var _ae=P8;var Rae=P8;var Lae=P8,Iae=vie,Nae=Oae,$ae=Oie;var zae=L6,Fae=P8,Bae=$4;var Kae=P8;var Vae=function(e,t,n){var r=Kae.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(Kae.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(Kae.set(r,{nativelyRenderedContent:o}))}},Hae=L6,Uae=P8,Wae=ute,Zae=Jie,qae=Kee,Gae=doe,Yae=hae,Xae=function(e){var t=kae(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return Sae(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=xae.getBackward(o);return Sae(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Cae.push(e,t,"remove-range")},Jae=function(e){var t=Tae(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=Dae.getForward(o);return Pae(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:jae.push(e,t,"remove-range")},Qae=function(e){var t=Mae.splitBlock(e.getCurrentContent(),e.getSelection());return Aae.push(e,t,"split-block")},ele=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return _ae.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},tle=function(e){var t=e.getSelection(),n=t.getStartKey();return Rae.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},nle=Mie,rle=function(e){var t=$ae(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return Nae(e,i?Iae.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Lae.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},ole=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=Bae(a,r),u=zae.removeRange(a,r,"backward"),c=u.getSelectionAfter(),d=c.getAnchorOffset()-1,f=c.merge({anchorOffset:d,focusOffset:d}),p=zae.replaceWithFragment(u,f,s),h=Fae.push(e,p,"insert-fragment");return Fae.acceptSelection(h,o)},ile=Vae,ale=Wie.isOptionKeyCommand,lle=qae.isBrowser("Chrome");var sle=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 Wae.RETURN:if(t.preventDefault(),e.props.handleReturn&&Gae(e.props.handleReturn(t,r)))return;break;case Wae.ESC:if(t.preventDefault(),o("onEscape"))return;break;case Wae.TAB:if(o("onTab"))return;break;case Wae.UP:if(o("onUpArrow"))return;break;case Wae.RIGHT:if(o("onRightArrow"))return;break;case Wae.DOWN:if(o("onDownArrow"))return;break;case Wae.LEFT:if(o("onLeftArrow"))return;break;case Wae.SPACE:lle&&ale(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!Gae(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return Uae.redo(t);case"delete":return rle(t);case"delete-word":return Jae(t);case"backspace":return nle(t);case"backspace-word":return Xae(t);case"backspace-to-start-of-line":return Yae(t,n);case"split-block":return Qae(t);case"transpose-characters":return ole(t);case"move-selection-to-start-of-block":return tle(t);case"move-selection-to-end-of-block":return ele(t);case"secondary-cut":return Zae.cut(t);case"secondary-paste":return Zae.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else ile(t,r,e.update);else if(n===Wae.SPACE&&lle&&ale(t)){var l=Hae.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(Uae.push(r,l,"insert-characters"))}};var ule=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}(),cle=ule,dle=m4,fle=Kee.isBrowser("IE <= 9");var ple=function(e){var t,n=null;return!fle&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?dle(!1,"Missing doc.documentElement"):dle(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},hle=Hee;var gle=function(e){return!(!e||!e.ownerDocument)&&(hle(e)&&"A"===e.nodeName)},mle=Hee;var vle,yle=function(e){return!(!e||!e.ownerDocument)&&(mle(e)&&"IMG"===e.nodeName)};function ble(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){wle(e,t,n[t])}))}return e}function wle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xle=T3,Cle=U3,Sle=i4,kle=lee,Ele=s7,Ole=cle,Dle=oee,jle=O4,Ple=ple,Tle=d7,Mle=y3,Ale=Mle.List,_le=Mle.Map,Rle=Mle.OrderedSet,Lle=gle,Ile=fne,Nle=dte,$le=yle,zle=Tle("draft_tree_data_support"),Fle=new RegExp("\r","g"),Ble=new RegExp("\n","g"),Kle=new RegExp("^\n","g"),Vle=new RegExp("&nbsp;","g"),Hle=new RegExp("&#13;?","g"),Ule=new RegExp("&#8203;?","g"),Wle=["bold","bolder","500","600","700","800","900"],Zle=["light","lighter","normal","100","200","300","400"],qle=["className","href","rel","target","title"],Gle=["alt","className","height","src","width"],Yle=(wle(vle={},Dle("public/DraftStyleDefault/depth0"),0),wle(vle,Dle("public/DraftStyleDefault/depth1"),1),wle(vle,Dle("public/DraftStyleDefault/depth2"),2),wle(vle,Dle("public/DraftStyleDefault/depth3"),3),wle(vle,Dle("public/DraftStyleDefault/depth4"),4),vle),Xle=_le({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Jle=function(e){if(Nle(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},Qle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(Yle).some((function(n){e.classList.contains(n)&&(t=Yle[n])})),t},ese=function(e){if(!Lle(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 Ole(t.href);return!0}catch(e){return!1}},tse=function(e){if(!$le(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},nse=function(e,t){if(!Nle(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){Wle.indexOf(r)>=0?e.add("BOLD"):Zle.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"))}))},rse=function(e){return"ul"===e||"ol"===e},ose=function(){function e(e,t){wle(this,"characterList",Ale()),wle(this,"currentBlockType","unstyled"),wle(this,"currentDepth",0),wle(this,"currentEntity",null),wle(this,"currentText",""),wle(this,"wrapper",null),wle(this,"blockConfigs",[]),wle(this,"contentBlocks",[]),wle(this,"entityMap",Ele),wle(this,"blockTypeMap",void 0),wle(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=Ale(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=Ele,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],Rle())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(zle?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=ble({key:e.key||jle(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Ale(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=Ale(),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||rse(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;rse(i)&&(this.wrapper=i,rse(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(tse(o))this._addImgNode(o,t);else if(ese(o))this._addAnchorNode(o,n,t);else{var u=t;Xle.has(i)&&(u=u.add(Xle.get(i))),u=nse(o,u);var c=Jle(o);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}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"),!zle&&Nle(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=Qle(p,this.currentDepth)}var h=jle(),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=xle.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=Ale()):(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(Kle,"")).replace(Ble," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){Ile(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if($le(e)){var n=e,r={};Gle.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),Tle("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(Lle(e)){var r=e,o={};qle.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new Ole(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=Ale(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Sle(ble({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return Ale(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 Cle(ble({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=Ale(),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}(),ise=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kle,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ple)(e=e.trim().replace(Fle,"").replace(Vle," ").replace(Hle,"").replace(Ule,""));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)}))})),_le(t)}(t);return new ose(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function ase(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lse=U3,sse=i4,use=ise,cse=O4,dse=ple,fse=d7,pse=y3,hse=p7,gse=pse.List,mse=pse.Repeat,vse=fse("draft_tree_data_support"),yse=vse?sse:lse,bse={processHTML:function(e,t){return use(e,dse,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=hse(r);var i=cse(),a={key:i,type:n,text:r,characterList:gse(mse(t,r.length))};if(vse&&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){ase(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new yse(a)),e}),[])}};var wse=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})},xse=L6,Cse=P8,Sse=wse,kse=l8,Ese={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 Ese.toggleInlineStyle(e,"BOLD");case"italic":return Ese.toggleInlineStyle(e,"ITALIC");case"underline":return Ese.toggleInlineStyle(e,"UNDERLINE");case"code":return Ese.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Ese.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return Ese.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=xse.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Cse.push(e,t,"insert-characters");return Cse.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 Cse.push(e,a,"remove-range")}var l=Ese.tryToRemoveBlockStyle(e);return l?Cse.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=xse.removeRange(n,a,"forward");return l!==n?Cse.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 u=Sse(i,r,e.shiftKey?-1:1,n);return Cse.push(t,u,"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=kse(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 u=i.getBlockForKey(r).getType()===t?"unstyled":t;return Cse.push(e,xse.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?Ese.toggleBlockType(e,"code-block"):Ese.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Cse.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?xse.removeInlineStyle(i,n,t):xse.applyInlineStyle(i,n,t),Cse.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=xse.applyEntity(e.getCurrentContent(),t,n);return Cse.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 xse.setBlockType(o,t,"unstyled")}return null}},Ose=Ese,Dse=/\r\n?|\n/g;var jse=w3,Pse=T3,Tse=aoe,Mse=L6,Ase=bse,_se=P8,Rse=Ose,Lse=Nte,Ise=coe,Nse=doe,$se=function(e){return e.split(Dse)};function zse(e,t,n){var r=Mse.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return _se.push(e,r.set("entityMap",n),"insert-fragment")}var Fse=function(e,t){t.preventDefault();var n=new Tse(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&Nse(e.props.handlePastedFiles(r)))return;return void Ise(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=$se(t),i=Pse.create({style:n.getCurrentInlineStyle(),entity:Lse(n.getCurrentContent(),n.getSelection())}),a=Rse.getCurrentBlockType(n),l=Ase.processText(r,i,a),s=jse.createFromArray(l),u=Mse.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(_se.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,l);a=u.text,l=u.html}if(!e.props.handlePastedText||!Nse(e.props.handlePastedText(a,l,s))){if(a&&(i=$se(a)),!e.props.stripPastedStyles){var c,d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){if(-1!==(null===(c=l)||void 0===c?void 0:c.indexOf(e.getEditorKey()))||1===i.length&&1===d.size&&d.first().getText()===a)return void e.update(zse(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(zse(e._latestEditorState,d));if(l){var f=Ase.processHTML(l,e.props.blockRenderMap);if(f){var p=f.contentBlocks,h=f.entityMap;if(p){var g=jse.createFromArray(p);return void e.update(zse(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var m=Pse.create({style:s.getCurrentInlineStyle(),entity:Lse(s.getCurrentContent(),s.getSelection())}),v=Rse.getCurrentBlockType(s),y=Ase.processText(i,m,v),b=jse.createFromArray(y);e.update(zse(e._latestEditorState,b))}}},Bse=Kee,Kse=zoe,Vse=Voe,Hse=Uoe,Use=Goe,Wse=nie,Zse=rie,qse=oie,Gse=lie,Yse=Fie,Xse=sle,Jse=Fse,Qse=_te,eue=Bse.isBrowser("Chrome"),tue=Bse.isBrowser("Firefox"),nue=eue||tue?Qse:function(e){},rue={onBeforeInput:Kse,onBlur:Vse,onCompositionStart:Hse,onCopy:Use,onCut:Wse,onDragOver:Zse,onDragStart:qse,onFocus:Gse,onInput:Yse,onKeyDown:Xse,onPaste:Jse,onSelect:Qse,onMouseUp:nue,onKeyUp:nue},oue=r.unstable_flushControlled;var iue=t,aue=oee,lue=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=aue({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return iue.createElement("div",{className:t},iue.createElement("div",{className:aue("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(iue.Component),sue=lue,uue=Wie,cue=ute,due=Kee,fue=due.isPlatform("Mac OS X"),pue=fue&&due.isBrowser("Firefox < 29"),hue=uue.hasCommandModifier,gue=uue.isCtrlKeyCommand;function mue(e){return fue&&e.altKey||gue(e)}var vue=function(e){switch(e.keyCode){case 66:return hue(e)?"bold":null;case 68:return gue(e)?"delete":null;case 72:return gue(e)?"backspace":null;case 73:return hue(e)?"italic":null;case 74:return hue(e)?"code":null;case 75:return fue&&gue(e)?"secondary-cut":null;case 77:case 79:return gue(e)?"split-block":null;case 84:return fue&&gue(e)?"transpose-characters":null;case 85:return hue(e)?"underline":null;case 87:return fue&&gue(e)?"backspace-word":null;case 89:return gue(e)?fue?"secondary-paste":"redo":null;case 90:return function(e){return hue(e)?e.shiftKey?"redo":"undo":null}(e)||null;case cue.RETURN:return"split-block";case cue.DELETE:return function(e){return!fue&&e.shiftKey?null:mue(e)?"delete-word":"delete"}(e);case cue.BACKSPACE:return function(e){return hue(e)&&fue?"backspace-to-start-of-line":mue(e)?"backspace-word":"backspace"}(e);case cue.LEFT:return pue&&hue(e)?"move-selection-to-start-of-block":null;case cue.RIGHT:return pue&&hue(e)?"move-selection-to-end-of-block":null;default:return null}},yue=vH;function bue(){return bue=yue||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},bue.apply(this,arguments)}function wue(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){Cue(e,t,n[t])}))}return e}function xue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var kue=lee,Eue=see,Oue=tne,Due=Hre,jue=Eoe,Pue=rue,Tue=oue,Mue=sue,Aue=pne,_ue=P8,Rue=t,Lue=Zne,Iue=ore,Nue=oee,$ue=O4,zue=vue,Fue=dre,Bue=d7,Kue=m4,Vue=dte,Hue=l8,Uue=Kee.isBrowser("IE"),Wue=!Uue,Zue={edit:Pue,composite:Oue,drag:jue,cut:null,render:null},que=!1,Gue=function(e){function t(){return e.apply(this,arguments)||this}Sue(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}(Rue.Component),Yue=function(e){function t(t){var n;return Cue(xue(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Cue(xue(n),"_clipboard",void 0),Cue(xue(n),"_handler",void 0),Cue(xue(n),"_dragCount",void 0),Cue(xue(n),"_internalDrag",void 0),Cue(xue(n),"_editorKey",void 0),Cue(xue(n),"_placeholderAccessibilityID",void 0),Cue(xue(n),"_latestEditorState",void 0),Cue(xue(n),"_latestCommittedEditorState",void 0),Cue(xue(n),"_pendingStateFromBeforeInput",void 0),Cue(xue(n),"_onBeforeInput",void 0),Cue(xue(n),"_onBlur",void 0),Cue(xue(n),"_onCharacterData",void 0),Cue(xue(n),"_onCompositionEnd",void 0),Cue(xue(n),"_onCompositionStart",void 0),Cue(xue(n),"_onCopy",void 0),Cue(xue(n),"_onCut",void 0),Cue(xue(n),"_onDragEnd",void 0),Cue(xue(n),"_onDragOver",void 0),Cue(xue(n),"_onDragStart",void 0),Cue(xue(n),"_onDrop",void 0),Cue(xue(n),"_onInput",void 0),Cue(xue(n),"_onFocus",void 0),Cue(xue(n),"_onKeyDown",void 0),Cue(xue(n),"_onKeyPress",void 0),Cue(xue(n),"_onKeyUp",void 0),Cue(xue(n),"_onMouseDown",void 0),Cue(xue(n),"_onMouseUp",void 0),Cue(xue(n),"_onPaste",void 0),Cue(xue(n),"_onSelect",void 0),Cue(xue(n),"editor",void 0),Cue(xue(n),"editorContainer",void 0),Cue(xue(n),"focus",void 0),Cue(xue(n),"blur",void 0),Cue(xue(n),"setMode",void 0),Cue(xue(n),"exitCurrentMode",void 0),Cue(xue(n),"restoreEditorDOM",void 0),Cue(xue(n),"setClipboard",void 0),Cue(xue(n),"getClipboard",void 0),Cue(xue(n),"getEditorKey",void 0),Cue(xue(n),"update",void 0),Cue(xue(n),"onDragEnter",void 0),Cue(xue(n),"onDragLeave",void 0),Cue(xue(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Cue(xue(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=Iue.getScrollParent(o),a=e||Fue(i),l=a.x,s=a.y;Vue(o)||("production"!==process.env.NODE_ENV?Kue(!1,"editorNode is not an HTMLElement"):Kue(!1)),o.focus(),i===window?window.scrollTo(l,s):Lue.setTop(i,s),r||n.update(_ue.forceSelection(t,t.getSelection()))}})),Cue(xue(n),"blur",(function(){var e=n.editor;e&&(Vue(e)||("production"!==process.env.NODE_ENV?Kue(!1,"editorNode is not an HTMLElement"):Kue(!1)),e.blur())})),Cue(xue(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=wue({},Zue.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=wue({},Zue,{edit:a});n._handler=l[e]})),Cue(xue(n),"exitCurrentMode",(function(){n.setMode("edit")})),Cue(xue(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Cue(xue(n),"setClipboard",(function(e){n._clipboard=e})),Cue(xue(n),"getClipboard",(function(){return n._clipboard})),Cue(xue(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Cue(xue(n),"onDragEnter",(function(){n._dragCount++})),Cue(xue(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||$ue(),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}Sue(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&&(Tue?Tue((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:Hue(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Rue.createElement(Mue,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,u=e.textAlignment,c=e.textDirectionality,d=Nue({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:wue({},Eue,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:c};return Rue.createElement("div",{className:d},this._renderPlaceholder(),Rue.createElement("div",{className:Nue("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Rue.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:Nue({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:Wue&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Rue.createElement(Gue,{editor:this,editorState:a}),Rue.createElement(Due,bue({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!que&&Bue("draft_ods_enabled")&&(que=!0,Aue.initODS()),this.setMode("edit"),Uue&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Ao.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Rue.Component);Cue(Yue,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:kue,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:zue,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Xue=Yue,Jue={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},Que=Jue,ece=vie.strlen;var tce=vie,nce=M3,rce=function(e,t){return e===t},oce=function(e){return!!e},ice=[];var ace=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 nce(o,rce,oce,(function(t,o){var i=e.getText();r.push({offset:tce.strlen(i.slice(0,t)),length:tce.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(ice,n.toJS())};function lce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sce=U3,uce=i4,cce=Jue,dce=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:ece(i.slice(0,r)),length:ece(i.slice(r,o)),key:Number(t[Que.stringify(a)])})})),n},fce=ace,pce=m4,hce=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:fce(e),entityRanges:dce(e,t),data:e.getData().toObject()}},gce=function(e,t,n,r){if(e instanceof sce)n.push(hce(e,t));else{e instanceof uce||("production"!==process.env.NODE_ENV?pce(!1,"block is not a BlockNode"):pce(!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){lce(e,t,n[t])}))}return e}({},hce(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},mce=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=cce.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),gce(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(cce.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function vce(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){yce(e,t,n[t])}))}return e}function yce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bce=O4,wce=m4,xce=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},Cce={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?wce(!1,"Invalid raw state"):wce(!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?wce(!1,"Invalid tree raw block"):wce(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=vce({},e);xce(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?vce({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,vce({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=xce(e),o=e.depth||0,i=vce({},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:bce(),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)})),vce({},e,{blocks:t})}},Sce=xie,kce={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&&Sce(!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&&Sce(!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&&Sce(!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&&Sce(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Sce(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Sce(!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&&Sce(!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)})),u=s.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&Sce(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Sce(!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)}},Ece=kce,Oce=T3,Dce=y3.List;var jce=function(e,t){var n=e.map((function(e,n){var r=t[n];return Oce.create({style:e,entity:r})}));return Dce(n)},Pce=vie.substr;var Tce=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=Pce(e,0,t.offset).length,o=r+Pce(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},Mce=vie,Ace=y3.OrderedSet,_ce=Mce.substr,Rce=Ace();var Lce=function(e,t){var n=Array(e.length).fill(Rce);return t&&t.forEach((function(t){for(var r=_ce(e,0,t.offset).length,o=r+_ce(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function Ice(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){Nce(e,t,n[t])}))}return e}function Nce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $ce=U3,zce=i4,Fce=L7,Bce=s7,Kce=Cce,Vce=Ece,Hce=c7,Uce=jce,Wce=Tce,Zce=Lce,qce=O4,Gce=y3,Yce=m4,Xce=d7("draft_tree_data_support"),Jce=Gce.List,Qce=Gce.Map,ede=Gce.OrderedMap,tde=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||qce(),data:Qce(o),characterList:nde(e,t)}},nde=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return Uce(Zce(n,o||[]),Wce(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return Ice({},e,{key:t[e.key]})}))))},rde=function(e){return Ice({},e,{key:e.key||qce()})},ode=function(e,t,n){var r=t.map((function(e){return Ice({},e,{parentRef:n})}));return e.concat(r.reverse())},ide=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=Xce&&!n?Kce.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Xce)return function(e,t){return ede(e.map((function(e){var n=new $ce(tde(e,t));return[n.getKey(),n]})))}(n?Kce.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(rde).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?Yce(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Yce(!1));var i=r.children.map(rde),a=new zce(Ice({},tde(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Jce(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=ode([],i,a);l.length>0;){var s=l.pop(),u=s.parentRef,c=u.getChildKeys(),d=c.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?Yce(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Yce(!1));break}var p=s.children.map(rde),h=new zce(Ice({},tde(s,t),{parent:u.getKey(),children:Jce(p.map((function(e){return e.key}))),prevSibling:0===d?null:c.get(d-1),nextSibling:d===c.size-1?null:c.get(d+1)}));n=n.set(h.getKey(),h),l=ode(l,p,h)}return n}),ede())}(r,t);return"production"!==process.env.NODE_ENV&&(Vce.isValidTree(o)||("production"!==process.env.NODE_ENV?Yce(!1,"Should be a valid tree"):Yce(!1))),o},ade=tae;var lde=function(e){var t=ade(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 u=t[s];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},sde=lde;var ude=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=sde(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r},cde={Editor:Xue,EditorBlock:Vre,EditorState:P8,CompositeDecorator:nee,Entity:s7,EntityInstance:J6,BlockMapBuilder:w3,CharacterMetadata:T3,ContentBlock:U3,ContentState:L7,RawDraftContentState:{},SelectionState:c7,AtomicBlockUtils:Q8,KeyBindingUtil:Wie,Modifier:L6,RichUtils:Ose,DefaultDraftBlockRenderMap:lee,DefaultDraftInlineStyle:see,convertFromHTML:ise,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?Yce(!1,"invalid RawDraftContentState"):Yce(!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]=Bce.__create(o,i,a||{})})),n}(e),n=ide(e,t),r=n.isEmpty()?new Hce:Hce.createEmpty(n.first().getKey());return new Fce({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:mce,genKey:O4,getDefaultKeyBinding:vue,getVisibleSelectionRect:ude};const dde=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},fde=e=>!!e||null!=e&&""!==e,pde=N.div((({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,focused:a,invalid:l,disabled:s,hasLabel:u,pointer:c})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?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:c?"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})),Ht,Wt,Ut),hde=N.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}}))),gde=N.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}))),mde=N.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 vde={Container:pde,Wrapper:hde,Label:gde,Description:mde,useInputFocus:dde,isInputFilled:fde};const yde=/^[\w.]+$/g,bde=/\\(\\)?/g,wde=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g");function xde(e){if(yde.test(e))return e.split(".");const t=[];"."===e[0]&&t.push("");const n=e.matchAll(wde);for(const e of n){let n=e[0];const r=e[1],o=e[2],i=e[3];o?n=i.replace(bde,"$1"):r&&(n=r),t.push(n)}return t}function Cde(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)?Cde(e,xde(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 Sde(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}const kde=(e,t,n)=>{if(e!==t){if("string"==typeof e&&"string"==typeof t)return"desc"===n?t.localeCompare(e):e.localeCompare(t);const r=Sde(e),o=Sde(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},Ede=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ode=/^\w*$/;function Dde(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&&(Ode.test(e)||!Ede.test(e))||null!=t))}function jde(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)||Dde(e)?e:{key:e,path:xde(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=kde(e.criteria[r],t.criteria[r],n[r]);if(0!==o)return o}return 0})).map((e=>e.original))}const Pde="FOUND_FIELD",Tde="NOT_FOUND",Mde="IMMUTABLE",Ade=N.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),_de=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},Rde=new cde.CompositeDecorator([{strategy:(e,t,n)=>_de(e,t,n,Pde),component:({children:t})=>e.jsx(Ade,{children:t})},{strategy:(e,t,n)=>_de(e,t,n,Tde),component:({children:t})=>e.jsx(Ade,{error:!0,children:t})}]),Lde=(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}},Ide=(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:u}=Lde(l,t||[],n);a=s,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?Pde:Tde,mutability:Mde,data:{id:i}}}o.text+=a}return cde.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return cde.EditorState.createWithContent(r,Rde)},Nde=(e,t=!0)=>{const n=e.getCurrentContent(),r=cde.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=Cde(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${l}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},$de=e=>{const t=Nde(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},zde=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new cde.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return cde.EditorState.forceSelection(e,o)},Fde=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:l,onBlur:u,mergeFields:c=[],placeholder:d="Text here...",description:f,invalid:p,width:h,height:g,maxHeight:m,noPadding:v=!1,readOnly:y=!1,displayMergedValues:b=!1,color:w,overflow:x,clampLines:C,label:S,disabled:k,borderRadius:E,backgroundColor:O,fontSize:D,textOnly:j,margin:P,marginLeft:T,marginRight:M,marginTop:A,marginBottom:_}=n,R=s(n,["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[L,I]=t.useState((()=>Ide(o,c,b))),{focused:N,handleFocus:$,handleBlur:z}=dde(l,u),[F,B]=t.useState(!1),K=t.useRef(null),V=t.useRef(),H=null!=m?m:g,U=e=>{I(e);const t=(e=>$de(e).some((e=>e.type===Tde)))(e);B(t);const n=Nde(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:l,isValid:s}=Lde(e,t,r),u=s?Pde:Tde,c=i.createEntity(u,Mde,{id:o}).getLastCreatedEntityKey(),d=cde.Modifier.insertText(i,a,l,void 0,c),f=cde.EditorState.push(n,d,"insert-characters");return cde.EditorState.forceSelection(f,d.getSelectionAfter())})(e,c,L,b);U(t)},Z=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=zde(L);I(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:Z})));t.useEffect((()=>{Nde(L)!==o&&(e=>{const t=L.getSelection(),n=Ide(e,c,b),r=zde(n),o=t.getHasFocus()?r:n;U(o)})(o)}),[o]),t.useEffect((()=>{V.current=c}),[]),t.useEffect((()=>{const{current:e}=V,t=Lt(e,c),n=$de(L);if(!t&&n.length>0){V.current=c;const e=Ide(o,c,b);U(e)}}),[c]);return e.jsxs(Bde,{onClick:e=>{y||e.stopPropagation();L.getSelection().getHasFocus()||Z()},width:h,height:g,editorMaxHeight:H,noPadding:v||j,readOnly:y,color:w,overflow:x,clampLines:C,filled:fde(o),invalid:p||F,textOnly:j,borderRadius:E,backgroundColor:O,fontSize:D,margin:P,marginLeft:T,marginRight:M,marginTop:A,marginBottom:_,focused:N,disabled:k,hasLabel:!!S,hideEditor:!fde(o)&&!!S&&!N,children:[e.jsxs(hde,{readOnly:y,children:[S&&e.jsx(gde,{filled:fde(o),focused:N,disabled:k,children:S}),e.jsx(cde.Editor,Object.assign({ref:K,editorState:L,onChange:U,placeholder:d,readOnly:y,handleReturn:e=>{const t=cde.RichUtils.insertSoftNewline(L);return e.shiftKey||!a?U(t):a(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=cde.convertFromRaw({blocks:[o],entityMap:{}}),a=cde.EditorState.createWithContent(i,Rde).getCurrentContent().getBlockMap(),l=cde.Modifier.replaceWithFragment(n,r,a);return cde.EditorState.push(t,l,"insert-fragment")})(e,n);return U(r),"handled"},onFocus:$,onBlur:z},R))]}),f&&e.jsx(mde,{invalid:p,children:f})]})})),Bde=N(pde)((({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:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:l||e.font.size.lg,top:!u||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 Kde,Vde={exports:{}},Hde={};var Ude,Wde={};"production"===process.env.NODE_ENV?Vde.exports=function(){if(Kde)return Hde;Kde=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"),u=Symbol.for("react.forward_ref"),c=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 c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case u:case p:case f:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Hde.ContextConsumer=l,Hde.ContextProvider=a,Hde.Element=t,Hde.ForwardRef=u,Hde.Fragment=r,Hde.Lazy=p,Hde.Memo=f,Hde.Portal=n,Hde.Profiler=i,Hde.StrictMode=o,Hde.Suspense=c,Hde.SuspenseList=d,Hde.isAsyncMode=function(){return!1},Hde.isConcurrentMode=function(){return!1},Hde.isContextConsumer=function(e){return g(e)===l},Hde.isContextProvider=function(e){return g(e)===a},Hde.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Hde.isForwardRef=function(e){return g(e)===u},Hde.isFragment=function(e){return g(e)===r},Hde.isLazy=function(e){return g(e)===p},Hde.isMemo=function(e){return g(e)===f},Hde.isPortal=function(e){return g(e)===n},Hde.isProfiler=function(e){return g(e)===i},Hde.isStrictMode=function(e){return g(e)===o},Hde.isSuspense=function(e){return g(e)===c},Hde.isSuspenseList=function(e){return g(e)===d},Hde.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},Hde.typeOf=g,Hde}():Vde.exports=(Ude||(Ude=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"),u=Symbol.for("react.forward_ref"),c=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 c:case d:return g;default:var m=g&&g.$$typeof;switch(m){case s:case l:case u: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=u,w=r,x=p,C=f,S=n,k=i,E=o,O=c,D=d,j=!1,P=!1;Wde.ContextConsumer=m,Wde.ContextProvider=v,Wde.Element=y,Wde.ForwardRef=b,Wde.Fragment=w,Wde.Lazy=x,Wde.Memo=C,Wde.Portal=S,Wde.Profiler=k,Wde.StrictMode=E,Wde.Suspense=O,Wde.SuspenseList=D,Wde.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Wde.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Wde.isContextConsumer=function(e){return g(e)===l},Wde.isContextProvider=function(e){return g(e)===a},Wde.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wde.isForwardRef=function(e){return g(e)===u},Wde.isFragment=function(e){return g(e)===r},Wde.isLazy=function(e){return g(e)===p},Wde.isMemo=function(e){return g(e)===f},Wde.isPortal=function(e){return g(e)===n},Wde.isProfiler=function(e){return g(e)===i},Wde.isStrictMode=function(e){return g(e)===o},Wde.isSuspense=function(e){return g(e)===c},Wde.isSuspenseList=function(e){return g(e)===d},Wde.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},Wde.typeOf=g}()),Wde);var Zde=Vde.exports;function qde(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Zde.isFragment(o)?e.push.apply(e,qde(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}for(var Gde,Yde=[],Xde=0;Xde<256;++Xde)Yde.push((Xde+256).toString(16).slice(1));var Jde=new Uint8Array(16);function Qde(){if(!Gde&&!(Gde="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 Gde(Jde)}var efe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tfe(e,t,n){if(efe.randomUUID&&!t&&!e)return efe.randomUUID();var r=(e=e||{}).random||(e.rng||Qde)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Yde[e[t+0]]+Yde[e[t+1]]+Yde[e[t+2]]+Yde[e[t+3]]+"-"+Yde[e[t+4]]+Yde[e[t+5]]+"-"+Yde[e[t+6]]+Yde[e[t+7]]+"-"+Yde[e[t+8]]+Yde[e[t+9]]+"-"+Yde[e[t+10]]+Yde[e[t+11]]+Yde[e[t+12]]+Yde[e[t+13]]+Yde[e[t+14]]+Yde[e[t+15]]).toLowerCase()}(r)}var nfe={exports:{}};nfe.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,u=[],c=!1,d=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=l(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,c=!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];u.push(new h(e,t)),1!==u.length||c||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 u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,o,i,a,l,s],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).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=u(i),l=u(n(7)),s=n(12);function u(e){return e&&e.__esModule?e:{default:e}}function c(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),u=l.phoneNumber,c=void 0===u?"":u,d=l.cursorPosition,f=void 0===d?0:d;r.setState({phoneNumber:c,cursorPosition:f,key:t}),r.props.onChange(c)}},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,(c(e={},i,(function(e){return t.textInput=e})),c(e,"type","tel"),c(e,"value",n),c(e,"onKeyDown",this.handleKeyDown),c(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,n){e.exports=t},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 u="function"==typeof Symbol&&Symbol.iterator,c="@@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 u=e(a,s,r,o,i+"["+s+"]",l);if(u instanceof Error)return u}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 u in a)if(a.hasOwnProperty(u)){var c=e(a,u,r,o,i+"."+u,l);if(c instanceof Error)return c}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 u in e){var c=e[u];if(c){var d=c(a,u,r,o,i+"."+u,l);if(d)return d}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var s=t[n],u=y(s);if("object"!==u)return new h("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var c=a({},t[n],e);for(var d in c){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,u,c,f,p,g,m){if(f=f||d,g=g||c,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+":"+c;!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==u[c]?s?null===u[c]?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(u,c,f,p,g)}var u=s.bind(null,!1);return u.isRequired=s.bind(null,!0),u}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&&(u&&e[u]||e[c]);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 u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}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,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,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,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";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===u(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=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(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),u=s?s.length:0,c=d(t),f=p(c,u);return c.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 rfe=nfe.exports;
2
2
  /**
3
3
  * @deprecated Use the other input variant components instead (TextInput, NumberInput, SearchInput, PhoneInput).
4
- */const ofe=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:l,placeholderColor:u,description:c,isLoading:d,search:f,phone:p,textOnly:h,iconLeft:g,iconRight:m,invalid:v,borderRadius:y,borderColor:b,backgroundColor:w,fontSize:x,width:C,height:S,margin:k,marginLeft:E,marginRight:O,marginTop:D,marginBottom:j,padding:P,paddingLeft:T,paddingRight:M,paddingTop:A,paddingBottom:_,containerRef:R,value:L,disabled:I,readOnly:N,preventFocus:$,pointer:z,hideControls:F,onChange:B,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,W=s(r,["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:Z,handleFocus:q,handleBlur:G}=dde(H,U,!$&&!N),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:D,marginBottom:j,marginRight:O,marginLeft:E},ne={padding:P,paddingTop:A,paddingBottom:_,paddingRight:M,paddingLeft:T};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;L&&(e.innerHTML=L.toString().replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,L,l,ee]);const re=h?L||l:L,oe=(!!L||"number"==typeof L)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof L&&10===L.length&&L===rfe.normalize(L)){const{current:n}=Y;if(n){const r=rfe.format(L),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)}}}),[L]);const ie=()=>{Z||q()},ae=()=>{Z&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:Z,select:le}))),t.useEffect((()=>{var e;Z&&(null===(e=Y.current)||void 0===e||e.focus())}),[Z]);return e.jsxs(pde,Object.assign({ref:R,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:Z,disabled:I,hasLabel:!!a,onClick:e=>{$||N||ie(),K&&K(e)},pointer:z,readOnly:N},te,ne,{children:[f&&e.jsx(Gt,{name:"search",marginRight:8,inheritColor:!0}),g&&i2(g,{marginRight:8}),e.jsxs(hde,{readOnly:N||$,children:[h&&e.jsx(lfe,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(gde,{htmlFor:i||a,filled:fde(L),focused:Z,disabled:I,children:a}),e.jsx(ife,Object.assign({id:i||a,ref:Y,value:L,placeholder:l,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=rfe.normalize(t);if(n.length>10)return;const r=rfe.format(n);B&&B(e,r,n)}else B&&B(e)},onFocus:q,onBlur:G,disabled:I,hide:!(fde(L)||!a||Z||h),width:J,fontSize:x,hideControls:F},W))]}),m&&i2(m),d&&e.jsx(OC,{}),oe&&e.jsx(afe,{onClick:V,children:e.jsx(Gt,{name:"close-circle-outline",color:X.brand})}),c&&e.jsx(mde,{invalid:v,children:c})]}))})),ife=N.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"}})),afe=N.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),lfe=N.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),sfe=N("div",{shouldForwardProp:e=>Jx(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))"}}))),ufe=N("div",{shouldForwardProp:e=>Jx(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}})),cfe=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:u,offsetX:c,centerY:d,centerX:f,direction:p})=>{const[h,g]=t.useState(),m=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?c:u)||4))}}),[i,p]);const v=e.jsx(dfe,{id:n,ref:i||m,offsetX:c,offsetY:u,width:l,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};cfe.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:u,accented:c,section:d}=t,f=s(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(ufe,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:l,color:u,accented:c,tabIndex:a?-1:0},f,{children:n}))};const dfe=N(sfe)((({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}:{}})),ffe=(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},pfe=t=>e.jsxs(e.Fragment,{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(gfe,{children:t.header}),e.jsx(mfe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),hfe=(n,r,o,i,a)=>{const{selected:l}=a,u=((t,n,r,o)=>{if(t&&t.length>0)return ffe(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(cfe.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:pfe(t)},t.id)}));return[]})(n,o,i,s(a,["selected"])),c=((e,n,r)=>e?qde(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return qde([...u,...c]).map(((e,n)=>e?t.cloneElement(e,{selected:l===n}):null))},gfe=N.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),mfe=N.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),vfe=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),yfe=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:l,onFocus:u,onBlur:c,onError:d,placeholder:f,placeholderColor:p,value:h,options:g,children:m,borderColor:v,backgroundColor:y,hideIcon:b,clearOnSelect:w,textOnly:x,width:C,height:S,isLoading:k,margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P,label:T,id:M,name:A,trigger:_,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,fontSize:z,description:F,disabled:B,invalid:K,search:V,filter:H,restrictInput:U,inputRef:W,optionsParent:Z}=r,q=s(r,["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[G,Y]=t.useState(""),[X,J]=t.useState(""),[Q,ee]=t.useState(!1),[te,ne]=t.useState(!1),[re,oe]=t.useState(!1),ie=t.useRef(null),{input:ae}=n.useTheme(),le={margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&l&&l(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(W||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ue=et(se,Q,Z?[Z,`${Z} *`]:void 0),ce=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ce(t.label,e);return!n&&"id"in t&&(n=ce(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ce(t.value,e)),n}));return t},fe=e=>"function"==typeof U?!U(e):U,pe=e=>he(null,e),he=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(fe(e))return de(e)||null;return{id:tfe(),label:e,value:e}})(e);const t=fe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}Q&&se(t),Y((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?oe(!0):(re&&oe(!1),w&&Y(""),J(""))};t.useEffect((()=>{""!==h&&null!=h||pe()}),[h]);const ge=()=>{const e=qde(m).map((e=>{const t=e;let n=t.props.displayText||"";return!T&&t.props.children&&(n=vfe(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...ffe(g||[],{search:V,filter:H,inputText:X}),...e]},me={options:ge(),select:he,open:se,close:se,searchText:V?X:void 0,isOpen:Q,isFocused:te},[ve,ye]=It(me),be=hfe(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!B?p||ae.color.default:void 0,Ce=s(q,["onClear","phone"]);return e.jsx(bfe,Object.assign({textOnly:x,altTrigger:!!_,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(wfe,{ref:ue,children:[_?e.jsx(xfe,{id:M,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:_}):e.jsx(Sfe,{shake:re,children:e.jsx(ofe,Object.assign({},Ce,{ref:W||ie,id:M,name:A,label:T,fontSize:z,pointer:!0,preventFocus:!V,value:X||h||G,placeholder:f||"Select",placeholderColor:xe,iconRight:b||k?void 0:we,borderColor:v,backgroundColor:y,isLoading:k,textOnly:x,description:F,disabled:B,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(W||ie).current)||void 0===t?void 0:t.hasFocus;V?(J(n),!Q&&r&&ee(!0),re&&oe(!1)):n||pe(e);const o=de(n),i=fe(n),a=""===n||i&&!r;o&&!(V&&(!i||r))?he(o,e):V&&!a||pe(e)},onFocus:e=>{ne(!0),u&&u(e)},onBlur:e=>{var t;if(ne(!1),c&&c(e),V&&X&&e){const{relatedTarget:n}=e;(null===(t=null==ye?void 0:ye.current)||void 0===t?void 0:t.contains(n))||he(X,e)}}}))}),Q&&be.length>0&&e.jsx(cfe,{containerRef:ye,parentSelector:Z,width:!_&&!x||Z?"100%":void 0,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,children:be})]})}))};yfe.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||vfe(i)||"",value:t};r&&r(o,e)};return e.jsx(cfe.Item,{id:c,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const bfe=N.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`})),Ht,Wt),wfe=N.div({position:"relative",width:"100%",height:"inherit"}),xfe=N.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`,outlineOffset:-1}}))),Cfe=n.keyframes({"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)"}}),Sfe=N.div((({shake:e})=>({"& input":{animation:e?`${Cfe} .5s linear`:void 0}}))),kfe=(e,t)=>{if(!t||!e)return!0;return new RegExp(t).test(e)},Efe=t.forwardRef(((r,o)=>{var{value:i,label:a,placeholder:l,iconLeft:u,iconRight:c,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:x,onInput:C}=r,S=s(r,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const{color:k}=n.useTheme(),[E,O]=t.useState("");t.useEffect((()=>{null!=i&&E!==i&&O(i)}),[i]);return e.jsxs(Ofe,Object.assign({value:E,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:e=>{kfe(e,w)&&(O(e),x&&x(e))},onInput:C?e=>{const{value:t}=e.target;C&&kfe(t,w)&&C(e)}:void 0},S,{children:[u&&i2(u,{marginRight:8}),e.jsx(Gt,{name:"search",inheritColor:!0,marginRight:8}),e.jsxs(O1,{filled:!!E,disabled:h,children:[a,e.jsx(n2,{ref:o,placeholder:l,hide:!(E||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),c&&i2(c),d&&e.jsx(OC,{}),!!E&&!d&&e.jsx(yC,{children:e.jsx(Gt,{name:"close-circle-outline",color:k.brand})}),e.jsx(C1,{description:y,errorMessage:b})]}))})),Ofe=N(sx)(x1),Dfe=(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=Dfe(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}),[])},jfe=N.div(x1),Pfe=N.div(eC),Tfe=N.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t}))),Mfe=N.div((({gap:e})=>({display:"flex",alignItems:"center",gap:e||4}))),Afe=N.div((({theme:e})=>({color:e.scale10}))),_fe=N.div((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),Rfe=N.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"})),Ut,Wt),Lfe=N.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,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:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),Ut,Wt);Lfe.Item=N.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),Ut,Wt);const Ife=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,l=s(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(Nfe,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&i2(r,{marginRight:4,size:"small"}),n,o&&i2(o,{marginLeft:4,size:"small"})]}))},Nfe=N.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}}),Wt),$fe=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:l,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=t,p=s(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:l,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return e.jsxs(nC,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(oC,{children:r}),e.jsx(rC,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(Gt,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},zfe=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=s(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[m,v]=t.useState("toggle-off"),[y,b]=t.useState(a||!1),w="right"===i,x={margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(y?"toggle-on":"toggle-off")}),[y]),t.useEffect((()=>{b("boolean"==typeof a?a:y)}),[a,y]),e.jsxs(nC,Object.assign({htmlFor:r,labelRight:w,disabled:l},x,{children:[o&&e.jsx(oC,{children:o}),e.jsx(rC,Object.assign({id:r,type:"checkbox",checked:y,disabled:l,onChange:()=>{const e=!y;b(e),u(e)}},g)),e.jsx(Gt,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!l,size:40})]}))},Ffe=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,u=s(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(Bfe,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{e.preventDefault(),l&&l(e)}},u,{children:n}))};Ffe.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,u=s(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(Kfe,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},u,{children:n}))},Ffe.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=s(t,["children","inline","align","disabled"]);return e.jsx(Vfe,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Ffe.Radio=$fe,Ffe.Toggle=zfe,Ffe.Checkbox=iC,Ffe.Label=Ife;const Bfe=N(Lfe)({boxSizing:"border-box"}),Kfe=N(Lfe)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Vfe=N.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"}),Wt),Hfe=N.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}))),Ufe=N.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Wfe=N.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%)`}}))),Zfe=N.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),qfe=N.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"}))),Gfe=N(Ow)((({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"}}))),Yfe=N(yC)((({theme:{input:e},isDisabled:t})=>({color:t?e.labelColor.disabled:e.labelColor.default}))),Xfe=H1(),Jfe=t.forwardRef(((n,r)=>{var{value:o,label:i,iconLeft:a,iconRight:l,loading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=s(n,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:x}=t.useRef(o?W1(o):void 0),[C,S]=t.useState(x),k=t.useRef(null),{min:E,max:O}=Z1({past:g,future:m,rel:x||Xfe}),D=e=>{const{year:t,month:n,day:r}=e,o=new Rs(t,n,r);S(o);const i=U1(e);v&&v(i)},j=!(C||!i);return e.jsxs(Qfe,Object.assign({value:C,hasLabel:!!i,isDisabled:f,minValue:E,maxValue:O,onChange:D,onOpenChange:e=>{y&&e&&y(),b&&!e&&b()},ref:k},w,{children:[a&&i2(a,{marginRight:8}),e.jsxs(O1,{filled:!!C,disabled:f,children:[i,e.jsx(epe,{ref:r,hide:j,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Gfe,{placeholderColor:d,segment:t})})]}),e.jsx(Yfe,{isDisabled:f,children:e.jsx(Gt,{size:18,name:"calendar",inheritColor:!0})}),l&&i2(l),u&&e.jsx(OC,{}),e.jsx(C1,{description:p,errorMessage:h}),e.jsx(ow,{triggerRef:k,children:e.jsx(uw,{children:e.jsx(G1,{date:C?U1(C):void 0,onChange:e=>{D(W1(e))},preventPast:g,preventFuture:m})})})]}))})),Qfe=N(Aw)(x1),epe=N(kw,e2)({display:"flex"},t2),tpe=H1(),npe=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:l,noShadow:u}=n,c=s(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?W1(r):tpe),{current:f}=t.useRef(o?W1(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),[v,y]=t.useState(d),{min:b,max:w}=Z1({past:a,future:l,rel:d});return e.jsxs(rpe,Object.assign({value:{start:p,end:g},onChange:e=>{if(!e)return;const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:u}=n,c=new Rs(r,o,a);h(c);const d=new Rs(l,s,u);m(d);const f=U1(t),p=U1(n);i&&i(f,p)},minValue:b,maxValue:w,noShadow:u,focusedValue:v,onFocusChange:y},c,{children:[e.jsx(F1,{date:v,setDate:y}),e.jsx(m1,{range:!0})]}))},rpe=N(ob)(g1),ope=H1(),ipe=t.forwardRef(((n,r)=>{var{startValue:o,endValue:i,label:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=s(n,["startValue","endValue","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:C}=t.useRef(o?W1(o):void 0),{current:S}=t.useRef(i?W1(i):void 0),[k,E]=t.useState(C),[O,D]=t.useState(S),j=t.useRef(null),{min:P,max:T}=Z1({past:m,future:v,rel:C||ope}),M=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new Rs(r,o,i);E(u);const c=new Rs(a,l,s);D(c);const d=U1(t),f=U1(n);y&&y(d,f)},A=!(!k&&!O),_=!(A||!a);return e.jsxs(ape,Object.assign({value:k&&O?{start:k,end:O}:void 0,hasLabel:!!a,isDisabled:p,minValue:P,maxValue:T,onChange:M,onOpenChange:e=>{b&&e&&b(),w&&!e&&w()},ref:j},x,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:A,disabled:p,children:[a,e.jsxs(spe,{fontSize:d,hide:_,isDisabled:p,children:[e.jsx(lpe,{slot:"start",ref:r,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Gfe,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(lpe,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Gfe,{placeholderColor:f,segment:t})})]})]}),e.jsx(Yfe,{isDisabled:p,children:e.jsx(Gt,{size:18,name:"calendar",inheritColor:!0})}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:h,errorMessage:g}),e.jsx(ow,{triggerRef:j,children:e.jsx(uw,{children:e.jsx(npe,{startDate:k?U1(k):void 0,endDate:O?U1(O):void 0,onChange:(e,t)=>{const n=W1(e),r=W1(t);M({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))})),ape=N(Rw)(x1),lpe=N(kw,e2)(t2,{display:"flex","&:first-of-type":{marginRight:0}}),spe=N(Jb,e2)((({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=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,accepts:b,onChange:w,onInput:x}=n,C=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[S,k]=t.useState(""),[E,O]=r2({value:S,placeholder:a,fontSize:d});t.useEffect((()=>{null!=o&&S!==o&&k(o)}),[o]);return e.jsxs(cpe,Object.assign({value:S,hasLabel:!!i,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,onChange:e=>{kfe(e,b)&&(k(e),w&&w(e))},onInput:x?e=>{const{value:t}=e.target;x&&kfe(t,b)&&x(e)}:void 0,textOnly:!0},C,{children:[l&&i2(l,{marginRight:8}),e.jsx(n2,{ref:r,placeholder:a,hide:!(S||!i),fontSize:d,placeholderColor:f,isDisabled:p,width:E}),e.jsx(O,{}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:v,errorMessage:y})]}))})),cpe=N(Ux)(x1),dpe=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,hideControls:b,separator:w=!0,onChange:x}=n,C=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","hideControls","separator","onChange"]);const[S,k]=t.useState(NaN);t.useEffect((()=>{null!=o&&S!==o&&k(o)}),[o]);const E=!Number.isNaN(S)&&null!=S;return e.jsxs(fpe,Object.assign({value:S,onChange:e=>{k(e),x&&x(e)},hasLabel:!!i,paddingRight:0,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,formatOptions:{useGrouping:w}},C,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:E,disabled:p,children:[i,e.jsx(n2,{ref:r,placeholder:a,hide:!(E||!i),fontSize:d,placeholderColor:f,isDisabled:p})]}),u&&i2(u),c&&e.jsx(OC,{}),!b&&e.jsxs(ppe,{children:[e.jsx(hpe,{slot:"increment",isDisabled:p||h,children:e.jsx(Gt,{size:i?23.5:19.5,name:"caret-up",inheritColor:!0})}),e.jsx(gpe,{}),e.jsx(hpe,{slot:"decrement",isDisabled:p||h,children:e.jsx(Gt,{size:i?23.5:19.5,name:"caret-down",inheritColor:!0})})]}),e.jsx(C1,{description:v,errorMessage:y})]}))})),fpe=N(ix)(x1),ppe=N.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder,overflow:"hidden",borderTopRightRadius:4,borderBottomRightRadius:4}))),hpe=N(yC)((({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}}))),gpe=N.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),mpe=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,onChange:b}=n,w=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[x,C]=t.useState(""),S=t.useRef(null);t.useImperativeHandle(r,(()=>S.current)),t.useEffect((()=>{var e,t;if(null!=o&&x!==o){const n=rfe.normalize(o),r=rfe.format(n);C(r);const{current:i}=S;if(i&&o===rfe.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 e.jsxs(vpe,Object.assign({value:x,hasLabel:!!i,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,onChange:e=>{const t=rfe.normalize(e);if(t.length>10||e&&!t)return;const n=rfe.format(t);x!==n&&(C(n),b&&b(n,t))},type:"tel"},w,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:!!x,disabled:p,children:[i,e.jsx(n2,{ref:S,placeholder:a,hide:!(x||!i),fontSize:d,placeholderColor:f,isDisabled:p})]}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:v,errorMessage:y})]}))})),vpe=N(Ux)(x1),ype=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,accepts:b,onChange:w,onInput:x}=n,C=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[S,k]=t.useState("");t.useEffect((()=>{null!=o&&S!==o&&k(o)}),[o]);return e.jsxs(bpe,Object.assign({value:S,hasLabel:!!i,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,onChange:e=>{kfe(e,b)&&(k(e),w&&w(e))},onInput:x?e=>{const{value:t}=e.target;x&&kfe(t,b)&&x(e)}:void 0},C,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:!!S,disabled:p,children:[i,e.jsx(n2,{ref:r,placeholder:a,hide:!(S||!i),fontSize:d,placeholderColor:f,isDisabled:p})]}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:v,errorMessage:y})]}))})),bpe=N(Ux)(x1),wpe=t.forwardRef(((n,r)=>{var{value:o,label:i,iconLeft:a,iconRight:l,loading:u,fontSize:c,placeholderColor:d,disabled:f,readOnly:p,invalid:h,required:g,description:m,errorMessage:v,onChange:y}=n,b=s(n,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[w,x]=t.useState(o?Os(o):null);t.useEffect((()=>{if(o){`${null==w?void 0:w.hour}:${null==w?void 0:w.minute}`!==o&&x(Os(o))}}),[o]);const C=!(w||!i);return e.jsxs(xpe,Object.assign({value:w,hasLabel:!!i,isDisabled:f,isReadOnly:p||u,isInvalid:h,isRequired:g,onChange:e=>{const{hour:t,minute:n,second:r}=e,o=new Is(t,n,r);x(o),y&&y(e.toString())}},b,{children:[a&&i2(a,{marginRight:8}),e.jsxs(O1,{filled:!!w,disabled:f,children:[i,e.jsx(Cpe,{ref:r,hide:C,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Gfe,{placeholderColor:d,segment:t})})]}),l&&i2(l),u&&e.jsx(OC,{}),e.jsx(C1,{description:m,errorMessage:v})]}))})),xpe=N(ww)(x1),Cpe=N(kw,e2)({display:"flex"},t2),Spe=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(kpe,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?qde(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),kpe=N.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:u})=>({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:u})),Ut),Epe=N.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}))),Ope=N.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),Dpe=N.div({marginLeft:"auto",marginRight:8});Spe.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(Epe,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Spe.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:u,children:c,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>qde(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:f})}return null})),m=g(c),v=()=>h((e=>!e));return e.jsxs(Ope,{backgroundColor:f,children:[e.jsxs(Epe,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:u,role:"menuitem",indent:d,children:[n,e.jsx(Dpe,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(Gt,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const jpe=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d,children:f})=>{const p=n.useTheme(),{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:u,marginRight:c,marginLeft:d};return e.jsxs(Mpe,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(Gt,{name:h,style:{marginRight:10},color:g}),e.jsx(Ape,{children:r||f}),o&&e.jsx(Gt,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},Ppe=N.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Tpe=N.div((({theme:e})=>({fontWeight:e.font.weight.default})));jpe.Header=Ppe,jpe.Body=Tpe;const Mpe=N.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})),Wt),Ape=N.div({width:"100%"}),_pe=N.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),Rpe=N.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Lpe=N.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Ipe=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:u,preventOverlayClose:c,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:j})=>{const P=et(c?()=>null:s,i),T={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},M=qde(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),A=e.jsx(zpe,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:j,blur:d,children:e.jsxs(Npe,Object.assign({ref:P,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},T,{children:[M,u&&e.jsx($pe,{inline:h,children:e.jsx(Gt,{name:"close",onClick:s,pointer:!0})})]}))}),_=document.querySelector(o||"#root");return i&&_?r.createPortal(A,_):null};Ipe.Header=N.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Ipe.Text=N.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Ipe.Body=N.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),Wt),Ipe.Footer=N.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})),Wt);const Npe=N.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"})`}),Ut),$pe=N.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),zpe=N.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),Fpe=t=>{var{trigger:n,children:r,content:o,position:i,offset:a=6,zIndex:l,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,bgColor:h,color:g,isTriggerButton:m,inheritWidth:v,afterShow:y,afterHide:b}=t,w=s(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","bgColor","color","isTriggerButton","inheritWidth","afterShow","afterHide"]);const x=m?n:e.jsx(Hpe,{inheritWidth:v,children:n});return e.jsxs(qx,Object.assign({delay:0,onOpenChange:e=>{y&&e&&y(),b&&!e&&b()},isDisabled:p,isOpen:f},w,{children:[x,e.jsxs(Vpe,{placement:i,offset:a,zIndex:l,width:u,maxWidth:c,textAlign:d,bgColor:h,textColor:g,children:[e.jsx(tw,{children:e.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:e.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o||r]})]}))},Bpe=n.keyframes({from:{transform:"var(--origin)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Kpe="300ms cubic-bezier(0.860, 0.000, 0.070, 1.000)",Vpe=N(Yx,{shouldForwardProp:e=>Jx(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,u=l.background,c=o||u;return{backgroundColor:c,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:c,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:`${Bpe} ${Kpe}`},"&[data-exiting]":{animation:`${Bpe} ${Kpe} reverse`}}})),Hpe=N(yC)((({inheritWidth:e})=>({width:e?"inherit":void 0,textAlign:e?"left":void 0}))),Upe=N.div((({theme:e})=>({color:e.tooltip.color.default}))),Wpe=N.div((({theme:e})=>({color:e.tooltip.color.subtext})));Fpe.Header=Upe,Fpe.Body=Wpe;const Zpe=t=>{var{children:r,id:o,value:i,iconLeft:a,iconRight:l,tooltip:u,removable:c,disabled:d,onRemove:f}=t,p=s(t,["children","id","value","iconLeft","iconRight","tooltip","removable","disabled","onRemove"]);const{scale10:h}=n.useTheme(),g=r||i;return e.jsxs(qpe,Object.assign({id:o,disabled:d,rightIcon:!!(l||c&&!d)},p,{children:[a&&i2(a,{marginRight:4,size:"small"}),u?e.jsx(Fpe,Object.assign({trigger:g,zIndex:100},u)):g,c&&!d&&e.jsx(Gt,{name:"close-circle",size:"small",marginLeft:4,pointer:!0,onClick:!d&&o?()=>{return e=o,void(f&&f(e));var e}:void 0,color:d?void 0:h,inheritColor:d}),l&&i2(l,{marginLeft:4,size:"small"})]}))},qpe=N.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}})),Wt,Ut),Gpe=t.forwardRef(((n,r)=>{var{options:o,items:i,triggerRef:a,placeholder:l,placeholderColor:u,fontSize:c,position:d,fixedPosition:f,maxHeight:p,disabled:h,accepts:g,addItem:m,removeItem:v,afterShow:y,afterHide:b,onTextChange:w,onValidChange:x}=n,C=s(n,["options","items","triggerRef","placeholder","placeholderColor","fontSize","position","fixedPosition","maxHeight","disabled","accepts","addItem","removeItem","afterShow","afterHide","onTextChange","onValidChange"]);const[S,k]=t.useState(!1),[E,O]=t.useState([]),[D,j]=t.useState(""),[P,T]=t.useState(!1),[M,A]=r2({value:D,placeholder:l,fontSize:c});t.useEffect((()=>{if(i.length>0){const e=o.filter((e=>!i.some((t=>t.id===e.id))));O(e)}else O(o)}),[i]);const _=e=>{x&&x(e),T(!e)},R=t.useMemo((()=>(e=>e.map((e=>"options"in e?e.options:e)).flat())(o)),[o]),L=()=>{if(S)return;if(!g||!D)return void j("");("function"==typeof g?g(D):kfe(D,g))?(m({id:D,value:D}),j(""),_(!0)):_(!1)};return e.jsxs(Ype,Object.assign({onOpenChange:e=>{k(e),y&&e&&y(),b&&!e&&b()},menuTrigger:"focus",inputValue:D,onInputChange:e=>{w&&w(e),j(e),_(!0)},onSelectionChange:e=>{if(!e)return;const t=R.find((t=>t.id===e));t&&(m(t),j(""),_(!0))},onBlur:L,isDisabled:h,shouldFocusWrap:!0,selectedKey:"",allowsCustomValue:!!g},C,{children:[e.jsx(Jpe,{shake:P,children:e.jsx(n2,{placeholder:l,placeholderColor:u,fontSize:c,isDisabled:h,onKeyDown:e=>{const{key:t,target:n,altKey:r,ctrlKey:o,metaKey:a}=e,{value:l}=n;if(!(r||o||a)&&t)switch(t){case"Backspace":if(!l&&i.length>0){const e=i[i.length-1];v(e)}break;case"Enter":L()}},ref:r,width:M})}),e.jsx(A,{}),e.jsx(xC,{triggerRef:a,offset:2,placement:d,shouldFlip:!f&&void 0,maxHeight:p,children:({isEntering:t,isExiting:n})=>{var r;return e.jsx(T1,{options:E,width:null===(r=null==a?void 0:a.current)||void 0===r?void 0:r.offsetWidth,readOnly:t||n})}})]}))})),Ype=N(hw)({width:"auto"}),Xpe=n.keyframes({"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)"}}),Jpe=N.div((({shake:e})=>({"& input":{animation:e?`${Xpe} .5s linear`:void 0}}))),Qpe=t.forwardRef(((r,o)=>{var{options:i,items:a,listLabel:l,listText:u,itemsTitle:c,maxItems:d,placeholder:f,width:p,accepts:h,disabled:g,hideItemsInfo:m,compact:v,backgroundColor:y,borderless:b,autoFocus:w,addItem:x,removeItem:C,onTextChange:S}=r,k=s(r,["options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","accepts","disabled","hideItemsInfo","compact","backgroundColor","borderless","autoFocus","addItem","removeItem","onTextChange"]);const[E,O]=t.useState(w||!1),[D,j]=t.useState(!1),{color:P,font:T,input:M}=n.useTheme(),A=et((()=>O(!1)),E),_=t.useRef(null),R=t.useRef(null),L=v&&!!l,I=()=>{const{current:e}=R;E||l||O(!0),null==e||e.focus()},N=()=>{const{current:e}=R;e&&e.blur()};t.useImperativeHandle(o,(()=>({focus:I,blur:N})));t.useEffect((()=>{E||N(),j(!1)}),[E]);const $=d?a.length>=d:void 0,z=g||$,F=()=>e.jsxs(rhe,{expanded:E,labeled:!!l,children:[u&&e.jsx(ohe,{expanded:E,labeled:!!l,children:u}),a.map((t=>e.jsx(Zpe,Object.assign({},t,{removable:E,onRemove:()=>C(t),disabled:g}),t.id))),e.jsx(Gpe,{"aria-label":"MultiSelect search",options:i,items:a,triggerRef:_,placeholder:g||a.length>0?" ":f||"Search...",placeholderColor:M.color.placeholder,fontSize:T.size.md,addItem:x,removeItem:C,onTextChange:S,disabled:z,autoFocus:w,ref:R,accepts:h,onValidChange:e=>j(!e)})]});return e.jsxs(ehe,Object.assign({width:p,ref:A,labeled:!!l,disabled:g,collapse:L,onClick:e=>{e.stopPropagation(),I()}},k,{children:[e.jsxs(the,{collapse:L,ref:_,expanded:E&&a.length>0,error:D,labeled:!!l,backgroundColor:y,borderless:b,children:[l?e.jsx(nhe,{collapse:L,children:l}):F(),e.jsxs(ihe,{children:[d&&!m&&e.jsx(lhe,{children:g&&c?e.jsxs(e.Fragment,{children:[a.length," ",c]}):e.jsxs(e.Fragment,{children:[e.jsx(ahe,{error:a.length>=d,children:a.length}),"/",d," ",c]})}),a.length>0&&e.jsx(Gt,{name:E?"chevron-up":"chevron-down",color:P.brand,pointer:!0,onClick:e=>{e.stopPropagation(),O(!E)}})]})]}),l&&E&&F()]}))})),ehe=N.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"})),Wt),the=N.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"}))),nhe=N.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),rhe=N.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}:{})),ohe=N.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}))),ihe=N.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),ahe=N.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),lhe=N.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),she=e=>e?+e:0,uhe=N.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),Wt),che=N.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}}))),dhe=N(che)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),fhe=N(che)((({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}))),phe=N.span((({theme:e})=>({color:e.scale6}))),hhe=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u})=>{const c={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs(ghe,Object.assign({size:n},c,{children:[e.jsx(mhe,{cx:h,cy:h,r:d,thickness:r}),e.jsx(vhe,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},ghe=N.svg((({size:e})=>({display:"block",width:e,height:e})),Wt),mhe=N.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),vhe=N(mhe)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),yhe=N.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),Wt),bhe=N.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),whe=N.div(Ht),xhe=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Che=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(xhe);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=xhe(r)),void 0!==o&&(t.right=xhe(o)),void 0!==i&&(t.bottom=xhe(i)),void 0!==a&&(t.left=xhe(a)),t},She=t.createContext({}),khe=n=>{var{children:r,onClick:o,disabled:i,padding:a,paddingTop:l,paddingRight:u,paddingBottom:c,paddingLeft:d}=n,f=s(n,["children","onClick","disabled","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);const{setRowPadding:p}=t.useContext(She);return t.useEffect((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=a?a:l)&&void 0!==e?e:u)&&void 0!==t?t:c)&&void 0!==n?n:d)&&p){const e=Che({padding:a,paddingTop:l,paddingRight:u,paddingBottom:c,paddingLeft:d});p(e)}}),[a,l,u,c,d,p]),e.jsx(Ehe,Object.assign({isDisabled:i,onAction:o&&!i?o:void 0,hoverEffect:!!o&&!i},f,{children:r}))},Ehe=N(Ix)((({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}))),Ohe=({spinnerSize:t})=>{const n="small"===t;return e.jsx(khe,{height:n?49:57,className:n?"fetching-row":void 0,children:e.jsx(Dhe,{children:e.jsx(OC,{size:t,center:!0})})})},Dhe=N(Nx)((({theme:e})=>({color:e.scale6}))),jhe=N(Lx)((({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}}}))),Phe=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},The=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:Phe(t),alignItems:Phe(n),flexDirection:e,width:"100%",height:"100%",gap:r}),Ut],Mhe=N(Nx)((({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,u;const{top:c,right:d,bottom:f,left:p}=i||{};return{"& > div":{paddingTop:null!==(a=null!=t?t:c)&&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!==(u=null!=r?r:d)&&void 0!==u?u:24}}})),Ahe=N.div(The,(({showDefault:e})=>e&&{"& > *":{opacity:.3}})),_he=N(Rx)((({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}}))),Rhe=({sortDirection:t})=>{const{color:r,scale4:o}=n.useTheme(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("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.jsx("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})]})},Lhe=N(Mx)((({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,u,c;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!==(u=null!=i?i:null==a?void 0:a.left)&&void 0!==u?u:24},"&:last-of-type > div":{paddingRight:null!==(c=null!=o?o:null==a?void 0:a.right)&&void 0!==c?c:24}}})),Ihe=N.div(The,(({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}}}))),Nhe=N(Px)((({theme:e,backgroundColor:t})=>({position:"sticky",top:0,zIndex:1,"& > tr > th":{backgroundColor:t||e.background0}}))),$he=n=>{var{children:r,data:o,backgroundColor:i,maxHeight:a,resizable:l,onScrollEnd:u}=n,c=s(n,["children","data","backgroundColor","maxHeight","resizable","onScrollEnd"]);const[d,f]=t.useState(o),[p,h]=t.useState(),[g,m]=t.useState(),[v,y]=t.useState(),b=o&&"function"==typeof r?r(d):r;t.useEffect((()=>{if(o){let e=o;if(p){const{key:t,dir:n}=p;e=jde(o,[t],[n])}Lt(e,d)||f(e)}}),[o,p]);const w=t.useMemo((()=>({activeColumn:p,setActiveColumn:h,backgroundColor:i,headerPadding:g,rowPadding:v,setHeaderPadding:m,setRowPadding:y})),[p,h,i,g,v,m,y]);return e.jsx(She.Provider,{value:w,children:e.jsx(zhe,{as:l?wx:void 0,onScroll:u?e=>{const t=e.target,{scrollHeight:n,scrollTop:r,clientHeight:o}=t;n-r===o&&u&&u()}:void 0,backgroundColor:i,maxHeight:a,children:e.jsx(Fhe,Object.assign({},c,{children:b}))})})};$he.Header=({children:n,backgroundColor:r,padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s})=>{const{backgroundColor:u,setHeaderPadding:c}=t.useContext(She);return t.useEffect((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=o?o:i)&&void 0!==e?e:a)&&void 0!==t?t:l)&&void 0!==n?n:s)&&c){const e=Che({padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s});c(e)}}),[o,i,a,l,s,c]),e.jsx(Nhe,{backgroundColor:r||u,children:n})},$he.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:l,direction:u,justify:c,align:d,gap:f}=n,p=s(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=t.useState(i||"inactive"),{activeColumn:m,setActiveColumn:v,headerPadding:y}=t.useContext(She),b=o||i,w="asc"===h||"desc"===h,x={direction:u,justify:c,align:d,gap:f},C=e=>{if(g(e),v&&o){v("inactive"===e?void 0:{key:o,dir:e})}};t.useEffect((()=>{!o||"asc"!==i&&"desc"!==i||C(i)}),[]),t.useEffect((()=>{i&&g(i)}),[i]),t.useEffect((()=>{const e=!m&&i;o&&m&&m.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[m,h]);const S=b||a?e=>{o?C("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0;return e.jsx(Lhe,Object.assign({parentPadding:y},p,{children:e.jsxs(Ihe,Object.assign({sorting:!!b,active:w},x,{children:["string"==typeof r?e.jsx(Rfe,{onClick:S,children:r}):r,b&&e.jsx("span",{"aria-hidden":"true",onClick:S,children:e.jsx(Gt,{svg:e.jsx(Rhe,{sortDirection:h}),marginLeft:-8})}),l&&e.jsx(_he,{})]}))}))},$he.Body=({children:t,emptyFallback:n,fetching:r,loading:o})=>e.jsxs(jhe,{renderEmptyState:({isEmpty:e})=>e&&n?n:null,children:[o&&e.jsx(Ohe,{}),!o&&t,r&&e.jsx(Ohe,{spinnerSize:"small"})]}),$he.Row=khe,$he.Cell=n=>{var{children:r,defaultValue:o,direction:i,justify:a,align:l,gap:u,clampLines:c}=n,d=s(n,["children","defaultValue","direction","justify","align","gap","clampLines"]);const{rowPadding:f}=t.useContext(She),p={direction:i,justify:a,align:l,gap:u},h=r||o;return e.jsx(Mhe,Object.assign({parentPadding:f},d,{children:e.jsx(Ahe,Object.assign({showDefault:!!o&&!r},p,{children:"string"==typeof h?e.jsx(Rfe,{paddingRight:2,clampLines:c,children:h}):h}))}))};const zhe=N.div((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",borderRadius:4,backgroundColor:t||e.background0}))),Fhe=N(Ox)({height:"fit-content",width:"100%"},Wt,Ut),Bhe=N.div((({gap:e=8})=>({display:"flex",gap:e})),Wt),Khe=N.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"}))),Vhe=N.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),Wt),Hhe=N.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),Uhe=N.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),Whe=N.div({display:"flex",flexDirection:"column"}),Zhe=N.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),qhe=N.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Ghe=N.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"}}})),Yhe=N.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Xhe=N.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 Jhe,Qhe={exports:{}};Jhe=Qhe,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(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 n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(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 l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function s(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 c(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 d(e,t,n){function r(){c&&o&&s&&(c(u),c=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,u=null,c=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),l(e,"head",t)}function f(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),l=!1;return i.onload=i.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){l||(l=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,m(e)}}function g(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function v(e){this.a=e||"-"}function y(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 b(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 w(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 C(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 S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new v("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=c(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)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function O(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){l(e.c,"body",e.a)}function P(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:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(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 M(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 D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=P(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=P(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=P(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=P(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}v.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)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},_=null;function R(){if(null===_){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);_=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return _}function L(e,t,n){for(var r in A)if(A.hasOwnProperty(r)&&t===e.f[A[r]]&&n===e.f[A[r]])return!0;return!1}function I(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&L(e,o,i)),t?r()-e.A>=e.w?R()&&L(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){I(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),t(this.a)}),e),0)}function $(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var z=null;function F(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")]),E(e,"active")):k(e.a))}function B(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function K(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===r.length&&a)k(t.a);else{t.f+=r.length,a&&(t.j=a);var s,c=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)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);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new T(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new M(n(t.g,t),n(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 V(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}$.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,F(this)},$.prototype.h=function(e){var t=this.a;if(t.g){var n=c(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),u(t.f,r,o)}E(t,"fontinactive",e),F(this)},B.prototype.load=function(e){this.c=new o(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")]),E(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 $(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.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 y(s,n))):a.push(new y(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;f(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([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],h(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),u=0;u<s.length;u+=1)l.push(new y(r[0],s[u]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={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"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(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 J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(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 Z(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,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=X.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":Y[c],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(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),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(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 y(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.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 y(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},f(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 ne=new B(window);ne.a.c.custom=function(e,t){return new H(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new V(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};Jhe.exports?Jhe.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var ege=_o(Qhe.exports);const tge="#0074F4",nge="#FF6068",rge="#FF9900",oge="#F0BB00",ige="#00C242",age="#001D32",lge="#FFFFFF",sge={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:tge,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Xn(.95,tge),brandTint1:Xn(.9,tge),brandTint2:Xn(.8,tge),brandTint3:Xn(.7,tge),brandTint4:Xn(.6,tge),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:nge,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Xn(.95,nge),errorTint1:Xn(.9,nge),errorTint2:Xn(.8,nge),warning:rge,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Xn(.95,rge),warningTint1:Xn(.9,rge),warningTint2:Xn(.8,rge),alert:oge,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Xn(.95,oge),alertTint1:Xn(.9,oge),alertTint2:Xn(.8,oge),success:ige,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Xn(.95,ige),successTint1:Xn(.9,ige),successTint2:Xn(.8,ige),grayscale0:Xn(.95,age),grayscale1:Xn(.9,age),grayscale2:Xn(.8,age),grayscale3:Xn(.7,age),grayscale4:Xn(.6,age),grayscale5:Xn(.5,age),grayscale6:Xn(.4,age),grayscale7:Xn(.3,age),grayscale8:Xn(.2,age),grayscale9:Xn(.1,age),grayscale10:age,contrast0:Xn(.95,lge),contrast1:Xn(.9,lge),contrast2:Xn(.8,lge),contrast3:Xn(.7,lge),contrast4:Xn(.6,lge),contrast5:Xn(.5,lge),contrast6:Xn(.4,lge),contrast7:Xn(.3,lge),contrast8:Xn(.2,lge),contrast9:Xn(.1,lge),contrast10:lge};var uge={color:sge,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:cge}=uge;var dge={small:{height:28,iconSize:18,font:cge.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:cge.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:cge.size.lg,padding:14,iconOnlyPadding:6}};const fge="#FFFFFF",pge={scale0:sge.grayscale0,scale1:sge.grayscale1,scale2:sge.grayscale2,scale3:sge.grayscale3,scale4:sge.grayscale4,scale5:sge.grayscale5,scale6:sge.grayscale6,scale7:sge.grayscale7,scale8:sge.grayscale8,scale9:sge.grayscale9,scale10:sge.grayscale10,accent:sge.brand,accentShade:sge.brandShade1,background0:fge,background1:fge,background2:fge,background3:fge,background4:fge,background5:fge},hge="#FFFFFF",gge=sge.grayscale0,mge=sge.grayscale1,vge=sge.grayscale2,yge=sge.grayscale3,bge=sge.grayscale4,wge=sge.grayscale6,xge=sge.grayscale8,Cge=sge.grayscale9,Sge=sge.grayscale10,kge=Object.assign(Object.assign(Object.assign({},uge),pge),{name:"light",button:Object.assign(Object.assign({},dge),{primary:{color:{default:hge,hover:hge,active:hge},outlineColor:{default:Sge,hover:Sge,active:Sge},background:{default:sge.brand,hover:sge.brandShade1,active:sge.brandShade2},outlineBackground:{default:sge.brandTint0,hover:sge.brandTint1,active:sge.brandTint2},border:{default:sge.brand,hover:sge.brandShade1,active:sge.brandShade2},divider:vge},secondary:{color:{default:Sge,hover:Sge,active:Sge},outlineColor:{default:Sge,hover:Sge,active:Sge},background:{default:mge,hover:vge,active:yge},outlineBackground:{default:mge,hover:vge,active:yge},border:{default:vge,hover:vge,active:vge},divider:vge},positive:{color:{default:hge,hover:hge,active:hge},outlineColor:{default:Sge,hover:Sge,active:Sge},background:{default:sge.success,hover:sge.successShade1,active:sge.successShade2},outlineBackground:{default:sge.successTint0,hover:sge.successTint1,active:sge.successTint2},border:{default:sge.success,hover:sge.successShade1,active:sge.successShade2},divider:vge},negative:{color:{default:hge,hover:hge,active:hge},outlineColor:{default:Sge,hover:Sge,active:Sge},background:{default:sge.error,hover:sge.errorShade1,active:sge.errorShade2},outlineBackground:{default:sge.errorTint0,hover:sge.errorTint1,active:sge.errorTint2},border:{default:sge.error,hover:sge.errorShade1,active:sge.errorShade2},divider:vge},caution:{color:{default:hge,hover:hge,active:hge},outlineColor:{default:Sge,hover:Sge,active:Sge},background:{default:sge.warning,hover:sge.warningShade1,active:sge.warningShade2},outlineBackground:{default:sge.warningTint0,hover:sge.warningTint1,active:sge.warningTint2},border:{default:sge.warning,hover:sge.warningShade1,active:sge.warningShade2},divider:vge},subtle:{color:{default:sge.brand,hover:sge.brand,active:sge.brand},outlineColor:{default:sge.brand,hover:sge.brand,active:sge.brand},secondaryColor:{default:Sge,hover:Sge,active:Sge},positiveColor:{default:sge.success,hover:sge.success,active:sge.success},negativeColor:{default:sge.error,hover:sge.error,active:sge.error},cautionColor:{default:sge.warning,hover:sge.warning,active:sge.warning},background:{default:"transparent",hover:mge,active:vge},outlineBackground:{default:"transparent",hover:mge,active:vge},border:{default:"transparent",hover:vge,active:vge},divider:vge},link:{color:{default:sge.brand,hover:sge.brandShade1,active:sge.brandShade2},outlineColor:{default:sge.brand,hover:sge.brandShade1,active:sge.brandShade2},secondaryColor:{default:xge,hover:Cge,active:Sge},positiveColor:{default:sge.success,hover:sge.successShade1,active:sge.successShade2},negativeColor:{default:sge.error,hover:sge.errorShade1,active:sge.errorShade2},cautionColor:{default:sge.warning,hover:sge.warningShade1,active:sge.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:bge,hover:bge,active:bge},outlineColor:{default:bge,hover:bge,active:bge},background:{default:mge,hover:mge,active:mge},outlineBackground:{default:gge,hover:gge,active:gge},border:{default:mge,hover:mge,active:mge},divider:mge},color:{default:hge}}),calendar:{background:{container:sge.contrast10,hover:mge,active:sge.brand,activeHover:sge.brandShade1,activeRange:sge.brandTint4},color:{disabled:bge,default:Sge,active:sge.contrast10,current:sge.brand,outside:wge,weekday:xge,monthYear:xge,iconDefault:wge,iconDisabled:vge,iconHover:Sge}},defaultBorder:`1px solid ${mge}`,formControl:{color:{default:xge,hover:Sge,active:sge.brand,activeHover:sge.brandShade1,disabled:bge}},input:{borderRadius:4,background:{default:gge,hover:mge,focused:mge,disabled:gge},color:{default:Sge,disabled:bge,placeholder:wge,description:wge,descriptionError:sge.error},borderColor:{default:wge,hover:xge,focused:sge.brand,disabled:bge,error:sge.error},labelColor:{default:xge,hover:xge,filled:wge,focused:sge.brand,disabled:bge}},menu:{background:hge},menuItem:{borderColor:sge.brand,background:{active:gge,hover:mge,inactive:"transparent"},color:{active:Sge,hover:Sge,inactive:wge}},modal:{background:sge.contrast10,color:{header:Sge,body:wge}},options:{background:sge.contrast10,backdropFilter:void 0},optionItem:{background:{active:mge,inactive:"transparent"},color:{active:Sge,inactive:Sge,accent:sge.brand}},table:{color:{header:wge,body:Sge},borderColor:mge},toast:{color:Sge,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:xge,info:sge.brand,success:sge.success,warning:sge.warning,error:sge.error}},toggle:{slider:sge.contrast10},tooltip:{background:"#FFF",color:{default:Sge,subtext:wge}}}),Ege={scale0:sge.contrast0,scale1:sge.contrast1,scale2:sge.contrast2,scale3:sge.contrast3,scale4:sge.contrast4,scale5:sge.contrast5,scale6:sge.contrast6,scale7:sge.contrast7,scale8:sge.contrast8,scale9:sge.contrast9,scale10:sge.contrast10,accent:sge.brandDark,accentShade:sge.brandDarkShade1,background0:sge.brandBackground0,background1:sge.brandBackground1,background2:sge.brandBackground2,background3:sge.brandBackground3,background4:sge.brandBackground4,background5:sge.brandBackground5},Oge=sge.contrast0,Dge=sge.contrast1,jge=sge.contrast2,Pge=sge.contrast3,Tge=sge.contrast4,Mge=sge.contrast6,Age=sge.contrast8,_ge=sge.contrast9,Rge=sge.contrast10,Lge=sge.brandDark,Ige={light:kge,dark:Object.assign(Object.assign(Object.assign({},uge),Ege),{name:"dark",button:Object.assign(Object.assign({},dge),{primary:{color:{default:Rge,hover:Rge,active:Rge},outlineColor:{default:Rge,hover:Rge,active:Rge},background:{default:sge.brand,hover:sge.brandShade1,active:sge.brandShade2},outlineBackground:{default:sge.brandTint0,hover:sge.brandTint1,active:sge.brandTint2},border:{default:sge.brand,hover:sge.brandShade1,active:sge.brandShade2},divider:jge},secondary:{color:{default:Rge,hover:Rge,active:Rge},outlineColor:{default:Rge,hover:Rge,active:Rge},background:{default:Dge,hover:jge,active:Pge},outlineBackground:{default:Dge,hover:jge,active:Pge},border:{default:jge,hover:jge,active:jge},divider:jge},positive:{color:{default:Rge,hover:Rge,active:Rge},outlineColor:{default:Rge,hover:Rge,active:Rge},background:{default:sge.success,hover:sge.successShade1,active:sge.successShade2},outlineBackground:{default:sge.successTint0,hover:sge.successTint1,active:sge.successTint2},border:{default:sge.success,hover:sge.successShade1,active:sge.successShade2},divider:jge},negative:{color:{default:Rge,hover:Rge,active:Rge},outlineColor:{default:Rge,hover:Rge,active:Rge},background:{default:sge.error,hover:sge.errorShade1,active:sge.errorShade2},outlineBackground:{default:sge.errorTint0,hover:sge.errorTint1,active:sge.errorTint2},border:{default:sge.error,hover:sge.errorShade1,active:sge.errorShade2},divider:jge},caution:{color:{default:Rge,hover:Rge,active:Rge},outlineColor:{default:Rge,hover:Rge,active:Rge},background:{default:sge.warning,hover:sge.warningShade1,active:sge.warningShade2},outlineBackground:{default:sge.warningTint0,hover:sge.warningTint1,active:sge.warningTint2},border:{default:sge.warning,hover:sge.warningShade1,active:sge.warningShade2},divider:jge},subtle:{color:{default:sge.brand,hover:sge.brand,active:sge.brand},outlineColor:{default:sge.brand,hover:sge.brand,active:sge.brand},secondaryColor:{default:Rge,hover:Rge,active:Rge},positiveColor:{default:sge.success,hover:sge.success,active:sge.success},negativeColor:{default:sge.error,hover:sge.error,active:sge.error},cautionColor:{default:sge.warning,hover:sge.warning,active:sge.warning},background:{default:"transparent",hover:Dge,active:jge},outlineBackground:{default:"transparent",hover:Dge,active:jge},border:{default:"transparent",hover:jge,active:jge},divider:jge},link:{color:{default:sge.brandShade2,hover:sge.brandShade1,active:sge.brand},outlineColor:{default:sge.brandShade2,hover:sge.brandShade1,active:sge.brand},secondaryColor:{default:Age,hover:_ge,active:Rge},positiveColor:{default:sge.successShade2,hover:sge.successShade1,active:sge.success},negativeColor:{default:sge.errorShade2,hover:sge.errorShade1,active:sge.error},cautionColor:{default:sge.warningShade2,hover:sge.warningShade1,active:sge.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:Tge,hover:Tge,active:Tge},outlineColor:{default:Tge,hover:Tge,active:Tge},background:{default:Dge,hover:Dge,active:Dge},outlineBackground:{default:Oge,hover:Oge,active:Oge},border:{default:Dge,hover:Dge,active:Dge},divider:Dge},color:{default:"#FFFFFF"}}),calendar:{background:{container:sge.brandBackground3,hover:Dge,active:sge.brand,activeHover:sge.brandShade1,activeRange:sge.brandTint4},color:{disabled:Tge,default:Rge,active:Rge,current:Lge,outside:Mge,weekday:Age,monthYear:Age,iconDefault:Mge,iconDisabled:jge,iconHover:Rge}},defaultBorder:`1px solid ${Dge}`,formControl:{color:{default:Age,hover:Rge,active:sge.brand,activeHover:sge.brandShade1,disabled:Tge}},input:{borderRadius:4,background:{default:Oge,hover:Dge,focused:Dge,disabled:Oge},color:{default:Rge,disabled:Tge,placeholder:Mge,description:Mge,descriptionError:sge.error},borderColor:{default:Mge,hover:Age,focused:Lge,disabled:Tge,error:sge.error},labelColor:{default:Age,hover:Age,filled:Mge,focused:Lge,disabled:Tge}},menu:{background:sge.brandBackground2},menuItem:{borderColor:sge.brand,background:{active:Oge,hover:Dge,inactive:"transparent"},color:{active:Rge,hover:Rge,inactive:Mge}},modal:{background:sge.brandBackground3,color:{header:Rge,body:Mge}},options:{background:sge.brandBackground2,backdropFilter:void 0},optionItem:{background:{active:Dge,inactive:"transparent"},color:{active:Rge,inactive:Rge,accent:Lge}},table:{color:{header:Mge,body:Rge},borderColor:Dge},toast:{color:Rge,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:Age,info:sge.brand,success:sge.success,warning:sge.warning,error:sge.error}},toggle:{slider:sge.brandBackground0},tooltip:{background:sge.brandBackground4,color:{default:Rge,subtext:Mge}}})};exports.Accordion=Jt,exports.Audio=UC,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:u,barSize:c=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=s(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(l1,Object.assign({},v,{children:[e.jsx(a1,{}),e.jsx(uL,{width:"100%",height:"100%",children:e.jsxs(qJ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:c,maxBarSize:d,barGap:l,barCategoryGap:u,children:[e.jsx(DX,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(WX,{stroke:y,tickMargin:4,tickFormatter:e=>f?oS(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx(qX,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:oS(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),u1(),o&&e.jsx(UA,{content:e.jsx(c1,{})}),i.map((({key:t,color:n},r)=>{let o=f?[0,2,2,0]:[2,2,0,0];return a&&r!==i.length-1&&(o=[0,0,0,0]),e.jsx(NG,{dataKey:t,fill:n,stackId:a?"stack":void 0,radius:o},`bar-${r+1}`)}))]})})]}))},exports.Button=BC,exports.Calendar=G1,exports.Checkbox=iC,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p},m=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,y,b]=m;v=v||a||"",y=y||l||"",b=b||s?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(y){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?rt(r,o+1):rt(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())})(y);return t.some((t=>e===t))}return!1},k=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(Z0,{method:x,url:k}):e.jsx(H0,{code:k,language:w,theme:"dark"===h?v0.oceanicNext:v0.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(X0,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(J0,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(Q0,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(U0,{content:k})]}))})},exports.ComboBox=f2,exports.CommandMenu=r=>{var{options:o,inputProps:i,modalProps:a,triggerRef:l,position:u,offset:c,open:d,onChange:f,setOpen:p}=r,h=s(r,["options","inputProps","modalProps","triggerRef","position","offset","open","onChange","setOpen"]);const[g,m]=t.useState(""),v=t.useRef(null),y=t.useRef(),{color:b}=n.useTheme(),{"aria-label":w}=h,x=s(h,["aria-label"]),C=e=>{p(e),e||m("")},S=e.jsx(uw,{"aria-label":w,children:e.jsxs(c3,Object.assign({},x,{children:[e.jsxs(d3,{margin:8,width:"auto",children:[e.jsx(Gt,{name:"search",inheritColor:!0,marginRight:8}),e.jsx(f3,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)}},i)),g&&e.jsx(Gt,{name:"close-circle-outline",color:b.brand,onClick:()=>m(""),pointer:!0})]}),e.jsxs(p3,{ref:v,children:[e.jsxs(h3,{children:["No results found for ",`"${g}"`,"."]}),o&&e.jsx(u3,{options:o,onItemSelect:e=>{f(e),C(!1)}})]})]}))});return l?e.jsx(ow,{triggerRef:l,isOpen:d,onOpenChange:C,placement:u,offset:c,children:S}):e.jsx(g3,Object.assign({isDismissable:!0,isOpen:d,onOpenChange:C},a,{children:e.jsx(Xw,{children:S})}))},exports.DatePicker=Jfe,exports.DateRangePicker=ipe,exports.DocTable=m3,exports.DraftEditor=Fde,exports.Dropdown=yfe,exports.DropdownMenu=CC,exports.DropdownSelect=n=>{var{label:r,options:o,width:i,search:a,onChange:l}=n,u=s(n,["label","options","width","search","onChange"]);const[c,d]=t.useState(new Set),[f,p]=t.useState(!1),[h,g]=t.useState(""),[m,v]=t.useState(!1),[y,b]=t.useState(!1),[w,x]=t.useState(0),[C,S]=t.useState("menu"),k=t.useRef(null),E=t.useRef(null),O=(e=>e.map((e=>"options"in e?e.options:e)).flat())(o),D=Dfe(o,h),j=e=>{d(e);const t=O.length,n="all"===e||e.size===t,r=!n&&e.size>0;v(n),b(r),x(n?t:e.size);const o=n?O:O.filter((t=>e.has(t.id)));l&&l(o)};return e.jsxs(jfe,Object.assign({width:i,ref:k,tabIndex:-1},u,{children:[e.jsxs(Mfe,{children:[e.jsx(iC,{partial:y,checked:m,onChange:()=>j(m?new Set:"all")}),e.jsx(Tfe,{children:r})]}),e.jsxs(Mfe,{gap:8,children:[(y||m)&&e.jsx(Afe,{children:y?w:"All"}),e.jsxs(zw,{onOpenChange:e=>{p(e),e||(g(""),S("menu"))},children:[e.jsx(yC,{children:e.jsx(Gt,{name:f?"caret-up":"caret-down",inheritColor:!0})}),e.jsx(xC,{triggerRef:k,offset:2,children:({isEntering:t,isExiting:n})=>{var r;return e.jsxs(Pfe,{width:i||(null===(r=null==k?void 0:k.current)||void 0===r?void 0:r.offsetWidth),readOnly:t||n,children:[a&&e.jsx(Efe,{value:h,onChange:g,placeholder:"Search",padding:"2px 4px",margin:8,minHeight:"unset",height:"auto",width:"auto",onFocus:()=>S("input"),onKeyDown:e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||null===(t=E.current)||void 0===t||t.focus()}}),h&&0===D.length&&e.jsx(_fe,{children:"No results found"}),e.jsx(vC,{options:D,selectionMode:"multiple",width:"100%",selectedKeys:c,onSelectionChange:j,autoFocus:"menu"===C,menuRef:E,itemProps:{checkbox:!0},readOnly:t||n})]})}})]})]})]}))},exports.Ellipsis=Rfe,exports.Form=Ffe,exports.Grid=Lfe,exports.Icon=Gt,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=t.useState(i),f=et(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,c]),n?e.jsxs(Hfe,{opacity:u,prevNext:o.length>1,children:[e.jsx(Ufe,{onClick:r,children:e.jsx(Gt,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(Wfe,{id:"prev",onClick:p,children:e.jsx(Gt,{name:"chevron-left",size:35,color:"white"})}),e.jsx(Zfe,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(Wfe,{next:!0,id:"next",onClick:h,children:e.jsx(Gt,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=qfe,exports.InlineInput=upe,exports.Input=ofe,exports.InputUtils=vde,exports.Label=Ife,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,l=s(r,["data","legend","keys"]);const[u,c]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(l1,Object.assign({},l,{children:[e.jsx(a1,{}),e.jsx(uL,{width:"100%",height:"100%",children:e.jsxs(ZJ,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(DX,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(WX,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx(qX,{stroke:d,tickMargin:4,tickFormatter:e=>oS(e)}),u1(),i&&e.jsx(UA,{content:e.jsx(c1,{toggleData:a.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})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(HX,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=Spe,exports.Message=jpe,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(Lpe,{children:[e.jsx(Rpe,{}),e.jsx(_pe,{color:n,style:r,children:t}),e.jsx(Rpe,{})]}),exports.Modal=Ipe,exports.MultiSelect=Qpe,exports.Notification=YJ,exports.NumberInput=dpe,exports.Options=cfe,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:l}=n,u=s(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,d]=t.useState(she(o)||1),[f,p]=t.useState(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,she(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 e.jsxs(uhe,Object.assign({width:l},u,{children:[e.jsx(dhe,{disabled:1===c,onClick:()=>m(1),children:e.jsx(Gt,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(dhe,{disabled:1===c,onClick:()=>m(c-1),children:e.jsx(Gt,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(phe,{children:"... "}):"",e.jsx(fhe,{selected:n===c,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(phe,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(dhe,{disabled:c===i,onClick:()=>m(c+1),children:e.jsx(Gt,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(dhe,{disabled:c===i,onClick:()=>m(i),children:e.jsx(Gt,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PhoneInput=mpe,exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=s(t,["size","data","innerRadius","showWhenEmpty"]);const l=(null==r?void 0:r.length)>0,u=l?r:i?[{name:"1",value:1,color:"#999"}]:void 0,c=n/2-1;return e.jsx(l1,Object.assign({width:n,height:n},a,{children:e.jsxs(GJ,{width:n,height:n,children:[e.jsx(pq,{dataKey:"value",data:u,innerRadius:o,outerRadius:c,children:null==u?void 0:u.map((t=>e.jsx(cL,{fill:t.color||"#999"},t.name)))}),l&&u1()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(hhe,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(yhe,Object.assign({width:o,height:i||l},p,{children:e.jsx(bhe,{color:n,width:h})}))},exports.Radio=$fe,exports.RangeCalendar=npe,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,ege.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{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`}}})},exports.SearchInput=Efe,exports.Select=z1,exports.Slider=KC,exports.Spacer=whe,exports.Spinner=OC,exports.Table=$he,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,l=s(t,["items","activeItem","itemWidth","itemGap","onChange"]);const u=n.filter((e=>!1!==e.visible));return e.jsx(Bhe,Object.assign({gap:i},l,{children:u.map((t=>{const{id:n,label:i,icon:l,iconColor:u,iconPosition:c}=t,d=s(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(Khe,Object.assign({active:n===r,itemWidth:o,reverse:"right"===c,onClick:()=>(e=>{a(e)})(t),gap:l?4:void 0},d,{children:[l&&e.jsx(Gt,{name:l,size:"small",color:u,inheritColor:!u}),i]}),n)}))}))},exports.Tag=Zpe,exports.TextInput=ype,exports.TimeInput=wpe,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=zfe,exports.Tooltip=Fpe,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g})=>{const m=t.useRef(),[v,y]=t.useState([]),[b,w]=t.useState([]),x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!Lt(n,m.current)){m.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),y(t)}}),[n,m]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:y;(n?y:w)((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()},k=e=>{const t="select"===e?y:w,n="select"===e?v:b;("select"===e?w:y)((e=>[...e,...n])),t([])},E=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Yhe,{children:t.header}),e.jsx(Xhe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(Vhe,Object.assign({width:c,readOnly:u},x,{children:[i&&e.jsx(Hhe,{children:i}),e.jsxs(Uhe,{children:[!u&&e.jsxs(Whe,{children:[O&&e.jsx(Zhe,{children:v.length>0&&!l&&e.jsx(BC,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(qhe,{children:v.map((t=>e.jsxs(Ghe,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(Gt,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(Whe,{children:[O&&!u&&e.jsx(Zhe,{children:b.length>0&&!s&&!u&&e.jsx(BC,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(qhe,{children:b.map((t=>e.jsxs(Ghe,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(Gt,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=sge,exports.copyToClipboard=o1,exports.darkScale=Ege,exports.formatDate=(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,u=e1(n,"EEEE"),c=e1(n,"MMM d"),d=e1(n,"MMM d, y"),f=e1(n,"h:mm aaa"),p=n1(n),h=function(e){return+XJ(e)>Date.now()}(n),g=function(e){return dQ(e,cQ(e))}(n),m=r1(n),v=function(e){return dQ(e,QJ(cQ(e),1))}(n),y=gQ(s,n),b=mQ(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${c}${x}`:`${d}${x}`:`${u}${x}`)},exports.lightScale=pge,exports.marginProps=Wt,exports.numberWithCommas=i1,exports.paddingProps=Ut,exports.positionProps=Zt,exports.theme=Ige,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=t.useState(c||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};Qe(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":v()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(Ipe,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(Ipe.Header,{children:n}),r&&e.jsx(Ipe.Text,{children:r}),l&&e.jsx(Ipe.Body,{marginTop:4,marginBottom:8,children:e.jsx(ofe,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(Ipe.Footer,{children:[e.jsx(BC,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx(BC,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=Kt,exports.useEventListener=Qe,exports.useOnClickOutside=et,exports.usePrevious=Vt,exports.useSelect=It,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1),[u,c]=t.useState(0);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(s(!1),a(!0),c(r.length)):t?(s(!0),a(!1),c(r.filter((e=>e.selected)).length)):(s(!1),a(!1),c(0))}),[r]),{list:r,partial:l,allSelected:i,count:u,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=Ht;
4
+ */const ofe=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:l,placeholderColor:u,description:c,isLoading:d,search:f,phone:p,textOnly:h,iconLeft:g,iconRight:m,invalid:v,borderRadius:y,borderColor:b,backgroundColor:w,fontSize:x,width:C,height:S,margin:k,marginLeft:E,marginRight:O,marginTop:D,marginBottom:j,padding:P,paddingLeft:T,paddingRight:M,paddingTop:A,paddingBottom:_,containerRef:R,value:L,disabled:I,readOnly:N,preventFocus:$,pointer:z,hideControls:F,onChange:B,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,W=s(r,["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:Z,handleFocus:q,handleBlur:G}=dde(H,U,!$&&!N),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:D,marginBottom:j,marginRight:O,marginLeft:E},ne={padding:P,paddingTop:A,paddingBottom:_,paddingRight:M,paddingLeft:T};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;L&&(e.innerHTML=L.toString().replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,L,l,ee]);const re=h?L||l:L,oe=(!!L||"number"==typeof L)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof L&&10===L.length&&L===rfe.normalize(L)){const{current:n}=Y;if(n){const r=rfe.format(L),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)}}}),[L]);const ie=()=>{Z||q()},ae=()=>{Z&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:Z,select:le}))),t.useEffect((()=>{var e;Z&&(null===(e=Y.current)||void 0===e||e.focus())}),[Z]);return e.jsxs(pde,Object.assign({ref:R,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:Z,disabled:I,hasLabel:!!a,onClick:e=>{$||N||ie(),K&&K(e)},pointer:z,readOnly:N},te,ne,{children:[f&&e.jsx(Gt,{name:"search",marginRight:8,inheritColor:!0}),g&&i2(g,{marginRight:8}),e.jsxs(hde,{readOnly:N||$,children:[h&&e.jsx(lfe,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(gde,{htmlFor:i||a,filled:fde(L),focused:Z,disabled:I,children:a}),e.jsx(ife,Object.assign({id:i||a,ref:Y,value:L,placeholder:l,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=rfe.normalize(t);if(n.length>10)return;const r=rfe.format(n);B&&B(e,r,n)}else B&&B(e)},onFocus:q,onBlur:G,disabled:I,hide:!(fde(L)||!a||Z||h),width:J,fontSize:x,hideControls:F},W))]}),m&&i2(m),d&&e.jsx(OC,{}),oe&&e.jsx(afe,{onClick:V,children:e.jsx(Gt,{name:"close-circle-outline",color:X.brand})}),c&&e.jsx(mde,{invalid:v,children:c})]}))})),ife=N.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"}})),afe=N.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),lfe=N.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),sfe=N("div",{shouldForwardProp:e=>Jx(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))"}}))),ufe=N("div",{shouldForwardProp:e=>Jx(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}})),cfe=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:u,offsetX:c,centerY:d,centerX:f,direction:p})=>{const[h,g]=t.useState(),m=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?c:u)||4))}}),[i,p]);const v=e.jsx(dfe,{id:n,ref:i||m,offsetX:c,offsetY:u,width:l,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};cfe.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:u,accented:c,section:d}=t,f=s(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(ufe,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:l,color:u,accented:c,tabIndex:a?-1:0},f,{children:n}))};const dfe=N(sfe)((({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}:{}})),ffe=(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},pfe=t=>e.jsxs(e.Fragment,{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(gfe,{children:t.header}),e.jsx(mfe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),hfe=(n,r,o,i,a)=>{const{selected:l}=a,u=((t,n,r,o)=>{if(t&&t.length>0)return ffe(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(cfe.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:pfe(t)},t.id)}));return[]})(n,o,i,s(a,["selected"])),c=((e,n,r)=>e?qde(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return qde([...u,...c]).map(((e,n)=>e?t.cloneElement(e,{selected:l===n}):null))},gfe=N.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),mfe=N.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),vfe=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),yfe=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:l,onFocus:u,onBlur:c,onError:d,placeholder:f,placeholderColor:p,value:h,options:g,children:m,borderColor:v,backgroundColor:y,hideIcon:b,clearOnSelect:w,textOnly:x,width:C,height:S,isLoading:k,margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P,label:T,id:M,name:A,trigger:_,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,fontSize:z,description:F,disabled:B,invalid:K,search:V,filter:H,restrictInput:U,inputRef:W,optionsParent:Z}=r,q=s(r,["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[G,Y]=t.useState(""),[X,J]=t.useState(""),[Q,ee]=t.useState(!1),[te,ne]=t.useState(!1),[re,oe]=t.useState(!1),ie=t.useRef(null),{input:ae}=n.useTheme(),le={margin:E,marginTop:O,marginBottom:D,marginRight:j,marginLeft:P},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&l&&l(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(W||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ue=et(se,Q,Z?[Z,`${Z} *`]:void 0),ce=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ce(t.label,e);return!n&&"id"in t&&(n=ce(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ce(t.value,e)),n}));return t},fe=e=>"function"==typeof U?!U(e):U,pe=e=>he(null,e),he=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(fe(e))return de(e)||null;return{id:tfe(),label:e,value:e}})(e);const t=fe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}Q&&se(t),Y((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?oe(!0):(re&&oe(!1),w&&Y(""),J(""))};t.useEffect((()=>{""!==h&&null!=h||pe()}),[h]);const ge=()=>{const e=qde(m).map((e=>{const t=e;let n=t.props.displayText||"";return!T&&t.props.children&&(n=vfe(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...ffe(g||[],{search:V,filter:H,inputText:X}),...e]},me={options:ge(),select:he,open:se,close:se,searchText:V?X:void 0,isOpen:Q,isFocused:te},[ve,ye]=It(me),be=hfe(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!B?p||ae.color.default:void 0,Ce=s(q,["onClear","phone"]);return e.jsx(bfe,Object.assign({textOnly:x,altTrigger:!!_,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(wfe,{ref:ue,children:[_?e.jsx(xfe,{id:M,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:_}):e.jsx(Sfe,{shake:re,children:e.jsx(ofe,Object.assign({},Ce,{ref:W||ie,id:M,name:A,label:T,fontSize:z,pointer:!0,preventFocus:!V,value:X||h||G,placeholder:f||"Select",placeholderColor:xe,iconRight:b||k?void 0:we,borderColor:v,backgroundColor:y,isLoading:k,textOnly:x,description:F,disabled:B,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(W||ie).current)||void 0===t?void 0:t.hasFocus;V?(J(n),!Q&&r&&ee(!0),re&&oe(!1)):n||pe(e);const o=de(n),i=fe(n),a=""===n||i&&!r;o&&!(V&&(!i||r))?he(o,e):V&&!a||pe(e)},onFocus:e=>{ne(!0),u&&u(e)},onBlur:e=>{var t;if(ne(!1),c&&c(e),V&&X&&e){const{relatedTarget:n}=e;(null===(t=null==ye?void 0:ye.current)||void 0===t?void 0:t.contains(n))||he(X,e)}}}))}),Q&&be.length>0&&e.jsx(cfe,{containerRef:ye,parentSelector:Z,width:!_&&!x||Z?"100%":void 0,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,children:be})]})}))};yfe.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||vfe(i)||"",value:t};r&&r(o,e)};return e.jsx(cfe.Item,{id:c,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const bfe=N.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`})),Ht,Wt),wfe=N.div({position:"relative",width:"100%",height:"inherit"}),xfe=N.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`,outlineOffset:-1}}))),Cfe=n.keyframes({"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)"}}),Sfe=N.div((({shake:e})=>({"& input":{animation:e?`${Cfe} .5s linear`:void 0}}))),kfe=(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)},Efe=(e,t)=>{if(!t||!e)return!0;return new RegExp(t).test(e)},Ofe=t.forwardRef(((r,o)=>{var{value:i,label:a,placeholder:l,iconLeft:u,iconRight:c,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:x,onInput:C}=r,S=s(r,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const{color:k}=n.useTheme(),[E,O]=t.useState("");t.useEffect((()=>{null!=i&&E!==i&&O(i)}),[i]);const D=e=>{Efe(e,w)&&(O(e),x&&x(e))};return e.jsxs(Dfe,Object.assign({value:E,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:D,onInput:C?e=>{const{value:t}=e.target;C&&Efe(t,w)&&C(e)}:void 0,onPaste:e=>kfe(e,D,w)},S,{children:[u&&i2(u,{marginRight:8}),e.jsx(Gt,{name:"search",inheritColor:!0,marginRight:8}),e.jsxs(O1,{filled:!!E,disabled:h,children:[a,e.jsx(n2,{ref:o,placeholder:l,hide:!(E||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),c&&i2(c),d&&e.jsx(OC,{}),!!E&&!d&&e.jsx(yC,{children:e.jsx(Gt,{name:"close-circle-outline",color:k.brand})}),e.jsx(C1,{description:y,errorMessage:b})]}))})),Dfe=N(sx)(x1),jfe=(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=jfe(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}),[])},Pfe=N.div(x1),Tfe=N.div(eC),Mfe=N.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t}))),Afe=N.div((({gap:e})=>({display:"flex",alignItems:"center",gap:e||4}))),_fe=N.div((({theme:e})=>({color:e.scale10}))),Rfe=N.div((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),Lfe=N.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"})),Ut,Wt),Ife=N.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,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:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),Ut,Wt);Ife.Item=N.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),Ut,Wt);const Nfe=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,l=s(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs($fe,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&i2(r,{marginRight:4,size:"small"}),n,o&&i2(o,{marginLeft:4,size:"small"})]}))},$fe=N.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}}),Wt),zfe=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:l,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=t,p=s(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:l,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return e.jsxs(nC,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(oC,{children:r}),e.jsx(rC,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(Gt,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},Ffe=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=s(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[m,v]=t.useState("toggle-off"),[y,b]=t.useState(a||!1),w="right"===i,x={margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(y?"toggle-on":"toggle-off")}),[y]),t.useEffect((()=>{b("boolean"==typeof a?a:y)}),[a,y]),e.jsxs(nC,Object.assign({htmlFor:r,labelRight:w,disabled:l},x,{children:[o&&e.jsx(oC,{children:o}),e.jsx(rC,Object.assign({id:r,type:"checkbox",checked:y,disabled:l,onChange:()=>{const e=!y;b(e),u(e)}},g)),e.jsx(Gt,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!l,size:40})]}))},Bfe=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,u=s(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(Kfe,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{e.preventDefault(),l&&l(e)}},u,{children:n}))};Bfe.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,u=s(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(Vfe,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},u,{children:n}))},Bfe.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=s(t,["children","inline","align","disabled"]);return e.jsx(Hfe,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Bfe.Radio=zfe,Bfe.Toggle=Ffe,Bfe.Checkbox=iC,Bfe.Label=Nfe;const Kfe=N(Ife)({boxSizing:"border-box"}),Vfe=N(Ife)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Hfe=N.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"}),Wt),Ufe=N.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}))),Wfe=N.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Zfe=N.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%)`}}))),qfe=N.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Gfe=N.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"}))),Yfe=N(Ow)((({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"}}))),Xfe=N(yC)((({theme:{input:e},isDisabled:t})=>({color:t?e.labelColor.disabled:e.labelColor.default}))),Jfe=H1(),Qfe=t.forwardRef(((n,r)=>{var{value:o,label:i,iconLeft:a,iconRight:l,loading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=s(n,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:x}=t.useRef(o?W1(o):void 0),[C,S]=t.useState(x),k=t.useRef(null),{min:E,max:O}=Z1({past:g,future:m,rel:x||Jfe}),D=e=>{const{year:t,month:n,day:r}=e,o=new Rs(t,n,r);S(o);const i=U1(e);v&&v(i)},j=!(C||!i);return e.jsxs(epe,Object.assign({value:C,hasLabel:!!i,isDisabled:f,minValue:E,maxValue:O,onChange:D,onOpenChange:e=>{y&&e&&y(),b&&!e&&b()},ref:k},w,{children:[a&&i2(a,{marginRight:8}),e.jsxs(O1,{filled:!!C,disabled:f,children:[i,e.jsx(tpe,{ref:r,hide:j,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Yfe,{placeholderColor:d,segment:t})})]}),e.jsx(Xfe,{isDisabled:f,children:e.jsx(Gt,{size:18,name:"calendar",inheritColor:!0})}),l&&i2(l),u&&e.jsx(OC,{}),e.jsx(C1,{description:p,errorMessage:h}),e.jsx(ow,{triggerRef:k,children:e.jsx(uw,{children:e.jsx(G1,{date:C?U1(C):void 0,onChange:e=>{D(W1(e))},preventPast:g,preventFuture:m})})})]}))})),epe=N(Aw)(x1),tpe=N(kw,e2)({display:"flex"},t2),npe=H1(),rpe=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:l,noShadow:u}=n,c=s(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?W1(r):npe),{current:f}=t.useRef(o?W1(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),[v,y]=t.useState(d),{min:b,max:w}=Z1({past:a,future:l,rel:d});return e.jsxs(ope,Object.assign({value:{start:p,end:g},onChange:e=>{if(!e)return;const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:u}=n,c=new Rs(r,o,a);h(c);const d=new Rs(l,s,u);m(d);const f=U1(t),p=U1(n);i&&i(f,p)},minValue:b,maxValue:w,noShadow:u,focusedValue:v,onFocusChange:y},c,{children:[e.jsx(F1,{date:v,setDate:y}),e.jsx(m1,{range:!0})]}))},ope=N(ob)(g1),ipe=H1(),ape=t.forwardRef(((n,r)=>{var{startValue:o,endValue:i,label:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=s(n,["startValue","endValue","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:C}=t.useRef(o?W1(o):void 0),{current:S}=t.useRef(i?W1(i):void 0),[k,E]=t.useState(C),[O,D]=t.useState(S),j=t.useRef(null),{min:P,max:T}=Z1({past:m,future:v,rel:C||ipe}),M=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new Rs(r,o,i);E(u);const c=new Rs(a,l,s);D(c);const d=U1(t),f=U1(n);y&&y(d,f)},A=!(!k&&!O),_=!(A||!a);return e.jsxs(lpe,Object.assign({value:k&&O?{start:k,end:O}:void 0,hasLabel:!!a,isDisabled:p,minValue:P,maxValue:T,onChange:M,onOpenChange:e=>{b&&e&&b(),w&&!e&&w()},ref:j},x,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:A,disabled:p,children:[a,e.jsxs(upe,{fontSize:d,hide:_,isDisabled:p,children:[e.jsx(spe,{slot:"start",ref:r,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Yfe,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(spe,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Yfe,{placeholderColor:f,segment:t})})]})]}),e.jsx(Xfe,{isDisabled:p,children:e.jsx(Gt,{size:18,name:"calendar",inheritColor:!0})}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:h,errorMessage:g}),e.jsx(ow,{triggerRef:j,children:e.jsx(uw,{children:e.jsx(rpe,{startDate:k?U1(k):void 0,endDate:O?U1(O):void 0,onChange:(e,t)=>{const n=W1(e),r=W1(t);M({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))})),lpe=N(Rw)(x1),spe=N(kw,e2)(t2,{display:"flex","&:first-of-type":{marginRight:0}}),upe=N(Jb,e2)((({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}}))),cpe=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,accepts:b,onChange:w,onInput:x}=n,C=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[S,k]=t.useState(""),[E,O]=r2({value:S,placeholder:a,fontSize:d});t.useEffect((()=>{null!=o&&S!==o&&k(o)}),[o]);const D=e=>{Efe(e,b)&&(k(e),w&&w(e))};return e.jsxs(dpe,Object.assign({value:S,hasLabel:!!i,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,onChange:D,onInput:x?e=>{const{value:t}=e.target;x&&Efe(t,b)&&x(e)}:void 0,onPaste:e=>kfe(e,D,b),textOnly:!0},C,{children:[l&&i2(l,{marginRight:8}),e.jsx(n2,{ref:r,placeholder:a,hide:!(S||!i),fontSize:d,placeholderColor:f,isDisabled:p,width:E}),e.jsx(O,{}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:v,errorMessage:y})]}))})),dpe=N(Ux)(x1),fpe=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,hideControls:b,separator:w=!0,onChange:x}=n,C=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","hideControls","separator","onChange"]);const[S,k]=t.useState(NaN);t.useEffect((()=>{null!=o&&S!==o&&k(o)}),[o]);const E=!Number.isNaN(S)&&null!=S;return e.jsxs(ppe,Object.assign({value:S,onChange:e=>{k(e),x&&x(e)},hasLabel:!!i,paddingRight:0,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,formatOptions:{useGrouping:w}},C,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:E,disabled:p,children:[i,e.jsx(n2,{ref:r,placeholder:a,hide:!(E||!i),fontSize:d,placeholderColor:f,isDisabled:p})]}),u&&i2(u),c&&e.jsx(OC,{}),!b&&e.jsxs(hpe,{children:[e.jsx(gpe,{slot:"increment",isDisabled:p||h,children:e.jsx(Gt,{size:i?23.5:19.5,name:"caret-up",inheritColor:!0})}),e.jsx(mpe,{}),e.jsx(gpe,{slot:"decrement",isDisabled:p||h,children:e.jsx(Gt,{size:i?23.5:19.5,name:"caret-down",inheritColor:!0})})]}),e.jsx(C1,{description:v,errorMessage:y})]}))})),ppe=N(ix)(x1),hpe=N.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder,overflow:"hidden",borderTopRightRadius:4,borderBottomRightRadius:4}))),gpe=N(yC)((({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}}))),mpe=N.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),vpe=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,onChange:b}=n,w=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[x,C]=t.useState(""),S=t.useRef(null);t.useImperativeHandle(r,(()=>S.current)),t.useEffect((()=>{var e,t;if(null!=o&&x!==o){const n=rfe.normalize(o),r=rfe.format(n);C(r);const{current:i}=S;if(i&&o===rfe.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 e.jsxs(ype,Object.assign({value:x,hasLabel:!!i,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,onChange:e=>{const t=rfe.normalize(e);if(t.length>10||e&&!t)return;const n=rfe.format(t);x!==n&&(C(n),b&&b(n,t))},type:"tel"},w,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:!!x,disabled:p,children:[i,e.jsx(n2,{ref:S,placeholder:a,hide:!(x||!i),fontSize:d,placeholderColor:f,isDisabled:p})]}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:v,errorMessage:y})]}))})),ype=N(Ux)(x1),bpe=t.forwardRef(((n,r)=>{var{value:o,label:i,placeholder:a,iconLeft:l,iconRight:u,loading:c,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,accepts:b,onChange:w,onInput:x}=n,C=s(n,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[S,k]=t.useState("");t.useEffect((()=>{null!=o&&S!==o&&k(o)}),[o]);const E=e=>{Efe(e,b)&&(k(e),w&&w(e))};return e.jsxs(wpe,Object.assign({value:S,hasLabel:!!i,isDisabled:p,isReadOnly:h||c,isInvalid:g,isRequired:m,onChange:E,onInput:x?e=>{const{value:t}=e.target;x&&Efe(t,b)&&x(e)}:void 0,onPaste:e=>kfe(e,E,b)},C,{children:[l&&i2(l,{marginRight:8}),e.jsxs(O1,{filled:!!S,disabled:p,children:[i,e.jsx(n2,{ref:r,placeholder:a,hide:!(S||!i),fontSize:d,placeholderColor:f,isDisabled:p})]}),u&&i2(u),c&&e.jsx(OC,{}),e.jsx(C1,{description:v,errorMessage:y})]}))})),wpe=N(Ux)(x1),xpe=t.forwardRef(((n,r)=>{var{value:o,label:i,iconLeft:a,iconRight:l,loading:u,fontSize:c,placeholderColor:d,disabled:f,readOnly:p,invalid:h,required:g,description:m,errorMessage:v,onChange:y}=n,b=s(n,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[w,x]=t.useState(o?Os(o):null);t.useEffect((()=>{if(o){`${null==w?void 0:w.hour}:${null==w?void 0:w.minute}`!==o&&x(Os(o))}}),[o]);const C=!(w||!i);return e.jsxs(Cpe,Object.assign({value:w,hasLabel:!!i,isDisabled:f,isReadOnly:p||u,isInvalid:h,isRequired:g,onChange:e=>{const{hour:t,minute:n,second:r}=e,o=new Is(t,n,r);x(o),y&&y(e.toString())}},b,{children:[a&&i2(a,{marginRight:8}),e.jsxs(O1,{filled:!!w,disabled:f,children:[i,e.jsx(Spe,{ref:r,hide:C,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Yfe,{placeholderColor:d,segment:t})})]}),l&&i2(l),u&&e.jsx(OC,{}),e.jsx(C1,{description:m,errorMessage:v})]}))})),Cpe=N(ww)(x1),Spe=N(kw,e2)({display:"flex"},t2),kpe=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(Epe,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?qde(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),Epe=N.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:u})=>({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:u})),Ut),Ope=N.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}))),Dpe=N.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),jpe=N.div({marginLeft:"auto",marginRight:8});kpe.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(Ope,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),kpe.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:u,children:c,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>qde(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:f})}return null})),m=g(c),v=()=>h((e=>!e));return e.jsxs(Dpe,{backgroundColor:f,children:[e.jsxs(Ope,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:u,role:"menuitem",indent:d,children:[n,e.jsx(jpe,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(Gt,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const Ppe=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d,children:f})=>{const p=n.useTheme(),{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:u,marginRight:c,marginLeft:d};return e.jsxs(Ape,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(Gt,{name:h,style:{marginRight:10},color:g}),e.jsx(_pe,{children:r||f}),o&&e.jsx(Gt,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},Tpe=N.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Mpe=N.div((({theme:e})=>({fontWeight:e.font.weight.default})));Ppe.Header=Tpe,Ppe.Body=Mpe;const Ape=N.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})),Wt),_pe=N.div({width:"100%"}),Rpe=N.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),Lpe=N.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Ipe=N.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Npe=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:u,preventOverlayClose:c,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:j})=>{const P=et(c?()=>null:s,i),T={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},M=qde(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),A=e.jsx(Fpe,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:j,blur:d,children:e.jsxs($pe,Object.assign({ref:P,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},T,{children:[M,u&&e.jsx(zpe,{inline:h,children:e.jsx(Gt,{name:"close",onClick:s,pointer:!0})})]}))}),_=document.querySelector(o||"#root");return i&&_?r.createPortal(A,_):null};Npe.Header=N.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Npe.Text=N.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Npe.Body=N.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),Wt),Npe.Footer=N.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})),Wt);const $pe=N.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"})`}),Ut),zpe=N.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),Fpe=N.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),Bpe=t=>{var{trigger:n,children:r,content:o,position:i,offset:a=6,zIndex:l,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,bgColor:h,color:g,isTriggerButton:m,inheritWidth:v,afterShow:y,afterHide:b}=t,w=s(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","bgColor","color","isTriggerButton","inheritWidth","afterShow","afterHide"]);const x=m?n:e.jsx(Upe,{inheritWidth:v,children:n});return e.jsxs(qx,Object.assign({delay:0,onOpenChange:e=>{y&&e&&y(),b&&!e&&b()},isDisabled:p,isOpen:f},w,{children:[x,e.jsxs(Hpe,{placement:i,offset:a,zIndex:l,width:u,maxWidth:c,textAlign:d,bgColor:h,textColor:g,children:[e.jsx(tw,{children:e.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:e.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o||r]})]}))},Kpe=n.keyframes({from:{transform:"var(--origin)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Vpe="300ms cubic-bezier(0.860, 0.000, 0.070, 1.000)",Hpe=N(Yx,{shouldForwardProp:e=>Jx(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,u=l.background,c=o||u;return{backgroundColor:c,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:c,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:`${Kpe} ${Vpe}`},"&[data-exiting]":{animation:`${Kpe} ${Vpe} reverse`}}})),Upe=N(yC)((({inheritWidth:e})=>({width:e?"inherit":void 0,textAlign:e?"left":void 0}))),Wpe=N.div((({theme:e})=>({color:e.tooltip.color.default}))),Zpe=N.div((({theme:e})=>({color:e.tooltip.color.subtext})));Bpe.Header=Wpe,Bpe.Body=Zpe;const qpe=t=>{var{children:r,id:o,value:i,iconLeft:a,iconRight:l,tooltip:u,removable:c,disabled:d,onRemove:f}=t,p=s(t,["children","id","value","iconLeft","iconRight","tooltip","removable","disabled","onRemove"]);const{scale10:h}=n.useTheme(),g=r||i;return e.jsxs(Gpe,Object.assign({id:o,disabled:d,rightIcon:!!(l||c&&!d)},p,{children:[a&&i2(a,{marginRight:4,size:"small"}),u?e.jsx(Bpe,Object.assign({trigger:g,zIndex:100},u)):g,c&&!d&&e.jsx(Gt,{name:"close-circle",size:"small",marginLeft:4,pointer:!0,onClick:!d&&o?()=>{return e=o,void(f&&f(e));var e}:void 0,color:d?void 0:h,inheritColor:d}),l&&i2(l,{marginLeft:4,size:"small"})]}))},Gpe=N.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}})),Wt,Ut),Ype=t.forwardRef(((n,r)=>{var{options:o,items:i,triggerRef:a,placeholder:l,placeholderColor:u,fontSize:c,position:d,fixedPosition:f,maxHeight:p,disabled:h,accepts:g,addItem:m,removeItem:v,afterShow:y,afterHide:b,onTextChange:w,onValidChange:x}=n,C=s(n,["options","items","triggerRef","placeholder","placeholderColor","fontSize","position","fixedPosition","maxHeight","disabled","accepts","addItem","removeItem","afterShow","afterHide","onTextChange","onValidChange"]);const[S,k]=t.useState(!1),[E,O]=t.useState([]),[D,j]=t.useState(""),[P,T]=t.useState(!1),[M,A]=r2({value:D,placeholder:l,fontSize:c});t.useEffect((()=>{if(i.length>0){const e=o.filter((e=>!i.some((t=>t.id===e.id))));O(e)}else O(o)}),[i]);const _=e=>{x&&x(e),T(!e)},R=t.useMemo((()=>(e=>e.map((e=>"options"in e?e.options:e)).flat())(o)),[o]),L=()=>{if(S)return;if(!g||!D)return void j("");("function"==typeof g?g(D):Efe(D,g))?(m({id:D,value:D}),j(""),_(!0)):_(!1)};return e.jsxs(Xpe,Object.assign({onOpenChange:e=>{k(e),y&&e&&y(),b&&!e&&b()},menuTrigger:"focus",inputValue:D,onInputChange:e=>{w&&w(e),j(e),_(!0)},onSelectionChange:e=>{if(!e)return;const t=R.find((t=>t.id===e));t&&(m(t),j(""),_(!0))},onBlur:L,isDisabled:h,shouldFocusWrap:!0,selectedKey:"",allowsCustomValue:!!g},C,{children:[e.jsx(Qpe,{shake:P,children:e.jsx(n2,{placeholder:l,placeholderColor:u,fontSize:c,isDisabled:h,onKeyDown:e=>{const{key:t,target:n,altKey:r,ctrlKey:o,metaKey:a}=e,{value:l}=n;if(!(r||o||a)&&t)switch(t){case"Backspace":if(!l&&i.length>0){const e=i[i.length-1];v(e)}break;case"Enter":L()}},ref:r,width:M})}),e.jsx(A,{}),e.jsx(xC,{triggerRef:a,offset:2,placement:d,shouldFlip:!f&&void 0,maxHeight:p,children:({isEntering:t,isExiting:n})=>{var r;return e.jsx(T1,{options:E,width:null===(r=null==a?void 0:a.current)||void 0===r?void 0:r.offsetWidth,readOnly:t||n})}})]}))})),Xpe=N(hw)({width:"auto"}),Jpe=n.keyframes({"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)"}}),Qpe=N.div((({shake:e})=>({"& input":{animation:e?`${Jpe} .5s linear`:void 0}}))),ehe=t.forwardRef(((r,o)=>{var{options:i,items:a,listLabel:l,listText:u,itemsTitle:c,maxItems:d,placeholder:f,width:p,accepts:h,disabled:g,hideItemsInfo:m,compact:v,backgroundColor:y,borderless:b,autoFocus:w,addItem:x,removeItem:C,onTextChange:S}=r,k=s(r,["options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","accepts","disabled","hideItemsInfo","compact","backgroundColor","borderless","autoFocus","addItem","removeItem","onTextChange"]);const[E,O]=t.useState(w||!1),[D,j]=t.useState(!1),{color:P,font:T,input:M}=n.useTheme(),A=et((()=>O(!1)),E),_=t.useRef(null),R=t.useRef(null),L=v&&!!l,I=()=>{const{current:e}=R;E||l||O(!0),null==e||e.focus()},N=()=>{const{current:e}=R;e&&e.blur()};t.useImperativeHandle(o,(()=>({focus:I,blur:N})));t.useEffect((()=>{E||N(),j(!1)}),[E]);const $=d?a.length>=d:void 0,z=g||$,F=()=>e.jsxs(ohe,{expanded:E,labeled:!!l,children:[u&&e.jsx(ihe,{expanded:E,labeled:!!l,children:u}),a.map((t=>e.jsx(qpe,Object.assign({},t,{removable:E,onRemove:()=>C(t),disabled:g}),t.id))),e.jsx(Ype,{"aria-label":"MultiSelect search",options:i,items:a,triggerRef:_,placeholder:g||a.length>0?" ":f||"Search...",placeholderColor:M.color.placeholder,fontSize:T.size.md,addItem:x,removeItem:C,onTextChange:S,disabled:z,autoFocus:w,ref:R,accepts:h,onValidChange:e=>j(!e)})]});return e.jsxs(the,Object.assign({width:p,ref:A,labeled:!!l,disabled:g,collapse:L,onClick:e=>{e.stopPropagation(),I()}},k,{children:[e.jsxs(nhe,{collapse:L,ref:_,expanded:E&&a.length>0,error:D,labeled:!!l,backgroundColor:y,borderless:b,children:[l?e.jsx(rhe,{collapse:L,children:l}):F(),e.jsxs(ahe,{children:[d&&!m&&e.jsx(she,{children:g&&c?e.jsxs(e.Fragment,{children:[a.length," ",c]}):e.jsxs(e.Fragment,{children:[e.jsx(lhe,{error:a.length>=d,children:a.length}),"/",d," ",c]})}),a.length>0&&e.jsx(Gt,{name:E?"chevron-up":"chevron-down",color:P.brand,pointer:!0,onClick:e=>{e.stopPropagation(),O(!E)}})]})]}),l&&E&&F()]}))})),the=N.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"})),Wt),nhe=N.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"}))),rhe=N.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),ohe=N.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}:{})),ihe=N.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}))),ahe=N.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),lhe=N.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),she=N.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),uhe=e=>e?+e:0,che=N.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),Wt),dhe=N.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}}))),fhe=N(dhe)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),phe=N(dhe)((({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}))),hhe=N.span((({theme:e})=>({color:e.scale6}))),ghe=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u})=>{const c={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs(mhe,Object.assign({size:n},c,{children:[e.jsx(vhe,{cx:h,cy:h,r:d,thickness:r}),e.jsx(yhe,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},mhe=N.svg((({size:e})=>({display:"block",width:e,height:e})),Wt),vhe=N.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),yhe=N(vhe)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),bhe=N.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),Wt),whe=N.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),xhe=N.div(Ht),Che=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,She=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(Che);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=Che(r)),void 0!==o&&(t.right=Che(o)),void 0!==i&&(t.bottom=Che(i)),void 0!==a&&(t.left=Che(a)),t},khe=t.createContext({}),Ehe=n=>{var{children:r,onClick:o,disabled:i,padding:a,paddingTop:l,paddingRight:u,paddingBottom:c,paddingLeft:d}=n,f=s(n,["children","onClick","disabled","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);const{setRowPadding:p}=t.useContext(khe);return t.useEffect((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=a?a:l)&&void 0!==e?e:u)&&void 0!==t?t:c)&&void 0!==n?n:d)&&p){const e=She({padding:a,paddingTop:l,paddingRight:u,paddingBottom:c,paddingLeft:d});p(e)}}),[a,l,u,c,d,p]),e.jsx(Ohe,Object.assign({isDisabled:i,onAction:o&&!i?o:void 0,hoverEffect:!!o&&!i},f,{children:r}))},Ohe=N(Ix)((({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}))),Dhe=({spinnerSize:t})=>{const n="small"===t;return e.jsx(Ehe,{height:n?49:57,className:n?"fetching-row":void 0,children:e.jsx(jhe,{children:e.jsx(OC,{size:t,center:!0})})})},jhe=N(Nx)((({theme:e})=>({color:e.scale6}))),Phe=N(Lx)((({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}}}))),The=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Mhe=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:The(t),alignItems:The(n),flexDirection:e,width:"100%",height:"100%",gap:r}),Ut],Ahe=N(Nx)((({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,u;const{top:c,right:d,bottom:f,left:p}=i||{};return{"& > div":{paddingTop:null!==(a=null!=t?t:c)&&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!==(u=null!=r?r:d)&&void 0!==u?u:24}}})),_he=N.div(Mhe,(({showDefault:e})=>e&&{"& > *":{opacity:.3}})),Rhe=N(Rx)((({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}}))),Lhe=({sortDirection:t})=>{const{color:r,scale4:o}=n.useTheme(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("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.jsx("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})]})},Ihe=N(Mx)((({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,u,c;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!==(u=null!=i?i:null==a?void 0:a.left)&&void 0!==u?u:24},"&:last-of-type > div":{paddingRight:null!==(c=null!=o?o:null==a?void 0:a.right)&&void 0!==c?c:24}}})),Nhe=N.div(Mhe,(({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}}}))),$he=N(Px)((({theme:e,backgroundColor:t})=>({position:"sticky",top:0,zIndex:1,"& > tr > th":{backgroundColor:t||e.background0}}))),zhe=n=>{var{children:r,data:o,backgroundColor:i,maxHeight:a,resizable:l,onScrollEnd:u}=n,c=s(n,["children","data","backgroundColor","maxHeight","resizable","onScrollEnd"]);const[d,f]=t.useState(o),[p,h]=t.useState(),[g,m]=t.useState(),[v,y]=t.useState(),b=o&&"function"==typeof r?r(d):r;t.useEffect((()=>{if(o){let e=o;if(p){const{key:t,dir:n}=p;e=jde(o,[t],[n])}Lt(e,d)||f(e)}}),[o,p]);const w=t.useMemo((()=>({activeColumn:p,setActiveColumn:h,backgroundColor:i,headerPadding:g,rowPadding:v,setHeaderPadding:m,setRowPadding:y})),[p,h,i,g,v,m,y]);return e.jsx(khe.Provider,{value:w,children:e.jsx(Fhe,{as:l?wx:void 0,onScroll:u?e=>{const t=e.target,{scrollHeight:n,scrollTop:r,clientHeight:o}=t;n-r===o&&u&&u()}:void 0,backgroundColor:i,maxHeight:a,children:e.jsx(Bhe,Object.assign({},c,{children:b}))})})};zhe.Header=({children:n,backgroundColor:r,padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s})=>{const{backgroundColor:u,setHeaderPadding:c}=t.useContext(khe);return t.useEffect((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=o?o:i)&&void 0!==e?e:a)&&void 0!==t?t:l)&&void 0!==n?n:s)&&c){const e=She({padding:o,paddingTop:i,paddingRight:a,paddingBottom:l,paddingLeft:s});c(e)}}),[o,i,a,l,s,c]),e.jsx($he,{backgroundColor:r||u,children:n})},zhe.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:l,direction:u,justify:c,align:d,gap:f}=n,p=s(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=t.useState(i||"inactive"),{activeColumn:m,setActiveColumn:v,headerPadding:y}=t.useContext(khe),b=o||i,w="asc"===h||"desc"===h,x={direction:u,justify:c,align:d,gap:f},C=e=>{if(g(e),v&&o){v("inactive"===e?void 0:{key:o,dir:e})}};t.useEffect((()=>{!o||"asc"!==i&&"desc"!==i||C(i)}),[]),t.useEffect((()=>{i&&g(i)}),[i]),t.useEffect((()=>{const e=!m&&i;o&&m&&m.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[m,h]);const S=b||a?e=>{o?C("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0;return e.jsx(Ihe,Object.assign({parentPadding:y},p,{children:e.jsxs(Nhe,Object.assign({sorting:!!b,active:w},x,{children:["string"==typeof r?e.jsx(Lfe,{onClick:S,children:r}):r,b&&e.jsx("span",{"aria-hidden":"true",onClick:S,children:e.jsx(Gt,{svg:e.jsx(Lhe,{sortDirection:h}),marginLeft:-8})}),l&&e.jsx(Rhe,{})]}))}))},zhe.Body=({children:t,emptyFallback:n,fetching:r,loading:o})=>e.jsxs(Phe,{renderEmptyState:({isEmpty:e})=>e&&n?n:null,children:[o&&e.jsx(Dhe,{}),!o&&t,r&&e.jsx(Dhe,{spinnerSize:"small"})]}),zhe.Row=Ehe,zhe.Cell=n=>{var{children:r,defaultValue:o,direction:i,justify:a,align:l,gap:u,clampLines:c}=n,d=s(n,["children","defaultValue","direction","justify","align","gap","clampLines"]);const{rowPadding:f}=t.useContext(khe),p={direction:i,justify:a,align:l,gap:u},h=r||o;return e.jsx(Ahe,Object.assign({parentPadding:f},d,{children:e.jsx(_he,Object.assign({showDefault:!!o&&!r},p,{children:"string"==typeof h?e.jsx(Lfe,{paddingRight:2,clampLines:c,children:h}):h}))}))};const Fhe=N.div((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",borderRadius:4,backgroundColor:t||e.background0}))),Bhe=N(Ox)({height:"fit-content",width:"100%"},Wt,Ut),Khe=N.div((({gap:e=8})=>({display:"flex",gap:e})),Wt),Vhe=N.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"}))),Hhe=N.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),Wt),Uhe=N.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),Whe=N.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),Zhe=N.div({display:"flex",flexDirection:"column"}),qhe=N.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Ghe=N.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Yhe=N.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"}}})),Xhe=N.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Jhe=N.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 Qhe,ege={exports:{}};Qhe=ege,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(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 n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(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 l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function s(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 c(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 d(e,t,n){function r(){c&&o&&s&&(c(u),c=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,u=null,c=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),l(e,"head",t)}function f(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),l=!1;return i.onload=i.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){l||(l=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,m(e)}}function g(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function v(e){this.a=e||"-"}function y(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 b(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 w(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 C(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 S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new v("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=c(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)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function O(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){l(e.c,"body",e.a)}function P(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:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(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 M(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 D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=P(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=P(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=P(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=P(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}v.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)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},_=null;function R(){if(null===_){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);_=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return _}function L(e,t,n){for(var r in A)if(A.hasOwnProperty(r)&&t===e.f[A[r]]&&n===e.f[A[r]])return!0;return!1}function I(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&L(e,o,i)),t?r()-e.A>=e.w?R()&&L(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){I(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),t(this.a)}),e),0)}function $(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var z=null;function F(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")]),E(e,"active")):k(e.a))}function B(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function K(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===r.length&&a)k(t.a);else{t.f+=r.length,a&&(t.j=a);var s,c=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)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);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new T(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new M(n(t.g,t),n(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 V(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}$.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,F(this)},$.prototype.h=function(e){var t=this.a;if(t.g){var n=c(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),u(t.f,r,o)}E(t,"fontinactive",e),F(this)},B.prototype.load=function(e){this.c=new o(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")]),E(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 $(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.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 y(s,n))):a.push(new y(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;f(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([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],h(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),u=0;u<s.length;u+=1)l.push(new y(r[0],s[u]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={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"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(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 J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(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 Z(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,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=X.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":Y[c],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(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),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(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 y(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.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 y(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},f(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 ne=new B(window);ne.a.c.custom=function(e,t){return new H(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new V(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};Qhe.exports?Qhe.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var tge=_o(ege.exports);const nge="#0074F4",rge="#FF6068",oge="#FF9900",ige="#F0BB00",age="#00C242",lge="#001D32",sge="#FFFFFF",uge={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:nge,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Xn(.95,nge),brandTint1:Xn(.9,nge),brandTint2:Xn(.8,nge),brandTint3:Xn(.7,nge),brandTint4:Xn(.6,nge),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:rge,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Xn(.95,rge),errorTint1:Xn(.9,rge),errorTint2:Xn(.8,rge),warning:oge,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Xn(.95,oge),warningTint1:Xn(.9,oge),warningTint2:Xn(.8,oge),alert:ige,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Xn(.95,ige),alertTint1:Xn(.9,ige),alertTint2:Xn(.8,ige),success:age,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Xn(.95,age),successTint1:Xn(.9,age),successTint2:Xn(.8,age),grayscale0:Xn(.95,lge),grayscale1:Xn(.9,lge),grayscale2:Xn(.8,lge),grayscale3:Xn(.7,lge),grayscale4:Xn(.6,lge),grayscale5:Xn(.5,lge),grayscale6:Xn(.4,lge),grayscale7:Xn(.3,lge),grayscale8:Xn(.2,lge),grayscale9:Xn(.1,lge),grayscale10:lge,contrast0:Xn(.95,sge),contrast1:Xn(.9,sge),contrast2:Xn(.8,sge),contrast3:Xn(.7,sge),contrast4:Xn(.6,sge),contrast5:Xn(.5,sge),contrast6:Xn(.4,sge),contrast7:Xn(.3,sge),contrast8:Xn(.2,sge),contrast9:Xn(.1,sge),contrast10:sge};var cge={color:uge,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:dge}=cge;var fge={small:{height:28,iconSize:18,font:dge.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:dge.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:dge.size.lg,padding:14,iconOnlyPadding:6}};const pge="#FFFFFF",hge={scale0:uge.grayscale0,scale1:uge.grayscale1,scale2:uge.grayscale2,scale3:uge.grayscale3,scale4:uge.grayscale4,scale5:uge.grayscale5,scale6:uge.grayscale6,scale7:uge.grayscale7,scale8:uge.grayscale8,scale9:uge.grayscale9,scale10:uge.grayscale10,accent:uge.brand,accentShade:uge.brandShade1,background0:pge,background1:pge,background2:pge,background3:pge,background4:pge,background5:pge},gge="#FFFFFF",mge=uge.grayscale0,vge=uge.grayscale1,yge=uge.grayscale2,bge=uge.grayscale3,wge=uge.grayscale4,xge=uge.grayscale6,Cge=uge.grayscale8,Sge=uge.grayscale9,kge=uge.grayscale10,Ege=Object.assign(Object.assign(Object.assign({},cge),hge),{name:"light",button:Object.assign(Object.assign({},fge),{primary:{color:{default:gge,hover:gge,active:gge},outlineColor:{default:kge,hover:kge,active:kge},background:{default:uge.brand,hover:uge.brandShade1,active:uge.brandShade2},outlineBackground:{default:uge.brandTint0,hover:uge.brandTint1,active:uge.brandTint2},border:{default:uge.brand,hover:uge.brandShade1,active:uge.brandShade2},divider:yge},secondary:{color:{default:kge,hover:kge,active:kge},outlineColor:{default:kge,hover:kge,active:kge},background:{default:vge,hover:yge,active:bge},outlineBackground:{default:vge,hover:yge,active:bge},border:{default:yge,hover:yge,active:yge},divider:yge},positive:{color:{default:gge,hover:gge,active:gge},outlineColor:{default:kge,hover:kge,active:kge},background:{default:uge.success,hover:uge.successShade1,active:uge.successShade2},outlineBackground:{default:uge.successTint0,hover:uge.successTint1,active:uge.successTint2},border:{default:uge.success,hover:uge.successShade1,active:uge.successShade2},divider:yge},negative:{color:{default:gge,hover:gge,active:gge},outlineColor:{default:kge,hover:kge,active:kge},background:{default:uge.error,hover:uge.errorShade1,active:uge.errorShade2},outlineBackground:{default:uge.errorTint0,hover:uge.errorTint1,active:uge.errorTint2},border:{default:uge.error,hover:uge.errorShade1,active:uge.errorShade2},divider:yge},caution:{color:{default:gge,hover:gge,active:gge},outlineColor:{default:kge,hover:kge,active:kge},background:{default:uge.warning,hover:uge.warningShade1,active:uge.warningShade2},outlineBackground:{default:uge.warningTint0,hover:uge.warningTint1,active:uge.warningTint2},border:{default:uge.warning,hover:uge.warningShade1,active:uge.warningShade2},divider:yge},subtle:{color:{default:uge.brand,hover:uge.brand,active:uge.brand},outlineColor:{default:uge.brand,hover:uge.brand,active:uge.brand},secondaryColor:{default:kge,hover:kge,active:kge},positiveColor:{default:uge.success,hover:uge.success,active:uge.success},negativeColor:{default:uge.error,hover:uge.error,active:uge.error},cautionColor:{default:uge.warning,hover:uge.warning,active:uge.warning},background:{default:"transparent",hover:vge,active:yge},outlineBackground:{default:"transparent",hover:vge,active:yge},border:{default:"transparent",hover:yge,active:yge},divider:yge},link:{color:{default:uge.brand,hover:uge.brandShade1,active:uge.brandShade2},outlineColor:{default:uge.brand,hover:uge.brandShade1,active:uge.brandShade2},secondaryColor:{default:Cge,hover:Sge,active:kge},positiveColor:{default:uge.success,hover:uge.successShade1,active:uge.successShade2},negativeColor:{default:uge.error,hover:uge.errorShade1,active:uge.errorShade2},cautionColor:{default:uge.warning,hover:uge.warningShade1,active:uge.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:wge,hover:wge,active:wge},outlineColor:{default:wge,hover:wge,active:wge},background:{default:vge,hover:vge,active:vge},outlineBackground:{default:mge,hover:mge,active:mge},border:{default:vge,hover:vge,active:vge},divider:vge},color:{default:gge}}),calendar:{background:{container:uge.contrast10,hover:vge,active:uge.brand,activeHover:uge.brandShade1,activeRange:uge.brandTint4},color:{disabled:wge,default:kge,active:uge.contrast10,current:uge.brand,outside:xge,weekday:Cge,monthYear:Cge,iconDefault:xge,iconDisabled:yge,iconHover:kge}},defaultBorder:`1px solid ${vge}`,formControl:{color:{default:Cge,hover:kge,active:uge.brand,activeHover:uge.brandShade1,disabled:wge}},input:{borderRadius:4,background:{default:mge,hover:vge,focused:vge,disabled:mge},color:{default:kge,disabled:wge,placeholder:xge,description:xge,descriptionError:uge.error},borderColor:{default:xge,hover:Cge,focused:uge.brand,disabled:wge,error:uge.error},labelColor:{default:Cge,hover:Cge,filled:xge,focused:uge.brand,disabled:wge}},menu:{background:gge},menuItem:{borderColor:uge.brand,background:{active:mge,hover:vge,inactive:"transparent"},color:{active:kge,hover:kge,inactive:xge}},modal:{background:uge.contrast10,color:{header:kge,body:xge}},options:{background:uge.contrast10,backdropFilter:void 0},optionItem:{background:{active:vge,inactive:"transparent"},color:{active:kge,inactive:kge,accent:uge.brand}},table:{color:{header:xge,body:kge},borderColor:vge},toast:{color:kge,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Cge,info:uge.brand,success:uge.success,warning:uge.warning,error:uge.error}},toggle:{slider:uge.contrast10},tooltip:{background:"#FFF",color:{default:kge,subtext:xge}}}),Oge={scale0:uge.contrast0,scale1:uge.contrast1,scale2:uge.contrast2,scale3:uge.contrast3,scale4:uge.contrast4,scale5:uge.contrast5,scale6:uge.contrast6,scale7:uge.contrast7,scale8:uge.contrast8,scale9:uge.contrast9,scale10:uge.contrast10,accent:uge.brandDark,accentShade:uge.brandDarkShade1,background0:uge.brandBackground0,background1:uge.brandBackground1,background2:uge.brandBackground2,background3:uge.brandBackground3,background4:uge.brandBackground4,background5:uge.brandBackground5},Dge=uge.contrast0,jge=uge.contrast1,Pge=uge.contrast2,Tge=uge.contrast3,Mge=uge.contrast4,Age=uge.contrast6,_ge=uge.contrast8,Rge=uge.contrast9,Lge=uge.contrast10,Ige=uge.brandDark,Nge={light:Ege,dark:Object.assign(Object.assign(Object.assign({},cge),Oge),{name:"dark",button:Object.assign(Object.assign({},fge),{primary:{color:{default:Lge,hover:Lge,active:Lge},outlineColor:{default:Lge,hover:Lge,active:Lge},background:{default:uge.brand,hover:uge.brandShade1,active:uge.brandShade2},outlineBackground:{default:uge.brandTint0,hover:uge.brandTint1,active:uge.brandTint2},border:{default:uge.brand,hover:uge.brandShade1,active:uge.brandShade2},divider:Pge},secondary:{color:{default:Lge,hover:Lge,active:Lge},outlineColor:{default:Lge,hover:Lge,active:Lge},background:{default:jge,hover:Pge,active:Tge},outlineBackground:{default:jge,hover:Pge,active:Tge},border:{default:Pge,hover:Pge,active:Pge},divider:Pge},positive:{color:{default:Lge,hover:Lge,active:Lge},outlineColor:{default:Lge,hover:Lge,active:Lge},background:{default:uge.success,hover:uge.successShade1,active:uge.successShade2},outlineBackground:{default:uge.successTint0,hover:uge.successTint1,active:uge.successTint2},border:{default:uge.success,hover:uge.successShade1,active:uge.successShade2},divider:Pge},negative:{color:{default:Lge,hover:Lge,active:Lge},outlineColor:{default:Lge,hover:Lge,active:Lge},background:{default:uge.error,hover:uge.errorShade1,active:uge.errorShade2},outlineBackground:{default:uge.errorTint0,hover:uge.errorTint1,active:uge.errorTint2},border:{default:uge.error,hover:uge.errorShade1,active:uge.errorShade2},divider:Pge},caution:{color:{default:Lge,hover:Lge,active:Lge},outlineColor:{default:Lge,hover:Lge,active:Lge},background:{default:uge.warning,hover:uge.warningShade1,active:uge.warningShade2},outlineBackground:{default:uge.warningTint0,hover:uge.warningTint1,active:uge.warningTint2},border:{default:uge.warning,hover:uge.warningShade1,active:uge.warningShade2},divider:Pge},subtle:{color:{default:uge.brand,hover:uge.brand,active:uge.brand},outlineColor:{default:uge.brand,hover:uge.brand,active:uge.brand},secondaryColor:{default:Lge,hover:Lge,active:Lge},positiveColor:{default:uge.success,hover:uge.success,active:uge.success},negativeColor:{default:uge.error,hover:uge.error,active:uge.error},cautionColor:{default:uge.warning,hover:uge.warning,active:uge.warning},background:{default:"transparent",hover:jge,active:Pge},outlineBackground:{default:"transparent",hover:jge,active:Pge},border:{default:"transparent",hover:Pge,active:Pge},divider:Pge},link:{color:{default:uge.brandShade2,hover:uge.brandShade1,active:uge.brand},outlineColor:{default:uge.brandShade2,hover:uge.brandShade1,active:uge.brand},secondaryColor:{default:_ge,hover:Rge,active:Lge},positiveColor:{default:uge.successShade2,hover:uge.successShade1,active:uge.success},negativeColor:{default:uge.errorShade2,hover:uge.errorShade1,active:uge.error},cautionColor:{default:uge.warningShade2,hover:uge.warningShade1,active:uge.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:Mge,hover:Mge,active:Mge},outlineColor:{default:Mge,hover:Mge,active:Mge},background:{default:jge,hover:jge,active:jge},outlineBackground:{default:Dge,hover:Dge,active:Dge},border:{default:jge,hover:jge,active:jge},divider:jge},color:{default:"#FFFFFF"}}),calendar:{background:{container:uge.brandBackground3,hover:jge,active:uge.brand,activeHover:uge.brandShade1,activeRange:uge.brandTint4},color:{disabled:Mge,default:Lge,active:Lge,current:Ige,outside:Age,weekday:_ge,monthYear:_ge,iconDefault:Age,iconDisabled:Pge,iconHover:Lge}},defaultBorder:`1px solid ${jge}`,formControl:{color:{default:_ge,hover:Lge,active:uge.brand,activeHover:uge.brandShade1,disabled:Mge}},input:{borderRadius:4,background:{default:Dge,hover:jge,focused:jge,disabled:Dge},color:{default:Lge,disabled:Mge,placeholder:Age,description:Age,descriptionError:uge.error},borderColor:{default:Age,hover:_ge,focused:Ige,disabled:Mge,error:uge.error},labelColor:{default:_ge,hover:_ge,filled:Age,focused:Ige,disabled:Mge}},menu:{background:uge.brandBackground2},menuItem:{borderColor:uge.brand,background:{active:Dge,hover:jge,inactive:"transparent"},color:{active:Lge,hover:Lge,inactive:Age}},modal:{background:uge.brandBackground3,color:{header:Lge,body:Age}},options:{background:uge.brandBackground2,backdropFilter:void 0},optionItem:{background:{active:jge,inactive:"transparent"},color:{active:Lge,inactive:Lge,accent:Ige}},table:{color:{header:Age,body:Lge},borderColor:jge},toast:{color:Lge,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:_ge,info:uge.brand,success:uge.success,warning:uge.warning,error:uge.error}},toggle:{slider:uge.brandBackground0},tooltip:{background:uge.brandBackground4,color:{default:Lge,subtext:Age}}})};exports.Accordion=Jt,exports.Audio=UC,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:u,barSize:c=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=s(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(l1,Object.assign({},v,{children:[e.jsx(a1,{}),e.jsx(uL,{width:"100%",height:"100%",children:e.jsxs(qJ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:c,maxBarSize:d,barGap:l,barCategoryGap:u,children:[e.jsx(DX,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(WX,{stroke:y,tickMargin:4,tickFormatter:e=>f?oS(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx(qX,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:oS(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),u1(),o&&e.jsx(UA,{content:e.jsx(c1,{})}),i.map((({key:t,color:n},r)=>{let o=f?[0,2,2,0]:[2,2,0,0];return a&&r!==i.length-1&&(o=[0,0,0,0]),e.jsx(NG,{dataKey:t,fill:n,stackId:a?"stack":void 0,radius:o},`bar-${r+1}`)}))]})})]}))},exports.Button=BC,exports.Calendar=G1,exports.Checkbox=iC,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p},m=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,y,b]=m;v=v||a||"",y=y||l||"",b=b||s?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(y){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?rt(r,o+1):rt(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())})(y);return t.some((t=>e===t))}return!1},k=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(Z0,{method:x,url:k}):e.jsx(H0,{code:k,language:w,theme:"dark"===h?v0.oceanicNext:v0.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(X0,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(J0,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(Q0,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(U0,{content:k})]}))})},exports.ComboBox=f2,exports.CommandMenu=r=>{var{options:o,inputProps:i,modalProps:a,triggerRef:l,position:u,offset:c,open:d,onChange:f,setOpen:p}=r,h=s(r,["options","inputProps","modalProps","triggerRef","position","offset","open","onChange","setOpen"]);const[g,m]=t.useState(""),v=t.useRef(null),y=t.useRef(),{color:b}=n.useTheme(),{"aria-label":w}=h,x=s(h,["aria-label"]),C=e=>{p(e),e||m("")},S=e.jsx(uw,{"aria-label":w,children:e.jsxs(c3,Object.assign({},x,{children:[e.jsxs(d3,{margin:8,width:"auto",children:[e.jsx(Gt,{name:"search",inheritColor:!0,marginRight:8}),e.jsx(f3,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)}},i)),g&&e.jsx(Gt,{name:"close-circle-outline",color:b.brand,onClick:()=>m(""),pointer:!0})]}),e.jsxs(p3,{ref:v,children:[e.jsxs(h3,{children:["No results found for ",`"${g}"`,"."]}),o&&e.jsx(u3,{options:o,onItemSelect:e=>{f(e),C(!1)}})]})]}))});return l?e.jsx(ow,{triggerRef:l,isOpen:d,onOpenChange:C,placement:u,offset:c,children:S}):e.jsx(g3,Object.assign({isDismissable:!0,isOpen:d,onOpenChange:C},a,{children:e.jsx(Xw,{children:S})}))},exports.DatePicker=Qfe,exports.DateRangePicker=ape,exports.DocTable=m3,exports.DraftEditor=Fde,exports.Dropdown=yfe,exports.DropdownMenu=CC,exports.DropdownSelect=n=>{var{label:r,options:o,width:i,search:a,onChange:l}=n,u=s(n,["label","options","width","search","onChange"]);const[c,d]=t.useState(new Set),[f,p]=t.useState(!1),[h,g]=t.useState(""),[m,v]=t.useState(!1),[y,b]=t.useState(!1),[w,x]=t.useState(0),[C,S]=t.useState("menu"),k=t.useRef(null),E=t.useRef(null),O=(e=>e.map((e=>"options"in e?e.options:e)).flat())(o),D=jfe(o,h),j=e=>{d(e);const t=O.length,n="all"===e||e.size===t,r=!n&&e.size>0;v(n),b(r),x(n?t:e.size);const o=n?O:O.filter((t=>e.has(t.id)));l&&l(o)};return e.jsxs(Pfe,Object.assign({width:i,ref:k,tabIndex:-1},u,{children:[e.jsxs(Afe,{children:[e.jsx(iC,{partial:y,checked:m,onChange:()=>j(m?new Set:"all")}),e.jsx(Mfe,{children:r})]}),e.jsxs(Afe,{gap:8,children:[(y||m)&&e.jsx(_fe,{children:y?w:"All"}),e.jsxs(zw,{onOpenChange:e=>{p(e),e||(g(""),S("menu"))},children:[e.jsx(yC,{children:e.jsx(Gt,{name:f?"caret-up":"caret-down",inheritColor:!0})}),e.jsx(xC,{triggerRef:k,offset:2,children:({isEntering:t,isExiting:n})=>{var r;return e.jsxs(Tfe,{width:i||(null===(r=null==k?void 0:k.current)||void 0===r?void 0:r.offsetWidth),readOnly:t||n,children:[a&&e.jsx(Ofe,{value:h,onChange:g,placeholder:"Search",padding:"2px 4px",margin:8,minHeight:"unset",height:"auto",width:"auto",onFocus:()=>S("input"),onKeyDown:e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||null===(t=E.current)||void 0===t||t.focus()}}),h&&0===D.length&&e.jsx(Rfe,{children:"No results found"}),e.jsx(vC,{options:D,selectionMode:"multiple",width:"100%",selectedKeys:c,onSelectionChange:j,autoFocus:"menu"===C,menuRef:E,itemProps:{checkbox:!0},readOnly:t||n})]})}})]})]})]}))},exports.Ellipsis=Lfe,exports.Form=Bfe,exports.Grid=Ife,exports.Icon=Gt,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=t.useState(i),f=et(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,c]),n?e.jsxs(Ufe,{opacity:u,prevNext:o.length>1,children:[e.jsx(Wfe,{onClick:r,children:e.jsx(Gt,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(Zfe,{id:"prev",onClick:p,children:e.jsx(Gt,{name:"chevron-left",size:35,color:"white"})}),e.jsx(qfe,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(Zfe,{next:!0,id:"next",onClick:h,children:e.jsx(Gt,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Gfe,exports.InlineInput=cpe,exports.Input=ofe,exports.InputUtils=vde,exports.Label=Nfe,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,l=s(r,["data","legend","keys"]);const[u,c]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(l1,Object.assign({},l,{children:[e.jsx(a1,{}),e.jsx(uL,{width:"100%",height:"100%",children:e.jsxs(ZJ,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(DX,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(WX,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx(qX,{stroke:d,tickMargin:4,tickFormatter:e=>oS(e)}),u1(),i&&e.jsx(UA,{content:e.jsx(c1,{toggleData:a.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})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(HX,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=kpe,exports.Message=Ppe,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(Ipe,{children:[e.jsx(Lpe,{}),e.jsx(Rpe,{color:n,style:r,children:t}),e.jsx(Lpe,{})]}),exports.Modal=Npe,exports.MultiSelect=ehe,exports.Notification=YJ,exports.NumberInput=fpe,exports.Options=cfe,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:l}=n,u=s(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,d]=t.useState(uhe(o)||1),[f,p]=t.useState(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 e.jsxs(che,Object.assign({width:l},u,{children:[e.jsx(fhe,{disabled:1===c,onClick:()=>m(1),children:e.jsx(Gt,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(fhe,{disabled:1===c,onClick:()=>m(c-1),children:e.jsx(Gt,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(hhe,{children:"... "}):"",e.jsx(phe,{selected:n===c,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(hhe,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(fhe,{disabled:c===i,onClick:()=>m(c+1),children:e.jsx(Gt,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(fhe,{disabled:c===i,onClick:()=>m(i),children:e.jsx(Gt,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PhoneInput=vpe,exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=s(t,["size","data","innerRadius","showWhenEmpty"]);const l=(null==r?void 0:r.length)>0,u=l?r:i?[{name:"1",value:1,color:"#999"}]:void 0,c=n/2-1;return e.jsx(l1,Object.assign({width:n,height:n},a,{children:e.jsxs(GJ,{width:n,height:n,children:[e.jsx(pq,{dataKey:"value",data:u,innerRadius:o,outerRadius:c,children:null==u?void 0:u.map((t=>e.jsx(cL,{fill:t.color||"#999"},t.name)))}),l&&u1()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(ghe,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(bhe,Object.assign({width:o,height:i||l},p,{children:e.jsx(whe,{color:n,width:h})}))},exports.Radio=zfe,exports.RangeCalendar=rpe,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,tge.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{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`}}})},exports.SearchInput=Ofe,exports.Select=z1,exports.Slider=KC,exports.Spacer=xhe,exports.Spinner=OC,exports.Table=zhe,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,l=s(t,["items","activeItem","itemWidth","itemGap","onChange"]);const u=n.filter((e=>!1!==e.visible));return e.jsx(Khe,Object.assign({gap:i},l,{children:u.map((t=>{const{id:n,label:i,icon:l,iconColor:u,iconPosition:c}=t,d=s(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(Vhe,Object.assign({active:n===r,itemWidth:o,reverse:"right"===c,onClick:()=>(e=>{a(e)})(t),gap:l?4:void 0},d,{children:[l&&e.jsx(Gt,{name:l,size:"small",color:u,inheritColor:!u}),i]}),n)}))}))},exports.Tag=qpe,exports.TextInput=bpe,exports.TimeInput=xpe,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=Ffe,exports.Tooltip=Bpe,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g})=>{const m=t.useRef(),[v,y]=t.useState([]),[b,w]=t.useState([]),x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!Lt(n,m.current)){m.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),y(t)}}),[n,m]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:y;(n?y:w)((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()},k=e=>{const t="select"===e?y:w,n="select"===e?v:b;("select"===e?w:y)((e=>[...e,...n])),t([])},E=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Xhe,{children:t.header}),e.jsx(Jhe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(Hhe,Object.assign({width:c,readOnly:u},x,{children:[i&&e.jsx(Uhe,{children:i}),e.jsxs(Whe,{children:[!u&&e.jsxs(Zhe,{children:[O&&e.jsx(qhe,{children:v.length>0&&!l&&e.jsx(BC,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(Ghe,{children:v.map((t=>e.jsxs(Yhe,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(Gt,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(Zhe,{children:[O&&!u&&e.jsx(qhe,{children:b.length>0&&!s&&!u&&e.jsx(BC,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(Ghe,{children:b.map((t=>e.jsxs(Yhe,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(Gt,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=uge,exports.copyToClipboard=o1,exports.darkScale=Oge,exports.formatDate=(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,u=e1(n,"EEEE"),c=e1(n,"MMM d"),d=e1(n,"MMM d, y"),f=e1(n,"h:mm aaa"),p=n1(n),h=function(e){return+XJ(e)>Date.now()}(n),g=function(e){return dQ(e,cQ(e))}(n),m=r1(n),v=function(e){return dQ(e,QJ(cQ(e),1))}(n),y=gQ(s,n),b=mQ(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${c}${x}`:`${d}${x}`:`${u}${x}`)},exports.lightScale=hge,exports.marginProps=Wt,exports.numberWithCommas=i1,exports.paddingProps=Ut,exports.positionProps=Zt,exports.theme=Nge,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=t.useState(c||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};Qe(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":v()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(Npe,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(Npe.Header,{children:n}),r&&e.jsx(Npe.Text,{children:r}),l&&e.jsx(Npe.Body,{marginTop:4,marginBottom:8,children:e.jsx(ofe,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(Npe.Footer,{children:[e.jsx(BC,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx(BC,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=Kt,exports.useEventListener=Qe,exports.useOnClickOutside=et,exports.usePrevious=Vt,exports.useSelect=It,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1),[u,c]=t.useState(0);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(s(!1),a(!0),c(r.length)):t?(s(!0),a(!1),c(r.filter((e=>e.selected)).length)):(s(!1),a(!1),c(0))}),[r]),{list:r,partial:l,allSelected:i,count:u,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=Ht;
5
5
  //# sourceMappingURL=index.js.map