1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[584],{3717:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4902:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,fX:()=>o,zs:()=>a});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create;function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function o(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},5839:()=>{},8533:()=>{},8618:e=>{"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,r){var n=1,i=e-r,a=r;a<i&&(a=i,i=r);for(var o=a+1;o<=e;o++)n*=o;return n/t.math.fact(i)},changeSign:function(e){return-e},cos:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!=0)return"NaN";for(var t=1,r=2;r<=e;r++)t*=r;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var r=1,n=Math.floor(e)-Math.floor(t)+1;n<=Math.floor(e);n++)r*=n;return r},Pi:function(e,t,r){for(var n=1,i=e;i<=t;i++)n*=Number(r.postfixEval({n:i}));return n},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,r){for(var n=0,i=e;i<=t;i++)n+=Number(r.postfixEval({n:i}));return n},sin:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.tan(e)},tanh:function(e){return t.sinha(e)/t.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},t.Exception=function(e){this.message=e},e.exports=t},14017:e=>{function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var a=n(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,a,o,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],a=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())<a&&(a=i,o=u),u=r.indexOf(t,c+1)),c=l<u&&l>=0?l:u;n.length&&(s=[a,o])}return s}e.exports=t,t.range=n},15039:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}(r)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},15625:(e,t,r)=>{"use strict";r.d(t,{J:()=>
1o});var n=r(33812),i=r(43760),a=r(14232);function o(e={}){let{locale:t}=(0,n.Y)();return(0,a.useMemo)(()=>new i.K(t,e),[t,e])}},22658:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>a});var n=r(14232),i=0;function a(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},23948:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ex,bL:()=>ew,l9:()=>eb});var n=r(14232),i=r(33716),a=r(10714),o=r(91844),s=r(73520),l=r(22658),u=r(90870),c=r(70294),d=r(72262),h=r(98477),f="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function m(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!m(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!m(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function p(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function g(e,t){let r=p(e);return Math.round(t*r)/r}function y(e){let t=n.useRef(e);return f(()=>{t.current=e}),t}let v=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,d.UE)({element:r.current,padding:n}).fn(t):{}:r?(0,d.UE)({element:r,padding:n}).fn(t):{}}}),w=(e,t)=>({...(0,d.cY)(e),options:[e,t]}),b=(e,t)=>({...(0,d.BN)(e),options:[e,t]}),x=(e,t)=>({...(0,d.ER)(e),options:[e,t]}),k=(e,t)=>({...(0,d.UU)(e),options:[e,t]}),M=(e,t)=>({...(0,d.Ej)(e),options:[e,t]}),E=(e,t)=>({...(0,d.jD)(e),options:[e,t]}),S=(e,t)=>({...v(e),options:[e,t]});var T=r(66326),N=r(37876),O=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...a}=e;return(0,N.jsx)(T.sG.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,N.jsx)("polygon",{points:"0,0 30,0 15,10"})})});O.displayName="Arrow";var C=r(62146),D=r(81285),A="Popper",[R,I]=(0,o.A)(A),[_,P]=R(A),F=e=>{let{__scopePopper:t,children:r}=e,[i,a]=n.useState(null);return(0,N.jsx)(_,{scope:t,anchor:i,onAnchorChange:a,children:r})};F.displayName=A;var L="PopperAnchor",$=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,s=P(L,r),l=n.useRef(null),u=(0,a.s)(t,l);return n.useEffect(()=>{s.onAnchorChange(i?.current||l.current)}),i?null:(0,N.jsx)(T.sG.div,{...o,ref:u})});$.displayName=L;var j="PopperContent",[V,W]=R(j),z=n.forwardRef((e,t)=>{let{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:v=[],collisionPadding:O=0,sticky:A="partial",hideWhenDetached:R=!1,updatePositionStrategy:I="optimized",onPlaced:_,...F}=e,L=P(j,r),[$,W]=n.useState(null),z=(0,a.s)(t,e=>W(e)),[U,Z]=n.useState(null),q=function(e){let[t,r]=n.useState(void 0);return(0,D.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(U),G=q?.width??0,J=q?.height??0,K="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},X=Array.isArray(v)?v:[v],Q=X.length>0,ee={padding:K,boundary:X.filter(H),altBoundary:Q},{refs:et,floatingStyles:er,placement:en,isPositioned:ei,middlewareData:ea}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[v,w]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=n.useState(i);m(b,i)||x(i);let[k,M]=n.useState(null),[E,S]=n.useState(null),T=n.useCallback(e=>
1{e!==D.current&&(D.current=e,M(e))},[]),N=n.useCallback(e=>{e!==A.current&&(A.current=e,S(e))},[]),O=o||k,C=s||E,D=n.useRef(null),A=n.useRef(null),R=n.useRef(v),I=null!=u,_=y(u),P=y(a),F=y(c),L=n.useCallback(()=>{if(!D.current||!A.current)return;let e={placement:t,strategy:r,middleware:b};P.current&&(e.platform=P.current),(0,d.rD)(D.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};$.current&&!m(R.current,t)&&(R.current=t,h.flushSync(()=>{w(t)}))})},[b,t,r,P,F]);f(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[c]);let $=n.useRef(!1);f(()=>($.current=!0,()=>{$.current=!1}),[]),f(()=>{if(O&&(D.current=O),C&&(A.current=C),O&&C){if(_.current)return _.current(O,C,L);L()}},[O,C,L,_,I]);let j=n.useMemo(()=>({reference:D,floating:A,setReference:T,setFloating:N}),[T,N]),V=n.useMemo(()=>({reference:O,floating:C}),[O,C]),W=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!V.floating)return e;let t=g(V.floating,v.x),n=g(V.floating,v.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...p(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,V.floating,v.x,v.y]);return n.useMemo(()=>({...v,update:L,refs:j,elements:V,floatingStyles:W}),[v,L,j,V,W])}({strategy:"fixed",placement:i+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(0,d.ll)(...e,{animationFrame:"always"===I}),elements:{reference:L.anchor},middleware:[w({mainAxis:o+J,alignmentAxis:l}),c&&b({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?x():void 0,...ee}),c&&k({...ee}),M({...ee,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${n}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}}),U&&S({element:U,padding:u}),Y({arrowWidth:G,arrowHeight:J}),R&&E({strategy:"referenceHidden",...ee})]}),[eo,es]=B(en),el=(0,C.c)(_);(0,D.N)(()=>{ei&&el?.()},[ei,el]);let eu=ea.arrow?.x,ec=ea.arrow?.y,ed=ea.arrow?.centerOffset!==0,[eh,ef]=n.useState();return(0,D.N)(()=>{$&&ef(window.getComputedStyle($).zIndex)},[$]),(0,N.jsx)("div",{ref:et.setFloating,"data-radix-popper-content-wrapper":"",style:{...er,transform:ei?er.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eh,"--radix-popper-transform-origin":[ea.transformOrigin?.x,ea.transformOrigin?.y].join(" "),...ea.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,N.jsx)(V,{scope:r,placedSide:eo,onArrowChange:Z,arrowX:eu,arrowY:ec,shouldHideArrow:ed,children:(0,N.jsx)(T.sG.div,{"data-side":eo,"data-align":es,...F,ref:z,style:{...F.style,animation:ei?void 0:"none"}})})})});z.displayName=j;var U="PopperArrow",Z={top:"bottom",right:"left",bottom:"top",left:"right"},q=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=W(U,r),a=Z[i.placedSide];return(0,N.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,N.jsx)(O,{...n,ref:t,style:{...n.style,display:"block"}})})});function H(e){return null!==e}q.displayName=U;var Y=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=B(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+o/2,h=(i.arrow?.y??0)+s/2,f="",m="";return"bottom"===l?(f=a?c:`${d}px`,m=`${-s}px`):"top"===l?(f=a?c:`${d}px`,m=`${n.floating.height+s}px`):"right"===l?(f=`${-s}px`,m=a?c:`${h}px`):"left"===l&&(f=`${n.floating.width+s}px`,m=a?c:`${h}px`),{data:{x:f,y:m}}}});function B(e){let[t,r="center"]=e.split("-");return[t,r]}r(31893);var G=r(96822),J=r(82987),K=r(58162),X=r(94769),Q=r(86324),ee="Popover",[et,er]=(0,o.A)(ee,[I]),en=I(),[ei,ea]=et(ee),eo=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,l=en(t),u=n.useRef(null),[d,h]=n.useState(!1),[f=!1,m]=(0,K.i)({prop:i,defaultProp:a,onChange:o});return(0,N.jsx)(F,{...l,children:(0,N.jsx)(ei,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:f,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:n.useCallback(()=>h(!0),[]),onCustomAnchorRemove:n.useCallback(()=>h(!1),[]),modal:s,children:r})})};eo.displayName=ee;var es="PopoverAnchor";n.forwardRef((e,t)=>
1{let{__scopePopover:r,...i}=e,a=ea(es,r),o=en(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=a;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,N.jsx)($,{...o,...i,ref:t})}).displayName=es;var el="PopoverTrigger",eu=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=ea(el,r),s=en(r),l=(0,a.s)(t,o.triggerRef),u=(0,N.jsx)(T.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ev(o.open),...n,ref:l,onClick:(0,i.m)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,N.jsx)($,{asChild:!0,...s,children:u})});eu.displayName=el;var[ec,ed]=et("PopoverPortal",{forceMount:void 0}),eh="PopoverContent",ef=n.forwardRef((e,t)=>{let r=ed(eh,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,a=ea(eh,e.__scopePopover);return(0,N.jsx)(G.C,{present:n||a.open,children:a.modal?(0,N.jsx)(em,{...i,ref:t}):(0,N.jsx)(ep,{...i,ref:t})})});ef.displayName=eh;var em=n.forwardRef((e,t)=>{let r=ea(eh,e.__scopePopover),o=n.useRef(null),s=(0,a.s)(t,o),l=n.useRef(!1);return n.useEffect(()=>{let e=o.current;if(e)return(0,X.Eq)(e)},[]),(0,N.jsx)(Q.A,{as:J.DX,allowPinchZoom:!0,children:(0,N.jsx)(eg,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ep=n.forwardRef((e,t)=>{let r=ea(eh,e.__scopePopover),i=n.useRef(!1),a=n.useRef(!1);return(0,N.jsx)(eg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),eg=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,...m}=e,p=ea(eh,r),g=en(r);return(0,l.Oh)(),(0,N.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,N.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>p.onOpenChange(!1),children:(0,N.jsx)(z,{"data-state":ev(p.open),role:"dialog",id:p.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ey="PopoverClose";function ev(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=ea(ey,r);return(0,N.jsx)(T.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ey,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=en(r);return(0,N.jsx)(q,{...i,...n,ref:t})}).displayName="PopoverArrow";var ew=eo,eb=eu,ex=ef},24873:()=>{},31893:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(14232),i=r(98477),a=r(66326),o=r(81285),s=r(37876),l=n.forwardRef((e,t)=>{let{container:r,...l}=e,[u,c]=n.useState(!1);(0,o.N)(()=>c(!0),[]);let d=r||u&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(a.sG.div,{...l,ref:t}),d):null});l.displayName="Portal"},35094:(e,t,r)=>{var n=r(51420);n.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,r,i,a=[],o=this.value,s=void 0!==e.n,l=0;l<o.length;l++)if(1===o[l].type)a.push({value:o[l].value,type:1});else if(3===o[l].type)a.push({value:e[o[l].value],type:1});else if(0===o[l].type)void 0===a[a.length-1].type?a[a.length-1].value.push(o[l]):a[a.length-1].value=o[l].value(a[a.length-1].value);else if(7===o[l].type)void 0===a[a.length-1].type?a[a.length-1].value.push(o[l]):a[a.length-1].value=o[l].value(a[a.length-1].value);else if(8===o[l].type){for(var u=[],c=0;c<o[l].numberOfArguments;c++)u.push(a.pop().value);a.push({type:1,value:o[l].value.apply(o[l],u.reverse())})}else 10===o[l].type?(t=a.pop(),void 0===(r=a.pop()).type?(r.value=r.concat(t),r.value.push(o[l]),a.push(r)):void 0===t.type?(t.unshift(r),t.push(o[l]),a.push(t)):a.push({type:1,value:o[l].value(r.value,t.value)})):2===o[l].type||9===o[l].type?(t=a.pop(),void 0===(r=a.pop()).type?((r=r.concat(t)).push(o[l]),a.push(r)):void 0===t.type?(t.unshift(r),t.push(o[l]),a.push(t)):a.push({type:1,value:o[l].value(r.value,t.value)})):12===o[l].type?(void 0!==(t=a.pop()).type&&(t=[t]),r=a.pop(),i=a.pop(),a.push({type:1,value:o[l].value(i.value,r.value,new n(t))})):13===o[l].type&&(s?a.push({value:e[o[l].value],type:3}):a.push([o[l]]));if(a.length>1)throw new n.Exception("Uncaught Syntax error");return a[0].value>1e15?"Infinity":parseFloat(a[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},36060:()=>{},37540:(e,t,r)=>{"use strict";r.d(t,{O:()=>c});var n=r(14232),i=r(71929);let a={},o=0,s=!1,l=null,u=null;function c(e={}){let{delay:t=1500,closeDelay:r=500}=e,{isOpen:d,open:h,close:f}=(0,i.T)(e),m=(0,n.useMemo)(()=>`${++o}`,[]),p=(0,n.useRef)(null),g=(0,n.useRef)(f),y=()=>{a[m]=b},v=()=>{for(let e in a)e!==m&&(a[e](!0),delete a[e])},w=()=>{p.current&&clearTimeout(p.current),p.current=null,v(),y(),s=!0,h(),l&&(clearTimeout(l),l=null),u&&(clearTimeout(u),u=null)},b=e=>{e||r<=0?(p.current&&clearTimeout(p.current),p.current=null,g.current()):p.current||(p.current=setTimeout(()=>{p.current=null,g.current()},r)),l&&(clearTimeout(l),l=null),s&&(u&&clearTimeout(u),u=setTimeout(()=>{delete a[m],u=null,s=!1},Math.max(500,r)))},x=()=>{v(),y(),d||l||s?d||w():l=setTimeout(()=>{l=null,s=!0,w()},t)};return(0,n.useEffect)(()=>{g.current=f},[f]),(0,n.useEffect)(()=>()=>{p.current&&clearTimeout(p.current),a[m]&&delete a[m]},[m]),{isOpen:d,open:e=>{e||!(t>0)||p.current?w():x()},close:b}}},37801:()=>{},43248:(e,t,r)=>{"use strict";r.d(t,{A:()=>P});var n=r(14232),i=r(15039),a=r.n(i),o=r(63882),s=Math.PI,l=2*s,u=l-1e-6;function c(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function d(){return new c}function h(e){return function(){return e}}c.prototype=d.prototype={constructor:c,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,a){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,r,n,i){e*=1,t*=1,r*=1,n*=1,i*=1;var a=this._x1,o=this._y1,l=r-e,u=n-t,c=a-e,d=o-t,h=c*c+d*d;if(i<0)throw Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(d*l-u*c)>1e-6&&i){var f=r-a,m=n-o,p=l*l+u*u,g=Math.sqrt(p),y=Math.sqrt(h),v=i*Math.tan((s-Math.acos((p+h-(f*f+m*m))/(2*g*y)))/2),w=v/y,b=v/g;Math.abs(w-1)>1e-6&&(this._+="L"+(e+w*c)+","+(t+w*d)),this._+="A"+i+","+i+",0,0,"+ +(d*f>c*m)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,r,n,i,a){e*=1,t*=1,r*=1,a=!!a;var o=r*Math.cos(n),c=r*Math.sin(n),d=e+o,h=t+c,f=1^a,m=a?n-i:i-n;if(r<0)throw Error("negative radius: "+r);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+d+","+h),r&&(m<0&&(m=m%l+l),m>u?this._+="A"+r+","+r+",0,1,"+f+","+(e-o)+","+(t-c)+"A"+r+","+r+",0,1,"+f+","+(this._x1=d)+","+(this._y1=h):m>1e-6&&(this._+="A"+r+","+r+",0,"+ +(m>=s)+","+f+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};var f=Math.abs,m=Math.atan2,p=Math.cos,g=Math.max,y=Math.min,v=Math.sin,w=Math.sqrt,b=Math.PI,x=b/2,k=2*b;function M(e){return e>=1?x:e<=-1?-x:Math.asin(e)}function E(e){return e.innerRadius}function S(e){return e.outerRadius}function T(e){return e.startAngle}function N(e){return e.endAngle}function O(e){return e&&e.padAngle}function C(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/w(s*s+l*l),c=u*l,d=-u*s,h=e+c,f=t+d,m=r+c,p=n+d,y=(h+m)/2,v=(f+p)/2,b=m-h,x=p-f,k=b*b+x*x,M=i-a,E=h*p-m*f,S=(x<0?-1:1)*w(g(0,M*M*k-E*E)),T=(E*x-b*S)/k,N=(-E*b-x*S)/k,O=(E*x+b*S)/k,C=(-E*b+x*S)/k,D=T-y,A=N-v,R=O-y,I=C-v;return D*D+A*A>R*R+I*I&&(T=O,N=C),{cx:T,cy:N,x01:-c,y01:-d,x11:T*(i/M-1),y11:N*(i/M-1)}}function D(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function A(e){return e}function R(e,t){e(t)}var I=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function P(e){var t,r,i,s,l,u,c,g,R,P,F,L,$,j,V,W,z,U,Z,q,H,Y,B,G,J,K,X,Q=e.className,ee=e.top,et=e.left,er=e.data,en=e.centroid,ei=e.innerRadius,ea=e.outerRadius,eo=e.cornerRadius,es=e.startAngle,el=e.endAngle,eu=e.padAngle,ec=e.padRadius,ed=e.pieSort,eh=e.pieSortValues,ef=e.pieValue,em=e.children,ep=e.fill,eg=void 0===ep?"":ep,ey=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,I),ev=(L=(F={innerRadius:void 0===ei?0:ei,outerRadius:ea,cornerRadius:eo,padRadius:ec}).innerRadius,$=F.outerRadius,j=F.cornerRadius,V=F.startAngle,W=F.endAngle,z=F.padAngle,U=F.padRadius,Z=function(){var e=E,t=S,r=h(0),n=null,i=T,a=N,o=O,s=null;function l(){var l,u,c=+e.apply(this,arguments),h=+t.apply(this,arguments),g=i.apply(this,arguments)-x,E=a.apply(this,arguments)-x,S=f(E-g),T=E>g;if(s||(s=l=d()),h<c&&(u=h,h=c,c=u),h>1e-12)if(S>k-1e-12)s.moveTo(h*p(g),h*v(g)),s.arc(0,0,h,g,E,!T),c>1e-12&&(s.moveTo(c*p(E),c*v(E)),s.arc(0,0,c,E,g,T));else{var N,O,D=g,A=E,R=g,I=E,_=S,P=S,F=o.apply(this,arguments)/2,L=F>1e-12&&(n?+n.apply(this,arguments):w(c*c+h*h)),$=y(f(h-c)/2,+r.apply(this,arguments)),j=$,V=$;if(L>1e-12){var W=M(L/c*v(F)),z=M(L/h*v(F));(_-=2*W)>1e-12?(W*=T?1:-1,R+=W,I-=W):(_=0,R=I=(g+E)/2),(P-=2*z)>1e-12?(z*=T?1:-1,D+=z,A-=z):(P=0,D=A=(g+E)/2)}var U=h*p(D),Z=h*v(D),q=c*p(I),H=c*v(I);if($>1e-12){var Y,B=h*p(A),G=h*v(A),J=c*p(R),K=c*v(R);if(S<b&&(Y=function(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<1e-12))return h=(c*(t-a)-d*(e-i))/h,[e+h*l,t+h*u]}(U,Z,J,K,B,G,q,H))){var X,Q=U-Y[0],ee=Z-Y[1],et=B-Y[0],er=G-Y[1],en=1/v(((X=(Q*et+ee*er)/(w(Q*Q+ee*ee)*w(et*et+er*er)))>1?0:X<-1?b:Math.acos(X))/2),ei=w(Y[0]*Y[0]+Y[1]*Y[1]);j=y($,(c-ei)/(en-1)),V=y($,(h-ei)/(en+1))}}P>1e-12?V>1e-12?(N=C(J,K,U,Z,h,V,T),O=C(B,G,q,H,h,V,T),s.moveTo(N.cx+N.x01,N.cy+N.y01),V<$?s.arc(N.cx,N.cy,V,m(N.y01,N.x01),m(O.y01,O.x01),!T):(s.arc(N.cx,N.cy,V,m(N.y01,N.x01),m(N.y11,N.x11),!T),s.arc(0,0,h,m(N.cy+N.y11,N.cx+N.x11),m(O.cy+O.y11,O.cx+O.x11),!T),s.arc(O.cx,O.cy,V,m(O.y11,O.x11),m(O.y01,O.x01),!T))):(s.moveTo(U,Z),s.arc(0,0,h,D,A,!T)):s.moveTo(U,Z),c>1e-12&&_>1e-12?j>1e-12?(N=C(q,H,B,G,c,-j,T),O=C(U,Z,J,K,c,-j,T),s.lineTo(N.cx+N.x01,N.cy+N.y01),j<$?s.arc(N.cx,N.cy,j,m(N.y01,N.x01),m(O.y01,O.x01),!T):(s.arc(N.cx,N.cy,j,m(N.y01,N.x01),m(N.y11,N.x11),!T),s.arc(0,0,c,m(N.cy+N.y11,N.cx+N.x11),m(O.cy+O.y11,O.cx+O.x11),T),s.arc(O.cx,O.cy,j,m(O.y11,O.x11),m(O.y01,O.x01),!T))):s.arc(0,0,c,I,R,T):s.lineTo(q,H)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-b/2;return[p(n)*r,v(n)*r]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:h(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:h(+e),l):t},l.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:h(+e),l):r},l.padRadius=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:h(+e),l):n},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:h(+e),l):i},l.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:h(+e),l):a},l.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:h(+e),l):o},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}(),null!=L&&(t=Z.innerRadius,t(L)),null!=$&&(r=Z.outerRadius,r($)),null!=j&&(i=Z.cornerRadius,i(j)),null!=V&&(s=Z.startAngle,s(V)),null!=W&&(l=Z.endAngle,l(W)),null!=z&&(u=Z.padAngle,u(z)),null!=U&&(c=Z.padRadius,c(U)),Z),ew=(H=(q={startAngle:es,endAngle:el,padAngle:eu,value:ef,sort:ed,sortValues:eh}).startAngle,Y=q.endAngle,B=q.padAngle,G=q.value,J=q.sort,K=q.sortValues,X=function(){var e=A,t=D,r=null,n=h(0),i=h(k),a=h(0);function o(o){var s,l,u,c,d,h=o.length,f=0,m=Array(h),p=Array(h),g=+n.apply(this,arguments),y=Math.min(k,Math.max(-k,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/h,a.apply(this,arguments)),w=v*(y<0?-1:1);for(s=0;s<h;++s)(d=p[m[s]=s]=+e(o[s],s,o))>0&&(f+=d);for(null!=t?m.sort(function(e,r){return t(p[e],p[r])}):null!=r&&m.sort(function(e,t){return r(o[e],o[t])}),s=0,u=f?(y-h*w)/f:0;s<h;++s,g=c)c=g+((d=p[l=m[s]])>0?d*u:0)+w,p[l]={data:o[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:v};return p}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:h(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,r=null,o):t},o.sort=function(e){return arguments.length?(r=e,t=null,o):r},o.startAngle=function(e){return arguments.length?(n="function"==typeof e?e:h(+e),o):n},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:h(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:h(+e),o):a},o}(),null===J?X.sort(J):null!=J&&X.sort(J),null===K?X.sortValues(K):null!=K&&X.sortValues(K),null!=G&&X.value(G),null!=B&&(g=X.padAngle,g(B)),null!=H&&(R=X.startAngle,R(H)),null!=Y&&(P=X.endAngle,P(Y)),X
1),eb=ew(void 0===er?[]:er);return em?n.createElement(n.Fragment,null,em({arcs:eb,path:ev,pie:ew})):n.createElement(o.A,{className:"visx-pie-arcs-group",top:ee,left:et},eb.map(function(e,t){return n.createElement("g",{key:"pie-arc-"+t},n.createElement("path",_({className:a()("visx-pie-arc",Q),d:ev(e)||"",fill:null==eg||"string"==typeof eg?eg:eg(e)},ey)),null==en?void 0:en(ev.centroid(e),e))}))}},43760:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});let n=new Map,i=!1;try{i="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let a=!1;try{a="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let o={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class s{format(e){let t="";if(t=i||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);{if("never"===t)return e.format(Math.abs(r));let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),!n)return e.format(r);{let t=e.format(-r),n=e.format(r),i=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(i,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!a){var r;let{unit:e,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!e)return t;let a=null===(r=o[e])||void 0===r?void 0:r[n];t+=a[i]||a.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 RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" â ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return i||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),a||"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:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!a){var i;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null===(i=o[e])||void 0===i?void 0:i[r]))throw Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(n.has(s))return n.get(s);let l=new Intl.NumberFormat(e,t);return n.set(s,l),l}(e,t),this.options=t}}},44824:(e,t,r)=>{"use strict";let n;r.d(t,{c9:()=>rH,dw:()=>rn});class i extends Error{}class a extends i{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class o extends i{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class s extends i{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class l extends i{}class u extends i{constructor(e){super(`Invalid unit ${e}`)}}class c extends i{}class d extends i{constructor(){super("Zone is an abstract class")}}let h="numeric",f="short",m="long",p={year:h,month:h,day:h},g={year:h,month:f,day:h},y={year:h,month:f,day:h,weekday:f},v={year:h,month:m,day:h},w={year:h,month:m,day:h,weekday:m},b={hour:h,minute:h},x={hour:h,minute:h,second:h},k={hour:h,minute:h,second:h,timeZoneName:f},M={hour:h,minute:h,second:h,timeZoneName:m},E={hour:h,minute:h,hourCycle:"h23"},S={hour:h,minute:h,second:h,hourCycle:"h23"},T={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:f},N={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:m}
1,O={year:h,month:h,day:h,hour:h,minute:h},C={year:h,month:h,day:h,hour:h,minute:h,second:h},D={year:h,month:f,day:h,hour:h,minute:h},A={year:h,month:f,day:h,hour:h,minute:h,second:h},R={year:h,month:f,day:h,weekday:f,hour:h,minute:h},I={year:h,month:m,day:h,hour:h,minute:h,timeZoneName:f},_={year:h,month:m,day:h,hour:h,minute:h,second:h,timeZoneName:f},P={year:h,month:m,day:h,weekday:m,hour:h,minute:h,timeZoneName:m},F={year:h,month:m,day:h,weekday:m,hour:h,minute:h,second:h,timeZoneName:m};class L{get type(){throw new d}get name(){throw new d}get ianaName(){return this.name}get isUniversal(){throw new d}offsetName(e,t){throw new d}formatOffset(e,t){throw new d}offset(e){throw new d}equals(e){throw new d}get isValid(){throw new d}}let $=null;class j extends L{static get instance(){return null===$&&($=new j),$}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return e4(e,t,r)}formatOffset(e,t){return e9(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let V=new Map,W={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},z=new Map;class U extends L{static create(e){let t=z.get(e);return void 0===t&&z.set(e,t=new U(e)),t}static resetCache(){z.clear(),V.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=U.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return e4(e,t,r,this.name)}formatOffset(e,t){return e9(this.offset(e),t)}offset(e){var t;let r;if(!this.valid)return NaN;let n=new Date(e);if(isNaN(n))return NaN;let i=(t=this.name,void 0===(r=V.get(t))&&(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),V.set(t,r)),r),[a,o,s,l,u,c,d]=i.formatToParts?function(e,t){let r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){let{type:t,value:i}=r[e],a=W[t];"era"===t?n[a]=i:eL(a)||(n[a]=parseInt(i,10))}return n}(i,n):function(e,t){let r=e.format(t).replace(/\u200E/g,""),[,n,i,a,o,s,l,u]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r);return[a,n,i,o,s,l,u]}(i,n);"BC"===l&&(a=-Math.abs(a)+1);let h=e0({year:a,month:o,day:s,hour:24===u?0:u,minute:c,second:d,millisecond:0}),f=+n,m=f%1e3;return(h-(f-=m>=0?m:1e3+m))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Z={},q=new Map;function H(e,t={}){let r=JSON.stringify([e,t]),n=q.get(r);return void 0===n&&(n=new Intl.DateTimeFormat(e,t),q.set(r,n)),n}let Y=new Map,B=new Map,G=null,J=new Map;function K(e){let t=J.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),J.set(e,t)),t}let X=new Map;function Q(e,t,r,n){let i=e.listingMode();return"error"===i?null:"en"===i?r(t):n(t)}class ee{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:n,floor:i,...a}=r;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){let r=JSON.stringify([e,t]),n=Y.get(r);return void 0===n&&(n=new Intl.NumberFormat(e,t),Y.set(r,n)),n}(e,t)}}format(e){if(!this.inf)return eH(this.floor?Math.floor(e):eJ(e,3),this.padTo);{let t=this.floor?Math.floor(e):e;return this.inf.format(t)}}}class et{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-1*(e.offset/60),r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&U.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=H(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class er{constructor(e,t,r){this.opts={style:"long",...r},!t&&eV()&&(this.rtf=function(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),a=B.get(i);return void 0===a&&(a=new Intl.RelativeTimeFormat(e,t),B.set(i,a)),a}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&a){let r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${i[e][0]}`;case -1:return r?"yesterday":`last ${i[e][0]}`;case 0:return r?"today":`this ${i[e][0]}`}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=i[e],c=n?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}let en={firstDay:1,minimalDays:4,weekend:[6,7]};class ei{static fromOpts(e){return ei.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,i=!1){let a=e||ek.defaultLocale,o=a||(i?"en-US":G||(G=new Intl.DateTimeFormat().resolvedOptions().locale)),s=t||ek.defaultNumberingSystem;return new ei(o,s,r||ek.defaultOutputCalendar,eZ(n)||ek.defaultWeekSettings,a)}static resetCache(){G=null,q.clear(),Y.clear(),B.clear(),J.clear(),X.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return ei.create(e,t,r,n)}constructor(e,t,r,n,i){let[a,o,s]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=H(e).resolvedOptions(),n=e}catch(a){let i=e.substring(0,r);t=H(i).resolvedOptions(),n=i}let{numberingSystem:i,calendar:a}=t;return[n,i,a]}}(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=r||s||null,this.weekSettings=n,this.intl=function(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){if(null==this.fastNumbersCached)this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===K(this.locale).numberingSystem);return this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?ei.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,eZ(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Q(this,e,tn,()=>{let r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){let t=[];for(let r=1;r<=12;r++){let n=rH.utc(2009,r,1);t.push(e(n))}return t}(e=>this.extract(e,r,"month"))),this.monthsCache[n][e]})}weekdays(e,t=!1){return Q(this,e,ts,()=>{let r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){let t=[];for(let r=1;r<=7;r++){let n=rH.utc(2016,11,13+r);t.push(e(n))}return t}(e=>this.extract(e,r,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return Q(this,void 0,()=>tl,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[rH.utc(2016,11,13,9),rH.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Q(this,e,th,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[rH.utc(-40,1,1),rH.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]}
1)}extract(e,t,r){let n=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===r);return n?n.value:null}numberFormatter(e={}){return new ee(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new et(e,this.intl,t)}relFormatter(e={}){return new er(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let r=JSON.stringify([e,t]),n=Z[r];return n||(n=new Intl.ListFormat(e,t),Z[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||K(this.intl).locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings)return this.weekSettings;if(!eW())return en;var e=this.locale;let t=X.get(e);if(!t){let r=new Intl.Locale(e);"minimalDays"in(t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo)||(t={...en,...t}),X.set(e,t)}return t}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ea=null;class eo extends L{static get utcInstance(){return null===ea&&(ea=new eo(0)),ea}static instance(e){return 0===e?eo.utcInstance:new eo(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new eo(e6(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${e9(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${e9(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return e9(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class es extends L{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function el(e,t){if(eL(e)||null===e)return t;if(e instanceof L)return e;if("string"==typeof e){let r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?j.instance:"utc"===r||"gmt"===r?eo.utcInstance:eo.parseSpecifier(r)||U.create(e)}if(e$(e))return eo.instance(e);if("object"==typeof e&&"offset"in e&&"function"==typeof e.offset)return e;else return new es(e)}let eu={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",tibt:"[༠-༩]",latn:"\\d"},ec={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ed=eu.hanidec.replace(/[\[|\]]/g,"").split(""),eh=new Map;function ef({numberingSystem:e},t=""){let r=e||"latn",n=eh.get(r);void 0===n&&(n=new Map,eh.set(r,n));let i=n.get(t);return void 0===i&&(i=RegExp(`${eu[r]}${t}`),n.set(t,i)),i}let em=()=>Date.now(),ep="system",eg=null,ey=null,ev=null,ew=60,eb,ex=null;class ek{static get now(){return em}static set now(e){em=e}static set defaultZone(e){ep=e}static get defaultZone(){return el(ep,j.instance)}static get defaultLocale(){return eg}static set defaultLocale(e){eg=e}static get defaultNumberingSystem(){return ey}static set defaultNumberingSystem(e){ey=e}
1static get defaultOutputCalendar(){return ev}static set defaultOutputCalendar(e){ev=e}static get defaultWeekSettings(){return ex}static set defaultWeekSettings(e){ex=eZ(e)}static get twoDigitCutoffYear(){return ew}static set twoDigitCutoffYear(e){ew=e%100}static get throwOnInvalid(){return eb}static set throwOnInvalid(e){eb=e}static resetCaches(){ei.resetCache(),U.resetCache(),rH.resetCache(),eh.clear()}}class eM{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eE=[0,31,59,90,120,151,181,212,243,273,304,334],eS=[0,31,60,91,121,152,182,213,244,274,305,335];function eT(e,t){return new eM("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function eN(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return 0===i?7:i}function eO(e,t){let r=eK(e)?eS:eE,n=r.findIndex(e=>e<t),i=t-r[n];return{month:n+1,day:i}}function eC(e,t){return(e-t+7)%7+1}function eD(e,t=4,r=1){let{year:n,month:i,day:a}=e,o=a+(eK(n)?eS:eE)[i-1],s=eC(eN(n,i,a),r),l=Math.floor((o-s+14-t)/7),u;return l<1?l=e2(u=n-1,t,r):l>e2(n,t,r)?(u=n+1,l=1):u=n,{weekYear:u,weekNumber:l,weekday:s,...e7(e)}}function eA(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:a}=e,o=eC(eN(n,1,t),r),s=eX(n),l=7*i+a-o-7+t,u;l<1?l+=eX(u=n-1):l>s?(u=n+1,l-=eX(n)):u=n;let{month:c,day:d}=eO(u,l);return{year:u,month:c,day:d,...e7(e)}}function eR(e){let{year:t,month:r,day:n}=e,i=n+(eK(t)?eS:eE)[r-1];return{year:t,ordinal:i,...e7(e)}}function eI(e){let{year:t,ordinal:r}=e,{month:n,day:i}=eO(t,r);return{year:t,month:n,day:i,...e7(e)}}function e_(e,t){if(!(!eL(e.localWeekday)||!eL(e.localWeekNumber)||!eL(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!eL(e.weekday)||!eL(e.weekNumber)||!eL(e.weekYear))throw new l("Cannot mix locale-based week fields with ISO-based week fields");return eL(e.localWeekday)||(e.weekday=e.localWeekday),eL(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),eL(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function eP(e){let t=ej(e.year),r=eq(e.month,1,12),n=eq(e.day,1,eQ(e.year,e.month));return t?r?!n&&eT("day",e.day):eT("month",e.month):eT("year",e.year)}function eF(e){let{hour:t,minute:r,second:n,millisecond:i}=e,a=eq(t,0,23)||24===t&&0===r&&0===n&&0===i,o=eq(r,0,59),s=eq(n,0,59),l=eq(i,0,999);return a?o?s?!l&&eT("millisecond",i):eT("second",n):eT("minute",r):eT("hour",t)}function eL(e){return void 0===e}function e$(e){return"number"==typeof e}function ej(e){return"number"==typeof e&&e%1==0}function eV(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function eW(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ez(e,t,r){if(0!==e.length)return e.reduce((e,n)=>{let i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i},null)[1]}function eU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eZ(e){if(null==e)return null;if("object"!=typeof e)throw new c("Week settings must be an object");if(!eq(e.firstDay,1,7)||!eq(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!eq(e,1,7)))throw new c("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function eq(e,t,r){return ej(e)&&e>=t&&e<=r}function eH(e,t=2){let r;return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function eY(e){if(!eL(e)&&null!==e&&""!==e)return parseInt(e,10)}function eB(e){if(!eL(e)&&null!==e&&""!==e)return parseFloat(e)}function eG(e){if(!eL(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function eJ(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function eK(e){return e%4==0&&(e%100!=0||e%400==0)}function eX(e){return eK(e)?366:365}function eQ(e,t){var r;let n=(r=t-1)-12*Math.floor(r/12)+1;return 2===n?eK(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function e0(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function e1(e,t,r){return-eC(eN(e,1,t),r)+t-1}function e2(e,t=4,r=1){let n=e1(e,t,r),i=e1(e+1,t,r);return(eX(e)-n+i)/7}function e3(e){return e>99?e:e>ek.twoDigitCutoffYear?1900+e:2e3+e}function e4(e,t,r,n=null){let i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(r,o).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function e6(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return 60*r+i}function e5(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new c(`Invalid unit value ${e}`);return t}function e8(e,t){let r={};for(let n in e)if(eU(e,n)){let i=e[n];if(null==i)continue;r[t(n)]=e5(i)}return r}function e9(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${eH(r,2)}:${eH(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${eH(r,2)}${eH(n,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function e7(e){return["hour","minute","second","millisecond"].reduce((t,r)=>(t[r]=e[r],t),{})}let te=["January","February","March","April","May","June","July","August","September","October","November","December"],tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tr=["J","F","M","A","M","J","J","A","S","O","N","D"];function tn(e){switch(e){case"narrow":return[...tr];case"short":return[...tt];case"long":return[...te];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}
1let ti=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ta=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],to=["M","T","W","T","F","S","S"];function ts(e){switch(e){case"narrow":return[...to];case"short":return[...ta];case"long":return[...ti];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let tl=["AM","PM"],tu=["Before Christ","Anno Domini"],tc=["BC","AD"],td=["B","A"];function th(e){switch(e){case"narrow":return[...td];case"short":return[...tc];case"long":return[...tu];default:return null}}function tf(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}let tm={D:p,DD:g,DDD:v,DDDD:w,t:b,tt:x,ttt:k,tttt:M,T:E,TT:S,TTT:T,TTTT:N,f:O,ff:D,fff:I,ffff:P,F:C,FF:A,FFF:_,FFFF:F};class tp{static create(e,t={}){return new tp(e,t)}static parseFormat(e){let t=null,r="",n=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);"'"===o?(r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n?r+=o:o===t?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return tm[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return eH(e,t);let r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){let r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,r)=>this.loc.extract(e,t,r),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>r?tl[e.hour<12?0:1]:i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,n)=>r?tn(t)[e.month-1]:i(n?{month:t}:{month:t,day:"numeric"},"month"),l=(t,n)=>r?ts(t)[e.weekday-1]:i(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{let r=tp.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},c=t=>r?th(t)[e.year<0?0:1]:i({era:t},"era");return tf(tp.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return n?i({day:"numeric"},"day"):this.num(e.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(e.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);
1case"y":return n?i({year:"numeric"},"year"):this.num(e.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}})}formatDurationFromString(e,t){let r,n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=tp.parseFormat(t),a=i.reduce((e,{literal:t,val:r})=>t?e:e.concat(r),[]);return tf(i,(r=e.shiftTo(...a.map(n).filter(e=>e)),e=>{let t=n(e);return t?this.num(r.get(t),e.length):e}))}}let tg=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ty(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function tv(...e){return t=>e.reduce(([e,r,n],i)=>{let[a,o,s]=i(t,n);return[{...e,...a},o||r,s]},[{},null,1]).slice(0,2)}function tw(e,...t){if(null==e)return[null,null];for(let[r,n]of t){let t=r.exec(e);if(t)return n(t)}return[null,null]}function tb(...e){return(t,r)=>{let n,i={};for(n=0;n<e.length;n++)i[e[n]]=eY(t[r+n]);return[i,null,r+n]}}let tx=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,tk=`(?:${tx.source}?(?:\\[(${tg.source})\\])?)?`,tM=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tE=RegExp(`${tM.source}${tk}`),tS=RegExp(`(?:T${tE.source})?`),tT=tb("weekYear","weekNumber","weekDay"),tN=tb("year","ordinal"),tO=RegExp(`${tM.source} ?(?:${tx.source}|(${tg.source}))?`),tC=RegExp(`(?: ${tO.source})?`);function tD(e,t,r){let n=e[t];return eL(n)?r:eY(n)}function tA(e,t){return[{hours:tD(e,t,0),minutes:tD(e,t+1,0),seconds:tD(e,t+2,0),milliseconds:eG(e[t+3])},null,t+4]}function tR(e,t){let r=!e[t]&&!e[t+1],n=e6(e[t+1],e[t+2]);return[{},r?null:eo.instance(n),t+3]}function tI(e,t){return[{},e[t]?U.create(e[t]):null,t+1]}let t_=RegExp(`^T?${tM.source}$`),tP=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function tF(e){let[t,r,n,i,a,o,s,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:h(eB(r)),months:h(eB(n)),weeks:h(eB(i)),days:h(eB(a)),hours:h(eB(o)),minutes:h(eB(s)),seconds:h(eB(l),"-0"===l),milliseconds:h(eG(u),d)}]}let tL={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function t$(e,t,r,n,i,a,o){let s={year:2===t.length?e3(eY(t)):eY(t),month:tt.indexOf(r)+1,day:eY(n),hour:eY(i),minute:eY(a)};return o&&(s.second=eY(o)),e&&(s.weekday=e.length>3?ti.indexOf(e)+1:ta.indexOf(e)+1),s}let tj=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tV(e){let t,[,r,n,i,a,o,s,l,u,c,d,h]=e;return[t$(r,a,i,n,o,s,l),new eo(u?tL[u]:c?0:e6(d,h))]}let tW=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tz=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function tZ(e){let[,t,r,n,i,a,o,s]=e;return[t$(t,i,n,r,a,o,s),eo.utcInstance]}function tq(e){let[,t,r,n,i,a,o,s]=e;return[t$(t,s,r,n,i,a,o),eo.utcInstance]}let tH=ty(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,tS),tY=ty(/(\d{4})-?W(\d\d)(?:-?(\d))?/,tS),tB=ty(/(\d{4})-?(\d{3})/,tS),tG=ty(tE),tJ=tv(function(e,t){return[{year:tD(e,t),month:tD(e,t+1,1),day:tD(e,t+2,1)},null,t+3]},tA,tR,tI),tK=tv(tT,tA,tR,tI),tX=tv(tN,tA,tR,tI),tQ=tv(tA,tR,tI),t0=tv(tA),t1=ty(/(\d{4})-(\d\d)-(\d\d)/,tC),t2=ty(tO),t3=tv(tA,tR,tI),t4="Invalid Duration",t6={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},t5={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...t6},t8={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...t6},t9=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],t7=t9.slice(0).reverse();function re(e,t,r=!1){return new rn({values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function rt(e,t){let r=t.milliseconds??0;for(let n of t7.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function rr(e,t){let r=0>rt(e,t)?-1:1;t9.reduceRight((n,i)=>{if(eL(t[i]))return n;if(n){let a=t[n]*r,o=e[i][n],s=Math.floor(a/o);t[i]+=s*r,t[n]-=s*o*r}return i},null),t9.reduce((r,n)=>{if(eL(t[n]))return r;if(r){let i=t[r]%1;t[r]-=i,t[n]+=i*e[r][n]}return n},null)}class rn{constructor(e){let t="longterm"===e.conversionAccuracy,r=t?t8:t5;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||ei.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return rn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new c(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new rn({values:e8(e,rn.normalizeUnit),loc:ei.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(e$(e))return rn.fromMillis(e);if(rn.isDuration(e))return e;if("object"==typeof e)return rn.fromObject(e);throw new c(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[r]=tw(e,[tP,tF]);return r?rn.fromObject(r,t):rn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[r]=tw(e,[t_,t0]);return r?rn.fromObject(r,t):rn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}
1static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Duration is invalid");let r=e instanceof eM?e:new eM(e,t);if(!ek.throwOnInvalid)return new rn({invalid:r});throw new s(r)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new u(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?tp.create(this.loc,r).formatDurationFromString(this,e):t4}toHuman(e={}){if(!this.isValid)return t4;let t=t9.map(t=>{let r=this.values[t];return eL(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eJ(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},rH.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?rt(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=rn.fromDurationLike(e),r={};for(let e of t9)(eU(t.values,e)||eU(this.values,e))&&(r[e]=t.get(e)+this.get(e));return re(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let t=rn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=e5(e(this.values[r],r));return re(this,{values:t},!0)}get(e){return this[rn.normalizeUnit(e)]}set(e){return this.isValid?re(this,{values:{...this.values,...e8(e,rn.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return re(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return rr(this.matrix,e),re(this,{values:e},!0)}rescale(){return this.isValid?re(this,{values:function(e){let t={};for(let[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>rn.normalizeUnit(e));let r={},n={},i=this.toObject();for(let a of t9)if(e.indexOf(a)>=0){t=a;let e=0;for(let t in n)e+=this.matrix[t][a]*n[t],n[t]=0;e$(i[a])&&(e+=i[a]);let o=Math.trunc(e);r[a]=o,n[a]=(1e3*e-1e3*o)/1e3}else e$(i[a])&&(n[a]=i[a]);for(let e in n)0!==n[e]&&(r[t]+=e===t?n[e]:n[e]/this.matrix[t][e]);return rr(this.matrix,r),re(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return re(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let n of t9){var t,r;if(t=this.values[n],r=e.values[n],void 0===t||0===t?void 0!==r&&0!==r:t!==r)return!1}return!0}}let ri="Invalid Interval";class ra{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
1static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Interval is invalid");let r=e instanceof eM?e:new eM(e,t);if(!ek.throwOnInvalid)return new ra({invalid:r});throw new o(r)}static fromDateTimes(e,t){var r,n;let i=rY(e),a=rY(t),o=(r=i,n=a,r&&r.isValid?n&&n.isValid?n<r?ra.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${n.toISO()}`):null:ra.invalid("missing or invalid end"):ra.invalid("missing or invalid start"));return null==o?new ra({start:i,end:a}):o}static after(e,t){let r=rn.fromDurationLike(t),n=rY(e);return ra.fromDateTimes(n,n.plus(r))}static before(e,t){let r=rn.fromDurationLike(t),n=rY(e);return ra.fromDateTimes(n.minus(r),n)}static fromISO(e,t){let[r,n]=(e||"").split("/",2);if(r&&n){let e,i,a,o;try{i=(e=rH.fromISO(r,t)).isValid}catch(e){i=!1}try{o=(a=rH.fromISO(n,t)).isValid}catch(e){o=!1}if(i&&o)return ra.fromDateTimes(e,a);if(i){let r=rn.fromISO(n,t);if(r.isValid)return ra.after(e,r)}else if(o){let e=rn.fromISO(r,t);if(e.isValid)return ra.before(a,e)}}return ra.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){let r;if(!this.isValid)return NaN;let n=this.start.startOf(e,t);return Math.floor((r=(r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end).startOf(e,t)).diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?ra.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(rY).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s:n}=this,i=0;for(;n<this.e;){let e=t[i]||this.e,a=+e>+this.e?this.e:e;r.push(ra.fromDateTimes(n,a)),n=a,i+=1}return r}splitBy(e){let t=rn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:r}=this,n=1,i,a=[];for(;r<this.e;){let e=this.start.plus(t.mapUnits(e=>e*n));i=+e>+this.e?this.e:e,a.push(ra.fromDateTimes(r,i)),r=i,n+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:ra.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return ra.fromDateTimes(t,r)}static merge(e){let[t,r]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0,n=[],i=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...i).sort((e,t)=>e.time-t.time))1===(r+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&n.push(ra.fromDateTimes(t,e.time)),t=null);return ra.merge(n)}difference(...e){return ra.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:ri}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
1toLocaleString(e=p,t={}){return this.isValid?tp.create(this.s.loc.clone(t),e).formatInterval(this):ri}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ri}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ri}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ri}toFormat(e,{separator:t=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:ri}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):rn.invalid(this.invalidReason)}mapEndpoints(e){return ra.fromDateTimes(e(this.s),e(this.e))}}class ro{static hasDST(e=ek.defaultZone){let t=rH.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return U.isValidZone(e)}static normalizeZone(e){return el(e,ek.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||ei.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||ei.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||ei.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||ei.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||ei.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||ei.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||ei.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ei.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return ei.create(t,null,"gregory").eras(e)}static features(){return{relative:eV(),localeWeek:eW()}}}function rs(e,t){let r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(rn.fromMillis(n).as("days"))}function rl(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(-1!==e[r].search(eu.hanidec))t+=ed.indexOf(e[r]);else for(let e in ec){let[r,i]=ec[e];n>=r&&n<=i&&(t+=n-r)}}return parseInt(t,10)}(e))}}let ru=String.fromCharCode(160),rc=`[ ${ru}]`,rd=RegExp(rc,"g");function rh(e){return e.replace(/\./g,"\\.?").replace(rd,rc)}function rf(e){return e.replace(/\./g,"").replace(rd," ").toLowerCase()}function rm(e,t){return null===e?null:{regex:RegExp(e.map(rh).join("|")),deser:([r])=>e.findIndex(e=>rf(r)===rf(e))+t}}function rp(e,t){return{regex:e,deser:([,e,t])=>e6(e,t),groups:t}}function rg(e){return{regex:e,deser:([e])=>e}}
1let ry={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},rv=null;function rw(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let r=rk(tp.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r})(e,t)))}class rb{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=rw(tp.parseFormat(t),e),this.units=this.tokens.map(t=>(function(e,t){let r=ef(t),n=ef(t,"{2}"),i=ef(t,"{3}"),a=ef(t,"{4}"),o=ef(t,"{6}"),s=ef(t,"{1,2}"),l=ef(t,"{1,3}"),u=ef(t,"{1,6}"),c=ef(t,"{1,9}"),d=ef(t,"{2,4}"),h=ef(t,"{4,6}"),f=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),m=(m=>{if(e.literal)return f(m);switch(m.val){case"G":return rm(t.eras("short"),0);case"GG":return rm(t.eras("long"),0);case"y":return rl(u);case"yy":case"kk":return rl(d,e3);case"yyyy":case"kkkk":return rl(a);case"yyyyy":return rl(h);case"yyyyyy":return rl(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return rl(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return rl(n);case"MMM":return rm(t.months("short",!0),1);case"MMMM":return rm(t.months("long",!0),1);case"LLL":return rm(t.months("short",!1),1);case"LLLL":return rm(t.months("long",!1),1);case"o":case"S":return rl(l);case"ooo":case"SSS":return rl(i);case"u":return rg(c);case"uu":return rg(s);case"uuu":case"E":case"c":return rl(r);case"a":return rm(t.meridiems(),0);case"EEE":return rm(t.weekdays("short",!1),1);case"EEEE":return rm(t.weekdays("long",!1),1);case"ccc":return rm(t.weekdays("short",!0),1);case"cccc":return rm(t.weekdays("long",!0),1);case"Z":case"ZZ":return rp(RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return rp(RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return rg(/[a-z_+-/]{1,256}?/i);case" ":return rg(/[^\S\n\r]/);default:return f(m)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=e,m})(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(!this.isValid)return{input:e,tokens:this.tokens,invalidReason:this.invalidReason};{let[t,r]=function(e,t,r){let n=e.match(t);if(!n)return[n,{}];{let e={},t=1;for(let i in r)if(eU(r,i)){let a=r[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(n.slice(t,t+o))),t+=o}return[n,e]}}(e,this.regex,this.handlers),[n,i,a]=r?function(e){let t,r=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null;return eL(e.z)||(n=U.create(e.z)),eL(e.Z)||(n||(n=new eo(e.Z)),t=e.Z),eL(e.q)||(e.M=(e.q-1)*3+1),eL(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),eL(e.u)||(e.S=eG(e.u)),[Object.keys(e).reduce((t,n)=>{let i=r(n);return i&&(t[i]=e[n]),t},{}),n,t]}(r):[null,null,void 0];if(eU(r,"a")&&eU(r,"H"))throw new l("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:n,zone:i,specificOffset:a}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
1dReason:null}}function rx(e,t,r){return new rb(e,r).explainFromTokens(t)}function rk(e,t){if(!e)return null;let r=tp.create(t,e).dtFormatter((rv||(rv=rH.fromMillis(0x16a2e5618e3)),rv)),n=r.formatToParts(),i=r.resolvedOptions();return n.map(t=>(function(e,t,r){let{type:n,value:i}=e;if("literal"===n){let e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}let a=t[n],o=n;"hour"===n&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let s=ry[o];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}})(t,e,i))}let rM="Invalid DateTime";function rE(e){return new eM("unsupported zone",`the zone "${e.name}" is not supported`)}function rS(e){return null===e.weekData&&(e.weekData=eD(e.c)),e.weekData}function rT(e){return null===e.localWeekData&&(e.localWeekData=eD(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function rN(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new rH({...r,...t,old:r})}function rO(e,t,r){let n=e-60*t*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*6e4;let a=r.offset(n);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function rC(e,t){let r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function rD(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:n,month:i,day:Math.min(e.c.day,eQ(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=rn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),[s,l]=rO(e0(a),r,e.zone);return 0!==o&&(s+=o,l=e.zone.offset(s)),{ts:s,o:l}}function rA(e,t,r,n,i,a){let{setZone:o,zone:s}=r;if((!e||0===Object.keys(e).length)&&!t)return rH.invalid(new eM("unparsable",`the input "${i}" can't be parsed as ${n}`));{let n=rH.fromObject(e,{...r,zone:t||s,specificOffset:a});return o?n:n.setZone(s)}}function rR(e,t,r=!0){return e.isValid?tp.create(ei.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function rI(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=eH(e.c.year,r?6:4),t?(n+="-",n+=eH(e.c.month),n+="-"):n+=eH(e.c.month),n+=eH(e.c.day)}function r_(e,t,r,n,i,a){let o=eH(e.c.hour);return t?(o+=":",o+=eH(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=":")):o+=eH(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=eH(e.c.second),0===e.c.millisecond&&n||(o+=".",o+=eH(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?(o+="-",o+=eH(Math.trunc(-e.o/60)),o+=":",o+=eH(Math.trunc(-e.o%60))):(o+="+",o+=eH(Math.trunc(e.o/60)),o+=":",o+=eH(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}let rP={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rF={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rL={ordinal:1,hour:0,minute:0,second:0,millisecond:0},r$=["year","month","day","hour","minute","second","millisecond"],rj=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rV=["year","ordinal","hour","minute","second","millisecond"];function rW(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new u(e);return t}}function rz(e,t){let r,i,a=el(t.zone,ek.defaultZone);if(!a.isValid)return rH.invalid(rE(a));let o=ei.fromObject(t);if(eL(e.year))r=ek.now();else{for(let t of r$)eL(e[t])&&(e[t]=rP[t]);let t=eP(e)||eF(e);if(t)return rH.invalid(t);let o=function(e){if(void 0===n&&(n=ek.now()),"iana"!==e.type)return e.offset(n);let t=e.name,r=rq.get(t);return void 0===r&&(r=e.offset(n),rq.set(t,r)),r}(a);[r,i]=rO(e0(e),o,a)}
1return new rH({ts:r,zone:a,loc:o,o:i})}function rU(e,t,r){let n=!!eL(r.round)||r.round,i=(e,i)=>(e=eJ(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,i)),a=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return i(a(r.unit),r.unit);for(let e of r.units){let t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,r.units[r.units.length-1])}function rZ(e){let t={},r;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let rq=new Map;class rH{constructor(e){let t=e.zone||ek.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new eM("invalid input"):null)||(t.isValid?null:rE(t));this.ts=eL(e.ts)?ek.now():e.ts;let n=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,i]=[e.old.c,e.old.o];else{let a=e$(e.o)&&!e.old?e.o:t.offset(this.ts);n=(r=Number.isNaN((n=rC(this.ts,a)).year)?new eM("invalid input"):null)?null:n,i=r?null:a}this._zone=t,this.loc=e.loc||ei.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}static now(){return new rH({})}static local(){let[e,t]=rZ(arguments),[r,n,i,a,o,s,l]=t;return rz({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static utc(){let[e,t]=rZ(arguments),[r,n,i,a,o,s,l]=t;return e.zone=eo.utcInstance,rz({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static fromJSDate(e,t={}){let r="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(r))return rH.invalid("invalid input");let n=el(t.zone,ek.defaultZone);return n.isValid?new rH({ts:r,zone:n,loc:ei.fromObject(t)}):rH.invalid(rE(n))}static fromMillis(e,t={}){if(e$(e))if(e<-864e13||e>864e13)return rH.invalid("Timestamp out of range");else return new rH({ts:e,zone:el(t.zone,ek.defaultZone),loc:ei.fromObject(t)});throw new c(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(e$(e))return new rH({ts:1e3*e,zone:el(t.zone,ek.defaultZone),loc:ei.fromObject(t)});throw new c("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let r=el(t.zone,ek.defaultZone);if(!r.isValid)return rH.invalid(rE(r));let n=ei.fromObject(t),i=e8(e,rW),{minDaysInFirstWeek:a,startOfWeek:o}=e_(i,n),s=ek.now(),u=eL(t.specificOffset)?r.offset(s):t.specificOffset,c=!eL(i.ordinal),d=!eL(i.year),h=!eL(i.month)||!eL(i.day),f=d||h,m=i.weekYear||i.weekNumber;if((f||c)&&m)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new l("Can't mix ordinal dates with month/day");let p=m||i.weekday&&!f,g,y,v=rC(s,u);p?(g=rj,y=rF,v=eD(v,a,o)):c?(g=rV,y=rL,v=eR(v)):(g=r$,y=rP);let w=!1;for(let e of g)eL(i[e])?w?i[e]=y[e]:i[e]=v[e]:w=!0;let b=(p?function(e,t=4,r=1){let n=ej(e.weekYear),i=eq(e.weekNumber,1,e2(e.weekYear,t,r)),a=eq(e.weekday,1,7);return n?i?!a&&eT("weekday",e.weekday):eT("week",e.weekNumber):eT("weekYear",e.weekYear)}(i,a,o):c?function(e){let t=ej(e.year),r=eq(e.ordinal,1,eX(e.year));return t?!r&&eT("ordinal",e.ordinal):eT("year",e.year)}(i):eP(i))||eF(i);if(b)return rH.invalid(b);let[x,k]=rO(e0(p?eA(i,a,o):c?eI(i):i),u,r),M=new rH({ts:x,zone:r,o:k,loc:n});return i.weekday&&f&&e.weekday!==M.weekday?rH.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M.isValid?M:rH.invalid(M.invalid)}static fromISO(e,t={}){let[r,n]=tw(e,[tH,tJ],[tY,tK],[tB,tX],[tG,tQ]);return rA(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[r,n]=tw(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[tj,tV]);return rA(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[r,n]=tw(e,[tW,tZ],[tz,tZ],[tU,tq]);return rA(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(eL(e)||eL(t))throw new c("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:i=null}=r,[a,o,s,l]=function(e,t,r){let{result:n,zone:i,specificOffset:a,invalidReason:o}=rx(e,t,r);return[n,i,a,o]}(ei.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t);return l?rH.invalid(l):rA(a,o,r,`format ${t}`,e,s)}static fromString(e,t,r={}){return rH.fromFormat(e,t,r)}static fromSQL(e,t={}){let[r,n]=tw(e,[t1,tJ],[t2,t3]);return rA(r,n,t,"SQL",e)}
1static invalid(e,t=null){if(!e)throw new c("need to specify a reason the DateTime is invalid");let r=e instanceof eM?e:new eM(e,t);if(!ek.throwOnInvalid)return new rH({invalid:r});throw new a(r)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let r=rk(e,ei.fromObject(t));return r?r.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return rw(tp.parseFormat(e),ei.fromObject(t)).map(e=>e.val).join("")}static resetCache(){n=void 0,rq.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rS(this).weekYear:NaN}get weekNumber(){return this.isValid?rS(this).weekNumber:NaN}get weekday(){return this.isValid?rS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?rT(this).weekday:NaN}get localWeekNumber(){return this.isValid?rT(this).weekNumber:NaN}get localWeekYear(){return this.isValid?rT(this).weekYear:NaN}get ordinal(){return this.isValid?eR(this.c).ordinal:NaN}get monthShort(){return this.isValid?ro.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ro.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ro.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ro.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=e0(this.c),t=this.zone.offset(e-864e5),r=this.zone.offset(e+864e5),n=this.zone.offset(e-6e4*t),i=this.zone.offset(e-6e4*r);if(n===i)return[this];let a=e-6e4*n,o=e-6e4*i,s=rC(a,n),l=rC(o,i);return s.hour===l.hour&&s.minute===l.minute&&s.second===l.second&&s.millisecond===l.millisecond?[rN(this,{ts:a}),rN(this,{ts:o})]:[this]}get isInLeapYear(){return eK(this.year)}get daysInMonth(){return eQ(this.year,this.month)}get daysInYear(){return this.isValid?eX(this.year):NaN}get weeksInWeekYear(){return this.isValid?e2(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?e2(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:r,calendar:n}=tp.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(eo.instance(e),t)}toLocal(){return this.setZone(ek.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=el(e,ek.defaultZone)).equals(this.zone))return this;{if(!e.isValid)return rH.invalid(rE(e));let i=this.ts;if(t||r){var n;let t=e.offset(this.ts),r=this.toObject();[i]=(n=e,rO(e0(r),t,n))}return rN(this,{ts:i,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return rN(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,r,n;let i;if(!this.isValid)return this;let a=e8(e,rW),{minDaysInFirstWeek:o,startOfWeek:s}=e_(a,this.loc),u=!eL(a.weekYear)||!eL(a.weekNumber)||!eL(a.weekday),c=!eL(a.ordinal),d=!eL(a.year),h=!eL(a.month)||!eL(a.day),f=a.weekYear||a.weekNumber;if((d||h||c)&&f)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new l("Can't mix ordinal dates with month/day");u?i=eA({...eD(this.c,o,s),...a},o,s):eL(a.ordinal)?(i={...this.toObject(),...a},eL(a.day)&&(i.day=Math.min(eQ(i.year,i.month),i.day))):i=eI({...eR(this.c),...a}
1);let[m,p]=(t=i,r=this.o,n=this.zone,rO(e0(t),r,n));return rN(this,{ts:m,o:p})}plus(e){return this.isValid?rN(this,rD(this,rn.fromDurationLike(e))):this}minus(e){return this.isValid?rN(this,rD(this,rn.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let r={},n=rn.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===n)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(r.weekNumber=this.weekNumber-1),r.weekday=e}else r.weekday=1;return"quarters"===n&&(r.month=(Math.ceil(this.month/3)-1)*3+1),this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?tp.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):rM}toLocaleString(e=p,t={}){return this.isValid?tp.create(this.loc.clone(t),e).formatDateTime(this):rM}toLocaleParts(e={}){return this.isValid?tp.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let a="extended"===e,o=rI(this,a);return o+="T",o+=r_(this,a,t,r,n,i)}toISODate({format:e="extended"}={}){return this.isValid?rI(this,"extended"===e):null}toISOWeekDate(){return rR(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(n?"T":"")+r_(this,"extended"===a,t,e,r,i):null}toRFC2822(){return rR(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rR(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?rI(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),rR(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():rM}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return rn.invalid("created by diffing an invalid DateTime");let n={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=(Array.isArray(t)?t:[t]).map(rn.normalizeUnit),a=e.valueOf()>this.valueOf(),o=function(e,t,r,n){let[i,a,o,s]=function(e,t,r){let n,i,a={},o=e;for(let[s,l]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let r=rs(e,t);return(r-r%7)/7}],["days",rs]])r.indexOf(s)>=0&&(n=s,a[s]=l(e,t),(i=o.plus(a))>t?(a[s]--,(e=o.plus(a))>t&&(i=e,a[s]--,e=o.plus(a))):e=i);return[e,a,i,n]}(e,t,r),l=t-i,u=r.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));let c=rn.fromObject(a,n);return u.length>0?rn.fromMillis(l,n).shiftTo(...u).plus(c):c}(a?this:e,a?e:this,i,n);return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(rH.now(),e,t)}until(e){return this.isValid?ra.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;let n=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=n&&n<=i.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||rH.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0,n=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(n=e.unit,i=void 0),rU(t,this.plus(r),{...e,numeric:"always",units:n,unit:i})}toRelativeCalendar(e={}){return this.isValid?rU(e.base||rH.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(rH.isDateTime))throw new c("min requires all arguments be DateTimes");return ez(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(rH.isDateTime))throw new c("max requires all arguments be DateTimes");return ez(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){let{locale:n=null,numberingSystem:i=null}=r;return rx(ei.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return rH.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){let{locale:r=null,numberingSystem:n=null}=t;return new rb(ei.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),e)}static fromFormatParser(e,t,r={}){if(eL(e)||eL(t))throw new c("fromFormatParser requires an input string and a format parser");let{locale:n=null,numberingSystem:i=null}=r,a=ei.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new c(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:o,zone:s,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?rH.invalid(u):rA(o,s,r,`format ${t.format}`,e,l)}static get DATE_SHORT(){return p}static get DATE_MED(){return g}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return v}static get DATE_HUGE(){return w}static get TIME_SIMPLE(){return b}static get TIME_WITH_SECONDS(){return x}static get TIME_WITH_SHORT_OFFSET(){return k}static get TIME_WITH_LONG_OFFSET(){return M}static get TIME_24_SIMPLE(){return E}static get TIME_24_WITH_SECONDS(){return S}static get TIME_24_WITH_SHORT_OFFSET(){return T}static get TIME_24_WITH_LONG_OFFSET(){return N}static get DATETIME_SHORT(){return O}static get DATETIME_SHORT_WITH_SECONDS(){return C}static get DATETIME_MED(){return D}static get DATETIME_MED_WITH_SECONDS(){return A}static get DATETIME_MED_WITH_WEEKDAY(){return R}static get DATETIME_FULL(){return I}static get DATETIME_FULL_WITH_SECONDS(){return _}static get DATETIME_HUGE(){return P}static get DATETIME_HUGE_WITH_SECONDS(){return F}}function rY(e){if(rH.isDateTime(e))return e;if(e&&e.valueOf&&e$(e.valueOf()))return rH.fromJSDate(e);if(e&&"object"==typeof e)return rH.fromObject(e);throw new c(`Unknown datetime argument: ${e}, of type ${typeof e}`)}},44899:(e,t,r)=>{var n=r(88451);e.exports=function e(t,r,i){return(function(e,t){var r=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var a=i.exec(e);if(!a)break;if(void 0===a[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=a[1],s=a.index,l=n("(",")",e.substring(s));if(!l||l.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:o}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,a){var o,s,l,u;return n.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,s=a.functionIdentifier,l=i,u=t,l(e(o,r,l),s,u)))},t)}},45622:()=>{},51412:()=>{},51420:(e,t,r)=>{var n=r(80347);n.prototype.toPostfix=function(){"use strict";for(var e,t,r,i,a,o=[],s=[{value:"(",type:4,pre:0}],l=this.value,u=1;u<l.length;u++)if(1===l[u].type||3===l[u].type||13===l[u].type)1===l[u].type&&(l[u].value=Number(l[u].value)),o.push(l[u]);else if(4===l[u].type)s.push(l[u]);else if(5===l[u].type)for(;4!==(t=s.pop()).type;)o.push(t);else if(11===l[u].type){for(;4!==(t=s.pop()).type;)o.push(t);s.push(t)}else{i=(e=l[u]).pre,r=(a=s[s.length-1]).pre;var c="Math.pow"==a.value&&"Math.pow"==e.value;if(i>r)s.push(e);else{for(;r>=i&&!c||c&&i<r;)t=s.pop(),a=s[s.length-1],o.push(t),r=a.pre,c="Math.pow"==e.value&&"Math.pow"==a.value;s.push(e)}}return new n(o)},e.exports=n},58162:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(14232),i=r(62146);function a({prop:e,defaultProp:t,onChange:r=()=>{}}){let[a,o]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[a]=r,o=n.useRef(a),s=(0,i.c)(t);return n.useEffect(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:a,u=(0,i.c)(r);return[l,n.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else o(t)},[s,e,o,u])]}},61377:()=>{},63882:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(95062),i=r.n(n),a=r(14232),o=r(15039),s=r.n(o),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e){var t=e.top,r=e.left,n=e.transform,i=e.className,o=e.children,c=e.innerRef,d=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,l);return a.createElement("g",u({ref:c,className:s()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},d),o)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},67949:(e,t,r)=>{var n,i=r(14017),a=r(44899),o=r(70113),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),a(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,a,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(a+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,a="",o=t;n=s.exec(o);){n[0].index>0&&(a+=o.substring(0,n[0].index));var l=i("(",")",o.substring(void 0));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",r);a+=l.pre+u,o=l.post}return a+o}(r,l));if(c.length>1||r.indexOf("var(")>-1)return a+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var h=r.replace(RegExp(d,"gi"),"");try{u=o.eval(h)}catch(e){return a+"("+r+")"}return"%"===d&&(u*=100),(a.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},69270:()=>{},69670:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(16406),i=r(95264),a=r(36607);function o(e,t){let r=(0,n.$)(e,{labelable:!0}),{hoverProps:o}=(0,a.M)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,i.v)(r,o,{role:"tooltip"})}}},70113:(e,t,r)=>{var n=r(35094);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,a=0;a<i.length;a++)1===i[a].type||3===i[a].type?n.push({value:3===i[a].type?i[a].show:i[a].value,type:1}):13===i[a].type?n.push({value:i[a].show,type:1}):0===i[a].type?n[n.length-1]={value:i[a].show+("-"!=i[a].show?"(":"")+n[n.length-1].value+("-"!=i[a].show?")":""),type:0}:7===i[a].type?n[n.length-1]={value:(1!=n[n.length-1].type?"(":"")+n[n.length-1].value+(1!=n[n.length-1].type?")":"")+i[a].show,type:7}:10===i[a].type?(e=n.pop(),t=n.pop(),"P"===i[a].show||"C"===i[a].show?n.push({value:"<sup>"+t.value+"</sup>"+i[a].show+"<sub>"+e.value+"</sub>",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===i[a].type||9===i[a].type?(e=n.pop(),t=n.pop(),n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[a].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[a].type})):12===i[a].type&&(e=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[a].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},70294:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(14232),a=r(81285),o=(n||(n=r.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(o());return(0,a.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},71561:()=>{},72311:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(14232),i=r(67949),a=r.n(i),o=r(75998),s=r.n(o),l="__react_svg_text_measurement_id";let u=s()(function(e,t){try{var r=document.getElementById(l);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",l),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)});var c=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function d(e){return"number"==typeof e}function h(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var f=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p={overflow:"visible"};function g(e){var t,r,i,o,s,l,g,y,v,w,b,x,k,M,E,S,T,N,O,C,D,A,R,I,_=e.dx,P=e.dy,F=e.textAnchor,L=e.innerRef,$=e.innerTextRef,j=(e.verticalAnchor,e.angle,e.lineHeight),V=void 0===j?"1em":j,W=(e.scaleToFit,e.capHeight,e.width,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,f)),z=W.x,U=void 0===z?0:z,Z=W.fontSize,q=(r=void 0===(t=e.verticalAnchor)?"end":t,o=void 0!==(i=e.scaleToFit)&&i,s=e.angle,l=e.width,y=void 0===(g=e.lineHeight)?"1em":g,w=void 0===(v=e.capHeight)?"0.71em":v,b=e.children,x=e.style,E=void 0===(M=(k=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,c)).x)?0:M,T=void 0===(S=k.y)?0:S,N=!h(E)||!h(T),C=(O=(0,n.useMemo)(function(){return{wordsWithWidth:(null==b?[]:b.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:u(e,x)||0}}),spaceWidth:u("\xa0",x)||0}},[b,x])).wordsWithWidth,D=O.spaceWidth,A=(0,n.useMemo)(function(){return N?[]:l||o?C.reduce(function(e,t){var r=t.word,n=t.wordWidth,i=e[e.length-1];return i&&(null==l||o||(i.width||0)+n+D<l)?(i.words.push(r),i.width=i.width||0,i.width+=n+D):e.push({words:[r],width:n}),e},[]):[{words:null==b?[]:b.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[N,l,o,b,C,D]),R=(0,n.useMemo)(function(){return N?"":"start"===r?a()("calc("+w+")"):"middle"===r?a()("calc("+(A.length-1)/2+" * -"+y+" + ("+w+" / 2))"):a()("calc("+(A.length-1)+" * -"+y+")")},[N,r,w,A.length,y]),I=(0,n.useMemo)(function(){var e=[];if(N)return"";if(d(E)&&d(T)&&d(l)&&o&&A.length>0){var t=A[0].width||1,r="shrink-only"===o?Math.min(l/t,1):l/t,n=E-r*E,i=T-r*T;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+i+")")}return s&&e.push("rotate("+s+", "+E+", "+T+")"),e.length>0?e.join(" "):""},[N,E,T,l,o,A,s]),{wordsByLines:A,startDy:R,transform:I}),H=q.wordsByLines,Y=q.startDy,B=q.transform;return n.createElement("svg",{ref:L,x:void 0===_?0:_,y:void 0===P?0:P,fontSize:Z,style:p},H.length>0?n.createElement("text",m({ref:$,transform:B},W,{textAnchor:void 0===F?"start":F}),H.map(function(e,t){return n.createElement("tspan",{key:t,x:U,dy:0===t?Y:V},e.words.join(" "))})):null)}},72332:(e,t,r)=>{"use strict";r.d(t,{D:()=>u});var n=r(27443),i=r(36607),a=r(18689),o=r(58960),s=r(95264),l=r(14232);function u(e,t,r){let{isDisabled:u,trigger:c}=e,d=(0,o.Bi)(),h=(0,l.useRef)(!1),f=(0,l.useRef)(!1),m=()=>{(h.current||f.current)&&t.open(f.current)},p=e=>{h.current||f.current||t.close(e)};(0,l.useEffect)(()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[r,t]);let g=()=>{f.current=!1,h.current=!1,p(!0)},{hoverProps:y}=(0,i.M)({isDisabled:u,onHoverStart:()=>{"focus"!==c&&("pointer"===(0,n.ME)()?h.current=!0:h.current=!1,m())},onHoverEnd:()=>{"focus"!==c&&(f.current=!1,h.current=!1,p())}}),{focusableProps:v}=(0,a.Wc)({isDisabled:u,onFocus:()=>{(0,n.pP)()&&(f.current=!0,m())},onBlur:()=>{f.current=!1,h.current=!1,p(!0)}},r);return{triggerProps:{"aria-describedby":t.isOpen?d:void 0,...(0,s.v)(v,y,{onPointerDown:g,onKeyDown:g,tabIndex:void 0})},tooltipProps:{id:d}}}},73520:(e,t,r)=>{"use strict";r.d(t,{qW:()=>h});var n,i=r(14232),a=r(33716),o=r(66326),s=r(10714),l=r(62146),u=r(37876),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...w}=e,b=i.useContext(d),[x,k]=i.useState(null),M=x?.ownerDocument??globalThis?.document,[,E]=i.useState({}),S=(0,s.s)(t,e=>k(e)),T=Array.from(b.layers),[N]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=T.indexOf(N),C=x?T.indexOf(x):-1,D=b.layersWithOutsidePointerEventsDisabled.size>0,A=C>=O,R=function(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){m("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...b.branches].some(e=>e.contains(t));!A||r||(p?.(e),y?.(e),e.defaultPrevented||v?.())},M),I=function(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;[...b.branches].some(e=>e.contains(t))||(g?.(e),y?.(e),e.defaultPrevented||v?.())},M);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{C===b.layers.size-1&&(h?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},M),i.useEffect(()=>{if(x)return r&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(n=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(x)),b.layers.add(x),f(),()=>{r&&1===b.layersWithOutsidePointerEventsDisabled.size&&(M.body.style.pointerEvents=n)}},[x,M,r,b]),i.useEffect(()=>()=>{x&&(b.layers.delete(x),b.layersWithOutsidePointerEventsDisabled.delete(x),f())},[x,b]),i.useEffect(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(o.sG.div,{...w,ref:S,style:{pointerEvents:D?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,R.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,r,{discrete:n}){let i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,o.hO)(i,a):i.dispatchEvent(a)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let r=i.useContext(d),n=i.useRef(null),a=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(o.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},76078:(e,t,r)=>{"use strict";r.d(t,{Wd:()=>F,pH:()=>O,zD:()=>D,kL:()=>_,Ay:()=>E,ko:()=>a});var n=r(14232);let i=n.createContext(null);function a(){let e=n.useContext(i)?.maps,t=(0,n.useContext)(M);return(0,n.useMemo)(()=>({...e,current:t?.map}),[e,t])}function o(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!o(e[r],t[r]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!t.hasOwnProperty(n)||!o(e[n],t[n]))return!1;return!0}return!1}function s(e,t){if(!e.getProjection)return;let r=e.getProjection();o(r,t.getProjection())||t.setProjection(r)}function l(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function u(e,t){let r=t.viewState||t,n=!1;if("zoom"in r){let t=e.zoom;e.zoom=r.zoom,n=n||t!==e.zoom}if("bearing"in r){let t=e.bearing;e.bearing=r.bearing,n=n||t!==e.bearing}if("pitch"in r){let t=e.pitch;e.pitch=r.pitch,n=n||t!==e.pitch}if(r.padding&&!e.isPaddingEqual(r.padding)&&(n=!0,e.padding=r.padding),"longitude"in r&&"latitude"in r){let t=e.center;e.center=new t.constructor(r.longitude,r.latitude),n=n||t!==e.center}return n}let c=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function d(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let r of e.layers)t[r.id]=r;let r=e.layers.map(e=>{let r=null;"interactive"in e&&(r=Object.assign({},e),delete r.interactive);let n=t[e.ref];if(n)for(let t of(r=r||Object.assign({},e),delete r.ref,c))t in n&&(r[t]=n[t]);return r||e});return{...e,layers:r}}var h=r(65364);let f={version:8,sources:{},layers:[]},m={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},p={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},g={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},y=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class w{constructor(e,t,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=e=>{let t=this.props[g[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[m[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._onCameraEvent=e=>{if(!this._internalUpdate){let t=this.props[p[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){let t=this.props;this.props=e;let r=this._updateSettings(e,t);r&&this._createShadowTransform(this._map);let n=this._updateSize(e),i=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(r||n||i&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let r=w.savedMaps.pop();if(!r)return null;let n=r.map,i=n.getContainer();for(t.className=i.className;i.childNodes.length>0;)t.appendChild(i.childNodes[0]);n._container=t,r.setProps({...e,styleDiffing:!1}),n.resize();let{initialViewState:a}=e;return a&&(a.bounds?n.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),n.isStyleLoaded()?n.fire("load"):n.once("styledata",()=>n.fire("load")),n._update(),r}_initialize(e){let{props:t}=this,{mapStyle:r=f}=t,n={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||function(){let e=null;if("undefined"!=typeof location){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||h.env.MapboxAccessToken}catch{}try{e=e||h.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}()||null,container:e,style:d(r)},i=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let a=new this._MapClass(n);
1i.padding&&a.setPadding(i.padding),t.cursor&&(a.getCanvas().style.cursor=t.cursor),this._createShadowTransform(a);let o=a._render;a._render=e=>{this._inRender=!0,o.call(a,e),this._inRender=!1};let l=a._renderTaskQueue.run;a._renderTaskQueue.run=e=>{l.call(a._renderTaskQueue,e),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());let u=a.fire;for(let e in a.fire=this._fireEvent.bind(this,u),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),s(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{})),m)a.on(e,this._onPointerEvent);for(let e in p)a.on(e,this._onCameraEvent);for(let e in g)a.on(e,this._onEvent);this._map=a}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");e?.remove(),w.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){let t=function(e){let t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;let r=this._map,n=this._renderTransform,{zoom:i,pitch:a,bearing:o}=n,s=r.isMoving();s&&(n.cameraElevationReference="sea");let c=u(n,{...l(r.transform),...e});if(s&&(n.cameraElevationReference="ground"),c&&t){let e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=i!==n.zoom),e.rotate||(e.rotate=o!==n.bearing),e.pitch||(e.pitch=a!==n.pitch)}return s||u(r.transform,e),c}_updateSettings(e,t){let r=this._map,n=!1;for(let i of y)if(i in e&&!o(e[i],t[i])){n=!0;let t=r[`set${i[0].toUpperCase()}${i.slice(1)}`];t?.call(r,e[i])}return n}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=f,styleDiffing:r=!0}=e,n={diff:r};return"localIdeographFontFamily"in e&&(n.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(d(t),n),!0}return!1}_updateStyleComponents(e,t){let r=this._map,n=!1;return r.isStyleLoaded()&&("light"in e&&r.setLight&&!o(e.light,t.light)&&(n=!0,r.setLight(e.light)),"fog"in e&&r.setFog&&!o(e.fog,t.fog)&&(n=!0,r.setFog(e.fog)),"terrain"in e&&r.setTerrain&&!o(e.terrain,t.terrain)&&(!e.terrain||r.getSource(e.terrain.source))&&(n=!0,r.setTerrain(e.terrain))),n}_updateHandlers(e,t){let r=this._map,n=!1;for(let i of v){let a=e[i]??!0;o(a,t[i]??!0)||(n=!0,a?r[i].enable(a):r[i].disable())}return n}_queryRenderedFeatures(e){let t=this._map,r=t.transform,{interactiveLayerIds:n=[]}=this.props;try{return t.transform=this._renderTransform,t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch{return[]}finally{t.transform=r}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,r=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(e.point),i=n.length>0;!i&&r&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=n,i&&!r&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}_fireEvent(e,t,r){let n=this._map,i=n.transform,a="string"==typeof t?t:t.type;return("move"===a&&this._updateViewState(this.props,!1),a in p&&("object"==typeof t&&(t.viewState=l(i)),this._map.isMoving()))?(n.transform=this._renderTransform,e.call(n,t,r),n.transform=i):e.call(n,t,r),n}_onBeforeRepaint(){let e=this._map;for(let t in this._internalUpdate=!0,this._deferredEvents)this._deferredEvents[t]&&e.fire(t);this._internalUpdate=!1;let t=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{s(this._renderTransform,t),e.transform=t}}}w.savedMaps=[];let b=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],x="undefined"!=typeof document?n.useLayoutEffect:n.useEffect,k=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"],M=n.createContext(null),E=n.forwardRef(function(e,t){let a=(0,n.useContext)(i),[o,s]=(0,n.use
1State)(null),l=(0,n.useRef)(),{current:u}=(0,n.useRef)({mapLib:null,map:null});(0,n.useEffect)(()=>{let t,n=e.mapLib,i=!0;return Promise.resolve(n||r.e(602).then(r.t.bind(r,11324,19))).then(r=>{if(!i)return;if(!r)throw Error("Invalid mapLib");let n="Map"in r?r:r.default;if(!n.Map)throw Error("Invalid mapLib");for(let t of k)t in e&&(n[t]=e[t]);let{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=e;if(o&&n.getRTLTextPluginStatus&&"unavailable"===n.getRTLTextPluginStatus()&&n.setRTLTextPlugin(o,e=>{e&&console.error(e)},!0),!n.supported||n.supported(e))e.reuseMaps&&(t=w.reuse(e,l.current)),t||(t=new w(n.Map,e,l.current)),u.map=function(e){if(!e)return null;let t=e.map,r={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{let n=t.transform;t.transform=e.transform;let i=t.project(r);return t.transform=n,i},unproject:r=>{let n=t.transform;t.transform=e.transform;let i=t.unproject(r);return t.transform=n,i},queryTerrainElevation:(r,n)=>{let i=t.transform;t.transform=e.transform;let a=t.queryTerrainElevation(r,n);return t.transform=i,a},queryRenderedFeatures:(r,n)=>{let i=t.transform;t.transform=e.transform;let a=t.queryRenderedFeatures(r,n);return t.transform=i,a}};for(let e of function(e){let t=new Set,r=e;for(;r;){for(let n of Object.getOwnPropertyNames(r))"_"!==n[0]&&"function"==typeof e[n]&&"fire"!==n&&"setEventedParent"!==n&&t.add(n);r=Object.getPrototypeOf(r)}return Array.from(t)}(t))e in r||b.includes(e)||(r[e]=t[e].bind(t));return r}(t),u.mapLib=n,s(t),a?.onMapMount(u.map,e.id);else throw Error("Map is not supported by this browser")}).catch(t=>{let{onError:r}=e;r?r({type:"error",target:null,error:t}):console.error(t)}),()=>{i=!1,t&&(a?.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),x(()=>{o&&o.setProps(e)}),(0,n.useImperativeHandle)(t,()=>u.map,[o]);let c=(0,n.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return n.createElement("div",{id:e.id,ref:l,style:c},o&&n.createElement(M.Provider,{value:u},n.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))});var S=r(98477);let T=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function N(e,t){if(!e||!t)return;let r=e.style;for(let e in t){let n=t[e];Number.isFinite(n)&&!T.test(e)?r[e]=`${n}px`:r[e]=n}}let O=(0,n.memo)((0,n.forwardRef)((e,t)=>{let{map:r,mapLib:i}=(0,n.useContext)(M),a=(0,n.useRef)({props:e});a.current.props=e;let o=(0,n.useMemo)(()=>{let t=!1;n.Children.forEach(e.children,e=>{e&&(t=!0)});let r={...e,element:t?document.createElement("div"):null},s=new i.Marker(r);return s.setLngLat([e.longitude,e.latitude]),s.getElement().addEventListener("click",e=>{a.current.props.onClick?.({type:"click",target:s,originalEvent:e})}),s.on("dragstart",e=>{e.lngLat=o.getLngLat(),a.current.props.onDragStart?.(e)}),s.on("drag",e=>{e.lngLat=o.getLngLat(),a.current.props.onDrag?.(e)}),s.on("dragend",e=>{e.lngLat=o.getLngLat(),a.current.props.onDragEnd?.(e)}),s},[]);(0,n.useEffect)(()=>(o.addTo(r.getMap()),()=>{o.remove()}),[]);let{longitude:s,latitude:l,offset:u,style:c,draggable:d=!1,popup:h=null,rotation:f=0,rotationAlignment:m="auto",pitchAlignment:p="auto"}=e;return(0,n.useEffect)(()=>{N(o.getElement(),c)},[c]),(0,n.useImperativeHandle)(t,()=>o,[]),(o.getLngLat().lng!==s||o.getLngLat().lat!==l)&&o.setLngLat([s,l]),u&&!function(e,t){let r=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0;return r===i&&n===a}(o.getOffset(),u)&&o.setOffset(u),o.isDraggable()!==d&&o.setDraggable(d),o.getRotation()!==f&&o.setRotation(f),o.getRotationAlignment()!==m&&o.setRotationAlignment(m),o.getPitchAlignment()!==p&&o.setPitchAlignment(p),o.getPopup()!==h&&o.setPopup(h),(0,S.createPortal)(e.children,o.getElement())}));function C(e){return new Set(e?e.trim().split(/\s+/):[])}let D=(0,n.memo)((0,n.forwardRef)((e,t)=>{let{map:r,mapLib:i}=(0,n.useContext)(M),a=(0,n.useMemo)(()=>document.createElement("div"),[]),s=(0,n.useRef)({props:e});s.current.props=e;let l=(0,n.useMemo)(()=>{let t={...e},r=new i.Popup(t);return r.setLngLat([e.longitude,e.latitude]),r.once("open",e=>{s.current.props.onOpen?.(e)}),r},[]);if((0,n.useEffect)(()=>{let e=e=>{s.current.props.onClose?.(e)};return l.on("close",e),l.setDOMContent(a).addTo(r.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}},[]),(0,n.useEffect)(()=>{N(l.getElement(),e.style)},[e.style]),(0,n.useImperativeHandle)(t,()=>l,[]),l.isOpen()&&((l.getLngLat().lng!==e.longitude||l.getLngLat().lat!==e.latitude)&&l.setLngLat([e.longitude,e.latitude]),e.offset&&!o(l.options.offset,e.offset)&&l.setOffset(e.offset),(l.options.anchor!==e.anchor||l.options.maxWidth!==e.maxWidth)&&(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth)),l.options.className!==e.className)){let t=C(l.options.className),r=C(e.className);for(let e of t)r.has(e)||l.removeClassName(e);for(let e of r)t.has(e)||l.addClassName(e);l.options.className=e.className}return(0,S.createPortal)(e.children,a)}));
1function A(e,t,r,i){let a=(0,n.useContext)(M),o=(0,n.useMemo)(()=>e(a),[]);return(0,n.useEffect)(()=>{let e="function"==typeof t&&"function"==typeof r?t:null,n="function"==typeof r?r:"function"==typeof t?t:null,{map:s}=a;return!s.hasControl(o)&&(s.addControl(o,(i||r||t)?.position),e&&e(a)),()=>{n&&n(a),s.hasControl(o)&&s.removeControl(o)}},[]),o}function R(e,t){if(!e)throw Error(t)}(0,n.memo)(function(e){let t=A(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,n.useEffect)(()=>{N(t._container,e.style)},[e.style]),null}),(0,n.memo)(function(e){let t=A(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,n.useEffect)(()=>{N(t._controlContainer,e.style)},[e.style]),null}),(0,n.memo)((0,n.forwardRef)(function(e,t){let r=(0,n.useRef)({props:e}),i=A(({mapLib:t})=>{let n=new t.GeolocateControl(e),i=n._setupUI.bind(n);return n._setupUI=e=>{n._container.hasChildNodes()||i(e)},n.on("geolocate",e=>{r.current.props.onGeolocate?.(e)}),n.on("error",e=>{r.current.props.onError?.(e)}),n.on("outofmaxbounds",e=>{r.current.props.onOutOfMaxBounds?.(e)}),n.on("trackuserlocationstart",e=>{r.current.props.onTrackUserLocationStart?.(e)}),n.on("trackuserlocationend",e=>{r.current.props.onTrackUserLocationEnd?.(e)}),n},{position:e.position});return r.current.props=e,(0,n.useImperativeHandle)(t,()=>i,[]),(0,n.useEffect)(()=>{N(i._container,e.style)},[e.style]),null})),(0,n.memo)(function(e){let t=A(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,n.useEffect)(()=>{N(t._container,e.style)},[e.style]),null}),(0,n.memo)(function(e){let t=A(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),r=(0,n.useRef)(e),i=r.current;r.current=e;let{style:a}=e;return void 0!==e.maxWidth&&e.maxWidth!==i.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==i.unit&&t.setUnit(e.unit),(0,n.useEffect)(()=>{N(t._container,a)},[a]),null});let I=0;function _(e){let t=(0,n.useContext)(M).map.getMap(),r=(0,n.useRef)(e),[,i]=(0,n.useState)(0),a=(0,n.useMemo)(()=>e.id||`jsx-source-${I++}`,[]);(0,n.useEffect)(()=>{if(t){let e=()=>setTimeout(()=>i(e=>e+1),0);return t.on("styledata",e),e(),()=>{if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(a)){let e=t.getStyle()?.layers;if(e)for(let r of e)r.source===a&&t.removeLayer(r.id);t.removeSource(a)}}}},[t]);let s=t&&t.style&&t.getSource(a);return s?function(e,t,r){R(t.id===r.id,"source id changed"),R(t.type===r.type,"source type changed");let n="",i=0;for(let e in t)"children"!==e&&"id"!==e&&!o(r[e],t[e])&&(n=e,i++);if(!i)return;let a=t.type;"geojson"===a?e.setData(t.data):"image"===a?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&1===i&&"coordinates"===n?e.setCoordinates(t.coordinates):"setUrl"in e&&"url"===n?e.setUrl(t.url):"setTiles"in e&&"tiles"===n?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${n}`)}(s,e,r.current):s=function(e,t,r){if(e.style&&e.style._loaded){let n={...r};return delete n.id,delete n.children,e.addSource(t,n),e.getSource(t)}return null}(t,a,e),r.current=e,s&&n.Children.map(e.children,e=>e&&(0,n.cloneElement)(e,{source:a}))||null}let P=0;function F(e){let t=(0,n.useContext)(M).map.getMap(),r=(0,n.useRef)(e),[,i]=(0,n.useState)(0),a=(0,n.useMemo)(()=>e.id||`jsx-layer-${P++}`,[]);if((0,n.useEffect)(()=>{if(t){let e=()=>i(e=>e+1);return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(a)&&t.removeLayer(a)}}},[t]),t&&t.style&&t.getLayer(a))try{!function(e,t,r,n){if(R(r.id===n.id,"layer id changed"),R(r.type===n.type,"layer type changed"),"custom"===r.type||"custom"===n.type)return;let{layout:i={},paint:a={},filter:s,minzoom:l,maxzoom:u,beforeId:c}=r;if(c!==n.beforeId&&e.moveLayer(t,c),i!==n.layout){let r=n.layout||{};for(let n in i)o(i[n],r[n])||e.setLayoutProperty(t,n,i[n]);for(let n in r)i.hasOwnProperty(n)||e.setLayoutProperty(t,n,void 0)}if(a!==n.paint){let r=n.paint||{};for(let n in a)o(a[n],r[n])||e.setPaintProperty(t,n,a[n]);for(let n in r)a.hasOwnProperty(n)||e.setPaintProperty(t,n,void 0)}o(s,n.filter)||e.setFilter(t,s),(l!==n.minzoom||u!==n.maxzoom)&&e.setLayerZoomRange(t,l,u)}(t,a,e,r.current)}catch(e){console.warn(e)}else if(t.style&&t.style._loaded&&(!("source"in e)||t.getSource(e.source))){let r={...e,id:a};delete r.beforeId,t.addLayer(r,e.beforeId)}return r.current=e,null}},76586:(e,t,r)=>{"use strict";r.d(t,{A:()=>tT});let n=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,r){let s,l,u,c=(t-e)/Math.max(0,r),d=Math.floor(Math.log10(c)),h=c/Math.pow(10,d),f=h>=n?10:h>=i?5:h>=a?2:1;return(d<0?(s=Math.round(e*(u=Math.pow(10,-d)/f)),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(s=Math.round(e/(u=Math.pow(10,d)*f)),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2)?o(e,t,2*r):[s,l,u]}function s(e,t,r){return o(e*=1,t*=1,r*=1)[2]}function l(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function u(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function c(e){let t,r,n;function i(e,n,a=0,o=e.length){if(a<o){if(0!==t(n,n))return o;do{let t=a+o>>>1;0>r(e[t],n)?a=t+1:o=t}while(a<o)}return a}return 2!==e.length?(t=l,r=(t,r)=>l(e(t),r),n=(t,r)=>e(t)-r):(t=e===l||e===u?e:d,r=e,n=e),{left:i,center:function(e,t,r=0,a=e.length){let o=i(e,t,r,a-1);return o>r&&n(e[o-1],t)>-n(e[o],t)?o-1:o}
1,right:function(e,n,i=0,a=e.length){if(i<a){if(0!==t(n,n))return a;do{let t=i+a>>>1;0>=r(e[t],n)?i=t+1:a=t}while(i<a)}return i}}}function d(){return 0}let h=c(l),f=h.right;function m(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function p(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function g(){}h.left,c(function(e){return null===e?NaN:+e}).center;var y,v,w,b,x="\\s*([+-]?\\d+)\\s*",k="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3,8})$/,S=RegExp(`^rgb\\(${x},${x},${x}\\)$`),T=RegExp(`^rgb\\(${M},${M},${M}\\)$`),N=RegExp(`^rgba\\(${x},${x},${x},${k}\\)$`),O=RegExp(`^rgba\\(${M},${M},${M},${k}\\)$`),C=RegExp(`^hsl\\(${k},${M},${M}\\)$`),D=RegExp(`^hsla\\(${k},${M},${M},${k}\\)$`),A={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function R(){return this.rgb().formatHex()}function I(){return this.rgb().formatRgb()}function _(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=E.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?P(t):3===r?new j(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?F(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?F(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=S.exec(e))?new j(t[1],t[2],t[3],1):(t=T.exec(e))?new j(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=N.exec(e))?F(t[1],t[2],t[3],t[4]):(t=O.exec(e))?F(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=C.exec(e))?q(t[1],t[2]/100,t[3]/100,1):(t=D.exec(e))?q(t[1],t[2]/100,t[3]/100,t[4]):A.hasOwnProperty(e)?P(A[e]):"transparent"===e?new j(NaN,NaN,NaN,0):null}function P(e){return new j(e>>16&255,e>>8&255,255&e,1)}function F(e,t,r,n){return n<=0&&(e=t=r=NaN),new j(e,t,r,n)}function L(e){return(e instanceof g||(e=_(e)),e)?new j((e=e.rgb()).r,e.g,e.b,e.opacity):new j}function $(e,t,r,n){return 1==arguments.length?L(e):new j(e,t,r,null==n?1:n)}function j(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function V(){return`#${Z(this.r)}${Z(this.g)}${Z(this.b)}`}function W(){let e=z(this.opacity);return`${1===e?"rgb(":"rgba("}${U(this.r)}, ${U(this.g)}, ${U(this.b)}${1===e?")":`, ${e})`}`}function z(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function U(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Z(e){return((e=U(e))<16?"0":"")+e.toString(16)}function q(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new B(e,t,r,n)}function H(e){if(e instanceof B)return new B(e.h,e.s,e.l,e.opacity);if(e instanceof g||(e=_(e)),!e)return new B;if(e instanceof B)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(r-n)/s+(r<n)*6:r===a?(n-t)/s+2:(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new B(o,s,l,e.opacity)}function Y(e,t,r,n){return 1==arguments.length?H(e):new B(e,t,r,null==n?1:n)}function B(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function G(e){return(e=(e||0)%360)<0?e+360:e}function J(e){return Math.max(0,Math.min(1,e||0))}function K(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function X(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}m(g,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return H(this).formatHsl()},formatRgb:I,toString:I}
1),m(j,$,p(g,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new j(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new j(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new j(U(this.r),U(this.g),U(this.b),z(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:V,formatHex:V,formatHex8:function(){return`#${Z(this.r)}${Z(this.g)}${Z(this.b)}${Z((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:W,toString:W})),m(B,Y,p(g,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new B(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new B(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new j(K(e>=240?e-240:e+120,i,n),K(e,i,n),K(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new B(G(this.h),J(this.s),J(this.l),z(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(){let e=z(this.opacity);return`${1===e?"hsl(":"hsla("}${G(this.h)}, ${100*J(this.s)}%, ${100*J(this.l)}%${1===e?")":`, ${e})`}`}}));let Q=e=>()=>e;function ee(e,t){return function(r){return e+r*t}}function et(e,t){var r=t-e;return r?ee(e,r>180||r<-180?r-360*Math.round(r/360):r):Q(isNaN(e)?t:e)}function er(e,t){var r=t-e;return r?ee(e,r):Q(isNaN(e)?t:e)}let en=function e(t){var r,n=1==(r=+t)?er:function(e,t){var n,i,a;return t-e?(n=e,i=t,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(e){return Math.pow(n+e*i,a)}):Q(isNaN(e)?t:e)};function i(e,t){var r=n((e=$(e)).r,(t=$(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=er(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function ei(e){return function(t){var r,n,i=t.length,a=Array(i),o=Array(i),s=Array(i);for(r=0;r<i;++r)n=$(t[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=e(a),o=e(o),s=e(s),n.opacity=1,function(e){return n.r=a(e),n.g=o(e),n.b=s(e),n+""}}}ei(function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n<t-1?e[n+2]:2*a-i;return X((r-n/t)*t,o,i,a,s)}}),ei(function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return X((r-n/t)*t,i,a,o,s)}});function ea(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}var eo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,es=RegExp(eo.source,"g");function el(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?Q(t):("number"===i?ea:"string"===i?(n=_(t))?(t=n,en):function(e,t){var r,n,i,a,o,s=eo.lastIndex=es.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=eo.exec(e))&&(a=es.exec(t));)(o=a.index)>s&&(o=t.slice(s,o),u[l]?u[l]+=o:u[++l]=o),(i=i[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,c.push({i:l,x:ea(i,a)})),s=es.lastIndex;return s<t.length&&(o=t.slice(s),u[l]?u[l]+=o:u[++l]=o),u.length<2?c[0]?(r=c[0].x,function(e){return r(e)+""}):(n=t,function(){return n}):(t=c.length,function(e){for(var r,n=0;n<t;++n)u[(r=c[n]).i]=r.x(e);return u.join("")})}:t instanceof _?en:t instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(n){return r.setTime(e*(1-n)+t*n),r}}:!ArrayBuffer.isView(r=t)||r instanceof DataView?Array.isArray(t)?function(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,a=Array(i),o=Array(n);for(r=0;r<i;++r)a[r]=el(e[r],t[r]);for(;r<n;++r)o[r]=t[r];return function(e){for(r=0;r<i;++r)o[r]=a[r](e);return o}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var r,n={},i={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)r in e?n[r]=el(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}:ea:function(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(r=0;r<n;++r)i[r]=e[r]*(1-a)+t[r]*a;return i}})(e,t)}function eu(e,t){return e*=1,t*=1,function(r){return Math.round(e*(1-r)+t*r)}}function ec(e){return+e}var ed=[0,1];function eh(e){return e}function ef(e,t){var r;return(t-=e*=1)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r})}function em(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=ef(i,n),a=r(o,a)):(n=ef(n,i),a=r(a,o)),function(e){return a(n(e))}}function ep(e,t,r){var n=Math.min(e.length,t.length)-1,i=Array(n),a=Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=ef(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(t){var r=f(e,t,1,n)-1;return a[r](i[r](t))}}function eg(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var ey=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ev(e){var t;if(!(t=ey.exec(e)))throw Error("invalid format: "+e);
1return new ew({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 ew(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 eb(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ex(e){return(e=eb(Math.abs(e)))?e[1]:NaN}function ek(e,t){var r=eb(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}ev.prototype=ew.prototype,ew.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};let eM={"%":(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)=>ek(100*e,t),r:ek,s:function(e,t){var r=eb(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(y=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+Array(1-a).join("0")+eb(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eE(e){return e}var eS=Array.prototype.map,eT=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];w=(v=function(e){var t,r,n,i=void 0===e.grouping||void 0===e.thousands?eE:(t=eS.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return a.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?eE:(n=eS.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return n[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"â":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=ev(e)).fill,r=e.align,n=e.sign,h=e.symbol,f=e.zero,m=e.width,p=e.comma,g=e.precision,v=e.trim,w=e.type;"n"===w?(p=!0,w="g"):eM[w]||(void 0===g&&(g=12),v=!0,w="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var b="$"===h?a:"#"===h&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x="$"===h?o:/[%p]/.test(w)?u:"",k=eM[w],M=/[defgprs%]/.test(w);function E(e){var a,o,u,h=b,E=x;if("c"===w)E=k(e)+E,e="";else{var S=(e*=1)<0||1/e<0;
1if(e=isNaN(e)?d:k(Math.abs(e),g),v&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==n&&(S=!1),h=(S?"("===n?n:c:"-"===n||"("===n?"":n)+h,E=("s"===w?eT[8+y/3]:"")+E+(S&&"("===n?")":""),M){for(a=-1,o=e.length;++a<o;)if(48>(u=e.charCodeAt(a))||u>57){E=(46===u?s+e.slice(a+1):e.slice(a))+E,e=e.slice(0,a);break}}}p&&!f&&(e=i(e,1/0));var T=h.length+e.length+E.length,N=T<m?Array(m-T+1).join(t):"";switch(p&&f&&(e=i(N+e,N.length?m-E.length:1/0),N=""),r){case"<":e=h+e+E+N;break;case"=":e=h+N+e+E;break;case"^":e=N.slice(0,T=N.length>>1)+h+e+E+N.slice(T);break;default:e=N+h+e+E}return l(e)}return g=void 0===g?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return e+""},E}return{format:h,formatPrefix:function(e,t){var r=h(((e=ev(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(ex(t)/3))),i=Math.pow(10,-n),a=eT[8+n/3];return function(e){return r(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,b=v.formatPrefix;let eN=Math.PI/180,eO=180/Math.PI,eC=4/29,eD=6/29,eA=6/29*3*(6/29),eR=6/29*(6/29)*(6/29);function eI(e){if(e instanceof eP)return new eP(e.l,e.a,e.b,e.opacity);if(e instanceof eW)return ez(e);e instanceof j||(e=L(e));var t,r,n=ej(e.r),i=ej(e.g),a=ej(e.b),o=eF((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&&i===a?t=r=o:(t=eF((.4360747*n+.3850649*i+.1430804*a)/.96422),r=eF((.0139322*n+.0971045*i+.7141733*a)/.82521)),new eP(116*o-16,500*(t-o),200*(o-r),e.opacity)}function e_(e,t,r,n){return 1==arguments.length?eI(e):new eP(e,t,r,null==n?1:n)}function eP(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function eF(e){return e>eR?Math.pow(e,1/3):e/eA+eC}function eL(e){return e>eD?e*e*e:eA*(e-eC)}function e$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ej(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function eV(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof eW)return new eW(e.h,e.c,e.l,e.opacity);if(e instanceof eP||(e=eI(e)),0===e.a&&0===e.b)return new eW(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*eO;return new eW(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new eW(e,t,r,null==n?1:n)}function eW(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ez(e){if(isNaN(e.h))return new eP(e.l,0,0,e.opacity);var t=e.h*eN;return new eP(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function eU(e){return function(t,r){var n=e((t=eV(t)).h,(r=eV(r)).h),i=er(t.c,r.c),a=er(t.l,r.l),o=er(t.opacity,r.opacity);return function(e){return t.h=n(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+""}}}m(eP,e_,p(g,{brighter(e){return new eP(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eP(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=.96422*eL(t),new j(e$(3.1338561*t-1.6168667*(e=+eL(e))-.4906146*(r=.82521*eL(r))),e$(-.9787684*t+1.9161415*e+.033454*r),e$(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),m(eW,eV,p(g,{brighter(e){return new eW(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new eW(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ez(this).rgb()}}));let eZ=eU(et);var eq=eU(er);function eH(e){return function(t,r){var n=e((t=Y(t)).h,(r=Y(r)).h),i=er(t.s,r.s),a=er(t.l,r.l),o=er(t.opacity,r.opacity);return function(e){return t.h=n(e),t.s=i(e),t.l=a(e),t.opacity=o(e),t+""}}}let eY=eH(et);var eB=eH(er),eG=-1.78277*.29227-.1347134789;function eJ(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof eK)return new eK(e.h,e.s,e.l,e.opacity);e instanceof j||(e=L(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(eG*n+-1.7884503806*t-3.5172982438*r)/(eG+-1.7884503806-3.5172982438),a=n-i,o=-((1.97294*(r-i)- -.29227*a)/.90649),s=Math.sqrt(o*o+a*a)/(1.97294*i*(1-i)),l=s?Math.atan2(o,a)*eO-120:NaN;return new eK(l<0?l+360:l,s,i,e.opacity)}(e):new eK(e,t,r,null==n?1:n)}function eK(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function eX(e){return function t(r){function n(t,n){var i=e((t=eJ(t)).h,(n=eJ(n)).h),a=er(t.s,n.s),o=er(t.l,n.l),s=er(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,r)),t.opacity=s(e),t+""}}return r*=1,n.gamma=t,n}(1)}
1m(eK,eJ,p(g,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new eK(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eK(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*eN,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new j(255*(t+r*(-.14861*n+1.78277*i)),255*(t+r*(-.29227*n+-.90649*i)),255*(t+1.97294*n*r),this.opacity)}}));var eQ={lab:function(e,t){var r=er((e=e_(e)).l,(t=e_(t)).l),n=er(e.a,t.a),i=er(e.b,t.b),a=er(e.opacity,t.opacity);return function(t){return e.l=r(t),e.a=n(t),e.b=i(t),e.opacity=a(t),e+""}},hcl:eZ,"hcl-long":eq,hsl:eY,"hsl-long":eB,cubehelix:eX(et),"cubehelix-long":eX(er),rgb:en};let e0=new Date,e1=new Date;function e2(e,t,r,n){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{let t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,a)=>{let o,s=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n)||!(a>0))return s;do s.push(o=new Date(+r)),t(r,a),e(r);while(o<r&&r<n);return s},i.filter=r=>e2(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(e0.setTime(+t),e1.setTime(+n),e(e0),e(e1),Math.floor(r(e0,e1))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(n?t=>n(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let e3=e2(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);e3.range;let e4=e2(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);e4.range,e2(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)).range;let e6=e2(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());e6.range;let e5=e2(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());e5.range;let e8=e2(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());e8.range;let e9=e2(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());e9.range;let e7=e2(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());e7.range;let te=e2(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());te.range;let tt=e2(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());function tr(e){return e2(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())*6e4)/6048e5)}tt.range;let tn=tr(0),ti=tr(1),ta=tr(2),to=tr(3),ts=tr(4),tl=tr(5),tu=tr(6);function tc(e){return e2(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)/6048e5)}tn.range,ti.range,ta.range,to.range,ts.range,tl.range,tu.range;let td=tc(0),th=tc(1),tf=tc(2),tm=tc(3),tp=tc(4),tg=tc(5),ty=tc(6);td.range,th.range,tf.range,tm.range,tp.range,tg.range,ty.range;let tv=e2(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());tv.every=e=>isFinite(e=Math.floor(e))&&e>0?e2(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,tv.range;let tw=e2(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());tw.every=e=>isFinite(e=Math.floor(e))&&e>0?e2(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,tw.range;var tb=new Date(Date.UTC(2020,1,2,3,4,5)),tx={day:e3,hour:e6,minute:e8,month:e7,second:tt,week:tn,year:tv},tk={day:e4,hour:e5,minute:e9,month:te,second:tt,week:td,year:tw}
1,tM=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],tE={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var r=t.nice;if("boolean"==typeof r)r&&e.nice();else if("number"==typeof r)e.nice(r);else{var n="2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(tb);if("string"==typeof r)e.nice(n?tk[r]:tx[r]);else{var i=r.interval,a=r.step,o=(n?tk[i]:tx[i]).every(a);null!=o&&e.nice(o)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var r=e.domain(),n=r[0],i=r[1],a=i<n,o=a?[i,n]:[n,i],s=[Math.min(0,o[0]),Math.max(0,o[1])];e.domain(a?s.reverse():s)}},interpolate:function(e,t){if("interpolate"in t&&"interpolate"in e&&void 0!==t.interpolate){var r=function(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return eQ[e]}var t=e.type,r=e.gamma,n=eQ[t];return void 0===r?n:n.gamma(r)}(t.interpolate);e.interpolate(r)}},round:function(e,t){"round"in t&&void 0!==t.round&&(t.round&&"interpolate"in t&&void 0!==t.interpolate?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(eu))},align:function(e,t){"align"in e&&"align"in t&&void 0!==t.align&&e.align(t.align)},base:function(e,t){"base"in e&&"base"in t&&void 0!==t.base&&e.base(t.base)},clamp:function(e,t){"clamp"in e&&"clamp"in t&&void 0!==t.clamp&&e.clamp(t.clamp)},constant:function(e,t){"constant"in e&&"constant"in t&&void 0!==t.constant&&e.constant(t.constant)},exponent:function(e,t){"exponent"in e&&"exponent"in t&&void 0!==t.exponent&&e.exponent(t.exponent)},padding:function(e,t){"padding"in e&&"padding"in t&&void 0!==t.padding&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&void 0!==t.paddingInner&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&void 0!==t.paddingOuter&&e.paddingOuter(t.paddingOuter)},range:function(e,t){t.range&&e.range(t.range)},reverse:function(e,t){if(t.reverse){var r=e.range().slice().reverse();e.range(r)}},unknown:function(e,t){"unknown"in e&&"unknown"in t&&void 0!==t.unknown&&e.unknown(t.unknown)}},tS=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=new Set(t),i=tM.filter(function(e){return n.has(e)});return function(e,t){return void 0!==t&&i.forEach(function(r){tE[r](e,t)}),e}}("domain","range","reverse","clamp","interpolate","nice","round","zero");function tT(e){return tS(function e(){var t,r=(function(){var e,t,r,n,i,a,o=ed,s=ed,l=el,u=eh;function c(){var e,t,r,l=Math.min(o.length,s.length);return u!==eh&&(e=o[0],t=o[l-1],e>t&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=l>2?ep:em,i=a=null,d}function d(t){return null==t||isNaN(t*=1)?r:(i||(i=n(o.map(e),s,l)))(e(u(t)))}return d.invert=function(r){return u(t((a||(a=n(s,o.map(e),ea)))(r)))},d.domain=function(e){return arguments.length?(o=Array.from(e,ec),c()):o.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=eu,c()},d.clamp=function(e){return arguments.length?(u=!!e||eh,c()):u!==eh},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,c()}})()(eh,eh);return r.copy=function(){return e().domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())},eg.apply(r,arguments),t=r.domain,r.ticks=function(e){var r=t();return function(e,t,r){if(t*=1,e*=1,!((r*=1)>0))return[];if(e===t)return[e];let n=t<e,[i,a,s]=n?o(t,e,r):o(e,t,r);if(!(a>=i))return[];let l=a-i+1,u=Array(l);if(n)if(s<0)for(let e=0;e<l;++e)u[e]=-((a-e)/s);else for(let e=0;e<l;++e)u[e]=(a-e)*s;else if(s<0)for(let e=0;e<l;++e)u[e]=-((i+e)/s);else for(let e=0;e<l;++e)u[e]=(i+e)*s;return u}(r[0],r[r.length-1],null==e?10:e)},r.tickFormat=function(e,r){var n=t();return function(e,t,r,n){var i,a,o,l=function(e,t,r){t*=1,e*=1,r*=1;let n=t<e,i=n?s(t,e,r):s(e,t,r);return(n?-1:1)*(i<0?-(1/i):i)}(e,t,r);switch((n=ev(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(e),Math.abs(t));return null==n.precision&&!isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ex(u)/3)))-ex(Math.abs(l))))&&(n.precision=o),b(n,u);case"":case"e":case"g":case"p":case"r":null==n.precision&&!isNaN(o=Math.max(0,ex(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=l)))-ex(i))+1)&&(n.precision=o-("e"===n.type));break;case"f":case"%":null==n.precision&&!isNaN(o=Math.max(0,-ex(Math.abs(l))))&&(n.precision=o-("%"===n.type)*2)}return w(n)}(n[0],n[n.length-1],null==e?10:e,r)},r.nice=function(e){null==e&&(e=10);
1var n,i,a=t(),o=0,l=a.length-1,u=a[o],c=a[l],d=10;for(c<u&&(i=u,u=c,c=i,i=o,o=l,l=i);d-- >0;){if((i=s(u,c,e))===n)return a[o]=u,a[l]=c,t(a);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else if(i<0)u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i;else break;n=i}return r},r}(),e)}},79706:(e,t,r)=>{"use strict";var n=r(3717);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return r.PropTypes=r,r}},80347:(e,t,r)=>{"use strict";var n=r(8618);function i(e,t){for(var r=0;r<e.length;r++)e[r]+=t;return e}for(var a=[{token:"sin",show:"sin",type:0,value:n.math.sin},{token:"cos",show:"cos",type:0,value:n.math.cos},{token:"tan",show:"tan",type:0,value:n.math.tan},{token:"pi",show:"π",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:n.math.P},{token:"C",show:"C",type:10,value:n.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:n.math.asin},{token:"acos",show:"acos",type:0,value:n.math.acos},{token:"atan",show:"atan",type:0,value:n.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:n.math.cosh},{token:"acosh",show:"acosh",type:0,value:n.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"÷",type:2,value:n.math.div},{token:"!",show:"!",type:7,value:n.math.fact},{token:"tanh",show:"tanh",type:0,value:n.math.tanh},{token:"atanh",show:"atanh",type:0,value:n.math.atanh},{token:"Mod",show:" Mod ",type:2,value:n.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"×",type:2,value:n.math.mul},{token:"sinh",show:"sinh",type:0,value:n.math.sinh},{token:"asinh",show:"asinh",type:0,value:n.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:n.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:n.math.add},{token:"-",show:"-",type:9,value:n.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"Σ",type:12,value:n.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"Π",type:12,value:n.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:n.math.and}],o={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},s=0;s<a.length;s++)a[s].precedence=o[a[s].type];var l={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},u={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},c={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},d={},h={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},f={1:!0},m=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function p(e,t){for(var r=0;r<t.length;r++)if(t[r].token===e)return r;return -1}n.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},n.addToken=function(e){for(var t=0;t<e.length;t++){var r=e[t].token.length,i=-1;e[t].type===n.tokenTypes.FUNCTION_WITH_N_ARGS&&void 0===e[t].numberOfArguments&&(e[t].numberOfArguments=2),m[r]=m[r]||[];for(var s=0;s<m[r].length;s++)if(e[t].token===m[r][s]){i=p(m[r][s],a);break}-1===i?(a.push(e[t]),e[t].precedence=o[e[t].type],m.length<=e[t].token.length&&(m[e[t].token.length]=[]),m[e[t].token.length].push(e[t].token)):(a[i]=e[t],e[t].precedence=o[e[t].type])}};var g={value:n.math.changeSign,type:0,pre:21,show:"-"},y={value:")",show:")",type:5,pre:0},v={value:"(",type:4,pre:0,show:"("};n.lex=function(e,t){var r=[v],o=[],s=l,w=0,b=d,x="";void 0!==t&&n.addToken(t);var k={},M=function(e){for(var t,r,i,o=[],s=e.length,l=0;l<s;l++)if(!(l<s-1)||" "!==e[l]||" "!==e[l+1]){for(t="",r=e.length-l>m.length-2?m.length-1:e.length-l;r>0;r--)if(void 0!==m[r])for(i=0;i<m[r].length;i++)(function(e,t,r,n){for(var i=0;i<n;i++)if(e[r+i]!==t[i])return!1;return!0})(e,m[r][i],l,r)&&(t=m[r][i],i=m[r].length,r=0);if(l+=t.length-1,""===t)throw new n.Exception("Can't understand after "+e.slice(l));o.push(a[p(t,a)])}return o}(e);for(E=0;E<M.length;E++){var E,S,T=M[E];if(14===T.type){if(E>0&&E<M.length-1&&1===M[E+1].type&&(1===M[E-1].type||6===M[E-1].type))throw new n.Exception("Unexpected Space");continue}var N=T.token,O=T.type,C=T.value,D=T.precedence,A=T.show,R=r[r.length-1];for(S=o.length;S--;)if(0===o[S]){if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(O)){if(!0!==s[O])throw new n.Exception(N+" is not allowed after "+x);r.push(y),s=u,b=h,o.pop()}}else break;if(!0!==s[O])throw new n.Exception(N+" is not allowed after "+x);if(!0===b[O]&&(O=2,C=n.math.mul,A="×",D=3,E-=1),k={value:C,type:O,pre:D,show:A,numberOfArguments:T.numberOfArguments},0===O)s=l,b=d,i(o,2),r.push(k),4!==M[E+1].type&&(r.push(v),o.push(2));else if(1===O)1===R.type?(R.value+=C,i(o,1)):r.push(k),s=u,b=c;else if(2===O)s=l,b=d,i(o,2),r.push(k);else if(3===O)r.push(k),s=u,b=h;else if(4===O)i(o,1),w++,s=l,b=d,r.push(k);else if(5===O){if(!w)throw new n.Exception("Closing parenthesis are more than opening one, wait What!!!");w--,s=u,b=h,r.push(k),i(o,1)}else if(6===O){if(R.hasDec)throw new n.Exception("Two decimals are not allowed in one number");1!==R.type&&(R={value:0,type:1,pre:0},r.push(R)),s=f,i(o,1),b=d,R.value+=C,R.hasDec=!0}else 7===O&&(s=u,b=h,i(o,1),r.push(k));8===O?(s=l,b=d,i(o,T.numberOfArguments+2),r.push(k),4!==M[E+1].type&&(r.push(v),o.push(T.numberOfArguments+2))):9===O?(9===R.type?R.value===n.math.add?(R.value=C,R.show=A,i(o,1)):R.value===n.math.sub&&"-"===A&&(R.value=n.math.add,R.show="+",i(o,1)):5!==R.type&&7!==R.type&&1!==R.type&&3!==R.type&&13!==R.type?"-"===N&&(s=l,b=d,i(o,2).push(2),r.push(g),r.push(v)):(r.push(k),i(o,2)),s=l,b=
1d):10===O?(s=l,b=d,i(o,2),r.push(k)):11===O?(s=l,b=d,r.push(k)):12===O?(s=l,b=d,i(o,6),r.push(k),4!==M[E+1].type&&(r.push(v),o.push(6))):13===O&&(s=u,b=h,r.push(k)),i(o,-1),x=N}for(S=o.length;S--;)r.push(y);if(!0!==s[5])throw new n.Exception("complete the expression");for(;w--;)r.push(y);return r.push(y),new n(r)},e.exports=n},82461:(e,t,r)=>{"use strict";r.d(t,{uB:()=>ey});var n=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,o=/[\s-]/g;function s(e){return e.toLowerCase().replace(o," ")}var l=r(14232),u=r(33716),c=r(10714),d=r(91844),h=r(70294),f=r(58162),m=r(73520),p=r(90870),g=r(31893),y=r(96822),v=r(66326),w=r(22658),b=r(86324),x=r(94769),k=r(82987),M=r(37876),E="Dialog",[S,T]=(0,d.A)(E),[N,O]=S(E),C=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=l.useRef(null),u=l.useRef(null),[c=!1,d]=(0,f.i)({prop:n,defaultProp:i,onChange:a});return(0,M.jsx)(N,{scope:t,triggerRef:s,contentRef:u,contentId:(0,h.B)(),titleId:(0,h.B)(),descriptionId:(0,h.B)(),open:c,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(e=>!e),[d]),modal:o,children:r})};C.displayName=E;var D="DialogTrigger";l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=O(D,r),a=(0,c.s)(t,i.triggerRef);return(0,M.jsx)(v.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":H(i.open),...n,ref:a,onClick:(0,u.m)(e.onClick,i.onOpenToggle)})}).displayName=D;var A="DialogPortal",[R,I]=S(A,{forceMount:void 0}),_=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,a=O(A,t);return(0,M.jsx)(R,{scope:t,forceMount:r,children:l.Children.map(n,e=>(0,M.jsx)(y.C,{present:r||a.open,children:(0,M.jsx)(g.Z,{asChild:!0,container:i,children:e})}))})};_.displayName=A;var P="DialogOverlay",F=l.forwardRef((e,t)=>{let r=I(P,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=O(P,e.__scopeDialog);return a.modal?(0,M.jsx)(y.C,{present:n||a.open,children:(0,M.jsx)(L,{...i,ref:t})}):null});F.displayName=P;var L=l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=O(P,r);return(0,M.jsx)(b.A,{as:k.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,M.jsx)(v.sG.div,{"data-state":H(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),$="DialogContent",j=l.forwardRef((e,t)=>{let r=I($,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=O($,e.__scopeDialog);return(0,M.jsx)(y.C,{present:n||a.open,children:a.modal?(0,M.jsx)(V,{...i,ref:t}):(0,M.jsx)(W,{...i,ref:t})})});j.displayName=$;var V=l.forwardRef((e,t)=>{let r=O($,e.__scopeDialog),n=l.useRef(null),i=(0,c.s)(t,r.contentRef,n);return l.useEffect(()=>{let e=n.current;if(e)return(0,x.Eq)(e)},[]),(0,M.jsx)(z,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,u.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,u.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,u.m)(e.onFocusOutside,e=>e.preventDefault())})}),W=l.forwardRef((e,t)=>{let r=O($,e.__scopeDialog),n=l.useRef(!1),i=l.useRef(!1);return(0,M.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),z=l.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=O($,r),u=l.useRef(null),d=(0,c.s)(t,u);return(0,w.Oh)(),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(p.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,M.jsx)(m.qW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":H(s.open),...o,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(J,{titleId:s.titleId}),(0,M.jsx)(K,{contentRef:u,descriptionId:s.descriptionId})]})]})}),U="DialogTitle";l.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,i=O(U,r);return(0,M.jsx)(v.sG.h2,{id:i.titleId,...n,ref:t})}).displayName=U;var Z="DialogDescription";l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=O(Z,r);return(0,M.jsx)(v.sG.p,{id:i.descriptionId,...n,ref:t})}).displayName=Z;var q="DialogClose";function H(e){return e?"open":"closed"}l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=O(q,r);return(0,M.jsx)(v.sG.button,{type:"button",...n,ref:t,onClick:(0,u.m)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=q;var Y="DialogTitleWarning",[B,G]=(0,d.q)(Y,{contentName:$,titleName:U,docsSlug:"dialog"}),J=({titleId:e})=>{let t=G(Y),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},K=({contentRef:e,descriptionId:t})=>{let r=G("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return l.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(n)},[n,e,t]),null},X='[cmdk-group=""]',Q='[cmdk-group-items=""]',ee='[cmdk-item=""]',et=`${ee}:not([aria-disabled="true"])`,er="cmdk-item-select",en="data-value",ei=(e,t,r)=>(function(e,t,r){return function e(t,r,s,l,u,c,d){if(c===r.length)return u===t.length?1:.99;var h=`${u},${c}`;if(void 0!==d[h])return d[h];for(var f,m,p,g,y=l.charAt(c),v=s.indexOf(y,u),w=0;v>=0;)(f=e(t,r,s,l,v+1,c+1,d))>w&&(v===u?f*=1:n.test(t.charAt(v-1))?(f*=.8,(p=t.slice(u,v-1).match(i))&&u>0&&(f*=Math.pow(.999,p.length))):a.test(t.charAt(v-1))?(f*=.9,(g=t.slice(u,v-1).match(o))&&u>0&&(f*=Math.pow(.999,g.length))):(f*=.17,u>0&&(f*=Math.pow(.999,v-u))),t.charAt(v)!==r.charAt(c)&&(f*=.9999)),(f<.1&&s.charAt(v-1)===l.charAt(c+1)||l.charAt(c+1)===l.charAt(c)&&s.charAt(v-1)!==l.charAt(c))&&.1*(m=e(t,r,s,l,v+1,c+2,d))>f&&(f=.1*m),f>w&&(w=f),v=s.indexOf(y,v+1);return d[h]=w,w}(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,s(e),s(t),0,0,{})})(e,t,r),ea=l.createContext(void 0),eo=()=>l.useContext(ea),es=l.createContext(void 0),el=()=>l.useContext(es),eu=l.createContext(void 0),ec=l.forwardRef((e,t)=>{let r=eb(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=eb(()=>new Set),i=eb(()=>new Map),a=eb(()=>new Map),o=eb(()=>new Set),s=ev(e),{label:u,children:c,value:d,onValueChange:f,filter:m,shouldFilter:p,loop:g,disablePointerSelection:y=!1,vimBindings:w=!0,...b}=e,x=(0,h.B)(),k=(0,h.B)(),M=(0,h.B)(),E=l.useRef(null),S=eM();ew(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,T.emit()}},[d]),ew(()=>{S(6,R)},[]);let T=l.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)A(),C(),S(1,D);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(M);e?e.focus():null==(i=document.getElementById(x))||i.focus()}if(S(7,()=>{var e;r.current.selectedItemId=null==(e=I())?void 0:e.id,T.emit()}),n||S(5,R),(null==(a=s.current)?void 0:a.value)!==void 0){null==(l=(o=s.current).onValueChange)||l.call(o,null!=t?t:"");return}}T.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),N=l.useMemo(()=>({value:(e,t,n)=>{var i;t!==(null==(i=a.current.get(e))?void 0:i.value)&&(a.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,O(t,n)),S(2,()=>{C(),T.emit()}))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{A(),C(),r.current.value||D(),T.emit()}),()=>{a.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=I();S(4,()=>{A(),(null==t?void 0:t.getAttribute("id"))===e&&D(),T.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:M,labelId:k,listInnerRef:E}),[]);function O(e,t){var n,i;let a=null!=(i=null==(n=s.current)?void 0:n.filter)?i:ei;return e?a(e,r.current.search,t):0}function C(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=i.current.get(r),a=0;
5n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let n=E.current;_().sort((t,r)=>{var n,i;let a=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(i=e.get(a))?i:0)}).forEach(e=>{let t=e.closest(Q);t?t.appendChild(e.parentElement===t?e:e.closest(`${Q} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${Q} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=E.current)?void 0:t.querySelector(`${X}[${en}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function D(){let e=_().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(en);T.setState("value",t||void 0)}function A(){var e,t,o,l;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let i of n.current){let n=O(null!=(t=null==(e=a.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(o=a.current.get(i))?void 0:o.keywords)?l:[]);r.current.filtered.items.set(i,n),n>0&&u++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function R(){var e,t,r;let n=I();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(X))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function I(){var e;return null==(e=E.current)?void 0:e.querySelector(`${ee}[aria-selected="true"]`)}function _(){var e;return Array.from((null==(e=E.current)?void 0:e.querySelectorAll(et))||[])}function P(e){let t=_()[e];t&&T.setState("value",t.getAttribute(en))}function F(e){var t;let r=I(),n=_(),i=n.findIndex(e=>e===r),a=n[i+e];null!=(t=s.current)&&t.loop&&(a=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),a&&T.setState("value",a.getAttribute(en))}function L(e){let t=I(),r=null==t?void 0:t.closest(X),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,X):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,X))?void 0:r.querySelector(et);n?T.setState("value",n.getAttribute(en)):F(e)}let $=()=>P(_().length-1),j=e=>{e.preventDefault(),e.metaKey?$():e.altKey?L(1):F(1)},V=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?L(-1):F(-1)};return l.createElement(v.sG.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":w&&e.ctrlKey&&j(e);break;case"ArrowDown":j(e);break;case"p":case"k":w&&e.ctrlKey&&V(e);break;case"ArrowUp":V(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),$();break;case"Enter":{e.preventDefault();let t=I();if(t){let e=new Event(er);t.dispatchEvent(e)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:eS},u),eE(e,e=>l.createElement(es.Provider,{value:T},l.createElement(ea.Provider,{value:N},e))))}),ed=l.forwardRef((e,t)=>{var r,n;let i=(0,h.B)(),a=l.useRef(null),o=l.useContext(eu),s=eo(),u=ev(e),d=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==o?void 0:o.forceMount;ew(()=>{if(!d)return s.item(i,null==o?void 0:o.id)},[d]);let f=ek(i,a,[e.value,e.children,a],e.keywords),m=el(),p=ex(e=>e.value&&e.value===f.current),g=ex(e=>!!d||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function y(){var e,t;w(),null==(t=(e=u.current).onSelect)||t.call(e,f.current)}function w(){m.setState("value",f.current,!0)}if(l.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(er,y),()=>t.removeEventListener(er,y)},[g,e.onSelect,e.disabled]),!g)return null;let{disabled:b,value:x,onSelect:k,forceMount:M,keywords:E,...S}=e;return l.createElement(v.sG.div,{ref:(0,c.t)(a,t),...S,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||s.getDisablePointerSelection()?void 0:w,onClick:b?void 0:y},e.children)}),eh=l.forwardRef((e,t)=>
5{let{heading:r,children:n,forceMount:i,...a}=e,o=(0,h.B)(),s=l.useRef(null),u=l.useRef(null),d=(0,h.B)(),f=eo(),m=ex(e=>!!i||!1===f.filter()||!e.search||e.filtered.groups.has(o));ew(()=>f.group(o),[]),ek(o,s,[e.value,e.heading,u]);let p=l.useMemo(()=>({id:o,forceMount:i}),[i]);return l.createElement(v.sG.div,{ref:(0,c.t)(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!m||void 0},r&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),eE(e,e=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(eu.Provider,{value:p},e))))}),ef=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=l.useRef(null),a=ex(e=>!e.search);return r||a?l.createElement(v.sG.div,{ref:(0,c.t)(i,t),...n,"cmdk-separator":"",role:"separator"}):null}),em=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,a=el(),o=ex(e=>e.search),s=ex(e=>e.selectedItemId),u=eo();return l.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),l.createElement(v.sG.input,{ref:t,...n,"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":s,id:u.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||a.setState("search",e.target.value),null==r||r(e.target.value)}})}),ep=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,a=l.useRef(null),o=l.useRef(null),s=ex(e=>e.selectedItemId),u=eo();return l.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),l.createElement(v.sG.div,{ref:(0,c.t)(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:u.listId},eE(e,e=>l.createElement("div",{ref:(0,c.t)(o,u.listInnerRef),"cmdk-list-sizer":""},e)))}),eg=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:a,container:o,...s}=e;return l.createElement(C,{open:r,onOpenChange:n},l.createElement(_,{container:o},l.createElement(F,{"cmdk-overlay":"",className:i}),l.createElement(j,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(ec,{ref:t,...s}))))}),ey=Object.assign(ec,{List:ep,Item:ed,Input:em,Group:eh,Separator:ef,Dialog:eg,Empty:l.forwardRef((e,t)=>ex(e=>0===e.filtered.count)?l.createElement(v.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:l.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...a}=e;return l.createElement(v.sG.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},eE(e,e=>l.createElement("div",{"aria-hidden":!0},e)))})});function ev(e){let t=l.useRef(e);return ew(()=>{t.current=e}),t}var ew="undefined"==typeof window?l.useEffect:l.useLayoutEffect;function eb(e){let t=l.useRef();return void 0===t.current&&(t.current=e()),t}function ex(e){let t=el(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function ek(e,t,r,n=[]){let i=l.useRef(),a=eo();return ew(()=>{var o;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=n.map(e=>e.trim());a.value(e,s,l),null==(o=t.current)||o.setAttribute(en,s),i.current=s}),i}var eM=()=>{let[e,t]=l.useState(),r=eb(()=>new Map);return ew(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function eE({asChild:e,children:t},r){let n;return e&&l.isValidElement(t)?l.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var eS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86324:(e,t,r)=>{"use strict";r.d(t,{A:()=>Z});
5var n,i=r(4902),a=r(14232),o="right-scroll-bar-position",s="width-before-scroll-bar";function l(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var u="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,c=new WeakMap;function d(e){return e}var h=function(e){void 0===e&&(e={});var t,r,n,a,o=(t=null,void 0===r&&(r=d),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,a);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,i.Cl)({async:!0,ssr:!1},e),o}(),f=function(){},m=a.forwardRef(function(e,t){var r,n,o,s,d=a.useRef(null),m=a.useState({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:f}),p=m[0],g=m[1],y=e.forwardProps,v=e.children,w=e.className,b=e.removeScrollBar,x=e.enabled,k=e.shards,M=e.sideCar,E=e.noIsolation,S=e.inert,T=e.allowPinchZoom,N=e.as,O=e.gapMode,C=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(r=[d,t],n=function(e){return r.forEach(function(t){return l(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,s=o.facade,u(function(){var e=c.get(s);if(e){var t=new Set(e),n=new Set(r),i=s.current;t.forEach(function(e){n.has(e)||l(e,null)}),n.forEach(function(e){t.has(e)||l(e,i)})}c.set(s,r)},[r]),s),A=(0,i.Cl)((0,i.Cl)({},C),p);return a.createElement(a.Fragment,null,x&&a.createElement(M,{sideCar:h,removeScrollBar:b,shards:k,noIsolation:E,inert:S,setCallbacks:g,allowPinchZoom:!!T,lockRef:d,gapMode:O}),y?a.cloneElement(a.Children.only(v),(0,i.Cl)((0,i.Cl)({},A),{ref:D})):a.createElement(void 0===N?"div":N,(0,i.Cl)({},A,{className:w,ref:D}),v))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:s,zeroRight:o};var p=function(e){var t=e.sideCar,r=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,(0,i.Cl)({},r))};p.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},v=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},b=function(e){return parseInt(e||"",10)||0},x=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[b(r),b(n),b(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=x(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},M=v(),E="data-scroll-locked",S=function(e,t,r,n){var i=e.left,a=e.top,l=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(E,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";
5")].filter(Boolean).join(""),"\n }\n \n .").concat(o," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(s," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(o," .").concat(o," {\n right: 0 ").concat(n,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(E,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},T=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},N=function(){a.useEffect(function(){return document.body.setAttribute(E,(T()+1).toString()),function(){var e=T()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},O=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;N();var o=a.useMemo(function(){return k(i)},[i]);return a.createElement(M,{styles:S(o,!t,i,r?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){C=!1}var A=!!C&&{passive:!1},R=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},I=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_(e,n)){var i=P(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_=function(e,t){return"v"===e?R(t,"overflowY"):R(t,"overflowX")},P=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,r,n,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{var m=P(e,l),p=m[0],g=m[1]-m[2]-o*p;(p||g)&&_(e,l)&&(h+=g,f+=p),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},j=function(e){return e&&"current"in e?e.current:e},V=0,W=[];let z=(h.useMedium(function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(V++)[0],s=a.useState(v)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map(j),!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 u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var i,a=L(e),o=r.current,s="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[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 h=I(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=I(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=i),!i)return!0;var f=n.current||i;return F(f,t,e,"h"===f?s:u,!0)},[]),c=a.useCallback(function(e){if(W.length&&W[W.length-1]===s){var r="deltaY"in e?$(e):L(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(l.current.shards||[]).map(j).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,r,n,i){var a={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),h=a.useCallback(function(e){r.current=L(e),n.current=void 0},[]),f=a.useCallback(function(t){d(t.type,$(t),t.target,u(t,e.lockRef.current))},[]),m=a.useCallback(function(t){d(t.type,L(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return W.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,A),document.addEventListener("touchmove",c,A),document.addEventListener("touchstart",h,A),function(){W=W.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,A),document.removeEventListener("touchmove",c,A),document.removeEventListener("touchstart",h,A)}},[]);var p=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(s,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?a.createElement(O,{gapMode:e.gapMode}):null)}),p);var U=a.forwardRef(function(e,t){return a.createElement(m,(0,i.Cl)({},e,{ref:t,sideCar:z}))});U.classNames=m.classNames;let Z=U},87305:()=>{},88451:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var a=n(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,a,o,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],a=r.length;c>=0&&!s;
5)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())<a&&(a=i,o=u),u=r.indexOf(t,c+1)),c=l<u&&l>=0?l:u;n.length&&(s=[a,o])}return s}e.exports=t,t.range=n},90870:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(14232),i=r(10714),a=r(66326),o=r(62146),s=r(37876),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:y,...v}=e,[w,b]=n.useState(null),x=(0,o.c)(g),k=(0,o.c)(y),M=n.useRef(null),E=(0,i.s)(t,e=>b(e)),S=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(S.paused||!w)return;let t=e.target;w.contains(t)?M.current=t:m(M.current,{select:!0})},t=function(e){if(S.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||m(M.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(w)});return w&&r.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,w,S.paused]),n.useEffect(()=>{if(w){p.add(S);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(l,c);w.addEventListener(l,x),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(h(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(u,c);w.addEventListener(u,k),w.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),w.removeEventListener(u,k),p.remove(S)},0)}}},[w,x,k,S]);let T=n.useCallback(e=>{if(!r&&!d||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=function(e){let t=h(e);return[f(t,e),f(t.reverse(),e)]}(t);i&&a?e.shiftKey||n!==a?e.shiftKey&&n===i&&(e.preventDefault(),r&&m(a,{select:!0})):(e.preventDefault(),r&&m(i,{select:!0})):n===t&&e.preventDefault()}},[r,d,S.paused]);return(0,s.jsx)(a.sG.div,{tabIndex:-1,...v,ref:E,onKeyDown:T})});function h(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let 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(;r.nextNode();)t.push(r.currentNode);return t}function f(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var p=function(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=g(e,t)).unshift(t)},remove(t){e=g(e,t),e[0]?.resume()}}}();function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},94769:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>c});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,a=new WeakMap,o={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,r,n){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=l(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var c=o[r],d=[],h=new Set,f=new Set(u),m=function(e){!e||h.has(e)||(h.add(e),m(e.parentNode))};u.forEach(m);var p=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))p(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,s=(i.get(e)||0)+1,l=(c.get(e)||0)+1;i.set(e,s),c.set(e,l),d.push(e),1===s&&o&&a.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return p(t),h.clear(),s++,function(){d.forEach(function(e){var t=i.get(e)-1,o=c.get(e)-1;i.set(e,t),c.set(e,o),t||(a.has(e)||e.removeAttribute(n),a.delete(e)),o||e.removeAttribute(r)}),--s||(i=new WeakMap,i=new WeakMap,a=new WeakMap,o={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=t||n(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),u(i,a,r,"aria-hidden")):function(){return null}}},95062:(e,t,r)=>{e.exports=r(79706)()},98980:(e,t,r)=>{"use strict";r.d(t,{d:()=>p});var n=r(2572),i=r(11584),a=r(1044),o=r(36607),s=r(95264),l=r(99886
5),u=r(75273),c=r(37038),d=r(16406),h=r(14232),f=r(94482);let m=(0,h.createContext)(null),p=(0,h.forwardRef)(function(e,t){let{inputRef:r=null,...p}=e;[e,t]=(0,n.JT)(p,t,m);let g=(0,u.U)((0,c.P)(r,void 0!==e.inputRef?e.inputRef:null)),y=(0,f.H)(e),{labelProps:v,inputProps:w,isSelected:b,isDisabled:x,isReadOnly:k,isPressed:M}=function(e,t,r){let{labelProps:n,inputProps:a,isSelected:o,isPressed:s,isDisabled:l,isReadOnly:u}=(0,i.e)(e,t,r);return{labelProps:n,inputProps:{...a,role:"switch",checked:o},isSelected:o,isPressed:s,isDisabled:l,isReadOnly:u}}({...(0,n.SK)(e),children:"function"==typeof e.children||e.children},y,g),{isFocused:E,isFocusVisible:S,focusProps:T}=(0,a.o)(),N=e.isDisabled||e.isReadOnly,{hoverProps:O,isHovered:C}=(0,o.M)({...e,isDisabled:N}),D=(0,n.Sl)({...e,defaultClassName:"react-aria-Switch",values:{isSelected:b,isPressed:M,isHovered:C,isFocused:E,isFocusVisible:S,isDisabled:x,isReadOnly:k,state:y}}),A=(0,d.$)(e);return delete A.id,h.createElement("label",{...(0,s.v)(A,v,O,D),ref:t,slot:e.slot||void 0,"data-selected":b||void 0,"data-pressed":M||void 0,"data-hovered":C||void 0,"data-focused":E||void 0,"data-focus-visible":S||void 0,"data-disabled":x||void 0,"data-readonly":k||void 0},h.createElement(l.s,{elementType:"span"},h.createElement("input",{...(0,s.v)(w,T),ref:g})),D.children)})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.