@zydon/common 1.1.76 → 1.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(A,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("react-dom"),require("@mui/x-date-pickers-pro"),require("@mui/lab"),require("@mui/x-data-grid-premium"),require("@emotion/styled"),require("react-hook-form")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","react-dom","@mui/x-date-pickers-pro","@mui/lab","@mui/x-data-grid-premium","@emotion/styled","react-hook-form"],m):(A=typeof globalThis<"u"?globalThis:A||self,m(A.common={},A.React,A.material,A.react,A.reactDom,A.xDatePickersPro,A.lab,A.xDataGridPremium,A.emStyled,A.reactHookForm))})(this,function(A,m,E,vu,Nh,Yn,C5,Br,S5,Ee){"use strict";function E5(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=E5(m),Bh={duration:2,ease:[.43,.13,.23,.96]},T5={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Bh}},_5=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},xe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},_e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},pa=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,a=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:xe},exit:{opacity:0,transition:_e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},out:{initial:{opacity:1},animate:{opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:_e({durationOut:n,easeOut:a})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}}}},k5=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,a=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:_e({durationOut:n,easeOut:a})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:_e({durationOut:n,easeOut:a})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:_e({durationOut:n,easeOut:a})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:_e({durationOut:n,easeOut:a})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:xe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:xe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:xe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:xe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:xe({durationIn:r,easeIn:i})}}}},M5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:_e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:_e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:_e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:_e({durationOut:r,easeOut:i})}}}},O5=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,a=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:t,transition:_e({durationOut:n,easeOut:a})}},inDown:{initial:{y:-t},animate:{y:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:-t,transition:_e({durationOut:n,easeOut:a})}},inLeft:{initial:{x:-t},animate:{x:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:-t,transition:_e({durationOut:n,easeOut:a})}},inRight:{initial:{x:t},animate:{x:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:t,transition:_e({durationOut:n,easeOut:a})}},outUp:{initial:{y:0},animate:{y:-t,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,transition:_e({durationOut:n,easeOut:a})}},outDown:{initial:{y:0},animate:{y:t,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,transition:_e({durationOut:n,easeOut:a})}},outLeft:{initial:{x:0},animate:{x:-t,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,transition:_e({durationOut:n,easeOut:a})}},outRight:{initial:{x:0},animate:{x:t,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,transition:_e({durationOut:n,easeOut:a})}}}},A5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:_e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:_e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:xe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:xe({durationIn:t,easeIn:n})}}}},P5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...xe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},D5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:xe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:_e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:_e({durationOut:r,easeOut:i})}}}},$5=e=>({hover:{scale:e||1.1}}),Bo=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},F5=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},I5=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},j5=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=a=>`linear-gradient(${a}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}},Vh=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vo=m.createContext({}),zo=m.createContext(null),Wo=typeof document<"u",Ho=Wo?m.useLayoutEffect:m.useEffect,yu=m.createContext({strict:!1});function L5(e,t,r,n){const{visualElement:i}=m.useContext(Vo),a=m.useContext(yu),o=m.useContext(zo),s=m.useContext(Vh).reducedMotion,u=m.useRef();n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;m.useInsertionEffect(()=>{l&&l.update(r,o)});const c=m.useRef(!!window.HandoffAppearAnimations);return Ho(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),m.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Gn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function R5(e,t,r){return m.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Gn(r)&&(r.current=n))},[t])}function ga(e){return typeof e=="string"||Array.isArray(e)}function Uo(e){return typeof e=="object"&&typeof e.start=="function"}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Yo(e){return Uo(e.animate)||xu.some(t=>ga(e[t]))}function zh(e){return!!(Yo(e)||e.variants)}function N5(e,t){if(Yo(e)){const{initial:r,animate:n}=e;return{initial:r===!1||ga(r)?r:void 0,animate:ga(n)?n:void 0}}return e.inherit!==!1?t:{}}function B5(e){const{initial:t,animate:r}=N5(e,m.useContext(Vo));return m.useMemo(()=>({initial:t,animate:r}),[Wh(t),Wh(r)])}function Wh(e){return Array.isArray(e)?e.join(" "):e}const Hh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ma={};for(const e in Hh)ma[e]={isEnabled:t=>Hh[e].some(r=>!!t[r])};function wu(e){for(const t in e)ma[t]={...ma[t],...e[t]}}const Cu=m.createContext({}),Uh=m.createContext({}),V5=Symbol.for("motionComponentSymbol");function z5({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&wu(e);function a(s,u){let l;const c={...m.useContext(Vh),...s,layoutId:W5(s)},{isStatic:f}=c,d=B5(s),h=n(s,f);if(!f&&Wo){d.visualElement=L5(i,h,c,t);const g=m.useContext(Uh),p=m.useContext(yu).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,g))}return pe.createElement(Vo.Provider,{value:d},l&&d.visualElement?pe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,R5(h,d.visualElement,u),h,f,d.visualElement))}const o=m.forwardRef(a);return o[V5]=i,o}function W5({layoutId:e}){const t=m.useContext(Cu).id;return t&&e!==void 0?t+"-"+e:e}function H5(e){function t(n,i={}){return z5(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const U5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Su(e){return typeof e!="string"||e.includes("-")?!1:!!(U5.indexOf(e)>-1||/[A-Z]/.test(e))}const Go={};function Y5(e){Object.assign(Go,e)}const va=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fn=new Set(va);function Yh(e,{layout:t,layoutId:r}){return fn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Go[e]||e==="opacity")}const $t=e=>!!(e&&e.getVelocity),G5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},q5=va.length;function K5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let a="";for(let o=0;o<q5;o++){const s=va[o];if(e[s]!==void 0){const u=G5[s]||s;a+=`${u}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,n?"":a):r&&n&&(a="none"),a}const Gh=e=>t=>typeof t=="string"&&t.startsWith(e),qh=Gh("--"),Eu=Gh("var(--"),X5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Z5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vr=(e,t,r)=>Math.min(Math.max(r,e),t),dn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ya={...dn,transform:e=>Vr(0,1,e)},qo={...dn,default:1},ba=e=>Math.round(e*1e5)/1e5,Ko=/(-)?([\d]*\.?[\d])+/g,Kh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Q5=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xa(e){return typeof e=="string"}const wa=e=>({test:t=>xa(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zr=wa("deg"),ur=wa("%"),ge=wa("px"),J5=wa("vh"),ew=wa("vw"),Xh={...ur,parse:e=>ur.parse(e)/100,transform:e=>ur.transform(e*100)},Zh={...dn,transform:Math.round},Qh={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,radius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,size:ge,top:ge,right:ge,bottom:ge,left:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,rotate:zr,rotateX:zr,rotateY:zr,rotateZ:zr,scale:qo,scaleX:qo,scaleY:qo,scaleZ:qo,skew:zr,skewX:zr,skewY:zr,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:ya,originX:Xh,originY:Xh,originZ:ge,zIndex:Zh,fillOpacity:ya,strokeOpacity:ya,numOctaves:Zh};function Tu(e,t,r,n){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(qh(f)){a[f]=d;continue}const h=Qh[f],g=Z5(d,h);if(fn.has(f)){if(u=!0,o[f]=g,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=g):i[f]=g}if(t.transform||(u||n?i.transform=K5(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const _u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jh(e,t,r){for(const n in t)!$t(t[n])&&!Yh(n,r)&&(e[n]=t[n])}function tw({transformTemplate:e},t,r){return m.useMemo(()=>{const n=_u();return Tu(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function rw(e,t,r){const n=e.style||{},i={};return Jh(i,n,e),Object.assign(i,tw(e,t,r)),e.transformValues?e.transformValues(i):i}function nw(e,t,r){const n={},i=rw(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const iw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Xo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||iw.has(e)}let ep=e=>!Xo(e);function aw(e){e&&(ep=t=>t.startsWith("on")?!Xo(t):e(t))}try{aw(require("@emotion/is-prop-valid").default)}catch{}function ow(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(ep(i)||r===!0&&Xo(i)||!t&&!Xo(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function tp(e,t,r){return typeof e=="string"?e:ge.transform(t+r*e)}function sw(e,t,r){const n=tp(t,e.x,e.width),i=tp(r,e.y,e.height);return`${n} ${i}`}const lw={offset:"stroke-dashoffset",array:"stroke-dasharray"},uw={offset:"strokeDashoffset",array:"strokeDasharray"};function cw(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?lw:uw;e[a.offset]=ge.transform(-n);const o=ge.transform(t),s=ge.transform(r);e[a.array]=`${o} ${s}`}function ku(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Tu(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=sw(p,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),o!==void 0&&cw(h,o,s,u,!1)}const rp=()=>({..._u(),attrs:{}}),Mu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fw(e,t,r,n){const i=m.useMemo(()=>{const a=rp();return ku(a,t,{enableHardwareAcceleration:!1},Mu(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Jh(a,e.style,e),i.style={...a,...i.style}}return i}function dw(e=!1){return(r,n,i,{latestValues:a},o)=>{const u=(Su(r)?fw:nw)(n,a,o,r),c={...ow(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=m.useMemo(()=>$t(f)?f.get():f,[f]);return m.createElement(r,{...c,children:d})}}const Ou=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function np(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const ip=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ap(e,t,r,n){np(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(ip.has(i)?i:Ou(i),t.attrs[i])}function Au(e,t){const{style:r}=e,n={};for(const i in r)($t(r[i])||t.style&&$t(t.style[i])||Yh(i,e))&&(n[i]=r[i]);return n}function op(e,t){const r=Au(e,t);for(const n in e)if($t(e[n])||$t(t[n])){const i=va.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Pu(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Du(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Zo=e=>Array.isArray(e),hw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),pw=e=>Zo(e)?e[e.length-1]||0:e;function Qo(e){const t=$t(e)?e.get():e;return hw(t)?t.toValue():t}function gw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,a){const o={latestValues:mw(n,i,a,e),renderState:t()};return r&&(o.mount=s=>r(n,s,o)),o}const sp=e=>(t,r)=>{const n=m.useContext(Vo),i=m.useContext(zo),a=()=>gw(e,t,n,i);return r?a():Du(a)};function mw(e,t,r,n){const i={},a=n(e,{});for(const d in a)i[d]=Qo(a[d]);let{initial:o,animate:s}=e;const u=Yo(e),l=zh(e);t&&l&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||o===!1;const f=c?s:o;return f&&typeof f!="boolean"&&!Uo(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=Pu(e,h);if(!g)return;const{transitionEnd:p,transition:y,...b}=g;for(const x in b){let C=b[x];if(Array.isArray(C)){const k=c?C.length-1:0;C=C[k]}C!==null&&(i[x]=C)}for(const x in p)i[x]=p[x]}),i}const ct=e=>e;class lp{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function vw(e){let t=new lp,r=new lp,n=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&o.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),o.delete(u)},process:u=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),o.has(c)&&(s.schedule(c),e())}i=!1,a&&(a=!1,s.process(u))}};return s}const Jo=["prepare","read","update","preRender","render","postRender"],yw=40;function bw(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Jo.reduce((f,d)=>(f[d]=vw(()=>r=!0),f),{}),o=f=>a[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,yw),1),i.timestamp=f,i.isProcessing=!0,Jo.forEach(o),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:Jo.reduce((f,d)=>{const h=a[d];return f[d]=(g,p=!1,y=!1)=>(r||u(),h.schedule(g,p,y)),f},{}),cancel:f=>Jo.forEach(d=>a[d].cancel(f)),state:i,steps:a}}const{schedule:Ne,cancel:cr,state:St,steps:$u}=bw(typeof requestAnimationFrame<"u"?requestAnimationFrame:ct,!0),xw={useVisualState:sp({scrapeMotionValuesFromProps:op,createRenderState:rp,onMount:(e,t,{renderState:r,latestValues:n})=>{Ne.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ne.render(()=>{ku(r,n,{enableHardwareAcceleration:!1},Mu(t.tagName),e.transformTemplate),ap(t,r)})}})},ww={useVisualState:sp({scrapeMotionValuesFromProps:Au,createRenderState:_u})};function Cw(e,{forwardMotionProps:t=!1},r,n){return{...Su(e)?xw:ww,preloadedFeatures:r,useRender:dw(t),createVisualElement:n,Component:e}}function Sr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const up=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function es(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Sw=e=>t=>up(t)&&e(t,es(t));function Er(e,t,r,n){return Sr(e,t,Sw(r),n)}const Ew=(e,t)=>r=>t(e(r)),Wr=(...e)=>e.reduce(Ew);function cp(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const fp=cp("dragHorizontal"),dp=cp("dragVertical");function hp(e){let t=!1;if(e==="y")t=dp();else if(e==="x")t=fp();else{const r=fp(),n=dp();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function pp(){const e=hp(!0);return e?(e(),!1):!0}class Hr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function gp(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||pp())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&Ne.update(()=>s[n](a,o))};return Er(e.current,r,i,{passive:!e.getProps()[n]})}class Tw extends Hr{mount(){this.unmount=Wr(gp(this.node,!0),gp(this.node,!1))}unmount(){}}class _w extends Hr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wr(Sr(this.node.current,"focus",()=>this.onFocus()),Sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const mp=(e,t)=>t?e===t?!0:mp(e,t.parentElement):!1;function Fu(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,es(r))}class kw extends Hr{constructor(){super(...arguments),this.removeStartListeners=ct,this.removeEndListeners=ct,this.removeAccessibleListeners=ct,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=Er(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();Ne.update(()=>{mp(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),o=Er(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Wr(a,o),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||Fu("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ne.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Sr(this.node.current,"keyup",o),Fu("down",(s,u)=>{this.startPress(s,u)})},r=Sr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Fu("cancel",(a,o)=>this.cancelPress(a,o))},i=Sr(this.node.current,"blur",n);this.removeAccessibleListeners=Wr(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ne.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pp()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ne.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Er(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Sr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wr(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Iu=new WeakMap,ju=new WeakMap,Mw=e=>{const t=Iu.get(e.target);t&&t(e)},Ow=e=>{e.forEach(Mw)};function Aw({root:e,...t}){const r=e||document;ju.has(r)||ju.set(r,{});const n=ju.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ow,{root:e,...t})),n[i]}function Pw(e,t,r){const n=Aw(t);return Iu.set(e,r),n.observe(e),()=>{Iu.delete(e),n.unobserve(e)}}const Dw={some:0,all:1};class $w extends Hr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Dw[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return Pw(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Fw(t,r))&&this.startObserver()}unmount(){}}function Fw({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Iw={inView:{Feature:$w},tap:{Feature:kw},focus:{Feature:_w},hover:{Feature:Tw}};function vp(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function jw(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Lw(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function ts(e,t,r){const n=e.getProps();return Pu(n,t,r!==void 0?r:n.custom,jw(e),Lw(e))}const Rw="data-"+Ou("framerAppearId");let qn=ct,Zt=ct;process.env.NODE_ENV!=="production"&&(qn=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zt=(e,t)=>{if(!e)throw new Error(t)});const Ur=e=>e*1e3,Tr=e=>e/1e3,Nw={current:!1},yp=e=>Array.isArray(e)&&typeof e[0]=="number";function bp(e){return!!(!e||typeof e=="string"&&xp[e]||yp(e)||Array.isArray(e)&&e.every(bp))}const Ca=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,xp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ca([0,.65,.55,1]),circOut:Ca([.55,0,1,.45]),backIn:Ca([.31,.01,.66,-.59]),backOut:Ca([.33,1.53,.69,.99])};function wp(e){if(e)return yp(e)?Ca(e):Array.isArray(e)?e.map(wp):xp[e]}function Bw(e,t,r,{delay:n=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=wp(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function Vw(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Cp=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,zw=1e-7,Ww=12;function Hw(e,t,r,n,i){let a,o,s=0;do o=t+(r-t)/2,a=Cp(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>zw&&++s<Ww);return o}function Sa(e,t,r,n){if(e===t&&r===n)return ct;const i=a=>Hw(a,0,1,e,r);return a=>a===0||a===1?a:Cp(i(a),t,n)}const Uw=Sa(.42,0,1,1),Yw=Sa(0,0,.58,1),Sp=Sa(.42,0,.58,1),Gw=e=>Array.isArray(e)&&typeof e[0]!="number",Ep=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tp=e=>t=>1-e(1-t),_p=e=>1-Math.sin(Math.acos(e)),Lu=Tp(_p),qw=Ep(Lu),kp=Sa(.33,1.53,.69,.99),Ru=Tp(kp),Kw=Ep(Ru),Mp={linear:ct,easeIn:Uw,easeInOut:Sp,easeOut:Yw,circIn:_p,circInOut:qw,circOut:Lu,backIn:Ru,backInOut:Kw,backOut:kp,anticipate:e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1)))},Op=e=>{if(Array.isArray(e)){Zt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return Sa(t,r,n,i)}else if(typeof e=="string")return Zt(Mp[e]!==void 0,`Invalid easing type '${e}'`),Mp[e];return e},Nu=(e,t)=>r=>!!(xa(r)&&Q5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Ap=(e,t,r)=>n=>{if(!xa(n))return n;const[i,a,o,s]=n.match(Ko);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Xw=e=>Vr(0,255,e),Bu={...dn,transform:e=>Math.round(Xw(e))},hn={test:Nu("rgb","red"),parse:Ap("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Bu.transform(e)+", "+Bu.transform(t)+", "+Bu.transform(r)+", "+ba(ya.transform(n))+")"};function Zw(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Vu={test:Nu("#"),parse:Zw,transform:hn.transform},Kn={test:Nu("hsl","hue"),parse:Ap("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ur.transform(ba(t))+", "+ur.transform(ba(r))+", "+ba(ya.transform(n))+")"},At={test:e=>hn.test(e)||Vu.test(e)||Kn.test(e),parse:e=>hn.test(e)?hn.parse(e):Kn.test(e)?Kn.parse(e):Vu.parse(e),transform:e=>xa(e)?e:e.hasOwnProperty("red")?hn.transform(e):Kn.transform(e)},at=(e,t,r)=>-r*e+r*t+e;function zu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Qw({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,o=0;if(!t)i=a=o=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=zu(u,s,e+1/3),a=zu(u,s,e),o=zu(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}const Wu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Jw=[Vu,hn,Kn],e3=e=>Jw.find(t=>t.test(e));function Pp(e){const t=e3(e);Zt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Kn&&(r=Qw(r)),r}const Dp=(e,t)=>{const r=Pp(e),n=Pp(t),i={...r};return a=>(i.red=Wu(r.red,n.red,a),i.green=Wu(r.green,n.green,a),i.blue=Wu(r.blue,n.blue,a),i.alpha=at(r.alpha,n.alpha,a),hn.transform(i))};function t3(e){var t,r;return isNaN(e)&&xa(e)&&(((t=e.match(Ko))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Kh))===null||r===void 0?void 0:r.length)||0)>0}const $p={regex:X5,countKey:"Vars",token:"${v}",parse:ct},Fp={regex:Kh,countKey:"Colors",token:"${c}",parse:At.parse},Ip={regex:Ko,countKey:"Numbers",token:"${n}",parse:dn.parse};function Hu(e,{regex:t,countKey:r,token:n,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(i)))}function rs(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Hu(r,$p),Hu(r,Fp),Hu(r,Ip),r}function jp(e){return rs(e).values}function Lp(e){const{values:t,numColors:r,numVars:n,tokenised:i}=rs(e),a=t.length;return o=>{let s=i;for(let u=0;u<a;u++)u<n?s=s.replace($p.token,o[u]):u<n+r?s=s.replace(Fp.token,At.transform(o[u])):s=s.replace(Ip.token,ba(o[u]));return s}}const r3=e=>typeof e=="number"?0:e;function n3(e){const t=jp(e);return Lp(e)(t.map(r3))}const Yr={test:t3,parse:jp,createTransformer:Lp,getAnimatableNone:n3},Rp=(e,t)=>r=>`${r>0?t:e}`;function Np(e,t){return typeof e=="number"?r=>at(e,t,r):At.test(e)?Dp(e,t):e.startsWith("var(")?Rp(e,t):Vp(e,t)}const Bp=(e,t)=>{const r=[...e],n=r.length,i=e.map((a,o)=>Np(a,t[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}},i3=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=Np(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}},Vp=(e,t)=>{const r=Yr.createTransformer(t),n=rs(e),i=rs(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Wr(Bp(n.values,i.values),r):(qn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Rp(e,t))},Xn=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},zp=(e,t)=>r=>at(e,t,r);function a3(e){return typeof e=="number"?zp:typeof e=="string"?At.test(e)?Dp:Vp:Array.isArray(e)?Bp:typeof e=="object"?i3:zp}function o3(e,t,r){const n=[],i=r||a3(e[0]),a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||ct:t;s=Wr(u,s)}n.push(s)}return n}function Uu(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const a=e.length;if(Zt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=o3(t,n,i),s=o.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=Xn(e[c],e[c+1],l);return o[c](f)};return r?l=>u(Vr(e[0],e[a-1],l)):u}function s3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=Xn(0,t,n);e.push(at(r,1,i))}}function Wp(e){const t=[0];return s3(t,e.length-1),t}function l3(e,t){return e.map(r=>r*t)}function u3(e,t){return e.map(()=>t||Sp).splice(0,e.length-1)}function ns({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Gw(n)?n.map(Op):Op(n),a={done:!1,value:t[0]},o=l3(r&&r.length===t.length?r:Wp(t),e),s=Uu(o,t,{ease:Array.isArray(i)?i:u3(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}function Yu(e,t){return t?e*(1e3/t):0}const c3=5;function Hp(e,t,r){const n=Math.max(t-c3,0);return Yu(r-e(n),t-n)}const Gu=.001,f3=.01,Up=10,d3=.05,h3=1;function p3({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,a;qn(e<=Ur(Up),"Spring duration must be 10 seconds or less");let o=1-t;o=Vr(d3,h3,o),e=Vr(f3,Up,Tr(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-r,h=qu(l,o),g=Math.exp(-f);return Gu-d/h*g},a=l=>{const f=l*o*e,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-f),p=qu(Math.pow(l,2),o);return(-i(l)+Gu>0?-1:1)*((d-h)*g)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Gu+c*f},a=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=m3(i,a,s);if(e=Ur(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:e}}}const g3=12;function m3(e,t,r){let n=r;for(let i=1;i<g3;i++)n=n-e(n)/t(n);return n}function qu(e,t){return e*Math.sqrt(1-t*t)}const v3=["duration","bounce"],y3=["stiffness","damping","mass"];function Yp(e,t){return t.some(r=>e[r]!==void 0)}function b3(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Yp(e,y3)&&Yp(e,v3)){const r=p3(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Gp({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=b3(n),h=c?-Tr(c):0,g=u/(2*Math.sqrt(s*l)),p=a-i,y=Tr(Math.sqrt(s/l)),b=Math.abs(p)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let x;if(g<1){const C=qu(y,g);x=k=>{const w=Math.exp(-g*y*k);return a-w*((h+g*y*p)/C*Math.sin(C*k)+p*Math.cos(C*k))}}else if(g===1)x=C=>a-Math.exp(-y*C)*(p+(h+y*p)*C);else{const C=y*Math.sqrt(g*g-1);x=k=>{const w=Math.exp(-g*y*k),_=Math.min(C*k,300);return a-w*((h+g*y*p)*Math.sinh(_)+C*p*Math.cosh(_))/C}}return{calculatedDuration:d&&f||null,next:C=>{const k=x(C);if(d)o.done=C>=f;else{let w=h;C!==0&&(g<1?w=Hp(x,C,k):w=0);const _=Math.abs(w)<=r,T=Math.abs(a-k)<=t;o.done=_&&T}return o.value=o.done?a:k,o}}}function qp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=O=>s!==void 0&&O<s||u!==void 0&&O>u,g=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let p=r*t;const y=f+p,b=o===void 0?y:o(y);b!==y&&(p=b-f);const x=O=>-p*Math.exp(-O/n),C=O=>b+x(O),k=O=>{const P=x(O),F=C(O);d.done=Math.abs(P)<=l,d.value=d.done?b:F};let w,_;const T=O=>{h(d.value)&&(w=O,_=Gp({keyframes:[d.value,g(d.value)],velocity:Hp(C,O,d.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return T(0),{calculatedDuration:null,next:O=>{let P=!1;return!_&&w===void 0&&(P=!0,k(O),T(O)),w!==void 0&&O>w?_.next(O-w):(!P&&k(O),d)}}}const x3=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ne.update(t,!0),stop:()=>cr(t),now:()=>St.isProcessing?St.timestamp:performance.now()}},Kp=2e4;function Xp(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Kp;)t+=r,n=e.next(t);return t>=Kp?1/0:t}const w3={decay:qp,inertia:qp,tween:ns,keyframes:ns,spring:Gp};function is({autoplay:e=!0,delay:t=0,driver:r=x3,keyframes:n,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,g=!1,p,y;const b=()=>{y=new Promise($=>{p=$})};b();let x;const C=w3[i]||ns;let k;C!==ns&&typeof n[0]!="number"&&(k=Uu([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let _;s==="mirror"&&(_=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let T="idle",O=null,P=null,F=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=Xp(w));const{calculatedDuration:Z}=w;let be=1/0,oe=1/0;Z!==null&&(be=Z+o,oe=be*(a+1)-o);let Q=0;const H=$=>{if(P===null)return;h>0&&(P=Math.min(P,$)),h<0&&(P=Math.min($-oe/h,P)),O!==null?Q=O:Q=Math.round($-P)*h;const W=Q-t*(h>=0?1:-1),se=h>=0?W<0:W>oe;Q=Math.max(W,0),T==="finished"&&O===null&&(Q=oe);let X=Q,ce=w;if(a){const q=Q/be;let te=Math.floor(q),Se=q%1;!Se&&q>=1&&(Se=1),Se===1&&te--,te=Math.min(te,a+1);const j=!!(te%2);j&&(s==="reverse"?(Se=1-Se,o&&(Se-=o/be)):s==="mirror"&&(ce=_));let Je=Vr(0,1,Se);Q>oe&&(Je=s==="reverse"&&j?1:0),X=Je*be}const ne=se?{done:!1,value:n[0]}:ce.next(X);k&&(ne.value=k(ne.value));let{done:le}=ne;!se&&Z!==null&&(le=h>=0?Q>=oe:Q<=0);const ee=O===null&&(T==="finished"||T==="running"&&le);return f&&f(ne.value),ee&&Ce(),ne},R=()=>{x&&x.stop(),x=void 0},U=()=>{T="idle",R(),p(),b(),P=F=null},Ce=()=>{T="finished",c&&c(),R(),p()},fe=()=>{if(g)return;x||(x=r(H));const $=x.now();u&&u(),O!==null?P=$-O:(!P||T==="finished")&&(P=$),T==="finished"&&b(),F=P,O=null,T="running",x.start()};e&&fe();const D={then($,W){return y.then($,W)},get time(){return Tr(Q)},set time($){$=Ur($),Q=$,O!==null||!x||h===0?O=$:P=x.now()-$/h},get duration(){const $=w.calculatedDuration===null?Xp(w):w.calculatedDuration;return Tr($)},get speed(){return h},set speed($){$===h||!x||(h=$,D.time=Tr(Q))},get state(){return T},play:fe,pause:()=>{T="paused",O=Q},stop:()=>{g=!0,T!=="idle"&&(T="idle",l&&l(),U())},cancel:()=>{F!==null&&H(F),U()},complete:()=>{T="finished"},sample:$=>(P=0,H($))};return D}function C3(e){let t;return()=>(t===void 0&&(t=e()),t)}const S3=C3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),E3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),as=10,T3=2e4,_3=(e,t)=>t.type==="spring"||e==="backgroundColor"||!bp(t.ease);function k3(e,t,{onUpdate:r,onComplete:n,...i}){if(!(S3()&&E3.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,u;const l=()=>{u=new Promise(x=>{s=x})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(_3(t,i)){const x=is({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const k=[];let w=0;for(;!C.done&&w<T3;)C=x.sample(w),k.push(C.value),w+=as;h=void 0,c=k,f=w-as,d="linear"}const g=Bw(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(g.startTime=St.isProcessing?St.timestamp:document.timeline?document.timeline.currentTime:performance.now());const p=()=>g.cancel(),y=()=>{Ne.update(p),s(),l()};return g.onfinish=()=>{e.set(Vw(c,i)),n&&n(),y()},{then(x,C){return u.then(x,C)},attachTimeline(x){return g.timeline=x,g.onfinish=null,ct},get time(){return Tr(g.currentTime||0)},set time(x){g.currentTime=Ur(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Tr(f)},play:()=>{o||(g.play(),cr(p))},pause:()=>g.pause(),stop:()=>{if(o=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const C=is({...i,autoplay:!1});e.setWithVelocity(C.sample(x-as).value,C.sample(x).value,as)}y()},complete:()=>g.finish(),cancel:y}}function M3({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:ct,pause:ct,stop:ct,then:a=>(a(),Promise.resolve()),cancel:ct,complete:ct});return t?is({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const O3={type:"spring",stiffness:500,damping:25,restSpeed:10},A3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),P3={type:"keyframes",duration:.8},D3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$3=(e,{keyframes:t})=>t.length>2?P3:fn.has(e)?e.startsWith("scale")?A3(t[1]):O3:D3,Ku=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Yr.test(t)||t==="0")&&!t.startsWith("url(")),F3=new Set(["brightness","contrast","saturate","opacity"]);function I3(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Ko)||[];if(!n)return e;const i=r.replace(n,"");let a=F3.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const j3=/([a-z-]*)\(.*?\)/g,Xu={...Yr,getAnimatableNone:e=>{const t=e.match(j3);return t?t.map(I3).join(" "):e}},L3={...Qh,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:Xu,WebkitFilter:Xu},Zu=e=>L3[e];function Zp(e,t){let r=Zu(e);return r!==Xu&&(r=Yr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Qp=e=>/^0[^.\s]+$/.test(e);function R3(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Qp(e)}function N3(e,t,r,n){const i=Ku(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const o=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<a.length;l++)a[l]===null&&(a[l]=l===0?o:a[l-1]),R3(a[l])&&u.push(l),typeof a[l]=="string"&&a[l]!=="none"&&a[l]!=="0"&&(s=a[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];a[c]=Zp(t,s)}return a}function B3({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function Jp(e,t){return e[t]||e.default||e}const Qu=(e,t,r,n={})=>i=>{const a=Jp(n,e)||{},o=a.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Ur(o);const u=N3(t,e,r,a),l=u[0],c=u[u.length-1],f=Ku(e,l),d=Ku(e,c);qn(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(B3(a)||(h={...h,...$3(e,h)}),h.duration&&(h.duration=Ur(h.duration)),h.repeatDelay&&(h.repeatDelay=Ur(h.repeatDelay)),!f||!d||Nw.current||a.type===!1)return M3(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=k3(t,e,h);if(g)return g}return is(h)};function os(e){return!!($t(e)&&e.add)}const e0=e=>/^\-?\d*\.?\d+$/.test(e);function Ju(e,t){e.indexOf(t)===-1&&e.push(t)}function ec(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class tc{constructor(){this.subscriptions=[]}add(t){return Ju(this.subscriptions,t),()=>ec(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const t0=new Set;function rc(e,t,r){e||t0.has(t)||(console.warn(t),r&&console.warn(r),t0.add(t))}const V3=e=>!isNaN(parseFloat(e));class z3{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:o}=St;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,Ne.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ne.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=V3(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&rc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new tc);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ne.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Yu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fr(e,t){return new z3(e,t)}const r0=e=>t=>t.test(e),n0=[dn,ge,ur,zr,ew,J5,{test:e=>e==="auto",parse:e=>e}],Ea=e=>n0.find(r0(e)),W3=[...n0,At,Yr],H3=e=>W3.find(r0(e));function U3(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,fr(r))}function Y3(e,t){const r=ts(e,t);let{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const o in a){const s=pw(a[o]);U3(e,o,s)}}function G3(e,t,r){var n,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;s<o;s++){const u=a[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(e0(c)||Qp(c))?c=parseFloat(c):!H3(c)&&Yr.test(l)&&(c=Zp(u,l)),e.addValue(u,fr(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function q3(e,t){return t?(t[e]||t.default||t).from:void 0}function K3(e,t,r){const n={};for(const i in e){const a=q3(i,t);if(a!==void 0)n[i]=a;else{const o=r.getValue(i);o&&(n[i]=o.get())}}return n}function X3({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function i0(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(a=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&X3(c,f))continue;const g={delay:r,elapsed:0,...a};if(window.HandoffAppearAnimations&&!d.hasAnimated){const y=e.getProps()[Rw];y&&(g.elapsed=window.HandoffAppearAnimations(y,f,d,Ne),g.syncStart=!0)}d.start(Qu(f,d,h,e.shouldReduceMotion&&fn.has(f)?{type:!1}:g));const p=d.animation;os(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return o&&Promise.all(l).then(()=>{o&&Y3(e,o)}),l}function nc(e,t,r={}){const n=ts(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(i0(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Z3(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[a,o]:[o,a];return u().then(()=>l())}else return Promise.all([a(),o(r.delay)])}function Z3(e,t,r=0,n=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(Q3).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(nc(l,t,{...a,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function Q3(e,t){return e.sortNodePosition(t)}function J3(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>nc(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=nc(e,t,r);else{const i=typeof t=="function"?ts(e,t,r.custom):t;n=Promise.all(i0(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const e4=[...bu].reverse(),t4=bu.length;function r4(e){return t=>Promise.all(t.map(({animation:r,options:n})=>J3(e,r,n)))}function n4(e){let t=r4(e);const r=a4();let n=!0;const i=(u,l)=>{const c=ts(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function a(u){t=u(e)}function o(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let g={},p=1/0;for(let b=0;b<t4;b++){const x=e4[b],C=r[x],k=c[x]!==void 0?c[x]:f[x],w=ga(k),_=x===l?C.isActive:null;_===!1&&(p=b);let T=k===f[x]&&k!==c[x]&&w;if(T&&n&&e.manuallyAnimateOnMount&&(T=!1),C.protectedKeys={...g},!C.isActive&&_===null||!k&&!C.prevProp||Uo(k)||typeof k=="boolean")continue;const O=i4(C.prevProp,k);let P=O||x===l&&C.isActive&&!T&&w||b>p&&w;const F=Array.isArray(k)?k:[k];let Z=F.reduce(i,{});_===!1&&(Z={});const{prevResolvedValues:be={}}=C,oe={...be,...Z},Q=H=>{P=!0,h.delete(H),C.needsAnimating[H]=!0};for(const H in oe){const R=Z[H],U=be[H];g.hasOwnProperty(H)||(R!==U?Zo(R)&&Zo(U)?!vp(R,U)||O?Q(H):C.protectedKeys[H]=!0:R!==void 0?Q(H):h.add(H):R!==void 0&&h.has(H)?Q(H):C.protectedKeys[H]=!0)}C.prevProp=k,C.prevResolvedValues=Z,C.isActive&&(g={...g,...Z}),n&&e.blockInitialAnimation&&(P=!1),P&&!T&&d.push(...F.map(H=>({animation:H,options:{type:x,...u}})))}if(h.size){const b={};h.forEach(x=>{const C=e.getBaseTarget(x);C!==void 0&&(b[x]=C)}),d.push({animation:b})}let y=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(u,l)}),r[u].isActive=l;const d=o(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>r}}function i4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!vp(t,e):!1}function pn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a4(){return{animate:pn(!0),whileInView:pn(),whileHover:pn(),whileTap:pn(),whileDrag:pn(),whileFocus:pn(),exit:pn()}}class o4 extends Hr{constructor(t){super(t),t.animationState||(t.animationState=n4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Uo(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let s4=0;class l4 extends Hr{constructor(){super(...arguments),this.id=s4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const u4={animation:{Feature:o4},exit:{Feature:l4}},a0=(e,t)=>Math.abs(e-t);function c4(e,t){const r=a0(e.x,t.x),n=a0(e.y,t.y);return Math.sqrt(r**2+n**2)}class o0{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=ac(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=c4(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=St;this.history.push({...d,timestamp:h});const{onStart:g,onMove:p}=this.handlers;c||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=ic(c,this.transformPagePoint),Ne.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=ac(l.type==="pointercancel"?this.lastMoveEventInfo:ic(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!up(t))return;this.handlers=r,this.transformPagePoint=n;const i=es(t),a=ic(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=St;this.history=[{...o,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,ac(a,this.history)),this.removeListeners=Wr(Er(window,"pointermove",this.handlePointerMove),Er(window,"pointerup",this.handlePointerUp),Er(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}}function ic(e,t){return t?{point:t(e.point)}:e}function s0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:s0(e,l0(t)),offset:s0(e,f4(t)),velocity:d4(t,.1)}}function f4(e){return e[0]}function l0(e){return e[e.length-1]}function d4(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=l0(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Ur(t)));)r--;if(!n)return{x:0,y:0};const a=Tr(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Bt(e){return e.max-e.min}function oc(e,t=0,r=.01){return Math.abs(e-t)<=r}function u0(e,t,r,n=.5){e.origin=n,e.originPoint=at(t.min,t.max,e.origin),e.scale=Bt(r)/Bt(t),(oc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=at(r.min,r.max,e.origin)-e.originPoint,(oc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ta(e,t,r,n){u0(e.x,t.x,r.x,n?n.originX:void 0),u0(e.y,t.y,r.y,n?n.originY:void 0)}function c0(e,t,r){e.min=r.min+t.min,e.max=e.min+Bt(t)}function h4(e,t,r){c0(e.x,t.x,r.x),c0(e.y,t.y,r.y)}function f0(e,t,r){e.min=t.min-r.min,e.max=e.min+Bt(t)}function _a(e,t,r){f0(e.x,t.x,r.x),f0(e.y,t.y,r.y)}function p4(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?at(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?at(r,e,n.max):Math.min(e,r)),e}function d0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function g4(e,{top:t,left:r,bottom:n,right:i}){return{x:d0(e.x,r,i),y:d0(e.y,t,n)}}function h0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function m4(e,t){return{x:h0(e.x,t.x),y:h0(e.y,t.y)}}function v4(e,t){let r=.5;const n=Bt(e),i=Bt(t);return i>n?r=Xn(t.min,t.max-n,e.min):n>i&&(r=Xn(e.min,e.max-i,t.min)),Vr(0,1,r)}function y4(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const sc=.35;function b4(e=sc){return e===!1?e=0:e===!0&&(e=sc),{x:p0(e,"left","right"),y:p0(e,"top","bottom")}}function p0(e,t,r){return{min:g0(e,t),max:g0(e,r)}}function g0(e,t){return typeof e=="number"?e:e[t]||0}const m0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zn=()=>({x:m0(),y:m0()}),v0=()=>({min:0,max:0}),xt=()=>({x:v0(),y:v0()});function dr(e){return[e("x"),e("y")]}function y0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function x4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w4(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function lc(e){return e===void 0||e===1}function uc({scale:e,scaleX:t,scaleY:r}){return!lc(e)||!lc(t)||!lc(r)}function gn(e){return uc(e)||b0(e)||e.z||e.rotate||e.rotateX||e.rotateY}function b0(e){return x0(e.x)||x0(e.y)}function x0(e){return e&&e!=="0%"}function ss(e,t,r){const n=e-r,i=t*n;return r+i}function w0(e,t,r,n,i){return i!==void 0&&(e=ss(e,i,n)),ss(e,r,n)+t}function cc(e,t=0,r=1,n,i){e.min=w0(e.min,t,r,n,i),e.max=w0(e.max,t,r,n,i)}function C0(e,{x:t,y:r}){cc(e.x,t.translate,t.scale,t.originPoint),cc(e.y,r.translate,r.scale,r.originPoint)}function C4(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=r[s],o=a.projectionDelta;const u=a.instance;u&&u.style&&u.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Qn(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,C0(e,o)),n&&gn(a.latestValues)&&Qn(e,a.latestValues))}t.x=S0(t.x),t.y=S0(t.y)}function S0(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Gr(e,t){e.min=e.min+t,e.max=e.max+t}function E0(e,t,[r,n,i]){const a=t[i]!==void 0?t[i]:.5,o=at(e.min,e.max,a);cc(e,t[r],t[n],o,t.scale)}const S4=["x","scaleX","originX"],E4=["y","scaleY","originY"];function Qn(e,t){E0(e.x,t,S4),E0(e.y,t,E4)}function T0(e,t){return y0(w4(e.getBoundingClientRect(),t))}function T4(e,t,r){const n=T0(e,r),{scroll:i}=t;return i&&(Gr(n.x,i.offset.x),Gr(n.y,i.offset.y)),n}const _4=new WeakMap;class k4{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(es(u,"page").point)},a=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hp(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dr(g=>{let p=this.getAxisMotionValue(g).get()||0;if(ur.test(p)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[g];b&&(p=Bt(b)*(parseFloat(p)/100))}}this.originPoint[g]=p}),d&&Ne.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=l;if(f&&this.currentDirection===null){this.currentDirection=M4(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,g),this.updateAxis("y",l.point,g),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new o0(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ne.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!ls(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=p4(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Gn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=g4(n.layoutBox,t):this.constraints=!1,this.elastic=b4(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&dr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=y4(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Gn(t))return!1;const n=t.current;Zt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=T4(n,i.root,this.visualElement.getTransformPagePoint());let o=m4(i.layout.layoutBox,a);if(r){const s=r(x4(o));this.hasMutatedConstraints=!!s,s&&(o=y0(s))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=dr(c=>{if(!ls(c,r,this.currentDirection))return;let f=u&&u[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Qu(t,n,0,r))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){dr(r=>{const{drag:n}=this.getProps();if(!ls(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[r];a.set(t[r]-at(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Gn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dr(o=>{const s=this.getAxisMotionValue(o);if(s){const u=s.get();i[o]=v4({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),dr(o=>{if(!ls(o,t,null))return;const s=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];s.set(at(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;_4.set(this.visualElement,this);const t=this.visualElement.current,r=Er(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Gn(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=Sr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(dr(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=sc,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function ls(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function M4(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class O4 extends Hr{constructor(t){super(t),this.removeGroupControls=ct,this.removeListeners=ct,this.controls=new k4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ct}unmount(){this.removeGroupControls(),this.removeListeners()}}const _0=e=>(t,r)=>{e&&Ne.update(()=>e(t,r))};class A4 extends Hr{constructor(){super(...arguments),this.removePointerDownListener=ct}onPointerDown(t){this.session=new o0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:_0(t),onStart:_0(r),onMove:n,onEnd:(a,o)=>{delete this.session,i&&Ne.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=Er(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function P4(){const e=m.useContext(zo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=m.useId();return m.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const us={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function k0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ka={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const r=k0(e,t.target.x),n=k0(e,t.target.y);return`${r}% ${n}%`}},D4={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Yr.parse(e);if(i.length>5)return n;const a=Yr.createTransformer(e),o=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+o]/=s,i[1+o]/=u;const l=at(s,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),a(i)}};class $4 extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;Y5(F4),a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),us.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,o=n.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ne.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function M0(e){const[t,r]=P4(),n=m.useContext(Cu);return m.createElement($4,{...e,layoutGroup:n,switchLayoutGroup:m.useContext(Uh),isPresent:t,safeToRemove:r})}const F4={borderRadius:{...ka,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ka,borderTopRightRadius:ka,borderBottomLeftRadius:ka,borderBottomRightRadius:ka,boxShadow:D4},O0=["TopLeft","TopRight","BottomLeft","BottomRight"],I4=O0.length,A0=e=>typeof e=="string"?parseFloat(e):e,P0=e=>typeof e=="number"||ge.test(e);function j4(e,t,r,n,i,a){i?(e.opacity=at(0,r.opacity!==void 0?r.opacity:1,L4(n)),e.opacityExit=at(t.opacity!==void 0?t.opacity:1,0,R4(n))):a&&(e.opacity=at(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;o<I4;o++){const s=`border${O0[o]}Radius`;let u=D0(t,s),l=D0(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||P0(u)===P0(l)?(e[s]=Math.max(at(A0(u),A0(l),n),0),(ur.test(l)||ur.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=at(t.rotate||0,r.rotate||0,n))}function D0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L4=$0(0,.5,Lu),R4=$0(.5,.95,ct);function $0(e,t,r){return n=>n<e?0:n>t?1:r(Xn(e,t,n))}function F0(e,t){e.min=t.min,e.max=t.max}function Qt(e,t){F0(e.x,t.x),F0(e.y,t.y)}function I0(e,t,r,n,i){return e-=t,e=ss(e,1/r,n),i!==void 0&&(e=ss(e,1/i,n)),e}function N4(e,t=0,r=1,n=.5,i,a=e,o=e){if(ur.test(t)&&(t=parseFloat(t),t=at(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=at(a.min,a.max,n);e===a&&(s-=t),e.min=I0(e.min,t,r,s,i),e.max=I0(e.max,t,r,s,i)}function j0(e,t,[r,n,i],a,o){N4(e,t[r],t[n],t[i],t.scale,a,o)}const B4=["x","scaleX","originX"],V4=["y","scaleY","originY"];function L0(e,t,r,n){j0(e.x,t,B4,r?r.x:void 0,n?n.x:void 0),j0(e.y,t,V4,r?r.y:void 0,n?n.y:void 0)}function R0(e){return e.translate===0&&e.scale===1}function N0(e){return R0(e.x)&&R0(e.y)}function z4(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function B0(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function V0(e){return Bt(e.x)/Bt(e.y)}class W4{constructor(){this.members=[]}add(t){Ju(this.members,t),t.scheduleRender()}remove(t){if(ec(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(n=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(n+=`scale(${o}, ${s})`),n||"none"}const H4=(e,t)=>e.depth-t.depth;class U4{constructor(){this.children=[],this.isDirty=!1}add(t){Ju(this.children,t),this.isDirty=!0}remove(t){ec(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(H4),this.isDirty=!1,this.children.forEach(t)}}function Y4(e,t){const r=performance.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(cr(n),e(a-t))};return Ne.read(n,!0),()=>cr(n)}function G4(e){window.MotionDebug&&window.MotionDebug.record(e)}function q4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function K4(e,t,r){const n=$t(e)?e:fr(e);return n.start(Qu("",n,t,r)),n.animation}const W0=["","X","Y","Z"],H0=1e3;let X4=0;const mn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function U0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=X4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{mn.totalNodes=mn.resolvedTargetDeltas=mn.recalculatedProjection=0,this.nodes.forEach(J4),this.nodes.forEach(iC),this.nodes.forEach(aC),this.nodes.forEach(eC),G4(mn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new U4)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new tc),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const u=this.eventHandlers.get(o);u&&u.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=q4(o),this.instance=o;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Y4(d,250),us.hasAnimatedSinceResize&&(us.hasAnimatedSinceResize=!1,this.nodes.forEach(G0))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||cC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=c.getProps(),x=!this.targetLayout||!B0(this.targetLayout,g)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const k={...Jp(p,"layout"),onPlay:y,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else d||G0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oC),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Y0);return}this.isUpdating||this.nodes.forEach(rC),this.isUpdating=!1,this.nodes.forEach(nC),this.nodes.forEach(Z4),this.nodes.forEach(Q4),this.clearAllSnapshots();const s=performance.now();St.delta=Vr(0,1e3/60,s-St.timestamp),St.timestamp=s,St.isProcessing=!0,$u.update.process(St),$u.preRender.process(St),$u.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(tC),this.sharedNodes.forEach(sC)}scheduleUpdateProjection(){Ne.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!N0(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&(s||gn(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return o&&(u=this.removeTransform(u)),fC(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return xt();const s=o.measureViewportBox(),{scroll:u}=this.root;return u&&(Gr(s.x,u.offset.x),Gr(s.y,u.offset.y)),s}removeElementScroll(o){const s=xt();Qt(s,o);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){Qt(s,o);const{scroll:d}=this.root;d&&(Gr(s.x,-d.offset.x),Gr(s.y,-d.offset.y))}Gr(s.x,c.offset.x),Gr(s.y,c.offset.y)}}return s}applyTransform(o,s=!1){const u=xt();Qt(u,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Qn(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&Qn(u,c.latestValues)}return gn(this.latestValues)&&Qn(u,this.latestValues),u}removeTransform(o){const s=xt();Qt(s,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!gn(l.latestValues))continue;uc(l.latestValues)&&l.updateSnapshot();const c=xt(),f=l.measurePageBox();Qt(c,f),L0(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&L0(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),_a(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qt(this.target,this.layout.layoutBox),C0(this.target,this.targetDelta)):Qt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),_a(this.relativeTargetOrigin,this.target,h.target),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||uc(this.parent.latestValues)||b0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===St.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Qt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;C4(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:g}=s;if(!g){this.projectionTransform&&(this.projectionDelta=Zn(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Zn(),this.projectionDeltaWithTransform=Zn());const p=this.projectionTransform;Ta(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=z0(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),mn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=Zn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=xt(),h=u?u.source:void 0,g=this.layout?this.layout.source:void 0,p=h!==g,y=this.getStack(),b=!y||y.members.length<=1,x=!!(p&&!b&&this.options.crossfade===!0&&!this.path.some(uC));this.animationProgress=0;let C;this.mixTargetDelta=k=>{const w=k/1e3;q0(f.x,o.x,w),q0(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_a(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lC(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&z4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=xt()),Qt(C,this.relativeTarget)),p&&(this.animationValues=c,j4(c,l,this.latestValues,w,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{us.hasAnimatedSinceResize=!0,this.currentAnimation=K4(0,H0,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(H0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=o;if(!(!s||!u||!l)){if(this!==o&&this.layout&&l&&J0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||xt();const f=Bt(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const d=Bt(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+d}Qt(s,u),Qn(s,c),Ta(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new W4),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:u}=o;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<W0.length;c++){const f="rotate"+W0[c];u[f]&&(l[f]=u[f],o.setStaticValue(f,0))}o.render();for(const c in l)o.setStaticValue(c,l[c]);o.scheduleRender()}getProjectionStyles(o={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Qo(o.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Qo(o.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=z0(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:g}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Go){if(d[p]===void 0)continue;const{correct:y,applyTo:b}=Go[p],x=l.transform==="none"?d[p]:y(d[p],f);if(b){const C=b.length;for(let k=0;k<C;k++)l[b[k]]=x}else l[p]=x}return this.options.layoutId&&(l.pointerEvents=f===this?Qo(o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Y0),this.root.sharedNodes.clear()}}}function Z4(e){e.updateLayout()}function Q4(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,o=r.source!==e.layout.source;a==="size"?dr(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Bt(d);d.min=n[f].min,d.max=d.min+h}):J0(a,r.layoutBox,n)&&dr(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Bt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Zn();Ta(s,n,r.layoutBox);const u=Zn();o?Ta(u,e.applyTransform(i,!0),r.measuredBox):Ta(u,n,r.layoutBox);const l=!N0(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=xt();_a(g,r.layoutBox,d.layoutBox);const p=xt();_a(p,n,h.layoutBox),B0(g,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function J4(e){mn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tC(e){e.clearSnapshot()}function Y0(e){e.clearMeasurements()}function rC(e){e.isLayoutDirty=!1}function nC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function G0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iC(e){e.resolveTargetDelta()}function aC(e){e.calcProjection()}function oC(e){e.resetRotation()}function sC(e){e.removeLeadSnapshot()}function q0(e,t,r){e.translate=at(t.translate,0,r),e.scale=at(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function K0(e,t,r,n){e.min=at(t.min,r.min,n),e.max=at(t.max,r.max,n)}function lC(e,t,r,n){K0(e.x,t.x,r.x,n),K0(e.y,t.y,r.y,n)}function uC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cC={duration:.45,ease:[.4,0,.1,1]},X0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Z0=X0("applewebkit/")&&!X0("chrome/")?Math.round:ct;function Q0(e){e.min=Z0(e.min),e.max=Z0(e.max)}function fC(e){Q0(e.x),Q0(e.y)}function J0(e,t,r){return e==="position"||e==="preserve-aspect"&&!oc(V0(t),V0(r),.2)}const dC=U0({attachResizeListener:(e,t)=>Sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fc={current:void 0},eg=U0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fc.current){const e=new dC({});e.mount(window),e.setOptions({layoutScroll:!0}),fc.current=e}return fc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hC={pan:{Feature:A4},drag:{Feature:O4,ProjectionNode:eg,MeasureLayout:M0}},pC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gC(e){const t=pC.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const mC=4;function dc(e,t,r=1){Zt(r<=mC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=gC(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return e0(o)?parseFloat(o):o}else return Eu(i)?dc(i,t,r+1):i}function vC(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const a=i.get();if(!Eu(a))return;const o=dc(a,n);o&&i.set(o)});for(const i in t){const a=t[i];if(!Eu(a))continue;const o=dc(a,n);o&&(t[i]=o,r||(r={}),r[i]===void 0&&(r[i]=a))}return{target:t,transitionEnd:r}}const yC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tg=e=>yC.has(e),bC=e=>Object.keys(e).some(tg),cs=e=>e===dn||e===ge,rg=(e,t)=>parseFloat(e.split(", ")[t]),ng=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return rg(i[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?rg(a[1],e):0}},xC=new Set(["x","y","z"]),wC=va.filter(e=>!xC.has(e));function CC(e){const t=[];return wC.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Jn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ng(4,13),y:ng(5,14)};Jn.translateX=Jn.x,Jn.translateY=Jn.y;const SC=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=Jn[l](n,a)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=Jn[l](u,a)}),e},EC=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(tg);let a=[],o=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Ea(c);const d=t[u];let h;if(Zo(d)){const g=d.length,p=d[0]===null?1:0;c=d[p],f=Ea(c);for(let y=p;y<g&&d[y]!==null;y++)h?Zt(Ea(d[y])===h,"All keyframes must be of the same type"):(h=Ea(d[y]),Zt(h===f||cs(f)&&cs(h),"Keyframes must be of the same dimension as the current value"))}else h=Ea(d);if(f!==h)if(cs(f)&&cs(h)){const g=l.get();typeof g=="string"&&l.set(parseFloat(g)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===ge&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(o||(a=CC(e),o=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=SC(t,e,s);return a.length&&a.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Wo&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function TC(e,t,r,n){return bC(t)?EC(e,t,r,n):{target:t,transitionEnd:n}}const _C=(e,t,r,n)=>{const i=vC(e,t,n);return t=i.target,n=i.transitionEnd,TC(e,t,r,n)},hc={current:null},ig={current:!1};function kC(){if(ig.current=!0,!!Wo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hc.current=e.matches;e.addListener(t),t()}else hc.current=!1}function MC(e,t,r){const{willChange:n}=t;for(const i in t){const a=t[i],o=r[i];if($t(a))e.addValue(i,a),os(n)&&n.add(i),process.env.NODE_ENV==="development"&&rc(a.version==="10.16.4",`Attempting to mix Framer Motion versions ${a.version} with 10.16.4 may not work as expected.`);else if($t(o))e.addValue(i,fr(a,{owner:e})),os(n)&&n.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,fr(s!==void 0?s:a,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const ag=new WeakMap,og=Object.keys(ma),OC=og.length,sg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],AC=xu.length;class PC{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ne.render(this.render,!1,!0);const{latestValues:s,renderState:u}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Yo(r),this.isVariantNode=zh(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&$t(d)&&(d.set(s[f],!1),os(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,ag.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),ig.current||kC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hc.current,process.env.NODE_ENV!=="production"&&rc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ag.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=fn.has(t),i=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ne.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,a){let o,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?qn(!1,u):Zt(!1,u)}for(let u=0;u<OC;u++){const l=og[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=ma[l];d&&(o=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&Gn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:a,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<sg.length;n++){const i=sg[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=MC(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<AC;n++){const i=xu[n],a=this.props[i];(ga(a)||a===!1)&&(r[i]=a)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=fr(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Pu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!$t(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new tc),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class lg extends PC{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},a){let o=K3(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),a){G3(this,n,o);const s=_C(this,n,o,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function DC(e){return window.getComputedStyle(e)}class $C extends lg{readValueFromInstance(t,r){if(fn.has(r)){const n=Zu(r);return n&&n.default||0}else{const n=DC(t),i=(qh(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return T0(t,r)}build(t,r,n,i){Tu(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Au(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$t(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){np(t,r,n,i)}}class FC extends lg{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(fn.has(r)){const n=Zu(r);return n&&n.default||0}return r=ip.has(r)?r:Ou(r),t.getAttribute(r)}measureInstanceViewportBox(){return xt()}scrapeMotionValuesFromProps(t,r){return op(t,r)}build(t,r,n,i){ku(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){ap(t,r,n,i)}mount(t){this.isSVGTag=Mu(t.tagName),super.mount(t)}}const IC=(e,t)=>Su(e)?new FC(t,{enableHardwareAcceleration:!1}):new $C(t,{enableHardwareAcceleration:!0}),jC={layout:{ProjectionNode:eg,MeasureLayout:M0}},Jt=H5(Cw);function ug(){const e=m.useRef(!1);return Ho(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function LC(){const e=ug(),[t,r]=m.useState(0),n=m.useCallback(()=>{e.current&&r(t+1)},[t]);return[m.useCallback(()=>Ne.postRender(n),[n]),t]}class RC extends pe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function NC({children:e,isPresent:t}){const r=m.useId(),n=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:u}=i.current;if(t||!n.current||!a||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
1
+ (function(A,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("react-dom"),require("@mui/x-date-pickers-pro"),require("@mui/lab"),require("@mui/x-data-grid-premium"),require("@emotion/styled"),require("react-hook-form")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","react-dom","@mui/x-date-pickers-pro","@mui/lab","@mui/x-data-grid-premium","@emotion/styled","react-hook-form"],m):(A=typeof globalThis<"u"?globalThis:A||self,m(A.common={},A.React,A.material,A.react,A.reactDom,A.xDatePickersPro,A.lab,A.xDataGridPremium,A.emStyled,A.reactHookForm))})(this,function(A,m,E,vu,Rh,Yn,C5,Br,S5,Ee){"use strict";function E5(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=E5(m),Nh={duration:2,ease:[.43,.13,.23,.96]},T5={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Nh}},_5=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},xe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},_e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},pa=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,a=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:xe},exit:{opacity:0,transition:_e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:_e({durationOut:n,easeOut:a})}},out:{initial:{opacity:1},animate:{opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:_e({durationOut:n,easeOut:a})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:_e({durationOut:n,easeOut:a})}}}},k5=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,a=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:_e({durationOut:n,easeOut:a})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:_e({durationOut:n,easeOut:a})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:_e({durationOut:n,easeOut:a})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:_e({durationOut:n,easeOut:a})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:xe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:_e({durationOut:n,easeOut:a})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:xe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:xe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:xe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:xe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:xe({durationIn:r,easeIn:i})}}}},M5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:_e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:_e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:_e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:_e({durationOut:r,easeOut:i})}}}},O5=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,a=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:t,transition:_e({durationOut:n,easeOut:a})}},inDown:{initial:{y:-t},animate:{y:0,transition:xe({durationIn:r,easeIn:i})},exit:{y:-t,transition:_e({durationOut:n,easeOut:a})}},inLeft:{initial:{x:-t},animate:{x:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:-t,transition:_e({durationOut:n,easeOut:a})}},inRight:{initial:{x:t},animate:{x:0,transition:xe({durationIn:r,easeIn:i})},exit:{x:t,transition:_e({durationOut:n,easeOut:a})}},outUp:{initial:{y:0},animate:{y:-t,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,transition:_e({durationOut:n,easeOut:a})}},outDown:{initial:{y:0},animate:{y:t,transition:xe({durationIn:r,easeIn:i})},exit:{y:0,transition:_e({durationOut:n,easeOut:a})}},outLeft:{initial:{x:0},animate:{x:-t,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,transition:_e({durationOut:n,easeOut:a})}},outRight:{initial:{x:0},animate:{x:t,transition:xe({durationIn:r,easeIn:i})},exit:{x:0,transition:_e({durationOut:n,easeOut:a})}}}},A5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:_e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:xe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:_e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:xe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:xe({durationIn:t,easeIn:n})}}}},P5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...xe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:xe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:_e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},D5=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:xe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:_e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:_e({durationOut:r,easeOut:i})}}}},$5=e=>({hover:{scale:e||1.1}}),Bo=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},F5=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},I5=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},j5=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=a=>`linear-gradient(${a}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}},Bh=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vo=m.createContext({}),zo=m.createContext(null),Wo=typeof document<"u",Ho=Wo?m.useLayoutEffect:m.useEffect,yu=m.createContext({strict:!1});function L5(e,t,r,n){const{visualElement:i}=m.useContext(Vo),a=m.useContext(yu),o=m.useContext(zo),s=m.useContext(Bh).reducedMotion,u=m.useRef();n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;m.useInsertionEffect(()=>{l&&l.update(r,o)});const c=m.useRef(!!window.HandoffAppearAnimations);return Ho(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),m.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Gn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function R5(e,t,r){return m.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Gn(r)&&(r.current=n))},[t])}function ga(e){return typeof e=="string"||Array.isArray(e)}function Uo(e){return typeof e=="object"&&typeof e.start=="function"}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Yo(e){return Uo(e.animate)||xu.some(t=>ga(e[t]))}function Vh(e){return!!(Yo(e)||e.variants)}function N5(e,t){if(Yo(e)){const{initial:r,animate:n}=e;return{initial:r===!1||ga(r)?r:void 0,animate:ga(n)?n:void 0}}return e.inherit!==!1?t:{}}function B5(e){const{initial:t,animate:r}=N5(e,m.useContext(Vo));return m.useMemo(()=>({initial:t,animate:r}),[zh(t),zh(r)])}function zh(e){return Array.isArray(e)?e.join(" "):e}const Wh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ma={};for(const e in Wh)ma[e]={isEnabled:t=>Wh[e].some(r=>!!t[r])};function wu(e){for(const t in e)ma[t]={...ma[t],...e[t]}}const Cu=m.createContext({}),Hh=m.createContext({}),V5=Symbol.for("motionComponentSymbol");function z5({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&wu(e);function a(s,u){let l;const c={...m.useContext(Bh),...s,layoutId:W5(s)},{isStatic:f}=c,d=B5(s),h=n(s,f);if(!f&&Wo){d.visualElement=L5(i,h,c,t);const g=m.useContext(Hh),p=m.useContext(yu).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,g))}return pe.createElement(Vo.Provider,{value:d},l&&d.visualElement?pe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,R5(h,d.visualElement,u),h,f,d.visualElement))}const o=m.forwardRef(a);return o[V5]=i,o}function W5({layoutId:e}){const t=m.useContext(Cu).id;return t&&e!==void 0?t+"-"+e:e}function H5(e){function t(n,i={}){return z5(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const U5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Su(e){return typeof e!="string"||e.includes("-")?!1:!!(U5.indexOf(e)>-1||/[A-Z]/.test(e))}const Go={};function Y5(e){Object.assign(Go,e)}const va=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fn=new Set(va);function Uh(e,{layout:t,layoutId:r}){return fn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Go[e]||e==="opacity")}const $t=e=>!!(e&&e.getVelocity),G5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},q5=va.length;function K5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let a="";for(let o=0;o<q5;o++){const s=va[o];if(e[s]!==void 0){const u=G5[s]||s;a+=`${u}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,n?"":a):r&&n&&(a="none"),a}const Yh=e=>t=>typeof t=="string"&&t.startsWith(e),Gh=Yh("--"),Eu=Yh("var(--"),X5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Z5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vr=(e,t,r)=>Math.min(Math.max(r,e),t),dn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ya={...dn,transform:e=>Vr(0,1,e)},qo={...dn,default:1},ba=e=>Math.round(e*1e5)/1e5,Ko=/(-)?([\d]*\.?[\d])+/g,qh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Q5=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xa(e){return typeof e=="string"}const wa=e=>({test:t=>xa(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zr=wa("deg"),ur=wa("%"),ge=wa("px"),J5=wa("vh"),ew=wa("vw"),Kh={...ur,parse:e=>ur.parse(e)/100,transform:e=>ur.transform(e*100)},Xh={...dn,transform:Math.round},Zh={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,radius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,size:ge,top:ge,right:ge,bottom:ge,left:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,rotate:zr,rotateX:zr,rotateY:zr,rotateZ:zr,scale:qo,scaleX:qo,scaleY:qo,scaleZ:qo,skew:zr,skewX:zr,skewY:zr,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:ya,originX:Kh,originY:Kh,originZ:ge,zIndex:Xh,fillOpacity:ya,strokeOpacity:ya,numOctaves:Xh};function Tu(e,t,r,n){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(Gh(f)){a[f]=d;continue}const h=Zh[f],g=Z5(d,h);if(fn.has(f)){if(u=!0,o[f]=g,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=g):i[f]=g}if(t.transform||(u||n?i.transform=K5(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const _u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qh(e,t,r){for(const n in t)!$t(t[n])&&!Uh(n,r)&&(e[n]=t[n])}function tw({transformTemplate:e},t,r){return m.useMemo(()=>{const n=_u();return Tu(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function rw(e,t,r){const n=e.style||{},i={};return Qh(i,n,e),Object.assign(i,tw(e,t,r)),e.transformValues?e.transformValues(i):i}function nw(e,t,r){const n={},i=rw(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const iw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Xo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||iw.has(e)}let Jh=e=>!Xo(e);function aw(e){e&&(Jh=t=>t.startsWith("on")?!Xo(t):e(t))}try{aw(require("@emotion/is-prop-valid").default)}catch{}function ow(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(Jh(i)||r===!0&&Xo(i)||!t&&!Xo(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function ep(e,t,r){return typeof e=="string"?e:ge.transform(t+r*e)}function sw(e,t,r){const n=ep(t,e.x,e.width),i=ep(r,e.y,e.height);return`${n} ${i}`}const lw={offset:"stroke-dashoffset",array:"stroke-dasharray"},uw={offset:"strokeDashoffset",array:"strokeDasharray"};function cw(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?lw:uw;e[a.offset]=ge.transform(-n);const o=ge.transform(t),s=ge.transform(r);e[a.array]=`${o} ${s}`}function ku(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Tu(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=sw(p,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),o!==void 0&&cw(h,o,s,u,!1)}const tp=()=>({..._u(),attrs:{}}),Mu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fw(e,t,r,n){const i=m.useMemo(()=>{const a=tp();return ku(a,t,{enableHardwareAcceleration:!1},Mu(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Qh(a,e.style,e),i.style={...a,...i.style}}return i}function dw(e=!1){return(r,n,i,{latestValues:a},o)=>{const u=(Su(r)?fw:nw)(n,a,o,r),c={...ow(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=m.useMemo(()=>$t(f)?f.get():f,[f]);return m.createElement(r,{...c,children:d})}}const Ou=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rp(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const np=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ip(e,t,r,n){rp(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(np.has(i)?i:Ou(i),t.attrs[i])}function Au(e,t){const{style:r}=e,n={};for(const i in r)($t(r[i])||t.style&&$t(t.style[i])||Uh(i,e))&&(n[i]=r[i]);return n}function ap(e,t){const r=Au(e,t);for(const n in e)if($t(e[n])||$t(t[n])){const i=va.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Pu(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Du(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Zo=e=>Array.isArray(e),hw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),pw=e=>Zo(e)?e[e.length-1]||0:e;function Qo(e){const t=$t(e)?e.get():e;return hw(t)?t.toValue():t}function gw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,a){const o={latestValues:mw(n,i,a,e),renderState:t()};return r&&(o.mount=s=>r(n,s,o)),o}const op=e=>(t,r)=>{const n=m.useContext(Vo),i=m.useContext(zo),a=()=>gw(e,t,n,i);return r?a():Du(a)};function mw(e,t,r,n){const i={},a=n(e,{});for(const d in a)i[d]=Qo(a[d]);let{initial:o,animate:s}=e;const u=Yo(e),l=Vh(e);t&&l&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||o===!1;const f=c?s:o;return f&&typeof f!="boolean"&&!Uo(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=Pu(e,h);if(!g)return;const{transitionEnd:p,transition:y,...b}=g;for(const x in b){let C=b[x];if(Array.isArray(C)){const k=c?C.length-1:0;C=C[k]}C!==null&&(i[x]=C)}for(const x in p)i[x]=p[x]}),i}const ct=e=>e;class sp{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function vw(e){let t=new sp,r=new sp,n=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&o.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),o.delete(u)},process:u=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),o.has(c)&&(s.schedule(c),e())}i=!1,a&&(a=!1,s.process(u))}};return s}const Jo=["prepare","read","update","preRender","render","postRender"],yw=40;function bw(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=Jo.reduce((f,d)=>(f[d]=vw(()=>r=!0),f),{}),o=f=>a[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,yw),1),i.timestamp=f,i.isProcessing=!0,Jo.forEach(o),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:Jo.reduce((f,d)=>{const h=a[d];return f[d]=(g,p=!1,y=!1)=>(r||u(),h.schedule(g,p,y)),f},{}),cancel:f=>Jo.forEach(d=>a[d].cancel(f)),state:i,steps:a}}const{schedule:Ne,cancel:cr,state:St,steps:$u}=bw(typeof requestAnimationFrame<"u"?requestAnimationFrame:ct,!0),xw={useVisualState:op({scrapeMotionValuesFromProps:ap,createRenderState:tp,onMount:(e,t,{renderState:r,latestValues:n})=>{Ne.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ne.render(()=>{ku(r,n,{enableHardwareAcceleration:!1},Mu(t.tagName),e.transformTemplate),ip(t,r)})}})},ww={useVisualState:op({scrapeMotionValuesFromProps:Au,createRenderState:_u})};function Cw(e,{forwardMotionProps:t=!1},r,n){return{...Su(e)?xw:ww,preloadedFeatures:r,useRender:dw(t),createVisualElement:n,Component:e}}function Sr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const lp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function es(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Sw=e=>t=>lp(t)&&e(t,es(t));function Er(e,t,r,n){return Sr(e,t,Sw(r),n)}const Ew=(e,t)=>r=>t(e(r)),Wr=(...e)=>e.reduce(Ew);function up(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const cp=up("dragHorizontal"),fp=up("dragVertical");function dp(e){let t=!1;if(e==="y")t=fp();else if(e==="x")t=cp();else{const r=cp(),n=fp();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function hp(){const e=dp(!0);return e?(e(),!1):!0}class Hr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function pp(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||hp())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&Ne.update(()=>s[n](a,o))};return Er(e.current,r,i,{passive:!e.getProps()[n]})}class Tw extends Hr{mount(){this.unmount=Wr(pp(this.node,!0),pp(this.node,!1))}unmount(){}}class _w extends Hr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wr(Sr(this.node.current,"focus",()=>this.onFocus()),Sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gp=(e,t)=>t?e===t?!0:gp(e,t.parentElement):!1;function Fu(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,es(r))}class kw extends Hr{constructor(){super(...arguments),this.removeStartListeners=ct,this.removeEndListeners=ct,this.removeAccessibleListeners=ct,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=Er(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();Ne.update(()=>{gp(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),o=Er(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Wr(a,o),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||Fu("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ne.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Sr(this.node.current,"keyup",o),Fu("down",(s,u)=>{this.startPress(s,u)})},r=Sr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Fu("cancel",(a,o)=>this.cancelPress(a,o))},i=Sr(this.node.current,"blur",n);this.removeAccessibleListeners=Wr(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ne.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hp()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ne.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Er(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Sr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wr(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Iu=new WeakMap,ju=new WeakMap,Mw=e=>{const t=Iu.get(e.target);t&&t(e)},Ow=e=>{e.forEach(Mw)};function Aw({root:e,...t}){const r=e||document;ju.has(r)||ju.set(r,{});const n=ju.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ow,{root:e,...t})),n[i]}function Pw(e,t,r){const n=Aw(t);return Iu.set(e,r),n.observe(e),()=>{Iu.delete(e),n.unobserve(e)}}const Dw={some:0,all:1};class $w extends Hr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Dw[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return Pw(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Fw(t,r))&&this.startObserver()}unmount(){}}function Fw({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Iw={inView:{Feature:$w},tap:{Feature:kw},focus:{Feature:_w},hover:{Feature:Tw}};function mp(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function jw(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Lw(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function ts(e,t,r){const n=e.getProps();return Pu(n,t,r!==void 0?r:n.custom,jw(e),Lw(e))}const Rw="data-"+Ou("framerAppearId");let qn=ct,Zt=ct;process.env.NODE_ENV!=="production"&&(qn=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zt=(e,t)=>{if(!e)throw new Error(t)});const Ur=e=>e*1e3,Tr=e=>e/1e3,Nw={current:!1},vp=e=>Array.isArray(e)&&typeof e[0]=="number";function yp(e){return!!(!e||typeof e=="string"&&bp[e]||vp(e)||Array.isArray(e)&&e.every(yp))}const Ca=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,bp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ca([0,.65,.55,1]),circOut:Ca([.55,0,1,.45]),backIn:Ca([.31,.01,.66,-.59]),backOut:Ca([.33,1.53,.69,.99])};function xp(e){if(e)return vp(e)?Ca(e):Array.isArray(e)?e.map(xp):bp[e]}function Bw(e,t,r,{delay:n=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=xp(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function Vw(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const wp=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,zw=1e-7,Ww=12;function Hw(e,t,r,n,i){let a,o,s=0;do o=t+(r-t)/2,a=wp(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>zw&&++s<Ww);return o}function Sa(e,t,r,n){if(e===t&&r===n)return ct;const i=a=>Hw(a,0,1,e,r);return a=>a===0||a===1?a:wp(i(a),t,n)}const Uw=Sa(.42,0,1,1),Yw=Sa(0,0,.58,1),Cp=Sa(.42,0,.58,1),Gw=e=>Array.isArray(e)&&typeof e[0]!="number",Sp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ep=e=>t=>1-e(1-t),Tp=e=>1-Math.sin(Math.acos(e)),Lu=Ep(Tp),qw=Sp(Lu),_p=Sa(.33,1.53,.69,.99),Ru=Ep(_p),Kw=Sp(Ru),kp={linear:ct,easeIn:Uw,easeInOut:Cp,easeOut:Yw,circIn:Tp,circInOut:qw,circOut:Lu,backIn:Ru,backInOut:Kw,backOut:_p,anticipate:e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1)))},Mp=e=>{if(Array.isArray(e)){Zt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return Sa(t,r,n,i)}else if(typeof e=="string")return Zt(kp[e]!==void 0,`Invalid easing type '${e}'`),kp[e];return e},Nu=(e,t)=>r=>!!(xa(r)&&Q5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Op=(e,t,r)=>n=>{if(!xa(n))return n;const[i,a,o,s]=n.match(Ko);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Xw=e=>Vr(0,255,e),Bu={...dn,transform:e=>Math.round(Xw(e))},hn={test:Nu("rgb","red"),parse:Op("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Bu.transform(e)+", "+Bu.transform(t)+", "+Bu.transform(r)+", "+ba(ya.transform(n))+")"};function Zw(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Vu={test:Nu("#"),parse:Zw,transform:hn.transform},Kn={test:Nu("hsl","hue"),parse:Op("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ur.transform(ba(t))+", "+ur.transform(ba(r))+", "+ba(ya.transform(n))+")"},At={test:e=>hn.test(e)||Vu.test(e)||Kn.test(e),parse:e=>hn.test(e)?hn.parse(e):Kn.test(e)?Kn.parse(e):Vu.parse(e),transform:e=>xa(e)?e:e.hasOwnProperty("red")?hn.transform(e):Kn.transform(e)},at=(e,t,r)=>-r*e+r*t+e;function zu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Qw({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,o=0;if(!t)i=a=o=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=zu(u,s,e+1/3),a=zu(u,s,e),o=zu(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}const Wu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Jw=[Vu,hn,Kn],e3=e=>Jw.find(t=>t.test(e));function Ap(e){const t=e3(e);Zt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Kn&&(r=Qw(r)),r}const Pp=(e,t)=>{const r=Ap(e),n=Ap(t),i={...r};return a=>(i.red=Wu(r.red,n.red,a),i.green=Wu(r.green,n.green,a),i.blue=Wu(r.blue,n.blue,a),i.alpha=at(r.alpha,n.alpha,a),hn.transform(i))};function t3(e){var t,r;return isNaN(e)&&xa(e)&&(((t=e.match(Ko))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(qh))===null||r===void 0?void 0:r.length)||0)>0}const Dp={regex:X5,countKey:"Vars",token:"${v}",parse:ct},$p={regex:qh,countKey:"Colors",token:"${c}",parse:At.parse},Fp={regex:Ko,countKey:"Numbers",token:"${n}",parse:dn.parse};function Hu(e,{regex:t,countKey:r,token:n,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(i)))}function rs(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Hu(r,Dp),Hu(r,$p),Hu(r,Fp),r}function Ip(e){return rs(e).values}function jp(e){const{values:t,numColors:r,numVars:n,tokenised:i}=rs(e),a=t.length;return o=>{let s=i;for(let u=0;u<a;u++)u<n?s=s.replace(Dp.token,o[u]):u<n+r?s=s.replace($p.token,At.transform(o[u])):s=s.replace(Fp.token,ba(o[u]));return s}}const r3=e=>typeof e=="number"?0:e;function n3(e){const t=Ip(e);return jp(e)(t.map(r3))}const Yr={test:t3,parse:Ip,createTransformer:jp,getAnimatableNone:n3},Lp=(e,t)=>r=>`${r>0?t:e}`;function Rp(e,t){return typeof e=="number"?r=>at(e,t,r):At.test(e)?Pp(e,t):e.startsWith("var(")?Lp(e,t):Bp(e,t)}const Np=(e,t)=>{const r=[...e],n=r.length,i=e.map((a,o)=>Rp(a,t[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}},i3=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=Rp(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}},Bp=(e,t)=>{const r=Yr.createTransformer(t),n=rs(e),i=rs(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Wr(Np(n.values,i.values),r):(qn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Lp(e,t))},Xn=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Vp=(e,t)=>r=>at(e,t,r);function a3(e){return typeof e=="number"?Vp:typeof e=="string"?At.test(e)?Pp:Bp:Array.isArray(e)?Np:typeof e=="object"?i3:Vp}function o3(e,t,r){const n=[],i=r||a3(e[0]),a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||ct:t;s=Wr(u,s)}n.push(s)}return n}function Uu(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const a=e.length;if(Zt(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=o3(t,n,i),s=o.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=Xn(e[c],e[c+1],l);return o[c](f)};return r?l=>u(Vr(e[0],e[a-1],l)):u}function s3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=Xn(0,t,n);e.push(at(r,1,i))}}function zp(e){const t=[0];return s3(t,e.length-1),t}function l3(e,t){return e.map(r=>r*t)}function u3(e,t){return e.map(()=>t||Cp).splice(0,e.length-1)}function ns({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Gw(n)?n.map(Mp):Mp(n),a={done:!1,value:t[0]},o=l3(r&&r.length===t.length?r:zp(t),e),s=Uu(o,t,{ease:Array.isArray(i)?i:u3(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}function Yu(e,t){return t?e*(1e3/t):0}const c3=5;function Wp(e,t,r){const n=Math.max(t-c3,0);return Yu(r-e(n),t-n)}const Gu=.001,f3=.01,Hp=10,d3=.05,h3=1;function p3({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,a;qn(e<=Ur(Hp),"Spring duration must be 10 seconds or less");let o=1-t;o=Vr(d3,h3,o),e=Vr(f3,Hp,Tr(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-r,h=qu(l,o),g=Math.exp(-f);return Gu-d/h*g},a=l=>{const f=l*o*e,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-f),p=qu(Math.pow(l,2),o);return(-i(l)+Gu>0?-1:1)*((d-h)*g)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Gu+c*f},a=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=m3(i,a,s);if(e=Ur(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:e}}}const g3=12;function m3(e,t,r){let n=r;for(let i=1;i<g3;i++)n=n-e(n)/t(n);return n}function qu(e,t){return e*Math.sqrt(1-t*t)}const v3=["duration","bounce"],y3=["stiffness","damping","mass"];function Up(e,t){return t.some(r=>e[r]!==void 0)}function b3(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Up(e,y3)&&Up(e,v3)){const r=p3(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Yp({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=b3(n),h=c?-Tr(c):0,g=u/(2*Math.sqrt(s*l)),p=a-i,y=Tr(Math.sqrt(s/l)),b=Math.abs(p)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let x;if(g<1){const C=qu(y,g);x=k=>{const w=Math.exp(-g*y*k);return a-w*((h+g*y*p)/C*Math.sin(C*k)+p*Math.cos(C*k))}}else if(g===1)x=C=>a-Math.exp(-y*C)*(p+(h+y*p)*C);else{const C=y*Math.sqrt(g*g-1);x=k=>{const w=Math.exp(-g*y*k),_=Math.min(C*k,300);return a-w*((h+g*y*p)*Math.sinh(_)+C*p*Math.cosh(_))/C}}return{calculatedDuration:d&&f||null,next:C=>{const k=x(C);if(d)o.done=C>=f;else{let w=h;C!==0&&(g<1?w=Wp(x,C,k):w=0);const _=Math.abs(w)<=r,T=Math.abs(a-k)<=t;o.done=_&&T}return o.value=o.done?a:k,o}}}function Gp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=O=>s!==void 0&&O<s||u!==void 0&&O>u,g=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let p=r*t;const y=f+p,b=o===void 0?y:o(y);b!==y&&(p=b-f);const x=O=>-p*Math.exp(-O/n),C=O=>b+x(O),k=O=>{const P=x(O),F=C(O);d.done=Math.abs(P)<=l,d.value=d.done?b:F};let w,_;const T=O=>{h(d.value)&&(w=O,_=Yp({keyframes:[d.value,g(d.value)],velocity:Wp(C,O,d.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return T(0),{calculatedDuration:null,next:O=>{let P=!1;return!_&&w===void 0&&(P=!0,k(O),T(O)),w!==void 0&&O>w?_.next(O-w):(!P&&k(O),d)}}}const x3=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ne.update(t,!0),stop:()=>cr(t),now:()=>St.isProcessing?St.timestamp:performance.now()}},qp=2e4;function Kp(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<qp;)t+=r,n=e.next(t);return t>=qp?1/0:t}const w3={decay:Gp,inertia:Gp,tween:ns,keyframes:ns,spring:Yp};function is({autoplay:e=!0,delay:t=0,driver:r=x3,keyframes:n,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,g=!1,p,y;const b=()=>{y=new Promise($=>{p=$})};b();let x;const C=w3[i]||ns;let k;C!==ns&&typeof n[0]!="number"&&(k=Uu([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let _;s==="mirror"&&(_=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let T="idle",O=null,P=null,F=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=Kp(w));const{calculatedDuration:Z}=w;let be=1/0,oe=1/0;Z!==null&&(be=Z+o,oe=be*(a+1)-o);let Q=0;const H=$=>{if(P===null)return;h>0&&(P=Math.min(P,$)),h<0&&(P=Math.min($-oe/h,P)),O!==null?Q=O:Q=Math.round($-P)*h;const W=Q-t*(h>=0?1:-1),se=h>=0?W<0:W>oe;Q=Math.max(W,0),T==="finished"&&O===null&&(Q=oe);let X=Q,ce=w;if(a){const q=Q/be;let te=Math.floor(q),Se=q%1;!Se&&q>=1&&(Se=1),Se===1&&te--,te=Math.min(te,a+1);const j=!!(te%2);j&&(s==="reverse"?(Se=1-Se,o&&(Se-=o/be)):s==="mirror"&&(ce=_));let Je=Vr(0,1,Se);Q>oe&&(Je=s==="reverse"&&j?1:0),X=Je*be}const ne=se?{done:!1,value:n[0]}:ce.next(X);k&&(ne.value=k(ne.value));let{done:le}=ne;!se&&Z!==null&&(le=h>=0?Q>=oe:Q<=0);const ee=O===null&&(T==="finished"||T==="running"&&le);return f&&f(ne.value),ee&&Ce(),ne},R=()=>{x&&x.stop(),x=void 0},U=()=>{T="idle",R(),p(),b(),P=F=null},Ce=()=>{T="finished",c&&c(),R(),p()},fe=()=>{if(g)return;x||(x=r(H));const $=x.now();u&&u(),O!==null?P=$-O:(!P||T==="finished")&&(P=$),T==="finished"&&b(),F=P,O=null,T="running",x.start()};e&&fe();const D={then($,W){return y.then($,W)},get time(){return Tr(Q)},set time($){$=Ur($),Q=$,O!==null||!x||h===0?O=$:P=x.now()-$/h},get duration(){const $=w.calculatedDuration===null?Kp(w):w.calculatedDuration;return Tr($)},get speed(){return h},set speed($){$===h||!x||(h=$,D.time=Tr(Q))},get state(){return T},play:fe,pause:()=>{T="paused",O=Q},stop:()=>{g=!0,T!=="idle"&&(T="idle",l&&l(),U())},cancel:()=>{F!==null&&H(F),U()},complete:()=>{T="finished"},sample:$=>(P=0,H($))};return D}function C3(e){let t;return()=>(t===void 0&&(t=e()),t)}const S3=C3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),E3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),as=10,T3=2e4,_3=(e,t)=>t.type==="spring"||e==="backgroundColor"||!yp(t.ease);function k3(e,t,{onUpdate:r,onComplete:n,...i}){if(!(S3()&&E3.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,u;const l=()=>{u=new Promise(x=>{s=x})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(_3(t,i)){const x=is({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const k=[];let w=0;for(;!C.done&&w<T3;)C=x.sample(w),k.push(C.value),w+=as;h=void 0,c=k,f=w-as,d="linear"}const g=Bw(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(g.startTime=St.isProcessing?St.timestamp:document.timeline?document.timeline.currentTime:performance.now());const p=()=>g.cancel(),y=()=>{Ne.update(p),s(),l()};return g.onfinish=()=>{e.set(Vw(c,i)),n&&n(),y()},{then(x,C){return u.then(x,C)},attachTimeline(x){return g.timeline=x,g.onfinish=null,ct},get time(){return Tr(g.currentTime||0)},set time(x){g.currentTime=Ur(x)},get speed(){return g.playbackRate},set speed(x){g.playbackRate=x},get duration(){return Tr(f)},play:()=>{o||(g.play(),cr(p))},pause:()=>g.pause(),stop:()=>{if(o=!0,g.playState==="idle")return;const{currentTime:x}=g;if(x){const C=is({...i,autoplay:!1});e.setWithVelocity(C.sample(x-as).value,C.sample(x).value,as)}y()},complete:()=>g.finish(),cancel:y}}function M3({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:ct,pause:ct,stop:ct,then:a=>(a(),Promise.resolve()),cancel:ct,complete:ct});return t?is({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const O3={type:"spring",stiffness:500,damping:25,restSpeed:10},A3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),P3={type:"keyframes",duration:.8},D3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$3=(e,{keyframes:t})=>t.length>2?P3:fn.has(e)?e.startsWith("scale")?A3(t[1]):O3:D3,Ku=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Yr.test(t)||t==="0")&&!t.startsWith("url(")),F3=new Set(["brightness","contrast","saturate","opacity"]);function I3(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Ko)||[];if(!n)return e;const i=r.replace(n,"");let a=F3.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const j3=/([a-z-]*)\(.*?\)/g,Xu={...Yr,getAnimatableNone:e=>{const t=e.match(j3);return t?t.map(I3).join(" "):e}},L3={...Zh,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:Xu,WebkitFilter:Xu},Zu=e=>L3[e];function Xp(e,t){let r=Zu(e);return r!==Xu&&(r=Yr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Zp=e=>/^0[^.\s]+$/.test(e);function R3(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Zp(e)}function N3(e,t,r,n){const i=Ku(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const o=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<a.length;l++)a[l]===null&&(a[l]=l===0?o:a[l-1]),R3(a[l])&&u.push(l),typeof a[l]=="string"&&a[l]!=="none"&&a[l]!=="0"&&(s=a[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];a[c]=Xp(t,s)}return a}function B3({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function Qp(e,t){return e[t]||e.default||e}const Qu=(e,t,r,n={})=>i=>{const a=Qp(n,e)||{},o=a.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Ur(o);const u=N3(t,e,r,a),l=u[0],c=u[u.length-1],f=Ku(e,l),d=Ku(e,c);qn(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(B3(a)||(h={...h,...$3(e,h)}),h.duration&&(h.duration=Ur(h.duration)),h.repeatDelay&&(h.repeatDelay=Ur(h.repeatDelay)),!f||!d||Nw.current||a.type===!1)return M3(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=k3(t,e,h);if(g)return g}return is(h)};function os(e){return!!($t(e)&&e.add)}const Jp=e=>/^\-?\d*\.?\d+$/.test(e);function Ju(e,t){e.indexOf(t)===-1&&e.push(t)}function ec(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class tc{constructor(){this.subscriptions=[]}add(t){return Ju(this.subscriptions,t),()=>ec(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const e0=new Set;function rc(e,t,r){e||e0.has(t)||(console.warn(t),r&&console.warn(r),e0.add(t))}const V3=e=>!isNaN(parseFloat(e));class z3{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:o}=St;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,Ne.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ne.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=V3(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&rc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new tc);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ne.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Yu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fr(e,t){return new z3(e,t)}const t0=e=>t=>t.test(e),r0=[dn,ge,ur,zr,ew,J5,{test:e=>e==="auto",parse:e=>e}],Ea=e=>r0.find(t0(e)),W3=[...r0,At,Yr],H3=e=>W3.find(t0(e));function U3(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,fr(r))}function Y3(e,t){const r=ts(e,t);let{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const o in a){const s=pw(a[o]);U3(e,o,s)}}function G3(e,t,r){var n,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;s<o;s++){const u=a[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(Jp(c)||Zp(c))?c=parseFloat(c):!H3(c)&&Yr.test(l)&&(c=Xp(u,l)),e.addValue(u,fr(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function q3(e,t){return t?(t[e]||t.default||t).from:void 0}function K3(e,t,r){const n={};for(const i in e){const a=q3(i,t);if(a!==void 0)n[i]=a;else{const o=r.getValue(i);o&&(n[i]=o.get())}}return n}function X3({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function n0(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(a=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&X3(c,f))continue;const g={delay:r,elapsed:0,...a};if(window.HandoffAppearAnimations&&!d.hasAnimated){const y=e.getProps()[Rw];y&&(g.elapsed=window.HandoffAppearAnimations(y,f,d,Ne),g.syncStart=!0)}d.start(Qu(f,d,h,e.shouldReduceMotion&&fn.has(f)?{type:!1}:g));const p=d.animation;os(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return o&&Promise.all(l).then(()=>{o&&Y3(e,o)}),l}function nc(e,t,r={}){const n=ts(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(n0(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Z3(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[a,o]:[o,a];return u().then(()=>l())}else return Promise.all([a(),o(r.delay)])}function Z3(e,t,r=0,n=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(Q3).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(nc(l,t,{...a,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function Q3(e,t){return e.sortNodePosition(t)}function J3(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>nc(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=nc(e,t,r);else{const i=typeof t=="function"?ts(e,t,r.custom):t;n=Promise.all(n0(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const e4=[...bu].reverse(),t4=bu.length;function r4(e){return t=>Promise.all(t.map(({animation:r,options:n})=>J3(e,r,n)))}function n4(e){let t=r4(e);const r=a4();let n=!0;const i=(u,l)=>{const c=ts(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function a(u){t=u(e)}function o(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let g={},p=1/0;for(let b=0;b<t4;b++){const x=e4[b],C=r[x],k=c[x]!==void 0?c[x]:f[x],w=ga(k),_=x===l?C.isActive:null;_===!1&&(p=b);let T=k===f[x]&&k!==c[x]&&w;if(T&&n&&e.manuallyAnimateOnMount&&(T=!1),C.protectedKeys={...g},!C.isActive&&_===null||!k&&!C.prevProp||Uo(k)||typeof k=="boolean")continue;const O=i4(C.prevProp,k);let P=O||x===l&&C.isActive&&!T&&w||b>p&&w;const F=Array.isArray(k)?k:[k];let Z=F.reduce(i,{});_===!1&&(Z={});const{prevResolvedValues:be={}}=C,oe={...be,...Z},Q=H=>{P=!0,h.delete(H),C.needsAnimating[H]=!0};for(const H in oe){const R=Z[H],U=be[H];g.hasOwnProperty(H)||(R!==U?Zo(R)&&Zo(U)?!mp(R,U)||O?Q(H):C.protectedKeys[H]=!0:R!==void 0?Q(H):h.add(H):R!==void 0&&h.has(H)?Q(H):C.protectedKeys[H]=!0)}C.prevProp=k,C.prevResolvedValues=Z,C.isActive&&(g={...g,...Z}),n&&e.blockInitialAnimation&&(P=!1),P&&!T&&d.push(...F.map(H=>({animation:H,options:{type:x,...u}})))}if(h.size){const b={};h.forEach(x=>{const C=e.getBaseTarget(x);C!==void 0&&(b[x]=C)}),d.push({animation:b})}let y=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(u,l)}),r[u].isActive=l;const d=o(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>r}}function i4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mp(t,e):!1}function pn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a4(){return{animate:pn(!0),whileInView:pn(),whileHover:pn(),whileTap:pn(),whileDrag:pn(),whileFocus:pn(),exit:pn()}}class o4 extends Hr{constructor(t){super(t),t.animationState||(t.animationState=n4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Uo(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let s4=0;class l4 extends Hr{constructor(){super(...arguments),this.id=s4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const u4={animation:{Feature:o4},exit:{Feature:l4}},i0=(e,t)=>Math.abs(e-t);function c4(e,t){const r=i0(e.x,t.x),n=i0(e.y,t.y);return Math.sqrt(r**2+n**2)}class a0{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=ac(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=c4(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=St;this.history.push({...d,timestamp:h});const{onStart:g,onMove:p}=this.handlers;c||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=ic(c,this.transformPagePoint),Ne.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=ac(l.type==="pointercancel"?this.lastMoveEventInfo:ic(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!lp(t))return;this.handlers=r,this.transformPagePoint=n;const i=es(t),a=ic(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=St;this.history=[{...o,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,ac(a,this.history)),this.removeListeners=Wr(Er(window,"pointermove",this.handlePointerMove),Er(window,"pointerup",this.handlePointerUp),Er(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}}function ic(e,t){return t?{point:t(e.point)}:e}function o0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:o0(e,s0(t)),offset:o0(e,f4(t)),velocity:d4(t,.1)}}function f4(e){return e[0]}function s0(e){return e[e.length-1]}function d4(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=s0(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Ur(t)));)r--;if(!n)return{x:0,y:0};const a=Tr(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Bt(e){return e.max-e.min}function oc(e,t=0,r=.01){return Math.abs(e-t)<=r}function l0(e,t,r,n=.5){e.origin=n,e.originPoint=at(t.min,t.max,e.origin),e.scale=Bt(r)/Bt(t),(oc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=at(r.min,r.max,e.origin)-e.originPoint,(oc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ta(e,t,r,n){l0(e.x,t.x,r.x,n?n.originX:void 0),l0(e.y,t.y,r.y,n?n.originY:void 0)}function u0(e,t,r){e.min=r.min+t.min,e.max=e.min+Bt(t)}function h4(e,t,r){u0(e.x,t.x,r.x),u0(e.y,t.y,r.y)}function c0(e,t,r){e.min=t.min-r.min,e.max=e.min+Bt(t)}function _a(e,t,r){c0(e.x,t.x,r.x),c0(e.y,t.y,r.y)}function p4(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?at(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?at(r,e,n.max):Math.min(e,r)),e}function f0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function g4(e,{top:t,left:r,bottom:n,right:i}){return{x:f0(e.x,r,i),y:f0(e.y,t,n)}}function d0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function m4(e,t){return{x:d0(e.x,t.x),y:d0(e.y,t.y)}}function v4(e,t){let r=.5;const n=Bt(e),i=Bt(t);return i>n?r=Xn(t.min,t.max-n,e.min):n>i&&(r=Xn(e.min,e.max-i,t.min)),Vr(0,1,r)}function y4(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const sc=.35;function b4(e=sc){return e===!1?e=0:e===!0&&(e=sc),{x:h0(e,"left","right"),y:h0(e,"top","bottom")}}function h0(e,t,r){return{min:p0(e,t),max:p0(e,r)}}function p0(e,t){return typeof e=="number"?e:e[t]||0}const g0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zn=()=>({x:g0(),y:g0()}),m0=()=>({min:0,max:0}),xt=()=>({x:m0(),y:m0()});function dr(e){return[e("x"),e("y")]}function v0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function x4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w4(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function lc(e){return e===void 0||e===1}function uc({scale:e,scaleX:t,scaleY:r}){return!lc(e)||!lc(t)||!lc(r)}function gn(e){return uc(e)||y0(e)||e.z||e.rotate||e.rotateX||e.rotateY}function y0(e){return b0(e.x)||b0(e.y)}function b0(e){return e&&e!=="0%"}function ss(e,t,r){const n=e-r,i=t*n;return r+i}function x0(e,t,r,n,i){return i!==void 0&&(e=ss(e,i,n)),ss(e,r,n)+t}function cc(e,t=0,r=1,n,i){e.min=x0(e.min,t,r,n,i),e.max=x0(e.max,t,r,n,i)}function w0(e,{x:t,y:r}){cc(e.x,t.translate,t.scale,t.originPoint),cc(e.y,r.translate,r.scale,r.originPoint)}function C4(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=r[s],o=a.projectionDelta;const u=a.instance;u&&u.style&&u.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Qn(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,w0(e,o)),n&&gn(a.latestValues)&&Qn(e,a.latestValues))}t.x=C0(t.x),t.y=C0(t.y)}function C0(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Gr(e,t){e.min=e.min+t,e.max=e.max+t}function S0(e,t,[r,n,i]){const a=t[i]!==void 0?t[i]:.5,o=at(e.min,e.max,a);cc(e,t[r],t[n],o,t.scale)}const S4=["x","scaleX","originX"],E4=["y","scaleY","originY"];function Qn(e,t){S0(e.x,t,S4),S0(e.y,t,E4)}function E0(e,t){return v0(w4(e.getBoundingClientRect(),t))}function T4(e,t,r){const n=E0(e,r),{scroll:i}=t;return i&&(Gr(n.x,i.offset.x),Gr(n.y,i.offset.y)),n}const _4=new WeakMap;class k4{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(es(u,"page").point)},a=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dp(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dr(g=>{let p=this.getAxisMotionValue(g).get()||0;if(ur.test(p)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[g];b&&(p=Bt(b)*(parseFloat(p)/100))}}this.originPoint[g]=p}),d&&Ne.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=l;if(f&&this.currentDirection===null){this.currentDirection=M4(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,g),this.updateAxis("y",l.point,g),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new a0(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ne.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!ls(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=p4(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Gn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=g4(n.layoutBox,t):this.constraints=!1,this.elastic=b4(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&dr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=y4(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Gn(t))return!1;const n=t.current;Zt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=T4(n,i.root,this.visualElement.getTransformPagePoint());let o=m4(i.layout.layoutBox,a);if(r){const s=r(x4(o));this.hasMutatedConstraints=!!s,s&&(o=v0(s))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=dr(c=>{if(!ls(c,r,this.currentDirection))return;let f=u&&u[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Qu(t,n,0,r))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){dr(r=>{const{drag:n}=this.getProps();if(!ls(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[r];a.set(t[r]-at(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Gn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dr(o=>{const s=this.getAxisMotionValue(o);if(s){const u=s.get();i[o]=v4({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),dr(o=>{if(!ls(o,t,null))return;const s=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];s.set(at(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;_4.set(this.visualElement,this);const t=this.visualElement.current,r=Er(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Gn(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=Sr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(dr(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=sc,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function ls(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function M4(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class O4 extends Hr{constructor(t){super(t),this.removeGroupControls=ct,this.removeListeners=ct,this.controls=new k4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ct}unmount(){this.removeGroupControls(),this.removeListeners()}}const T0=e=>(t,r)=>{e&&Ne.update(()=>e(t,r))};class A4 extends Hr{constructor(){super(...arguments),this.removePointerDownListener=ct}onPointerDown(t){this.session=new a0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:T0(t),onStart:T0(r),onMove:n,onEnd:(a,o)=>{delete this.session,i&&Ne.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=Er(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function P4(){const e=m.useContext(zo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=m.useId();return m.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const us={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ka={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const r=_0(e,t.target.x),n=_0(e,t.target.y);return`${r}% ${n}%`}},D4={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Yr.parse(e);if(i.length>5)return n;const a=Yr.createTransformer(e),o=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+o]/=s,i[1+o]/=u;const l=at(s,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),a(i)}};class $4 extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;Y5(F4),a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),us.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,o=n.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ne.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function k0(e){const[t,r]=P4(),n=m.useContext(Cu);return m.createElement($4,{...e,layoutGroup:n,switchLayoutGroup:m.useContext(Hh),isPresent:t,safeToRemove:r})}const F4={borderRadius:{...ka,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ka,borderTopRightRadius:ka,borderBottomLeftRadius:ka,borderBottomRightRadius:ka,boxShadow:D4},M0=["TopLeft","TopRight","BottomLeft","BottomRight"],I4=M0.length,O0=e=>typeof e=="string"?parseFloat(e):e,A0=e=>typeof e=="number"||ge.test(e);function j4(e,t,r,n,i,a){i?(e.opacity=at(0,r.opacity!==void 0?r.opacity:1,L4(n)),e.opacityExit=at(t.opacity!==void 0?t.opacity:1,0,R4(n))):a&&(e.opacity=at(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;o<I4;o++){const s=`border${M0[o]}Radius`;let u=P0(t,s),l=P0(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||A0(u)===A0(l)?(e[s]=Math.max(at(O0(u),O0(l),n),0),(ur.test(l)||ur.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=at(t.rotate||0,r.rotate||0,n))}function P0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L4=D0(0,.5,Lu),R4=D0(.5,.95,ct);function D0(e,t,r){return n=>n<e?0:n>t?1:r(Xn(e,t,n))}function $0(e,t){e.min=t.min,e.max=t.max}function Qt(e,t){$0(e.x,t.x),$0(e.y,t.y)}function F0(e,t,r,n,i){return e-=t,e=ss(e,1/r,n),i!==void 0&&(e=ss(e,1/i,n)),e}function N4(e,t=0,r=1,n=.5,i,a=e,o=e){if(ur.test(t)&&(t=parseFloat(t),t=at(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=at(a.min,a.max,n);e===a&&(s-=t),e.min=F0(e.min,t,r,s,i),e.max=F0(e.max,t,r,s,i)}function I0(e,t,[r,n,i],a,o){N4(e,t[r],t[n],t[i],t.scale,a,o)}const B4=["x","scaleX","originX"],V4=["y","scaleY","originY"];function j0(e,t,r,n){I0(e.x,t,B4,r?r.x:void 0,n?n.x:void 0),I0(e.y,t,V4,r?r.y:void 0,n?n.y:void 0)}function L0(e){return e.translate===0&&e.scale===1}function R0(e){return L0(e.x)&&L0(e.y)}function z4(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function N0(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function B0(e){return Bt(e.x)/Bt(e.y)}class W4{constructor(){this.members=[]}add(t){Ju(this.members,t),t.scheduleRender()}remove(t){if(ec(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function V0(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(n=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(n+=`scale(${o}, ${s})`),n||"none"}const H4=(e,t)=>e.depth-t.depth;class U4{constructor(){this.children=[],this.isDirty=!1}add(t){Ju(this.children,t),this.isDirty=!0}remove(t){ec(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(H4),this.isDirty=!1,this.children.forEach(t)}}function Y4(e,t){const r=performance.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(cr(n),e(a-t))};return Ne.read(n,!0),()=>cr(n)}function G4(e){window.MotionDebug&&window.MotionDebug.record(e)}function q4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function K4(e,t,r){const n=$t(e)?e:fr(e);return n.start(Qu("",n,t,r)),n.animation}const z0=["","X","Y","Z"],W0=1e3;let X4=0;const mn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function H0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=X4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{mn.totalNodes=mn.resolvedTargetDeltas=mn.recalculatedProjection=0,this.nodes.forEach(J4),this.nodes.forEach(iC),this.nodes.forEach(aC),this.nodes.forEach(eC),G4(mn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new U4)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new tc),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const u=this.eventHandlers.get(o);u&&u.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=q4(o),this.instance=o;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Y4(d,250),us.hasAnimatedSinceResize&&(us.hasAnimatedSinceResize=!1,this.nodes.forEach(Y0))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||cC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=c.getProps(),x=!this.targetLayout||!N0(this.targetLayout,g)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const k={...Qp(p,"layout"),onPlay:y,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else d||Y0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oC),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(U0);return}this.isUpdating||this.nodes.forEach(rC),this.isUpdating=!1,this.nodes.forEach(nC),this.nodes.forEach(Z4),this.nodes.forEach(Q4),this.clearAllSnapshots();const s=performance.now();St.delta=Vr(0,1e3/60,s-St.timestamp),St.timestamp=s,St.isProcessing=!0,$u.update.process(St),$u.preRender.process(St),$u.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(tC),this.sharedNodes.forEach(sC)}scheduleUpdateProjection(){Ne.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!R0(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&(s||gn(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return o&&(u=this.removeTransform(u)),fC(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return xt();const s=o.measureViewportBox(),{scroll:u}=this.root;return u&&(Gr(s.x,u.offset.x),Gr(s.y,u.offset.y)),s}removeElementScroll(o){const s=xt();Qt(s,o);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){Qt(s,o);const{scroll:d}=this.root;d&&(Gr(s.x,-d.offset.x),Gr(s.y,-d.offset.y))}Gr(s.x,c.offset.x),Gr(s.y,c.offset.y)}}return s}applyTransform(o,s=!1){const u=xt();Qt(u,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Qn(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&Qn(u,c.latestValues)}return gn(this.latestValues)&&Qn(u,this.latestValues),u}removeTransform(o){const s=xt();Qt(s,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!gn(l.latestValues))continue;uc(l.latestValues)&&l.updateSnapshot();const c=xt(),f=l.measurePageBox();Qt(c,f),j0(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&j0(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),_a(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qt(this.target,this.layout.layoutBox),w0(this.target,this.targetDelta)):Qt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),_a(this.relativeTargetOrigin,this.target,h.target),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||uc(this.parent.latestValues)||y0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===St.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Qt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;C4(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:g}=s;if(!g){this.projectionTransform&&(this.projectionDelta=Zn(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Zn(),this.projectionDeltaWithTransform=Zn());const p=this.projectionTransform;Ta(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=V0(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),mn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=Zn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=xt(),h=u?u.source:void 0,g=this.layout?this.layout.source:void 0,p=h!==g,y=this.getStack(),b=!y||y.members.length<=1,x=!!(p&&!b&&this.options.crossfade===!0&&!this.path.some(uC));this.animationProgress=0;let C;this.mixTargetDelta=k=>{const w=k/1e3;G0(f.x,o.x,w),G0(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_a(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lC(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&z4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=xt()),Qt(C,this.relativeTarget)),p&&(this.animationValues=c,j4(c,l,this.latestValues,w,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{us.hasAnimatedSinceResize=!0,this.currentAnimation=K4(0,W0,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(W0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=o;if(!(!s||!u||!l)){if(this!==o&&this.layout&&l&&Q0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||xt();const f=Bt(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const d=Bt(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+d}Qt(s,u),Qn(s,c),Ta(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new W4),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:u}=o;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<z0.length;c++){const f="rotate"+z0[c];u[f]&&(l[f]=u[f],o.setStaticValue(f,0))}o.render();for(const c in l)o.setStaticValue(c,l[c]);o.scheduleRender()}getProjectionStyles(o={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Qo(o.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Qo(o.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=V0(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:g}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Go){if(d[p]===void 0)continue;const{correct:y,applyTo:b}=Go[p],x=l.transform==="none"?d[p]:y(d[p],f);if(b){const C=b.length;for(let k=0;k<C;k++)l[b[k]]=x}else l[p]=x}return this.options.layoutId&&(l.pointerEvents=f===this?Qo(o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(U0),this.root.sharedNodes.clear()}}}function Z4(e){e.updateLayout()}function Q4(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,o=r.source!==e.layout.source;a==="size"?dr(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Bt(d);d.min=n[f].min,d.max=d.min+h}):Q0(a,r.layoutBox,n)&&dr(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Bt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Zn();Ta(s,n,r.layoutBox);const u=Zn();o?Ta(u,e.applyTransform(i,!0),r.measuredBox):Ta(u,n,r.layoutBox);const l=!R0(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=xt();_a(g,r.layoutBox,d.layoutBox);const p=xt();_a(p,n,h.layoutBox),N0(g,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function J4(e){mn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tC(e){e.clearSnapshot()}function U0(e){e.clearMeasurements()}function rC(e){e.isLayoutDirty=!1}function nC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Y0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iC(e){e.resolveTargetDelta()}function aC(e){e.calcProjection()}function oC(e){e.resetRotation()}function sC(e){e.removeLeadSnapshot()}function G0(e,t,r){e.translate=at(t.translate,0,r),e.scale=at(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function q0(e,t,r,n){e.min=at(t.min,r.min,n),e.max=at(t.max,r.max,n)}function lC(e,t,r,n){q0(e.x,t.x,r.x,n),q0(e.y,t.y,r.y,n)}function uC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cC={duration:.45,ease:[.4,0,.1,1]},K0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),X0=K0("applewebkit/")&&!K0("chrome/")?Math.round:ct;function Z0(e){e.min=X0(e.min),e.max=X0(e.max)}function fC(e){Z0(e.x),Z0(e.y)}function Q0(e,t,r){return e==="position"||e==="preserve-aspect"&&!oc(B0(t),B0(r),.2)}const dC=H0({attachResizeListener:(e,t)=>Sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fc={current:void 0},J0=H0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fc.current){const e=new dC({});e.mount(window),e.setOptions({layoutScroll:!0}),fc.current=e}return fc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hC={pan:{Feature:A4},drag:{Feature:O4,ProjectionNode:J0,MeasureLayout:k0}},pC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gC(e){const t=pC.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const mC=4;function dc(e,t,r=1){Zt(r<=mC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=gC(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return Jp(o)?parseFloat(o):o}else return Eu(i)?dc(i,t,r+1):i}function vC(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const a=i.get();if(!Eu(a))return;const o=dc(a,n);o&&i.set(o)});for(const i in t){const a=t[i];if(!Eu(a))continue;const o=dc(a,n);o&&(t[i]=o,r||(r={}),r[i]===void 0&&(r[i]=a))}return{target:t,transitionEnd:r}}const yC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eg=e=>yC.has(e),bC=e=>Object.keys(e).some(eg),cs=e=>e===dn||e===ge,tg=(e,t)=>parseFloat(e.split(", ")[t]),rg=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return tg(i[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?tg(a[1],e):0}},xC=new Set(["x","y","z"]),wC=va.filter(e=>!xC.has(e));function CC(e){const t=[];return wC.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Jn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rg(4,13),y:rg(5,14)};Jn.translateX=Jn.x,Jn.translateY=Jn.y;const SC=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=Jn[l](n,a)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=Jn[l](u,a)}),e},EC=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(eg);let a=[],o=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Ea(c);const d=t[u];let h;if(Zo(d)){const g=d.length,p=d[0]===null?1:0;c=d[p],f=Ea(c);for(let y=p;y<g&&d[y]!==null;y++)h?Zt(Ea(d[y])===h,"All keyframes must be of the same type"):(h=Ea(d[y]),Zt(h===f||cs(f)&&cs(h),"Keyframes must be of the same dimension as the current value"))}else h=Ea(d);if(f!==h)if(cs(f)&&cs(h)){const g=l.get();typeof g=="string"&&l.set(parseFloat(g)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===ge&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(o||(a=CC(e),o=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=SC(t,e,s);return a.length&&a.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Wo&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function TC(e,t,r,n){return bC(t)?EC(e,t,r,n):{target:t,transitionEnd:n}}const _C=(e,t,r,n)=>{const i=vC(e,t,n);return t=i.target,n=i.transitionEnd,TC(e,t,r,n)},hc={current:null},ng={current:!1};function kC(){if(ng.current=!0,!!Wo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hc.current=e.matches;e.addListener(t),t()}else hc.current=!1}function MC(e,t,r){const{willChange:n}=t;for(const i in t){const a=t[i],o=r[i];if($t(a))e.addValue(i,a),os(n)&&n.add(i),process.env.NODE_ENV==="development"&&rc(a.version==="10.16.4",`Attempting to mix Framer Motion versions ${a.version} with 10.16.4 may not work as expected.`);else if($t(o))e.addValue(i,fr(a,{owner:e})),os(n)&&n.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,fr(s!==void 0?s:a,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const ig=new WeakMap,ag=Object.keys(ma),OC=ag.length,og=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],AC=xu.length;class PC{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ne.render(this.render,!1,!0);const{latestValues:s,renderState:u}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Yo(r),this.isVariantNode=Vh(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&$t(d)&&(d.set(s[f],!1),os(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,ig.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),ng.current||kC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hc.current,process.env.NODE_ENV!=="production"&&rc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ig.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=fn.has(t),i=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ne.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,a){let o,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?qn(!1,u):Zt(!1,u)}for(let u=0;u<OC;u++){const l=ag[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=ma[l];d&&(o=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&Gn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:a,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<og.length;n++){const i=og[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=MC(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<AC;n++){const i=xu[n],a=this.props[i];(ga(a)||a===!1)&&(r[i]=a)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=fr(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Pu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!$t(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new tc),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class sg extends PC{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},a){let o=K3(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),a){G3(this,n,o);const s=_C(this,n,o,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function DC(e){return window.getComputedStyle(e)}class $C extends sg{readValueFromInstance(t,r){if(fn.has(r)){const n=Zu(r);return n&&n.default||0}else{const n=DC(t),i=(Gh(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return E0(t,r)}build(t,r,n,i){Tu(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Au(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$t(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){rp(t,r,n,i)}}class FC extends sg{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(fn.has(r)){const n=Zu(r);return n&&n.default||0}return r=np.has(r)?r:Ou(r),t.getAttribute(r)}measureInstanceViewportBox(){return xt()}scrapeMotionValuesFromProps(t,r){return ap(t,r)}build(t,r,n,i){ku(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){ip(t,r,n,i)}mount(t){this.isSVGTag=Mu(t.tagName),super.mount(t)}}const IC=(e,t)=>Su(e)?new FC(t,{enableHardwareAcceleration:!1}):new $C(t,{enableHardwareAcceleration:!0}),jC={layout:{ProjectionNode:J0,MeasureLayout:k0}},Jt=H5(Cw);function lg(){const e=m.useRef(!1);return Ho(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function LC(){const e=lg(),[t,r]=m.useState(0),n=m.useCallback(()=>{e.current&&r(t+1)},[t]);return[m.useCallback(()=>Ne.postRender(n),[n]),t]}class RC extends pe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function NC({children:e,isPresent:t}){const r=m.useId(),n=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:u}=i.current;if(t||!n.current||!a||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
2
2
  [data-motion-pop-id="${r}"] {
3
3
  position: absolute !important;
4
4
  width: ${a}px !important;
@@ -6,7 +6,7 @@
6
6
  top: ${s}px !important;
7
7
  left: ${u}px !important;
8
8
  }
9
- `),()=>{document.head.removeChild(l)}},[t]),pe.createElement(RC,{isPresent:t,childRef:n,sizeRef:i},pe.cloneElement(e,{ref:n}))}const pc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=Du(BC),u=m.useId(),l=m.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),a?void 0:[r]);return m.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[r]),pe.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),o==="popLayout"&&(e=pe.createElement(NC,{isPresent:r},e)),pe.createElement(zo.Provider,{value:l},e)};function BC(){return new Map}function VC(e){return m.useEffect(()=>()=>e(),[])}const ei=e=>e.key||"";function zC(e,t){e.forEach(r=>{const n=ei(r);t.set(n,r)})}function WC(e){const t=[];return m.Children.forEach(e,r=>{m.isValidElement(r)&&t.push(r)}),t}const cg=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{Zt(!i,"Replace exitBeforeEnter with mode='wait'");const s=m.useContext(Cu).forceRender||LC()[0],u=ug(),l=WC(e);let c=l;const f=m.useRef(new Map).current,d=m.useRef(c),h=m.useRef(new Map).current,g=m.useRef(!0);if(Ho(()=>{g.current=!1,zC(l,h),d.current=c}),VC(()=>{g.current=!0,h.clear(),f.clear()}),g.current)return pe.createElement(pe.Fragment,null,c.map(x=>pe.createElement(pc,{key:ei(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:o},x)));c=[...c];const p=d.current.map(ei),y=l.map(ei),b=p.length;for(let x=0;x<b;x++){const C=p[x];y.indexOf(C)===-1&&!f.has(C)&&f.set(C,void 0)}return o==="wait"&&f.size&&(c=[]),f.forEach((x,C)=>{if(y.indexOf(C)!==-1)return;const k=h.get(C);if(!k)return;const w=p.indexOf(C);let _=x;if(!_){const T=()=>{h.delete(C),f.delete(C);const O=d.current.findIndex(P=>P.key===C);if(d.current.splice(O,1),!f.size){if(d.current=l,u.current===!1)return;s(),n&&n()}};_=pe.createElement(pc,{key:ei(k),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:a,mode:o},k),f.set(C,_)}c.splice(w,0,_)}),c=c.map(x=>{const C=x.key;return f.has(C)?x:pe.createElement(pc,{key:ei(x),isPresent:!0,presenceAffectsLayout:a,mode:o},x)}),process.env.NODE_ENV!=="production"&&o==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),pe.createElement(pe.Fragment,null,f.size?c:c.map(x=>m.cloneElement(x)))};function HC({children:e,features:t,strict:r=!1}){const[,n]=m.useState(!gc(t)),i=m.useRef(void 0);if(!gc(t)){const{renderer:a,...o}=t;i.current=a,wu(o)}return m.useEffect(()=>{gc(t)&&t().then(({renderer:a,...o})=>{wu(o),i.current=a,n(!0)})},[]),pe.createElement(yu.Provider,{value:{renderer:i.current,strict:r}},e)}function gc(e){return typeof e=="function"}const UC={...{renderer:IC,...u4,...Iw},...hC,...jC};function YC(e,t,r){var n;if(typeof e=="string"){let i=document;t&&(Zt(!!t.current,"Scope provided, but no element detected."),i=t.current),r?((n=r[e])!==null&&n!==void 0||(r[e]=i.querySelectorAll(e)),e=r[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}const fs=new WeakMap;let qr;function GC(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function qC({target:e,contentRect:t,borderBoxSize:r}){var n;(n=fs.get(e))===null||n===void 0||n.forEach(i=>{i({target:e,contentSize:t,get size(){return GC(e,r)}})})}function KC(e){e.forEach(qC)}function XC(){typeof ResizeObserver>"u"||(qr=new ResizeObserver(KC))}function ZC(e,t){qr||XC();const r=YC(e);return r.forEach(n=>{let i=fs.get(n);i||(i=new Set,fs.set(n,i)),i.add(t),qr==null||qr.observe(n)}),()=>{r.forEach(n=>{const i=fs.get(n);i==null||i.delete(t),i!=null&&i.size||qr==null||qr.unobserve(n)})}}const ds=new Set;let Ma;function QC(){Ma=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};ds.forEach(r=>r(t))},window.addEventListener("resize",Ma)}function JC(e){return ds.add(e),Ma||QC(),()=>{ds.delete(e),!ds.size&&Ma&&(Ma=void 0)}}function eS(e,t){return typeof e=="function"?JC(e):ZC(e,t)}const tS=50,fg=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),rS=()=>({time:0,x:fg(),y:fg()}),nS={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function dg(e,t,r,n){const i=r[t],{length:a,position:o}=nS[t],s=i.current,u=r.time;i.current=e["scroll"+o],i.scrollLength=e["scroll"+a]-e["client"+a],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Xn(0,i.scrollLength,i.current);const l=n-u;i.velocity=l>tS?0:Yu(i.current-s,l)}function iS(e,t,r){dg(e,"x",t,r),dg(e,"y",t,r),t.time=r}function aS(e,t){const r={x:0,y:0};let n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){const i=n.getBoundingClientRect();n=n.parentElement;const a=n.getBoundingClientRect();r.x+=i.left-a.left,r.y+=i.top-a.top}else if(n instanceof SVGGraphicsElement){const{x:i,y:a}=n.getBBox();r.x+=i,r.y+=a;let o=null,s=n.parentNode;for(;!o;)s.tagName==="svg"&&(o=s),s=n.parentNode;n=o}else break;return r}const oS={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},mc={start:0,center:.5,end:1};function hg(e,t,r=0){let n=0;if(mc[e]!==void 0&&(e=mc[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?n=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?n=i/100*document.documentElement.clientWidth:e.endsWith("vh")?n=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(n=t*e),r+n}const sS=[0,0];function lS(e,t,r,n){let i=Array.isArray(e)?e:sS,a=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,mc[e]?e:"0"]),a=hg(i[0],r,n),o=hg(i[1],t),a-o}const uS={x:0,y:0};function cS(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function fS(e,t,r){let{offset:n=oS.All}=r;const{target:i=e,axis:a="y"}=r,o=a==="y"?"height":"width",s=i!==e?aS(i,e):uS,u=i===e?{width:e.scrollWidth,height:e.scrollHeight}:cS(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let c=!t[a].interpolate;const f=n.length;for(let d=0;d<f;d++){const h=lS(n[d],l[o],u[o],s[a]);!c&&h!==t[a].interpolatorOffsets[d]&&(c=!0),t[a].offset[d]=h}c&&(t[a].interpolate=Uu(t[a].offset,Wp(n)),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=t[a].interpolate(t[a].current)}function dS(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function hS(e,t,r,n={}){return{measure:()=>dS(e,n.target,r),update:i=>{iS(e,r,i),(n.offset||n.target)&&fS(e,r,n)},notify:()=>t(r)}}const Oa=new WeakMap,pg=new WeakMap,vc=new WeakMap,gg=e=>e===document.documentElement?window:e;function pS(e,{container:t=document.documentElement,...r}={}){let n=vc.get(t);n||(n=new Set,vc.set(t,n));const i=rS(),a=hS(t,e,i,r);if(n.add(a),!Oa.has(t)){const s=()=>{for(const d of n)d.measure()},u=()=>{for(const d of n)d.update(St.timestamp)},l=()=>{for(const d of n)d.notify()},c=()=>{Ne.read(s,!1,!0),Ne.update(u,!1,!0),Ne.update(l,!1,!0)};Oa.set(t,c);const f=gg(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&pg.set(t,eS(t,c)),f.addEventListener("scroll",c,{passive:!0})}const o=Oa.get(t);return Ne.read(o,!1,!0),()=>{var s;cr(o);const u=vc.get(t);if(!u||(u.delete(a),u.size))return;const l=Oa.get(t);Oa.delete(t),l&&(gg(t).removeEventListener("scroll",l),(s=pg.get(t))===null||s===void 0||s(),window.removeEventListener("resize",l))}}function mg(e,t){qn(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}const gS=()=>({scrollX:fr(0),scrollY:fr(0),scrollXProgress:fr(0),scrollYProgress:fr(0)});function mS({container:e,target:t,layoutEffect:r=!0,...n}={}){const i=Du(gS);return(r?Ho:m.useEffect)(()=>(mg("target",t),mg("container",e),pS(({x:o,y:s})=>{i.scrollX.set(o.current),i.scrollXProgress.set(o.progress),i.scrollY.set(s.current),i.scrollYProgress.set(s.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(n.offset)]),i}var Aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yc={exports:{}},Pa={};/**
9
+ `),()=>{document.head.removeChild(l)}},[t]),pe.createElement(RC,{isPresent:t,childRef:n,sizeRef:i},pe.cloneElement(e,{ref:n}))}const pc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=Du(BC),u=m.useId(),l=m.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),a?void 0:[r]);return m.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[r]),pe.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),o==="popLayout"&&(e=pe.createElement(NC,{isPresent:r},e)),pe.createElement(zo.Provider,{value:l},e)};function BC(){return new Map}function VC(e){return m.useEffect(()=>()=>e(),[])}const ei=e=>e.key||"";function zC(e,t){e.forEach(r=>{const n=ei(r);t.set(n,r)})}function WC(e){const t=[];return m.Children.forEach(e,r=>{m.isValidElement(r)&&t.push(r)}),t}const ug=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{Zt(!i,"Replace exitBeforeEnter with mode='wait'");const s=m.useContext(Cu).forceRender||LC()[0],u=lg(),l=WC(e);let c=l;const f=m.useRef(new Map).current,d=m.useRef(c),h=m.useRef(new Map).current,g=m.useRef(!0);if(Ho(()=>{g.current=!1,zC(l,h),d.current=c}),VC(()=>{g.current=!0,h.clear(),f.clear()}),g.current)return pe.createElement(pe.Fragment,null,c.map(x=>pe.createElement(pc,{key:ei(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:o},x)));c=[...c];const p=d.current.map(ei),y=l.map(ei),b=p.length;for(let x=0;x<b;x++){const C=p[x];y.indexOf(C)===-1&&!f.has(C)&&f.set(C,void 0)}return o==="wait"&&f.size&&(c=[]),f.forEach((x,C)=>{if(y.indexOf(C)!==-1)return;const k=h.get(C);if(!k)return;const w=p.indexOf(C);let _=x;if(!_){const T=()=>{h.delete(C),f.delete(C);const O=d.current.findIndex(P=>P.key===C);if(d.current.splice(O,1),!f.size){if(d.current=l,u.current===!1)return;s(),n&&n()}};_=pe.createElement(pc,{key:ei(k),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:a,mode:o},k),f.set(C,_)}c.splice(w,0,_)}),c=c.map(x=>{const C=x.key;return f.has(C)?x:pe.createElement(pc,{key:ei(x),isPresent:!0,presenceAffectsLayout:a,mode:o},x)}),process.env.NODE_ENV!=="production"&&o==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),pe.createElement(pe.Fragment,null,f.size?c:c.map(x=>m.cloneElement(x)))};function HC({children:e,features:t,strict:r=!1}){const[,n]=m.useState(!gc(t)),i=m.useRef(void 0);if(!gc(t)){const{renderer:a,...o}=t;i.current=a,wu(o)}return m.useEffect(()=>{gc(t)&&t().then(({renderer:a,...o})=>{wu(o),i.current=a,n(!0)})},[]),pe.createElement(yu.Provider,{value:{renderer:i.current,strict:r}},e)}function gc(e){return typeof e=="function"}const UC={...{renderer:IC,...u4,...Iw},...hC,...jC};function YC(e,t,r){var n;if(typeof e=="string"){let i=document;t&&(Zt(!!t.current,"Scope provided, but no element detected."),i=t.current),r?((n=r[e])!==null&&n!==void 0||(r[e]=i.querySelectorAll(e)),e=r[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}const fs=new WeakMap;let qr;function GC(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function qC({target:e,contentRect:t,borderBoxSize:r}){var n;(n=fs.get(e))===null||n===void 0||n.forEach(i=>{i({target:e,contentSize:t,get size(){return GC(e,r)}})})}function KC(e){e.forEach(qC)}function XC(){typeof ResizeObserver>"u"||(qr=new ResizeObserver(KC))}function ZC(e,t){qr||XC();const r=YC(e);return r.forEach(n=>{let i=fs.get(n);i||(i=new Set,fs.set(n,i)),i.add(t),qr==null||qr.observe(n)}),()=>{r.forEach(n=>{const i=fs.get(n);i==null||i.delete(t),i!=null&&i.size||qr==null||qr.unobserve(n)})}}const ds=new Set;let Ma;function QC(){Ma=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};ds.forEach(r=>r(t))},window.addEventListener("resize",Ma)}function JC(e){return ds.add(e),Ma||QC(),()=>{ds.delete(e),!ds.size&&Ma&&(Ma=void 0)}}function eS(e,t){return typeof e=="function"?JC(e):ZC(e,t)}const tS=50,cg=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),rS=()=>({time:0,x:cg(),y:cg()}),nS={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function fg(e,t,r,n){const i=r[t],{length:a,position:o}=nS[t],s=i.current,u=r.time;i.current=e["scroll"+o],i.scrollLength=e["scroll"+a]-e["client"+a],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Xn(0,i.scrollLength,i.current);const l=n-u;i.velocity=l>tS?0:Yu(i.current-s,l)}function iS(e,t,r){fg(e,"x",t,r),fg(e,"y",t,r),t.time=r}function aS(e,t){const r={x:0,y:0};let n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n.tagName==="svg"){const i=n.getBoundingClientRect();n=n.parentElement;const a=n.getBoundingClientRect();r.x+=i.left-a.left,r.y+=i.top-a.top}else if(n instanceof SVGGraphicsElement){const{x:i,y:a}=n.getBBox();r.x+=i,r.y+=a;let o=null,s=n.parentNode;for(;!o;)s.tagName==="svg"&&(o=s),s=n.parentNode;n=o}else break;return r}const oS={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},mc={start:0,center:.5,end:1};function dg(e,t,r=0){let n=0;if(mc[e]!==void 0&&(e=mc[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?n=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?n=i/100*document.documentElement.clientWidth:e.endsWith("vh")?n=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(n=t*e),r+n}const sS=[0,0];function lS(e,t,r,n){let i=Array.isArray(e)?e:sS,a=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,mc[e]?e:"0"]),a=dg(i[0],r,n),o=dg(i[1],t),a-o}const uS={x:0,y:0};function cS(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function fS(e,t,r){let{offset:n=oS.All}=r;const{target:i=e,axis:a="y"}=r,o=a==="y"?"height":"width",s=i!==e?aS(i,e):uS,u=i===e?{width:e.scrollWidth,height:e.scrollHeight}:cS(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let c=!t[a].interpolate;const f=n.length;for(let d=0;d<f;d++){const h=lS(n[d],l[o],u[o],s[a]);!c&&h!==t[a].interpolatorOffsets[d]&&(c=!0),t[a].offset[d]=h}c&&(t[a].interpolate=Uu(t[a].offset,zp(n)),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=t[a].interpolate(t[a].current)}function dS(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function hS(e,t,r,n={}){return{measure:()=>dS(e,n.target,r),update:i=>{iS(e,r,i),(n.offset||n.target)&&fS(e,r,n)},notify:()=>t(r)}}const Oa=new WeakMap,hg=new WeakMap,vc=new WeakMap,pg=e=>e===document.documentElement?window:e;function pS(e,{container:t=document.documentElement,...r}={}){let n=vc.get(t);n||(n=new Set,vc.set(t,n));const i=rS(),a=hS(t,e,i,r);if(n.add(a),!Oa.has(t)){const s=()=>{for(const d of n)d.measure()},u=()=>{for(const d of n)d.update(St.timestamp)},l=()=>{for(const d of n)d.notify()},c=()=>{Ne.read(s,!1,!0),Ne.update(u,!1,!0),Ne.update(l,!1,!0)};Oa.set(t,c);const f=pg(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&hg.set(t,eS(t,c)),f.addEventListener("scroll",c,{passive:!0})}const o=Oa.get(t);return Ne.read(o,!1,!0),()=>{var s;cr(o);const u=vc.get(t);if(!u||(u.delete(a),u.size))return;const l=Oa.get(t);Oa.delete(t),l&&(pg(t).removeEventListener("scroll",l),(s=hg.get(t))===null||s===void 0||s(),window.removeEventListener("resize",l))}}function gg(e,t){qn(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}const gS=()=>({scrollX:fr(0),scrollY:fr(0),scrollXProgress:fr(0),scrollYProgress:fr(0)});function mS({container:e,target:t,layoutEffect:r=!0,...n}={}){const i=Du(gS);return(r?Ho:m.useEffect)(()=>(gg("target",t),gg("container",e),pS(({x:o,y:s})=>{i.scrollX.set(o.current),i.scrollXProgress.set(o.progress),i.scrollY.set(s.current),i.scrollYProgress.set(s.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(n.offset)]),i}var Aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yc={exports:{}},Pa={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var vg;function vS(){if(vg)return Pa;vg=1;var e=m,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var c,f={},d=null,h=null;l!==void 0&&(d=""+l),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(h=u.ref);for(c in u)n.call(u,c)&&!a.hasOwnProperty(c)&&(f[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)f[c]===void 0&&(f[c]=u[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return Pa.Fragment=r,Pa.jsx=o,Pa.jsxs=o,Pa}var Da={};/**
17
+ */var mg;function vS(){if(mg)return Pa;mg=1;var e=m,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var c,f={},d=null,h=null;l!==void 0&&(d=""+l),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(h=u.ref);for(c in u)n.call(u,c)&&!a.hasOwnProperty(c)&&(f[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)f[c]===void 0&&(f[c]=u[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return Pa.Fragment=r,Pa.jsx=o,Pa.jsxs=o,Pa}var Da={};/**
18
18
  * @license React
19
19
  * react-jsx-runtime.development.js
20
20
  *
@@ -22,36 +22,36 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var yg;function yS(){return yg||(yg=1,process.env.NODE_ENV!=="production"&&function(){var e=m,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(S){if(S===null||typeof S!="object")return null;var I=g&&S[g]||S[p];return typeof I=="function"?I:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(S){{for(var I=arguments.length,Y=new Array(I>1?I-1:0),ve=1;ve<I;ve++)Y[ve-1]=arguments[ve];C("error",S,Y)}}function C(S,I,Y){{var ve=b.ReactDebugCurrentFrame,Re=ve.getStackAddendum();Re!==""&&(I+="%s",Y=Y.concat([Re]));var Ze=Y.map(function(Pe){return String(Pe)});Ze.unshift("Warning: "+I),Function.prototype.apply.call(console[S],console,Ze)}}var k=!1,w=!1,_=!1,T=!1,O=!1,P;P=Symbol.for("react.module.reference");function F(S){return!!(typeof S=="string"||typeof S=="function"||S===n||S===a||O||S===i||S===l||S===c||T||S===h||k||w||_||typeof S=="object"&&S!==null&&(S.$$typeof===d||S.$$typeof===f||S.$$typeof===o||S.$$typeof===s||S.$$typeof===u||S.$$typeof===P||S.getModuleId!==void 0))}function Z(S,I,Y){var ve=S.displayName;if(ve)return ve;var Re=I.displayName||I.name||"";return Re!==""?Y+"("+Re+")":Y}function be(S){return S.displayName||"Context"}function oe(S){if(S==null)return null;if(typeof S.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var I=S;return be(I)+".Consumer";case o:var Y=S;return be(Y._context)+".Provider";case u:return Z(S,S.render,"ForwardRef");case f:var ve=S.displayName||null;return ve!==null?ve:oe(S.type)||"Memo";case d:{var Re=S,Ze=Re._payload,Pe=Re._init;try{return oe(Pe(Ze))}catch{return null}}}return null}var Q=Object.assign,H=0,R,U,Ce,fe,D,$,W;function se(){}se.__reactDisabledLog=!0;function X(){{if(H===0){R=console.log,U=console.info,Ce=console.warn,fe=console.error,D=console.group,$=console.groupCollapsed,W=console.groupEnd;var S={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}H++}}function ce(){{if(H--,H===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},S,{value:R}),info:Q({},S,{value:U}),warn:Q({},S,{value:Ce}),error:Q({},S,{value:fe}),group:Q({},S,{value:D}),groupCollapsed:Q({},S,{value:$}),groupEnd:Q({},S,{value:W})})}H<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=b.ReactCurrentDispatcher,le;function ee(S,I,Y){{if(le===void 0)try{throw Error()}catch(Re){var ve=Re.stack.trim().match(/\n( *(at )?)/);le=ve&&ve[1]||""}return`
25
+ */var vg;function yS(){return vg||(vg=1,process.env.NODE_ENV!=="production"&&function(){var e=m,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(S){if(S===null||typeof S!="object")return null;var I=g&&S[g]||S[p];return typeof I=="function"?I:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(S){{for(var I=arguments.length,Y=new Array(I>1?I-1:0),ve=1;ve<I;ve++)Y[ve-1]=arguments[ve];C("error",S,Y)}}function C(S,I,Y){{var ve=b.ReactDebugCurrentFrame,Re=ve.getStackAddendum();Re!==""&&(I+="%s",Y=Y.concat([Re]));var Ze=Y.map(function(Pe){return String(Pe)});Ze.unshift("Warning: "+I),Function.prototype.apply.call(console[S],console,Ze)}}var k=!1,w=!1,_=!1,T=!1,O=!1,P;P=Symbol.for("react.module.reference");function F(S){return!!(typeof S=="string"||typeof S=="function"||S===n||S===a||O||S===i||S===l||S===c||T||S===h||k||w||_||typeof S=="object"&&S!==null&&(S.$$typeof===d||S.$$typeof===f||S.$$typeof===o||S.$$typeof===s||S.$$typeof===u||S.$$typeof===P||S.getModuleId!==void 0))}function Z(S,I,Y){var ve=S.displayName;if(ve)return ve;var Re=I.displayName||I.name||"";return Re!==""?Y+"("+Re+")":Y}function be(S){return S.displayName||"Context"}function oe(S){if(S==null)return null;if(typeof S.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var I=S;return be(I)+".Consumer";case o:var Y=S;return be(Y._context)+".Provider";case u:return Z(S,S.render,"ForwardRef");case f:var ve=S.displayName||null;return ve!==null?ve:oe(S.type)||"Memo";case d:{var Re=S,Ze=Re._payload,Pe=Re._init;try{return oe(Pe(Ze))}catch{return null}}}return null}var Q=Object.assign,H=0,R,U,Ce,fe,D,$,W;function se(){}se.__reactDisabledLog=!0;function X(){{if(H===0){R=console.log,U=console.info,Ce=console.warn,fe=console.error,D=console.group,$=console.groupCollapsed,W=console.groupEnd;var S={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}H++}}function ce(){{if(H--,H===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},S,{value:R}),info:Q({},S,{value:U}),warn:Q({},S,{value:Ce}),error:Q({},S,{value:fe}),group:Q({},S,{value:D}),groupCollapsed:Q({},S,{value:$}),groupEnd:Q({},S,{value:W})})}H<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=b.ReactCurrentDispatcher,le;function ee(S,I,Y){{if(le===void 0)try{throw Error()}catch(Re){var ve=Re.stack.trim().match(/\n( *(at )?)/);le=ve&&ve[1]||""}return`
26
26
  `+le+S}}var q=!1,te;{var Se=typeof WeakMap=="function"?WeakMap:Map;te=new Se}function j(S,I){if(!S||q)return"";{var Y=te.get(S);if(Y!==void 0)return Y}var ve;q=!0;var Re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ze;Ze=ne.current,ne.current=null,X();try{if(I){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(Nr){ve=Nr}Reflect.construct(S,[],Pe)}else{try{Pe.call()}catch(Nr){ve=Nr}S.call(Pe.prototype)}}else{try{throw Error()}catch(Nr){ve=Nr}S()}}catch(Nr){if(Nr&&ve&&typeof Nr.stack=="string"){for(var ke=Nr.stack.split(`
27
27
  `),Dt=ve.stack.split(`
28
28
  `),bt=ke.length-1,Ct=Dt.length-1;bt>=1&&Ct>=0&&ke[bt]!==Dt[Ct];)Ct--;for(;bt>=1&&Ct>=0;bt--,Ct--)if(ke[bt]!==Dt[Ct]){if(bt!==1||Ct!==1)do if(bt--,Ct--,Ct<0||ke[bt]!==Dt[Ct]){var nr=`
29
- `+ke[bt].replace(" at new "," at ");return S.displayName&&nr.includes("<anonymous>")&&(nr=nr.replace("<anonymous>",S.displayName)),typeof S=="function"&&te.set(S,nr),nr}while(bt>=1&&Ct>=0);break}}}finally{q=!1,ne.current=Ze,ce(),Error.prepareStackTrace=Re}var ha=S?S.displayName||S.name:"",w5=ha?ee(ha):"";return typeof S=="function"&&te.set(S,w5),w5}function Je(S,I,Y){return j(S,!1)}function J(S){var I=S.prototype;return!!(I&&I.isReactComponent)}function V(S,I,Y){if(S==null)return"";if(typeof S=="function")return j(S,J(S));if(typeof S=="string")return ee(S);switch(S){case l:return ee("Suspense");case c:return ee("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return Je(S.render);case f:return V(S.type,I,Y);case d:{var ve=S,Re=ve._payload,Ze=ve._init;try{return V(Ze(Re),I,Y)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,de={},Xe=b.ReactDebugCurrentFrame;function Ue(S){if(S){var I=S._owner,Y=V(S.type,S._source,I?I.type:null);Xe.setExtraStackFrame(Y)}else Xe.setExtraStackFrame(null)}function Ye(S,I,Y,ve,Re){{var Ze=Function.call.bind(re);for(var Pe in S)if(Ze(S,Pe)){var ke=void 0;try{if(typeof S[Pe]!="function"){var Dt=Error((ve||"React class")+": "+Y+" type `"+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[Pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Dt.name="Invariant Violation",Dt}ke=S[Pe](I,Pe,ve,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(bt){ke=bt}ke&&!(ke instanceof Error)&&(Ue(Re),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",Y,Pe,typeof ke),Ue(null)),ke instanceof Error&&!(ke.message in de)&&(de[ke.message]=!0,Ue(Re),x("Failed %s type: %s",Y,ke.message),Ue(null))}}}var gt=Array.isArray;function mt(S){return gt(S)}function Lr(S){{var I=typeof Symbol=="function"&&Symbol.toStringTag,Y=I&&S[Symbol.toStringTag]||S.constructor.name||"Object";return Y}}function z(S){try{return he(S),!1}catch{return!0}}function he(S){return""+S}function lt(S){if(z(S))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Lr(S)),he(S)}var ut=b.ReactCurrentOwner,Pt={key:!0,ref:!0,__self:!0,__source:!0},cn,Rr,Un;Un={};function $o(S){if(re.call(S,"ref")){var I=Object.getOwnPropertyDescriptor(S,"ref").get;if(I&&I.isReactWarning)return!1}return S.ref!==void 0}function Fo(S){if(re.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function fa(S,I){if(typeof S.ref=="string"&&ut.current&&I&&ut.current.stateNode!==I){var Y=oe(ut.current.type);Un[Y]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',oe(ut.current.type),S.ref),Un[Y]=!0)}}function Io(S,I){{var Y=function(){cn||(cn=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};Y.isReactWarning=!0,Object.defineProperty(S,"key",{get:Y,configurable:!0})}}function jo(S,I){{var Y=function(){Rr||(Rr=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};Y.isReactWarning=!0,Object.defineProperty(S,"ref",{get:Y,configurable:!0})}}var Lo=function(S,I,Y,ve,Re,Ze,Pe){var ke={$$typeof:t,type:S,key:I,ref:Y,props:Pe,_owner:Ze};return ke._store={},Object.defineProperty(ke._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ke,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(ke,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ke.props),Object.freeze(ke)),ke};function Ro(S,I,Y,ve,Re){{var Ze,Pe={},ke=null,Dt=null;Y!==void 0&&(lt(Y),ke=""+Y),Fo(I)&&(lt(I.key),ke=""+I.key),$o(I)&&(Dt=I.ref,fa(I,Re));for(Ze in I)re.call(I,Ze)&&!Pt.hasOwnProperty(Ze)&&(Pe[Ze]=I[Ze]);if(S&&S.defaultProps){var bt=S.defaultProps;for(Ze in bt)Pe[Ze]===void 0&&(Pe[Ze]=bt[Ze])}if(ke||Dt){var Ct=typeof S=="function"?S.displayName||S.name||"Unknown":S;ke&&Io(Pe,Ct),Dt&&jo(Pe,Ct)}return Lo(S,ke,Dt,Re,ve,ut.current,Pe)}}var No=b.ReactCurrentOwner,g5=b.ReactDebugCurrentFrame;function da(S){if(S){var I=S._owner,Y=V(S.type,S._source,I?I.type:null);g5.setExtraStackFrame(Y)}else g5.setExtraStackFrame(null)}var Lh;Lh=!1;function Rh(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function m5(){{if(No.current){var S=oe(No.current.type);if(S)return`
29
+ `+ke[bt].replace(" at new "," at ");return S.displayName&&nr.includes("<anonymous>")&&(nr=nr.replace("<anonymous>",S.displayName)),typeof S=="function"&&te.set(S,nr),nr}while(bt>=1&&Ct>=0);break}}}finally{q=!1,ne.current=Ze,ce(),Error.prepareStackTrace=Re}var ha=S?S.displayName||S.name:"",w5=ha?ee(ha):"";return typeof S=="function"&&te.set(S,w5),w5}function Je(S,I,Y){return j(S,!1)}function J(S){var I=S.prototype;return!!(I&&I.isReactComponent)}function V(S,I,Y){if(S==null)return"";if(typeof S=="function")return j(S,J(S));if(typeof S=="string")return ee(S);switch(S){case l:return ee("Suspense");case c:return ee("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return Je(S.render);case f:return V(S.type,I,Y);case d:{var ve=S,Re=ve._payload,Ze=ve._init;try{return V(Ze(Re),I,Y)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,de={},Xe=b.ReactDebugCurrentFrame;function Ue(S){if(S){var I=S._owner,Y=V(S.type,S._source,I?I.type:null);Xe.setExtraStackFrame(Y)}else Xe.setExtraStackFrame(null)}function Ye(S,I,Y,ve,Re){{var Ze=Function.call.bind(re);for(var Pe in S)if(Ze(S,Pe)){var ke=void 0;try{if(typeof S[Pe]!="function"){var Dt=Error((ve||"React class")+": "+Y+" type `"+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[Pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Dt.name="Invariant Violation",Dt}ke=S[Pe](I,Pe,ve,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(bt){ke=bt}ke&&!(ke instanceof Error)&&(Ue(Re),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",Y,Pe,typeof ke),Ue(null)),ke instanceof Error&&!(ke.message in de)&&(de[ke.message]=!0,Ue(Re),x("Failed %s type: %s",Y,ke.message),Ue(null))}}}var gt=Array.isArray;function mt(S){return gt(S)}function Lr(S){{var I=typeof Symbol=="function"&&Symbol.toStringTag,Y=I&&S[Symbol.toStringTag]||S.constructor.name||"Object";return Y}}function z(S){try{return he(S),!1}catch{return!0}}function he(S){return""+S}function lt(S){if(z(S))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Lr(S)),he(S)}var ut=b.ReactCurrentOwner,Pt={key:!0,ref:!0,__self:!0,__source:!0},cn,Rr,Un;Un={};function $o(S){if(re.call(S,"ref")){var I=Object.getOwnPropertyDescriptor(S,"ref").get;if(I&&I.isReactWarning)return!1}return S.ref!==void 0}function Fo(S){if(re.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function fa(S,I){if(typeof S.ref=="string"&&ut.current&&I&&ut.current.stateNode!==I){var Y=oe(ut.current.type);Un[Y]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',oe(ut.current.type),S.ref),Un[Y]=!0)}}function Io(S,I){{var Y=function(){cn||(cn=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};Y.isReactWarning=!0,Object.defineProperty(S,"key",{get:Y,configurable:!0})}}function jo(S,I){{var Y=function(){Rr||(Rr=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};Y.isReactWarning=!0,Object.defineProperty(S,"ref",{get:Y,configurable:!0})}}var Lo=function(S,I,Y,ve,Re,Ze,Pe){var ke={$$typeof:t,type:S,key:I,ref:Y,props:Pe,_owner:Ze};return ke._store={},Object.defineProperty(ke._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ke,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(ke,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ke.props),Object.freeze(ke)),ke};function Ro(S,I,Y,ve,Re){{var Ze,Pe={},ke=null,Dt=null;Y!==void 0&&(lt(Y),ke=""+Y),Fo(I)&&(lt(I.key),ke=""+I.key),$o(I)&&(Dt=I.ref,fa(I,Re));for(Ze in I)re.call(I,Ze)&&!Pt.hasOwnProperty(Ze)&&(Pe[Ze]=I[Ze]);if(S&&S.defaultProps){var bt=S.defaultProps;for(Ze in bt)Pe[Ze]===void 0&&(Pe[Ze]=bt[Ze])}if(ke||Dt){var Ct=typeof S=="function"?S.displayName||S.name||"Unknown":S;ke&&Io(Pe,Ct),Dt&&jo(Pe,Ct)}return Lo(S,ke,Dt,Re,ve,ut.current,Pe)}}var No=b.ReactCurrentOwner,g5=b.ReactDebugCurrentFrame;function da(S){if(S){var I=S._owner,Y=V(S.type,S._source,I?I.type:null);g5.setExtraStackFrame(Y)}else g5.setExtraStackFrame(null)}var jh;jh=!1;function Lh(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function m5(){{if(No.current){var S=oe(No.current.type);if(S)return`
30
30
 
31
31
  Check the render method of \``+S+"`."}return""}}function aee(S){{if(S!==void 0){var I=S.fileName.replace(/^.*[\\\/]/,""),Y=S.lineNumber;return`
32
32
 
33
33
  Check your code at `+I+":"+Y+"."}return""}}var v5={};function oee(S){{var I=m5();if(!I){var Y=typeof S=="string"?S:S.displayName||S.name;Y&&(I=`
34
34
 
35
- Check the top-level render call using <`+Y+">.")}return I}}function y5(S,I){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var Y=oee(I);if(v5[Y])return;v5[Y]=!0;var ve="";S&&S._owner&&S._owner!==No.current&&(ve=" It was passed a child from "+oe(S._owner.type)+"."),da(S),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,ve),da(null)}}function b5(S,I){{if(typeof S!="object")return;if(mt(S))for(var Y=0;Y<S.length;Y++){var ve=S[Y];Rh(ve)&&y5(ve,I)}else if(Rh(S))S._store&&(S._store.validated=!0);else if(S){var Re=y(S);if(typeof Re=="function"&&Re!==S.entries)for(var Ze=Re.call(S),Pe;!(Pe=Ze.next()).done;)Rh(Pe.value)&&y5(Pe.value,I)}}}function see(S){{var I=S.type;if(I==null||typeof I=="string")return;var Y;if(typeof I=="function")Y=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===u||I.$$typeof===f))Y=I.propTypes;else return;if(Y){var ve=oe(I);Ye(Y,S.props,"prop",ve,S)}else if(I.PropTypes!==void 0&&!Lh){Lh=!0;var Re=oe(I);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Re||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lee(S){{for(var I=Object.keys(S.props),Y=0;Y<I.length;Y++){var ve=I[Y];if(ve!=="children"&&ve!=="key"){da(S),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),da(null);break}}S.ref!==null&&(da(S),x("Invalid attribute `ref` supplied to `React.Fragment`."),da(null))}}function x5(S,I,Y,ve,Re,Ze){{var Pe=F(S);if(!Pe){var ke="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(ke+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Dt=aee(Re);Dt?ke+=Dt:ke+=m5();var bt;S===null?bt="null":mt(S)?bt="array":S!==void 0&&S.$$typeof===t?(bt="<"+(oe(S.type)||"Unknown")+" />",ke=" Did you accidentally export a JSX literal instead of a component?"):bt=typeof S,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",bt,ke)}var Ct=Ro(S,I,Y,Re,Ze);if(Ct==null)return Ct;if(Pe){var nr=I.children;if(nr!==void 0)if(ve)if(mt(nr)){for(var ha=0;ha<nr.length;ha++)b5(nr[ha],S);Object.freeze&&Object.freeze(nr)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b5(nr,S)}return S===n?lee(Ct):see(Ct),Ct}}function uee(S,I,Y){return x5(S,I,Y,!0)}function cee(S,I,Y){return x5(S,I,Y,!1)}var fee=cee,dee=uee;Da.Fragment=n,Da.jsx=fee,Da.jsxs=dee}()),Da}process.env.NODE_ENV==="production"?yc.exports=vS():yc.exports=yS();var v=yc.exports;const bS=({open:e=!1,variants:t,onClose:r,children:n,sx:i,...a})=>v.jsx(cg,{children:e&&v.jsx(E.Dialog,{fullWidth:!0,maxWidth:"xs",open:e,onClose:r,PaperComponent:o=>v.jsxs(E.Box,{component:Jt.div,...t||pa({distance:120,durationIn:.32,durationOut:.24,easeIn:"easeInOut"}).inUp,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[v.jsx(E.Box,{onClick:r,sx:{width:"100%",height:"100%",position:"fixed"}}),v.jsx(E.Paper,{sx:i,...o,children:o.children})]}),...a,children:n})}),xS=({text:e,variants:t,sx:r,...n})=>v.jsx(E.Box,{component:Jt.div,sx:{m:0,typography:"h1",overflow:"hidden",display:"inline-flex",...r},...n,children:e.split("").map((i,a)=>v.jsx(Jt.span,{variants:t||pa().inUp,children:i},a))}),bg=m.forwardRef(({size:e="large",children:t,sx:r,sxWrap:n,...i},a)=>v.jsx(ES,{size:e,sxWrap:n,children:v.jsx(E.Fab,{ref:a,size:e,sx:r,...i,children:t})}));bg.displayName="FabButtonAnimate";const wS={hover:{scale:1.07},tap:{scale:.97}},CS={hover:{scale:1.06},tap:{scale:.98}},SS={hover:{scale:1.05},tap:{scale:.99}},ES=({size:e,children:t,sxWrap:r})=>{const n=e==="small",i=e==="large";return v.jsx(E.Box,{component:Jt.div,whileTap:"tap",whileHover:"hover",variants:n&&wS||i&&SS||CS,sx:{display:"inline-flex",...r},children:t})},TS={hover:{scale:1.1},tap:{scale:.95}},_S={hover:{scale:1.09},tap:{scale:.97}},kS={hover:{scale:1.08},tap:{scale:.99}},MS=({size:e,children:t})=>{const r=e==="small",n=e==="large";return v.jsx(E.Box,{component:Jt.div,whileTap:"tap",whileHover:"hover",variants:r&&TS||n&&kS||_S,sx:{display:"inline-flex"},children:t})},xg=m.forwardRef(({children:e,size:t="medium",...r},n)=>v.jsx(MS,{size:t,children:v.jsx(E.IconButton,{size:t,ref:n,...r,children:e})}));xg.displayName="IconButtonAnimate";function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(this,arguments)}function ti(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function wg(e){if(!ti(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=wg(e[r])}),t}function _r(e,t,r={clone:!0}){const n=r.clone?we({},e):e;return ti(e)&&ti(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ti(t[i])&&i in e&&ti(e[i])?n[i]=_r(e[i],t[i],r):r.clone?n[i]=ti(t[i])?wg(t[i]):t[i]:n[i]=t[i])}),n}var bc={exports:{}},hs={exports:{}},Be={};/** @license React v16.13.1
35
+ Check the top-level render call using <`+Y+">.")}return I}}function y5(S,I){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var Y=oee(I);if(v5[Y])return;v5[Y]=!0;var ve="";S&&S._owner&&S._owner!==No.current&&(ve=" It was passed a child from "+oe(S._owner.type)+"."),da(S),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,ve),da(null)}}function b5(S,I){{if(typeof S!="object")return;if(mt(S))for(var Y=0;Y<S.length;Y++){var ve=S[Y];Lh(ve)&&y5(ve,I)}else if(Lh(S))S._store&&(S._store.validated=!0);else if(S){var Re=y(S);if(typeof Re=="function"&&Re!==S.entries)for(var Ze=Re.call(S),Pe;!(Pe=Ze.next()).done;)Lh(Pe.value)&&y5(Pe.value,I)}}}function see(S){{var I=S.type;if(I==null||typeof I=="string")return;var Y;if(typeof I=="function")Y=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===u||I.$$typeof===f))Y=I.propTypes;else return;if(Y){var ve=oe(I);Ye(Y,S.props,"prop",ve,S)}else if(I.PropTypes!==void 0&&!jh){jh=!0;var Re=oe(I);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Re||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lee(S){{for(var I=Object.keys(S.props),Y=0;Y<I.length;Y++){var ve=I[Y];if(ve!=="children"&&ve!=="key"){da(S),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),da(null);break}}S.ref!==null&&(da(S),x("Invalid attribute `ref` supplied to `React.Fragment`."),da(null))}}function x5(S,I,Y,ve,Re,Ze){{var Pe=F(S);if(!Pe){var ke="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(ke+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Dt=aee(Re);Dt?ke+=Dt:ke+=m5();var bt;S===null?bt="null":mt(S)?bt="array":S!==void 0&&S.$$typeof===t?(bt="<"+(oe(S.type)||"Unknown")+" />",ke=" Did you accidentally export a JSX literal instead of a component?"):bt=typeof S,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",bt,ke)}var Ct=Ro(S,I,Y,Re,Ze);if(Ct==null)return Ct;if(Pe){var nr=I.children;if(nr!==void 0)if(ve)if(mt(nr)){for(var ha=0;ha<nr.length;ha++)b5(nr[ha],S);Object.freeze&&Object.freeze(nr)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b5(nr,S)}return S===n?lee(Ct):see(Ct),Ct}}function uee(S,I,Y){return x5(S,I,Y,!0)}function cee(S,I,Y){return x5(S,I,Y,!1)}var fee=cee,dee=uee;Da.Fragment=n,Da.jsx=fee,Da.jsxs=dee}()),Da}process.env.NODE_ENV==="production"?yc.exports=vS():yc.exports=yS();var v=yc.exports;const bS=({open:e=!1,variants:t,onClose:r,children:n,sx:i,...a})=>v.jsx(ug,{children:e&&v.jsx(E.Dialog,{fullWidth:!0,maxWidth:"xs",open:e,onClose:r,PaperComponent:o=>v.jsxs(E.Box,{component:Jt.div,...t||pa({distance:120,durationIn:.32,durationOut:.24,easeIn:"easeInOut"}).inUp,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[v.jsx(E.Box,{onClick:r,sx:{width:"100%",height:"100%",position:"fixed"}}),v.jsx(E.Paper,{sx:i,...o,children:o.children})]}),...a,children:n})}),xS=({text:e,variants:t,sx:r,...n})=>v.jsx(E.Box,{component:Jt.div,sx:{m:0,typography:"h1",overflow:"hidden",display:"inline-flex",...r},...n,children:e.split("").map((i,a)=>v.jsx(Jt.span,{variants:t||pa().inUp,children:i},a))}),yg=m.forwardRef(({size:e="large",children:t,sx:r,sxWrap:n,...i},a)=>v.jsx(ES,{size:e,sxWrap:n,children:v.jsx(E.Fab,{ref:a,size:e,sx:r,...i,children:t})}));yg.displayName="FabButtonAnimate";const wS={hover:{scale:1.07},tap:{scale:.97}},CS={hover:{scale:1.06},tap:{scale:.98}},SS={hover:{scale:1.05},tap:{scale:.99}},ES=({size:e,children:t,sxWrap:r})=>{const n=e==="small",i=e==="large";return v.jsx(E.Box,{component:Jt.div,whileTap:"tap",whileHover:"hover",variants:n&&wS||i&&SS||CS,sx:{display:"inline-flex",...r},children:t})},TS={hover:{scale:1.1},tap:{scale:.95}},_S={hover:{scale:1.09},tap:{scale:.97}},kS={hover:{scale:1.08},tap:{scale:.99}},MS=({size:e,children:t})=>{const r=e==="small",n=e==="large";return v.jsx(E.Box,{component:Jt.div,whileTap:"tap",whileHover:"hover",variants:r&&TS||n&&kS||_S,sx:{display:"inline-flex"},children:t})},bg=m.forwardRef(({children:e,size:t="medium",...r},n)=>v.jsx(MS,{size:t,children:v.jsx(E.IconButton,{size:t,ref:n,...r,children:e})}));bg.displayName="IconButtonAnimate";function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(this,arguments)}function ti(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function xg(e){if(!ti(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=xg(e[r])}),t}function _r(e,t,r={clone:!0}){const n=r.clone?we({},e):e;return ti(e)&&ti(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ti(t[i])&&i in e&&ti(e[i])?n[i]=_r(e[i],t[i],r):r.clone?n[i]=ti(t[i])?xg(t[i]):t[i]:n[i]=t[i])}),n}var bc={exports:{}},hs={exports:{}},Be={};/** @license React v16.13.1
36
36
  * react-is.production.min.js
37
37
  *
38
38
  * Copyright (c) Facebook, Inc. and its affiliates.
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Cg;function OS(){if(Cg)return Be;Cg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var _=w.$$typeof;switch(_){case t:switch(w=w.type,w){case u:case l:case n:case a:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case g:case h:case o:return w;default:return _}}case r:return _}}}function k(w){return C(w)===l}return Be.AsyncMode=u,Be.ConcurrentMode=l,Be.ContextConsumer=s,Be.ContextProvider=o,Be.Element=t,Be.ForwardRef=c,Be.Fragment=n,Be.Lazy=g,Be.Memo=h,Be.Portal=r,Be.Profiler=a,Be.StrictMode=i,Be.Suspense=f,Be.isAsyncMode=function(w){return k(w)||C(w)===u},Be.isConcurrentMode=k,Be.isContextConsumer=function(w){return C(w)===s},Be.isContextProvider=function(w){return C(w)===o},Be.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Be.isForwardRef=function(w){return C(w)===c},Be.isFragment=function(w){return C(w)===n},Be.isLazy=function(w){return C(w)===g},Be.isMemo=function(w){return C(w)===h},Be.isPortal=function(w){return C(w)===r},Be.isProfiler=function(w){return C(w)===a},Be.isStrictMode=function(w){return C(w)===i},Be.isSuspense=function(w){return C(w)===f},Be.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===a||w===i||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===o||w.$$typeof===s||w.$$typeof===c||w.$$typeof===y||w.$$typeof===b||w.$$typeof===x||w.$$typeof===p)},Be.typeOf=C,Be}var Ve={};/** @license React v16.13.1
42
+ */var wg;function OS(){if(wg)return Be;wg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var _=w.$$typeof;switch(_){case t:switch(w=w.type,w){case u:case l:case n:case a:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case g:case h:case o:return w;default:return _}}case r:return _}}}function k(w){return C(w)===l}return Be.AsyncMode=u,Be.ConcurrentMode=l,Be.ContextConsumer=s,Be.ContextProvider=o,Be.Element=t,Be.ForwardRef=c,Be.Fragment=n,Be.Lazy=g,Be.Memo=h,Be.Portal=r,Be.Profiler=a,Be.StrictMode=i,Be.Suspense=f,Be.isAsyncMode=function(w){return k(w)||C(w)===u},Be.isConcurrentMode=k,Be.isContextConsumer=function(w){return C(w)===s},Be.isContextProvider=function(w){return C(w)===o},Be.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Be.isForwardRef=function(w){return C(w)===c},Be.isFragment=function(w){return C(w)===n},Be.isLazy=function(w){return C(w)===g},Be.isMemo=function(w){return C(w)===h},Be.isPortal=function(w){return C(w)===r},Be.isProfiler=function(w){return C(w)===a},Be.isStrictMode=function(w){return C(w)===i},Be.isSuspense=function(w){return C(w)===f},Be.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===a||w===i||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===o||w.$$typeof===s||w.$$typeof===c||w.$$typeof===y||w.$$typeof===b||w.$$typeof===x||w.$$typeof===p)},Be.typeOf=C,Be}var Ve={};/** @license React v16.13.1
43
43
  * react-is.development.js
44
44
  *
45
45
  * Copyright (c) Facebook, Inc. and its affiliates.
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Sg;function AS(){return Sg||(Sg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function C(j){return typeof j=="string"||typeof j=="function"||j===n||j===l||j===a||j===i||j===f||j===d||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===o||j.$$typeof===s||j.$$typeof===c||j.$$typeof===y||j.$$typeof===b||j.$$typeof===x||j.$$typeof===p)}function k(j){if(typeof j=="object"&&j!==null){var Je=j.$$typeof;switch(Je){case t:var J=j.type;switch(J){case u:case l:case n:case a:case i:case f:return J;default:var V=J&&J.$$typeof;switch(V){case s:case c:case g:case h:case o:return V;default:return Je}}case r:return Je}}}var w=u,_=l,T=s,O=o,P=t,F=c,Z=n,be=g,oe=h,Q=r,H=a,R=i,U=f,Ce=!1;function fe(j){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(j)||k(j)===u}function D(j){return k(j)===l}function $(j){return k(j)===s}function W(j){return k(j)===o}function se(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function X(j){return k(j)===c}function ce(j){return k(j)===n}function ne(j){return k(j)===g}function le(j){return k(j)===h}function ee(j){return k(j)===r}function q(j){return k(j)===a}function te(j){return k(j)===i}function Se(j){return k(j)===f}Ve.AsyncMode=w,Ve.ConcurrentMode=_,Ve.ContextConsumer=T,Ve.ContextProvider=O,Ve.Element=P,Ve.ForwardRef=F,Ve.Fragment=Z,Ve.Lazy=be,Ve.Memo=oe,Ve.Portal=Q,Ve.Profiler=H,Ve.StrictMode=R,Ve.Suspense=U,Ve.isAsyncMode=fe,Ve.isConcurrentMode=D,Ve.isContextConsumer=$,Ve.isContextProvider=W,Ve.isElement=se,Ve.isForwardRef=X,Ve.isFragment=ce,Ve.isLazy=ne,Ve.isMemo=le,Ve.isPortal=ee,Ve.isProfiler=q,Ve.isStrictMode=te,Ve.isSuspense=Se,Ve.isValidElementType=C,Ve.typeOf=k}()),Ve}var Eg;function Tg(){return Eg||(Eg=1,process.env.NODE_ENV==="production"?hs.exports=OS():hs.exports=AS()),hs.exports}/*
49
+ */var Cg;function AS(){return Cg||(Cg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function C(j){return typeof j=="string"||typeof j=="function"||j===n||j===l||j===a||j===i||j===f||j===d||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===o||j.$$typeof===s||j.$$typeof===c||j.$$typeof===y||j.$$typeof===b||j.$$typeof===x||j.$$typeof===p)}function k(j){if(typeof j=="object"&&j!==null){var Je=j.$$typeof;switch(Je){case t:var J=j.type;switch(J){case u:case l:case n:case a:case i:case f:return J;default:var V=J&&J.$$typeof;switch(V){case s:case c:case g:case h:case o:return V;default:return Je}}case r:return Je}}}var w=u,_=l,T=s,O=o,P=t,F=c,Z=n,be=g,oe=h,Q=r,H=a,R=i,U=f,Ce=!1;function fe(j){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(j)||k(j)===u}function D(j){return k(j)===l}function $(j){return k(j)===s}function W(j){return k(j)===o}function se(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function X(j){return k(j)===c}function ce(j){return k(j)===n}function ne(j){return k(j)===g}function le(j){return k(j)===h}function ee(j){return k(j)===r}function q(j){return k(j)===a}function te(j){return k(j)===i}function Se(j){return k(j)===f}Ve.AsyncMode=w,Ve.ConcurrentMode=_,Ve.ContextConsumer=T,Ve.ContextProvider=O,Ve.Element=P,Ve.ForwardRef=F,Ve.Fragment=Z,Ve.Lazy=be,Ve.Memo=oe,Ve.Portal=Q,Ve.Profiler=H,Ve.StrictMode=R,Ve.Suspense=U,Ve.isAsyncMode=fe,Ve.isConcurrentMode=D,Ve.isContextConsumer=$,Ve.isContextProvider=W,Ve.isElement=se,Ve.isForwardRef=X,Ve.isFragment=ce,Ve.isLazy=ne,Ve.isMemo=le,Ve.isPortal=ee,Ve.isProfiler=q,Ve.isStrictMode=te,Ve.isSuspense=Se,Ve.isValidElementType=C,Ve.typeOf=k}()),Ve}var Sg;function Eg(){return Sg||(Sg=1,process.env.NODE_ENV==="production"?hs.exports=OS():hs.exports=AS()),hs.exports}/*
50
50
  object-assign
51
51
  (c) Sindre Sorhus
52
52
  @license MIT
53
- */var xc,_g;function PS(){if(_g)return xc;_g=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xc=i()?Object.assign:function(a,o){for(var s,u=n(a),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){l=e(s);for(var d=0;d<l.length;d++)r.call(s,l[d])&&(u[l[d]]=s[l[d]])}}return u},xc}var wc,kg;function Cc(){if(kg)return wc;kg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wc=e,wc}var Sc,Mg;function Og(){return Mg||(Mg=1,Sc=Function.call.bind(Object.prototype.hasOwnProperty)),Sc}var Ec,Ag;function DS(){if(Ag)return Ec;Ag=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cc(),r={},n=Og();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,u,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ec=i,Ec}var Tc,Pg;function $S(){if(Pg)return Tc;Pg=1;var e=Tg(),t=PS(),r=Cc(),n=Og(),i=DS(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Tc=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(D){var $=D&&(l&&D[l]||D[c]);if(typeof $=="function")return $}var d="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:x(),arrayOf:C,element:k(),elementType:w(),instanceOf:_,node:F(),objectOf:O,oneOf:T,oneOfType:P,shape:be,exact:oe};function g(D,$){return D===$?D!==0||1/D===1/$:D!==D&&$!==$}function p(D,$){this.message=D,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function y(D){if(process.env.NODE_ENV!=="production")var $={},W=0;function se(ce,ne,le,ee,q,te,Se){if(ee=ee||d,te=te||le,Se!==r){if(u){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Je=ee+":"+le;!$[Je]&&W<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[Je]=!0,W++)}}return ne[le]==null?ce?ne[le]===null?new p("The "+q+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+q+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:D(ne,le,ee,q,te)}var X=se.bind(null,!1);return X.isRequired=se.bind(null,!0),X}function b(D){function $(W,se,X,ce,ne,le){var ee=W[se],q=R(ee);if(q!==D){var te=U(ee);return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+te+"` supplied to `"+X+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return y($)}function x(){return y(o)}function C(D){function $(W,se,X,ce,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var le=W[se];if(!Array.isArray(le)){var ee=R(le);return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected an array."))}for(var q=0;q<le.length;q++){var te=D(le,q,X,ce,ne+"["+q+"]",r);if(te instanceof Error)return te}return null}return y($)}function k(){function D($,W,se,X,ce){var ne=$[W];if(!s(ne)){var le=R(ne);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+le+"` supplied to `"+se+"`, expected a single ReactElement."))}return null}return y(D)}function w(){function D($,W,se,X,ce){var ne=$[W];if(!e.isValidElementType(ne)){var le=R(ne);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+le+"` supplied to `"+se+"`, expected a single ReactElement type."))}return null}return y(D)}function _(D){function $(W,se,X,ce,ne){if(!(W[se]instanceof D)){var le=D.name||d,ee=fe(W[se]);return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected ")+("instance of `"+le+"`."))}return null}return y($)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function $(W,se,X,ce,ne){for(var le=W[se],ee=0;ee<D.length;ee++)if(g(le,D[ee]))return null;var q=JSON.stringify(D,function(Se,j){var Je=U(j);return Je==="symbol"?String(j):j});return new p("Invalid "+ce+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+X+"`, expected one of "+q+"."))}return y($)}function O(D){function $(W,se,X,ce,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var le=W[se],ee=R(le);if(ee!=="object")return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected an object."));for(var q in le)if(n(le,q)){var te=D(le,q,X,ce,ne+"."+q,r);if(te instanceof Error)return te}return null}return y($)}function P(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var $=0;$<D.length;$++){var W=D[$];if(typeof W!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ce(W)+" at index "+$+"."),o}function se(X,ce,ne,le,ee){for(var q=[],te=0;te<D.length;te++){var Se=D[te],j=Se(X,ce,ne,le,ee,r);if(j==null)return null;j.data&&n(j.data,"expectedType")&&q.push(j.data.expectedType)}var Je=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+le+" `"+ee+"` supplied to "+("`"+ne+"`"+Je+"."))}return y(se)}function F(){function D($,W,se,X,ce){return Q($[W])?null:new p("Invalid "+X+" `"+ce+"` supplied to "+("`"+se+"`, expected a ReactNode."))}return y(D)}function Z(D,$,W,se,X){return new p((D||"React class")+": "+$+" type `"+W+"."+se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function be(D){function $(W,se,X,ce,ne){var le=W[se],ee=R(le);if(ee!=="object")return new p("Invalid "+ce+" `"+ne+"` of type `"+ee+"` "+("supplied to `"+X+"`, expected `object`."));for(var q in D){var te=D[q];if(typeof te!="function")return Z(X,ce,ne,q,U(te));var Se=te(le,q,X,ce,ne+"."+q,r);if(Se)return Se}return null}return y($)}function oe(D){function $(W,se,X,ce,ne){var le=W[se],ee=R(le);if(ee!=="object")return new p("Invalid "+ce+" `"+ne+"` of type `"+ee+"` "+("supplied to `"+X+"`, expected `object`."));var q=t({},W[se],D);for(var te in q){var Se=D[te];if(n(D,te)&&typeof Se!="function")return Z(X,ce,ne,te,U(Se));if(!Se)return new p("Invalid "+ce+" `"+ne+"` key `"+te+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(W[se],null," ")+`
54
- Valid keys: `+JSON.stringify(Object.keys(D),null," "));var j=Se(le,te,X,ce,ne+"."+te,r);if(j)return j}return null}return y($)}function Q(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(Q);if(D===null||s(D))return!0;var $=f(D);if($){var W=$.call(D),se;if($!==D.entries){for(;!(se=W.next()).done;)if(!Q(se.value))return!1}else for(;!(se=W.next()).done;){var X=se.value;if(X&&!Q(X[1]))return!1}}else return!1;return!0;default:return!1}}function H(D,$){return D==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function R(D){var $=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":H($,D)?"symbol":$}function U(D){if(typeof D>"u"||D===null)return""+D;var $=R(D);if($==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return $}function Ce(D){var $=U(D);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function fe(D){return!D.constructor||!D.constructor.name?d:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Tc}var _c,Dg;function FS(){if(Dg)return _c;Dg=1;var e=Cc();function t(){}function r(){}return r.resetWarningCache=t,_c=function(){function n(o,s,u,l,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},_c}if(process.env.NODE_ENV!=="production"){var IS=Tg(),jS=!0;bc.exports=$S()(IS.isElement,jS)}else bc.exports=FS()();var LS=bc.exports;const M=vn(LS),RS="exact-prop: ​";function $g(e){return process.env.NODE_ENV==="production"?e:we({},e,{[RS]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function ri(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var kc={exports:{}},ze={};/**
53
+ */var xc,Tg;function PS(){if(Tg)return xc;Tg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xc=i()?Object.assign:function(a,o){for(var s,u=n(a),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){l=e(s);for(var d=0;d<l.length;d++)r.call(s,l[d])&&(u[l[d]]=s[l[d]])}}return u},xc}var wc,_g;function Cc(){if(_g)return wc;_g=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wc=e,wc}var Sc,kg;function Mg(){return kg||(kg=1,Sc=Function.call.bind(Object.prototype.hasOwnProperty)),Sc}var Ec,Og;function DS(){if(Og)return Ec;Og=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cc(),r={},n=Mg();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,u,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ec=i,Ec}var Tc,Ag;function $S(){if(Ag)return Tc;Ag=1;var e=Eg(),t=PS(),r=Cc(),n=Mg(),i=DS(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Tc=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(D){var $=D&&(l&&D[l]||D[c]);if(typeof $=="function")return $}var d="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:x(),arrayOf:C,element:k(),elementType:w(),instanceOf:_,node:F(),objectOf:O,oneOf:T,oneOfType:P,shape:be,exact:oe};function g(D,$){return D===$?D!==0||1/D===1/$:D!==D&&$!==$}function p(D,$){this.message=D,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function y(D){if(process.env.NODE_ENV!=="production")var $={},W=0;function se(ce,ne,le,ee,q,te,Se){if(ee=ee||d,te=te||le,Se!==r){if(u){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Je=ee+":"+le;!$[Je]&&W<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[Je]=!0,W++)}}return ne[le]==null?ce?ne[le]===null?new p("The "+q+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+q+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:D(ne,le,ee,q,te)}var X=se.bind(null,!1);return X.isRequired=se.bind(null,!0),X}function b(D){function $(W,se,X,ce,ne,le){var ee=W[se],q=R(ee);if(q!==D){var te=U(ee);return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+te+"` supplied to `"+X+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return y($)}function x(){return y(o)}function C(D){function $(W,se,X,ce,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var le=W[se];if(!Array.isArray(le)){var ee=R(le);return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected an array."))}for(var q=0;q<le.length;q++){var te=D(le,q,X,ce,ne+"["+q+"]",r);if(te instanceof Error)return te}return null}return y($)}function k(){function D($,W,se,X,ce){var ne=$[W];if(!s(ne)){var le=R(ne);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+le+"` supplied to `"+se+"`, expected a single ReactElement."))}return null}return y(D)}function w(){function D($,W,se,X,ce){var ne=$[W];if(!e.isValidElementType(ne)){var le=R(ne);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+le+"` supplied to `"+se+"`, expected a single ReactElement type."))}return null}return y(D)}function _(D){function $(W,se,X,ce,ne){if(!(W[se]instanceof D)){var le=D.name||d,ee=fe(W[se]);return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected ")+("instance of `"+le+"`."))}return null}return y($)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function $(W,se,X,ce,ne){for(var le=W[se],ee=0;ee<D.length;ee++)if(g(le,D[ee]))return null;var q=JSON.stringify(D,function(Se,j){var Je=U(j);return Je==="symbol"?String(j):j});return new p("Invalid "+ce+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+X+"`, expected one of "+q+"."))}return y($)}function O(D){function $(W,se,X,ce,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var le=W[se],ee=R(le);if(ee!=="object")return new p("Invalid "+ce+" `"+ne+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected an object."));for(var q in le)if(n(le,q)){var te=D(le,q,X,ce,ne+"."+q,r);if(te instanceof Error)return te}return null}return y($)}function P(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var $=0;$<D.length;$++){var W=D[$];if(typeof W!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ce(W)+" at index "+$+"."),o}function se(X,ce,ne,le,ee){for(var q=[],te=0;te<D.length;te++){var Se=D[te],j=Se(X,ce,ne,le,ee,r);if(j==null)return null;j.data&&n(j.data,"expectedType")&&q.push(j.data.expectedType)}var Je=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+le+" `"+ee+"` supplied to "+("`"+ne+"`"+Je+"."))}return y(se)}function F(){function D($,W,se,X,ce){return Q($[W])?null:new p("Invalid "+X+" `"+ce+"` supplied to "+("`"+se+"`, expected a ReactNode."))}return y(D)}function Z(D,$,W,se,X){return new p((D||"React class")+": "+$+" type `"+W+"."+se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function be(D){function $(W,se,X,ce,ne){var le=W[se],ee=R(le);if(ee!=="object")return new p("Invalid "+ce+" `"+ne+"` of type `"+ee+"` "+("supplied to `"+X+"`, expected `object`."));for(var q in D){var te=D[q];if(typeof te!="function")return Z(X,ce,ne,q,U(te));var Se=te(le,q,X,ce,ne+"."+q,r);if(Se)return Se}return null}return y($)}function oe(D){function $(W,se,X,ce,ne){var le=W[se],ee=R(le);if(ee!=="object")return new p("Invalid "+ce+" `"+ne+"` of type `"+ee+"` "+("supplied to `"+X+"`, expected `object`."));var q=t({},W[se],D);for(var te in q){var Se=D[te];if(n(D,te)&&typeof Se!="function")return Z(X,ce,ne,te,U(Se));if(!Se)return new p("Invalid "+ce+" `"+ne+"` key `"+te+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(W[se],null," ")+`
54
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var j=Se(le,te,X,ce,ne+"."+te,r);if(j)return j}return null}return y($)}function Q(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(Q);if(D===null||s(D))return!0;var $=f(D);if($){var W=$.call(D),se;if($!==D.entries){for(;!(se=W.next()).done;)if(!Q(se.value))return!1}else for(;!(se=W.next()).done;){var X=se.value;if(X&&!Q(X[1]))return!1}}else return!1;return!0;default:return!1}}function H(D,$){return D==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function R(D){var $=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":H($,D)?"symbol":$}function U(D){if(typeof D>"u"||D===null)return""+D;var $=R(D);if($==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return $}function Ce(D){var $=U(D);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function fe(D){return!D.constructor||!D.constructor.name?d:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Tc}var _c,Pg;function FS(){if(Pg)return _c;Pg=1;var e=Cc();function t(){}function r(){}return r.resetWarningCache=t,_c=function(){function n(o,s,u,l,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},_c}if(process.env.NODE_ENV!=="production"){var IS=Eg(),jS=!0;bc.exports=$S()(IS.isElement,jS)}else bc.exports=FS()();var LS=bc.exports;const M=vn(LS),RS="exact-prop: ​";function Dg(e){return process.env.NODE_ENV==="production"?e:we({},e,{[RS]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function ri(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var kc={exports:{}},ze={};/**
55
55
  * @license React
56
56
  * react-is.production.min.js
57
57
  *
@@ -59,7 +59,7 @@ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var j=Se(le,te,X,ce,ne+"
59
59
  *
60
60
  * This source code is licensed under the MIT license found in the
61
61
  * LICENSE file in the root directory of this source tree.
62
- */var Fg;function NS(){if(Fg)return ze;Fg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case r:case i:case n:case l:case c:return y;default:switch(y=y&&y.$$typeof,y){case s:case o:case u:case d:case f:case a:return y;default:return b}}case t:return b}}}return ze.ContextConsumer=o,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=u,ze.Fragment=r,ze.Lazy=d,ze.Memo=f,ze.Portal=t,ze.Profiler=i,ze.StrictMode=n,ze.Suspense=l,ze.SuspenseList=c,ze.isAsyncMode=function(){return!1},ze.isConcurrentMode=function(){return!1},ze.isContextConsumer=function(y){return p(y)===o},ze.isContextProvider=function(y){return p(y)===a},ze.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ze.isForwardRef=function(y){return p(y)===u},ze.isFragment=function(y){return p(y)===r},ze.isLazy=function(y){return p(y)===d},ze.isMemo=function(y){return p(y)===f},ze.isPortal=function(y){return p(y)===t},ze.isProfiler=function(y){return p(y)===i},ze.isStrictMode=function(y){return p(y)===n},ze.isSuspense=function(y){return p(y)===l},ze.isSuspenseList=function(y){return p(y)===c},ze.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===l||y===c||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===f||y.$$typeof===a||y.$$typeof===o||y.$$typeof===u||y.$$typeof===g||y.getModuleId!==void 0)},ze.typeOf=p,ze}var We={};/**
62
+ */var $g;function NS(){if($g)return ze;$g=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case r:case i:case n:case l:case c:return y;default:switch(y=y&&y.$$typeof,y){case s:case o:case u:case d:case f:case a:return y;default:return b}}case t:return b}}}return ze.ContextConsumer=o,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=u,ze.Fragment=r,ze.Lazy=d,ze.Memo=f,ze.Portal=t,ze.Profiler=i,ze.StrictMode=n,ze.Suspense=l,ze.SuspenseList=c,ze.isAsyncMode=function(){return!1},ze.isConcurrentMode=function(){return!1},ze.isContextConsumer=function(y){return p(y)===o},ze.isContextProvider=function(y){return p(y)===a},ze.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ze.isForwardRef=function(y){return p(y)===u},ze.isFragment=function(y){return p(y)===r},ze.isLazy=function(y){return p(y)===d},ze.isMemo=function(y){return p(y)===f},ze.isPortal=function(y){return p(y)===t},ze.isProfiler=function(y){return p(y)===i},ze.isStrictMode=function(y){return p(y)===n},ze.isSuspense=function(y){return p(y)===l},ze.isSuspenseList=function(y){return p(y)===c},ze.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===l||y===c||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===f||y.$$typeof===a||y.$$typeof===o||y.$$typeof===u||y.$$typeof===g||y.getModuleId!==void 0)},ze.typeOf=p,ze}var We={};/**
63
63
  * @license React
64
64
  * react-is.development.js
65
65
  *
@@ -67,24 +67,24 @@ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var j=Se(le,te,X,ce,ne+"
67
67
  *
68
68
  * This source code is licensed under the MIT license found in the
69
69
  * LICENSE file in the root directory of this source tree.
70
- */var Ig;function BS(){return Ig||(Ig=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,y=!1,b=!1,x=!1,C;C=Symbol.for("react.module.reference");function k(J){return!!(typeof J=="string"||typeof J=="function"||J===r||J===i||x||J===n||J===l||J===c||b||J===h||g||p||y||typeof J=="object"&&J!==null&&(J.$$typeof===d||J.$$typeof===f||J.$$typeof===a||J.$$typeof===o||J.$$typeof===u||J.$$typeof===C||J.getModuleId!==void 0))}function w(J){if(typeof J=="object"&&J!==null){var V=J.$$typeof;switch(V){case e:var re=J.type;switch(re){case r:case i:case n:case l:case c:return re;default:var de=re&&re.$$typeof;switch(de){case s:case o:case u:case d:case f:case a:return de;default:return V}}case t:return V}}}var _=o,T=a,O=e,P=u,F=r,Z=d,be=f,oe=t,Q=i,H=n,R=l,U=c,Ce=!1,fe=!1;function D(J){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(J){return fe||(fe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(J){return w(J)===o}function se(J){return w(J)===a}function X(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function ce(J){return w(J)===u}function ne(J){return w(J)===r}function le(J){return w(J)===d}function ee(J){return w(J)===f}function q(J){return w(J)===t}function te(J){return w(J)===i}function Se(J){return w(J)===n}function j(J){return w(J)===l}function Je(J){return w(J)===c}We.ContextConsumer=_,We.ContextProvider=T,We.Element=O,We.ForwardRef=P,We.Fragment=F,We.Lazy=Z,We.Memo=be,We.Portal=oe,We.Profiler=Q,We.StrictMode=H,We.Suspense=R,We.SuspenseList=U,We.isAsyncMode=D,We.isConcurrentMode=$,We.isContextConsumer=W,We.isContextProvider=se,We.isElement=X,We.isForwardRef=ce,We.isFragment=ne,We.isLazy=le,We.isMemo=ee,We.isPortal=q,We.isProfiler=te,We.isStrictMode=Se,We.isSuspense=j,We.isSuspenseList=Je,We.isValidElementType=k,We.typeOf=w}()),We}process.env.NODE_ENV==="production"?kc.exports=NS():kc.exports=BS();var jg=kc.exports;const VS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zS(e){const t=`${e}`.match(VS);return t&&t[1]||""}function Lg(e,t=""){return e.displayName||e.name||zS(e)||t}function Rg(e,t,r){const n=Lg(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function WS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Lg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case jg.ForwardRef:return Rg(e,e.render,"ForwardRef");case jg.Memo:return Rg(e,e.type,"memo");default:return}}}function ni(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ri(7));return e.charAt(0).toUpperCase()+e.slice(1)}const HS=typeof window<"u"?pe.useLayoutEffect:pe.useEffect;function Ng(e,t){const r=we({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=we({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=we({},a),Object.keys(i).forEach(o=>{r[n][o]=Ng(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const Bg=e=>e,US=(()=>{let e=Bg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bg}}})(),YS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function GS(e,t,r="Mui"){const n=YS[t];return n?`${r}-${n}`:`${US.generate(e)}-${t}`}const ps="$$material";function kr(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function qS(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function KS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var XS=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(KS(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
71
- `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=qS(i);try{o.insertRule(n,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),kt="-ms-",gs="-moz-",Ie="-webkit-",Mc="comm",Oc="rule",Ac="decl",ZS="@import",Vg="@keyframes",QS="@layer",JS=Math.abs,ms=String.fromCharCode,e6=Object.assign;function t6(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}function zg(e){return e.trim()}function r6(e,t){return(e=t.exec(e))?e[0]:e}function je(e,t,r){return e.replace(t,r)}function Pc(e,t){return e.indexOf(t)}function _t(e,t){return e.charCodeAt(t)|0}function $a(e,t,r){return e.slice(t,r)}function hr(e){return e.length}function Dc(e){return e.length}function vs(e,t){return t.push(e),e}function n6(e,t){return e.map(t).join("")}var ys=1,ii=1,Wg=0,Ft=0,wt=0,ai="";function bs(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ys,column:ii,length:o,return:""}}function Fa(e,t){return e6(bs("",null,null,"",null,null,0),e,{length:-e.length},t)}function i6(){return wt}function a6(){return wt=Ft>0?_t(ai,--Ft):0,ii--,wt===10&&(ii=1,ys--),wt}function Vt(){return wt=Ft<Wg?_t(ai,Ft++):0,ii++,wt===10&&(ii=1,ys++),wt}function pr(){return _t(ai,Ft)}function xs(){return Ft}function Ia(e,t){return $a(ai,e,t)}function ja(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hg(e){return ys=ii=1,Wg=hr(ai=e),Ft=0,[]}function Ug(e){return ai="",e}function ws(e){return zg(Ia(Ft-1,$c(e===91?e+2:e===40?e+1:e)))}function o6(e){for(;(wt=pr())&&wt<33;)Vt();return ja(e)>2||ja(wt)>3?"":" "}function s6(e,t){for(;--t&&Vt()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Ia(e,xs()+(t<6&&pr()==32&&Vt()==32))}function $c(e){for(;Vt();)switch(wt){case e:return Ft;case 34:case 39:e!==34&&e!==39&&$c(wt);break;case 40:e===41&&$c(e);break;case 92:Vt();break}return Ft}function l6(e,t){for(;Vt()&&e+wt!==47+10;)if(e+wt===42+42&&pr()===47)break;return"/*"+Ia(t,Ft-1)+"*"+ms(e===47?e:Vt())}function u6(e){for(;!ja(pr());)Vt();return Ia(e,Ft)}function c6(e){return Ug(Cs("",null,null,null,[""],e=Hg(e),0,[0],e))}function Cs(e,t,r,n,i,a,o,s,u){for(var l=0,c=0,f=o,d=0,h=0,g=0,p=1,y=1,b=1,x=0,C="",k=i,w=a,_=n,T=C;y;)switch(g=x,x=Vt()){case 40:if(g!=108&&_t(T,f-1)==58){Pc(T+=je(ws(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=ws(x);break;case 9:case 10:case 13:case 32:T+=o6(g);break;case 92:T+=s6(xs()-1,7);continue;case 47:switch(pr()){case 42:case 47:vs(f6(l6(Vt(),xs()),t,r),u);break;default:T+="/"}break;case 123*p:s[l++]=hr(T)*b;case 125*p:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+c:b==-1&&(T=je(T,/\f/g,"")),h>0&&hr(T)-f&&vs(h>32?Gg(T+";",n,r,f-1):Gg(je(T," ","")+";",n,r,f-2),u);break;case 59:T+=";";default:if(vs(_=Yg(T,t,r,l,c,i,s,C,k=[],w=[],f),a),x===123)if(c===0)Cs(T,t,_,_,k,a,f,s,w);else switch(d===99&&_t(T,3)===110?100:d){case 100:case 108:case 109:case 115:Cs(e,_,_,n&&vs(Yg(e,_,_,0,0,i,s,C,i,k=[],f),w),i,w,f,s,n?k:w);break;default:Cs(T,_,_,_,[""],w,0,s,w)}}l=c=h=0,p=b=1,C=T="",f=o;break;case 58:f=1+hr(T),h=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&a6()==125)continue}switch(T+=ms(x),x*p){case 38:b=c>0?1:(T+="\f",-1);break;case 44:s[l++]=(hr(T)-1)*b,b=1;break;case 64:pr()===45&&(T+=ws(Vt())),d=pr(),c=f=hr(C=T+=u6(xs())),x++;break;case 45:g===45&&hr(T)==2&&(p=0)}}return a}function Yg(e,t,r,n,i,a,o,s,u,l,c){for(var f=i-1,d=i===0?a:[""],h=Dc(d),g=0,p=0,y=0;g<n;++g)for(var b=0,x=$a(e,f+1,f=JS(p=o[g])),C=e;b<h;++b)(C=zg(p>0?d[b]+" "+x:je(x,/&\f/g,d[b])))&&(u[y++]=C);return bs(e,t,r,i===0?Oc:s,u,l,c)}function f6(e,t,r){return bs(e,t,r,Mc,ms(i6()),$a(e,2,-2),0)}function Gg(e,t,r,n){return bs(e,t,r,Ac,$a(e,0,n),$a(e,n+1,-1),n)}function oi(e,t){for(var r="",n=Dc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function d6(e,t,r,n){switch(e.type){case QS:if(e.children.length)break;case ZS:case Ac:return e.return=e.return||e.value;case Mc:return"";case Vg:return e.return=e.value+"{"+oi(e.children,n)+"}";case Oc:e.value=e.props.join(",")}return hr(r=oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function h6(e){var t=Dc(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function p6(e){return function(t){t.root||(t=t.return)&&e(t)}}var g6=function(t,r,n){for(var i=0,a=0;i=a,a=pr(),i===38&&a===12&&(r[n]=1),!ja(a);)Vt();return Ia(t,Ft)},m6=function(t,r){var n=-1,i=44;do switch(ja(i)){case 0:i===38&&pr()===12&&(r[n]=1),t[n]+=g6(Ft-1,r,n);break;case 2:t[n]+=ws(i);break;case 4:if(i===44){t[++n]=pr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ms(i)}while(i=Vt());return t},v6=function(t,r){return Ug(m6(Hg(t),r))},qg=new WeakMap,y6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!qg.get(n))&&!i){qg.set(t,!0);for(var a=[],o=v6(r,a),s=n.props,u=0,l=0;u<o.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=a[u]?o[u].replace(/&\f/g,s[c]):s[c]+" "+o[u]}}},b6=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},x6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",w6=function(t){return t.type==="comm"&&t.children.indexOf(x6)>-1},C6=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var a=r.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!r.parent,s=o?r.parent.children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<r.line)break;if(l.column<r.column){if(w6(l))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Kg=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},S6=function(t,r){for(var n=t-1;n>=0;n--)if(!Kg(r[n]))return!0;return!1},Xg=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},E6=function(t,r,n){Kg(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Xg(t)):S6(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Xg(t)))};function Zg(e,t){switch(t6(e,t)){case 5103:return Ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ie+e+gs+e+kt+e+e;case 6828:case 4268:return Ie+e+kt+e+e;case 6165:return Ie+e+kt+"flex-"+e+e;case 5187:return Ie+e+je(e,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+kt+"flex-$1$2")+e;case 5443:return Ie+e+kt+"flex-item-"+je(e,/flex-|-self/,"")+e;case 4675:return Ie+e+kt+"flex-line-pack"+je(e,/align-content|flex-|-self/,"")+e;case 5548:return Ie+e+kt+je(e,"shrink","negative")+e;case 5292:return Ie+e+kt+je(e,"basis","preferred-size")+e;case 6060:return Ie+"box-"+je(e,"-grow","")+Ie+e+kt+je(e,"grow","positive")+e;case 4554:return Ie+je(e,/([^-])(transform)/g,"$1"+Ie+"$2")+e;case 6187:return je(je(je(e,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),e,"")+e;case 5495:case 3959:return je(e,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return je(je(e,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+kt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+e+e;case 4095:case 3583:case 4068:case 2532:return je(e,/(.+)-inline(.+)/,Ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hr(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return je(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+gs+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pc(e,"stretch")?Zg(je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_t(e,t+1)!==115)break;case 6444:switch(_t(e,hr(e)-3-(~Pc(e,"!important")&&10))){case 107:return je(e,":",":"+Ie)+e;case 101:return je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(_t(e,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+kt+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return Ie+e+kt+je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+kt+je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+kt+je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+kt+e+e}return e}var T6=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Ac:t.return=Zg(t.value,t.length);break;case Vg:return oi([Fa(t,{value:je(t.value,"@","@"+Ie)})],i);case Oc:if(t.length)return n6(t.props,function(a){switch(r6(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oi([Fa(t,{props:[je(a,/:(read-\w+)/,":"+gs+"$1")]})],i);case"::placeholder":return oi([Fa(t,{props:[je(a,/:(plac\w+)/,":"+Ie+"input-$1")]}),Fa(t,{props:[je(a,/:(plac\w+)/,":"+gs+"$1")]}),Fa(t,{props:[je(a,/:(plac\w+)/,kt+"input-$1")]})],i)}return""})}},_6=[T6],k6=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
72
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||_6;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)a[y[b]]=!0;s.push(p)});var u,l=[y6,b6];process.env.NODE_ENV!=="production"&&l.push(C6({get compat(){return g.compat}}),E6);{var c,f=[d6,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==Mc&&c.insert(p.value+"{}"))}:p6(function(p){c.insert(p)})],d=h6(l.concat(i,f)),h=function(y){return oi(c6(y),d)};u=function(y,b,x,C){c=x,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(c={insert:function(w){x.insert(w+b.map)}}),h(y?y+"{"+b.styles+"}":b.styles),C&&(g.inserted[b.name]=!0)}}var g={key:r,sheet:new XS({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return g.sheet.hydrate(s),g};let Fc;typeof document=="object"&&(Fc=k6({key:"css",prepend:!0}));function Qg(e){const{injectFirst:t,children:r}=e;return t&&Fc?v.jsx(vu.CacheProvider,{value:Fc,children:r}):r}process.env.NODE_ENV!=="production"&&(Qg.propTypes={children:M.node,injectFirst:M.bool});/**
70
+ */var Fg;function BS(){return Fg||(Fg=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,y=!1,b=!1,x=!1,C;C=Symbol.for("react.module.reference");function k(J){return!!(typeof J=="string"||typeof J=="function"||J===r||J===i||x||J===n||J===l||J===c||b||J===h||g||p||y||typeof J=="object"&&J!==null&&(J.$$typeof===d||J.$$typeof===f||J.$$typeof===a||J.$$typeof===o||J.$$typeof===u||J.$$typeof===C||J.getModuleId!==void 0))}function w(J){if(typeof J=="object"&&J!==null){var V=J.$$typeof;switch(V){case e:var re=J.type;switch(re){case r:case i:case n:case l:case c:return re;default:var de=re&&re.$$typeof;switch(de){case s:case o:case u:case d:case f:case a:return de;default:return V}}case t:return V}}}var _=o,T=a,O=e,P=u,F=r,Z=d,be=f,oe=t,Q=i,H=n,R=l,U=c,Ce=!1,fe=!1;function D(J){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(J){return fe||(fe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(J){return w(J)===o}function se(J){return w(J)===a}function X(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function ce(J){return w(J)===u}function ne(J){return w(J)===r}function le(J){return w(J)===d}function ee(J){return w(J)===f}function q(J){return w(J)===t}function te(J){return w(J)===i}function Se(J){return w(J)===n}function j(J){return w(J)===l}function Je(J){return w(J)===c}We.ContextConsumer=_,We.ContextProvider=T,We.Element=O,We.ForwardRef=P,We.Fragment=F,We.Lazy=Z,We.Memo=be,We.Portal=oe,We.Profiler=Q,We.StrictMode=H,We.Suspense=R,We.SuspenseList=U,We.isAsyncMode=D,We.isConcurrentMode=$,We.isContextConsumer=W,We.isContextProvider=se,We.isElement=X,We.isForwardRef=ce,We.isFragment=ne,We.isLazy=le,We.isMemo=ee,We.isPortal=q,We.isProfiler=te,We.isStrictMode=Se,We.isSuspense=j,We.isSuspenseList=Je,We.isValidElementType=k,We.typeOf=w}()),We}process.env.NODE_ENV==="production"?kc.exports=NS():kc.exports=BS();var Ig=kc.exports;const VS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zS(e){const t=`${e}`.match(VS);return t&&t[1]||""}function jg(e,t=""){return e.displayName||e.name||zS(e)||t}function Lg(e,t,r){const n=jg(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function WS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return jg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ig.ForwardRef:return Lg(e,e.render,"ForwardRef");case Ig.Memo:return Lg(e,e.type,"memo");default:return}}}function ni(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ri(7));return e.charAt(0).toUpperCase()+e.slice(1)}const HS=typeof window<"u"?pe.useLayoutEffect:pe.useEffect;function Rg(e,t){const r=we({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=we({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=we({},a),Object.keys(i).forEach(o=>{r[n][o]=Rg(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const Ng=e=>e,US=(()=>{let e=Ng;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ng}}})(),YS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function GS(e,t,r="Mui"){const n=YS[t];return n?`${r}-${n}`:`${US.generate(e)}-${t}`}const ps="$$material";function kr(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function qS(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function KS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var XS=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(KS(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
71
+ `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=qS(i);try{o.insertRule(n,o.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),kt="-ms-",gs="-moz-",Ie="-webkit-",Mc="comm",Oc="rule",Ac="decl",ZS="@import",Bg="@keyframes",QS="@layer",JS=Math.abs,ms=String.fromCharCode,e6=Object.assign;function t6(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}function Vg(e){return e.trim()}function r6(e,t){return(e=t.exec(e))?e[0]:e}function je(e,t,r){return e.replace(t,r)}function Pc(e,t){return e.indexOf(t)}function _t(e,t){return e.charCodeAt(t)|0}function $a(e,t,r){return e.slice(t,r)}function hr(e){return e.length}function Dc(e){return e.length}function vs(e,t){return t.push(e),e}function n6(e,t){return e.map(t).join("")}var ys=1,ii=1,zg=0,Ft=0,wt=0,ai="";function bs(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ys,column:ii,length:o,return:""}}function Fa(e,t){return e6(bs("",null,null,"",null,null,0),e,{length:-e.length},t)}function i6(){return wt}function a6(){return wt=Ft>0?_t(ai,--Ft):0,ii--,wt===10&&(ii=1,ys--),wt}function Vt(){return wt=Ft<zg?_t(ai,Ft++):0,ii++,wt===10&&(ii=1,ys++),wt}function pr(){return _t(ai,Ft)}function xs(){return Ft}function Ia(e,t){return $a(ai,e,t)}function ja(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wg(e){return ys=ii=1,zg=hr(ai=e),Ft=0,[]}function Hg(e){return ai="",e}function ws(e){return Vg(Ia(Ft-1,$c(e===91?e+2:e===40?e+1:e)))}function o6(e){for(;(wt=pr())&&wt<33;)Vt();return ja(e)>2||ja(wt)>3?"":" "}function s6(e,t){for(;--t&&Vt()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Ia(e,xs()+(t<6&&pr()==32&&Vt()==32))}function $c(e){for(;Vt();)switch(wt){case e:return Ft;case 34:case 39:e!==34&&e!==39&&$c(wt);break;case 40:e===41&&$c(e);break;case 92:Vt();break}return Ft}function l6(e,t){for(;Vt()&&e+wt!==47+10;)if(e+wt===42+42&&pr()===47)break;return"/*"+Ia(t,Ft-1)+"*"+ms(e===47?e:Vt())}function u6(e){for(;!ja(pr());)Vt();return Ia(e,Ft)}function c6(e){return Hg(Cs("",null,null,null,[""],e=Wg(e),0,[0],e))}function Cs(e,t,r,n,i,a,o,s,u){for(var l=0,c=0,f=o,d=0,h=0,g=0,p=1,y=1,b=1,x=0,C="",k=i,w=a,_=n,T=C;y;)switch(g=x,x=Vt()){case 40:if(g!=108&&_t(T,f-1)==58){Pc(T+=je(ws(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=ws(x);break;case 9:case 10:case 13:case 32:T+=o6(g);break;case 92:T+=s6(xs()-1,7);continue;case 47:switch(pr()){case 42:case 47:vs(f6(l6(Vt(),xs()),t,r),u);break;default:T+="/"}break;case 123*p:s[l++]=hr(T)*b;case 125*p:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+c:b==-1&&(T=je(T,/\f/g,"")),h>0&&hr(T)-f&&vs(h>32?Yg(T+";",n,r,f-1):Yg(je(T," ","")+";",n,r,f-2),u);break;case 59:T+=";";default:if(vs(_=Ug(T,t,r,l,c,i,s,C,k=[],w=[],f),a),x===123)if(c===0)Cs(T,t,_,_,k,a,f,s,w);else switch(d===99&&_t(T,3)===110?100:d){case 100:case 108:case 109:case 115:Cs(e,_,_,n&&vs(Ug(e,_,_,0,0,i,s,C,i,k=[],f),w),i,w,f,s,n?k:w);break;default:Cs(T,_,_,_,[""],w,0,s,w)}}l=c=h=0,p=b=1,C=T="",f=o;break;case 58:f=1+hr(T),h=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&a6()==125)continue}switch(T+=ms(x),x*p){case 38:b=c>0?1:(T+="\f",-1);break;case 44:s[l++]=(hr(T)-1)*b,b=1;break;case 64:pr()===45&&(T+=ws(Vt())),d=pr(),c=f=hr(C=T+=u6(xs())),x++;break;case 45:g===45&&hr(T)==2&&(p=0)}}return a}function Ug(e,t,r,n,i,a,o,s,u,l,c){for(var f=i-1,d=i===0?a:[""],h=Dc(d),g=0,p=0,y=0;g<n;++g)for(var b=0,x=$a(e,f+1,f=JS(p=o[g])),C=e;b<h;++b)(C=Vg(p>0?d[b]+" "+x:je(x,/&\f/g,d[b])))&&(u[y++]=C);return bs(e,t,r,i===0?Oc:s,u,l,c)}function f6(e,t,r){return bs(e,t,r,Mc,ms(i6()),$a(e,2,-2),0)}function Yg(e,t,r,n){return bs(e,t,r,Ac,$a(e,0,n),$a(e,n+1,-1),n)}function oi(e,t){for(var r="",n=Dc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function d6(e,t,r,n){switch(e.type){case QS:if(e.children.length)break;case ZS:case Ac:return e.return=e.return||e.value;case Mc:return"";case Bg:return e.return=e.value+"{"+oi(e.children,n)+"}";case Oc:e.value=e.props.join(",")}return hr(r=oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function h6(e){var t=Dc(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function p6(e){return function(t){t.root||(t=t.return)&&e(t)}}var g6=function(t,r,n){for(var i=0,a=0;i=a,a=pr(),i===38&&a===12&&(r[n]=1),!ja(a);)Vt();return Ia(t,Ft)},m6=function(t,r){var n=-1,i=44;do switch(ja(i)){case 0:i===38&&pr()===12&&(r[n]=1),t[n]+=g6(Ft-1,r,n);break;case 2:t[n]+=ws(i);break;case 4:if(i===44){t[++n]=pr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ms(i)}while(i=Vt());return t},v6=function(t,r){return Hg(m6(Wg(t),r))},Gg=new WeakMap,y6=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Gg.get(n))&&!i){Gg.set(t,!0);for(var a=[],o=v6(r,a),s=n.props,u=0,l=0;u<o.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=a[u]?o[u].replace(/&\f/g,s[c]):s[c]+" "+o[u]}}},b6=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},x6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",w6=function(t){return t.type==="comm"&&t.children.indexOf(x6)>-1},C6=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var a=r.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!r.parent,s=o?r.parent.children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<r.line)break;if(l.column<r.column){if(w6(l))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},qg=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},S6=function(t,r){for(var n=t-1;n>=0;n--)if(!qg(r[n]))return!0;return!1},Kg=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},E6=function(t,r,n){qg(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Kg(t)):S6(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Kg(t)))};function Xg(e,t){switch(t6(e,t)){case 5103:return Ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ie+e+gs+e+kt+e+e;case 6828:case 4268:return Ie+e+kt+e+e;case 6165:return Ie+e+kt+"flex-"+e+e;case 5187:return Ie+e+je(e,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+kt+"flex-$1$2")+e;case 5443:return Ie+e+kt+"flex-item-"+je(e,/flex-|-self/,"")+e;case 4675:return Ie+e+kt+"flex-line-pack"+je(e,/align-content|flex-|-self/,"")+e;case 5548:return Ie+e+kt+je(e,"shrink","negative")+e;case 5292:return Ie+e+kt+je(e,"basis","preferred-size")+e;case 6060:return Ie+"box-"+je(e,"-grow","")+Ie+e+kt+je(e,"grow","positive")+e;case 4554:return Ie+je(e,/([^-])(transform)/g,"$1"+Ie+"$2")+e;case 6187:return je(je(je(e,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),e,"")+e;case 5495:case 3959:return je(e,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return je(je(e,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+kt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+e+e;case 4095:case 3583:case 4068:case 2532:return je(e,/(.+)-inline(.+)/,Ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hr(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return je(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+gs+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pc(e,"stretch")?Xg(je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_t(e,t+1)!==115)break;case 6444:switch(_t(e,hr(e)-3-(~Pc(e,"!important")&&10))){case 107:return je(e,":",":"+Ie)+e;case 101:return je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(_t(e,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+kt+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return Ie+e+kt+je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+kt+je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+kt+je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+kt+e+e}return e}var T6=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Ac:t.return=Xg(t.value,t.length);break;case Bg:return oi([Fa(t,{value:je(t.value,"@","@"+Ie)})],i);case Oc:if(t.length)return n6(t.props,function(a){switch(r6(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oi([Fa(t,{props:[je(a,/:(read-\w+)/,":"+gs+"$1")]})],i);case"::placeholder":return oi([Fa(t,{props:[je(a,/:(plac\w+)/,":"+Ie+"input-$1")]}),Fa(t,{props:[je(a,/:(plac\w+)/,":"+gs+"$1")]}),Fa(t,{props:[je(a,/:(plac\w+)/,kt+"input-$1")]})],i)}return""})}},_6=[T6],k6=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
72
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||_6;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)a[y[b]]=!0;s.push(p)});var u,l=[y6,b6];process.env.NODE_ENV!=="production"&&l.push(C6({get compat(){return g.compat}}),E6);{var c,f=[d6,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==Mc&&c.insert(p.value+"{}"))}:p6(function(p){c.insert(p)})],d=h6(l.concat(i,f)),h=function(y){return oi(c6(y),d)};u=function(y,b,x,C){c=x,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(c={insert:function(w){x.insert(w+b.map)}}),h(y?y+"{"+b.styles+"}":b.styles),C&&(g.inserted[b.name]=!0)}}var g={key:r,sheet:new XS({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return g.sheet.hydrate(s),g};let Fc;typeof document=="object"&&(Fc=k6({key:"css",prepend:!0}));function Zg(e){const{injectFirst:t,children:r}=e;return t&&Fc?v.jsx(vu.CacheProvider,{value:Fc,children:r}):r}process.env.NODE_ENV!=="production"&&(Zg.propTypes={children:M.node,injectFirst:M.bool});/**
73
73
  * @mui/styled-engine v5.14.11
74
74
  *
75
75
  * @license MIT
76
76
  * This source code is licensed under the MIT license found in the
77
77
  * LICENSE file in the root directory of this source tree.
78
78
  */function M6(e,t){const r=S5(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
79
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const O6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},A6=["values","unit","step"],P6=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>we({},r,{[n.key]:n.val}),{})};function D6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=kr(e,A6),a=P6(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function l(d,h){const g=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(g!==-1&&typeof t[o[g]]=="number"?t[o[g]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1<o.length?l(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?u(o[h]):l(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return we({keys:o,values:a,up:s,down:u,between:l,only:c,not:f,unit:r},i)}const $6={borderRadius:4},Kr=process.env.NODE_ENV!=="production"?M.oneOfType([M.number,M.string,M.object,M.array]):{};function La(e,t){return t?_r(e,t,{clone:!1}):e}const Ic={xs:0,sm:600,md:900,lg:1200,xl:1536},Jg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ic[e]}px)`};function Mr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Jg;return t.reduce((o,s,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||Jg;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||Ic).indexOf(s)!==-1){const u=a.up(s);o[u]=r(t[s],s)}else{const u=s;o[u]=t[u]}return o},{})}return r(t)}function F6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function I6(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Ss(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Es(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Ss(e,r)||n,t&&(i=t(i,n,e)),i}function He(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],u=o.theme,l=Ss(u,n)||{};return Mr(o,s,f=>{let d=Es(l,i,f);return f===d&&typeof f=="string"&&(d=Es(l,i,`${t}${f==="default"?"":ni(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Kr}:{},a.filterProps=[t],a}function j6(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const L6={m:"margin",p:"padding"},R6={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},e1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},N6=j6(e=>{if(e.length>2)if(e1[e])e=e1[e];else return[e];const[t,r]=e.split(""),n=L6[t],i=R6[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ts=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_s=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],B6=[...Ts,..._s];function Ra(e,t,r,n){var i;const a=(i=Ss(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),a*o):Array.isArray(a)?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>a.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${o} > ${a.length-1}, you need to add the missing values.`].join(`
79
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const O6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},A6=["values","unit","step"],P6=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>we({},r,{[n.key]:n.val}),{})};function D6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=kr(e,A6),a=P6(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function l(d,h){const g=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(g!==-1&&typeof t[o[g]]=="number"?t[o[g]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1<o.length?l(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?u(o[h]):l(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return we({keys:o,values:a,up:s,down:u,between:l,only:c,not:f,unit:r},i)}const $6={borderRadius:4},Kr=process.env.NODE_ENV!=="production"?M.oneOfType([M.number,M.string,M.object,M.array]):{};function La(e,t){return t?_r(e,t,{clone:!1}):e}const Ic={xs:0,sm:600,md:900,lg:1200,xl:1536},Qg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ic[e]}px)`};function Mr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Qg;return t.reduce((o,s,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||Qg;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||Ic).indexOf(s)!==-1){const u=a.up(s);o[u]=r(t[s],s)}else{const u=s;o[u]=t[u]}return o},{})}return r(t)}function F6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function I6(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Ss(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Es(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Ss(e,r)||n,t&&(i=t(i,n,e)),i}function He(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],u=o.theme,l=Ss(u,n)||{};return Mr(o,s,f=>{let d=Es(l,i,f);return f===d&&typeof f=="string"&&(d=Es(l,i,`${t}${f==="default"?"":ni(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Kr}:{},a.filterProps=[t],a}function j6(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const L6={m:"margin",p:"padding"},R6={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},N6=j6(e=>{if(e.length>2)if(Jg[e])e=Jg[e];else return[e];const[t,r]=e.split(""),n=L6[t],i=R6[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ts=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_s=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],B6=[...Ts,..._s];function Ra(e,t,r,n){var i;const a=(i=Ss(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),a*o):Array.isArray(a)?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>a.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${o} > ${a.length-1}, you need to add the missing values.`].join(`
80
80
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
81
81
  `))),a[o]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
82
- `)),()=>{})}function t1(e){return Ra(e,"spacing",8,"spacing")}function Na(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function V6(e,t){return r=>e.reduce((n,i)=>(n[i]=Na(t,r),n),{})}function z6(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=N6(r),a=V6(i,n),o=e[r];return Mr(e,o,a)}function r1(e,t){const r=t1(e.theme);return Object.keys(e).map(n=>z6(e,t,n,r)).reduce(La,{})}function ft(e){return r1(e,Ts)}ft.propTypes=process.env.NODE_ENV!=="production"?Ts.reduce((e,t)=>(e[t]=Kr,e),{}):{},ft.filterProps=Ts;function dt(e){return r1(e,_s)}dt.propTypes=process.env.NODE_ENV!=="production"?_s.reduce((e,t)=>(e[t]=Kr,e),{}):{},dt.filterProps=_s,process.env.NODE_ENV!=="production"&&B6.reduce((e,t)=>(e[t]=Kr,e),{});function W6(e=8){if(e.mui)return e;const t=t1({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function ks(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?La(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function gr(e){return typeof e!="number"?e:`${e}px solid`}const H6=He({prop:"border",themeKey:"borders",transform:gr}),U6=He({prop:"borderTop",themeKey:"borders",transform:gr}),Y6=He({prop:"borderRight",themeKey:"borders",transform:gr}),G6=He({prop:"borderBottom",themeKey:"borders",transform:gr}),q6=He({prop:"borderLeft",themeKey:"borders",transform:gr}),K6=He({prop:"borderColor",themeKey:"palette"}),X6=He({prop:"borderTopColor",themeKey:"palette"}),Z6=He({prop:"borderRightColor",themeKey:"palette"}),Q6=He({prop:"borderBottomColor",themeKey:"palette"}),J6=He({prop:"borderLeftColor",themeKey:"palette"}),Ms=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ra(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Na(t,n)});return Mr(e,e.borderRadius,r)}return null};Ms.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Kr}:{},Ms.filterProps=["borderRadius"],ks(H6,U6,Y6,G6,q6,K6,X6,Z6,Q6,J6,Ms);const Os=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ra(e.theme,"spacing",8,"gap"),r=n=>({gap:Na(t,n)});return Mr(e,e.gap,r)}return null};Os.propTypes=process.env.NODE_ENV!=="production"?{gap:Kr}:{},Os.filterProps=["gap"];const As=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ra(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Na(t,n)});return Mr(e,e.columnGap,r)}return null};As.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Kr}:{},As.filterProps=["columnGap"];const Ps=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ra(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Na(t,n)});return Mr(e,e.rowGap,r)}return null};Ps.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Kr}:{},Ps.filterProps=["rowGap"];const eE=He({prop:"gridColumn"}),tE=He({prop:"gridRow"}),rE=He({prop:"gridAutoFlow"}),nE=He({prop:"gridAutoColumns"}),iE=He({prop:"gridAutoRows"}),aE=He({prop:"gridTemplateColumns"}),oE=He({prop:"gridTemplateRows"}),sE=He({prop:"gridTemplateAreas"}),lE=He({prop:"gridArea"});ks(Os,As,Ps,eE,tE,rE,nE,iE,aE,oE,sE,lE);function si(e,t){return t==="grey"?t:e}const uE=He({prop:"color",themeKey:"palette",transform:si}),cE=He({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:si}),fE=He({prop:"backgroundColor",themeKey:"palette",transform:si});ks(uE,cE,fE);function zt(e){return e<=1&&e!==0?`${e*100}%`:e}const dE=He({prop:"width",transform:zt}),jc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ic[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:zt(r)}};return Mr(e,e.maxWidth,t)}return null};jc.filterProps=["maxWidth"];const hE=He({prop:"minWidth",transform:zt}),pE=He({prop:"height",transform:zt}),gE=He({prop:"maxHeight",transform:zt}),mE=He({prop:"minHeight",transform:zt});He({prop:"size",cssProperty:"width",transform:zt}),He({prop:"size",cssProperty:"height",transform:zt});const vE=He({prop:"boxSizing"});ks(dE,jc,hE,pE,gE,mE,vE);const Lc={border:{themeKey:"borders",transform:gr},borderTop:{themeKey:"borders",transform:gr},borderRight:{themeKey:"borders",transform:gr},borderBottom:{themeKey:"borders",transform:gr},borderLeft:{themeKey:"borders",transform:gr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ms},color:{themeKey:"palette",transform:si},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:si},backgroundColor:{themeKey:"palette",transform:si},p:{style:dt},pt:{style:dt},pr:{style:dt},pb:{style:dt},pl:{style:dt},px:{style:dt},py:{style:dt},padding:{style:dt},paddingTop:{style:dt},paddingRight:{style:dt},paddingBottom:{style:dt},paddingLeft:{style:dt},paddingX:{style:dt},paddingY:{style:dt},paddingInline:{style:dt},paddingInlineStart:{style:dt},paddingInlineEnd:{style:dt},paddingBlock:{style:dt},paddingBlockStart:{style:dt},paddingBlockEnd:{style:dt},m:{style:ft},mt:{style:ft},mr:{style:ft},mb:{style:ft},ml:{style:ft},mx:{style:ft},my:{style:ft},margin:{style:ft},marginTop:{style:ft},marginRight:{style:ft},marginBottom:{style:ft},marginLeft:{style:ft},marginX:{style:ft},marginY:{style:ft},marginInline:{style:ft},marginInlineStart:{style:ft},marginInlineEnd:{style:ft},marginBlock:{style:ft},marginBlockStart:{style:ft},marginBlockEnd:{style:ft},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Os},rowGap:{style:Ps},columnGap:{style:As},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zt},maxWidth:{style:jc},minWidth:{transform:zt},height:{transform:zt},maxHeight:{transform:zt},minHeight:{transform:zt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yE(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function bE(e,t){return typeof e=="function"?e(t):e}function xE(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=Ss(i,l)||{};return f?f(o):Mr(o,n,g=>{let p=Es(d,c,g);return g===p&&typeof g=="string"&&(p=Es(d,c,`${r}${g==="default"?"":ni(g)}`,g)),u===!1?p:{[u]:p}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:Lc;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=F6(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const g=bE(l[h],a);if(g!=null)if(typeof g=="object")if(o[h])d=La(d,e(h,g,a,o));else{const p=Mr({theme:a},g,y=>({[h]:y}));yE(p,g)?d[h]=t({sx:g,theme:a}):d=La(d,p)}else d=La(d,e(h,g,a,o))}),I6(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const n1=xE();n1.filterProps=["sx"];const Rc=n1,wE=["breakpoints","palette","spacing","shape"];function Nc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=kr(e,wE),s=D6(r),u=W6(i);let l=_r({breakpoints:s,direction:"ltr",components:{},palette:we({mode:"light"},n),spacing:u,shape:we({},$6,a)},o);return l=t.reduce((c,f)=>_r(c,f),l),l.unstable_sxConfig=we({},Lc,o==null?void 0:o.unstable_sxConfig),l.unstable_sx=function(f){return Rc({sx:f,theme:this})},l}function CE(e){return Object.keys(e).length===0}function Bc(e=null){const t=pe.useContext(vu.ThemeContext);return!t||CE(t)?e:t}const SE=Nc();function EE(e=SE){return Bc(e)}const TE=["variant"];function i1(e){return e.length===0}function a1(e){const{variant:t}=e,r=kr(e,TE);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=i1(n)?e[i]:ni(e[i]):n+=`${i1(n)?i:ni(i)}${ni(e[i].toString())}`}),n}const _E=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function kE(e){return Object.keys(e).length===0}function ME(e){return typeof e=="string"&&e.charCodeAt(0)>96}const OE=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,AE=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=a1(i.props);n[a]=i.style}),n},PE=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{a[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&o.push(t[a1(u.props)])}),o};function Ds(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const DE=Nc(),o1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ba({defaultTheme:e,theme:t,themeId:r}){return kE(t)?e:t[r]||t}function $E(e){return e?(t,r)=>r[e]:null}function FE(e={}){const{themeId:t,defaultTheme:r=DE,rootShouldForwardProp:n=Ds,slotShouldForwardProp:i=Ds}=e,a=o=>Rc(we({},o,{theme:Ba(we({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{O6(o,k=>k.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:d=$E(o1(l))}=s,h=kr(s,_E),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,p=f||!1;let y;process.env.NODE_ENV!=="production"&&u&&(y=`${u}-${o1(l||"Root")}`);let b=Ds;l==="Root"||l==="root"?b=n:l?b=i:ME(o)&&(b=void 0);const x=M6(o,we({shouldForwardProp:b,label:y},h)),C=(k,...w)=>{const _=w?w.map(F=>typeof F=="function"&&F.__emotion_real!==F?Z=>F(we({},Z,{theme:Ba(we({},Z,{defaultTheme:r,themeId:t}))})):F):[];let T=k;u&&d&&_.push(F=>{const Z=Ba(we({},F,{defaultTheme:r,themeId:t})),be=OE(u,Z);if(be){const oe={};return Object.entries(be).forEach(([Q,H])=>{oe[Q]=typeof H=="function"?H(we({},F,{theme:Z})):H}),d(F,oe)}return null}),u&&!g&&_.push(F=>{const Z=Ba(we({},F,{defaultTheme:r,themeId:t}));return PE(F,AE(u,Z),Z,u)}),p||_.push(a);const O=_.length-w.length;if(Array.isArray(k)&&O>0){const F=new Array(O).fill("");T=[...k,...F],T.raw=[...k.raw,...F]}else typeof k=="function"&&k.__emotion_real!==k&&(T=F=>k(we({},F,{theme:Ba(we({},F,{defaultTheme:r,themeId:t}))})));const P=x(T,..._);if(process.env.NODE_ENV!=="production"){let F;u&&(F=`${u}${ni(l||"")}`),F===void 0&&(F=`Styled(${WS(o)})`),P.displayName=F}return o.muiName&&(P.muiName=o.muiName),P};return x.withConfig&&(C.withConfig=x.withConfig),C}}function IE(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ng(t.components[r].defaultProps,n)}function Vc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function jE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function yn(e){if(e.type)return e;if(e.charAt(0)==="#")return yn(jE(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
82
+ `)),()=>{})}function e1(e){return Ra(e,"spacing",8,"spacing")}function Na(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function V6(e,t){return r=>e.reduce((n,i)=>(n[i]=Na(t,r),n),{})}function z6(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=N6(r),a=V6(i,n),o=e[r];return Mr(e,o,a)}function t1(e,t){const r=e1(e.theme);return Object.keys(e).map(n=>z6(e,t,n,r)).reduce(La,{})}function ft(e){return t1(e,Ts)}ft.propTypes=process.env.NODE_ENV!=="production"?Ts.reduce((e,t)=>(e[t]=Kr,e),{}):{},ft.filterProps=Ts;function dt(e){return t1(e,_s)}dt.propTypes=process.env.NODE_ENV!=="production"?_s.reduce((e,t)=>(e[t]=Kr,e),{}):{},dt.filterProps=_s,process.env.NODE_ENV!=="production"&&B6.reduce((e,t)=>(e[t]=Kr,e),{});function W6(e=8){if(e.mui)return e;const t=e1({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function ks(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?La(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function gr(e){return typeof e!="number"?e:`${e}px solid`}const H6=He({prop:"border",themeKey:"borders",transform:gr}),U6=He({prop:"borderTop",themeKey:"borders",transform:gr}),Y6=He({prop:"borderRight",themeKey:"borders",transform:gr}),G6=He({prop:"borderBottom",themeKey:"borders",transform:gr}),q6=He({prop:"borderLeft",themeKey:"borders",transform:gr}),K6=He({prop:"borderColor",themeKey:"palette"}),X6=He({prop:"borderTopColor",themeKey:"palette"}),Z6=He({prop:"borderRightColor",themeKey:"palette"}),Q6=He({prop:"borderBottomColor",themeKey:"palette"}),J6=He({prop:"borderLeftColor",themeKey:"palette"}),Ms=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ra(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Na(t,n)});return Mr(e,e.borderRadius,r)}return null};Ms.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Kr}:{},Ms.filterProps=["borderRadius"],ks(H6,U6,Y6,G6,q6,K6,X6,Z6,Q6,J6,Ms);const Os=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ra(e.theme,"spacing",8,"gap"),r=n=>({gap:Na(t,n)});return Mr(e,e.gap,r)}return null};Os.propTypes=process.env.NODE_ENV!=="production"?{gap:Kr}:{},Os.filterProps=["gap"];const As=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ra(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Na(t,n)});return Mr(e,e.columnGap,r)}return null};As.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Kr}:{},As.filterProps=["columnGap"];const Ps=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ra(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Na(t,n)});return Mr(e,e.rowGap,r)}return null};Ps.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Kr}:{},Ps.filterProps=["rowGap"];const eE=He({prop:"gridColumn"}),tE=He({prop:"gridRow"}),rE=He({prop:"gridAutoFlow"}),nE=He({prop:"gridAutoColumns"}),iE=He({prop:"gridAutoRows"}),aE=He({prop:"gridTemplateColumns"}),oE=He({prop:"gridTemplateRows"}),sE=He({prop:"gridTemplateAreas"}),lE=He({prop:"gridArea"});ks(Os,As,Ps,eE,tE,rE,nE,iE,aE,oE,sE,lE);function si(e,t){return t==="grey"?t:e}const uE=He({prop:"color",themeKey:"palette",transform:si}),cE=He({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:si}),fE=He({prop:"backgroundColor",themeKey:"palette",transform:si});ks(uE,cE,fE);function zt(e){return e<=1&&e!==0?`${e*100}%`:e}const dE=He({prop:"width",transform:zt}),jc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ic[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:zt(r)}};return Mr(e,e.maxWidth,t)}return null};jc.filterProps=["maxWidth"];const hE=He({prop:"minWidth",transform:zt}),pE=He({prop:"height",transform:zt}),gE=He({prop:"maxHeight",transform:zt}),mE=He({prop:"minHeight",transform:zt});He({prop:"size",cssProperty:"width",transform:zt}),He({prop:"size",cssProperty:"height",transform:zt});const vE=He({prop:"boxSizing"});ks(dE,jc,hE,pE,gE,mE,vE);const Lc={border:{themeKey:"borders",transform:gr},borderTop:{themeKey:"borders",transform:gr},borderRight:{themeKey:"borders",transform:gr},borderBottom:{themeKey:"borders",transform:gr},borderLeft:{themeKey:"borders",transform:gr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ms},color:{themeKey:"palette",transform:si},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:si},backgroundColor:{themeKey:"palette",transform:si},p:{style:dt},pt:{style:dt},pr:{style:dt},pb:{style:dt},pl:{style:dt},px:{style:dt},py:{style:dt},padding:{style:dt},paddingTop:{style:dt},paddingRight:{style:dt},paddingBottom:{style:dt},paddingLeft:{style:dt},paddingX:{style:dt},paddingY:{style:dt},paddingInline:{style:dt},paddingInlineStart:{style:dt},paddingInlineEnd:{style:dt},paddingBlock:{style:dt},paddingBlockStart:{style:dt},paddingBlockEnd:{style:dt},m:{style:ft},mt:{style:ft},mr:{style:ft},mb:{style:ft},ml:{style:ft},mx:{style:ft},my:{style:ft},margin:{style:ft},marginTop:{style:ft},marginRight:{style:ft},marginBottom:{style:ft},marginLeft:{style:ft},marginX:{style:ft},marginY:{style:ft},marginInline:{style:ft},marginInlineStart:{style:ft},marginInlineEnd:{style:ft},marginBlock:{style:ft},marginBlockStart:{style:ft},marginBlockEnd:{style:ft},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Os},rowGap:{style:Ps},columnGap:{style:As},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zt},maxWidth:{style:jc},minWidth:{transform:zt},height:{transform:zt},maxHeight:{transform:zt},minHeight:{transform:zt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yE(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function bE(e,t){return typeof e=="function"?e(t):e}function xE(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=Ss(i,l)||{};return f?f(o):Mr(o,n,g=>{let p=Es(d,c,g);return g===p&&typeof g=="string"&&(p=Es(d,c,`${r}${g==="default"?"":ni(g)}`,g)),u===!1?p:{[u]:p}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:Lc;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=F6(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const g=bE(l[h],a);if(g!=null)if(typeof g=="object")if(o[h])d=La(d,e(h,g,a,o));else{const p=Mr({theme:a},g,y=>({[h]:y}));yE(p,g)?d[h]=t({sx:g,theme:a}):d=La(d,p)}else d=La(d,e(h,g,a,o))}),I6(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const r1=xE();r1.filterProps=["sx"];const Rc=r1,wE=["breakpoints","palette","spacing","shape"];function Nc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=kr(e,wE),s=D6(r),u=W6(i);let l=_r({breakpoints:s,direction:"ltr",components:{},palette:we({mode:"light"},n),spacing:u,shape:we({},$6,a)},o);return l=t.reduce((c,f)=>_r(c,f),l),l.unstable_sxConfig=we({},Lc,o==null?void 0:o.unstable_sxConfig),l.unstable_sx=function(f){return Rc({sx:f,theme:this})},l}function CE(e){return Object.keys(e).length===0}function Bc(e=null){const t=pe.useContext(vu.ThemeContext);return!t||CE(t)?e:t}const SE=Nc();function EE(e=SE){return Bc(e)}const TE=["variant"];function n1(e){return e.length===0}function i1(e){const{variant:t}=e,r=kr(e,TE);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=n1(n)?e[i]:ni(e[i]):n+=`${n1(n)?i:ni(i)}${ni(e[i].toString())}`}),n}const _E=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function kE(e){return Object.keys(e).length===0}function ME(e){return typeof e=="string"&&e.charCodeAt(0)>96}const OE=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,AE=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=i1(i.props);n[a]=i.style}),n},PE=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{a[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&o.push(t[i1(u.props)])}),o};function Ds(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const DE=Nc(),a1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ba({defaultTheme:e,theme:t,themeId:r}){return kE(t)?e:t[r]||t}function $E(e){return e?(t,r)=>r[e]:null}function FE(e={}){const{themeId:t,defaultTheme:r=DE,rootShouldForwardProp:n=Ds,slotShouldForwardProp:i=Ds}=e,a=o=>Rc(we({},o,{theme:Ba(we({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{O6(o,k=>k.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:d=$E(a1(l))}=s,h=kr(s,_E),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,p=f||!1;let y;process.env.NODE_ENV!=="production"&&u&&(y=`${u}-${a1(l||"Root")}`);let b=Ds;l==="Root"||l==="root"?b=n:l?b=i:ME(o)&&(b=void 0);const x=M6(o,we({shouldForwardProp:b,label:y},h)),C=(k,...w)=>{const _=w?w.map(F=>typeof F=="function"&&F.__emotion_real!==F?Z=>F(we({},Z,{theme:Ba(we({},Z,{defaultTheme:r,themeId:t}))})):F):[];let T=k;u&&d&&_.push(F=>{const Z=Ba(we({},F,{defaultTheme:r,themeId:t})),be=OE(u,Z);if(be){const oe={};return Object.entries(be).forEach(([Q,H])=>{oe[Q]=typeof H=="function"?H(we({},F,{theme:Z})):H}),d(F,oe)}return null}),u&&!g&&_.push(F=>{const Z=Ba(we({},F,{defaultTheme:r,themeId:t}));return PE(F,AE(u,Z),Z,u)}),p||_.push(a);const O=_.length-w.length;if(Array.isArray(k)&&O>0){const F=new Array(O).fill("");T=[...k,...F],T.raw=[...k.raw,...F]}else typeof k=="function"&&k.__emotion_real!==k&&(T=F=>k(we({},F,{theme:Ba(we({},F,{defaultTheme:r,themeId:t}))})));const P=x(T,..._);if(process.env.NODE_ENV!=="production"){let F;u&&(F=`${u}${ni(l||"")}`),F===void 0&&(F=`Styled(${WS(o)})`),P.displayName=F}return o.muiName&&(P.muiName=o.muiName),P};return x.withConfig&&(C.withConfig=x.withConfig),C}}function IE(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Rg(t.components[r].defaultProps,n)}function Vc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function jE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function yn(e){if(e.type)return e;if(e.charAt(0)==="#")return yn(jE(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
83
83
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ri(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
84
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ri(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function $s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function LE(e){e=yn(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(l,c=(l+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),$s({type:s,values:u})}function s1(e){e=yn(e);let t=e.type==="hsl"||e.type==="hsla"?yn(LE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l1(e,t){const r=s1(e),n=s1(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function L(e,t){return e=yn(e),t=Vc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$s(e)}function zc(e,t){if(e=yn(e),t=Vc(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return $s(e)}function Wc(e,t){if(e=yn(e),t=Vc(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return $s(e)}const u1=pe.createContext(null);process.env.NODE_ENV!=="production"&&(u1.displayName="ThemeContext");const c1=u1;function f1(){const e=pe.useContext(c1);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e}const RE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function NE(e,t){if(typeof t=="function"){const r=t(e);return process.env.NODE_ENV!=="production"&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
85
- `))),r}return we({},e,t)}function Fs(e){const{children:t,theme:r}=e,n=f1();process.env.NODE_ENV!=="production"&&n===null&&typeof r=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
86
- `));const i=pe.useMemo(()=>{const a=n===null?r:NE(n,r);return a!=null&&(a[RE]=n!==null),a},[r,n]);return v.jsx(c1.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:M.node,theme:M.oneOfType([M.object,M.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Fs.propTypes=$g(Fs.propTypes));const d1={};function h1(e,t,r,n=!1){return pe.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?we({},t,{[e]:a}):a;return n?()=>o:o}return e?we({},t,{[e]:r}):we({},t,r)},[e,t,r,n])}function Is(e){const{children:t,theme:r,themeId:n}=e,i=Bc(d1),a=f1()||d1;process.env.NODE_ENV!=="production"&&(i===null&&typeof r=="function"||n&&i&&!i[n]&&typeof r=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
87
- `));const o=h1(n,i,r),s=h1(n,a,r,!0);return v.jsx(Fs,{theme:s,children:v.jsx(vu.ThemeContext.Provider,{value:o,children:t})})}process.env.NODE_ENV!=="production"&&(Is.propTypes={children:M.node,theme:M.oneOfType([M.func,M.object]).isRequired,themeId:M.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Is.propTypes=$g(Is.propTypes));function BE(e,t){return we({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Va={black:"#000",white:"#fff"},VE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},li={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ui={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},za={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ci={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},di={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},zE=["mode","contrastThreshold","tonalOffset"],p1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Va.white,default:Va.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hc={text:{primary:Va.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Va.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function g1(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Wc(e.main,i):t==="dark"&&(e.dark=zc(e.main,a)))}function WE(e="light"){return e==="dark"?{main:ci[200],light:ci[50],dark:ci[400]}:{main:ci[700],light:ci[400],dark:ci[800]}}function HE(e="light"){return e==="dark"?{main:li[200],light:li[50],dark:li[400]}:{main:li[500],light:li[300],dark:li[700]}}function UE(e="light"){return e==="dark"?{main:ui[500],light:ui[300],dark:ui[700]}:{main:ui[700],light:ui[400],dark:ui[800]}}function YE(e="light"){return e==="dark"?{main:fi[400],light:fi[300],dark:fi[700]}:{main:fi[700],light:fi[500],dark:fi[900]}}function GE(e="light"){return e==="dark"?{main:di[400],light:di[300],dark:di[700]}:{main:di[800],light:di[500],dark:di[900]}}function qE(e="light"){return e==="dark"?{main:za[400],light:za[300],dark:za[700]}:{main:"#ed6c02",light:za[500],dark:za[900]}}function KE(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=kr(e,zE),a=e.primary||WE(t),o=e.secondary||HE(t),s=e.error||UE(t),u=e.info||YE(t),l=e.success||GE(t),c=e.warning||qE(t);function f(p){const y=l1(p,Hc.text.primary)>=r?Hc.text.primary:p1.text.primary;if(process.env.NODE_ENV!=="production"){const b=l1(p,y);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${y} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
84
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ri(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function $s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function LE(e){e=yn(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(l,c=(l+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),$s({type:s,values:u})}function o1(e){e=yn(e);let t=e.type==="hsl"||e.type==="hsla"?yn(LE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s1(e,t){const r=o1(e),n=o1(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function L(e,t){return e=yn(e),t=Vc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$s(e)}function zc(e,t){if(e=yn(e),t=Vc(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return $s(e)}function Wc(e,t){if(e=yn(e),t=Vc(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return $s(e)}const l1=pe.createContext(null);process.env.NODE_ENV!=="production"&&(l1.displayName="ThemeContext");const u1=l1;function c1(){const e=pe.useContext(u1);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e}const RE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function NE(e,t){if(typeof t=="function"){const r=t(e);return process.env.NODE_ENV!=="production"&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
85
+ `))),r}return we({},e,t)}function Fs(e){const{children:t,theme:r}=e,n=c1();process.env.NODE_ENV!=="production"&&n===null&&typeof r=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
86
+ `));const i=pe.useMemo(()=>{const a=n===null?r:NE(n,r);return a!=null&&(a[RE]=n!==null),a},[r,n]);return v.jsx(u1.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:M.node,theme:M.oneOfType([M.object,M.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Fs.propTypes=Dg(Fs.propTypes));const f1={};function d1(e,t,r,n=!1){return pe.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?we({},t,{[e]:a}):a;return n?()=>o:o}return e?we({},t,{[e]:r}):we({},t,r)},[e,t,r,n])}function Is(e){const{children:t,theme:r,themeId:n}=e,i=Bc(f1),a=c1()||f1;process.env.NODE_ENV!=="production"&&(i===null&&typeof r=="function"||n&&i&&!i[n]&&typeof r=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
87
+ `));const o=d1(n,i,r),s=d1(n,a,r,!0);return v.jsx(Fs,{theme:s,children:v.jsx(vu.ThemeContext.Provider,{value:o,children:t})})}process.env.NODE_ENV!=="production"&&(Is.propTypes={children:M.node,theme:M.oneOfType([M.func,M.object]).isRequired,themeId:M.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Is.propTypes=Dg(Is.propTypes));function BE(e,t){return we({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Va={black:"#000",white:"#fff"},VE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},li={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ui={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},za={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ci={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},di={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},zE=["mode","contrastThreshold","tonalOffset"],h1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Va.white,default:Va.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hc={text:{primary:Va.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Va.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function p1(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Wc(e.main,i):t==="dark"&&(e.dark=zc(e.main,a)))}function WE(e="light"){return e==="dark"?{main:ci[200],light:ci[50],dark:ci[400]}:{main:ci[700],light:ci[400],dark:ci[800]}}function HE(e="light"){return e==="dark"?{main:li[200],light:li[50],dark:li[400]}:{main:li[500],light:li[300],dark:li[700]}}function UE(e="light"){return e==="dark"?{main:ui[500],light:ui[300],dark:ui[700]}:{main:ui[700],light:ui[400],dark:ui[800]}}function YE(e="light"){return e==="dark"?{main:fi[400],light:fi[300],dark:fi[700]}:{main:fi[700],light:fi[500],dark:fi[900]}}function GE(e="light"){return e==="dark"?{main:di[400],light:di[300],dark:di[700]}:{main:di[800],light:di[500],dark:di[900]}}function qE(e="light"){return e==="dark"?{main:za[400],light:za[300],dark:za[700]}:{main:"#ed6c02",light:za[500],dark:za[900]}}function KE(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=kr(e,zE),a=e.primary||WE(t),o=e.secondary||HE(t),s=e.error||UE(t),u=e.info||YE(t),l=e.success||GE(t),c=e.warning||qE(t);function f(p){const y=s1(p,Hc.text.primary)>=r?Hc.text.primary:h1.text.primary;if(process.env.NODE_ENV!=="production"){const b=s1(p,y);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${y} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
88
88
  `))}return y}const d=({color:p,name:y,mainShade:b=500,lightShade:x=300,darkShade:C=700})=>{if(p=we({},p),!p.main&&p[b]&&(p.main=p[b]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
89
89
  The color object needs to have a \`main\` property or a \`${b}\` property.`:ri(11,y?` (${y})`:"",b));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
90
90
  \`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
@@ -99,14 +99,14 @@ const theme1 = createTheme({ palette: {
99
99
 
100
100
  const theme2 = createTheme({ palette: {
101
101
  primary: { main: green[500] },
102
- } });`:ri(12,y?` (${y})`:"",JSON.stringify(p.main)));return g1(p,"light",x,n),g1(p,"dark",C,n),p.contrastText||(p.contrastText=f(p.main)),p},h={dark:Hc,light:p1};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),_r(we({common:we({},Va),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:VE,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const XE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ZE(e){return Math.round(e*1e5)/1e5}const m1={textTransform:"uppercase"},v1='"Roboto", "Helvetica", "Arial", sans-serif';function QE(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=v1,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,d=kr(r,XE);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,g=f||(b=>`${b/l*h}rem`),p=(b,x,C,k,w)=>we({fontFamily:n,fontWeight:b,fontSize:g(x),lineHeight:C},n===v1?{letterSpacing:`${ZE(k/x)}em`}:{},w,c),y={h1:p(a,96,1.167,-1.5),h2:p(a,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(s,14,1.75,.4,m1),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,m1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _r(we({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:u},y),d,{clone:!1})}const JE=.2,e7=.14,t7=.12;function rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${JE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${e7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${t7})`].join(",")}const r7=["none",rt(0,2,1,-1,0,1,1,0,0,1,3,0),rt(0,3,1,-2,0,2,2,0,0,1,5,0),rt(0,3,3,-2,0,3,4,0,0,1,8,0),rt(0,2,4,-1,0,4,5,0,0,1,10,0),rt(0,3,5,-1,0,5,8,0,0,1,14,0),rt(0,3,5,-1,0,6,10,0,0,1,18,0),rt(0,4,5,-2,0,7,10,1,0,2,16,1),rt(0,5,5,-3,0,8,10,1,0,3,14,2),rt(0,5,6,-3,0,9,12,1,0,3,16,2),rt(0,6,6,-3,0,10,14,1,0,4,18,3),rt(0,6,7,-4,0,11,15,1,0,4,20,3),rt(0,7,8,-4,0,12,17,2,0,5,22,4),rt(0,7,8,-4,0,13,19,2,0,5,24,4),rt(0,7,9,-4,0,14,21,2,0,5,26,4),rt(0,8,9,-5,0,15,22,2,0,6,28,5),rt(0,8,10,-5,0,16,24,2,0,6,30,5),rt(0,8,11,-5,0,17,26,2,0,6,32,5),rt(0,9,11,-5,0,18,28,2,0,7,34,6),rt(0,9,12,-6,0,19,29,2,0,7,36,6),rt(0,10,13,-6,0,20,31,3,0,8,38,7),rt(0,10,13,-6,0,21,33,3,0,8,40,7),rt(0,10,14,-6,0,22,35,3,0,8,42,7),rt(0,11,14,-7,0,23,36,3,0,9,44,8),rt(0,11,15,-7,0,24,38,3,0,9,46,8)],n7=["duration","easing","delay"],i7={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},a7={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function y1(e){return`${Math.round(e)}ms`}function o7(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function s7(e){const t=we({},i7,e.easing),r=we({},a7,e.duration);return we({getAutoHeightDuration:o7,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:u=0}=a,l=kr(a,n7);if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(o)&&!c(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
103
- `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof o=="string"?o:y1(o)} ${s} ${typeof u=="string"?u:y1(u)}`).join(",")}},e,{easing:t,duration:r})}const l7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},u7=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Uc(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=kr(e,u7);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ri(18));const s=KE(n),u=Nc(e);let l=_r(u,{mixins:BE(u.breakpoints,r),palette:s,shadows:r7.slice(),typography:QE(s,a),transitions:s7(i),zIndex:we({},l7)});if(l=_r(l,o),l=t.reduce((c,f)=>_r(c,f),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,h)=>{let g;for(g in d){const p=d[g];if(c.indexOf(g)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const y=GS("",g);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
104
- `))}d[g]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=we({},Lc,o==null?void 0:o.unstable_sxConfig),l.unstable_sx=function(f){return Rc({sx:f,theme:this})},l}const b1=Uc();function hi(){const e=EE(b1);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e[ps]||e}const Xr=FE({themeId:ps,defaultTheme:b1,rootShouldForwardProp:e=>Ds(e)&&e!=="classes"}),c7=["theme"];function Yc(e){let{theme:t}=e,r=kr(e,c7);const n=t[ps];return v.jsx(Is,we({},r,{themeId:n?ps:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(Yc.propTypes={children:M.node,theme:M.oneOfType([M.object,M.func]).isRequired});function f7(e,t,r,n,i){const[a,o]=pe.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return HS(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&o(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),a}const x1=pe["useSyncExternalStore"];function d7(e,t,r,n,i){const a=pe.useCallback(()=>t,[t]),o=pe.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,i,r]),[s,u]=pe.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,r,e]);return x1(u,s,o)}function js(e,t={}){const r=Bc(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:s=!1}=IE({name:"MuiUseMediaQuery",props:t,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
105
- `));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(x1!==void 0?d7:f7)(u,i,a,o,s);return process.env.NODE_ENV!=="production"&&pe.useDebugValue({query:u,match:c}),c}const w1=(e,t,r)=>{const n=hi(),i=js(n.breakpoints.up(t)),a=js(n.breakpoints.down(t)),o=js(n.breakpoints.between(t,r)),s=js(n.breakpoints.only(t));return e==="up"?i:e==="down"?a:e==="between"?o:s},h7=({children:e,disableAnimatedMobile:t=!0,...r})=>w1("down","sm")&&t?v.jsx(E.Box,{...r,children:e}):v.jsx(E.Box,{component:Jt.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Bo(),...r,children:e}),p7=({animate:e,action:t=!1,children:r,...n})=>t?v.jsx(E.Box,{component:Jt.div,initial:!1,animate:e?"animate":"exit",variants:Bo(),...n,children:r}):v.jsx(E.Box,{component:Jt.div,initial:"initial",animate:"animate",exit:"exit",variants:Bo(),...n,children:r}),g7=()=>Promise.resolve().then(()=>iee).then(e=>e.default),Gc=({children:e})=>v.jsx(HC,{strict:!0,features:g7,children:v.jsxs(Jt.div,{style:{height:"100%"},children:[" ",e," "]})});function C1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=C1(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bn(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=C1(e))&&(n&&(n+=" "),n+=t);return n}let m7={data:""},v7=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||m7,y7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,b7=/\/\*[^]*?\*\/| +/g,S1=/\n+/g,xn=(e,t)=>{let r="",n="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":n+=a[1]=="f"?xn(o,a):a+"{"+xn(o,a[1]=="k"?"":t)+"}":typeof o=="object"?n+=xn(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,s):s?s+" "+u:u)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=xn.p?xn.p(a,o):a+":"+o+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Or={},E1=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+E1(e[r]);return t}return e},x7=(e,t,r,n,i)=>{let a=E1(e),o=Or[a]||(Or[a]=(u=>{let l=0,c=11;for(;l<u.length;)c=101*c+u.charCodeAt(l++)>>>0;return"go"+c})(a));if(!Or[o]){let u=a!==e?e:(l=>{let c,f,d=[{}];for(;c=y7.exec(l.replace(b7,""));)c[4]?d.shift():c[3]?(f=c[3].replace(S1," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(S1," ").trim();return d[0]})(e);Or[o]=xn(i?{["@keyframes "+o]:u}:u,r?"":"."+o)}let s=r&&Or.g?Or.g:null;return r&&(Or.g=Or[o]),((u,l,c,f)=>{f?l.data=l.data.replace(f,u):l.data.indexOf(u)===-1&&(l.data=c?u+l.data:l.data+u)})(Or[o],t,n,s),o},w7=(e,t,r)=>e.reduce((n,i,a)=>{let o=t[a];if(o&&o.call){let s=o(r),u=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=u?"."+u:s&&typeof s=="object"?s.props?"":xn(s,""):s===!1?"":s}return n+i+(o??"")},"");function qc(e){let t=this||{},r=e.call?e(t.p):e;return x7(r.unshift?r.raw?w7(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,v7(t.target),t.g,t.o,t.k)}qc.bind({g:1}),qc.bind({k:1});function T1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _1(e,t,r){return t&&T1(e.prototype,t),r&&T1(e,r),e}function Ge(){return Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ge.apply(this,arguments)}function k1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wa(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function M1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var O1=function(){return""},A1=m.createContext({enqueueSnackbar:O1,closeSnackbar:O1}),wn={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},P1=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Kc=function(t){return""+P1(t.vertical)+P1(t.horizontal)},Ls=function(t){return!!t||t===0},Rs="unmounted",pi="exited",gi="entering",Ha="entered",D1="exiting",Ns=function(e){k1(t,e);function t(n){var i;i=e.call(this,n)||this;var a=n.appear,o;return i.appearStatus=null,n.in?a?(o=pi,i.appearStatus=gi):o=Ha:n.unmountOnExit||n.mountOnEnter?o=Rs:o=pi,i.state={status:o},i.nextCallback=null,i}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Rs?{status:pi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==gi&&o!==Ha&&(a=gi):(o===gi||o===Ha)&&(a=D1)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a=i,o=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(o=i.exit,a=i.enter),{exit:o,enter:a}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===gi?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===pi&&this.setState({status:Rs})},r.performEnter=function(i){var a=this,o=this.props.enter,s=i,u=this.getTimeouts();if(!i&&!o){this.safeSetState({status:Ha},function(){a.props.onEntered&&a.props.onEntered(a.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:gi},function(){a.props.onEntering&&a.props.onEntering(a.node,s),a.onTransitionEnd(u.enter,function(){a.safeSetState({status:Ha},function(){a.props.onEntered&&a.props.onEntered(a.node,s)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts();if(!a){this.safeSetState({status:pi},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:D1},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:pi},function(){i.props.onExited&&i.props.onExited(i.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(){o&&(o=!1,a.nextCallback=null,i())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=i==null&&!this.props.addEndListener;if(!this.node||o){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Rs)return null;var a=this.props,o=a.children,s=Wa(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o(i,s)},_1(t,[{key:"node",get:function(){var i,a=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!a)throw new Error("notistack - Custom snackbar is not refForwarding");return a}}]),t}(m.Component);function mi(){}Ns.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mi,onEntering:mi,onEntered:mi,onExit:mi,onExiting:mi,onExited:mi};function $1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Xc(e,t){return m.useMemo(function(){return e==null&&t==null?null:function(r){$1(e,r),$1(t,r)}},[e,t])}function Bs(e){var t=e.timeout,r=e.style,n=r===void 0?{}:r,i=e.mode;return{duration:typeof t=="object"?t[i]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var Zc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},F1=function(t){t.scrollTop=t.scrollTop},I1=function(t){return Math.round(t)+"ms"};function vi(e,t){e===void 0&&(e=["all"]);var r=t||{},n=r.duration,i=n===void 0?300:n,a=r.easing,o=a===void 0?Zc.easeInOut:a,s=r.delay,u=s===void 0?0:s,l=Array.isArray(e)?e:[e];return l.map(function(c){var f=typeof i=="string"?i:I1(i),d=typeof u=="string"?u:I1(u);return c+" "+f+" "+o+" "+d}).join(",")}function C7(e){return e&&e.ownerDocument||document}function j1(e){var t=C7(e);return t.defaultView||window}function S7(e,t){t===void 0&&(t=166);var r;function n(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u=function(){e.apply(i,o)};clearTimeout(r),r=setTimeout(u,t)}return n.clear=function(){clearTimeout(r)},n}function E7(e,t){var r=t.getBoundingClientRect(),n=j1(t),i;if(t.fakeTransform)i=t.fakeTransform;else{var a=n.getComputedStyle(t);i=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var o=0,s=0;if(i&&i!=="none"&&typeof i=="string"){var u=i.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),s=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(n.innerWidth+o-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-o)+"px)";case"up":return"translateY("+(n.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}function Vs(e,t){if(t){var r=E7(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var L1=m.forwardRef(function(e,t){var r=e.children,n=e.direction,i=n===void 0?"down":n,a=e.in,o=e.style,s=e.timeout,u=s===void 0?0:s,l=e.onEnter,c=e.onEntered,f=e.onExit,d=e.onExited,h=Wa(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=m.useRef(null),p=Xc(r.ref,g),y=Xc(p,t),b=function(T,O){Vs(i,T),F1(T),l&&l(T,O)},x=function(T){var O=(o==null?void 0:o.transitionTimingFunction)||Zc.easeOut,P=Bs({timeout:u,mode:"enter",style:Ge({},o,{transitionTimingFunction:O})});T.style.webkitTransition=vi("-webkit-transform",P),T.style.transition=vi("transform",P),T.style.webkitTransform="none",T.style.transform="none"},C=function(T){var O=(o==null?void 0:o.transitionTimingFunction)||Zc.sharp,P=Bs({timeout:u,mode:"exit",style:Ge({},o,{transitionTimingFunction:O})});T.style.webkitTransition=vi("-webkit-transform",P),T.style.transition=vi("transform",P),Vs(i,T),f&&f(T)},k=function(T){T.style.webkitTransition="",T.style.transition="",d&&d(T)},w=m.useCallback(function(){g.current&&Vs(i,g.current)},[i]);return m.useEffect(function(){if(!(a||i==="down"||i==="right")){var _=S7(function(){g.current&&Vs(i,g.current)}),T=j1(g.current);return T.addEventListener("resize",_),function(){_.clear(),T.removeEventListener("resize",_)}}},[i,a]),m.useEffect(function(){a||w()},[a,w]),m.createElement(Ns,Object.assign({appear:!0,nodeRef:g,onEnter:b,onEntered:c,onEntering:x,onExit:C,onExited:k,in:a,timeout:u},h),function(_,T){return m.cloneElement(r,Ge({ref:y,style:Ge({visibility:_==="exited"&&!a?"hidden":void 0},o,{},r.props.style)},T))})});L1.displayName="Slide";var zs=function(t){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},T7=function(){return m.createElement(zs,null,m.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
102
+ } });`:ri(12,y?` (${y})`:"",JSON.stringify(p.main)));return p1(p,"light",x,n),p1(p,"dark",C,n),p.contrastText||(p.contrastText=f(p.main)),p},h={dark:Hc,light:h1};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),_r(we({common:we({},Va),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:VE,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const XE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ZE(e){return Math.round(e*1e5)/1e5}const g1={textTransform:"uppercase"},m1='"Roboto", "Helvetica", "Arial", sans-serif';function QE(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=m1,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,d=kr(r,XE);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,g=f||(b=>`${b/l*h}rem`),p=(b,x,C,k,w)=>we({fontFamily:n,fontWeight:b,fontSize:g(x),lineHeight:C},n===m1?{letterSpacing:`${ZE(k/x)}em`}:{},w,c),y={h1:p(a,96,1.167,-1.5),h2:p(a,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(s,14,1.75,.4,g1),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,g1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _r(we({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:u},y),d,{clone:!1})}const JE=.2,e7=.14,t7=.12;function rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${JE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${e7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${t7})`].join(",")}const r7=["none",rt(0,2,1,-1,0,1,1,0,0,1,3,0),rt(0,3,1,-2,0,2,2,0,0,1,5,0),rt(0,3,3,-2,0,3,4,0,0,1,8,0),rt(0,2,4,-1,0,4,5,0,0,1,10,0),rt(0,3,5,-1,0,5,8,0,0,1,14,0),rt(0,3,5,-1,0,6,10,0,0,1,18,0),rt(0,4,5,-2,0,7,10,1,0,2,16,1),rt(0,5,5,-3,0,8,10,1,0,3,14,2),rt(0,5,6,-3,0,9,12,1,0,3,16,2),rt(0,6,6,-3,0,10,14,1,0,4,18,3),rt(0,6,7,-4,0,11,15,1,0,4,20,3),rt(0,7,8,-4,0,12,17,2,0,5,22,4),rt(0,7,8,-4,0,13,19,2,0,5,24,4),rt(0,7,9,-4,0,14,21,2,0,5,26,4),rt(0,8,9,-5,0,15,22,2,0,6,28,5),rt(0,8,10,-5,0,16,24,2,0,6,30,5),rt(0,8,11,-5,0,17,26,2,0,6,32,5),rt(0,9,11,-5,0,18,28,2,0,7,34,6),rt(0,9,12,-6,0,19,29,2,0,7,36,6),rt(0,10,13,-6,0,20,31,3,0,8,38,7),rt(0,10,13,-6,0,21,33,3,0,8,40,7),rt(0,10,14,-6,0,22,35,3,0,8,42,7),rt(0,11,14,-7,0,23,36,3,0,9,44,8),rt(0,11,15,-7,0,24,38,3,0,9,46,8)],n7=["duration","easing","delay"],i7={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},a7={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function v1(e){return`${Math.round(e)}ms`}function o7(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function s7(e){const t=we({},i7,e.easing),r=we({},a7,e.duration);return we({getAutoHeightDuration:o7,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:u=0}=a,l=kr(a,n7);if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(o)&&!c(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
103
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof o=="string"?o:v1(o)} ${s} ${typeof u=="string"?u:v1(u)}`).join(",")}},e,{easing:t,duration:r})}const l7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},u7=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Uc(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=kr(e,u7);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ri(18));const s=KE(n),u=Nc(e);let l=_r(u,{mixins:BE(u.breakpoints,r),palette:s,shadows:r7.slice(),typography:QE(s,a),transitions:s7(i),zIndex:we({},l7)});if(l=_r(l,o),l=t.reduce((c,f)=>_r(c,f),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,h)=>{let g;for(g in d){const p=d[g];if(c.indexOf(g)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const y=GS("",g);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
104
+ `))}d[g]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=we({},Lc,o==null?void 0:o.unstable_sxConfig),l.unstable_sx=function(f){return Rc({sx:f,theme:this})},l}const y1=Uc();function hi(){const e=EE(y1);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e[ps]||e}const Xr=FE({themeId:ps,defaultTheme:y1,rootShouldForwardProp:e=>Ds(e)&&e!=="classes"}),c7=["theme"];function Yc(e){let{theme:t}=e,r=kr(e,c7);const n=t[ps];return v.jsx(Is,we({},r,{themeId:n?ps:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(Yc.propTypes={children:M.node,theme:M.oneOfType([M.object,M.func]).isRequired});function f7(e,t,r,n,i){const[a,o]=pe.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return HS(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&o(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),a}const b1=pe["useSyncExternalStore"];function d7(e,t,r,n,i){const a=pe.useCallback(()=>t,[t]),o=pe.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return a},[a,e,n,i,r]),[s,u]=pe.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,r,e]);return b1(u,s,o)}function js(e,t={}){const r=Bc(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:s=!1}=IE({name:"MuiUseMediaQuery",props:t,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
105
+ `));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(b1!==void 0?d7:f7)(u,i,a,o,s);return process.env.NODE_ENV!=="production"&&pe.useDebugValue({query:u,match:c}),c}const x1=(e,t,r)=>{const n=hi(),i=js(n.breakpoints.up(t)),a=js(n.breakpoints.down(t)),o=js(n.breakpoints.between(t,r)),s=js(n.breakpoints.only(t));return e==="up"?i:e==="down"?a:e==="between"?o:s},h7=({children:e,disableAnimatedMobile:t=!0,...r})=>x1("down","sm")&&t?v.jsx(E.Box,{...r,children:e}):v.jsx(E.Box,{component:Jt.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Bo(),...r,children:e}),p7=({animate:e,action:t=!1,children:r,...n})=>t?v.jsx(E.Box,{component:Jt.div,initial:!1,animate:e?"animate":"exit",variants:Bo(),...n,children:r}):v.jsx(E.Box,{component:Jt.div,initial:"initial",animate:"animate",exit:"exit",variants:Bo(),...n,children:r}),g7=()=>Promise.resolve().then(()=>iee).then(e=>e.default),w1=({children:e})=>v.jsx(HC,{strict:!0,features:g7,children:v.jsxs(Jt.div,{style:{height:"100%"},children:[" ",e," "]})});function C1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=C1(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bn(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=C1(e))&&(n&&(n+=" "),n+=t);return n}let m7={data:""},v7=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||m7,y7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,b7=/\/\*[^]*?\*\/| +/g,S1=/\n+/g,xn=(e,t)=>{let r="",n="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":n+=a[1]=="f"?xn(o,a):a+"{"+xn(o,a[1]=="k"?"":t)+"}":typeof o=="object"?n+=xn(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,s):s?s+" "+u:u)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=xn.p?xn.p(a,o):a+":"+o+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Or={},E1=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+E1(e[r]);return t}return e},x7=(e,t,r,n,i)=>{let a=E1(e),o=Or[a]||(Or[a]=(u=>{let l=0,c=11;for(;l<u.length;)c=101*c+u.charCodeAt(l++)>>>0;return"go"+c})(a));if(!Or[o]){let u=a!==e?e:(l=>{let c,f,d=[{}];for(;c=y7.exec(l.replace(b7,""));)c[4]?d.shift():c[3]?(f=c[3].replace(S1," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(S1," ").trim();return d[0]})(e);Or[o]=xn(i?{["@keyframes "+o]:u}:u,r?"":"."+o)}let s=r&&Or.g?Or.g:null;return r&&(Or.g=Or[o]),((u,l,c,f)=>{f?l.data=l.data.replace(f,u):l.data.indexOf(u)===-1&&(l.data=c?u+l.data:l.data+u)})(Or[o],t,n,s),o},w7=(e,t,r)=>e.reduce((n,i,a)=>{let o=t[a];if(o&&o.call){let s=o(r),u=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=u?"."+u:s&&typeof s=="object"?s.props?"":xn(s,""):s===!1?"":s}return n+i+(o??"")},"");function Gc(e){let t=this||{},r=e.call?e(t.p):e;return x7(r.unshift?r.raw?w7(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,v7(t.target),t.g,t.o,t.k)}Gc.bind({g:1}),Gc.bind({k:1});function T1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _1(e,t,r){return t&&T1(e.prototype,t),r&&T1(e,r),e}function Ge(){return Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ge.apply(this,arguments)}function k1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wa(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function M1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var O1=function(){return""},A1=m.createContext({enqueueSnackbar:O1,closeSnackbar:O1}),wn={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},P1=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},qc=function(t){return""+P1(t.vertical)+P1(t.horizontal)},Ls=function(t){return!!t||t===0},Rs="unmounted",pi="exited",gi="entering",Ha="entered",D1="exiting",Ns=function(e){k1(t,e);function t(n){var i;i=e.call(this,n)||this;var a=n.appear,o;return i.appearStatus=null,n.in?a?(o=pi,i.appearStatus=gi):o=Ha:n.unmountOnExit||n.mountOnEnter?o=Rs:o=pi,i.state={status:o},i.nextCallback=null,i}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Rs?{status:pi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==gi&&o!==Ha&&(a=gi):(o===gi||o===Ha)&&(a=D1)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a=i,o=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(o=i.exit,a=i.enter),{exit:o,enter:a}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===gi?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===pi&&this.setState({status:Rs})},r.performEnter=function(i){var a=this,o=this.props.enter,s=i,u=this.getTimeouts();if(!i&&!o){this.safeSetState({status:Ha},function(){a.props.onEntered&&a.props.onEntered(a.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:gi},function(){a.props.onEntering&&a.props.onEntering(a.node,s),a.onTransitionEnd(u.enter,function(){a.safeSetState({status:Ha},function(){a.props.onEntered&&a.props.onEntered(a.node,s)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts();if(!a){this.safeSetState({status:pi},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:D1},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:pi},function(){i.props.onExited&&i.props.onExited(i.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(){o&&(o=!1,a.nextCallback=null,i())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=i==null&&!this.props.addEndListener;if(!this.node||o){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Rs)return null;var a=this.props,o=a.children,s=Wa(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o(i,s)},_1(t,[{key:"node",get:function(){var i,a=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!a)throw new Error("notistack - Custom snackbar is not refForwarding");return a}}]),t}(m.Component);function mi(){}Ns.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mi,onEntering:mi,onEntered:mi,onExit:mi,onExiting:mi,onExited:mi};function $1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Kc(e,t){return m.useMemo(function(){return e==null&&t==null?null:function(r){$1(e,r),$1(t,r)}},[e,t])}function Bs(e){var t=e.timeout,r=e.style,n=r===void 0?{}:r,i=e.mode;return{duration:typeof t=="object"?t[i]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var Xc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},F1=function(t){t.scrollTop=t.scrollTop},I1=function(t){return Math.round(t)+"ms"};function vi(e,t){e===void 0&&(e=["all"]);var r=t||{},n=r.duration,i=n===void 0?300:n,a=r.easing,o=a===void 0?Xc.easeInOut:a,s=r.delay,u=s===void 0?0:s,l=Array.isArray(e)?e:[e];return l.map(function(c){var f=typeof i=="string"?i:I1(i),d=typeof u=="string"?u:I1(u);return c+" "+f+" "+o+" "+d}).join(",")}function C7(e){return e&&e.ownerDocument||document}function j1(e){var t=C7(e);return t.defaultView||window}function S7(e,t){t===void 0&&(t=166);var r;function n(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u=function(){e.apply(i,o)};clearTimeout(r),r=setTimeout(u,t)}return n.clear=function(){clearTimeout(r)},n}function E7(e,t){var r=t.getBoundingClientRect(),n=j1(t),i;if(t.fakeTransform)i=t.fakeTransform;else{var a=n.getComputedStyle(t);i=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var o=0,s=0;if(i&&i!=="none"&&typeof i=="string"){var u=i.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),s=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(n.innerWidth+o-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-o)+"px)";case"up":return"translateY("+(n.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}function Vs(e,t){if(t){var r=E7(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var L1=m.forwardRef(function(e,t){var r=e.children,n=e.direction,i=n===void 0?"down":n,a=e.in,o=e.style,s=e.timeout,u=s===void 0?0:s,l=e.onEnter,c=e.onEntered,f=e.onExit,d=e.onExited,h=Wa(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=m.useRef(null),p=Kc(r.ref,g),y=Kc(p,t),b=function(T,O){Vs(i,T),F1(T),l&&l(T,O)},x=function(T){var O=(o==null?void 0:o.transitionTimingFunction)||Xc.easeOut,P=Bs({timeout:u,mode:"enter",style:Ge({},o,{transitionTimingFunction:O})});T.style.webkitTransition=vi("-webkit-transform",P),T.style.transition=vi("transform",P),T.style.webkitTransform="none",T.style.transform="none"},C=function(T){var O=(o==null?void 0:o.transitionTimingFunction)||Xc.sharp,P=Bs({timeout:u,mode:"exit",style:Ge({},o,{transitionTimingFunction:O})});T.style.webkitTransition=vi("-webkit-transform",P),T.style.transition=vi("transform",P),Vs(i,T),f&&f(T)},k=function(T){T.style.webkitTransition="",T.style.transition="",d&&d(T)},w=m.useCallback(function(){g.current&&Vs(i,g.current)},[i]);return m.useEffect(function(){if(!(a||i==="down"||i==="right")){var _=S7(function(){g.current&&Vs(i,g.current)}),T=j1(g.current);return T.addEventListener("resize",_),function(){_.clear(),T.removeEventListener("resize",_)}}},[i,a]),m.useEffect(function(){a||w()},[a,w]),m.createElement(Ns,Object.assign({appear:!0,nodeRef:g,onEnter:b,onEntered:c,onEntering:x,onExit:C,onExited:k,in:a,timeout:u},h),function(_,T){return m.cloneElement(r,Ge({ref:y,style:Ge({visibility:_==="exited"&&!a?"hidden":void 0},o,{},r.props.style)},T))})});L1.displayName="Slide";var zs=function(t){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},T7=function(){return m.createElement(zs,null,m.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
106
106
  10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},_7=function(){return m.createElement(zs,null,m.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},k7=function(){return m.createElement(zs,null,m.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
107
107
  6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
108
108
  13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},M7=function(){return m.createElement(zs,null,m.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
109
- 0 22,12A10,10 0 0,0 12,2Z`}))},O7={default:void 0,success:m.createElement(T7,null),warning:m.createElement(_7,null),error:m.createElement(k7,null),info:m.createElement(M7,null)},Cn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:O7,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:L1,transitionDuration:{enter:225,exit:195}},A7=function(t,r){var n=function(a){return typeof a=="number"||a===null};return n(t)?t:n(r)?r:Cn.autoHideDuration},P7=function(t,r){var n=function(a,o){return o.some(function(s){return typeof a===s})};return n(t,["string","number"])?t:n(t,["object"])?Ge({},Cn.transitionDuration,{},n(r,["object"])&&r,{},t):n(r,["string","number"])?r:n(r,["object"])?Ge({},Cn.transitionDuration,{},r):Cn.transitionDuration},D7=function(t,r){return function(n,i){return i===void 0&&(i=!1),i?Ge({},Cn[n],{},r[n],{},t[n]):n==="autoHideDuration"?A7(t.autoHideDuration,r.autoHideDuration):n==="transitionDuration"?P7(t.transitionDuration,r.transitionDuration):t[n]||r[n]||Cn[n]}};function Ua(e){return Object.entries(e).reduce(function(t,r){var n,i=r[0],a=r[1];return Ge({},t,(n={},n[i]=qc(a),n))},{})}var yi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},R1=Ua({root:{height:0},entered:{height:"auto"}}),Qc="0px",Jc=175,N1=m.forwardRef(function(e,t){var r=e.children,n=e.in,i=e.onExited,a=m.useRef(null),o=m.useRef(null),s=Xc(t,o),u=function(){return a.current?a.current.clientHeight:0},l=function(p){p.style.height=Qc},c=function(p){var y=u(),b=Bs({timeout:Jc,mode:"enter"}),x=b.duration,C=b.easing;p.style.transitionDuration=typeof x=="string"?x:x+"ms",p.style.height=y+"px",p.style.transitionTimingFunction=C||""},f=function(p){p.style.height="auto"},d=function(p){p.style.height=u()+"px"},h=function(p){F1(p);var y=Bs({timeout:Jc,mode:"exit"}),b=y.duration,x=y.easing;p.style.transitionDuration=typeof b=="string"?b:b+"ms",p.style.height=Qc,p.style.transitionTimingFunction=x||""};return m.createElement(Ns,{in:n,unmountOnExit:!0,onEnter:l,onEntered:f,onEntering:c,onExit:d,onExited:i,onExiting:h,nodeRef:o,timeout:Jc},function(g,p){return m.createElement("div",Object.assign({ref:s,className:bn(R1.root,g==="entered"&&R1.entered),style:Ge({pointerEvents:"all",overflow:"hidden",minHeight:Qc,transition:vi("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!n&&{visibility:"hidden"})},p),m.createElement("div",{ref:a,className:yi.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});N1.displayName="Collapse";var B1={right:"left",left:"right",bottom:"up",top:"down"},$7=function(t){return t.horizontal!=="center"?B1[t.horizontal]:B1[t.vertical]},F7=function(t){return"anchorOrigin"+Kc(t)},I7=function(t){t===void 0&&(t={});var r={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(n){return!r[n]}).reduce(function(n,i){var a;return Ge({},n,(a={},a[i]=t[i],a))},{})},j7=function(){};function Ya(e,t){return e.reduce(function(r,n){return n==null?r:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u=[].concat(o);t&&u.indexOf(t)===-1&&u.push(t),r.apply(this,u),n.apply(this,u)}},j7)}var L7=typeof window<"u"?m.useLayoutEffect:m.useEffect;function V1(e){var t=m.useRef(e);return L7(function(){t.current=e}),m.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var z1=m.forwardRef(function(e,t){var r=e.children,n=e.className,i=e.autoHideDuration,a=e.disableWindowBlurListener,o=a===void 0?!1:a,s=e.onClose,u=e.id,l=e.open,c=e.SnackbarProps,f=c===void 0?{}:c,d=m.useRef(),h=V1(function(){s&&s.apply(void 0,arguments)}),g=V1(function(C){!s||C==null||(d.current&&clearTimeout(d.current),d.current=setTimeout(function(){h(null,"timeout",u)},C))});m.useEffect(function(){return l&&g(i),function(){d.current&&clearTimeout(d.current)}},[l,i,g]);var p=function(){d.current&&clearTimeout(d.current)},y=m.useCallback(function(){i!=null&&g(i*.5)},[i,g]),b=function(k){f.onMouseEnter&&f.onMouseEnter(k),p()},x=function(k){f.onMouseLeave&&f.onMouseLeave(k),y()};return m.useEffect(function(){if(!o&&l)return window.addEventListener("focus",y),window.addEventListener("blur",p),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",p)}},[o,y,l]),m.createElement("div",Object.assign({ref:t},f,{className:bn(yi.Snackbar,n),onMouseEnter:b,onMouseLeave:x}),r)});z1.displayName="Snackbar";var ef,R7=Ua({root:(ef={display:"flex",flexWrap:"wrap",flexGrow:1},ef[wn.upSm]={flexGrow:"initial",minWidth:"288px"},ef)}),tf=m.forwardRef(function(e,t){var r=e.className,n=Wa(e,["className"]);return m.createElement("div",Object.assign({ref:t,className:bn(R7.root,r)},n))});tf.displayName="SnackbarContent";var Ga=Ua({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),W1="notistack-snackbar",H1=m.forwardRef(function(e,t){var r=e.id,n=e.message,i=e.action,a=e.iconVariant,o=e.variant,s=e.hideIconVariant,u=e.style,l=e.className,c=a[o],f=i;return typeof f=="function"&&(f=f(r)),m.createElement(tf,{ref:t,role:"alert","aria-describedby":W1,style:u,className:bn(yi.MuiContent,yi.MuiContentVariant(o),Ga.root,Ga[o],l,!s&&c&&Ga.lessPadding)},m.createElement("div",{id:W1,className:Ga.message},s?null:c,n),f&&m.createElement("div",{className:Ga.action},f))});H1.displayName="MaterialDesignContent";var U1=m.memo(H1),N7=Ua({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),B7=function(t){var r=m.useRef(),n=m.useState(!0),i=n[0],a=n[1],o=Ya([t.snack.onClose,t.onClose]),s=function(){t.snack.requestClose&&o(null,"instructed",t.snack.id)},u=m.useCallback(function(){r.current=setTimeout(function(){a(function(P){return!P})},125)},[]);m.useEffect(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var l=t.snack,c=t.classes,f=t.Component,d=f===void 0?U1:f,h=m.useMemo(function(){return I7(c)},[c]),g=l.open,p=l.SnackbarProps,y=l.TransitionComponent,b=l.TransitionProps,x=l.transitionDuration,C=l.disableWindowBlurListener,k=l.content,w=Wa(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),_=Ge({direction:$7(w.anchorOrigin),timeout:x},b),T=k;typeof T=="function"&&(T=T(w.id,w.message));var O=["onEnter","onEntered","onExit","onExited"].reduce(function(P,F){var Z;return Ge({},P,(Z={},Z[F]=Ya([t.snack[F],t[F]],w.id),Z))},{});return m.createElement(N1,{in:i,onExited:O.onExited},m.createElement(z1,{open:g,id:w.id,disableWindowBlurListener:C,autoHideDuration:w.autoHideDuration,className:bn(N7.wrappedRoot,h.root,h[F7(w.anchorOrigin)]),SnackbarProps:p,onClose:o},m.createElement(y,Object.assign({},_,{appear:!0,in:g,onExit:O.onExit,onExited:u,onEnter:O.onEnter,onEntered:Ya([O.onEntered,s],w.id)}),T||m.createElement(d,Object.assign({},w)))))},qa,rf,Ws,Hs,nf,Ar={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Y1="."+yi.CollapseWrapper,af=16,Us=Ua({root:(qa={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:vi(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},qa[Y1]={padding:Ar.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},qa.maxWidth="calc(100% - "+Ar.view.default*2+"px)",qa[wn.downXs]={width:"100%",maxWidth:"calc(100% - "+af*2+"px)"},qa),rootDense:(rf={},rf[Y1]={padding:Ar.snackbar.dense+"px 0px"},rf),top:{top:Ar.view.default-Ar.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Ar.view.default-Ar.snackbar.default+"px",flexDirection:"column-reverse"},left:(Ws={left:Ar.view.default+"px"},Ws[wn.upSm]={alignItems:"flex-start"},Ws[wn.downXs]={left:af+"px"},Ws),right:(Hs={right:Ar.view.default+"px"},Hs[wn.upSm]={alignItems:"flex-end"},Hs[wn.downXs]={right:af+"px"},Hs),center:(nf={left:"50%",transform:"translateX(-50%)"},nf[wn.upSm]={alignItems:"center"},nf)}),V7=function(t){var r=t.classes,n=r===void 0?{}:r,i=t.anchorOrigin,a=t.dense,o=t.children,s=bn(yi.SnackbarContainer,Us[i.vertical],Us[i.horizontal],Us.root,n.containerRoot,n["containerAnchorOrigin"+Kc(i)],a&&Us.rootDense);return m.createElement("div",{className:s},o)},z7=m.memo(V7),W7=process.env.NODE_ENV!=="production",H7={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},U7=function(e){if(W7){var t=H7[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},G1=function(t){var r=typeof t=="string"||m.isValidElement(t);return!r};A.enqueueSnackbar=void 0,A.closeSnackbar=void 0;var q1=function(e){k1(t,e);function t(n){var i;return i=e.call(this,n)||this,i.enqueueSnackbar=function(a,o){if(o===void 0&&(o={}),a==null)throw new Error("enqueueSnackbar called with invalid argument");var s=G1(a)?a:o,u=G1(a)?a.message:a,l=s.key,c=s.preventDuplicate,f=Wa(s,["key","preventDuplicate"]),d=Ls(l),h=d?l:new Date().getTime()+Math.random(),g=D7(f,i.props),p=Ge({id:h},f,{message:u,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:bn(i.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),i.setState(function(y){if(c===void 0&&i.props.preventDuplicate||c){var b=function(w){return d?w.id===h:w.message===u},x=y.queue.findIndex(b)>-1,C=y.snacks.findIndex(b)>-1;if(x||C)return y}return i.handleDisplaySnack(Ge({},y,{queue:[].concat(y.queue,[p])}))}),h},i.handleDisplaySnack=function(a){var o=a.snacks;return o.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var o=a.queue,s=a.snacks;return o.length>0?Ge({},a,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(c){return!c.open||c.requestClose}))return a;var o=!1,s=!1,u=a.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);u===i.maxSnack&&(process.env.NODE_ENV!=="production"&&U7("NO_PERSIST_ALL"),s=!0);var l=a.snacks.map(function(c){return!o&&(!c.persist||s)?(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),i.props.onClose&&i.props.onClose(null,"maxsnack",c.id),Ge({},c,{open:!1})):Ge({},c,{requestClose:!0})):Ge({},c)});return Ge({},a,{snacks:l})},i.handleEnteredSnack=function(a,o,s){if(!Ls(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(u){var l=u.snacks;return{snacks:l.map(function(c){return c.id===s?Ge({},c,{entered:!0}):Ge({},c)})}})},i.handleCloseSnack=function(a,o,s){i.props.onClose&&i.props.onClose(a,o,s);var u=s===void 0;i.setState(function(l){var c=l.snacks,f=l.queue;return{snacks:c.map(function(d){return!u&&d.id!==s?Ge({},d):d.entered?Ge({},d,{open:!1}):Ge({},d,{requestClose:!0})}),queue:f.filter(function(d){return d.id!==s})}})},i.closeSnackbar=function(a){var o=i.state.snacks.find(function(s){return s.id===a});Ls(a)&&o&&o.onClose&&o.onClose(null,"instructed",a),i.handleCloseSnack(null,"instructed",a)},i.handleExitedSnack=function(a,o){if(!Ls(o))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(s){var u=i.processQueue(Ge({},s,{snacks:s.snacks.filter(function(l){return l.id!==o})}));return u.queue.length===0?u:i.handleDismissOldest(u)})},A.enqueueSnackbar=i.enqueueSnackbar,A.closeSnackbar=i.closeSnackbar,i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(M1(i)),closeSnackbar:i.closeSnackbar.bind(M1(i))}},i}var r=t.prototype;return r.render=function(){var i=this,a=this.state.contextValue,o=this.props,s=o.domRoot,u=o.children,l=o.dense,c=l===void 0?!1:l,f=o.Components,d=f===void 0?{}:f,h=o.classes,g=this.state.snacks.reduce(function(y,b){var x,C=Kc(b.anchorOrigin),k=y[C]||[];return Ge({},y,(x={},x[C]=[].concat(k,[b]),x))},{}),p=Object.keys(g).map(function(y){var b=g[y],x=b[0];return m.createElement(z7,{key:y,dense:c,anchorOrigin:x.anchorOrigin,classes:h},b.map(function(C){return m.createElement(B7,{key:C.id,snack:C,classes:h,Component:d[C.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ya([i.handleExitedSnack,i.props.onExited],C.id),onEntered:Ya([i.handleEnteredSnack,i.props.onEntered],C.id)})}))});return m.createElement(A1.Provider,{value:a},u,s?Nh.createPortal(p,s):p)},_1(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Cn.maxSnack}}]),t}(m.Component),Y7=function(){return m.useContext(A1)};const Ka=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ys=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:n,prefix:u,name:s};return t&&!Gs(l)?null:l}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Gs(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:a};return t&&!Gs(s,r)?null:s}return null},Gs=(e,t)=>e?!!((e.provider===""||e.provider.match(Ka))&&(t&&e.prefix===""||e.prefix.match(Ka))&&e.name.match(Ka)):!1,K1=Object.freeze({left:0,top:0,width:16,height:16}),qs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),of=Object.freeze({...K1,...qs}),sf=Object.freeze({...of,body:"",hidden:!1});function G7(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function X1(e,t){const r=G7(e,t);for(const n in sf)n in qs?n in e&&!(n in r)&&(r[n]=qs[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function q7(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(r[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=n[o]&&n[o].parent,u=s&&a(s);u&&(i[o]=[s].concat(u))}return i[o]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function K7(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=X1(n[s]||i[s],a)}return o(t),r.forEach(o),X1(e,a)}function Z1(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=q7(e);for(const i in n){const a=n[i];a&&(t(i,K7(e,i,a)),r.push(i))}return r}const X7={provider:"",aliases:{},not_found:{},...K1};function lf(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Q1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!lf(e,X7))return null;const r=t.icons;for(const i in r){const a=r[i];if(!i.match(Ka)||typeof a.body!="string"||!lf(a,sf))return null}const n=t.aliases||Object.create(null);for(const i in n){const a=n[i],o=a.parent;if(!i.match(Ka)||typeof o!="string"||!r[o]&&!n[o]||!lf(a,sf))return null}return t}const J1=Object.create(null);function Z7(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Sn(e,t){const r=J1[e]||(J1[e]=Object.create(null));return r[t]||(r[t]=Z7(e,t))}function uf(e,t){return Q1(t)?Z1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function Q7(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Xa=!1;function em(e){return typeof e=="boolean"&&(Xa=e),Xa}function J7(e){const t=typeof e=="string"?Ys(e,!0,Xa):e;if(t){const r=Sn(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function e8(e,t){const r=Ys(e,!0,Xa);if(!r)return!1;const n=Sn(r.provider,r.prefix);return Q7(n,r.name,t)}function t8(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Xa&&!t&&!e.prefix){let i=!1;return Q1(e)&&(e.prefix="",Z1(e,(a,o)=>{o&&e8(a,o)&&(i=!0)})),i}const r=e.prefix;if(!Gs({provider:t,prefix:r,name:"a"}))return!1;const n=Sn(t,r);return!!uf(n,e)}const tm=Object.freeze({width:null,height:null}),rm=Object.freeze({...tm,...qs}),r8=/(-?[0-9.]*[0-9]+[0-9.]*)/g,n8=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nm(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(r8);if(n===null||!n.length)return e;const i=[];let a=n.shift(),o=n8.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");o=!o}}const i8=e=>e==="unset"||e==="undefined"||e==="none";function a8(e,t){const r={...of,...e},n={...rm,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(g=>{const p=[],y=g.hFlip,b=g.vFlip;let x=g.rotate;y?b?x+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):b&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let C;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:C=i.height/2+i.top,p.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,p.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}x%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),p.length&&(a='<g transform="'+p.join(" ")+'">'+a+"</g>")});const o=n.width,s=n.height,u=i.width,l=i.height;let c,f;o===null?(f=s===null?"1em":s==="auto"?l:s,c=nm(f,u/l)):(c=o==="auto"?u:o,f=s===null?nm(c,l/u):s==="auto"?l:s);const d={},h=(g,p)=>{i8(p)||(d[g]=p.toString())};return h("width",c),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+u.toString()+" "+l.toString(),{attributes:d,body:a}}const o8=/\sid="(\S+)"/g,s8="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let l8=0;function u8(e,t=s8){const r=[];let n;for(;n=o8.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const o=typeof t=="function"?t(a):t+(l8++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const cf=Object.create(null);function c8(e,t){cf[e]=t}function ff(e){return cf[e]||cf[""]}function df(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const hf=Object.create(null),Za=["https://api.simplesvg.com","https://api.unisvg.com"],Ks=[];for(;Za.length>0;)Za.length===1||Math.random()>.5?Ks.push(Za.shift()):Ks.push(Za.pop());hf[""]=df({resources:["https://api.iconify.design"].concat(Ks)});function f8(e,t){const r=df(t);return r===null?!1:(hf[e]=r,!0)}function pf(e){return hf[e]}let im=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function d8(e,t){const r=pf(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";n=r.maxURL-i-r.path.length-a.length}return n}function h8(e){return e===404}const p8=(e,t,r)=>{const n=[],i=d8(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return r.forEach((u,l)=>{s+=u.length+1,s>=i&&l>0&&(n.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=u.length),o.icons.push(u)}),n.push(o),n};function g8(e){if(typeof e=="string"){const t=pf(e);if(t)return t.path}return"/"}const m8={prepare:p8,send:(e,t,r)=>{if(!im){r("abort",424);return}let n=g8(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),u=new URLSearchParams({icons:s});n+=a+".json?"+u.toString();break}case"custom":{const a=t.uri;n+=a.slice(0,1)==="/"?a.slice(1):a;break}default:r("abort",400);return}let i=503;im(e+n).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{r(h8(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?r("abort",a):r("next",i)});return}setTimeout(()=>{r("success",a)})}).catch(()=>{r("next",i)})}};function v8(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const a=i.provider,o=i.prefix,s=i.name,u=r[a]||(r[a]=Object.create(null)),l=u[o]||(u[o]=Sn(a,o));let c;s in l.icons?c=t.loaded:o===""||l.missing.has(s)?c=t.missing:c=t.pending;const f={provider:a,prefix:o,name:s};c.push(f)}),t}function am(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function y8(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])o.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))o.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),o.pending.length!==s&&(r||am([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let b8=0;function x8(e,t,r){const n=b8++,i=am.bind(null,r,n);if(!t.pending.length)return i;const a={id:n,icons:t,callback:e,abort:i};return r.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function w8(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const a=typeof i=="string"?Ys(i,t,r):i;a&&n.push(a)}),n}var C8={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function S8(e,t,r,n){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let _=e.resources.slice(0);for(o=[];_.length>1;){const T=Math.floor(Math.random()*_.length);o.push(_[T]),_=_.slice(0,T).concat(_.slice(T+1))}o=o.concat(_)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let u="pending",l=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function g(){f&&(clearTimeout(f),f=null)}function p(){u==="pending"&&(u="aborted"),g(),d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function y(_,T){T&&(h=[]),typeof _=="function"&&h.push(_)}function b(){return{startTime:s,payload:t,status:u,queriesSent:l,queriesPending:d.length,subscribe:y,abort:p}}function x(){u="failed",h.forEach(_=>{_(void 0,c)})}function C(){d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function k(_,T,O){const P=T!=="success";switch(d=d.filter(F=>F!==_),u){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){c=O,x();return}if(P){c=O,d.length||(o.length?w():x());return}if(g(),C(),!e.random){const F=e.resources.indexOf(_.resource);F!==-1&&F!==e.index&&(e.index=F)}u="completed",h.forEach(F=>{F(O)})}function w(){if(u!=="pending")return;g();const _=o.shift();if(_===void 0){if(d.length){f=setTimeout(()=>{g(),u==="pending"&&(C(),x())},e.timeout);return}x();return}const T={status:"pending",resource:_,callback:(O,P)=>{k(T,O,P)}};d.push(T),l++,f=setTimeout(w,e.rotate),r(_,t,T.callback)}return setTimeout(w),b}function om(e){const t={...C8,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,u,l){const c=S8(t,s,u,(f,d)=>{n(),l&&l(f,d)});return r.push(c),c}function a(s){return r.find(u=>s(u))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function sm(){}const gf=Object.create(null);function E8(e){if(!gf[e]){const t=pf(e);if(!t)return;const r=om(t),n={config:t,redundancy:r};gf[e]=n}return gf[e]}function T8(e,t,r){let n,i;if(typeof e=="string"){const a=ff(e);if(!a)return r(void 0,424),sm;i=a.send;const o=E8(e);o&&(n=o.redundancy)}else{const a=df(e);if(a){n=om(a);const o=e.resources?e.resources[0]:"",s=ff(o);s&&(i=s.send)}}return!n||!i?(r(void 0,424),sm):n.query(t,i,r)().abort}const lm="iconify2",Qa="iconify",um=Qa+"-count",cm=Qa+"-version",fm=36e5,_8=168;function mf(e,t){try{return e.getItem(t)}catch{}}function vf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function dm(e,t){try{e.removeItem(t)}catch{}}function yf(e,t){return vf(e,um,t.toString())}function bf(e){return parseInt(mf(e,um))||0}const Xs={local:!0,session:!0},hm={local:new Set,session:new Set};let xf=!1;function k8(e){xf=e}let Zs=typeof window>"u"?{}:window;function pm(e){const t=e+"Storage";try{if(Zs&&Zs[t]&&typeof Zs[t].length=="number")return Zs[t]}catch{}Xs[e]=!1}function gm(e,t){const r=pm(e);if(!r)return;const n=mf(r,cm);if(n!==lm){if(n){const s=bf(r);for(let u=0;u<s;u++)dm(r,Qa+u.toString())}vf(r,cm,lm),yf(r,0);return}const i=Math.floor(Date.now()/fm)-_8,a=s=>{const u=Qa+s.toString(),l=mf(r,u);if(typeof l=="string"){try{const c=JSON.parse(l);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>i&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}dm(r,u)}};let o=bf(r);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,yf(r,o)):hm[e].add(s))}function mm(){if(!xf){k8(!0);for(const e in Xs)gm(e,t=>{const r=t.data,n=t.provider,i=r.prefix,a=Sn(n,i);if(!uf(a,r).length)return!1;const o=r.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function M8(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Xs)gm(n,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function O8(e,t){xf||mm();function r(n){let i;if(!Xs[n]||!(i=pm(n)))return;const a=hm[n];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=bf(i),!yf(i,o+1))return;const s={cached:Math.floor(Date.now()/fm),provider:e.provider,data:t};return vf(i,Qa+o.toString(),JSON.stringify(s))}t.lastModified&&!M8(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function vm(){}function A8(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,y8(e)}))}function P8(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=ff(r)))return;a.prepare(r,n,i).forEach(s=>{T8(r,s,u=>{if(typeof u!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=uf(e,u);if(!l.length)return;const c=e.pendingIcons;c&&l.forEach(f=>{c.delete(f)}),O8(e,u)}catch(l){console.error(l)}A8(e)})})}))}const D8=(e,t)=>{const r=w8(e,!0,em()),n=v8(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,vm)}),()=>{u=!1}}const i=Object.create(null),a=[];let o,s;return n.pending.forEach(u=>{const{provider:l,prefix:c}=u;if(c===s&&l===o)return;o=l,s=c,a.push(Sn(l,c));const f=i[l]||(i[l]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(u=>{const{provider:l,prefix:c,name:f}=u,d=Sn(l,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][c].push(f))}),a.forEach(u=>{const{provider:l,prefix:c}=u;i[l][c].length&&P8(u,i[l][c])}),t?x8(t,n,a):vm};function $8(e,t){const r={...e};for(const n in t){const i=t[n],a=typeof i;n in tm?(i===null||i&&(a==="string"||a==="number"))&&(r[n]=i):a===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const F8=/[\s,]+/;function I8(e,t){t.split(F8).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function j8(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-r.length));return isNaN(a)?0:(a=a/i,a%1===0?n(a):0)}}return t}function L8(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function R8(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function N8(e){return"data:image/svg+xml,"+R8(e)}function B8(e){return'url("'+N8(e)+'")'}let Ja;function V8(){try{Ja=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Ja=null}}function z8(e){return Ja===void 0&&V8(),Ja?Ja.createHTML(e):e}const ym={...rm,inline:!1},W8={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},H8={display:"inline-block"},wf={backgroundColor:"currentColor"},bm={backgroundColor:"transparent"},xm={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},wm={WebkitMask:wf,mask:wf,background:bm};for(const e in wm){const t=wm[e];for(const r in xm)t[e+r]=xm[r]}const U8={...ym,inline:!0};function Cm(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Y8=(e,t,r,n)=>{const i=r?U8:ym,a=$8(i,t),o=t.mode||"svg",s={},u=t.style||{},l={...o==="svg"?W8:{},ref:n};for(let b in t){const x=t[b];if(x!==void 0)switch(b){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[b]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&I8(a,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?a[b]=j8(x):typeof x=="number"&&(a[b]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete l["aria-hidden"];break;default:i[b]===void 0&&(l[b]=x)}}const c=a8(e,a),f=c.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){l.style={...s,...u},Object.assign(l,f);let b=0,x=t.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:z8(u8(c.body,x?()=>x+"ID"+b++:"iconifyReact"))},m.createElement("svg",l)}const{body:d,width:h,height:g}=e,p=o==="mask"||(o==="bg"?!1:d.indexOf("currentColor")!==-1),y=L8(d,{...f,width:h+"",height:g+""});return l.style={...s,"--svg":B8(y),width:Cm(f.width),height:Cm(f.height),...H8,...p?wf:bm,...u},m.createElement("span",l)};if(em(!0),c8("",m8),typeof document<"u"&&typeof window<"u"){mm();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!t8(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;f8(r,i)||console.error(n)}catch{console.error(n)}}}}class Sm extends m.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Ys(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=J7(i);if(!a){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:n,abort:D8([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:m.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),Y8({...of,...r.data},n,t._inline,t._ref)}}const G8=m.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return m.createElement(Sm,n)});m.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return m.createElement(Sm,n)});const nt=m.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>v.jsx(E.Box,{ref:i,component:G8,icon:e,sx:{width:t,height:t,...r},...n}));nt.displayName="Iconify";const q8=()=>{const e=hi(),t=e.palette.mode==="light";return v.jsx(E.GlobalStyles,{styles:{"#root":{".notistack-MuiContent":{width:"100%",padding:e.spacing(0,2),paddingRight:e.spacing(2),margin:e.spacing(.25,0),boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:t?e.palette.grey[900]:e.palette.common.white,"&.notistack-MuiContent-success, &.notistack-MuiContent-error, &.notistack-MuiContent-warning, &.notistack-MuiContent-info":{color:e.palette.text.primary,backgroundColor:e.palette.background.paper},[e.breakpoints.up("md")]:{minWidth:240}},"#notistack-snackbar":{fontWeight:e.typography.fontWeightMedium},".SnackbarItem-action":{marginRight:0,color:e.palette.action.active,"& svg":{width:20,height:20}}}}})},Qs=({icon:e,color:t})=>v.jsx(E.Box,{component:"span",sx:{mr:1.5,width:40,height:40,display:"flex",borderRadius:1.5,alignItems:"center",justifyContent:"center",color:`${t}.main`,bgcolor:r=>L(r.palette[t].main,.16)},children:v.jsx(nt,{icon:e,width:24})}),Em=({children:e})=>{const t=m.useRef(null),r=n=>()=>{t.current.closeSnackbar(n)};return v.jsxs(v.Fragment,{children:[v.jsx(q8,{}),v.jsx(q1,{ref:t,dense:!0,maxSnack:5,preventDuplicate:!0,autoHideDuration:3e3,variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},iconVariant:{info:v.jsx(Qs,{icon:"eva:info-fill",color:"info"}),success:v.jsx(Qs,{icon:"eva:checkmark-circle-2-fill",color:"success"}),warning:v.jsx(Qs,{icon:"eva:alert-triangle-fill",color:"warning"}),error:v.jsx(Qs,{icon:"eva:alert-circle-fill",color:"error"})},action:n=>v.jsx(E.IconButton,{size:"small",onClick:r(n),sx:{p:.5},children:v.jsx(nt,{icon:"eva:close-fill"})}),children:e})]})};function K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Js(e,t)}function K8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Js(e,t)}var Tm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function X8(e,t){return!!(e===t||Tm(e)&&Tm(t))}function Z8(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!X8(e[r],t[r]))return!1;return!0}function Cf(e,t){t===void 0&&(t=Z8);var r,n=[],i,a=!1;function o(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return a&&r===this&&t(s,n)||(i=e.apply(this,s),a=!0,r=this,n=s),i}return o}var Q8=typeof performance=="object"&&typeof performance.now=="function",_m=Q8?function(){return performance.now()}:function(){return Date.now()};function km(e){cancelAnimationFrame(e.id)}function J8(e,t){var r=_m();function n(){_m()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Sf=-1;function Mm(e){if(e===void 0&&(e=!1),Sf===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Sf=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Sf}var bi=null;function Om(e){if(e===void 0&&(e=!1),bi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?bi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?bi="negative":bi="positive-ascending"),document.body.removeChild(t),bi}return bi}process.env.NODE_ENV;var e9=150,t9=function(t,r){return t},el=null,tl=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(el=new WeakSet,tl=new WeakSet);function r9(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){K8(d,f);function d(g){var p;return p=f.call(this,g)||this,p._instanceProps=u(p.props,K(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:K(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=Cf(function(y,b,x,C){return p.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:b,visibleStartIndex:x,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=Cf(function(y,b,x){return p.props.onScroll({scrollDirection:y,scrollOffset:b,scrollUpdateWasRequested:x})}),p._getItemStyle=void 0,p._getItemStyle=function(y){var b=p.props,x=b.direction,C=b.itemSize,k=b.layout,w=p._getItemStyleCache(l&&C,l&&k,l&&x),_;if(w.hasOwnProperty(y))_=w[y];else{var T=r(p.props,y,p._instanceProps),O=i(p.props,y,p._instanceProps),P=x==="horizontal"||k==="horizontal",F=x==="rtl",Z=P?T:0;w[y]=_={position:"absolute",left:F?void 0:Z,right:F?Z:void 0,top:P?0:T,height:P?"100%":O,width:P?O:"100%"}}return _},p._getItemStyleCache=void 0,p._getItemStyleCache=Cf(function(y,b,x){return{}}),p._onScrollHorizontal=function(y){var b=y.currentTarget,x=b.clientWidth,C=b.scrollLeft,k=b.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var _=p.props.direction,T=C;if(_==="rtl")switch(Om()){case"negative":T=-C;break;case"positive-descending":T=k-x-C;break}return T=Math.max(0,Math.min(T,k-x)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(y){var b=y.currentTarget,x=b.clientHeight,C=b.scrollHeight,k=b.scrollTop;p.setState(function(w){if(w.scrollOffset===k)return null;var _=Math.max(0,Math.min(k,C-x));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(y){var b=p.props.outerRef;p._outerRef=y,typeof b=="function"?b(y):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=y)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&km(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=J8(p._resetIsScrolling,e9)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,y){return n9(p,y),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(y){return y.scrollOffset===p?null:{scrollDirection:y.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,y){y===void 0&&(y="auto");var b=this.props,x=b.itemCount,C=b.layout,k=this.state.scrollOffset;p=Math.max(0,Math.min(p,x-1));var w=0;if(this._outerRef){var _=this._outerRef;C==="vertical"?w=_.scrollWidth>_.clientWidth?Mm():0:w=_.scrollHeight>_.clientHeight?Mm():0}this.scrollTo(a(this.props,p,y,k,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,y=p.direction,b=p.initialScrollOffset,x=p.layout;if(typeof b=="number"&&this._outerRef!=null){var C=this._outerRef;y==="horizontal"||x==="horizontal"?C.scrollLeft=b:C.scrollTop=b}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,y=p.direction,b=p.layout,x=this.state,C=x.scrollOffset,k=x.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var w=this._outerRef;if(y==="horizontal"||b==="horizontal")if(y==="rtl")switch(Om()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var _=w.clientWidth,T=w.scrollWidth;w.scrollLeft=T-_-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&km(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,y=p.children,b=p.className,x=p.direction,C=p.height,k=p.innerRef,w=p.innerElementType,_=p.innerTagName,T=p.itemCount,O=p.itemData,P=p.itemKey,F=P===void 0?t9:P,Z=p.layout,be=p.outerElementType,oe=p.outerTagName,Q=p.style,H=p.useIsScrolling,R=p.width,U=this.state.isScrolling,Ce=x==="horizontal"||Z==="horizontal",fe=Ce?this._onScrollHorizontal:this._onScrollVertical,D=this._getRangeToRender(),$=D[0],W=D[1],se=[];if(T>0)for(var X=$;X<=W;X++)se.push(m.createElement(y,{data:O,key:F(X,O),index:X,isScrolling:H?U:void 0,style:this._getItemStyle(X)}));var ce=n(this.props,this._instanceProps);return m.createElement(be||oe||"div",{className:b,onScroll:fe,ref:this._outerRefSetter,style:we({position:"relative",height:C,width:R,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},Q)},m.createElement(w||_||"div",{children:se,ref:k,style:{height:Ce?"100%":ce,pointerEvents:U?"none":void 0,width:Ce?ce:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var y=this._getRangeToRender(),b=y[0],x=y[1],C=y[2],k=y[3];this._callOnItemsRendered(b,x,C,k)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,T=w.scrollOffset,O=w.scrollUpdateWasRequested;this._callOnScroll(_,T,O)}},h._getRangeToRender=function(){var p=this.props,y=p.itemCount,b=p.overscanCount,x=this.state,C=x.isScrolling,k=x.scrollDirection,w=x.scrollOffset;if(y===0)return[0,0,0,0];var _=o(this.props,w,this._instanceProps),T=s(this.props,_,w,this._instanceProps),O=!C||k==="backward"?Math.max(1,b):1,P=!C||k==="forward"?Math.max(1,b):1;return[Math.max(0,_-O),Math.max(0,Math.min(y-1,T+P)),_,T]},d}(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var n9=function(t,r){var n=t.children,i=t.direction,a=t.height,o=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&tl&&!tl.has(c)&&(tl.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||o==="horizontal";switch(i){case"horizontal":case"vertical":el&&!el.has(c)&&(el.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(o){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+o+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof a!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(a===null?"null":typeof a)+'" was specified.'))}},i9=50,xi=function(t,r,n){var i=t,a=i.itemSize,o=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=o[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=a(c);o[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return o[r]},a9=function(t,r,n){var i=r.itemMetadataMap,a=r.lastMeasuredIndex,o=a>0?i[a].offset:0;return o>=n?Am(t,r,a,0,n):o9(t,r,Math.max(0,a),n)},Am=function(t,r,n,i,a){for(;i<=n;){var o=i+Math.floor((n-i)/2),s=xi(t,o,r).offset;if(s===a)return o;s<a?i=o+1:s>a&&(n=o-1)}return i>0?i-1:0},o9=function(t,r,n,i){for(var a=t.itemCount,o=1;n<a&&xi(t,n,r).offset<i;)n+=o,o*=2;return Am(t,r,Math.min(n,a-1),Math.floor(n/2),i)},Pm=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,a=r.estimatedItemSize,o=r.lastMeasuredIndex,s=0;if(o>=n&&(o=n-1),o>=0){var u=i[o];s=u.offset+u.size}var l=n-o-1,c=l*a;return s+c},s9=r9({getItemOffset:function(t,r,n){return xi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:Pm,getOffsetForIndexAndAlignment:function(t,r,n,i,a,o){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=xi(t,r,a),g=Pm(t,a),p=Math.max(0,Math.min(g-d,h.offset)),y=Math.max(0,h.offset-d+h.size+o);switch(n==="smart"&&(i>=y-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return y;case"center":return Math.round(y+(p-y)/2);case"auto":default:return i>=y&&i<=p?i:i<y?y:p}},getStartIndexForOffset:function(t,r,n){return a9(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var a=t.direction,o=t.height,s=t.itemCount,u=t.layout,l=t.width,c=a==="horizontal"||u==="horizontal",f=c?l:o,d=xi(t,r,i),h=n+f,g=d.offset+d.size,p=r;p<s-1&&g<h;)p++,g+=xi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:i||i9,lastMeasuredIndex:-1};return r.resetAfterIndex=function(o,s){s===void 0&&(s=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,o-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const Dm=8,l9=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:a,...o}=i[0],s={...n,top:n.top+Dm,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?v.jsx(E.ListSubheader,{component:"div",style:s,children:i.group},i.key):v.jsx(E.Typography,{component:"li",...o,noWrap:!0,style:s,children:v.jsxs(E.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,a&&v.jsxs(E.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},$m=m.createContext({}),Fm=m.forwardRef((e,t)=>{const r=m.useContext($m);return v.jsx("div",{ref:t,...e,...r})});Fm.displayName="OuterElementType";const u9=e=>{const t=m.useRef(null);return m.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},c9=m.forwardRef(function(t,r){const{children:n,...i}=t,a=[];n.forEach(h=>{a.push(h),a.push(...h.children||[])});const o=E.useTheme(),s=E.useMediaQuery(o.breakpoints.up("sm")),u=a.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:a.map(c).reduce((h,g)=>h+g,0),d=u9(u);return v.jsx("div",{ref:r,children:v.jsx($m.Provider,{value:i,children:v.jsx(s9,{itemData:a,height:f()+2*Dm,width:"100%",ref:d,outerElementType:Fm,innerElementType:"ul",itemSize:h=>c(a[h]),overscanCount:5,itemCount:u,children:l9})})})}),f9=E.styled(E.Popper)({[`& .${E.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),Ef=m.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:a="Carregando opções...",error:o,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:g,renderOption:p,tabIndex:y,...b},x)=>{const C=w=>w&&typeof w=="object"?w.value.toString():w.toString(),k=m.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((T,O)=>{const P=r.find(F=>F.value.toString()===O.toString());return P?[...T,P]:[...T]},[]):r.find(_=>_.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return v.jsx(E.Autocomplete,{ref:x,value:k,onInputChange:()=>{!n&&!k&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:a,disabled:n||d,disableListWrap:!0,PopperComponent:f9,ListboxComponent:p?void 0:c9,filterOptions:(w,_)=>w.filter(T=>`${T.value} ${T.label}`.toLocaleUpperCase().includes(_.inputValue.toLocaleUpperCase())),onChange:(w,_)=>{if(!_){l(h?[]:null);return}if(Array.isArray(_)){l(_.map(C));return}l(typeof _=="string"?_.toString():_.value.toString())},renderOption:(w,_,T,O)=>p?p(w,_,T,O):[{...w,showValueInLabel:f},_],renderGroup:w=>w,groupBy:c,multiple:h,renderInput:w=>v.jsx(E.TextField,{...w,placeholder:u,fullWidth:!0,error:!!o,helperText:s,label:e,required:g,InputProps:{...w.InputProps,endAdornment:v.jsxs(v.Fragment,{children:[n?v.jsx(E.CircularProgress,{color:"primary",size:20}):null,w.InputProps.endAdornment]})},inputProps:{...w.inputProps,tabIndex:y}}),...b})});Ef.displayName="Autocomplete";var er={},eo={},d9=typeof Aa=="object"&&Aa&&Aa.Object===Object&&Aa,Im=d9,h9=Im,p9=typeof self=="object"&&self&&self.Object===Object&&self,g9=h9||p9||Function("return this")(),mr=g9,m9=mr,v9=m9.Symbol,to=v9,jm=to,Lm=Object.prototype,y9=Lm.hasOwnProperty,b9=Lm.toString,ro=jm?jm.toStringTag:void 0;function x9(e){var t=y9.call(e,ro),r=e[ro];try{e[ro]=void 0;var n=!0}catch{}var i=b9.call(e);return n&&(t?e[ro]=r:delete e[ro]),i}var w9=x9,C9=Object.prototype,S9=C9.toString;function E9(e){return S9.call(e)}var T9=E9,Rm=to,_9=w9,k9=T9,M9="[object Null]",O9="[object Undefined]",Nm=Rm?Rm.toStringTag:void 0;function A9(e){return e==null?e===void 0?O9:M9:Nm&&Nm in Object(e)?_9(e):k9(e)}var En=A9,P9=Array.isArray,ir=P9;function D9(e){return e!=null&&typeof e=="object"}var Pr=D9,$9=En,F9=ir,I9=Pr,j9="[object String]";function L9(e){return typeof e=="string"||!F9(e)&&I9(e)&&$9(e)==j9}var R9=L9;function N9(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var B9=N9,V9=B9,z9=V9(),W9=z9;function H9(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var U9=H9,Y9=En,G9=Pr,q9="[object Arguments]";function K9(e){return G9(e)&&Y9(e)==q9}var X9=K9,Bm=X9,Z9=Pr,Vm=Object.prototype,Q9=Vm.hasOwnProperty,J9=Vm.propertyIsEnumerable,eT=Bm(function(){return arguments}())?Bm:function(e){return Z9(e)&&Q9.call(e,"callee")&&!J9.call(e,"callee")},zm=eT,rl={exports:{}};function tT(){return!1}var rT=tT;rl.exports,function(e,t){var r=mr,n=rT,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(rl,rl.exports);var Tf=rl.exports,nT=9007199254740991,iT=/^(?:0|[1-9]\d*)$/;function aT(e,t){var r=typeof e;return t=t??nT,!!t&&(r=="number"||r!="symbol"&&iT.test(e))&&e>-1&&e%1==0&&e<t}var Wm=aT,oT=9007199254740991;function sT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oT}var _f=sT,lT=En,uT=_f,cT=Pr,fT="[object Arguments]",dT="[object Array]",hT="[object Boolean]",pT="[object Date]",gT="[object Error]",mT="[object Function]",vT="[object Map]",yT="[object Number]",bT="[object Object]",xT="[object RegExp]",wT="[object Set]",CT="[object String]",ST="[object WeakMap]",ET="[object ArrayBuffer]",TT="[object DataView]",_T="[object Float32Array]",kT="[object Float64Array]",MT="[object Int8Array]",OT="[object Int16Array]",AT="[object Int32Array]",PT="[object Uint8Array]",DT="[object Uint8ClampedArray]",$T="[object Uint16Array]",FT="[object Uint32Array]",et={};et[_T]=et[kT]=et[MT]=et[OT]=et[AT]=et[PT]=et[DT]=et[$T]=et[FT]=!0,et[fT]=et[dT]=et[ET]=et[hT]=et[TT]=et[pT]=et[gT]=et[mT]=et[vT]=et[yT]=et[bT]=et[xT]=et[wT]=et[CT]=et[ST]=!1;function IT(e){return cT(e)&&uT(e.length)&&!!et[lT(e)]}var jT=IT;function LT(e){return function(t){return e(t)}}var kf=LT,nl={exports:{}};nl.exports,function(e,t){var r=Im,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(nl,nl.exports);var Mf=nl.exports,RT=jT,NT=kf,Hm=Mf,Um=Hm&&Hm.isTypedArray,BT=Um?NT(Um):RT,Ym=BT,VT=U9,zT=zm,WT=ir,HT=Tf,UT=Wm,YT=Ym,GT=Object.prototype,qT=GT.hasOwnProperty;function KT(e,t){var r=WT(e),n=!r&&zT(e),i=!r&&!n&&HT(e),a=!r&&!n&&!i&&YT(e),o=r||n||i||a,s=o?VT(e.length,String):[],u=s.length;for(var l in e)(t||qT.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||UT(l,u)))&&s.push(l);return s}var Gm=KT,XT=Object.prototype;function ZT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XT;return e===r}var Of=ZT;function QT(e,t){return function(r){return e(t(r))}}var qm=QT,JT=qm,e_=JT(Object.keys,Object),t_=e_,r_=Of,n_=t_,i_=Object.prototype,a_=i_.hasOwnProperty;function o_(e){if(!r_(e))return n_(e);var t=[];for(var r in Object(e))a_.call(e,r)&&r!="constructor"&&t.push(r);return t}var s_=o_;function l_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wi=l_,u_=En,c_=wi,f_="[object AsyncFunction]",d_="[object Function]",h_="[object GeneratorFunction]",p_="[object Proxy]";function g_(e){if(!c_(e))return!1;var t=u_(e);return t==d_||t==h_||t==f_||t==p_}var Km=g_,m_=Km,v_=_f;function y_(e){return e!=null&&v_(e.length)&&!m_(e)}var il=y_,b_=Gm,x_=s_,w_=il;function C_(e){return w_(e)?b_(e):x_(e)}var no=C_,S_=W9,E_=no;function T_(e,t){return e&&S_(e,t,E_)}var Xm=T_;function __(e){return e}var Zm=__,k_=Zm;function M_(e){return typeof e=="function"?e:k_}var O_=M_,A_=Xm,P_=O_;function D_(e,t){return e&&A_(e,P_(t))}var Af=D_,$_=qm,F_=$_(Object.getPrototypeOf,Object),Pf=F_,I_=En,j_=Pf,L_=Pr,R_="[object Object]",N_=Function.prototype,B_=Object.prototype,Qm=N_.toString,V_=B_.hasOwnProperty,z_=Qm.call(Object);function W_(e){if(!L_(e)||I_(e)!=R_)return!1;var t=j_(e);if(t===null)return!0;var r=V_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qm.call(r)==z_}var H_=W_;function U_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Jm=U_;function Y_(){this.__data__=[],this.size=0}var G_=Y_;function q_(e,t){return e===t||e!==e&&t!==t}var Df=q_,K_=Df;function X_(e,t){for(var r=e.length;r--;)if(K_(e[r][0],t))return r;return-1}var al=X_,Z_=al,Q_=Array.prototype,J_=Q_.splice;function ek(e){var t=this.__data__,r=Z_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():J_.call(t,r,1),--this.size,!0}var tk=ek,rk=al;function nk(e){var t=this.__data__,r=rk(t,e);return r<0?void 0:t[r][1]}var ik=nk,ak=al;function ok(e){return ak(this.__data__,e)>-1}var sk=ok,lk=al;function uk(e,t){var r=this.__data__,n=lk(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ck=uk,fk=G_,dk=tk,hk=ik,pk=sk,gk=ck;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=fk,Ci.prototype.delete=dk,Ci.prototype.get=hk,Ci.prototype.has=pk,Ci.prototype.set=gk;var ol=Ci,mk=ol;function vk(){this.__data__=new mk,this.size=0}var yk=vk;function bk(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var xk=bk;function wk(e){return this.__data__.get(e)}var Ck=wk;function Sk(e){return this.__data__.has(e)}var Ek=Sk,Tk=mr,_k=Tk["__core-js_shared__"],kk=_k,$f=kk,ev=function(){var e=/[^.]+$/.exec($f&&$f.keys&&$f.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Mk(e){return!!ev&&ev in e}var Ok=Mk,Ak=Function.prototype,Pk=Ak.toString;function Dk(e){if(e!=null){try{return Pk.call(e)}catch{}try{return e+""}catch{}}return""}var tv=Dk,$k=Km,Fk=Ok,Ik=wi,jk=tv,Lk=/[\\^$.*+?()[\]{}|]/g,Rk=/^\[object .+?Constructor\]$/,Nk=Function.prototype,Bk=Object.prototype,Vk=Nk.toString,zk=Bk.hasOwnProperty,Wk=RegExp("^"+Vk.call(zk).replace(Lk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hk(e){if(!Ik(e)||Fk(e))return!1;var t=$k(e)?Wk:Rk;return t.test(jk(e))}var Uk=Hk;function Yk(e,t){return e==null?void 0:e[t]}var Gk=Yk,qk=Uk,Kk=Gk;function Xk(e,t){var r=Kk(e,t);return qk(r)?r:void 0}var Tn=Xk,Zk=Tn,Qk=mr,Jk=Zk(Qk,"Map"),Ff=Jk,eM=Tn,tM=eM(Object,"create"),sl=tM,rv=sl;function rM(){this.__data__=rv?rv(null):{},this.size=0}var nM=rM;function iM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var aM=iM,oM=sl,sM="__lodash_hash_undefined__",lM=Object.prototype,uM=lM.hasOwnProperty;function cM(e){var t=this.__data__;if(oM){var r=t[e];return r===sM?void 0:r}return uM.call(t,e)?t[e]:void 0}var fM=cM,dM=sl,hM=Object.prototype,pM=hM.hasOwnProperty;function gM(e){var t=this.__data__;return dM?t[e]!==void 0:pM.call(t,e)}var mM=gM,vM=sl,yM="__lodash_hash_undefined__";function bM(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vM&&t===void 0?yM:t,this}var xM=bM,wM=nM,CM=aM,SM=fM,EM=mM,TM=xM;function Si(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Si.prototype.clear=wM,Si.prototype.delete=CM,Si.prototype.get=SM,Si.prototype.has=EM,Si.prototype.set=TM;var _M=Si,nv=_M,kM=ol,MM=Ff;function OM(){this.size=0,this.__data__={hash:new nv,map:new(MM||kM),string:new nv}}var AM=OM;function PM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DM=PM,$M=DM;function FM(e,t){var r=e.__data__;return $M(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ll=FM,IM=ll;function jM(e){var t=IM(this,e).delete(e);return this.size-=t?1:0,t}var LM=jM,RM=ll;function NM(e){return RM(this,e).get(e)}var BM=NM,VM=ll;function zM(e){return VM(this,e).has(e)}var WM=zM,HM=ll;function UM(e,t){var r=HM(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var YM=UM,GM=AM,qM=LM,KM=BM,XM=WM,ZM=YM;function Ei(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ei.prototype.clear=GM,Ei.prototype.delete=qM,Ei.prototype.get=KM,Ei.prototype.has=XM,Ei.prototype.set=ZM;var If=Ei,QM=ol,JM=Ff,eO=If,tO=200;function rO(e,t){var r=this.__data__;if(r instanceof QM){var n=r.__data__;if(!JM||n.length<tO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eO(n)}return r.set(e,t),this.size=r.size,this}var nO=rO,iO=ol,aO=yk,oO=xk,sO=Ck,lO=Ek,uO=nO;function Ti(e){var t=this.__data__=new iO(e);this.size=t.size}Ti.prototype.clear=aO,Ti.prototype.delete=oO,Ti.prototype.get=sO,Ti.prototype.has=lO,Ti.prototype.set=uO;var jf=Ti,cO="__lodash_hash_undefined__";function fO(e){return this.__data__.set(e,cO),this}var dO=fO;function hO(e){return this.__data__.has(e)}var pO=hO,gO=If,mO=dO,vO=pO;function ul(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gO;++t<r;)this.add(e[t])}ul.prototype.add=ul.prototype.push=mO,ul.prototype.has=vO;var yO=ul;function bO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var xO=bO;function wO(e,t){return e.has(t)}var CO=wO,SO=yO,EO=xO,TO=CO,_O=1,kO=2;function MO(e,t,r,n,i,a){var o=r&_O,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&kO?new SO:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(n)var y=o?n(p,g,f,t,e,a):n(g,p,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!EO(t,function(b,x){if(!TO(h,x)&&(g===b||i(g,b,r,n,a)))return h.push(x)})){d=!1;break}}else if(!(g===p||i(g,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var iv=MO,OO=mr,AO=OO.Uint8Array,av=AO;function PO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var DO=PO;function $O(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var FO=$O,ov=to,sv=av,IO=Df,jO=iv,LO=DO,RO=FO,NO=1,BO=2,VO="[object Boolean]",zO="[object Date]",WO="[object Error]",HO="[object Map]",UO="[object Number]",YO="[object RegExp]",GO="[object Set]",qO="[object String]",KO="[object Symbol]",XO="[object ArrayBuffer]",ZO="[object DataView]",lv=ov?ov.prototype:void 0,Lf=lv?lv.valueOf:void 0;function QO(e,t,r,n,i,a,o){switch(r){case ZO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case XO:return!(e.byteLength!=t.byteLength||!a(new sv(e),new sv(t)));case VO:case zO:case UO:return IO(+e,+t);case WO:return e.name==t.name&&e.message==t.message;case YO:case qO:return e==t+"";case HO:var s=LO;case GO:var u=n&NO;if(s||(s=RO),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;n|=BO,o.set(e,t);var c=jO(s(e),s(t),n,i,a,o);return o.delete(e),c;case KO:if(Lf)return Lf.call(e)==Lf.call(t)}return!1}var JO=QO;function eA(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var uv=eA,tA=uv,rA=ir;function nA(e,t,r){var n=t(e);return rA(e)?n:tA(n,r(e))}var cv=nA;function iA(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var aA=iA;function oA(){return[]}var fv=oA,sA=aA,lA=fv,uA=Object.prototype,cA=uA.propertyIsEnumerable,dv=Object.getOwnPropertySymbols,fA=dv?function(e){return e==null?[]:(e=Object(e),sA(dv(e),function(t){return cA.call(e,t)}))}:lA,Rf=fA,dA=cv,hA=Rf,pA=no;function gA(e){return dA(e,pA,hA)}var hv=gA,pv=hv,mA=1,vA=Object.prototype,yA=vA.hasOwnProperty;function bA(e,t,r,n,i,a){var o=r&mA,s=pv(e),u=s.length,l=pv(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:yA.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<u;){d=s[f];var b=e[d],x=t[d];if(n)var C=o?n(x,b,d,t,e,a):n(b,x,d,e,t,a);if(!(C===void 0?b===x||i(b,x,r,n,a):C)){p=!1;break}y||(y=d=="constructor")}if(p&&!y){var k=e.constructor,w=t.constructor;k!=w&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var xA=bA,wA=Tn,CA=mr,SA=wA(CA,"DataView"),EA=SA,TA=Tn,_A=mr,kA=TA(_A,"Promise"),MA=kA,OA=Tn,AA=mr,PA=OA(AA,"Set"),DA=PA,$A=Tn,FA=mr,IA=$A(FA,"WeakMap"),jA=IA,Nf=EA,Bf=Ff,Vf=MA,zf=DA,Wf=jA,gv=En,_i=tv,mv="[object Map]",LA="[object Object]",vv="[object Promise]",yv="[object Set]",bv="[object WeakMap]",xv="[object DataView]",RA=_i(Nf),NA=_i(Bf),BA=_i(Vf),VA=_i(zf),zA=_i(Wf),_n=gv;(Nf&&_n(new Nf(new ArrayBuffer(1)))!=xv||Bf&&_n(new Bf)!=mv||Vf&&_n(Vf.resolve())!=vv||zf&&_n(new zf)!=yv||Wf&&_n(new Wf)!=bv)&&(_n=function(e){var t=gv(e),r=t==LA?e.constructor:void 0,n=r?_i(r):"";if(n)switch(n){case RA:return xv;case NA:return mv;case BA:return vv;case VA:return yv;case zA:return bv}return t});var cl=_n,Hf=jf,WA=iv,HA=JO,UA=xA,wv=cl,Cv=ir,Sv=Tf,YA=Ym,GA=1,Ev="[object Arguments]",Tv="[object Array]",fl="[object Object]",qA=Object.prototype,_v=qA.hasOwnProperty;function KA(e,t,r,n,i,a){var o=Cv(e),s=Cv(t),u=o?Tv:wv(e),l=s?Tv:wv(t);u=u==Ev?fl:u,l=l==Ev?fl:l;var c=u==fl,f=l==fl,d=u==l;if(d&&Sv(e)){if(!Sv(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Hf),o||YA(e)?WA(e,t,r,n,i,a):HA(e,t,u,r,n,i,a);if(!(r&GA)){var h=c&&_v.call(e,"__wrapped__"),g=f&&_v.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,y=g?t.value():t;return a||(a=new Hf),i(p,y,r,n,a)}}return d?(a||(a=new Hf),UA(e,t,r,n,i,a)):!1}var XA=KA,ZA=XA,kv=Pr;function Mv(e,t,r,n,i){return e===t?!0:e==null||t==null||!kv(e)&&!kv(t)?e!==e&&t!==t:ZA(e,t,r,n,Mv,i)}var Uf=Mv,QA=jf,JA=Uf,eP=1,tP=2;function rP(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var u=s[0],l=e[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new QA;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?JA(c,l,eP|tP,n,f):d))return!1}}return!0}var nP=rP,iP=wi;function aP(e){return e===e&&!iP(e)}var Ov=aP,oP=Ov,sP=no;function lP(e){for(var t=sP(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,oP(i)]}return t}var uP=lP;function cP(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Av=cP,fP=nP,dP=uP,hP=Av;function pP(e){var t=dP(e);return t.length==1&&t[0][2]?hP(t[0][0],t[0][1]):function(r){return r===e||fP(r,e,t)}}var gP=pP,mP=En,vP=Pr,yP="[object Symbol]";function bP(e){return typeof e=="symbol"||vP(e)&&mP(e)==yP}var Yf=bP,xP=ir,wP=Yf,CP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SP=/^\w*$/;function EP(e,t){if(xP(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||wP(e)?!0:SP.test(e)||!CP.test(e)||t!=null&&e in Object(t)}var Gf=EP,Pv=If,TP="Expected a function";function qf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(TP);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(qf.Cache||Pv),r}qf.Cache=Pv;var _P=qf,kP=_P,MP=500;function OP(e){var t=kP(e,function(n){return r.size===MP&&r.clear(),n}),r=t.cache;return t}var AP=OP,PP=AP,DP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$P=/\\(\\)?/g,FP=PP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(DP,function(r,n,i,a){t.push(i?a.replace($P,"$1"):n||r)}),t}),IP=FP,Dv=to,jP=Jm,LP=ir,RP=Yf,NP=1/0,$v=Dv?Dv.prototype:void 0,Fv=$v?$v.toString:void 0;function Iv(e){if(typeof e=="string")return e;if(LP(e))return jP(e,Iv)+"";if(RP(e))return Fv?Fv.call(e):"";var t=e+"";return t=="0"&&1/e==-NP?"-0":t}var BP=Iv,VP=BP;function zP(e){return e==null?"":VP(e)}var WP=zP,HP=ir,UP=Gf,YP=IP,GP=WP;function qP(e,t){return HP(e)?e:UP(e,t)?[e]:YP(GP(e))}var jv=qP,KP=Yf,XP=1/0;function ZP(e){if(typeof e=="string"||KP(e))return e;var t=e+"";return t=="0"&&1/e==-XP?"-0":t}var dl=ZP,QP=jv,JP=dl;function eD(e,t){t=QP(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JP(t[r++])];return r&&r==n?e:void 0}var Lv=eD,tD=Lv;function rD(e,t,r){var n=e==null?void 0:tD(e,t);return n===void 0?r:n}var nD=rD;function iD(e,t){return e!=null&&t in Object(e)}var aD=iD,oD=jv,sD=zm,lD=ir,uD=Wm,cD=_f,fD=dl;function dD(e,t,r){t=oD(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=fD(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&cD(i)&&uD(o,i)&&(lD(e)||sD(e)))}var hD=dD,pD=aD,gD=hD;function mD(e,t){return e!=null&&gD(e,t,pD)}var vD=mD,yD=Uf,bD=nD,xD=vD,wD=Gf,CD=Ov,SD=Av,ED=dl,TD=1,_D=2;function kD(e,t){return wD(e)&&CD(t)?SD(ED(e),t):function(r){var n=bD(r,e);return n===void 0&&n===t?xD(r,e):yD(t,n,TD|_D)}}var MD=kD;function OD(e){return function(t){return t==null?void 0:t[e]}}var AD=OD,PD=Lv;function DD(e){return function(t){return PD(t,e)}}var $D=DD,FD=AD,ID=$D,jD=Gf,LD=dl;function RD(e){return jD(e)?FD(LD(e)):ID(e)}var ND=RD,BD=gP,VD=MD,zD=Zm,WD=ir,HD=ND;function UD(e){return typeof e=="function"?e:e==null?zD:typeof e=="object"?WD(e)?VD(e[0],e[1]):BD(e):HD(e)}var YD=UD,GD=il;function qD(e,t){return function(r,n){if(r==null)return r;if(!GD(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var KD=qD,XD=Xm,ZD=KD,QD=ZD(XD),JD=QD,e$=JD,t$=il;function r$(e,t){var r=-1,n=t$(e)?Array(e.length):[];return e$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var n$=r$,i$=Jm,a$=YD,o$=n$,s$=ir;function l$(e,t){var r=s$(e)?i$:o$;return r(e,a$(t))}var u$=l$;Object.defineProperty(eo,"__esModule",{value:!0}),eo.flattenNames=void 0;var c$=R9,f$=hl(c$),d$=Af,h$=hl(d$),p$=H_,g$=hl(p$),m$=u$,v$=hl(m$);function hl(e){return e&&e.__esModule?e:{default:e}}var y$=eo.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,v$.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,g$.default)(n)?(0,h$.default)(n,function(i,a){i===!0&&r.push(a),r.push(a+"-"+i)}):(0,f$.default)(n)&&r.push(n)}),r};eo.default=y$;var io={};function b$(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var x$=b$,w$=Tn,C$=function(){try{var e=w$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),S$=C$,Rv=S$;function E$(e,t,r){t=="__proto__"&&Rv?Rv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Nv=E$,T$=Nv,_$=Df,k$=Object.prototype,M$=k$.hasOwnProperty;function O$(e,t,r){var n=e[t];(!(M$.call(e,t)&&_$(n,r))||r===void 0&&!(t in e))&&T$(e,t,r)}var Bv=O$,A$=Bv,P$=Nv;function D$(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?P$(r,s,u):A$(r,s,u)}return r}var pl=D$,$$=pl,F$=no;function I$(e,t){return e&&$$(t,F$(t),e)}var j$=I$;function L$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var R$=L$,N$=wi,B$=Of,V$=R$,z$=Object.prototype,W$=z$.hasOwnProperty;function H$(e){if(!N$(e))return V$(e);var t=B$(e),r=[];for(var n in e)n=="constructor"&&(t||!W$.call(e,n))||r.push(n);return r}var U$=H$,Y$=Gm,G$=U$,q$=il;function K$(e){return q$(e)?Y$(e,!0):G$(e)}var Kf=K$,X$=pl,Z$=Kf;function Q$(e,t){return e&&X$(t,Z$(t),e)}var J$=Q$,gl={exports:{}};gl.exports,function(e,t){var r=mr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}(gl,gl.exports);var eF=gl.exports;function tF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var rF=tF,nF=pl,iF=Rf;function aF(e,t){return nF(e,iF(e),t)}var oF=aF,sF=uv,lF=Pf,uF=Rf,cF=fv,fF=Object.getOwnPropertySymbols,dF=fF?function(e){for(var t=[];e;)sF(t,uF(e)),e=lF(e);return t}:cF,Vv=dF,hF=pl,pF=Vv;function gF(e,t){return hF(e,pF(e),t)}var mF=gF,vF=cv,yF=Vv,bF=Kf;function xF(e){return vF(e,bF,yF)}var wF=xF,CF=Object.prototype,SF=CF.hasOwnProperty;function EF(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&SF.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var TF=EF,zv=av;function _F(e){var t=new e.constructor(e.byteLength);return new zv(t).set(new zv(e)),t}var Xf=_F,kF=Xf;function MF(e,t){var r=t?kF(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var OF=MF,AF=/\w*$/;function PF(e){var t=new e.constructor(e.source,AF.exec(e));return t.lastIndex=e.lastIndex,t}var DF=PF,Wv=to,Hv=Wv?Wv.prototype:void 0,Uv=Hv?Hv.valueOf:void 0;function $F(e){return Uv?Object(Uv.call(e)):{}}var FF=$F,IF=Xf;function jF(e,t){var r=t?IF(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var LF=jF,RF=Xf,NF=OF,BF=DF,VF=FF,zF=LF,WF="[object Boolean]",HF="[object Date]",UF="[object Map]",YF="[object Number]",GF="[object RegExp]",qF="[object Set]",KF="[object String]",XF="[object Symbol]",ZF="[object ArrayBuffer]",QF="[object DataView]",JF="[object Float32Array]",eI="[object Float64Array]",tI="[object Int8Array]",rI="[object Int16Array]",nI="[object Int32Array]",iI="[object Uint8Array]",aI="[object Uint8ClampedArray]",oI="[object Uint16Array]",sI="[object Uint32Array]";function lI(e,t,r){var n=e.constructor;switch(t){case ZF:return RF(e);case WF:case HF:return new n(+e);case QF:return NF(e,r);case JF:case eI:case tI:case rI:case nI:case iI:case aI:case oI:case sI:return zF(e,r);case UF:return new n;case YF:case KF:return new n(e);case GF:return BF(e);case qF:return new n;case XF:return VF(e)}}var uI=lI,cI=wi,Yv=Object.create,fI=function(){function e(){}return function(t){if(!cI(t))return{};if(Yv)return Yv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dI=fI,hI=dI,pI=Pf,gI=Of;function mI(e){return typeof e.constructor=="function"&&!gI(e)?hI(pI(e)):{}}var vI=mI,yI=cl,bI=Pr,xI="[object Map]";function wI(e){return bI(e)&&yI(e)==xI}var CI=wI,SI=CI,EI=kf,Gv=Mf,qv=Gv&&Gv.isMap,TI=qv?EI(qv):SI,_I=TI,kI=cl,MI=Pr,OI="[object Set]";function AI(e){return MI(e)&&kI(e)==OI}var PI=AI,DI=PI,$I=kf,Kv=Mf,Xv=Kv&&Kv.isSet,FI=Xv?$I(Xv):DI,II=FI,jI=jf,LI=x$,RI=Bv,NI=j$,BI=J$,VI=eF,zI=rF,WI=oF,HI=mF,UI=hv,YI=wF,GI=cl,qI=TF,KI=uI,XI=vI,ZI=ir,QI=Tf,JI=_I,ej=wi,tj=II,rj=no,nj=Kf,ij=1,aj=2,oj=4,Zv="[object Arguments]",sj="[object Array]",lj="[object Boolean]",uj="[object Date]",cj="[object Error]",Qv="[object Function]",fj="[object GeneratorFunction]",dj="[object Map]",hj="[object Number]",Jv="[object Object]",pj="[object RegExp]",gj="[object Set]",mj="[object String]",vj="[object Symbol]",yj="[object WeakMap]",bj="[object ArrayBuffer]",xj="[object DataView]",wj="[object Float32Array]",Cj="[object Float64Array]",Sj="[object Int8Array]",Ej="[object Int16Array]",Tj="[object Int32Array]",_j="[object Uint8Array]",kj="[object Uint8ClampedArray]",Mj="[object Uint16Array]",Oj="[object Uint32Array]",Qe={};Qe[Zv]=Qe[sj]=Qe[bj]=Qe[xj]=Qe[lj]=Qe[uj]=Qe[wj]=Qe[Cj]=Qe[Sj]=Qe[Ej]=Qe[Tj]=Qe[dj]=Qe[hj]=Qe[Jv]=Qe[pj]=Qe[gj]=Qe[mj]=Qe[vj]=Qe[_j]=Qe[kj]=Qe[Mj]=Qe[Oj]=!0,Qe[cj]=Qe[Qv]=Qe[yj]=!1;function ml(e,t,r,n,i,a){var o,s=t&ij,u=t&aj,l=t&oj;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!ej(e))return e;var c=ZI(e);if(c){if(o=qI(e),!s)return zI(e,o)}else{var f=GI(e),d=f==Qv||f==fj;if(QI(e))return VI(e,s);if(f==Jv||f==Zv||d&&!i){if(o=u||d?{}:XI(e),!s)return u?HI(e,BI(o,e)):WI(e,NI(o,e))}else{if(!Qe[f])return i?e:{};o=KI(e,f,s)}}a||(a=new jI);var h=a.get(e);if(h)return h;a.set(e,o),tj(e)?e.forEach(function(y){o.add(ml(y,t,r,y,e,a))}):JI(e)&&e.forEach(function(y,b){o.set(b,ml(y,t,r,b,e,a))});var g=l?u?YI:UI:u?nj:rj,p=c?void 0:g(e);return LI(p||e,function(y,b){p&&(b=y,y=e[b]),RI(o,b,ml(y,t,r,b,e,a))}),o}var Aj=ml,Pj=Aj,Dj=1,$j=4;function Fj(e){return Pj(e,Dj|$j)}var Ij=Fj;Object.defineProperty(io,"__esModule",{value:!0}),io.mergeClasses=void 0;var jj=Af,Lj=ey(jj),Rj=Ij,Nj=ey(Rj),Bj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function ey(e){return e&&e.__esModule?e:{default:e}}var Vj=io.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,Nj.default)(t.default)||{};return r.map(function(i){var a=t[i];return a&&(0,Lj.default)(a,function(o,s){n[s]||(n[s]={}),n[s]=Bj({},n[s],a[s])}),i}),n};io.default=Vj;var ao={};Object.defineProperty(ao,"__esModule",{value:!0}),ao.autoprefix=void 0;var zj=Af,ty=Hj(zj),Wj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Hj(e){return e&&e.__esModule?e:{default:e}}var Uj={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},Yj=ao.autoprefix=function(t){var r={};return(0,ty.default)(t,function(n,i){var a={};(0,ty.default)(n,function(o,s){var u=Uj[s];u?a=Wj({},a,u(o)):a[s]=o}),r[i]=a}),r};ao.default=Yj;var oo={};Object.defineProperty(oo,"__esModule",{value:!0}),oo.hover=void 0;var Gj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qj=m,Zf=Kj(qj);function Kj(e){return e&&e.__esModule?e:{default:e}}function Xj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ry(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Zj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Qj=oo.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Zj(i,n);function i(){var a,o,s,u;Xj(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=ry(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Zf.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Zf.default.createElement(t,Gj({},s.props,s.state)))},o),ry(s,u)}return i}(Zf.default.Component)};oo.default=Qj;var so={};Object.defineProperty(so,"__esModule",{value:!0}),so.active=void 0;var Jj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eL=m,Qf=tL(eL);function tL(e){return e&&e.__esModule?e:{default:e}}function rL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ny(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function nL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iL=so.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){nL(i,n);function i(){var a,o,s,u;rL(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=ny(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Qf.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Qf.default.createElement(t,Jj({},s.props,s.state)))},o),ny(s,u)}return i}(Qf.default.Component)};so.default=iL;var Jf={};Object.defineProperty(Jf,"__esModule",{value:!0});var aL=function(t,r){var n={},i=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Jf.default=aL,Object.defineProperty(er,"__esModule",{value:!0}),er.ReactCSS=er.loop=er.handleActive=ed=er.handleHover=er.hover=void 0;var oL=eo,sL=ki(oL),lL=io,uL=ki(lL),cL=ao,fL=ki(cL),dL=oo,iy=ki(dL),hL=so,pL=ki(hL),gL=Jf,mL=ki(gL);function ki(e){return e&&e.__esModule?e:{default:e}}er.hover=iy.default;var ed=er.handleHover=iy.default;er.handleActive=pL.default,er.loop=mL.default;var vL=er.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var a=(0,sL.default)(n),o=(0,uL.default)(t,a);return(0,fL.default)(o)},me=er.default=vL,yL=function(t,r,n,i,a){var o=a.clientWidth,s=a.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(a.getBoundingClientRect().left+window.pageXOffset),f=l-(a.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>o?h=1:h=Math.round(c*100/o)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},td={},bL=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=n*2,a.height=n*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),a.toDataURL()):null},xL=function(t,r,n,i){var a=t+"-"+r+"-"+n+(i?"-server":"");if(td[a])return td[a];var o=bL(t,r,n,i);return td[a]=o,o},ay=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mi=function(t){var r=t.white,n=t.grey,i=t.size,a=t.renderers,o=t.borderRadius,s=t.boxShadow,u=t.children,l=me({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+xL(r,n,i,a.canvas)+") center left"}}});return m.isValidElement(u)?m.cloneElement(u,ay({},u.props,{style:ay({},u.props.style,l.grid)})):m.createElement("div",{style:l.grid})};Mi.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var wL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function SL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function EL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rd=function(e){EL(t,e);function t(){var r,n,i,a;SL(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return a=(n=(i=oy(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=yL(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),oy(i,a)}return CL(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,a=me({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
109
+ 0 22,12A10,10 0 0,0 12,2Z`}))},O7={default:void 0,success:m.createElement(T7,null),warning:m.createElement(_7,null),error:m.createElement(k7,null),info:m.createElement(M7,null)},Cn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:O7,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:L1,transitionDuration:{enter:225,exit:195}},A7=function(t,r){var n=function(a){return typeof a=="number"||a===null};return n(t)?t:n(r)?r:Cn.autoHideDuration},P7=function(t,r){var n=function(a,o){return o.some(function(s){return typeof a===s})};return n(t,["string","number"])?t:n(t,["object"])?Ge({},Cn.transitionDuration,{},n(r,["object"])&&r,{},t):n(r,["string","number"])?r:n(r,["object"])?Ge({},Cn.transitionDuration,{},r):Cn.transitionDuration},D7=function(t,r){return function(n,i){return i===void 0&&(i=!1),i?Ge({},Cn[n],{},r[n],{},t[n]):n==="autoHideDuration"?A7(t.autoHideDuration,r.autoHideDuration):n==="transitionDuration"?P7(t.transitionDuration,r.transitionDuration):t[n]||r[n]||Cn[n]}};function Ua(e){return Object.entries(e).reduce(function(t,r){var n,i=r[0],a=r[1];return Ge({},t,(n={},n[i]=Gc(a),n))},{})}var yi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},R1=Ua({root:{height:0},entered:{height:"auto"}}),Zc="0px",Qc=175,N1=m.forwardRef(function(e,t){var r=e.children,n=e.in,i=e.onExited,a=m.useRef(null),o=m.useRef(null),s=Kc(t,o),u=function(){return a.current?a.current.clientHeight:0},l=function(p){p.style.height=Zc},c=function(p){var y=u(),b=Bs({timeout:Qc,mode:"enter"}),x=b.duration,C=b.easing;p.style.transitionDuration=typeof x=="string"?x:x+"ms",p.style.height=y+"px",p.style.transitionTimingFunction=C||""},f=function(p){p.style.height="auto"},d=function(p){p.style.height=u()+"px"},h=function(p){F1(p);var y=Bs({timeout:Qc,mode:"exit"}),b=y.duration,x=y.easing;p.style.transitionDuration=typeof b=="string"?b:b+"ms",p.style.height=Zc,p.style.transitionTimingFunction=x||""};return m.createElement(Ns,{in:n,unmountOnExit:!0,onEnter:l,onEntered:f,onEntering:c,onExit:d,onExited:i,onExiting:h,nodeRef:o,timeout:Qc},function(g,p){return m.createElement("div",Object.assign({ref:s,className:bn(R1.root,g==="entered"&&R1.entered),style:Ge({pointerEvents:"all",overflow:"hidden",minHeight:Zc,transition:vi("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!n&&{visibility:"hidden"})},p),m.createElement("div",{ref:a,className:yi.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});N1.displayName="Collapse";var B1={right:"left",left:"right",bottom:"up",top:"down"},$7=function(t){return t.horizontal!=="center"?B1[t.horizontal]:B1[t.vertical]},F7=function(t){return"anchorOrigin"+qc(t)},I7=function(t){t===void 0&&(t={});var r={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(n){return!r[n]}).reduce(function(n,i){var a;return Ge({},n,(a={},a[i]=t[i],a))},{})},j7=function(){};function Ya(e,t){return e.reduce(function(r,n){return n==null?r:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u=[].concat(o);t&&u.indexOf(t)===-1&&u.push(t),r.apply(this,u),n.apply(this,u)}},j7)}var L7=typeof window<"u"?m.useLayoutEffect:m.useEffect;function V1(e){var t=m.useRef(e);return L7(function(){t.current=e}),m.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var z1=m.forwardRef(function(e,t){var r=e.children,n=e.className,i=e.autoHideDuration,a=e.disableWindowBlurListener,o=a===void 0?!1:a,s=e.onClose,u=e.id,l=e.open,c=e.SnackbarProps,f=c===void 0?{}:c,d=m.useRef(),h=V1(function(){s&&s.apply(void 0,arguments)}),g=V1(function(C){!s||C==null||(d.current&&clearTimeout(d.current),d.current=setTimeout(function(){h(null,"timeout",u)},C))});m.useEffect(function(){return l&&g(i),function(){d.current&&clearTimeout(d.current)}},[l,i,g]);var p=function(){d.current&&clearTimeout(d.current)},y=m.useCallback(function(){i!=null&&g(i*.5)},[i,g]),b=function(k){f.onMouseEnter&&f.onMouseEnter(k),p()},x=function(k){f.onMouseLeave&&f.onMouseLeave(k),y()};return m.useEffect(function(){if(!o&&l)return window.addEventListener("focus",y),window.addEventListener("blur",p),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",p)}},[o,y,l]),m.createElement("div",Object.assign({ref:t},f,{className:bn(yi.Snackbar,n),onMouseEnter:b,onMouseLeave:x}),r)});z1.displayName="Snackbar";var Jc,R7=Ua({root:(Jc={display:"flex",flexWrap:"wrap",flexGrow:1},Jc[wn.upSm]={flexGrow:"initial",minWidth:"288px"},Jc)}),ef=m.forwardRef(function(e,t){var r=e.className,n=Wa(e,["className"]);return m.createElement("div",Object.assign({ref:t,className:bn(R7.root,r)},n))});ef.displayName="SnackbarContent";var Ga=Ua({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),W1="notistack-snackbar",H1=m.forwardRef(function(e,t){var r=e.id,n=e.message,i=e.action,a=e.iconVariant,o=e.variant,s=e.hideIconVariant,u=e.style,l=e.className,c=a[o],f=i;return typeof f=="function"&&(f=f(r)),m.createElement(ef,{ref:t,role:"alert","aria-describedby":W1,style:u,className:bn(yi.MuiContent,yi.MuiContentVariant(o),Ga.root,Ga[o],l,!s&&c&&Ga.lessPadding)},m.createElement("div",{id:W1,className:Ga.message},s?null:c,n),f&&m.createElement("div",{className:Ga.action},f))});H1.displayName="MaterialDesignContent";var U1=m.memo(H1),N7=Ua({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),B7=function(t){var r=m.useRef(),n=m.useState(!0),i=n[0],a=n[1],o=Ya([t.snack.onClose,t.onClose]),s=function(){t.snack.requestClose&&o(null,"instructed",t.snack.id)},u=m.useCallback(function(){r.current=setTimeout(function(){a(function(P){return!P})},125)},[]);m.useEffect(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var l=t.snack,c=t.classes,f=t.Component,d=f===void 0?U1:f,h=m.useMemo(function(){return I7(c)},[c]),g=l.open,p=l.SnackbarProps,y=l.TransitionComponent,b=l.TransitionProps,x=l.transitionDuration,C=l.disableWindowBlurListener,k=l.content,w=Wa(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),_=Ge({direction:$7(w.anchorOrigin),timeout:x},b),T=k;typeof T=="function"&&(T=T(w.id,w.message));var O=["onEnter","onEntered","onExit","onExited"].reduce(function(P,F){var Z;return Ge({},P,(Z={},Z[F]=Ya([t.snack[F],t[F]],w.id),Z))},{});return m.createElement(N1,{in:i,onExited:O.onExited},m.createElement(z1,{open:g,id:w.id,disableWindowBlurListener:C,autoHideDuration:w.autoHideDuration,className:bn(N7.wrappedRoot,h.root,h[F7(w.anchorOrigin)]),SnackbarProps:p,onClose:o},m.createElement(y,Object.assign({},_,{appear:!0,in:g,onExit:O.onExit,onExited:u,onEnter:O.onEnter,onEntered:Ya([O.onEntered,s],w.id)}),T||m.createElement(d,Object.assign({},w)))))},qa,tf,Ws,Hs,rf,Ar={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Y1="."+yi.CollapseWrapper,nf=16,Us=Ua({root:(qa={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:vi(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},qa[Y1]={padding:Ar.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},qa.maxWidth="calc(100% - "+Ar.view.default*2+"px)",qa[wn.downXs]={width:"100%",maxWidth:"calc(100% - "+nf*2+"px)"},qa),rootDense:(tf={},tf[Y1]={padding:Ar.snackbar.dense+"px 0px"},tf),top:{top:Ar.view.default-Ar.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Ar.view.default-Ar.snackbar.default+"px",flexDirection:"column-reverse"},left:(Ws={left:Ar.view.default+"px"},Ws[wn.upSm]={alignItems:"flex-start"},Ws[wn.downXs]={left:nf+"px"},Ws),right:(Hs={right:Ar.view.default+"px"},Hs[wn.upSm]={alignItems:"flex-end"},Hs[wn.downXs]={right:nf+"px"},Hs),center:(rf={left:"50%",transform:"translateX(-50%)"},rf[wn.upSm]={alignItems:"center"},rf)}),V7=function(t){var r=t.classes,n=r===void 0?{}:r,i=t.anchorOrigin,a=t.dense,o=t.children,s=bn(yi.SnackbarContainer,Us[i.vertical],Us[i.horizontal],Us.root,n.containerRoot,n["containerAnchorOrigin"+qc(i)],a&&Us.rootDense);return m.createElement("div",{className:s},o)},z7=m.memo(V7),W7=process.env.NODE_ENV!=="production",H7={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},U7=function(e){if(W7){var t=H7[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},G1=function(t){var r=typeof t=="string"||m.isValidElement(t);return!r};A.enqueueSnackbar=void 0,A.closeSnackbar=void 0;var q1=function(e){k1(t,e);function t(n){var i;return i=e.call(this,n)||this,i.enqueueSnackbar=function(a,o){if(o===void 0&&(o={}),a==null)throw new Error("enqueueSnackbar called with invalid argument");var s=G1(a)?a:o,u=G1(a)?a.message:a,l=s.key,c=s.preventDuplicate,f=Wa(s,["key","preventDuplicate"]),d=Ls(l),h=d?l:new Date().getTime()+Math.random(),g=D7(f,i.props),p=Ge({id:h},f,{message:u,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:bn(i.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),i.setState(function(y){if(c===void 0&&i.props.preventDuplicate||c){var b=function(w){return d?w.id===h:w.message===u},x=y.queue.findIndex(b)>-1,C=y.snacks.findIndex(b)>-1;if(x||C)return y}return i.handleDisplaySnack(Ge({},y,{queue:[].concat(y.queue,[p])}))}),h},i.handleDisplaySnack=function(a){var o=a.snacks;return o.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var o=a.queue,s=a.snacks;return o.length>0?Ge({},a,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(c){return!c.open||c.requestClose}))return a;var o=!1,s=!1,u=a.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);u===i.maxSnack&&(process.env.NODE_ENV!=="production"&&U7("NO_PERSIST_ALL"),s=!0);var l=a.snacks.map(function(c){return!o&&(!c.persist||s)?(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),i.props.onClose&&i.props.onClose(null,"maxsnack",c.id),Ge({},c,{open:!1})):Ge({},c,{requestClose:!0})):Ge({},c)});return Ge({},a,{snacks:l})},i.handleEnteredSnack=function(a,o,s){if(!Ls(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(u){var l=u.snacks;return{snacks:l.map(function(c){return c.id===s?Ge({},c,{entered:!0}):Ge({},c)})}})},i.handleCloseSnack=function(a,o,s){i.props.onClose&&i.props.onClose(a,o,s);var u=s===void 0;i.setState(function(l){var c=l.snacks,f=l.queue;return{snacks:c.map(function(d){return!u&&d.id!==s?Ge({},d):d.entered?Ge({},d,{open:!1}):Ge({},d,{requestClose:!0})}),queue:f.filter(function(d){return d.id!==s})}})},i.closeSnackbar=function(a){var o=i.state.snacks.find(function(s){return s.id===a});Ls(a)&&o&&o.onClose&&o.onClose(null,"instructed",a),i.handleCloseSnack(null,"instructed",a)},i.handleExitedSnack=function(a,o){if(!Ls(o))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(s){var u=i.processQueue(Ge({},s,{snacks:s.snacks.filter(function(l){return l.id!==o})}));return u.queue.length===0?u:i.handleDismissOldest(u)})},A.enqueueSnackbar=i.enqueueSnackbar,A.closeSnackbar=i.closeSnackbar,i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(M1(i)),closeSnackbar:i.closeSnackbar.bind(M1(i))}},i}var r=t.prototype;return r.render=function(){var i=this,a=this.state.contextValue,o=this.props,s=o.domRoot,u=o.children,l=o.dense,c=l===void 0?!1:l,f=o.Components,d=f===void 0?{}:f,h=o.classes,g=this.state.snacks.reduce(function(y,b){var x,C=qc(b.anchorOrigin),k=y[C]||[];return Ge({},y,(x={},x[C]=[].concat(k,[b]),x))},{}),p=Object.keys(g).map(function(y){var b=g[y],x=b[0];return m.createElement(z7,{key:y,dense:c,anchorOrigin:x.anchorOrigin,classes:h},b.map(function(C){return m.createElement(B7,{key:C.id,snack:C,classes:h,Component:d[C.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ya([i.handleExitedSnack,i.props.onExited],C.id),onEntered:Ya([i.handleEnteredSnack,i.props.onEntered],C.id)})}))});return m.createElement(A1.Provider,{value:a},u,s?Rh.createPortal(p,s):p)},_1(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Cn.maxSnack}}]),t}(m.Component),Y7=function(){return m.useContext(A1)};const Ka=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ys=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:n,prefix:u,name:s};return t&&!Gs(l)?null:l}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Gs(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:a};return t&&!Gs(s,r)?null:s}return null},Gs=(e,t)=>e?!!((e.provider===""||e.provider.match(Ka))&&(t&&e.prefix===""||e.prefix.match(Ka))&&e.name.match(Ka)):!1,K1=Object.freeze({left:0,top:0,width:16,height:16}),qs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),af=Object.freeze({...K1,...qs}),of=Object.freeze({...af,body:"",hidden:!1});function G7(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function X1(e,t){const r=G7(e,t);for(const n in of)n in qs?n in e&&!(n in r)&&(r[n]=qs[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function q7(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(r[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=n[o]&&n[o].parent,u=s&&a(s);u&&(i[o]=[s].concat(u))}return i[o]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function K7(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=X1(n[s]||i[s],a)}return o(t),r.forEach(o),X1(e,a)}function Z1(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=q7(e);for(const i in n){const a=n[i];a&&(t(i,K7(e,i,a)),r.push(i))}return r}const X7={provider:"",aliases:{},not_found:{},...K1};function sf(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Q1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!sf(e,X7))return null;const r=t.icons;for(const i in r){const a=r[i];if(!i.match(Ka)||typeof a.body!="string"||!sf(a,of))return null}const n=t.aliases||Object.create(null);for(const i in n){const a=n[i],o=a.parent;if(!i.match(Ka)||typeof o!="string"||!r[o]&&!n[o]||!sf(a,of))return null}return t}const J1=Object.create(null);function Z7(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Sn(e,t){const r=J1[e]||(J1[e]=Object.create(null));return r[t]||(r[t]=Z7(e,t))}function lf(e,t){return Q1(t)?Z1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function Q7(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Xa=!1;function em(e){return typeof e=="boolean"&&(Xa=e),Xa}function J7(e){const t=typeof e=="string"?Ys(e,!0,Xa):e;if(t){const r=Sn(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function e8(e,t){const r=Ys(e,!0,Xa);if(!r)return!1;const n=Sn(r.provider,r.prefix);return Q7(n,r.name,t)}function t8(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Xa&&!t&&!e.prefix){let i=!1;return Q1(e)&&(e.prefix="",Z1(e,(a,o)=>{o&&e8(a,o)&&(i=!0)})),i}const r=e.prefix;if(!Gs({provider:t,prefix:r,name:"a"}))return!1;const n=Sn(t,r);return!!lf(n,e)}const tm=Object.freeze({width:null,height:null}),rm=Object.freeze({...tm,...qs}),r8=/(-?[0-9.]*[0-9]+[0-9.]*)/g,n8=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nm(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(r8);if(n===null||!n.length)return e;const i=[];let a=n.shift(),o=n8.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");o=!o}}const i8=e=>e==="unset"||e==="undefined"||e==="none";function a8(e,t){const r={...af,...e},n={...rm,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(g=>{const p=[],y=g.hFlip,b=g.vFlip;let x=g.rotate;y?b?x+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):b&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let C;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:C=i.height/2+i.top,p.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,p.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}x%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),p.length&&(a='<g transform="'+p.join(" ")+'">'+a+"</g>")});const o=n.width,s=n.height,u=i.width,l=i.height;let c,f;o===null?(f=s===null?"1em":s==="auto"?l:s,c=nm(f,u/l)):(c=o==="auto"?u:o,f=s===null?nm(c,l/u):s==="auto"?l:s);const d={},h=(g,p)=>{i8(p)||(d[g]=p.toString())};return h("width",c),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+u.toString()+" "+l.toString(),{attributes:d,body:a}}const o8=/\sid="(\S+)"/g,s8="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let l8=0;function u8(e,t=s8){const r=[];let n;for(;n=o8.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const o=typeof t=="function"?t(a):t+(l8++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const uf=Object.create(null);function c8(e,t){uf[e]=t}function cf(e){return uf[e]||uf[""]}function ff(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const df=Object.create(null),Za=["https://api.simplesvg.com","https://api.unisvg.com"],Ks=[];for(;Za.length>0;)Za.length===1||Math.random()>.5?Ks.push(Za.shift()):Ks.push(Za.pop());df[""]=ff({resources:["https://api.iconify.design"].concat(Ks)});function f8(e,t){const r=ff(t);return r===null?!1:(df[e]=r,!0)}function hf(e){return df[e]}let im=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function d8(e,t){const r=hf(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";n=r.maxURL-i-r.path.length-a.length}return n}function h8(e){return e===404}const p8=(e,t,r)=>{const n=[],i=d8(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return r.forEach((u,l)=>{s+=u.length+1,s>=i&&l>0&&(n.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=u.length),o.icons.push(u)}),n.push(o),n};function g8(e){if(typeof e=="string"){const t=hf(e);if(t)return t.path}return"/"}const m8={prepare:p8,send:(e,t,r)=>{if(!im){r("abort",424);return}let n=g8(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),u=new URLSearchParams({icons:s});n+=a+".json?"+u.toString();break}case"custom":{const a=t.uri;n+=a.slice(0,1)==="/"?a.slice(1):a;break}default:r("abort",400);return}let i=503;im(e+n).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{r(h8(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?r("abort",a):r("next",i)});return}setTimeout(()=>{r("success",a)})}).catch(()=>{r("next",i)})}};function v8(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const a=i.provider,o=i.prefix,s=i.name,u=r[a]||(r[a]=Object.create(null)),l=u[o]||(u[o]=Sn(a,o));let c;s in l.icons?c=t.loaded:o===""||l.missing.has(s)?c=t.missing:c=t.pending;const f={provider:a,prefix:o,name:s};c.push(f)}),t}function am(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function y8(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])o.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))o.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),o.pending.length!==s&&(r||am([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let b8=0;function x8(e,t,r){const n=b8++,i=am.bind(null,r,n);if(!t.pending.length)return i;const a={id:n,icons:t,callback:e,abort:i};return r.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function w8(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const a=typeof i=="string"?Ys(i,t,r):i;a&&n.push(a)}),n}var C8={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function S8(e,t,r,n){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let _=e.resources.slice(0);for(o=[];_.length>1;){const T=Math.floor(Math.random()*_.length);o.push(_[T]),_=_.slice(0,T).concat(_.slice(T+1))}o=o.concat(_)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let u="pending",l=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function g(){f&&(clearTimeout(f),f=null)}function p(){u==="pending"&&(u="aborted"),g(),d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function y(_,T){T&&(h=[]),typeof _=="function"&&h.push(_)}function b(){return{startTime:s,payload:t,status:u,queriesSent:l,queriesPending:d.length,subscribe:y,abort:p}}function x(){u="failed",h.forEach(_=>{_(void 0,c)})}function C(){d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function k(_,T,O){const P=T!=="success";switch(d=d.filter(F=>F!==_),u){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){c=O,x();return}if(P){c=O,d.length||(o.length?w():x());return}if(g(),C(),!e.random){const F=e.resources.indexOf(_.resource);F!==-1&&F!==e.index&&(e.index=F)}u="completed",h.forEach(F=>{F(O)})}function w(){if(u!=="pending")return;g();const _=o.shift();if(_===void 0){if(d.length){f=setTimeout(()=>{g(),u==="pending"&&(C(),x())},e.timeout);return}x();return}const T={status:"pending",resource:_,callback:(O,P)=>{k(T,O,P)}};d.push(T),l++,f=setTimeout(w,e.rotate),r(_,t,T.callback)}return setTimeout(w),b}function om(e){const t={...C8,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,u,l){const c=S8(t,s,u,(f,d)=>{n(),l&&l(f,d)});return r.push(c),c}function a(s){return r.find(u=>s(u))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function sm(){}const pf=Object.create(null);function E8(e){if(!pf[e]){const t=hf(e);if(!t)return;const r=om(t),n={config:t,redundancy:r};pf[e]=n}return pf[e]}function T8(e,t,r){let n,i;if(typeof e=="string"){const a=cf(e);if(!a)return r(void 0,424),sm;i=a.send;const o=E8(e);o&&(n=o.redundancy)}else{const a=ff(e);if(a){n=om(a);const o=e.resources?e.resources[0]:"",s=cf(o);s&&(i=s.send)}}return!n||!i?(r(void 0,424),sm):n.query(t,i,r)().abort}const lm="iconify2",Qa="iconify",um=Qa+"-count",cm=Qa+"-version",fm=36e5,_8=168;function gf(e,t){try{return e.getItem(t)}catch{}}function mf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function dm(e,t){try{e.removeItem(t)}catch{}}function vf(e,t){return mf(e,um,t.toString())}function yf(e){return parseInt(gf(e,um))||0}const Xs={local:!0,session:!0},hm={local:new Set,session:new Set};let bf=!1;function k8(e){bf=e}let Zs=typeof window>"u"?{}:window;function pm(e){const t=e+"Storage";try{if(Zs&&Zs[t]&&typeof Zs[t].length=="number")return Zs[t]}catch{}Xs[e]=!1}function gm(e,t){const r=pm(e);if(!r)return;const n=gf(r,cm);if(n!==lm){if(n){const s=yf(r);for(let u=0;u<s;u++)dm(r,Qa+u.toString())}mf(r,cm,lm),vf(r,0);return}const i=Math.floor(Date.now()/fm)-_8,a=s=>{const u=Qa+s.toString(),l=gf(r,u);if(typeof l=="string"){try{const c=JSON.parse(l);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>i&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}dm(r,u)}};let o=yf(r);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,vf(r,o)):hm[e].add(s))}function mm(){if(!bf){k8(!0);for(const e in Xs)gm(e,t=>{const r=t.data,n=t.provider,i=r.prefix,a=Sn(n,i);if(!lf(a,r).length)return!1;const o=r.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function M8(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Xs)gm(n,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function O8(e,t){bf||mm();function r(n){let i;if(!Xs[n]||!(i=pm(n)))return;const a=hm[n];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=yf(i),!vf(i,o+1))return;const s={cached:Math.floor(Date.now()/fm),provider:e.provider,data:t};return mf(i,Qa+o.toString(),JSON.stringify(s))}t.lastModified&&!M8(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function vm(){}function A8(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,y8(e)}))}function P8(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=cf(r)))return;a.prepare(r,n,i).forEach(s=>{T8(r,s,u=>{if(typeof u!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=lf(e,u);if(!l.length)return;const c=e.pendingIcons;c&&l.forEach(f=>{c.delete(f)}),O8(e,u)}catch(l){console.error(l)}A8(e)})})}))}const D8=(e,t)=>{const r=w8(e,!0,em()),n=v8(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,vm)}),()=>{u=!1}}const i=Object.create(null),a=[];let o,s;return n.pending.forEach(u=>{const{provider:l,prefix:c}=u;if(c===s&&l===o)return;o=l,s=c,a.push(Sn(l,c));const f=i[l]||(i[l]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(u=>{const{provider:l,prefix:c,name:f}=u,d=Sn(l,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][c].push(f))}),a.forEach(u=>{const{provider:l,prefix:c}=u;i[l][c].length&&P8(u,i[l][c])}),t?x8(t,n,a):vm};function $8(e,t){const r={...e};for(const n in t){const i=t[n],a=typeof i;n in tm?(i===null||i&&(a==="string"||a==="number"))&&(r[n]=i):a===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const F8=/[\s,]+/;function I8(e,t){t.split(F8).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function j8(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-r.length));return isNaN(a)?0:(a=a/i,a%1===0?n(a):0)}}return t}function L8(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function R8(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function N8(e){return"data:image/svg+xml,"+R8(e)}function B8(e){return'url("'+N8(e)+'")'}let Ja;function V8(){try{Ja=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Ja=null}}function z8(e){return Ja===void 0&&V8(),Ja?Ja.createHTML(e):e}const ym={...rm,inline:!1},W8={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},H8={display:"inline-block"},xf={backgroundColor:"currentColor"},bm={backgroundColor:"transparent"},xm={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},wm={WebkitMask:xf,mask:xf,background:bm};for(const e in wm){const t=wm[e];for(const r in xm)t[e+r]=xm[r]}const U8={...ym,inline:!0};function Cm(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Y8=(e,t,r,n)=>{const i=r?U8:ym,a=$8(i,t),o=t.mode||"svg",s={},u=t.style||{},l={...o==="svg"?W8:{},ref:n};for(let b in t){const x=t[b];if(x!==void 0)switch(b){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[b]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&I8(a,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?a[b]=j8(x):typeof x=="number"&&(a[b]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete l["aria-hidden"];break;default:i[b]===void 0&&(l[b]=x)}}const c=a8(e,a),f=c.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){l.style={...s,...u},Object.assign(l,f);let b=0,x=t.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:z8(u8(c.body,x?()=>x+"ID"+b++:"iconifyReact"))},m.createElement("svg",l)}const{body:d,width:h,height:g}=e,p=o==="mask"||(o==="bg"?!1:d.indexOf("currentColor")!==-1),y=L8(d,{...f,width:h+"",height:g+""});return l.style={...s,"--svg":B8(y),width:Cm(f.width),height:Cm(f.height),...H8,...p?xf:bm,...u},m.createElement("span",l)};if(em(!0),c8("",m8),typeof document<"u"&&typeof window<"u"){mm();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!t8(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;f8(r,i)||console.error(n)}catch{console.error(n)}}}}class Sm extends m.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Ys(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=J7(i);if(!a){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:n,abort:D8([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:m.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),Y8({...af,...r.data},n,t._inline,t._ref)}}const G8=m.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return m.createElement(Sm,n)});m.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return m.createElement(Sm,n)});const nt=m.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>v.jsx(E.Box,{ref:i,component:G8,icon:e,sx:{width:t,height:t,...r},...n}));nt.displayName="Iconify";const q8=()=>{const e=hi(),t=e.palette.mode==="light";return v.jsx(E.GlobalStyles,{styles:{"#root":{".notistack-MuiContent":{width:"100%",padding:e.spacing(0,2),paddingRight:e.spacing(2),margin:e.spacing(.25,0),boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:t?e.palette.grey[900]:e.palette.common.white,"&.notistack-MuiContent-success, &.notistack-MuiContent-error, &.notistack-MuiContent-warning, &.notistack-MuiContent-info":{color:e.palette.text.primary,backgroundColor:e.palette.background.paper},[e.breakpoints.up("md")]:{minWidth:240}},"#notistack-snackbar":{fontWeight:e.typography.fontWeightMedium},".SnackbarItem-action":{marginRight:0,color:e.palette.action.active,"& svg":{width:20,height:20}}}}})},Qs=({icon:e,color:t})=>v.jsx(E.Box,{component:"span",sx:{mr:1.5,width:40,height:40,display:"flex",borderRadius:1.5,alignItems:"center",justifyContent:"center",color:`${t}.main`,bgcolor:r=>L(r.palette[t].main,.16)},children:v.jsx(nt,{icon:e,width:24})}),Em=({children:e})=>{const t=m.useRef(null),r=n=>()=>{t.current.closeSnackbar(n)};return v.jsxs(v.Fragment,{children:[v.jsx(q8,{}),v.jsx(q1,{ref:t,dense:!0,maxSnack:5,preventDuplicate:!0,autoHideDuration:3e3,variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},iconVariant:{info:v.jsx(Qs,{icon:"eva:info-fill",color:"info"}),success:v.jsx(Qs,{icon:"eva:checkmark-circle-2-fill",color:"success"}),warning:v.jsx(Qs,{icon:"eva:alert-triangle-fill",color:"warning"}),error:v.jsx(Qs,{icon:"eva:alert-circle-fill",color:"error"})},action:n=>v.jsx(E.IconButton,{size:"small",onClick:r(n),sx:{p:.5},children:v.jsx(nt,{icon:"eva:close-fill"})}),children:e})]})};function K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Js(e,t)}function K8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Js(e,t)}var Tm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function X8(e,t){return!!(e===t||Tm(e)&&Tm(t))}function Z8(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!X8(e[r],t[r]))return!1;return!0}function wf(e,t){t===void 0&&(t=Z8);var r,n=[],i,a=!1;function o(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return a&&r===this&&t(s,n)||(i=e.apply(this,s),a=!0,r=this,n=s),i}return o}var Q8=typeof performance=="object"&&typeof performance.now=="function",_m=Q8?function(){return performance.now()}:function(){return Date.now()};function km(e){cancelAnimationFrame(e.id)}function J8(e,t){var r=_m();function n(){_m()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Cf=-1;function Mm(e){if(e===void 0&&(e=!1),Cf===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Cf=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Cf}var bi=null;function Om(e){if(e===void 0&&(e=!1),bi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?bi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?bi="negative":bi="positive-ascending"),document.body.removeChild(t),bi}return bi}process.env.NODE_ENV;var e9=150,t9=function(t,r){return t},el=null,tl=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(el=new WeakSet,tl=new WeakSet);function r9(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){K8(d,f);function d(g){var p;return p=f.call(this,g)||this,p._instanceProps=u(p.props,K(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:K(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=wf(function(y,b,x,C){return p.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:b,visibleStartIndex:x,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=wf(function(y,b,x){return p.props.onScroll({scrollDirection:y,scrollOffset:b,scrollUpdateWasRequested:x})}),p._getItemStyle=void 0,p._getItemStyle=function(y){var b=p.props,x=b.direction,C=b.itemSize,k=b.layout,w=p._getItemStyleCache(l&&C,l&&k,l&&x),_;if(w.hasOwnProperty(y))_=w[y];else{var T=r(p.props,y,p._instanceProps),O=i(p.props,y,p._instanceProps),P=x==="horizontal"||k==="horizontal",F=x==="rtl",Z=P?T:0;w[y]=_={position:"absolute",left:F?void 0:Z,right:F?Z:void 0,top:P?0:T,height:P?"100%":O,width:P?O:"100%"}}return _},p._getItemStyleCache=void 0,p._getItemStyleCache=wf(function(y,b,x){return{}}),p._onScrollHorizontal=function(y){var b=y.currentTarget,x=b.clientWidth,C=b.scrollLeft,k=b.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var _=p.props.direction,T=C;if(_==="rtl")switch(Om()){case"negative":T=-C;break;case"positive-descending":T=k-x-C;break}return T=Math.max(0,Math.min(T,k-x)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(y){var b=y.currentTarget,x=b.clientHeight,C=b.scrollHeight,k=b.scrollTop;p.setState(function(w){if(w.scrollOffset===k)return null;var _=Math.max(0,Math.min(k,C-x));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(y){var b=p.props.outerRef;p._outerRef=y,typeof b=="function"?b(y):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=y)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&km(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=J8(p._resetIsScrolling,e9)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,y){return n9(p,y),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(y){return y.scrollOffset===p?null:{scrollDirection:y.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,y){y===void 0&&(y="auto");var b=this.props,x=b.itemCount,C=b.layout,k=this.state.scrollOffset;p=Math.max(0,Math.min(p,x-1));var w=0;if(this._outerRef){var _=this._outerRef;C==="vertical"?w=_.scrollWidth>_.clientWidth?Mm():0:w=_.scrollHeight>_.clientHeight?Mm():0}this.scrollTo(a(this.props,p,y,k,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,y=p.direction,b=p.initialScrollOffset,x=p.layout;if(typeof b=="number"&&this._outerRef!=null){var C=this._outerRef;y==="horizontal"||x==="horizontal"?C.scrollLeft=b:C.scrollTop=b}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,y=p.direction,b=p.layout,x=this.state,C=x.scrollOffset,k=x.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var w=this._outerRef;if(y==="horizontal"||b==="horizontal")if(y==="rtl")switch(Om()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var _=w.clientWidth,T=w.scrollWidth;w.scrollLeft=T-_-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&km(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,y=p.children,b=p.className,x=p.direction,C=p.height,k=p.innerRef,w=p.innerElementType,_=p.innerTagName,T=p.itemCount,O=p.itemData,P=p.itemKey,F=P===void 0?t9:P,Z=p.layout,be=p.outerElementType,oe=p.outerTagName,Q=p.style,H=p.useIsScrolling,R=p.width,U=this.state.isScrolling,Ce=x==="horizontal"||Z==="horizontal",fe=Ce?this._onScrollHorizontal:this._onScrollVertical,D=this._getRangeToRender(),$=D[0],W=D[1],se=[];if(T>0)for(var X=$;X<=W;X++)se.push(m.createElement(y,{data:O,key:F(X,O),index:X,isScrolling:H?U:void 0,style:this._getItemStyle(X)}));var ce=n(this.props,this._instanceProps);return m.createElement(be||oe||"div",{className:b,onScroll:fe,ref:this._outerRefSetter,style:we({position:"relative",height:C,width:R,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},Q)},m.createElement(w||_||"div",{children:se,ref:k,style:{height:Ce?"100%":ce,pointerEvents:U?"none":void 0,width:Ce?ce:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var y=this._getRangeToRender(),b=y[0],x=y[1],C=y[2],k=y[3];this._callOnItemsRendered(b,x,C,k)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,T=w.scrollOffset,O=w.scrollUpdateWasRequested;this._callOnScroll(_,T,O)}},h._getRangeToRender=function(){var p=this.props,y=p.itemCount,b=p.overscanCount,x=this.state,C=x.isScrolling,k=x.scrollDirection,w=x.scrollOffset;if(y===0)return[0,0,0,0];var _=o(this.props,w,this._instanceProps),T=s(this.props,_,w,this._instanceProps),O=!C||k==="backward"?Math.max(1,b):1,P=!C||k==="forward"?Math.max(1,b):1;return[Math.max(0,_-O),Math.max(0,Math.min(y-1,T+P)),_,T]},d}(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var n9=function(t,r){var n=t.children,i=t.direction,a=t.height,o=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&tl&&!tl.has(c)&&(tl.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||o==="horizontal";switch(i){case"horizontal":case"vertical":el&&!el.has(c)&&(el.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(o){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+o+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof a!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(a===null?"null":typeof a)+'" was specified.'))}},i9=50,xi=function(t,r,n){var i=t,a=i.itemSize,o=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=o[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=a(c);o[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return o[r]},a9=function(t,r,n){var i=r.itemMetadataMap,a=r.lastMeasuredIndex,o=a>0?i[a].offset:0;return o>=n?Am(t,r,a,0,n):o9(t,r,Math.max(0,a),n)},Am=function(t,r,n,i,a){for(;i<=n;){var o=i+Math.floor((n-i)/2),s=xi(t,o,r).offset;if(s===a)return o;s<a?i=o+1:s>a&&(n=o-1)}return i>0?i-1:0},o9=function(t,r,n,i){for(var a=t.itemCount,o=1;n<a&&xi(t,n,r).offset<i;)n+=o,o*=2;return Am(t,r,Math.min(n,a-1),Math.floor(n/2),i)},Pm=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,a=r.estimatedItemSize,o=r.lastMeasuredIndex,s=0;if(o>=n&&(o=n-1),o>=0){var u=i[o];s=u.offset+u.size}var l=n-o-1,c=l*a;return s+c},s9=r9({getItemOffset:function(t,r,n){return xi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:Pm,getOffsetForIndexAndAlignment:function(t,r,n,i,a,o){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=xi(t,r,a),g=Pm(t,a),p=Math.max(0,Math.min(g-d,h.offset)),y=Math.max(0,h.offset-d+h.size+o);switch(n==="smart"&&(i>=y-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return y;case"center":return Math.round(y+(p-y)/2);case"auto":default:return i>=y&&i<=p?i:i<y?y:p}},getStartIndexForOffset:function(t,r,n){return a9(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var a=t.direction,o=t.height,s=t.itemCount,u=t.layout,l=t.width,c=a==="horizontal"||u==="horizontal",f=c?l:o,d=xi(t,r,i),h=n+f,g=d.offset+d.size,p=r;p<s-1&&g<h;)p++,g+=xi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,a={itemMetadataMap:{},estimatedItemSize:i||i9,lastMeasuredIndex:-1};return r.resetAfterIndex=function(o,s){s===void 0&&(s=!0),a.lastMeasuredIndex=Math.min(a.lastMeasuredIndex,o-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},a},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const Dm=8,l9=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:a,...o}=i[0],s={...n,top:n.top+Dm,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?v.jsx(E.ListSubheader,{component:"div",style:s,children:i.group},i.key):v.jsx(E.Typography,{component:"li",...o,noWrap:!0,style:s,children:v.jsxs(E.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,a&&v.jsxs(E.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},$m=m.createContext({}),Fm=m.forwardRef((e,t)=>{const r=m.useContext($m);return v.jsx("div",{ref:t,...e,...r})});Fm.displayName="OuterElementType";const u9=e=>{const t=m.useRef(null);return m.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},c9=m.forwardRef(function(t,r){const{children:n,...i}=t,a=[];n.forEach(h=>{a.push(h),a.push(...h.children||[])});const o=E.useTheme(),s=E.useMediaQuery(o.breakpoints.up("sm")),u=a.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:a.map(c).reduce((h,g)=>h+g,0),d=u9(u);return v.jsx("div",{ref:r,children:v.jsx($m.Provider,{value:i,children:v.jsx(s9,{itemData:a,height:f()+2*Dm,width:"100%",ref:d,outerElementType:Fm,innerElementType:"ul",itemSize:h=>c(a[h]),overscanCount:5,itemCount:u,children:l9})})})}),f9=E.styled(E.Popper)({[`& .${E.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),Sf=m.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:a="Carregando opções...",error:o,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:g,renderOption:p,tabIndex:y,...b},x)=>{const C=w=>w&&typeof w=="object"?w.value.toString():w.toString(),k=m.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((T,O)=>{const P=r.find(F=>F.value.toString()===O.toString());return P?[...T,P]:[...T]},[]):r.find(_=>_.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return v.jsx(E.Autocomplete,{ref:x,value:k,onInputChange:()=>{!n&&!k&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:a,disabled:n||d,disableListWrap:!0,PopperComponent:f9,ListboxComponent:p?void 0:c9,filterOptions:(w,_)=>w.filter(T=>`${T.value} ${T.label}`.toLocaleUpperCase().includes(_.inputValue.toLocaleUpperCase())),onChange:(w,_)=>{if(!_){l(h?[]:null);return}if(Array.isArray(_)){l(_.map(C));return}l(typeof _=="string"?_.toString():_.value.toString())},renderOption:(w,_,T,O)=>p?p(w,_,T,O):[{...w,showValueInLabel:f},_],renderGroup:w=>w,groupBy:c,multiple:h,renderInput:w=>v.jsx(E.TextField,{...w,placeholder:u,fullWidth:!0,error:!!o,helperText:s,label:e,required:g,InputProps:{...w.InputProps,endAdornment:v.jsxs(v.Fragment,{children:[n?v.jsx(E.CircularProgress,{color:"primary",size:20}):null,w.InputProps.endAdornment]})},inputProps:{...w.inputProps,tabIndex:y}}),...b})});Sf.displayName="Autocomplete";var er={},eo={},d9=typeof Aa=="object"&&Aa&&Aa.Object===Object&&Aa,Im=d9,h9=Im,p9=typeof self=="object"&&self&&self.Object===Object&&self,g9=h9||p9||Function("return this")(),mr=g9,m9=mr,v9=m9.Symbol,to=v9,jm=to,Lm=Object.prototype,y9=Lm.hasOwnProperty,b9=Lm.toString,ro=jm?jm.toStringTag:void 0;function x9(e){var t=y9.call(e,ro),r=e[ro];try{e[ro]=void 0;var n=!0}catch{}var i=b9.call(e);return n&&(t?e[ro]=r:delete e[ro]),i}var w9=x9,C9=Object.prototype,S9=C9.toString;function E9(e){return S9.call(e)}var T9=E9,Rm=to,_9=w9,k9=T9,M9="[object Null]",O9="[object Undefined]",Nm=Rm?Rm.toStringTag:void 0;function A9(e){return e==null?e===void 0?O9:M9:Nm&&Nm in Object(e)?_9(e):k9(e)}var En=A9,P9=Array.isArray,ir=P9;function D9(e){return e!=null&&typeof e=="object"}var Pr=D9,$9=En,F9=ir,I9=Pr,j9="[object String]";function L9(e){return typeof e=="string"||!F9(e)&&I9(e)&&$9(e)==j9}var R9=L9;function N9(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var B9=N9,V9=B9,z9=V9(),W9=z9;function H9(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var U9=H9,Y9=En,G9=Pr,q9="[object Arguments]";function K9(e){return G9(e)&&Y9(e)==q9}var X9=K9,Bm=X9,Z9=Pr,Vm=Object.prototype,Q9=Vm.hasOwnProperty,J9=Vm.propertyIsEnumerable,eT=Bm(function(){return arguments}())?Bm:function(e){return Z9(e)&&Q9.call(e,"callee")&&!J9.call(e,"callee")},zm=eT,rl={exports:{}};function tT(){return!1}var rT=tT;rl.exports,function(e,t){var r=mr,n=rT,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(rl,rl.exports);var Ef=rl.exports,nT=9007199254740991,iT=/^(?:0|[1-9]\d*)$/;function aT(e,t){var r=typeof e;return t=t??nT,!!t&&(r=="number"||r!="symbol"&&iT.test(e))&&e>-1&&e%1==0&&e<t}var Wm=aT,oT=9007199254740991;function sT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oT}var Tf=sT,lT=En,uT=Tf,cT=Pr,fT="[object Arguments]",dT="[object Array]",hT="[object Boolean]",pT="[object Date]",gT="[object Error]",mT="[object Function]",vT="[object Map]",yT="[object Number]",bT="[object Object]",xT="[object RegExp]",wT="[object Set]",CT="[object String]",ST="[object WeakMap]",ET="[object ArrayBuffer]",TT="[object DataView]",_T="[object Float32Array]",kT="[object Float64Array]",MT="[object Int8Array]",OT="[object Int16Array]",AT="[object Int32Array]",PT="[object Uint8Array]",DT="[object Uint8ClampedArray]",$T="[object Uint16Array]",FT="[object Uint32Array]",et={};et[_T]=et[kT]=et[MT]=et[OT]=et[AT]=et[PT]=et[DT]=et[$T]=et[FT]=!0,et[fT]=et[dT]=et[ET]=et[hT]=et[TT]=et[pT]=et[gT]=et[mT]=et[vT]=et[yT]=et[bT]=et[xT]=et[wT]=et[CT]=et[ST]=!1;function IT(e){return cT(e)&&uT(e.length)&&!!et[lT(e)]}var jT=IT;function LT(e){return function(t){return e(t)}}var _f=LT,nl={exports:{}};nl.exports,function(e,t){var r=Im,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(nl,nl.exports);var kf=nl.exports,RT=jT,NT=_f,Hm=kf,Um=Hm&&Hm.isTypedArray,BT=Um?NT(Um):RT,Ym=BT,VT=U9,zT=zm,WT=ir,HT=Ef,UT=Wm,YT=Ym,GT=Object.prototype,qT=GT.hasOwnProperty;function KT(e,t){var r=WT(e),n=!r&&zT(e),i=!r&&!n&&HT(e),a=!r&&!n&&!i&&YT(e),o=r||n||i||a,s=o?VT(e.length,String):[],u=s.length;for(var l in e)(t||qT.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||UT(l,u)))&&s.push(l);return s}var Gm=KT,XT=Object.prototype;function ZT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XT;return e===r}var Mf=ZT;function QT(e,t){return function(r){return e(t(r))}}var qm=QT,JT=qm,e_=JT(Object.keys,Object),t_=e_,r_=Mf,n_=t_,i_=Object.prototype,a_=i_.hasOwnProperty;function o_(e){if(!r_(e))return n_(e);var t=[];for(var r in Object(e))a_.call(e,r)&&r!="constructor"&&t.push(r);return t}var s_=o_;function l_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wi=l_,u_=En,c_=wi,f_="[object AsyncFunction]",d_="[object Function]",h_="[object GeneratorFunction]",p_="[object Proxy]";function g_(e){if(!c_(e))return!1;var t=u_(e);return t==d_||t==h_||t==f_||t==p_}var Km=g_,m_=Km,v_=Tf;function y_(e){return e!=null&&v_(e.length)&&!m_(e)}var il=y_,b_=Gm,x_=s_,w_=il;function C_(e){return w_(e)?b_(e):x_(e)}var no=C_,S_=W9,E_=no;function T_(e,t){return e&&S_(e,t,E_)}var Xm=T_;function __(e){return e}var Zm=__,k_=Zm;function M_(e){return typeof e=="function"?e:k_}var O_=M_,A_=Xm,P_=O_;function D_(e,t){return e&&A_(e,P_(t))}var Of=D_,$_=qm,F_=$_(Object.getPrototypeOf,Object),Af=F_,I_=En,j_=Af,L_=Pr,R_="[object Object]",N_=Function.prototype,B_=Object.prototype,Qm=N_.toString,V_=B_.hasOwnProperty,z_=Qm.call(Object);function W_(e){if(!L_(e)||I_(e)!=R_)return!1;var t=j_(e);if(t===null)return!0;var r=V_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qm.call(r)==z_}var H_=W_;function U_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Jm=U_;function Y_(){this.__data__=[],this.size=0}var G_=Y_;function q_(e,t){return e===t||e!==e&&t!==t}var Pf=q_,K_=Pf;function X_(e,t){for(var r=e.length;r--;)if(K_(e[r][0],t))return r;return-1}var al=X_,Z_=al,Q_=Array.prototype,J_=Q_.splice;function ek(e){var t=this.__data__,r=Z_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():J_.call(t,r,1),--this.size,!0}var tk=ek,rk=al;function nk(e){var t=this.__data__,r=rk(t,e);return r<0?void 0:t[r][1]}var ik=nk,ak=al;function ok(e){return ak(this.__data__,e)>-1}var sk=ok,lk=al;function uk(e,t){var r=this.__data__,n=lk(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ck=uk,fk=G_,dk=tk,hk=ik,pk=sk,gk=ck;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=fk,Ci.prototype.delete=dk,Ci.prototype.get=hk,Ci.prototype.has=pk,Ci.prototype.set=gk;var ol=Ci,mk=ol;function vk(){this.__data__=new mk,this.size=0}var yk=vk;function bk(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var xk=bk;function wk(e){return this.__data__.get(e)}var Ck=wk;function Sk(e){return this.__data__.has(e)}var Ek=Sk,Tk=mr,_k=Tk["__core-js_shared__"],kk=_k,Df=kk,ev=function(){var e=/[^.]+$/.exec(Df&&Df.keys&&Df.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Mk(e){return!!ev&&ev in e}var Ok=Mk,Ak=Function.prototype,Pk=Ak.toString;function Dk(e){if(e!=null){try{return Pk.call(e)}catch{}try{return e+""}catch{}}return""}var tv=Dk,$k=Km,Fk=Ok,Ik=wi,jk=tv,Lk=/[\\^$.*+?()[\]{}|]/g,Rk=/^\[object .+?Constructor\]$/,Nk=Function.prototype,Bk=Object.prototype,Vk=Nk.toString,zk=Bk.hasOwnProperty,Wk=RegExp("^"+Vk.call(zk).replace(Lk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hk(e){if(!Ik(e)||Fk(e))return!1;var t=$k(e)?Wk:Rk;return t.test(jk(e))}var Uk=Hk;function Yk(e,t){return e==null?void 0:e[t]}var Gk=Yk,qk=Uk,Kk=Gk;function Xk(e,t){var r=Kk(e,t);return qk(r)?r:void 0}var Tn=Xk,Zk=Tn,Qk=mr,Jk=Zk(Qk,"Map"),$f=Jk,eM=Tn,tM=eM(Object,"create"),sl=tM,rv=sl;function rM(){this.__data__=rv?rv(null):{},this.size=0}var nM=rM;function iM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var aM=iM,oM=sl,sM="__lodash_hash_undefined__",lM=Object.prototype,uM=lM.hasOwnProperty;function cM(e){var t=this.__data__;if(oM){var r=t[e];return r===sM?void 0:r}return uM.call(t,e)?t[e]:void 0}var fM=cM,dM=sl,hM=Object.prototype,pM=hM.hasOwnProperty;function gM(e){var t=this.__data__;return dM?t[e]!==void 0:pM.call(t,e)}var mM=gM,vM=sl,yM="__lodash_hash_undefined__";function bM(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vM&&t===void 0?yM:t,this}var xM=bM,wM=nM,CM=aM,SM=fM,EM=mM,TM=xM;function Si(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Si.prototype.clear=wM,Si.prototype.delete=CM,Si.prototype.get=SM,Si.prototype.has=EM,Si.prototype.set=TM;var _M=Si,nv=_M,kM=ol,MM=$f;function OM(){this.size=0,this.__data__={hash:new nv,map:new(MM||kM),string:new nv}}var AM=OM;function PM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DM=PM,$M=DM;function FM(e,t){var r=e.__data__;return $M(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ll=FM,IM=ll;function jM(e){var t=IM(this,e).delete(e);return this.size-=t?1:0,t}var LM=jM,RM=ll;function NM(e){return RM(this,e).get(e)}var BM=NM,VM=ll;function zM(e){return VM(this,e).has(e)}var WM=zM,HM=ll;function UM(e,t){var r=HM(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var YM=UM,GM=AM,qM=LM,KM=BM,XM=WM,ZM=YM;function Ei(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ei.prototype.clear=GM,Ei.prototype.delete=qM,Ei.prototype.get=KM,Ei.prototype.has=XM,Ei.prototype.set=ZM;var Ff=Ei,QM=ol,JM=$f,eO=Ff,tO=200;function rO(e,t){var r=this.__data__;if(r instanceof QM){var n=r.__data__;if(!JM||n.length<tO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eO(n)}return r.set(e,t),this.size=r.size,this}var nO=rO,iO=ol,aO=yk,oO=xk,sO=Ck,lO=Ek,uO=nO;function Ti(e){var t=this.__data__=new iO(e);this.size=t.size}Ti.prototype.clear=aO,Ti.prototype.delete=oO,Ti.prototype.get=sO,Ti.prototype.has=lO,Ti.prototype.set=uO;var If=Ti,cO="__lodash_hash_undefined__";function fO(e){return this.__data__.set(e,cO),this}var dO=fO;function hO(e){return this.__data__.has(e)}var pO=hO,gO=Ff,mO=dO,vO=pO;function ul(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gO;++t<r;)this.add(e[t])}ul.prototype.add=ul.prototype.push=mO,ul.prototype.has=vO;var yO=ul;function bO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var xO=bO;function wO(e,t){return e.has(t)}var CO=wO,SO=yO,EO=xO,TO=CO,_O=1,kO=2;function MO(e,t,r,n,i,a){var o=r&_O,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&kO?new SO:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(n)var y=o?n(p,g,f,t,e,a):n(g,p,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!EO(t,function(b,x){if(!TO(h,x)&&(g===b||i(g,b,r,n,a)))return h.push(x)})){d=!1;break}}else if(!(g===p||i(g,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var iv=MO,OO=mr,AO=OO.Uint8Array,av=AO;function PO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var DO=PO;function $O(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var FO=$O,ov=to,sv=av,IO=Pf,jO=iv,LO=DO,RO=FO,NO=1,BO=2,VO="[object Boolean]",zO="[object Date]",WO="[object Error]",HO="[object Map]",UO="[object Number]",YO="[object RegExp]",GO="[object Set]",qO="[object String]",KO="[object Symbol]",XO="[object ArrayBuffer]",ZO="[object DataView]",lv=ov?ov.prototype:void 0,jf=lv?lv.valueOf:void 0;function QO(e,t,r,n,i,a,o){switch(r){case ZO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case XO:return!(e.byteLength!=t.byteLength||!a(new sv(e),new sv(t)));case VO:case zO:case UO:return IO(+e,+t);case WO:return e.name==t.name&&e.message==t.message;case YO:case qO:return e==t+"";case HO:var s=LO;case GO:var u=n&NO;if(s||(s=RO),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;n|=BO,o.set(e,t);var c=jO(s(e),s(t),n,i,a,o);return o.delete(e),c;case KO:if(jf)return jf.call(e)==jf.call(t)}return!1}var JO=QO;function eA(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var uv=eA,tA=uv,rA=ir;function nA(e,t,r){var n=t(e);return rA(e)?n:tA(n,r(e))}var cv=nA;function iA(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var aA=iA;function oA(){return[]}var fv=oA,sA=aA,lA=fv,uA=Object.prototype,cA=uA.propertyIsEnumerable,dv=Object.getOwnPropertySymbols,fA=dv?function(e){return e==null?[]:(e=Object(e),sA(dv(e),function(t){return cA.call(e,t)}))}:lA,Lf=fA,dA=cv,hA=Lf,pA=no;function gA(e){return dA(e,pA,hA)}var hv=gA,pv=hv,mA=1,vA=Object.prototype,yA=vA.hasOwnProperty;function bA(e,t,r,n,i,a){var o=r&mA,s=pv(e),u=s.length,l=pv(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:yA.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<u;){d=s[f];var b=e[d],x=t[d];if(n)var C=o?n(x,b,d,t,e,a):n(b,x,d,e,t,a);if(!(C===void 0?b===x||i(b,x,r,n,a):C)){p=!1;break}y||(y=d=="constructor")}if(p&&!y){var k=e.constructor,w=t.constructor;k!=w&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var xA=bA,wA=Tn,CA=mr,SA=wA(CA,"DataView"),EA=SA,TA=Tn,_A=mr,kA=TA(_A,"Promise"),MA=kA,OA=Tn,AA=mr,PA=OA(AA,"Set"),DA=PA,$A=Tn,FA=mr,IA=$A(FA,"WeakMap"),jA=IA,Rf=EA,Nf=$f,Bf=MA,Vf=DA,zf=jA,gv=En,_i=tv,mv="[object Map]",LA="[object Object]",vv="[object Promise]",yv="[object Set]",bv="[object WeakMap]",xv="[object DataView]",RA=_i(Rf),NA=_i(Nf),BA=_i(Bf),VA=_i(Vf),zA=_i(zf),_n=gv;(Rf&&_n(new Rf(new ArrayBuffer(1)))!=xv||Nf&&_n(new Nf)!=mv||Bf&&_n(Bf.resolve())!=vv||Vf&&_n(new Vf)!=yv||zf&&_n(new zf)!=bv)&&(_n=function(e){var t=gv(e),r=t==LA?e.constructor:void 0,n=r?_i(r):"";if(n)switch(n){case RA:return xv;case NA:return mv;case BA:return vv;case VA:return yv;case zA:return bv}return t});var cl=_n,Wf=If,WA=iv,HA=JO,UA=xA,wv=cl,Cv=ir,Sv=Ef,YA=Ym,GA=1,Ev="[object Arguments]",Tv="[object Array]",fl="[object Object]",qA=Object.prototype,_v=qA.hasOwnProperty;function KA(e,t,r,n,i,a){var o=Cv(e),s=Cv(t),u=o?Tv:wv(e),l=s?Tv:wv(t);u=u==Ev?fl:u,l=l==Ev?fl:l;var c=u==fl,f=l==fl,d=u==l;if(d&&Sv(e)){if(!Sv(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Wf),o||YA(e)?WA(e,t,r,n,i,a):HA(e,t,u,r,n,i,a);if(!(r&GA)){var h=c&&_v.call(e,"__wrapped__"),g=f&&_v.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,y=g?t.value():t;return a||(a=new Wf),i(p,y,r,n,a)}}return d?(a||(a=new Wf),UA(e,t,r,n,i,a)):!1}var XA=KA,ZA=XA,kv=Pr;function Mv(e,t,r,n,i){return e===t?!0:e==null||t==null||!kv(e)&&!kv(t)?e!==e&&t!==t:ZA(e,t,r,n,Mv,i)}var Hf=Mv,QA=If,JA=Hf,eP=1,tP=2;function rP(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var u=s[0],l=e[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new QA;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?JA(c,l,eP|tP,n,f):d))return!1}}return!0}var nP=rP,iP=wi;function aP(e){return e===e&&!iP(e)}var Ov=aP,oP=Ov,sP=no;function lP(e){for(var t=sP(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,oP(i)]}return t}var uP=lP;function cP(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Av=cP,fP=nP,dP=uP,hP=Av;function pP(e){var t=dP(e);return t.length==1&&t[0][2]?hP(t[0][0],t[0][1]):function(r){return r===e||fP(r,e,t)}}var gP=pP,mP=En,vP=Pr,yP="[object Symbol]";function bP(e){return typeof e=="symbol"||vP(e)&&mP(e)==yP}var Uf=bP,xP=ir,wP=Uf,CP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SP=/^\w*$/;function EP(e,t){if(xP(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||wP(e)?!0:SP.test(e)||!CP.test(e)||t!=null&&e in Object(t)}var Yf=EP,Pv=Ff,TP="Expected a function";function Gf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(TP);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Gf.Cache||Pv),r}Gf.Cache=Pv;var _P=Gf,kP=_P,MP=500;function OP(e){var t=kP(e,function(n){return r.size===MP&&r.clear(),n}),r=t.cache;return t}var AP=OP,PP=AP,DP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$P=/\\(\\)?/g,FP=PP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(DP,function(r,n,i,a){t.push(i?a.replace($P,"$1"):n||r)}),t}),IP=FP,Dv=to,jP=Jm,LP=ir,RP=Uf,NP=1/0,$v=Dv?Dv.prototype:void 0,Fv=$v?$v.toString:void 0;function Iv(e){if(typeof e=="string")return e;if(LP(e))return jP(e,Iv)+"";if(RP(e))return Fv?Fv.call(e):"";var t=e+"";return t=="0"&&1/e==-NP?"-0":t}var BP=Iv,VP=BP;function zP(e){return e==null?"":VP(e)}var WP=zP,HP=ir,UP=Yf,YP=IP,GP=WP;function qP(e,t){return HP(e)?e:UP(e,t)?[e]:YP(GP(e))}var jv=qP,KP=Uf,XP=1/0;function ZP(e){if(typeof e=="string"||KP(e))return e;var t=e+"";return t=="0"&&1/e==-XP?"-0":t}var dl=ZP,QP=jv,JP=dl;function eD(e,t){t=QP(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JP(t[r++])];return r&&r==n?e:void 0}var Lv=eD,tD=Lv;function rD(e,t,r){var n=e==null?void 0:tD(e,t);return n===void 0?r:n}var nD=rD;function iD(e,t){return e!=null&&t in Object(e)}var aD=iD,oD=jv,sD=zm,lD=ir,uD=Wm,cD=Tf,fD=dl;function dD(e,t,r){t=oD(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=fD(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&cD(i)&&uD(o,i)&&(lD(e)||sD(e)))}var hD=dD,pD=aD,gD=hD;function mD(e,t){return e!=null&&gD(e,t,pD)}var vD=mD,yD=Hf,bD=nD,xD=vD,wD=Yf,CD=Ov,SD=Av,ED=dl,TD=1,_D=2;function kD(e,t){return wD(e)&&CD(t)?SD(ED(e),t):function(r){var n=bD(r,e);return n===void 0&&n===t?xD(r,e):yD(t,n,TD|_D)}}var MD=kD;function OD(e){return function(t){return t==null?void 0:t[e]}}var AD=OD,PD=Lv;function DD(e){return function(t){return PD(t,e)}}var $D=DD,FD=AD,ID=$D,jD=Yf,LD=dl;function RD(e){return jD(e)?FD(LD(e)):ID(e)}var ND=RD,BD=gP,VD=MD,zD=Zm,WD=ir,HD=ND;function UD(e){return typeof e=="function"?e:e==null?zD:typeof e=="object"?WD(e)?VD(e[0],e[1]):BD(e):HD(e)}var YD=UD,GD=il;function qD(e,t){return function(r,n){if(r==null)return r;if(!GD(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var KD=qD,XD=Xm,ZD=KD,QD=ZD(XD),JD=QD,e$=JD,t$=il;function r$(e,t){var r=-1,n=t$(e)?Array(e.length):[];return e$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var n$=r$,i$=Jm,a$=YD,o$=n$,s$=ir;function l$(e,t){var r=s$(e)?i$:o$;return r(e,a$(t))}var u$=l$;Object.defineProperty(eo,"__esModule",{value:!0}),eo.flattenNames=void 0;var c$=R9,f$=hl(c$),d$=Of,h$=hl(d$),p$=H_,g$=hl(p$),m$=u$,v$=hl(m$);function hl(e){return e&&e.__esModule?e:{default:e}}var y$=eo.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,v$.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,g$.default)(n)?(0,h$.default)(n,function(i,a){i===!0&&r.push(a),r.push(a+"-"+i)}):(0,f$.default)(n)&&r.push(n)}),r};eo.default=y$;var io={};function b$(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var x$=b$,w$=Tn,C$=function(){try{var e=w$(Object,"defineProperty");return e({},"",{}),e}catch{}}(),S$=C$,Rv=S$;function E$(e,t,r){t=="__proto__"&&Rv?Rv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Nv=E$,T$=Nv,_$=Pf,k$=Object.prototype,M$=k$.hasOwnProperty;function O$(e,t,r){var n=e[t];(!(M$.call(e,t)&&_$(n,r))||r===void 0&&!(t in e))&&T$(e,t,r)}var Bv=O$,A$=Bv,P$=Nv;function D$(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?P$(r,s,u):A$(r,s,u)}return r}var pl=D$,$$=pl,F$=no;function I$(e,t){return e&&$$(t,F$(t),e)}var j$=I$;function L$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var R$=L$,N$=wi,B$=Mf,V$=R$,z$=Object.prototype,W$=z$.hasOwnProperty;function H$(e){if(!N$(e))return V$(e);var t=B$(e),r=[];for(var n in e)n=="constructor"&&(t||!W$.call(e,n))||r.push(n);return r}var U$=H$,Y$=Gm,G$=U$,q$=il;function K$(e){return q$(e)?Y$(e,!0):G$(e)}var qf=K$,X$=pl,Z$=qf;function Q$(e,t){return e&&X$(t,Z$(t),e)}var J$=Q$,gl={exports:{}};gl.exports,function(e,t){var r=mr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}(gl,gl.exports);var eF=gl.exports;function tF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var rF=tF,nF=pl,iF=Lf;function aF(e,t){return nF(e,iF(e),t)}var oF=aF,sF=uv,lF=Af,uF=Lf,cF=fv,fF=Object.getOwnPropertySymbols,dF=fF?function(e){for(var t=[];e;)sF(t,uF(e)),e=lF(e);return t}:cF,Vv=dF,hF=pl,pF=Vv;function gF(e,t){return hF(e,pF(e),t)}var mF=gF,vF=cv,yF=Vv,bF=qf;function xF(e){return vF(e,bF,yF)}var wF=xF,CF=Object.prototype,SF=CF.hasOwnProperty;function EF(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&SF.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var TF=EF,zv=av;function _F(e){var t=new e.constructor(e.byteLength);return new zv(t).set(new zv(e)),t}var Kf=_F,kF=Kf;function MF(e,t){var r=t?kF(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var OF=MF,AF=/\w*$/;function PF(e){var t=new e.constructor(e.source,AF.exec(e));return t.lastIndex=e.lastIndex,t}var DF=PF,Wv=to,Hv=Wv?Wv.prototype:void 0,Uv=Hv?Hv.valueOf:void 0;function $F(e){return Uv?Object(Uv.call(e)):{}}var FF=$F,IF=Kf;function jF(e,t){var r=t?IF(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var LF=jF,RF=Kf,NF=OF,BF=DF,VF=FF,zF=LF,WF="[object Boolean]",HF="[object Date]",UF="[object Map]",YF="[object Number]",GF="[object RegExp]",qF="[object Set]",KF="[object String]",XF="[object Symbol]",ZF="[object ArrayBuffer]",QF="[object DataView]",JF="[object Float32Array]",eI="[object Float64Array]",tI="[object Int8Array]",rI="[object Int16Array]",nI="[object Int32Array]",iI="[object Uint8Array]",aI="[object Uint8ClampedArray]",oI="[object Uint16Array]",sI="[object Uint32Array]";function lI(e,t,r){var n=e.constructor;switch(t){case ZF:return RF(e);case WF:case HF:return new n(+e);case QF:return NF(e,r);case JF:case eI:case tI:case rI:case nI:case iI:case aI:case oI:case sI:return zF(e,r);case UF:return new n;case YF:case KF:return new n(e);case GF:return BF(e);case qF:return new n;case XF:return VF(e)}}var uI=lI,cI=wi,Yv=Object.create,fI=function(){function e(){}return function(t){if(!cI(t))return{};if(Yv)return Yv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),dI=fI,hI=dI,pI=Af,gI=Mf;function mI(e){return typeof e.constructor=="function"&&!gI(e)?hI(pI(e)):{}}var vI=mI,yI=cl,bI=Pr,xI="[object Map]";function wI(e){return bI(e)&&yI(e)==xI}var CI=wI,SI=CI,EI=_f,Gv=kf,qv=Gv&&Gv.isMap,TI=qv?EI(qv):SI,_I=TI,kI=cl,MI=Pr,OI="[object Set]";function AI(e){return MI(e)&&kI(e)==OI}var PI=AI,DI=PI,$I=_f,Kv=kf,Xv=Kv&&Kv.isSet,FI=Xv?$I(Xv):DI,II=FI,jI=If,LI=x$,RI=Bv,NI=j$,BI=J$,VI=eF,zI=rF,WI=oF,HI=mF,UI=hv,YI=wF,GI=cl,qI=TF,KI=uI,XI=vI,ZI=ir,QI=Ef,JI=_I,ej=wi,tj=II,rj=no,nj=qf,ij=1,aj=2,oj=4,Zv="[object Arguments]",sj="[object Array]",lj="[object Boolean]",uj="[object Date]",cj="[object Error]",Qv="[object Function]",fj="[object GeneratorFunction]",dj="[object Map]",hj="[object Number]",Jv="[object Object]",pj="[object RegExp]",gj="[object Set]",mj="[object String]",vj="[object Symbol]",yj="[object WeakMap]",bj="[object ArrayBuffer]",xj="[object DataView]",wj="[object Float32Array]",Cj="[object Float64Array]",Sj="[object Int8Array]",Ej="[object Int16Array]",Tj="[object Int32Array]",_j="[object Uint8Array]",kj="[object Uint8ClampedArray]",Mj="[object Uint16Array]",Oj="[object Uint32Array]",Qe={};Qe[Zv]=Qe[sj]=Qe[bj]=Qe[xj]=Qe[lj]=Qe[uj]=Qe[wj]=Qe[Cj]=Qe[Sj]=Qe[Ej]=Qe[Tj]=Qe[dj]=Qe[hj]=Qe[Jv]=Qe[pj]=Qe[gj]=Qe[mj]=Qe[vj]=Qe[_j]=Qe[kj]=Qe[Mj]=Qe[Oj]=!0,Qe[cj]=Qe[Qv]=Qe[yj]=!1;function ml(e,t,r,n,i,a){var o,s=t&ij,u=t&aj,l=t&oj;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!ej(e))return e;var c=ZI(e);if(c){if(o=qI(e),!s)return zI(e,o)}else{var f=GI(e),d=f==Qv||f==fj;if(QI(e))return VI(e,s);if(f==Jv||f==Zv||d&&!i){if(o=u||d?{}:XI(e),!s)return u?HI(e,BI(o,e)):WI(e,NI(o,e))}else{if(!Qe[f])return i?e:{};o=KI(e,f,s)}}a||(a=new jI);var h=a.get(e);if(h)return h;a.set(e,o),tj(e)?e.forEach(function(y){o.add(ml(y,t,r,y,e,a))}):JI(e)&&e.forEach(function(y,b){o.set(b,ml(y,t,r,b,e,a))});var g=l?u?YI:UI:u?nj:rj,p=c?void 0:g(e);return LI(p||e,function(y,b){p&&(b=y,y=e[b]),RI(o,b,ml(y,t,r,b,e,a))}),o}var Aj=ml,Pj=Aj,Dj=1,$j=4;function Fj(e){return Pj(e,Dj|$j)}var Ij=Fj;Object.defineProperty(io,"__esModule",{value:!0}),io.mergeClasses=void 0;var jj=Of,Lj=ey(jj),Rj=Ij,Nj=ey(Rj),Bj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function ey(e){return e&&e.__esModule?e:{default:e}}var Vj=io.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,Nj.default)(t.default)||{};return r.map(function(i){var a=t[i];return a&&(0,Lj.default)(a,function(o,s){n[s]||(n[s]={}),n[s]=Bj({},n[s],a[s])}),i}),n};io.default=Vj;var ao={};Object.defineProperty(ao,"__esModule",{value:!0}),ao.autoprefix=void 0;var zj=Of,ty=Hj(zj),Wj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Hj(e){return e&&e.__esModule?e:{default:e}}var Uj={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},Yj=ao.autoprefix=function(t){var r={};return(0,ty.default)(t,function(n,i){var a={};(0,ty.default)(n,function(o,s){var u=Uj[s];u?a=Wj({},a,u(o)):a[s]=o}),r[i]=a}),r};ao.default=Yj;var oo={};Object.defineProperty(oo,"__esModule",{value:!0}),oo.hover=void 0;var Gj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qj=m,Xf=Kj(qj);function Kj(e){return e&&e.__esModule?e:{default:e}}function Xj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ry(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Zj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Qj=oo.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Zj(i,n);function i(){var a,o,s,u;Xj(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=ry(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Xf.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Xf.default.createElement(t,Gj({},s.props,s.state)))},o),ry(s,u)}return i}(Xf.default.Component)};oo.default=Qj;var so={};Object.defineProperty(so,"__esModule",{value:!0}),so.active=void 0;var Jj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eL=m,Zf=tL(eL);function tL(e){return e&&e.__esModule?e:{default:e}}function rL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ny(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function nL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iL=so.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){nL(i,n);function i(){var a,o,s,u;rL(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=ny(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Zf.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Zf.default.createElement(t,Jj({},s.props,s.state)))},o),ny(s,u)}return i}(Zf.default.Component)};so.default=iL;var Qf={};Object.defineProperty(Qf,"__esModule",{value:!0});var aL=function(t,r){var n={},i=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Qf.default=aL,Object.defineProperty(er,"__esModule",{value:!0}),er.ReactCSS=er.loop=er.handleActive=Jf=er.handleHover=er.hover=void 0;var oL=eo,sL=ki(oL),lL=io,uL=ki(lL),cL=ao,fL=ki(cL),dL=oo,iy=ki(dL),hL=so,pL=ki(hL),gL=Qf,mL=ki(gL);function ki(e){return e&&e.__esModule?e:{default:e}}er.hover=iy.default;var Jf=er.handleHover=iy.default;er.handleActive=pL.default,er.loop=mL.default;var vL=er.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var a=(0,sL.default)(n),o=(0,uL.default)(t,a);return(0,fL.default)(o)},me=er.default=vL,yL=function(t,r,n,i,a){var o=a.clientWidth,s=a.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(a.getBoundingClientRect().left+window.pageXOffset),f=l-(a.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>o?h=1:h=Math.round(c*100/o)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},ed={},bL=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var a=i?new i:document.createElement("canvas");a.width=n*2,a.height=n*2;var o=a.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,a.width,a.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),a.toDataURL()):null},xL=function(t,r,n,i){var a=t+"-"+r+"-"+n+(i?"-server":"");if(ed[a])return ed[a];var o=bL(t,r,n,i);return ed[a]=o,o},ay=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mi=function(t){var r=t.white,n=t.grey,i=t.size,a=t.renderers,o=t.borderRadius,s=t.boxShadow,u=t.children,l=me({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+xL(r,n,i,a.canvas)+") center left"}}});return m.isValidElement(u)?m.cloneElement(u,ay({},u.props,{style:ay({},u.props.style,l.grid)})):m.createElement("div",{style:l.grid})};Mi.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var wL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function SL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function EL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var td=function(e){EL(t,e);function t(){var r,n,i,a;SL(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return a=(n=(i=oy(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=yL(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),oy(i,a)}return CL(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,a=me({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
110
110
  rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
111
111
  rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:wL({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return m.createElement("div",{style:a.alpha},m.createElement("div",{style:a.checkboard},m.createElement(Mi,{renderers:this.props.renderers})),m.createElement("div",{style:a.gradient}),m.createElement("div",{style:a.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement("div",{style:a.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:a.slider}))))}}]),t}(m.PureComponent||m.Component),TL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var AL=1,sy=38,PL=40,DL=[sy,PL],$L=function(t){return DL.indexOf(t)>-1},FL=function(t){return Number(String(t).replace(/%/g,""))},IL=1,Me=function(e){OL(t,e);function t(r){kL(this,t);var n=ML(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(i){n.setUpdatedValue(i.target.value,i)},n.handleKeyDown=function(i){var a=FL(i.target.value);if(!isNaN(a)&&$L(i.keyCode)){var o=n.getArrowOffset(),s=i.keyCode===sy?a+o:a-o;n.setUpdatedValue(s,i)}},n.handleDrag=function(i){if(n.props.dragLabel){var a=Math.round(n.props.value+i.movementX);a>=0&&a<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(a),i)}},n.handleMouseDown=function(i){n.props.dragLabel&&(i.preventDefault(),n.handleDrag(i),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+IL++,n}return TL(t,[{key:"componentDidUpdate",value:function(n,i){this.props.value!==this.state.value&&(n.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return _L({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||AL}},{key:"setUpdatedValue",value:function(n,i){var a=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(a,i),this.setState({value:n})}},{key:"render",value:function(){var n=this,i=me({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return m.createElement("div",{style:i.wrap},m.createElement("input",{id:this.inputId,style:i.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?m.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(m.PureComponent||m.Component),jL=function(t,r,n,i){var a=i.clientWidth,o=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),c=u-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0)f=359;else if(c>o)f=0;else{var d=-(c*100/o)+100;f=360*d/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var h=void 0;if(l<0)h=0;else if(l>a)h=359;else{var g=l*100/a;h=360*g/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},LL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function RL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ly(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function NL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Oi=function(e){NL(t,e);function t(){var r,n,i,a;RL(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return a=(n=(i=ly(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=jL(l,i.props.direction,i.props.hsl,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},n),ly(i,a)}return LL(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.direction,a=i===void 0?"horizontal":i,o=me({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:a==="vertical"});return m.createElement("div",{style:o.hue},m.createElement("div",{className:"hue-"+a,style:o.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement("style",null,`
112
112
  .hue-horizontal {
@@ -122,7 +122,7 @@ const theme2 = createTheme({ palette: {
122
122
  background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
123
123
  #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
124
124
  }
125
- `),m.createElement("div",{style:o.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:o.slider}))))}}]),t}(m.PureComponent||m.Component);function BL(){this.__data__=[],this.size=0}function lo(e,t){return e===t||e!==e&&t!==t}function vl(e,t){for(var r=e.length;r--;)if(lo(e[r][0],t))return r;return-1}var VL=Array.prototype,zL=VL.splice;function WL(e){var t=this.__data__,r=vl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zL.call(t,r,1),--this.size,!0}function HL(e){var t=this.__data__,r=vl(t,e);return r<0?void 0:t[r][1]}function UL(e){return vl(this.__data__,e)>-1}function YL(e,t){var r=this.__data__,n=vl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Dr.prototype.clear=BL,Dr.prototype.delete=WL,Dr.prototype.get=HL,Dr.prototype.has=UL,Dr.prototype.set=YL;function GL(){this.__data__=new Dr,this.size=0}function qL(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function KL(e){return this.__data__.get(e)}function XL(e){return this.__data__.has(e)}var ZL=typeof global=="object"&&global&&global.Object===Object&&global;const uy=ZL;var QL=typeof self=="object"&&self&&self.Object===Object&&self,JL=uy||QL||Function("return this")();const ar=JL;var eR=ar.Symbol;const Zr=eR;var cy=Object.prototype,tR=cy.hasOwnProperty,rR=cy.toString,uo=Zr?Zr.toStringTag:void 0;function nR(e){var t=tR.call(e,uo),r=e[uo];try{e[uo]=void 0;var n=!0}catch{}var i=rR.call(e);return n&&(t?e[uo]=r:delete e[uo]),i}var iR=Object.prototype,aR=iR.toString;function oR(e){return aR.call(e)}var sR="[object Null]",lR="[object Undefined]",fy=Zr?Zr.toStringTag:void 0;function kn(e){return e==null?e===void 0?lR:sR:fy&&fy in Object(e)?nR(e):oR(e)}function tr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var uR="[object AsyncFunction]",cR="[object Function]",fR="[object GeneratorFunction]",dR="[object Proxy]";function nd(e){if(!tr(e))return!1;var t=kn(e);return t==cR||t==fR||t==uR||t==dR}var hR=ar["__core-js_shared__"];const id=hR;var dy=function(){var e=/[^.]+$/.exec(id&&id.keys&&id.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pR(e){return!!dy&&dy in e}var gR=Function.prototype,mR=gR.toString;function Mn(e){if(e!=null){try{return mR.call(e)}catch{}try{return e+""}catch{}}return""}var vR=/[\\^$.*+?()[\]{}|]/g,yR=/^\[object .+?Constructor\]$/,bR=Function.prototype,xR=Object.prototype,wR=bR.toString,CR=xR.hasOwnProperty,SR=RegExp("^"+wR.call(CR).replace(vR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ER(e){if(!tr(e)||pR(e))return!1;var t=nd(e)?SR:yR;return t.test(Mn(e))}function TR(e,t){return e==null?void 0:e[t]}function On(e,t){var r=TR(e,t);return ER(r)?r:void 0}var _R=On(ar,"Map");const co=_R;var kR=On(Object,"create");const fo=kR;function MR(){this.__data__=fo?fo(null):{},this.size=0}function OR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var AR="__lodash_hash_undefined__",PR=Object.prototype,DR=PR.hasOwnProperty;function $R(e){var t=this.__data__;if(fo){var r=t[e];return r===AR?void 0:r}return DR.call(t,e)?t[e]:void 0}var FR=Object.prototype,IR=FR.hasOwnProperty;function jR(e){var t=this.__data__;return fo?t[e]!==void 0:IR.call(t,e)}var LR="__lodash_hash_undefined__";function RR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fo&&t===void 0?LR:t,this}function An(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}An.prototype.clear=MR,An.prototype.delete=OR,An.prototype.get=$R,An.prototype.has=jR,An.prototype.set=RR;function NR(){this.size=0,this.__data__={hash:new An,map:new(co||Dr),string:new An}}function BR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yl(e,t){var r=e.__data__;return BR(t)?r[typeof t=="string"?"string":"hash"]:r.map}function VR(e){var t=yl(this,e).delete(e);return this.size-=t?1:0,t}function zR(e){return yl(this,e).get(e)}function WR(e){return yl(this,e).has(e)}function HR(e,t){var r=yl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function $r(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$r.prototype.clear=NR,$r.prototype.delete=VR,$r.prototype.get=zR,$r.prototype.has=WR,$r.prototype.set=HR;var UR=200;function YR(e,t){var r=this.__data__;if(r instanceof Dr){var n=r.__data__;if(!co||n.length<UR-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(e,t),this.size=r.size,this}function vr(e){var t=this.__data__=new Dr(e);this.size=t.size}vr.prototype.clear=GL,vr.prototype.delete=qL,vr.prototype.get=KL,vr.prototype.has=XL,vr.prototype.set=YR;var GR=function(){try{var e=On(Object,"defineProperty");return e({},"",{}),e}catch{}}();const bl=GR;function ad(e,t,r){t=="__proto__"&&bl?bl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function od(e,t,r){(r!==void 0&&!lo(e[t],r)||r===void 0&&!(t in e))&&ad(e,t,r)}function qR(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var KR=qR();const hy=KR;var py=typeof A=="object"&&A&&!A.nodeType&&A,gy=py&&typeof module=="object"&&module&&!module.nodeType&&module,XR=gy&&gy.exports===py,my=XR?ar.Buffer:void 0,vy=my?my.allocUnsafe:void 0;function ZR(e,t){if(t)return e.slice();var r=e.length,n=vy?vy(r):new e.constructor(r);return e.copy(n),n}var QR=ar.Uint8Array;const xl=QR;function JR(e){var t=new e.constructor(e.byteLength);return new xl(t).set(new xl(e)),t}function eN(e,t){var r=t?JR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tN(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var yy=Object.create,rN=function(){function e(){}return function(t){if(!tr(t))return{};if(yy)return yy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const nN=rN;function by(e,t){return function(r){return e(t(r))}}var iN=by(Object.getPrototypeOf,Object);const xy=iN;var aN=Object.prototype;function sd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||aN;return e===r}function oN(e){return typeof e.constructor=="function"&&!sd(e)?nN(xy(e)):{}}function Qr(e){return e!=null&&typeof e=="object"}var sN="[object Arguments]";function wy(e){return Qr(e)&&kn(e)==sN}var Cy=Object.prototype,lN=Cy.hasOwnProperty,uN=Cy.propertyIsEnumerable,cN=wy(function(){return arguments}())?wy:function(e){return Qr(e)&&lN.call(e,"callee")&&!uN.call(e,"callee")};const wl=cN;var fN=Array.isArray;const Wt=fN;var dN=9007199254740991;function ld(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dN}function Ai(e){return e!=null&&ld(e.length)&&!nd(e)}function hN(e){return Qr(e)&&Ai(e)}function pN(){return!1}var Sy=typeof A=="object"&&A&&!A.nodeType&&A,Ey=Sy&&typeof module=="object"&&module&&!module.nodeType&&module,gN=Ey&&Ey.exports===Sy,Ty=gN?ar.Buffer:void 0,mN=Ty?Ty.isBuffer:void 0,vN=mN||pN;const Cl=vN;var yN="[object Object]",bN=Function.prototype,xN=Object.prototype,_y=bN.toString,wN=xN.hasOwnProperty,CN=_y.call(Object);function SN(e){if(!Qr(e)||kn(e)!=yN)return!1;var t=xy(e);if(t===null)return!0;var r=wN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_y.call(r)==CN}var EN="[object Arguments]",TN="[object Array]",_N="[object Boolean]",kN="[object Date]",MN="[object Error]",ON="[object Function]",AN="[object Map]",PN="[object Number]",DN="[object Object]",$N="[object RegExp]",FN="[object Set]",IN="[object String]",jN="[object WeakMap]",LN="[object ArrayBuffer]",RN="[object DataView]",NN="[object Float32Array]",BN="[object Float64Array]",VN="[object Int8Array]",zN="[object Int16Array]",WN="[object Int32Array]",HN="[object Uint8Array]",UN="[object Uint8ClampedArray]",YN="[object Uint16Array]",GN="[object Uint32Array]",tt={};tt[NN]=tt[BN]=tt[VN]=tt[zN]=tt[WN]=tt[HN]=tt[UN]=tt[YN]=tt[GN]=!0,tt[EN]=tt[TN]=tt[LN]=tt[_N]=tt[RN]=tt[kN]=tt[MN]=tt[ON]=tt[AN]=tt[PN]=tt[DN]=tt[$N]=tt[FN]=tt[IN]=tt[jN]=!1;function qN(e){return Qr(e)&&ld(e.length)&&!!tt[kn(e)]}function KN(e){return function(t){return e(t)}}var ky=typeof A=="object"&&A&&!A.nodeType&&A,ho=ky&&typeof module=="object"&&module&&!module.nodeType&&module,XN=ho&&ho.exports===ky,ud=XN&&uy.process,ZN=function(){try{var e=ho&&ho.require&&ho.require("util").types;return e||ud&&ud.binding&&ud.binding("util")}catch{}}();const My=ZN;var Oy=My&&My.isTypedArray,QN=Oy?KN(Oy):qN;const cd=QN;function fd(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var JN=Object.prototype,eB=JN.hasOwnProperty;function tB(e,t,r){var n=e[t];(!(eB.call(e,t)&&lo(n,r))||r===void 0&&!(t in e))&&ad(e,t,r)}function rB(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?ad(r,s,u):tB(r,s,u)}return r}function nB(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var iB=9007199254740991,aB=/^(?:0|[1-9]\d*)$/;function dd(e,t){var r=typeof e;return t=t??iB,!!t&&(r=="number"||r!="symbol"&&aB.test(e))&&e>-1&&e%1==0&&e<t}var oB=Object.prototype,sB=oB.hasOwnProperty;function Ay(e,t){var r=Wt(e),n=!r&&wl(e),i=!r&&!n&&Cl(e),a=!r&&!n&&!i&&cd(e),o=r||n||i||a,s=o?nB(e.length,String):[],u=s.length;for(var l in e)(t||sB.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||dd(l,u)))&&s.push(l);return s}function lB(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var uB=Object.prototype,cB=uB.hasOwnProperty;function fB(e){if(!tr(e))return lB(e);var t=sd(e),r=[];for(var n in e)n=="constructor"&&(t||!cB.call(e,n))||r.push(n);return r}function Py(e){return Ai(e)?Ay(e,!0):fB(e)}function dB(e){return rB(e,Py(e))}function hB(e,t,r,n,i,a,o){var s=fd(e,r),u=fd(t,r),l=o.get(u);if(l){od(e,r,l);return}var c=a?a(s,u,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=Wt(u),h=!d&&Cl(u),g=!d&&!h&&cd(u);c=u,d||h||g?Wt(s)?c=s:hN(s)?c=tN(s):h?(f=!1,c=ZR(u,!0)):g?(f=!1,c=eN(u,!0)):c=[]:SN(u)||wl(u)?(c=s,wl(s)?c=dB(s):(!tr(s)||nd(s))&&(c=oN(u))):f=!1}f&&(o.set(u,c),i(c,u,n,a,o),o.delete(u)),od(e,r,c)}function Dy(e,t,r,n,i){e!==t&&hy(t,function(a,o){if(i||(i=new vr),tr(a))hB(e,t,o,r,Dy,n,i);else{var s=n?n(fd(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),od(e,o,s)}},Py)}function Sl(e){return e}function pB(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var $y=Math.max;function gB(e,t,r){return t=$y(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=$y(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),pB(e,this,s)}}function mB(e){return function(){return e}}var vB=bl?function(e,t){return bl(e,"toString",{configurable:!0,enumerable:!1,value:mB(t),writable:!0})}:Sl;const yB=vB;var bB=800,xB=16,wB=Date.now;function CB(e){var t=0,r=0;return function(){var n=wB(),i=xB-(n-r);if(r=n,i>0){if(++t>=bB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var SB=CB(yB);const EB=SB;function TB(e,t){return EB(gB(e,t,Sl),e+"")}function _B(e,t,r){if(!tr(r))return!1;var n=typeof t;return(n=="number"?Ai(r)&&dd(t,r.length):n=="string"&&t in r)?lo(r[t],e):!1}function kB(e){return TB(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&_B(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var MB=kB(function(e,t,r){Dy(e,t,r)});const It=MB;var po=function(t){var r=t.zDepth,n=t.radius,i=t.background,a=t.children,o=t.styles,s=o===void 0?{}:o,u=me(It({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return m.createElement("div",{style:u.wrap},m.createElement("div",{style:u.bg}),m.createElement("div",{style:u.content},a))};po.propTypes={background:M.string,zDepth:M.oneOf([0,1,2,3,4,5]),radius:M.number,styles:M.object},po.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var OB=function(){return ar.Date.now()};const hd=OB;var AB=/\s/;function PB(e){for(var t=e.length;t--&&AB.test(e.charAt(t)););return t}var DB=/^\s+/;function $B(e){return e&&e.slice(0,PB(e)+1).replace(DB,"")}var FB="[object Symbol]";function El(e){return typeof e=="symbol"||Qr(e)&&kn(e)==FB}var Fy=0/0,IB=/^[-+]0x[0-9a-f]+$/i,jB=/^0b[01]+$/i,LB=/^0o[0-7]+$/i,RB=parseInt;function Iy(e){if(typeof e=="number")return e;if(El(e))return Fy;if(tr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$B(e);var r=jB.test(e);return r||LB.test(e)?RB(e.slice(2),r?2:8):IB.test(e)?Fy:+e}var NB="Expected a function",BB=Math.max,VB=Math.min;function go(e,t,r){var n,i,a,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(NB);t=Iy(t)||0,tr(r)&&(c=!!r.leading,f="maxWait"in r,a=f?BB(Iy(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(_){var T=n,O=i;return n=i=void 0,l=_,o=e.apply(O,T),o}function g(_){return l=_,s=setTimeout(b,t),c?h(_):o}function p(_){var T=_-u,O=_-l,P=t-T;return f?VB(P,a-O):P}function y(_){var T=_-u,O=_-l;return u===void 0||T>=t||T<0||f&&O>=a}function b(){var _=hd();if(y(_))return x(_);s=setTimeout(b,p(_))}function x(_){return s=void 0,d&&n?h(_):(n=i=void 0,o)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function k(){return s===void 0?o:x(hd())}function w(){var _=hd(),T=y(_);if(n=arguments,i=this,u=_,T){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(b,t),h(u)}return s===void 0&&(s=setTimeout(b,t)),o}return w.cancel=C,w.flush=k,w}var zB="Expected a function";function jy(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(zB);return tr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),go(e,t,{leading:n,maxWait:t,trailing:i})}var WB=function(t,r,n){var i=n.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>a&&(l=a),c<0?c=0:c>o&&(c=o);var f=l/a,d=1-c/o;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},HB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function UB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function GB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Tl=function(e){GB(t,e);function t(r){UB(this,t);var n=YB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,WB(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var a=n.getContainerRenderWindow();a.addEventListener("mousemove",n.handleChange),a.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=jy(function(i,a,o){i(a,o)},50),n}return HB(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},a=i.color,o=i.white,s=i.black,u=i.pointer,l=i.circle,c=me({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
125
+ `),m.createElement("div",{style:o.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:o.slider}))))}}]),t}(m.PureComponent||m.Component);function BL(){this.__data__=[],this.size=0}function lo(e,t){return e===t||e!==e&&t!==t}function vl(e,t){for(var r=e.length;r--;)if(lo(e[r][0],t))return r;return-1}var VL=Array.prototype,zL=VL.splice;function WL(e){var t=this.__data__,r=vl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zL.call(t,r,1),--this.size,!0}function HL(e){var t=this.__data__,r=vl(t,e);return r<0?void 0:t[r][1]}function UL(e){return vl(this.__data__,e)>-1}function YL(e,t){var r=this.__data__,n=vl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Dr.prototype.clear=BL,Dr.prototype.delete=WL,Dr.prototype.get=HL,Dr.prototype.has=UL,Dr.prototype.set=YL;function GL(){this.__data__=new Dr,this.size=0}function qL(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function KL(e){return this.__data__.get(e)}function XL(e){return this.__data__.has(e)}var ZL=typeof global=="object"&&global&&global.Object===Object&&global;const uy=ZL;var QL=typeof self=="object"&&self&&self.Object===Object&&self,JL=uy||QL||Function("return this")();const ar=JL;var eR=ar.Symbol;const Zr=eR;var cy=Object.prototype,tR=cy.hasOwnProperty,rR=cy.toString,uo=Zr?Zr.toStringTag:void 0;function nR(e){var t=tR.call(e,uo),r=e[uo];try{e[uo]=void 0;var n=!0}catch{}var i=rR.call(e);return n&&(t?e[uo]=r:delete e[uo]),i}var iR=Object.prototype,aR=iR.toString;function oR(e){return aR.call(e)}var sR="[object Null]",lR="[object Undefined]",fy=Zr?Zr.toStringTag:void 0;function kn(e){return e==null?e===void 0?lR:sR:fy&&fy in Object(e)?nR(e):oR(e)}function tr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var uR="[object AsyncFunction]",cR="[object Function]",fR="[object GeneratorFunction]",dR="[object Proxy]";function rd(e){if(!tr(e))return!1;var t=kn(e);return t==cR||t==fR||t==uR||t==dR}var hR=ar["__core-js_shared__"];const nd=hR;var dy=function(){var e=/[^.]+$/.exec(nd&&nd.keys&&nd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pR(e){return!!dy&&dy in e}var gR=Function.prototype,mR=gR.toString;function Mn(e){if(e!=null){try{return mR.call(e)}catch{}try{return e+""}catch{}}return""}var vR=/[\\^$.*+?()[\]{}|]/g,yR=/^\[object .+?Constructor\]$/,bR=Function.prototype,xR=Object.prototype,wR=bR.toString,CR=xR.hasOwnProperty,SR=RegExp("^"+wR.call(CR).replace(vR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ER(e){if(!tr(e)||pR(e))return!1;var t=rd(e)?SR:yR;return t.test(Mn(e))}function TR(e,t){return e==null?void 0:e[t]}function On(e,t){var r=TR(e,t);return ER(r)?r:void 0}var _R=On(ar,"Map");const co=_R;var kR=On(Object,"create");const fo=kR;function MR(){this.__data__=fo?fo(null):{},this.size=0}function OR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var AR="__lodash_hash_undefined__",PR=Object.prototype,DR=PR.hasOwnProperty;function $R(e){var t=this.__data__;if(fo){var r=t[e];return r===AR?void 0:r}return DR.call(t,e)?t[e]:void 0}var FR=Object.prototype,IR=FR.hasOwnProperty;function jR(e){var t=this.__data__;return fo?t[e]!==void 0:IR.call(t,e)}var LR="__lodash_hash_undefined__";function RR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fo&&t===void 0?LR:t,this}function An(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}An.prototype.clear=MR,An.prototype.delete=OR,An.prototype.get=$R,An.prototype.has=jR,An.prototype.set=RR;function NR(){this.size=0,this.__data__={hash:new An,map:new(co||Dr),string:new An}}function BR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yl(e,t){var r=e.__data__;return BR(t)?r[typeof t=="string"?"string":"hash"]:r.map}function VR(e){var t=yl(this,e).delete(e);return this.size-=t?1:0,t}function zR(e){return yl(this,e).get(e)}function WR(e){return yl(this,e).has(e)}function HR(e,t){var r=yl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function $r(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$r.prototype.clear=NR,$r.prototype.delete=VR,$r.prototype.get=zR,$r.prototype.has=WR,$r.prototype.set=HR;var UR=200;function YR(e,t){var r=this.__data__;if(r instanceof Dr){var n=r.__data__;if(!co||n.length<UR-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(e,t),this.size=r.size,this}function vr(e){var t=this.__data__=new Dr(e);this.size=t.size}vr.prototype.clear=GL,vr.prototype.delete=qL,vr.prototype.get=KL,vr.prototype.has=XL,vr.prototype.set=YR;var GR=function(){try{var e=On(Object,"defineProperty");return e({},"",{}),e}catch{}}();const bl=GR;function id(e,t,r){t=="__proto__"&&bl?bl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ad(e,t,r){(r!==void 0&&!lo(e[t],r)||r===void 0&&!(t in e))&&id(e,t,r)}function qR(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var KR=qR();const hy=KR;var py=typeof A=="object"&&A&&!A.nodeType&&A,gy=py&&typeof module=="object"&&module&&!module.nodeType&&module,XR=gy&&gy.exports===py,my=XR?ar.Buffer:void 0,vy=my?my.allocUnsafe:void 0;function ZR(e,t){if(t)return e.slice();var r=e.length,n=vy?vy(r):new e.constructor(r);return e.copy(n),n}var QR=ar.Uint8Array;const xl=QR;function JR(e){var t=new e.constructor(e.byteLength);return new xl(t).set(new xl(e)),t}function eN(e,t){var r=t?JR(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tN(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var yy=Object.create,rN=function(){function e(){}return function(t){if(!tr(t))return{};if(yy)return yy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const nN=rN;function by(e,t){return function(r){return e(t(r))}}var iN=by(Object.getPrototypeOf,Object);const xy=iN;var aN=Object.prototype;function od(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||aN;return e===r}function oN(e){return typeof e.constructor=="function"&&!od(e)?nN(xy(e)):{}}function Qr(e){return e!=null&&typeof e=="object"}var sN="[object Arguments]";function wy(e){return Qr(e)&&kn(e)==sN}var Cy=Object.prototype,lN=Cy.hasOwnProperty,uN=Cy.propertyIsEnumerable,cN=wy(function(){return arguments}())?wy:function(e){return Qr(e)&&lN.call(e,"callee")&&!uN.call(e,"callee")};const wl=cN;var fN=Array.isArray;const Wt=fN;var dN=9007199254740991;function sd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dN}function Ai(e){return e!=null&&sd(e.length)&&!rd(e)}function hN(e){return Qr(e)&&Ai(e)}function pN(){return!1}var Sy=typeof A=="object"&&A&&!A.nodeType&&A,Ey=Sy&&typeof module=="object"&&module&&!module.nodeType&&module,gN=Ey&&Ey.exports===Sy,Ty=gN?ar.Buffer:void 0,mN=Ty?Ty.isBuffer:void 0,vN=mN||pN;const Cl=vN;var yN="[object Object]",bN=Function.prototype,xN=Object.prototype,_y=bN.toString,wN=xN.hasOwnProperty,CN=_y.call(Object);function SN(e){if(!Qr(e)||kn(e)!=yN)return!1;var t=xy(e);if(t===null)return!0;var r=wN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_y.call(r)==CN}var EN="[object Arguments]",TN="[object Array]",_N="[object Boolean]",kN="[object Date]",MN="[object Error]",ON="[object Function]",AN="[object Map]",PN="[object Number]",DN="[object Object]",$N="[object RegExp]",FN="[object Set]",IN="[object String]",jN="[object WeakMap]",LN="[object ArrayBuffer]",RN="[object DataView]",NN="[object Float32Array]",BN="[object Float64Array]",VN="[object Int8Array]",zN="[object Int16Array]",WN="[object Int32Array]",HN="[object Uint8Array]",UN="[object Uint8ClampedArray]",YN="[object Uint16Array]",GN="[object Uint32Array]",tt={};tt[NN]=tt[BN]=tt[VN]=tt[zN]=tt[WN]=tt[HN]=tt[UN]=tt[YN]=tt[GN]=!0,tt[EN]=tt[TN]=tt[LN]=tt[_N]=tt[RN]=tt[kN]=tt[MN]=tt[ON]=tt[AN]=tt[PN]=tt[DN]=tt[$N]=tt[FN]=tt[IN]=tt[jN]=!1;function qN(e){return Qr(e)&&sd(e.length)&&!!tt[kn(e)]}function KN(e){return function(t){return e(t)}}var ky=typeof A=="object"&&A&&!A.nodeType&&A,ho=ky&&typeof module=="object"&&module&&!module.nodeType&&module,XN=ho&&ho.exports===ky,ld=XN&&uy.process,ZN=function(){try{var e=ho&&ho.require&&ho.require("util").types;return e||ld&&ld.binding&&ld.binding("util")}catch{}}();const My=ZN;var Oy=My&&My.isTypedArray,QN=Oy?KN(Oy):qN;const ud=QN;function cd(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var JN=Object.prototype,eB=JN.hasOwnProperty;function tB(e,t,r){var n=e[t];(!(eB.call(e,t)&&lo(n,r))||r===void 0&&!(t in e))&&id(e,t,r)}function rB(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?id(r,s,u):tB(r,s,u)}return r}function nB(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var iB=9007199254740991,aB=/^(?:0|[1-9]\d*)$/;function fd(e,t){var r=typeof e;return t=t??iB,!!t&&(r=="number"||r!="symbol"&&aB.test(e))&&e>-1&&e%1==0&&e<t}var oB=Object.prototype,sB=oB.hasOwnProperty;function Ay(e,t){var r=Wt(e),n=!r&&wl(e),i=!r&&!n&&Cl(e),a=!r&&!n&&!i&&ud(e),o=r||n||i||a,s=o?nB(e.length,String):[],u=s.length;for(var l in e)(t||sB.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||fd(l,u)))&&s.push(l);return s}function lB(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var uB=Object.prototype,cB=uB.hasOwnProperty;function fB(e){if(!tr(e))return lB(e);var t=od(e),r=[];for(var n in e)n=="constructor"&&(t||!cB.call(e,n))||r.push(n);return r}function Py(e){return Ai(e)?Ay(e,!0):fB(e)}function dB(e){return rB(e,Py(e))}function hB(e,t,r,n,i,a,o){var s=cd(e,r),u=cd(t,r),l=o.get(u);if(l){ad(e,r,l);return}var c=a?a(s,u,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=Wt(u),h=!d&&Cl(u),g=!d&&!h&&ud(u);c=u,d||h||g?Wt(s)?c=s:hN(s)?c=tN(s):h?(f=!1,c=ZR(u,!0)):g?(f=!1,c=eN(u,!0)):c=[]:SN(u)||wl(u)?(c=s,wl(s)?c=dB(s):(!tr(s)||rd(s))&&(c=oN(u))):f=!1}f&&(o.set(u,c),i(c,u,n,a,o),o.delete(u)),ad(e,r,c)}function Dy(e,t,r,n,i){e!==t&&hy(t,function(a,o){if(i||(i=new vr),tr(a))hB(e,t,o,r,Dy,n,i);else{var s=n?n(cd(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),ad(e,o,s)}},Py)}function Sl(e){return e}function pB(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var $y=Math.max;function gB(e,t,r){return t=$y(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=$y(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),pB(e,this,s)}}function mB(e){return function(){return e}}var vB=bl?function(e,t){return bl(e,"toString",{configurable:!0,enumerable:!1,value:mB(t),writable:!0})}:Sl;const yB=vB;var bB=800,xB=16,wB=Date.now;function CB(e){var t=0,r=0;return function(){var n=wB(),i=xB-(n-r);if(r=n,i>0){if(++t>=bB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var SB=CB(yB);const EB=SB;function TB(e,t){return EB(gB(e,t,Sl),e+"")}function _B(e,t,r){if(!tr(r))return!1;var n=typeof t;return(n=="number"?Ai(r)&&fd(t,r.length):n=="string"&&t in r)?lo(r[t],e):!1}function kB(e){return TB(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&_B(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var MB=kB(function(e,t,r){Dy(e,t,r)});const It=MB;var po=function(t){var r=t.zDepth,n=t.radius,i=t.background,a=t.children,o=t.styles,s=o===void 0?{}:o,u=me(It({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return m.createElement("div",{style:u.wrap},m.createElement("div",{style:u.bg}),m.createElement("div",{style:u.content},a))};po.propTypes={background:M.string,zDepth:M.oneOf([0,1,2,3,4,5]),radius:M.number,styles:M.object},po.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var OB=function(){return ar.Date.now()};const dd=OB;var AB=/\s/;function PB(e){for(var t=e.length;t--&&AB.test(e.charAt(t)););return t}var DB=/^\s+/;function $B(e){return e&&e.slice(0,PB(e)+1).replace(DB,"")}var FB="[object Symbol]";function El(e){return typeof e=="symbol"||Qr(e)&&kn(e)==FB}var Fy=0/0,IB=/^[-+]0x[0-9a-f]+$/i,jB=/^0b[01]+$/i,LB=/^0o[0-7]+$/i,RB=parseInt;function Iy(e){if(typeof e=="number")return e;if(El(e))return Fy;if(tr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$B(e);var r=jB.test(e);return r||LB.test(e)?RB(e.slice(2),r?2:8):IB.test(e)?Fy:+e}var NB="Expected a function",BB=Math.max,VB=Math.min;function go(e,t,r){var n,i,a,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(NB);t=Iy(t)||0,tr(r)&&(c=!!r.leading,f="maxWait"in r,a=f?BB(Iy(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(_){var T=n,O=i;return n=i=void 0,l=_,o=e.apply(O,T),o}function g(_){return l=_,s=setTimeout(b,t),c?h(_):o}function p(_){var T=_-u,O=_-l,P=t-T;return f?VB(P,a-O):P}function y(_){var T=_-u,O=_-l;return u===void 0||T>=t||T<0||f&&O>=a}function b(){var _=dd();if(y(_))return x(_);s=setTimeout(b,p(_))}function x(_){return s=void 0,d&&n?h(_):(n=i=void 0,o)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function k(){return s===void 0?o:x(dd())}function w(){var _=dd(),T=y(_);if(n=arguments,i=this,u=_,T){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(b,t),h(u)}return s===void 0&&(s=setTimeout(b,t)),o}return w.cancel=C,w.flush=k,w}var zB="Expected a function";function jy(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(zB);return tr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),go(e,t,{leading:n,maxWait:t,trailing:i})}var WB=function(t,r,n){var i=n.getBoundingClientRect(),a=i.width,o=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>a&&(l=a),c<0?c=0:c>o&&(c=o);var f=l/a,d=1-c/o;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},HB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function UB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function GB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Tl=function(e){GB(t,e);function t(r){UB(this,t);var n=YB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,WB(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var a=n.getContainerRenderWindow();a.addEventListener("mousemove",n.handleChange),a.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=jy(function(i,a,o){i(a,o)},50),n}return HB(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},a=i.color,o=i.white,s=i.black,u=i.pointer,l=i.circle,c=me({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
126
126
  0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:o,black:s,pointer:u,circle:l}},{custom:!!this.props.style});return m.createElement("div",{style:c.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement("style",null,`
127
127
  .saturation-white {
128
128
  background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -132,8 +132,8 @@ const theme2 = createTheme({ palette: {
132
132
  background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
133
133
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
134
134
  }
135
- `),m.createElement("div",{style:c.white,className:"saturation-white"},m.createElement("div",{style:c.black,className:"saturation-black"}),m.createElement("div",{style:c.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:c.circle}))))}}]),t}(m.PureComponent||m.Component);function qB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var KB=by(Object.keys,Object);const XB=KB;var ZB=Object.prototype,QB=ZB.hasOwnProperty;function JB(e){if(!sd(e))return XB(e);var t=[];for(var r in Object(e))QB.call(e,r)&&r!="constructor"&&t.push(r);return t}function pd(e){return Ai(e)?Ay(e):JB(e)}function eV(e,t){return e&&hy(e,t,pd)}function tV(e,t){return function(r,n){if(r==null)return r;if(!Ai(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var rV=tV(eV);const Ly=rV;function nV(e){return typeof e=="function"?e:Sl}function iV(e,t){var r=Wt(e)?qB:Ly;return r(e,nV(t))}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}var aV=/^\s+/,oV=/\s+$/;function ae(e,t){if(e=e||"",t=t||{},e instanceof ae)return e;if(!(this instanceof ae))return new ae(e,t);var r=sV(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}ae.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,a,o,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=Wy(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ny(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ny(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Ry(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Ry(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return By(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return fV(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(it(this._r,255)*100)+"%",g:Math.round(it(this._g,255)*100)+"%",b:Math.round(it(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(it(this._r,255)*100)+"%, "+Math.round(it(this._g,255)*100)+"%, "+Math.round(it(this._b,255)*100)+"%)":"rgba("+Math.round(it(this._r,255)*100)+"%, "+Math.round(it(this._g,255)*100)+"%, "+Math.round(it(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:SV[By(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Vy(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ae(t);n="#"+Vy(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,a=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return ae(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(gV,arguments)},brighten:function(){return this._applyModification(mV,arguments)},darken:function(){return this._applyModification(vV,arguments)},desaturate:function(){return this._applyModification(dV,arguments)},saturate:function(){return this._applyModification(hV,arguments)},greyscale:function(){return this._applyModification(pV,arguments)},spin:function(){return this._applyModification(yV,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(wV,arguments)},complement:function(){return this._applyCombination(bV,arguments)},monochromatic:function(){return this._applyCombination(CV,arguments)},splitcomplement:function(){return this._applyCombination(xV,arguments)},triad:function(){return this._applyCombination(zy,[3])},tetrad:function(){return this._applyCombination(zy,[4])}},ae.fromRatio=function(e,t){if(_l(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=mo(e[n]));e=r}return ae(e,t)};function sV(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=kV(e)),_l(e)=="object"&&(Fr(e.r)&&Fr(e.g)&&Fr(e.b)?(t=lV(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fr(e.h)&&Fr(e.s)&&Fr(e.v)?(n=mo(e.s),i=mo(e.v),t=cV(e.h,n,i),o=!0,s="hsv"):Fr(e.h)&&Fr(e.s)&&Fr(e.l)&&(n=mo(e.s),a=mo(e.l),t=uV(e.h,n,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Wy(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function lV(e,t,r){return{r:it(e,255)*255,g:it(t,255)*255,b:it(r,255)*255}}function Ry(e,t,r){e=it(e,255),t=it(t,255),r=it(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a,o,s=(n+i)/2;if(n==i)a=o=0;else{var u=n-i;switch(o=s>.5?u/(2-n-i):u/(n+i),n){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,l:s}}function uV(e,t,r){var n,i,a;e=it(e,360),t=it(t,100),r=it(r,100);function o(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(t===0)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Ny(e,t,r){e=it(e,255),t=it(t,255),r=it(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a,o,s=n,u=n-i;if(o=n===0?0:u/n,n==i)a=0;else{switch(n){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,v:s}}function cV(e,t,r){e=it(e,360)*6,t=it(t,100),r=it(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,l=[r,o,a,a,s,r][u],c=[s,r,r,o,a,a][u],f=[a,a,s,r,r,o][u];return{r:l*255,g:c*255,b:f*255}}function By(e,t,r,n){var i=[or(Math.round(e).toString(16)),or(Math.round(t).toString(16)),or(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function fV(e,t,r,n,i){var a=[or(Math.round(e).toString(16)),or(Math.round(t).toString(16)),or(Math.round(r).toString(16)),or(Hy(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Vy(e,t,r,n){var i=[or(Hy(n)),or(Math.round(e).toString(16)),or(Math.round(t).toString(16)),or(Math.round(r).toString(16))];return i.join("")}ae.equals=function(e,t){return!e||!t?!1:ae(e).toRgbString()==ae(t).toRgbString()},ae.random=function(){return ae.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function dV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.s-=t/100,r.s=kl(r.s),ae(r)}function hV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.s+=t/100,r.s=kl(r.s),ae(r)}function pV(e){return ae(e).desaturate(100)}function gV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.l+=t/100,r.l=kl(r.l),ae(r)}function mV(e,t){t=t===0?0:t||10;var r=ae(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),ae(r)}function vV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.l-=t/100,r.l=kl(r.l),ae(r)}function yV(e,t){var r=ae(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,ae(r)}function bV(e){var t=ae(e).toHsl();return t.h=(t.h+180)%360,ae(t)}function zy(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=ae(e).toHsl(),n=[ae(e)],i=360/t,a=1;a<t;a++)n.push(ae({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function xV(e){var t=ae(e).toHsl(),r=t.h;return[ae(e),ae({h:(r+72)%360,s:t.s,l:t.l}),ae({h:(r+216)%360,s:t.s,l:t.l})]}function wV(e,t,r){t=t||6,r=r||30;var n=ae(e).toHsl(),i=360/r,a=[ae(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(ae(n));return a}function CV(e,t){t=t||6;for(var r=ae(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(ae({h:n,s:i,v:a})),a=(a+s)%1;return o}ae.mix=function(e,t,r){r=r===0?0:r||50;var n=ae(e).toRgb(),i=ae(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return ae(o)},ae.readability=function(e,t){var r=ae(e),n=ae(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},ae.isReadable=function(e,t,r){var n=ae.readability(e,t),i,a;switch(a=!1,i=MV(r),i.level+i.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},ae.mostReadable=function(e,t,r){var n=null,i=0,a,o,s,u;r=r||{},o=r.includeFallbackColors,s=r.level,u=r.size;for(var l=0;l<t.length;l++)a=ae.readability(e,t[l]),a>i&&(i=a,n=ae(t[l]));return ae.isReadable(e,n,{level:s,size:u})||!o?n:(r.includeFallbackColors=!1,ae.mostReadable(e,["#fff","#000"],r))};var gd=ae.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},SV=ae.hexNames=EV(gd);function EV(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Wy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function it(e,t){TV(e)&&(e="100%");var r=_V(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function kl(e){return Math.min(1,Math.max(0,e))}function Ht(e){return parseInt(e,16)}function TV(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _V(e){return typeof e=="string"&&e.indexOf("%")!=-1}function or(e){return e.length==1?"0"+e:""+e}function mo(e){return e<=1&&(e=e*100+"%"),e}function Hy(e){return Math.round(parseFloat(e)*255).toString(16)}function Uy(e){return Ht(e)/255}var sr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fr(e){return!!sr.CSS_UNIT.exec(e)}function kV(e){e=e.replace(aV,"").replace(oV,"").toLowerCase();var t=!1;if(gd[e])e=gd[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=sr.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=sr.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=sr.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=sr.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=sr.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=sr.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=sr.hex8.exec(e))?{r:Ht(r[1]),g:Ht(r[2]),b:Ht(r[3]),a:Uy(r[4]),format:t?"name":"hex8"}:(r=sr.hex6.exec(e))?{r:Ht(r[1]),g:Ht(r[2]),b:Ht(r[3]),format:t?"name":"hex"}:(r=sr.hex4.exec(e))?{r:Ht(r[1]+""+r[1]),g:Ht(r[2]+""+r[2]),b:Ht(r[3]+""+r[3]),a:Uy(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=sr.hex3.exec(e))?{r:Ht(r[1]+""+r[1]),g:Ht(r[2]+""+r[2]),b:Ht(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function MV(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Yy=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return iV(r,function(a){if(t[a]&&(n+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),n===i?t:!1},vo=function(t,r){var n=t.hex?ae(t.hex):ae(t),i=n.toHsl(),a=n.toHsv(),o=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,a.h=r||0);var u=s==="000000"&&o.a===0;return{hsl:i,hex:u?"transparent":"#"+s,rgb:o,hsv:a,oldHue:t.h||r||i.h,source:t.source}},Jr=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&ae(t).isValid()},md=function(t){if(!t)return"#fff";var r=vo(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},vd=function(t,r){var n=t.replace("°","");return ae(r+" ("+n+")")._ok},yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OV=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function AV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PV(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function DV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jt=function(t){var r=function(n){DV(i,n);function i(a){AV(this,i);var o=PV(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return o.handleChange=function(s,u){var l=Yy(s);if(l){var c=vo(s,s.h||o.state.oldHue);o.setState(c),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,c,u),o.props.onChange&&o.props.onChange(c,u)}},o.handleSwatchHover=function(s,u){var l=Yy(s);if(l){var c=vo(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(c,u)}},o.state=yo({},vo(a.color,0)),o.debounce=go(function(s,u,l){s(u,l)},100),o}return OV(i,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),m.createElement(t,yo({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return yo({},vo(o.color,s.oldHue))}}]),i}(m.PureComponent||m.Component);return r.propTypes=yo({},t.propTypes),r.defaultProps=yo({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},$V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FV=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function IV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function jV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){jV(i,n);function i(){var a,o,s,u;IV(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=Gy(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),Gy(s,u)}return FV(i,[{key:"render",value:function(){return m.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},m.createElement(t,$V({},this.props,this.state)))}}]),i}(m.Component)},qy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RV=13,NV=function(t){var r=t.color,n=t.style,i=t.onClick,a=i===void 0?function(){}:i,o=t.onHover,s=t.title,u=s===void 0?r:s,l=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",g=me({default:{swatch:qy({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),p=function(k){return a(r,k)},y=function(k){return k.keyCode===RV&&a(r,k)},b=function(k){return o(r,k)},x={};return o&&(x.onMouseOver=b),m.createElement("div",qy({style:g.swatch,onClick:p,title:u,tabIndex:0,onKeyDown:y},x),l,h&&m.createElement(Mi,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Pn=LV(NV);var BV=function(t){var r=t.direction,n=me({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return m.createElement("div",{style:n.picker})},VV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky=function(t){var r=t.rgb,n=t.hsl,i=t.width,a=t.height,o=t.onChange,s=t.direction,u=t.style,l=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=me({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:u}}});return m.createElement("div",{style:h.picker,className:"alpha-picker "+d},m.createElement(rd,VV({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:l,onChange:o,direction:s})))};Ky.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:BV},jt(Ky);function Xy(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var zV="__lodash_hash_undefined__";function WV(e){return this.__data__.set(e,zV),this}function HV(e){return this.__data__.has(e)}function Ml(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new $r;++t<r;)this.add(e[t])}Ml.prototype.add=Ml.prototype.push=WV,Ml.prototype.has=HV;function UV(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function YV(e,t){return e.has(t)}var GV=1,qV=2;function Zy(e,t,r,n,i,a){var o=r&GV,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&qV?new Ml:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(n)var y=o?n(p,g,f,t,e,a):n(g,p,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!UV(t,function(b,x){if(!YV(h,x)&&(g===b||i(g,b,r,n,a)))return h.push(x)})){d=!1;break}}else if(!(g===p||i(g,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function KV(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function XV(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ZV=1,QV=2,JV="[object Boolean]",ez="[object Date]",tz="[object Error]",rz="[object Map]",nz="[object Number]",iz="[object RegExp]",az="[object Set]",oz="[object String]",sz="[object Symbol]",lz="[object ArrayBuffer]",uz="[object DataView]",Qy=Zr?Zr.prototype:void 0,yd=Qy?Qy.valueOf:void 0;function cz(e,t,r,n,i,a,o){switch(r){case uz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lz:return!(e.byteLength!=t.byteLength||!a(new xl(e),new xl(t)));case JV:case ez:case nz:return lo(+e,+t);case tz:return e.name==t.name&&e.message==t.message;case iz:case oz:return e==t+"";case rz:var s=KV;case az:var u=n&ZV;if(s||(s=XV),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;n|=QV,o.set(e,t);var c=Zy(s(e),s(t),n,i,a,o);return o.delete(e),c;case sz:if(yd)return yd.call(e)==yd.call(t)}return!1}function fz(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function dz(e,t,r){var n=t(e);return Wt(e)?n:fz(n,r(e))}function hz(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function pz(){return[]}var gz=Object.prototype,mz=gz.propertyIsEnumerable,Jy=Object.getOwnPropertySymbols,vz=Jy?function(e){return e==null?[]:(e=Object(e),hz(Jy(e),function(t){return mz.call(e,t)}))}:pz;const yz=vz;function eb(e){return dz(e,pd,yz)}var bz=1,xz=Object.prototype,wz=xz.hasOwnProperty;function Cz(e,t,r,n,i,a){var o=r&bz,s=eb(e),u=s.length,l=eb(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:wz.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<u;){d=s[f];var b=e[d],x=t[d];if(n)var C=o?n(x,b,d,t,e,a):n(b,x,d,e,t,a);if(!(C===void 0?b===x||i(b,x,r,n,a):C)){p=!1;break}y||(y=d=="constructor")}if(p&&!y){var k=e.constructor,w=t.constructor;k!=w&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var Sz=On(ar,"DataView");const bd=Sz;var Ez=On(ar,"Promise");const xd=Ez;var Tz=On(ar,"Set");const wd=Tz;var _z=On(ar,"WeakMap");const Cd=_z;var tb="[object Map]",kz="[object Object]",rb="[object Promise]",nb="[object Set]",ib="[object WeakMap]",ab="[object DataView]",Mz=Mn(bd),Oz=Mn(co),Az=Mn(xd),Pz=Mn(wd),Dz=Mn(Cd),Dn=kn;(bd&&Dn(new bd(new ArrayBuffer(1)))!=ab||co&&Dn(new co)!=tb||xd&&Dn(xd.resolve())!=rb||wd&&Dn(new wd)!=nb||Cd&&Dn(new Cd)!=ib)&&(Dn=function(e){var t=kn(e),r=t==kz?e.constructor:void 0,n=r?Mn(r):"";if(n)switch(n){case Mz:return ab;case Oz:return tb;case Az:return rb;case Pz:return nb;case Dz:return ib}return t});const ob=Dn;var $z=1,sb="[object Arguments]",lb="[object Array]",Ol="[object Object]",Fz=Object.prototype,ub=Fz.hasOwnProperty;function Iz(e,t,r,n,i,a){var o=Wt(e),s=Wt(t),u=o?lb:ob(e),l=s?lb:ob(t);u=u==sb?Ol:u,l=l==sb?Ol:l;var c=u==Ol,f=l==Ol,d=u==l;if(d&&Cl(e)){if(!Cl(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new vr),o||cd(e)?Zy(e,t,r,n,i,a):cz(e,t,u,r,n,i,a);if(!(r&$z)){var h=c&&ub.call(e,"__wrapped__"),g=f&&ub.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,y=g?t.value():t;return a||(a=new vr),i(p,y,r,n,a)}}return d?(a||(a=new vr),Cz(e,t,r,n,i,a)):!1}function Sd(e,t,r,n,i){return e===t?!0:e==null||t==null||!Qr(e)&&!Qr(t)?e!==e&&t!==t:Iz(e,t,r,n,Sd,i)}var jz=1,Lz=2;function Rz(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var u=s[0],l=e[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new vr;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?Sd(c,l,jz|Lz,n,f):d))return!1}}return!0}function cb(e){return e===e&&!tr(e)}function Nz(e){for(var t=pd(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,cb(i)]}return t}function fb(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Bz(e){var t=Nz(e);return t.length==1&&t[0][2]?fb(t[0][0],t[0][1]):function(r){return r===e||Rz(r,e,t)}}var Vz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zz=/^\w*$/;function Ed(e,t){if(Wt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||El(e)?!0:zz.test(e)||!Vz.test(e)||t!=null&&e in Object(t)}var Wz="Expected a function";function Td(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Wz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Td.Cache||$r),r}Td.Cache=$r;var Hz=500;function Uz(e){var t=Td(e,function(n){return r.size===Hz&&r.clear(),n}),r=t.cache;return t}var Yz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gz=/\\(\\)?/g,qz=Uz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yz,function(r,n,i,a){t.push(i?a.replace(Gz,"$1"):n||r)}),t});const Kz=qz;var Xz=1/0,db=Zr?Zr.prototype:void 0,hb=db?db.toString:void 0;function pb(e){if(typeof e=="string")return e;if(Wt(e))return Xy(e,pb)+"";if(El(e))return hb?hb.call(e):"";var t=e+"";return t=="0"&&1/e==-Xz?"-0":t}function Zz(e){return e==null?"":pb(e)}function gb(e,t){return Wt(e)?e:Ed(e,t)?[e]:Kz(Zz(e))}var Qz=1/0;function Al(e){if(typeof e=="string"||El(e))return e;var t=e+"";return t=="0"&&1/e==-Qz?"-0":t}function mb(e,t){t=gb(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Al(t[r++])];return r&&r==n?e:void 0}function Jz(e,t,r){var n=e==null?void 0:mb(e,t);return n===void 0?r:n}function eW(e,t){return e!=null&&t in Object(e)}function tW(e,t,r){t=gb(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Al(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&ld(i)&&dd(o,i)&&(Wt(e)||wl(e)))}function rW(e,t){return e!=null&&tW(e,t,eW)}var nW=1,iW=2;function aW(e,t){return Ed(e)&&cb(t)?fb(Al(e),t):function(r){var n=Jz(r,e);return n===void 0&&n===t?rW(r,e):Sd(t,n,nW|iW)}}function oW(e){return function(t){return t==null?void 0:t[e]}}function sW(e){return function(t){return mb(t,e)}}function lW(e){return Ed(e)?oW(Al(e)):sW(e)}function uW(e){return typeof e=="function"?e:e==null?Sl:typeof e=="object"?Wt(e)?aW(e[0],e[1]):Bz(e):lW(e)}function cW(e,t){var r=-1,n=Ai(e)?Array(e.length):[];return Ly(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function $n(e,t){var r=Wt(e)?Xy:cW;return r(e,uW(t))}var fW=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,a=me({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return m.createElement("div",{style:a.swatches},$n(r,function(o){return m.createElement(Pn,{key:o,color:o,style:a.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+o}})}),m.createElement("div",{style:a.clear}))},_d=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,a=t.colors,o=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=i==="transparent",h=function(y,b){Jr(y)&&r({hex:y,source:"hex"},b)},g=me(It({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:md(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return m.createElement("div",{style:g.card,className:"block-picker "+f},m.createElement("div",{style:g.triangle}),m.createElement("div",{style:g.head},d&&m.createElement(Mi,{borderRadius:"6px 6px 0 0"}),m.createElement("div",{style:g.label},i)),m.createElement("div",{style:g.body},m.createElement(fW,{colors:a,onClick:h,onSwatchHover:n}),m.createElement(Me,{style:{input:g.input},value:i,onChange:h})))};_d.propTypes={width:M.oneOfType([M.string,M.number]),colors:M.arrayOf(M.string),triangle:M.oneOf(["top","hide"]),styles:M.object},_d.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},jt(_d);var Pi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Di={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},$i={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Fi={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ii={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},ji={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Li={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Ri={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Ni={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},bo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Bi={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Vi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},zi={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Wi={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Hi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Ui={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Yi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Gi={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},vb=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,a=t.hover,o=t.active,s=t.circleSize,u=t.circleSpacing,l=me({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:a,active:o});return m.createElement("div",{style:l.swatch},m.createElement(Pn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};vb.defaultProps={circleSize:28,circleSpacing:14};const dW=ed(vb);var kd=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,a=t.colors,o=t.hex,s=t.circleSize,u=t.styles,l=u===void 0?{}:u,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=me(It({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),g=function(y,b){return n({hex:y,source:"hex"},b)};return m.createElement("div",{style:h.card,className:"circle-picker "+d},$n(a,function(p){return m.createElement(dW,{key:p,color:p,onClick:g,onSwatchHover:i,active:o===p.toLowerCase(),circleSize:s,circleSpacing:c})}))};kd.propTypes={width:M.oneOfType([M.string,M.number]),circleSize:M.number,circleSpacing:M.number,styles:M.object},kd.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Pi[500],Di[500],$i[500],Fi[500],Ii[500],ji[500],Li[500],Ri[500],Ni[500],bo[500],Bi[500],Vi[500],zi[500],Wi[500],Hi[500],Ui[500],Yi[500],Gi[500]],styles:{}},jt(kd);function yb(e){return e===void 0}var bb={};Object.defineProperty(bb,"__esModule",{value:!0});var xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hW=m,wb=pW(hW);function pW(e){return e&&e.__esModule?e:{default:e}}function gW(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Pl=24,mW=bb.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Pl:n,a=e.height,o=a===void 0?Pl:a,s=e.style,u=s===void 0?{}:s,l=gW(e,["fill","width","height","style"]);return wb.default.createElement("svg",xb({viewBox:"0 0 "+Pl+" "+Pl,style:xb({fill:r,width:i,height:o},u)},l),wb.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},vW=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bW(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Cb=function(e){xW(t,e);function t(r){yW(this,t);var n=bW(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,a){i.hex?Jr(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},a):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},a):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},a)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(yb(i.s)?n.props.hsl.s:i.s),l:Number(yb(i.l)?n.props.hsl.l:i.l),source:"hsl"},a))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return vW(t,[{key:"render",value:function(){var n=this,i=me({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:i.alpha},m.createElement(Me,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:i.alpha},m.createElement(Me,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:i.wrap,className:"flexbox-fix"},a,m.createElement("div",{style:i.toggle},m.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(mW,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(m.Component);Cb.defaultProps={view:"hex"};var Sb=function(){var t=me({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return m.createElement("div",{style:t.picker})},wW=function(){var t=me({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:t.picker})},Md=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,a=t.rgb,o=t.hsl,s=t.hsv,u=t.hex,l=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,g=t.defaultView,p=me(It({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return m.createElement("div",{style:p.picker,className:"chrome-picker "+h},m.createElement("div",{style:p.saturation},m.createElement(Tl,{style:p.Saturation,hsl:o,hsv:s,pointer:wW,onChange:n})),m.createElement("div",{style:p.body},m.createElement("div",{style:p.controls,className:"flexbox-fix"},m.createElement("div",{style:p.color},m.createElement("div",{style:p.swatch},m.createElement("div",{style:p.active}),m.createElement(Mi,{renderers:l}))),m.createElement("div",{style:p.toggles},m.createElement("div",{style:p.hue},m.createElement(Oi,{style:p.Hue,hsl:o,pointer:Sb,onChange:n})),m.createElement("div",{style:p.alpha},m.createElement(rd,{style:p.Alpha,rgb:a,hsl:o,pointer:Sb,renderers:l,onChange:n})))),m.createElement(Cb,{rgb:a,hsl:o,hex:u,view:g,onChange:n,disableAlpha:i})))};Md.propTypes={width:M.oneOfType([M.string,M.number]),disableAlpha:M.bool,styles:M.object,defaultView:M.oneOf(["hex","rgb","hsl"])},Md.defaultProps={width:225,disableAlpha:!1,styles:{}};const CW=jt(Md);var SW=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,a=t.onSwatchHover,o=t.active,s=me({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:md(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(Pn,{style:s.color,color:r,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},EW=function(t){var r=t.hex,n=t.rgb,i=t.onChange,a=me({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(u,l){u.r||u.g||u.b?i({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):i({hex:u.hex,source:"hex"},l)};return m.createElement("div",{style:a.fields,className:"flexbox-fix"},m.createElement("div",{style:a.active}),m.createElement(Me,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:o}),m.createElement(Me,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:o}),m.createElement(Me,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:o}),m.createElement(Me,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:o}))},Od=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,a=t.hex,o=t.rgb,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=me(It({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),d=function(g,p){g.hex?Jr(g.hex)&&r({hex:g.hex,source:"hex"},p):r(g,p)};return m.createElement(po,{style:f.Compact,styles:u},m.createElement("div",{style:f.compact,className:"compact-picker "+c},m.createElement("div",null,$n(i,function(h){return m.createElement(SW,{key:h,color:h,active:h.toLowerCase()===a,onClick:d,onSwatchHover:n})}),m.createElement("div",{style:f.clear})),m.createElement(EW,{hex:a,rgb:o,onChange:d})))};Od.propTypes={colors:M.arrayOf(M.string),styles:M.object},Od.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},jt(Od);var TW=function(t){var r=t.hover,n=t.color,i=t.onClick,a=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=me({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(Pn,{color:n,onClick:i,onHover:a,focusStyle:o}))};const _W=ed(TW);var Ad=function(t){var r=t.width,n=t.colors,i=t.onChange,a=t.onSwatchHover,o=t.triangle,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=me(It({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(g,p){return i({hex:g,source:"hex"},p)};return m.createElement("div",{style:f.card,className:"github-picker "+c},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),$n(n,function(h){return m.createElement(_W,{color:h,key:h,onClick:d,onSwatchHover:a})}))};Ad.propTypes={width:M.oneOfType([M.string,M.number]),colors:M.arrayOf(M.string),triangle:M.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:M.object},Ad.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},jt(Ad);var kW=function(t){var r=t.direction,n=me({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return m.createElement("div",{style:n.picker})},MW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd=function(t){var r=t.width,n=t.height,i=t.onChange,a=t.hsl,o=t.direction,s=t.pointer,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=me(It({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return m.createElement("div",{style:d.picker,className:"hue-picker "+f},m.createElement(Oi,MW({},d.hue,{hsl:a,pointer:s,onChange:h,direction:o})))};Pd.propTypes={styles:M.object},Pd.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:kW,styles:{}},jt(Pd);var OW=function(t){var r=t.onChange,n=t.hex,i=t.rgb,a=t.styles,o=a===void 0?{}:a,s=t.className,u=s===void 0?"":s,l=me(It({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),c=function(d,h){d.hex?Jr(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return m.createElement(po,{styles:o},m.createElement("div",{style:l.material,className:"material-picker "+u},m.createElement(Me,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),m.createElement("div",{style:l.split,className:"flexbox-fix"},m.createElement("div",{style:l.third},m.createElement(Me,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),m.createElement("div",{style:l.third},m.createElement(Me,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),m.createElement("div",{style:l.third},m.createElement(Me,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))};jt(OW);var AW=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,a=t.hex,o=me({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?Jr(l["#"])&&r({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},c)};return m.createElement("div",{style:o.fields},m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),m.createElement("div",{style:o.divider}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),m.createElement("div",{style:o.divider}),m.createElement(Me,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:a.replace("#",""),onChange:s}),m.createElement("div",{style:o.fieldSymbols},m.createElement("div",{style:o.symbol},"°"),m.createElement("div",{style:o.symbol},"%"),m.createElement("div",{style:o.symbol},"%")))},PW=function(t){var r=t.hsl,n=me({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return m.createElement("div",{style:n.picker})},DW=function(){var t=me({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return m.createElement("div",{style:t.pointer},m.createElement("div",{style:t.left},m.createElement("div",{style:t.leftInside})),m.createElement("div",{style:t.right},m.createElement("div",{style:t.rightInside})))},Eb=function(t){var r=t.onClick,n=t.label,i=t.children,a=t.active,o=me({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return m.createElement("div",{style:o.button,onClick:r},n||i)},$W=function(t){var r=t.rgb,n=t.currentColor,i=me({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return m.createElement("div",null,m.createElement("div",{style:i.label},"new"),m.createElement("div",{style:i.swatches},m.createElement("div",{style:i.new}),m.createElement("div",{style:i.current})),m.createElement("div",{style:i.label},"current"))},FW=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function IW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jW(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function LW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Dd=function(e){LW(t,e);function t(r){IW(this,t);var n=jW(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return FW(t,[{key:"render",value:function(){var n=this.props,i=n.styles,a=i===void 0?{}:i,o=n.className,s=o===void 0?"":o,u=me(It({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},a));return m.createElement("div",{style:u.picker,className:"photoshop-picker "+s},m.createElement("div",{style:u.head},this.props.header),m.createElement("div",{style:u.body,className:"flexbox-fix"},m.createElement("div",{style:u.saturation},m.createElement(Tl,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:PW,onChange:this.props.onChange})),m.createElement("div",{style:u.hue},m.createElement(Oi,{direction:"vertical",hsl:this.props.hsl,pointer:DW,onChange:this.props.onChange})),m.createElement("div",{style:u.controls},m.createElement("div",{style:u.top,className:"flexbox-fix"},m.createElement("div",{style:u.previews},m.createElement($W,{rgb:this.props.rgb,currentColor:this.state.currentColor})),m.createElement("div",{style:u.actions},m.createElement(Eb,{label:"OK",onClick:this.props.onAccept,active:!0}),m.createElement(Eb,{label:"Cancel",onClick:this.props.onCancel}),m.createElement(AW,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(m.Component);Dd.propTypes={header:M.string,styles:M.object},Dd.defaultProps={header:"Color Picker",styles:{}},jt(Dd);var RW=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,a=t.hex,o=t.disableAlpha,s=me({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),u=function(c,f){c.hex?Jr(c.hex)&&r({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:i.h,s:i.s,l:i.l,a:c.a,source:"rgb"},f))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(Me,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:u})),m.createElement("div",{style:s.single},m.createElement(Me,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Me,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Me,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(Me,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},NW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tb=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,a=t.onSwatchHover,o=me({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,c){i({hex:l,source:"hex"},c)};return m.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return m.createElement("div",{key:c,style:o.swatchWrap},m.createElement(Pn,NW({},l,{style:o.swatch,onClick:s,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};Tb.propTypes={colors:M.arrayOf(M.oneOfType([M.string,M.shape({color:M.string,title:M.string})])).isRequired};var BW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$d=function(t){var r=t.width,n=t.rgb,i=t.hex,a=t.hsv,o=t.hsl,s=t.onChange,u=t.onSwatchHover,l=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,g=t.className,p=g===void 0?"":g,y=me(It({default:BW({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return m.createElement("div",{style:y.picker,className:"sketch-picker "+p},m.createElement("div",{style:y.saturation},m.createElement(Tl,{style:y.Saturation,hsl:o,hsv:a,onChange:s})),m.createElement("div",{style:y.controls,className:"flexbox-fix"},m.createElement("div",{style:y.sliders},m.createElement("div",{style:y.hue},m.createElement(Oi,{style:y.Hue,hsl:o,onChange:s})),m.createElement("div",{style:y.alpha},m.createElement(rd,{style:y.Alpha,rgb:n,hsl:o,renderers:f,onChange:s}))),m.createElement("div",{style:y.color},m.createElement(Mi,null),m.createElement("div",{style:y.activeColor}))),m.createElement(RW,{rgb:n,hsl:o,hex:i,onChange:s,disableAlpha:l}),m.createElement(Tb,{colors:c,onClick:s,onSwatchHover:u}))};$d.propTypes={disableAlpha:M.bool,width:M.oneOfType([M.string,M.number]),styles:M.object},$d.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},jt($d);var xo=function(t){var r=t.hsl,n=t.offset,i=t.onClick,a=i===void 0?function(){}:i,o=t.active,s=t.first,u=t.last,l=me({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:u}),c=function(d){return a({h:r.h,s:.5,l:n,source:"hsl"},d)};return m.createElement("div",{style:l.swatch,onClick:c})},VW=function(t){var r=t.onClick,n=t.hsl,i=me({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return m.createElement("div",{style:i.swatches},m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<a&&Math.abs(n.s-.5)<a,onClick:r,first:!0})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<a&&Math.abs(n.s-.5)<a,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<a&&Math.abs(n.s-.5)<a,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<a&&Math.abs(n.s-.5)<a,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<a&&Math.abs(n.s-.5)<a,onClick:r,last:!0})),m.createElement("div",{style:i.clear}))},zW=function(){var t=me({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return m.createElement("div",{style:t.picker})},Fd=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,a=t.styles,o=a===void 0?{}:a,s=t.className,u=s===void 0?"":s,l=me(It({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return m.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},m.createElement("div",{style:l.hue},m.createElement(Oi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),m.createElement("div",{style:l.swatches},m.createElement(VW,{hsl:r,onClick:n})))};Fd.propTypes={styles:M.object},Fd.defaultProps={pointer:zW,styles:{}},jt(Fd);var _b={};Object.defineProperty(_b,"__esModule",{value:!0});var kb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WW=m,Mb=HW(WW);function HW(e){return e&&e.__esModule?e:{default:e}}function UW(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Dl=24,YW=_b.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Dl:n,a=e.height,o=a===void 0?Dl:a,s=e.style,u=s===void 0?{}:s,l=UW(e,["fill","width","height","style"]);return Mb.default.createElement("svg",kb({viewBox:"0 0 "+Dl+" "+Dl,style:kb({fill:r,width:i,height:o},u)},l),Mb.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},GW=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,a=t.onSwatchHover,o=t.first,s=t.last,u=t.active,l=me({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:md(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(Pn,{color:r,style:l.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:l.check},m.createElement(YW,null)))},qW=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,a=t.active,o=me({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:o.group},$n(i,function(s,u){return m.createElement(GW,{key:s,color:s,active:s.toLowerCase()===a,first:u===0,last:u===i.length-1,onClick:r,onSwatchHover:n})}))},Id=function(t){var r=t.width,n=t.height,i=t.onChange,a=t.onSwatchHover,o=t.colors,s=t.hex,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=me(It({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,y){return i({hex:p,source:"hex"},y)};return m.createElement("div",{style:d.picker,className:"swatches-picker "+f},m.createElement(po,null,m.createElement("div",{style:d.overflow},m.createElement("div",{style:d.body},$n(o,function(g){return m.createElement(qW,{key:g.toString(),group:g,active:s,onClick:h,onSwatchHover:a})}),m.createElement("div",{style:d.clear})))))};Id.propTypes={width:M.oneOfType([M.string,M.number]),height:M.oneOfType([M.string,M.number]),colors:M.arrayOf(M.arrayOf(M.string)),styles:M.object},Id.defaultProps={width:320,height:240,colors:[[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],[$i[900],$i[700],$i[500],$i[300],$i[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[Ii[900],Ii[700],Ii[500],Ii[300],Ii[100]],[ji[900],ji[700],ji[500],ji[300],ji[100]],[Li[900],Li[700],Li[500],Li[300],Li[100]],[Ri[900],Ri[700],Ri[500],Ri[300],Ri[100]],[Ni[900],Ni[700],Ni[500],Ni[300],Ni[100]],["#194D33",bo[700],bo[500],bo[300],bo[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[zi[900],zi[700],zi[500],zi[300],zi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},jt(Id);var jd=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,a=t.colors,o=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=me(It({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,y){Jr(p)&&r({hex:p,source:"hex"},y)};return m.createElement("div",{style:d.card,className:"twitter-picker "+f},m.createElement("div",{style:d.triangleShadow}),m.createElement("div",{style:d.triangle}),m.createElement("div",{style:d.body},$n(a,function(g,p){return m.createElement(Pn,{key:p,color:g,hex:g,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+g}})}),m.createElement("div",{style:d.hash},"#"),m.createElement(Me,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),m.createElement("div",{style:d.clear})))};jd.propTypes={width:M.oneOfType([M.string,M.number]),triangle:M.oneOf(["hide","top-left","top-right"]),colors:M.arrayOf(M.string),styles:M.object},jd.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},jt(jd);var Ld=function(t){var r=me({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return m.createElement("div",{style:r.picker})};Ld.propTypes={hsl:M.shape({h:M.number,s:M.number,l:M.number,a:M.number})},Ld.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Rd=function(t){var r=me({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return m.createElement("div",{style:r.picker})};Rd.propTypes={hsl:M.shape({h:M.number,s:M.number,l:M.number,a:M.number})},Rd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var KW=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,a=t.hex,o=t.hsv,s=function(h,g){if(h.hex)Jr(h.hex)&&r({hex:h.hex,source:"hex"},g);else if(h.rgb){var p=h.rgb.split(",");vd(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},g)}else if(h.hsv){var y=h.hsv.split(",");vd(h.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},g))}else if(h.hsl){var b=h.hsl.split(",");vd(h.hsl,"hsl")&&(b[2]=b[2].replace("%",""),b[1]=b[1].replace("%",""),b[0]=b[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(b[0]),s:Number(b[1]),v:Number(b[2]),source:"hsl"},g))}},u=me({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return m.createElement("div",{style:u.wrap,className:"flexbox-fix"},m.createElement("div",{style:u.fields},m.createElement("div",{style:u.double},m.createElement(Me,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:s})),m.createElement("div",{style:u.column},m.createElement("div",{style:u.single},m.createElement(Me,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),m.createElement("div",{style:u.single},m.createElement(Me,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),m.createElement("div",{style:u.single},m.createElement(Me,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},Nd=function(t){var r=t.width,n=t.onChange,i=t.rgb,a=t.hsl,o=t.hsv,s=t.hex,u=t.header,l=t.styles,c=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=me(It({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return m.createElement("div",{style:h.picker,className:"google-picker "+d},m.createElement("div",{style:h.head},u),m.createElement("div",{style:h.swatch}),m.createElement("div",{style:h.saturation},m.createElement(Tl,{hsl:a,hsv:o,pointer:Ld,onChange:n})),m.createElement("div",{style:h.body},m.createElement("div",{style:h.controls,className:"flexbox-fix"},m.createElement("div",{style:h.hue},m.createElement(Oi,{style:h.Hue,hsl:a,radius:"4px",pointer:Rd,onChange:n}))),m.createElement(KW,{rgb:i,hsl:a,hex:s,hsv:o,onChange:n})))};Nd.propTypes={width:M.oneOfType([M.string,M.number]),styles:M.object,header:M.string},Nd.defaultProps={width:652,styles:{},header:"Color picker"},jt(Nd);const Ob=({value:e,onChangeColor:t,tabIndex:r,...n})=>{const i=e?"#"+e.replaceAll("#",""):"",[a,o]=m.useState(null),s=c=>{o(c.currentTarget)},u=()=>o(null),l=(c="")=>{(/^#[0-9a-fA-F]*$/.test(c)||c===""||c==="#")&&t("#"+c.replaceAll("#",""))};return v.jsxs(v.Fragment,{children:[v.jsx(E.TextField,{...n,value:i,onChange:c=>l(c.target.value),InputProps:{inputProps:{...n.inputProps,maxLength:7,tabIndex:r},startAdornment:v.jsx(E.InputAdornment,{position:"start",sx:{ml:2},children:v.jsx(E.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:s,children:v.jsx(nt,{icon:"bi:square-fill",color:i,width:25,height:23})})})}}),v.jsx(E.Popover,{open:!!a,anchorEl:a,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:v.jsx(CW,{color:i,onChange:c=>t(c.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function De(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function N(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function B(e){N(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ir(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Bd(e,t){N(2,arguments);var r=B(e),n=De(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function $l(e,t){N(2,arguments);var r=B(e).getTime(),n=De(t);return new Date(r+n)}function XW(e,t){N(2,arguments);var r=De(t);return $l(e,r*1e3)}var ZW=6e4;function QW(e,t){N(2,arguments);var r=De(t);return $l(e,r*ZW)}var JW=36e5;function eH(e,t){N(2,arguments);var r=De(t);return $l(e,r*JW)}function tH(e,t){N(2,arguments);var r=De(t),n=r*7;return Bd(e,n)}function Fl(e,t){N(2,arguments);var r=B(e),n=De(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Ab(e,t){N(2,arguments);var r=De(t);return Fl(e,r*12)}function rH(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getFullYear()-n.getFullYear()}function qi(e,t){N(2,arguments);var r=B(e),n=B(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function nH(e,t){N(2,arguments);var r=B(e),n=B(t),i=qi(r,n),a=Math.abs(rH(r,n));r.setFullYear(1584),n.setFullYear(1584);var o=qi(r,n)===-i,s=i*(a-Number(o));return s===0?0:s}function iH(e,t){N(2,arguments);var r=B(e),n=B(t),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function Vd(e){N(1,arguments);var t=B(e);return t.setHours(23,59,59,999),t}function zd(e){N(1,arguments);var t=B(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function aH(e){N(1,arguments);var t=B(e);return Vd(t).getTime()===zd(t).getTime()}function Wd(e,t){N(2,arguments);var r=B(e),n=B(t),i=qi(r,n),a=Math.abs(iH(r,n)),o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=qi(r,n)===-i;aH(B(e))&&a===1&&qi(e,n)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}var Pb={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},oH="trunc";function wo(e){return e?Pb[e]:Pb[oH]}function sH(e,t,r){N(2,arguments);var n=Wd(e,t)/3;return wo(r==null?void 0:r.roundingMethod)(n)}function Ki(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xi(e){N(1,arguments);var t=B(e);return t.setHours(0,0,0,0),t}var lH=864e5;function uH(e,t){N(2,arguments);var r=Xi(e),n=Xi(t),i=r.getTime()-Ki(r),a=n.getTime()-Ki(n);return Math.round((i-a)/lH)}function Db(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function $b(e,t){N(2,arguments);var r=B(e),n=B(t),i=Db(r,n),a=Math.abs(uH(r,n));r.setDate(r.getDate()-i*a);var o=+(Db(r,n)===-i),s=i*(a-o);return s===0?0:s}function cH(e,t,r){N(2,arguments);var n=$b(e,t)/7;return wo(r==null?void 0:r.roundingMethod)(n)}var Il=6e4,jl=36e5,fH=1e3;function Ll(e,t){return N(2,arguments),B(e).getTime()-B(t).getTime()}function dH(e,t,r){N(2,arguments);var n=Ll(e,t)/jl;return wo(r==null?void 0:r.roundingMethod)(n)}function hH(e,t,r){N(2,arguments);var n=Ll(e,t)/Il;return wo(r==null?void 0:r.roundingMethod)(n)}function Fb(e,t,r){N(2,arguments);var n=Ll(e,t)/1e3;return wo(r==null?void 0:r.roundingMethod)(n)}function pH(e,t){var r;N(1,arguments);var n=e||{},i=B(n.start),a=B(n.end),o=a.getTime();if(!(i.getTime()<=o))throw new RangeError("Invalid interval");var s=[],u=i;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)s.push(B(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}var gH={};function lr(){return gH}function Hd(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=B(e),h=d.getDay(),g=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}function Ud(e){N(1,arguments);var t=B(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function mH(e){return N(1,arguments),e instanceof Date||Ir(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Yd(e){if(N(1,arguments),!mH(e)&&typeof e!="number")return!1;var t=B(e);return!isNaN(Number(t))}function Ib(e,t){N(2,arguments);var r=De(t);return $l(e,-r)}var vH=864e5;function yH(e){N(1,arguments);var t=B(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/vH)+1}function Zi(e){N(1,arguments);var t=1,r=B(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function jb(e){N(1,arguments);var t=B(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Zi(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var o=Zi(a);return t.getTime()>=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function bH(e){N(1,arguments);var t=jb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Zi(r);return n}var xH=6048e5;function Lb(e){N(1,arguments);var t=B(e),r=Zi(t).getTime()-bH(t).getTime();return Math.round(r/xH)+1}function Fn(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=B(e),h=d.getUTCDay(),g=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-g),d.setUTCHours(0,0,0,0),d}function Gd(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=B(e),f=c.getUTCFullYear(),d=lr(),h=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(f+1,0,h),g.setUTCHours(0,0,0,0);var p=Fn(g,t),y=new Date(0);y.setUTCFullYear(f,0,h),y.setUTCHours(0,0,0,0);var b=Fn(y,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function wH(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Gd(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var g=Fn(h,t);return g}var CH=6048e5;function Rb(e,t){N(1,arguments);var r=B(e),n=Fn(r,t).getTime()-wH(r,t).getTime();return Math.round(n/CH)+1}function Te(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var SH={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return Te(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Te(n+1,2)},d:function(t,r){return Te(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Te(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Te(t.getUTCHours(),r.length)},m:function(t,r){return Te(t.getUTCMinutes(),r.length)},s:function(t,r){return Te(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return Te(a,r.length)}};const en=SH;var Qi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},EH={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return en.y(t,r)},Y:function(t,r,n,i){var a=Gd(t,i),o=a>0?a:1-a;if(r==="YY"){var s=o%100;return Te(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Te(o,r.length)},R:function(t,r){var n=jb(t);return Te(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Te(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Te(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Te(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return en.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return Te(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var a=Rb(t,i);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):Te(a,r.length)},I:function(t,r,n){var i=Lb(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):Te(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):en.d(t,r)},D:function(t,r,n){var i=yH(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Te(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Te(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Te(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),a=i===0?7:i;switch(r){case"i":return String(a);case"ii":return Te(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),a;switch(i===12?a=Qi.noon:i===0?a=Qi.midnight:a=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),a;switch(i>=17?a=Qi.evening:i>=12?a=Qi.afternoon:i>=4?a=Qi.morning:a=Qi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return en.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):en.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Te(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):Te(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):en.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):en.s(t,r)},S:function(t,r){return en.S(t,r)},X:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Bb(o);case"XXXX":case"XX":return In(o);case"XXXXX":case"XXX":default:return In(o,":")}},x:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(r){case"x":return Bb(o);case"xxxx":case"xx":return In(o);case"xxxxx":case"xxx":default:return In(o,":")}},O:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Nb(o,":");case"OOOO":default:return"GMT"+In(o,":")}},z:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Nb(o,":");case"zzzz":default:return"GMT"+In(o,":")}},t:function(t,r,n,i){var a=i._originalDate||t,o=Math.floor(a.getTime()/1e3);return Te(o,r.length)},T:function(t,r,n,i){var a=i._originalDate||t,o=a.getTime();return Te(o,r.length)}};function Nb(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=t||"";return r+String(i)+o+Te(a,2)}function Bb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Te(Math.abs(e)/60,2)}return In(e,t)}function In(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=Te(Math.floor(i/60),2),o=Te(i%60,2);return n+a+r+o}const TH=EH;var Vb=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},zb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},_H=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return Vb(t,r);var o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Vb(i,r)).replace("{{time}}",zb(a,r))},kH={p:zb,P:_H};const qd=kH;var MH=["D","DD"],OH=["YY","YYYY"];function Wb(e){return MH.indexOf(e)!==-1}function Hb(e){return OH.indexOf(e)!==-1}function Rl(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AH={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},PH=function(t,r,n){var i,a=AH[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const DH=PH;function Ji(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var $H={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jH={date:Ji({formats:$H,defaultWidth:"full"}),time:Ji({formats:FH,defaultWidth:"full"}),dateTime:Ji({formats:IH,defaultWidth:"full"})};const LH=jH;var RH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NH=function(t,r,n,i){return RH[t]};const BH=NH;function yr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var VH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HH={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},YH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},GH=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},qH={ordinalNumber:GH,era:yr({values:VH,defaultWidth:"wide"}),quarter:yr({values:zH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yr({values:WH,defaultWidth:"wide"}),day:yr({values:HH,defaultWidth:"wide"}),dayPeriod:yr({values:UH,defaultWidth:"wide",formattingValues:YH,defaultFormattingWidth:"wide"})};const KH=qH;function br(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?ZH(s,function(f){return f.test(o)}):XH(s,function(f){return f.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function XH(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ZH(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ub(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var QH=/^(\d+)(th|st|nd|rd)?/i,JH=/\d+/i,eU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tU={any:[/^b/i,/^(a|c)/i]},rU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nU={any:[/1/i,/2/i,/3/i,/4/i]},iU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cU={ordinalNumber:Ub({matchPattern:QH,parsePattern:JH,valueCallback:function(t){return parseInt(t,10)}}),era:br({matchPatterns:eU,defaultMatchWidth:"wide",parsePatterns:tU,defaultParseWidth:"any"}),quarter:br({matchPatterns:rU,defaultMatchWidth:"wide",parsePatterns:nU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:br({matchPatterns:iU,defaultMatchWidth:"wide",parsePatterns:aU,defaultParseWidth:"any"}),day:br({matchPatterns:oU,defaultMatchWidth:"wide",parsePatterns:sU,defaultParseWidth:"any"}),dayPeriod:br({matchPatterns:lU,defaultMatchWidth:"any",parsePatterns:uU,defaultParseWidth:"any"})},fU={code:"en-US",formatDistance:DH,formatLong:LH,formatRelative:BH,localize:KH,match:cU,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Nl=fU;var dU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pU=/^'([^]*?)'?$/,gU=/''/g,mU=/[a-zA-Z]/;function Kd(e,t,r){var n,i,a,o,s,u,l,c,f,d,h,g,p,y,b,x,C,k;N(2,arguments);var w=String(t),_=lr(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:Nl,O=De((a=(o=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&o!==void 0?o:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=De((h=(g=(p=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:_.weekStartsOn)!==null&&g!==void 0?g:(C=_.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&h!==void 0?h:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var F=B(e);if(!Yd(F))throw new RangeError("Invalid time value");var Z=Ki(F),be=Ib(F,Z),oe={firstWeekContainsDate:O,weekStartsOn:P,locale:T,_originalDate:F},Q=w.match(hU).map(function(H){var R=H[0];if(R==="p"||R==="P"){var U=qd[R];return U(H,T.formatLong)}return H}).join("").match(dU).map(function(H){if(H==="''")return"'";var R=H[0];if(R==="'")return vU(H);var U=TH[R];if(U)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Hb(H)&&Rl(H,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Wb(H)&&Rl(H,t,String(e)),U(be,H,T.localize,oe);if(R.match(mU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return H}).join("");return Q}function vU(e){var t=e.match(pU);return t?t[1].replace(gU,"'"):e}function yU(e){N(1,arguments);var t=B(e),r=t.getDate();return r}function Yb(e){N(1,arguments);var t=B(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function bU(e){N(1,arguments);var t=B(e),r=t.getHours();return r}function xU(e){N(1,arguments);var t=B(e),r=t.getMinutes();return r}function wU(e){N(1,arguments);var t=B(e),r=t.getMonth();return r}function CU(e){N(1,arguments);var t=B(e),r=t.getSeconds();return r}function SU(e){N(1,arguments);var t=B(e),r=t.getMilliseconds();return r}function jn(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=B(e),h=d.getDay(),g=(h<f?7:0)+h-f;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function EU(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=B(e),f=c.getFullYear(),d=lr(),h=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setFullYear(f+1,0,h),g.setHours(0,0,0,0);var p=jn(g,t),y=new Date(0);y.setFullYear(f,0,h),y.setHours(0,0,0,0);var b=jn(y,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function TU(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=EU(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var g=jn(h,t);return g}var _U=6048e5;function kU(e,t){N(1,arguments);var r=B(e),n=jn(r,t).getTime()-TU(r,t).getTime();return Math.round(n/_U)+1}function MU(e){return N(1,arguments),B(e).getFullYear()}function Xd(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getTime()>n.getTime()}function Co(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getTime()<n.getTime()}function OU(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getTime()===n.getTime()}function AU(e,t){N(2,arguments);var r=Xi(e),n=Xi(t);return r.getTime()===n.getTime()}function PU(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getFullYear()===n.getFullYear()}function DU(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Gb(e){N(1,arguments);var t=B(e);return t.setMinutes(0,0,0),t}function $U(e,t){N(2,arguments);var r=Gb(e),n=Gb(t);return r.getTime()===n.getTime()}function qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FU(e,t){if(e){if(typeof e=="string")return qb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qb(e,t)}}function Kb(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=FU(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Zd(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Js(e,t)}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(e)}function IU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jU(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}function Fe(e){var t=IU();return function(){var n=Bl(e),i;if(t){var a=Bl(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return jU(this,i)}}function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LU(e,t){if(Ir(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xb(e){var t=LU(e,"string");return Ir(t)==="symbol"?t:String(t)}function Zb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xb(n.key),n)}}function Ae(e,t,r){return t&&Zb(e.prototype,t),r&&Zb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e,t,r){return t=Xb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var RU=10,Qb=function(){function e(){Oe(this,e),G(this,"priority",void 0),G(this,"subPriority",0)}return Ae(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),NU=function(e){$e(r,e);var t=Fe(r);function r(n,i,a,o,s){var u;return Oe(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=a,u.priority=o,s&&(u.subPriority=s),u}return Ae(r,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,o){return this.setValue(i,a,this.value,o)}}]),r}(Qb),BU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",RU),G(K(n),"subPriority",-1),n}return Ae(r,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}}]),r}(Qb),Le=function(){function e(){Oe(this,e),G(this,"incompatibleTokens",void 0),G(this,"priority",void 0),G(this,"subPriority",void 0)}return Ae(e,[{key:"run",value:function(r,n,i,a){var o=this.parse(r,n,i,a);return o?{setter:new NU(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),VU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",140),G(K(n),"incompatibleTokens",["R","u","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})||o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,o){return a.era=o,i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),vt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},xr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function yt(e,t){return e&&{value:t(e.value),rest:e.rest}}function ot(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function wr(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(i*jl+a*Il+o*fH),rest:t.slice(r[0].length)}}function Jb(e){return ot(vt.anyDigitsSigned,e)}function ht(e,t){switch(e){case 1:return ot(vt.singleDigit,t);case 2:return ot(vt.twoDigits,t);case 3:return ot(vt.threeDigits,t);case 4:return ot(vt.fourDigits,t);default:return ot(new RegExp("^\\d{1,"+e+"}"),t)}}function Vl(e,t){switch(e){case 1:return ot(vt.singleDigitSigned,t);case 2:return ot(vt.twoDigitsSigned,t);case 3:return ot(vt.threeDigitsSigned,t);case 4:return ot(vt.fourDigitsSigned,t);default:return ot(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function e2(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var a=n+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return r?i:1-i}function t2(e){return e%400===0||e%4===0&&e%100!==0}var zU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return{year:l,isTwoDigitYear:a==="yy"}};switch(a){case"y":return yt(ht(4,i),s);case"yo":return yt(o.ordinalNumber(i,{unit:"year"}),s);default:return yt(ht(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var u=e2(o.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),WU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return{year:l,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return yt(ht(4,i),s);case"Yo":return yt(o.ordinalNumber(i,{unit:"year"}),s);default:return yt(ht(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o,s){var u=Gd(i,s);if(o.isTwoDigitYear){var l=e2(o.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Fn(i,s)}var c=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Fn(i,s)}}]),r}(Le),HU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a){return Vl(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),Zi(s)}}]),r}(Le),UU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a){return Vl(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,o){return i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),YU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",120),G(K(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"Q":case"QQ":return ht(a.length,i);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})||o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),GU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",120),G(K(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"q":case"qq":return ht(a.length,i);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})||o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),qU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),G(K(n),"priority",110),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return l-1};switch(a){case"M":return yt(ot(vt.month,i),s);case"MM":return yt(ht(2,i),s);case"Mo":return yt(o.ordinalNumber(i,{unit:"month"}),s);case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})||o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),KU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",110),G(K(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return l-1};switch(a){case"L":return yt(ot(vt.month,i),s);case"LL":return yt(ht(2,i),s);case"Lo":return yt(o.ordinalNumber(i,{unit:"month"}),s);case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})||o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le);function XU(e,t,r){N(2,arguments);var n=B(e),i=De(t),a=Rb(n,r)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}var ZU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",100),G(K(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"w":return ot(vt.week,i);case"wo":return o.ordinalNumber(i,{unit:"week"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o,s){return Fn(XU(i,o,s),s)}}]),r}(Le);function QU(e,t){N(2,arguments);var r=B(e),n=De(t),i=Lb(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var JU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",100),G(K(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"I":return ot(vt.week,i);case"Io":return o.ordinalNumber(i,{unit:"week"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o){return Zi(QU(i,o))}}]),r}(Le),eY=[31,28,31,30,31,30,31,31,30,31,30,31],tY=[31,29,31,30,31,30,31,31,30,31,30,31],rY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"subPriority",1),G(K(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"d":return ot(vt.date,i);case"do":return o.ordinalNumber(i,{unit:"date"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=t2(o),u=i.getUTCMonth();return s?a>=1&&a<=tY[u]:a>=1&&a<=eY[u]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),r}(Le),nY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"subpriority",1),G(K(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"D":case"DD":return ot(vt.dayOfYear,i);case"Do":return o.ordinalNumber(i,{unit:"date"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=t2(o);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),r}(Le);function Jd(e,t,r){var n,i,a,o,s,u,l,c;N(2,arguments);var f=lr(),d=De((n=(i=(a=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=B(e),g=De(t),p=h.getUTCDay(),y=g%7,b=(y+7)%7,x=(b<d?7:0)+g-p;return h.setUTCDate(h.getUTCDate()+x),h}var iY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Jd(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r}(Le),aY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(a){case"e":case"ee":return yt(ht(a.length,i),u);case"eo":return yt(o.ordinalNumber(i,{unit:"day"}),u);case"eee":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Jd(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r}(Le),oY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(a){case"c":case"cc":return yt(ht(a.length,i),u);case"co":return yt(o.ordinalNumber(i,{unit:"day"}),u);case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})||o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Jd(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r}(Le);function sY(e,t){N(2,arguments);var r=De(t);r%7===0&&(r=r-7);var n=1,i=B(e),a=i.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<n?7:0)+r-a;return i.setUTCDate(i.getUTCDate()+u),i}var lY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return l===0?7:l};switch(a){case"i":case"ii":return ht(a.length,i);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return yt(o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return yt(o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return yt(o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return yt(o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,o){return i=sY(i,o),i.setUTCHours(0,0,0,0),i}}]),r}(Le),uY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",80),G(K(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"a":case"aa":case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Qd(o),0,0,0),i}}]),r}(Le),cY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",80),G(K(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"b":case"bb":case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Qd(o),0,0,0),i}}]),r}(Le),fY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",80),G(K(n),"incompatibleTokens",["a","b","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Qd(o),0,0,0),i}}]),r}(Le),dY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"h":return ot(vt.hour12h,i);case"ho":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),r}(Le),hY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"H":return ot(vt.hour23h,i);case"Ho":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),r}(Le),pY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"K":return ot(vt.hour11h,i);case"Ko":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),r}(Le),gY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"k":return ot(vt.hour24h,i);case"ko":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),r}(Le),mY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",60),G(K(n),"incompatibleTokens",["t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"m":return ot(vt.minute,i);case"mo":return o.ordinalNumber(i,{unit:"minute"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),r}(Le),vY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",50),G(K(n),"incompatibleTokens",["t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"s":return ot(vt.second,i);case"so":return o.ordinalNumber(i,{unit:"second"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),r}(Le),yY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",30),G(K(n),"incompatibleTokens",["t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a){var o=function(u){return Math.floor(u*Math.pow(10,-a.length+3))};return yt(ht(a.length,i),o)}},{key:"set",value:function(i,a,o){return i.setUTCMilliseconds(o),i}}]),r}(Le),bY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",10),G(K(n),"incompatibleTokens",["t","T","x"]),n}return Ae(r,[{key:"parse",value:function(i,a){switch(a){case"X":return wr(xr.basicOptionalMinutes,i);case"XX":return wr(xr.basic,i);case"XXXX":return wr(xr.basicOptionalSeconds,i);case"XXXXX":return wr(xr.extendedOptionalSeconds,i);case"XXX":default:return wr(xr.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),r}(Le),xY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",10),G(K(n),"incompatibleTokens",["t","T","X"]),n}return Ae(r,[{key:"parse",value:function(i,a){switch(a){case"x":return wr(xr.basicOptionalMinutes,i);case"xx":return wr(xr.basic,i);case"xxxx":return wr(xr.basicOptionalSeconds,i);case"xxxxx":return wr(xr.extendedOptionalSeconds,i);case"xxx":default:return wr(xr.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),r}(Le),wY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",40),G(K(n),"incompatibleTokens","*"),n}return Ae(r,[{key:"parse",value:function(i){return Jb(i)}},{key:"set",value:function(i,a,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(Le),CY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",20),G(K(n),"incompatibleTokens","*"),n}return Ae(r,[{key:"parse",value:function(i){return Jb(i)}},{key:"set",value:function(i,a,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(Le),SY={G:new VU,y:new zU,Y:new WU,R:new HU,u:new UU,Q:new YU,q:new GU,M:new qU,L:new KU,w:new ZU,I:new JU,d:new rY,D:new nY,E:new iY,e:new aY,c:new oY,i:new lY,a:new uY,b:new cY,B:new fY,h:new dY,H:new hY,K:new pY,k:new gY,m:new mY,s:new vY,S:new yY,X:new bY,x:new xY,t:new wY,T:new CY},EY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_Y=/^'([^]*?)'?$/,kY=/''/g,MY=/\S/,OY=/[a-zA-Z]/;function r2(e,t,r,n){var i,a,o,s,u,l,c,f,d,h,g,p,y,b,x,C,k,w;N(3,arguments);var _=String(e),T=String(t),O=lr(),P=(i=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:O.locale)!==null&&i!==void 0?i:Nl;if(!P.match)throw new RangeError("locale must contain match property");var F=De((o=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:O.firstWeekContainsDate)!==null&&s!==void 0?s:(d=O.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=De((g=(p=(y=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(x=n.locale)===null||x===void 0||(C=x.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&y!==void 0?y:O.weekStartsOn)!==null&&p!==void 0?p:(k=O.locale)===null||k===void 0||(w=k.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return _===""?B(r):new Date(NaN);var be={firstWeekContainsDate:F,weekStartsOn:Z,locale:P},oe=[new BU],Q=T.match(TY).map(function(ee){var q=ee[0];if(q in qd){var te=qd[q];return te(ee,P.formatLong)}return ee}).join("").match(EY),H=[],R=Kb(Q),U;try{var Ce=function(){var q=U.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&Hb(q)&&Rl(q,T,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Wb(q)&&Rl(q,T,e);var te=q[0],Se=SY[te];if(Se){var j=Se.incompatibleTokens;if(Array.isArray(j)){var Je=H.find(function(V){return j.includes(V.token)||V.token===te});if(Je)throw new RangeError("The format string mustn't contain `".concat(Je.fullToken,"` and `").concat(q,"` at the same time"))}else if(Se.incompatibleTokens==="*"&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(q,"` and any other token at the same time"));H.push({token:te,fullToken:q});var J=Se.run(_,q,P.match,be);if(!J)return{v:new Date(NaN)};oe.push(J.setter),_=J.rest}else{if(te.match(OY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(q==="''"?q="'":te==="'"&&(q=AY(q)),_.indexOf(q)===0)_=_.slice(q.length);else return{v:new Date(NaN)}}};for(R.s();!(U=R.n()).done;){var fe=Ce();if(Ir(fe)==="object")return fe.v}}catch(ee){R.e(ee)}finally{R.f()}if(_.length>0&&MY.test(_))return new Date(NaN);var D=oe.map(function(ee){return ee.priority}).sort(function(ee,q){return q-ee}).filter(function(ee,q,te){return te.indexOf(ee)===q}).map(function(ee){return oe.filter(function(q){return q.priority===ee}).sort(function(q,te){return te.subPriority-q.subPriority})}).map(function(ee){return ee[0]}),$=B(r);if(isNaN($.getTime()))return new Date(NaN);var W=Ib($,Ki($)),se={},X=Kb(D),ce;try{for(X.s();!(ce=X.n()).done;){var ne=ce.value;if(!ne.validate(W,be))return new Date(NaN);var le=ne.set(W,se,be);Array.isArray(le)?(W=le[0],Zd(se,le[1])):W=le}}catch(ee){X.e(ee)}finally{X.f()}return W}function AY(e){return e.match(_Y)[1].replace(kY,"'")}function PY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setDate(n),r}function DY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setHours(n),r}function $Y(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setMinutes(n),r}function FY(e,t){N(2,arguments);var r=B(e),n=De(t),i=r.getFullYear(),a=r.getDate(),o=new Date(0);o.setFullYear(i,n,15),o.setHours(0,0,0,0);var s=Yb(o);return r.setMonth(n,Math.min(a,s)),r}function IY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setSeconds(n),r}function jY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setMilliseconds(n),r}function LY(e,t){N(2,arguments);var r=B(e),n=De(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function n2(e){N(1,arguments);var t=B(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zl(e){N(1,arguments);var t=B(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function RY(e,t){var r;N(1,arguments);var n=De((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=zY(e),a;if(i.date){var o=WY(i.date,n);a=HY(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),u=0,l;if(i.time&&(u=UY(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=YY(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var Wl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},NY=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,BY=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,VY=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zY(e){var t={},r=e.split(Wl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Wl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Wl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=Wl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function WY(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((n[1]||n[2]).length)}}function HY(e,t){if(t===null)return new Date(NaN);var r=e.match(NY);if(!r)return new Date(NaN);var n=!!r[4],i=So(r[1]),a=So(r[2])-1,o=So(r[3]),s=So(r[4]),u=So(r[5])-1;if(n)return ZY(t,s,u)?GY(t,s,u):new Date(NaN);var l=new Date(0);return!KY(t,a,o)||!XY(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}function So(e){return e?parseInt(e):1}function UY(e){var t=e.match(BY);if(!t)return NaN;var r=eh(t[1]),n=eh(t[2]),i=eh(t[3]);return QY(r,n,i)?r*jl+n*Il+i*1e3:NaN}function eh(e){return e&&parseFloat(e.replace(",","."))||0}function YY(e){if(e==="Z")return 0;var t=e.match(VY);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return JY(n,i)?r*(n*jl+i*Il):NaN}function GY(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var qY=[31,null,31,30,31,30,31,31,30,31,30,31];function i2(e){return e%400===0||e%4===0&&e%100!==0}function KY(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(qY[t]||(i2(e)?29:28))}function XY(e,t){return t>=1&&t<=(i2(e)?366:365)}function ZY(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function QY(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function JY(e,t){return t>=0&&t<=59}function eG(e,t){var r,n;N(1,arguments);var i=B(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var a=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),o=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=a==="extended"?"-":"",c=a==="extended"?":":"";if(o!=="time"){var f=Te(i.getDate(),2),d=Te(i.getMonth()+1,2),h=Te(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(o!=="date"){var g=i.getTimezoneOffset();if(g!==0){var p=Math.abs(g),y=Te(Math.floor(p/60),2),b=Te(p%60,2),x=g<0?"+":"-";u="".concat(x).concat(y,":").concat(b)}else u="Z";var C=Te(i.getHours(),2),k=Te(i.getMinutes(),2),w=Te(i.getSeconds(),2),_=s===""?"":"T",T=[C,k,w].join(c);s="".concat(s).concat(_).concat(T).concat(u)}return s}function tG(e,t){N(2,arguments);var r=B(e).getTime(),n=B(t.start).getTime(),i=B(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var th={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(th,th.exports);var rG=th.exports;const nG=vn(rG),iG={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},aG={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class a2{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=iG,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>RY(n),this.toISO=n=>eG(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:r2(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(a=>{const o=a[0];if(o==="p"||o==="P"){const s=nG[o],u=this.locale||Nl;return s(a,u.formatLong,{})}return a}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>Yd(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>Kd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,a)=>{switch(a){case"years":return nH(n,this.date(i));case"quarters":return sH(n,this.date(i));case"months":return Wd(n,this.date(i));case"weeks":return cH(n,this.date(i));case"days":return $b(n,this.date(i));case"hours":return dH(n,this.date(i));case"minutes":return hH(n,this.date(i));case"seconds":return Fb(n,this.date(i));default:return Ll(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:OU(n,i),this.isSameYear=(n,i)=>PU(n,i),this.isSameMonth=(n,i)=>DU(n,i),this.isSameDay=(n,i)=>AU(n,i),this.isSameHour=(n,i)=>$U(n,i),this.isAfter=(n,i)=>Xd(n,i),this.isAfterYear=(n,i)=>Xd(n,Ud(i)),this.isAfterDay=(n,i)=>Xd(n,Vd(i)),this.isBefore=(n,i)=>Co(n,i),this.isBeforeYear=(n,i)=>Co(n,zl(i)),this.isBeforeDay=(n,i)=>Co(n,Xi(i)),this.isWithinRange=(n,[i,a])=>tG(n,{start:i,end:a}),this.startOfYear=n=>zl(n),this.startOfMonth=n=>n2(n),this.startOfWeek=n=>jn(n,{locale:this.locale}),this.startOfDay=n=>Xi(n),this.endOfYear=n=>Ud(n),this.endOfMonth=n=>zd(n),this.endOfWeek=n=>Hd(n,{locale:this.locale}),this.endOfDay=n=>Vd(n),this.addYears=(n,i)=>Ab(n,i),this.addMonths=(n,i)=>Fl(n,i),this.addWeeks=(n,i)=>tH(n,i),this.addDays=(n,i)=>Bd(n,i),this.addHours=(n,i)=>eH(n,i),this.addMinutes=(n,i)=>QW(n,i),this.addSeconds=(n,i)=>XW(n,i),this.getYear=n=>MU(n),this.getMonth=n=>wU(n),this.getDate=n=>yU(n),this.getHours=n=>bU(n),this.getMinutes=n=>xU(n),this.getSeconds=n=>CU(n),this.getMilliseconds=n=>SU(n),this.setYear=(n,i)=>LY(n,i),this.setMonth=(n,i)=>FY(n,i),this.setDate=(n,i)=>PY(n,i),this.setHours=(n,i)=>DY(n,i),this.setMinutes=(n,i)=>$Y(n,i),this.setSeconds=(n,i)=>IY(n,i),this.setMilliseconds=(n,i)=>jY(n,i),this.getDaysInMonth=n=>Yb(n),this.getNextMonth=n=>Fl(n,1),this.getPreviousMonth=n=>Fl(n,-1),this.getMonthArray=n=>{const a=[zl(n)];for(;a.length<12;){const o=a[a.length-1];a.push(this.getNextMonth(o))}return a},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return pH({start:jn(n,{locale:this.locale}),end:Hd(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=jn(n2(n),{locale:this.locale}),a=Hd(zd(n),{locale:this.locale});let o=0,s=i;const u=[];for(;Co(s,a);){const l=Math.floor(o/7);u[l]=u[l]||[],u[l].push(s),s=Bd(s,1),o+=1}return u},this.getWeekNumber=n=>kU(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const a=zl(n),o=Ud(i),s=[];let u=a;for(;Co(u,o);)s.push(u),u=Ab(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=we({},aG,r)}}var oG={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},sG=function(t,r,n){var i,a=oG[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const lG=sG;var uG={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},cG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fG={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dG={date:Ji({formats:uG,defaultWidth:"full"}),time:Ji({formats:cG,defaultWidth:"full"}),dateTime:Ji({formats:fG,defaultWidth:"full"})};const hG=dG;var pG={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},gG=function(t,r,n,i){var a=pG[t];return typeof a=="function"?a(r):a};const mG=gG;var vG={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},yG={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},bG={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},xG={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},wG={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},CG={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},SG=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},EG={ordinalNumber:SG,era:yr({values:vG,defaultWidth:"wide"}),quarter:yr({values:yG,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yr({values:bG,defaultWidth:"wide"}),day:yr({values:xG,defaultWidth:"wide"}),dayPeriod:yr({values:wG,defaultWidth:"wide",formattingValues:CG,defaultFormattingWidth:"wide"})};const TG=EG;var _G=/^(\d+)[ºªo]?/i,kG=/\d+/i,MG={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},OG={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},AG={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},PG={any:[/1/i,/2/i,/3/i,/4/i]},DG={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},$G={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},FG={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},IG={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},jG={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},LG={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},RG={ordinalNumber:Ub({matchPattern:_G,parsePattern:kG,valueCallback:function(t){return parseInt(t,10)}}),era:br({matchPatterns:MG,defaultMatchWidth:"wide",parsePatterns:OG,defaultParseWidth:"any"}),quarter:br({matchPatterns:AG,defaultMatchWidth:"wide",parsePatterns:PG,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:br({matchPatterns:DG,defaultMatchWidth:"wide",parsePatterns:$G,defaultParseWidth:"any"}),day:br({matchPatterns:FG,defaultMatchWidth:"wide",parsePatterns:IG,defaultParseWidth:"any"}),dayPeriod:br({matchPatterns:jG,defaultMatchWidth:"any",parsePatterns:LG,defaultParseWidth:"any"})},NG={code:"pt-BR",formatDistance:lG,formatLong:hG,formatRelative:mG,localize:TG,match:RG,options:{weekStartsOn:0,firstWeekContainsDate:1}};const o2=NG;var s2={exports:{}},l2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u2={exports:{}},BG=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},VG=BG,zG=Array.prototype.concat,WG=Array.prototype.slice,c2=u2.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var a=t[n];VG(a)?r=zG.call(r,WG.call(a)):r.push(a)}return r};c2.wrap=function(e){return function(){return e(c2(arguments))}};var HG=u2.exports,Eo=l2,To=HG,f2=Object.hasOwnProperty,d2=Object.create(null);for(var rh in Eo)f2.call(Eo,rh)&&(d2[Eo[rh]]=rh);var Ut=s2.exports={to:{},get:{}};Ut.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=Ut.get.hsl(e),n="hsl";break;case"hwb":r=Ut.get.hwb(e),n="hwb";break;default:r=Ut.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},Ut.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(s.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)o[u]=parseInt(s[u]+s[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)o[u]=parseInt(s[u+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=e.match(a))?s[1]==="transparent"?[0,0,0,0]:f2.call(Eo,s[1])?(o=Eo[s[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=tn(o[u],0,255);return o[3]=tn(o[3],0,1),o},Ut.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,a=tn(parseFloat(r[2]),0,100),o=tn(parseFloat(r[3]),0,100),s=tn(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null},Ut.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,a=tn(parseFloat(r[2]),0,100),o=tn(parseFloat(r[3]),0,100),s=tn(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null},Ut.to.hex=function(){var e=To(arguments);return"#"+Hl(e[0])+Hl(e[1])+Hl(e[2])+(e[3]<1?Hl(Math.round(e[3]*255)):"")},Ut.to.rgb=function(){var e=To(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},Ut.to.rgb.percent=function(){var e=To(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},Ut.to.hsl=function(){var e=To(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Ut.to.hwb=function(){var e=To(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Ut.to.keyword=function(e){return d2[e.slice(0,3)]};function tn(e,t,r){return Math.min(Math.max(t,e),r)}function Hl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var UG=s2.exports;const _o=l2,h2={};for(const e of Object.keys(_o))h2[_o[e]]=e;const ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var p2=ie;for(const e of Object.keys(ie)){if(!("channels"in ie[e]))throw new Error("missing channels property: "+e);if(!("labels"in ie[e]))throw new Error("missing channel labels property: "+e);if(ie[e].labels.length!==ie[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=ie[e];delete ie[e].channels,delete ie[e].labels,Object.defineProperty(ie[e],"channels",{value:t}),Object.defineProperty(ie[e],"labels",{value:r})}ie.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let s,u;a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+a)/2;return a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]},ie.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(o,s,u),c=l-Math.min(o,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,a=0):(a=c/l,t=f(o),r=f(s),n=f(u),o===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,l*100]},ie.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=ie.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]},ie.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function YG(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ie.rgb.keyword=function(e){const t=h2[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(_o)){const a=_o[i],o=YG(e,a);o<r&&(r=o,n=i)}return n},ie.keyword.rgb=function(e){return _o[e]},ie.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]},ie.rgb.lab=function(e){const t=ie.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),s=200*(n-i);return[a,o,s]},ie.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?o=s+(i-s)*6*a:2*a<1?o=i:3*a<2?o=s+(i-s)*(2/3-a)*6:o=s,u[l]=o*255;return u},ie.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,s=n===0?2*i/(a+i):2*r/(n+r);return[t,s*100,o*100]},ie.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}},ie.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const s=(2-r)*i;return a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]},ie.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),s=1-n;a=6*t-o,o&1&&(a=1-a);const u=r+a*(s-r);let l,c,f;switch(o){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},ie.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]},ie.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},ie.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]},ie.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const s=a**3,u=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},ie.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]},ie.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]},ie.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?ie.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o},ie.hsv.ansi16=function(e){return ie.rgb.ansi16(ie.hsv.rgb(e),e[2])},ie.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},ie.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]},ie.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},ie.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},ie.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]},ie.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let s,u;return o<1?s=a/(1-o):s=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,s*100]},ie.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},ie.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},ie.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},ie.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},ie.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},ie.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},ie.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]},ie.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ie.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ie.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ie.gray.hsl=function(e){return[0,0,e[0]]},ie.gray.hsv=ie.gray.hsl,ie.gray.hwb=function(e){return[0,100,e[0]]},ie.gray.cmyk=function(e){return[0,0,0,e[0]]},ie.gray.lab=function(e){return[e[0],0,0]},ie.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},ie.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Ul=p2;function GG(){const e={},t=Object.keys(Ul);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function qG(e){const t=GG(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(Ul[n]);for(let a=i.length,o=0;o<a;o++){const s=i[o],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function KG(e,t){return function(r){return t(e(r))}}function XG(e,t){const r=[t[e].parent,e];let n=Ul[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=KG(Ul[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var ZG=function(e){const t=qG(e),r={},n=Object.keys(t);for(let i=n.length,a=0;a<i;a++){const o=n[a];t[o].parent!==null&&(r[o]=XG(o,t))}return r};const nh=p2,QG=ZG,ea={},JG=Object.keys(nh);function eq(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function tq(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o<a;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}JG.forEach(e=>{ea[e]={},Object.defineProperty(ea[e],"channels",{value:nh[e].channels}),Object.defineProperty(ea[e],"labels",{value:nh[e].labels});const t=QG(e);Object.keys(t).forEach(n=>{const i=t[n];ea[e][n]=tq(i),ea[e][n].raw=eq(i)})});var rq=ea;const ta=UG,Yt=rq,g2=["keyword","gray","hex"],ih={};for(const e of Object.keys(Yt))ih[[...Yt[e].labels].sort().join("")]=e;const Yl={};function Tt(e,t){if(!(this instanceof Tt))return new Tt(e,t);if(t&&t in g2&&(t=null),t&&!(t in Yt))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Tt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=ta.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=Yt[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=Yt[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=ah(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in ih))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=ih[a];const{labels:o}=Yt[this.model],s=[];for(r=0;r<o.length;r++)s.push(e[o[r]]);this.color=ah(s)}if(Yl[this.model])for(n=Yt[this.model].channels,r=0;r<n;r++){const i=Yl[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Tt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ta.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return ta.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return ta.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yt[this.model],{labels:r}=Yt[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Tt([...this.color.map(iq(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new Tt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:pt("rgb",0,Et(255)),green:pt("rgb",1,Et(255)),blue:pt("rgb",2,Et(255)),hue:pt(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:pt("hsl",1,Et(100)),lightness:pt("hsl",2,Et(100)),saturationv:pt("hsv",1,Et(100)),value:pt("hsv",2,Et(100)),chroma:pt("hcg",1,Et(100)),gray:pt("hcg",2,Et(100)),white:pt("hwb",1,Et(100)),wblack:pt("hwb",2,Et(100)),cyan:pt("cmyk",0,Et(100)),magenta:pt("cmyk",1,Et(100)),yellow:pt("cmyk",2,Et(100)),black:pt("cmyk",3,Et(100)),x:pt("xyz",0,Et(95.047)),y:pt("xyz",1,Et(100)),z:pt("xyz",2,Et(108.833)),l:pt("lab",0,Et(100)),a:pt("lab",1),b:pt("lab",2),keyword(e){return e!==void 0?new Tt(e):Yt[this.model].keyword(this.color)},hex(e){return e!==void 0?new Tt(e):ta.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Tt(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),ta.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Tt.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=r.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return Tt.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(Yt)){if(g2.includes(e))continue;const{channels:t}=Yt[e];Tt.prototype[e]=function(...r){return this.model===e?new Tt(this):r.length>0?new Tt(r,e):new Tt([...aq(Yt[this.model][e].raw(this.color)),this.valpha],e)},Tt[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=ah(r,t)),new Tt(n,e)}}function nq(e,t){return Number(e.toFixed(t))}function iq(e){return function(t){return nq(t,e)}}function pt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(Yl[n]||(Yl[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function Et(e){return function(t){return Math.max(0,Math.min(e,t))}}function aq(e){return Array.isArray(e)?e:[e]}function ah(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var oq=Tt;const sq=vn(oq),Ke={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},oh={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},lq={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},uq={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},cq={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},fq={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:Ke[800]},ra={common:{black:"#000",white:"#fff"},primary:oh,secondary:lq,info:uq,success:cq,warning:fq,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:Ke,divider:L(Ke[500],.24),action:{hover:L(Ke[500],.08),selected:L(Ke[500],.16),disabled:L(Ke[500],.8),disabledBackground:L(Ke[500],.24),focus:L(Ke[500],.24),hoverOpacity:.08,disabledOpacity:.48}},rn=e=>{const t={...ra,mode:"light",text:{primary:Ke[800],secondary:Ke[600],disabled:Ke[500]},background:{paper:"#fff",default:Ke[100],neutral:Ke[200]},action:{...ra.action,active:Ke[600]}},r={...ra,mode:"dark",text:{primary:"#fff",secondary:Ke[500],disabled:Ke[600]},background:{paper:Ke[800],default:Ke[900],neutral:L(Ke[500],.16)},action:{...ra.action,active:Ke[500]}};return e==="light"?t:r},dq=e=>({lighter:Wc(e,.815),light:Wc(e,.225),main:e,dark:zc(e,.15),darker:zc(e,.35)}),hq=e=>sq(e).luminosity()<=.55?"#fff":Ke[900],m2=e=>{const t=dq(e);return{...ra,primary:{...t,contrastText:hq(t.main)},mode:"light",text:{primary:Ke[800],secondary:Ke[600],disabled:Ke[500]},background:{paper:"#fff",default:Ke[100],neutral:Ke[200]},action:{active:Ke[600],...ra.action}}},v2=rn("light"),pq=v2.grey[500],gq=v2.common.black;function y2(e,t){const r=L(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${L(t||rn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${L(rn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${L(rn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${L(rn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${L(rn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${L(rn("light").error.main,.24)}`,card:`0 0 2px 0 ${L(e,.2)}, 0 12px 24px -4px ${L(e,.12)}`,dialog:`-40px 40px 80px -8px ${L(e,.24)}`,dropdown:`0 0 2px 0 ${L(e,.24)}, -20px 20px 40px -4px ${L(e,.24)}`}}const b2=(e,t)=>y2(e==="light"?pq:gq,t),x2=()=>v.jsx(E.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),mq=["primary","secondary","info","success","warning","error"];function vq(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",a=n.color==="inherit",o=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(o||s)&&{...(i||a)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||a)&&{border:`solid 1px ${L(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{backgroundColor:L(e.palette.grey[500],.08),"&:hover":{backgroundColor:L(e.palette.grey[500],.24)}}}},h=mq.map(y=>({...n.color===y&&{...(o||s)&&{boxShadow:e.customShadows[y],"&:hover":{backgroundColor:e.palette[y].dark}},...(u||l)&&{color:e.palette[y].main,border:`solid 1px ${L(e.palette[y].main,.48)}`,"&:hover":{backgroundColor:L(e.palette[y].main,.08),border:`solid 1px ${e.palette[y].main}`}},...(c||f)&&{color:e.palette[y][t?"dark":"light"],backgroundColor:L(e.palette[y].main,.16),"&:hover":{backgroundColor:L(e.palette[y].main,.32)}}}})),g={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,g,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function yq(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function bq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function w2(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function xq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function wq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function Cq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function Sq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function Eq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function Tq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function _q(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function kq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function Mq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function Oq(e){return v.jsx(E.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:v.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function Aq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function Pq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function Dq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const $q=["primary","secondary","info","success","warning","error"];function Fq(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",a=n.variant==="filled",o=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:L(e.palette.grey[500],.48)},...o&&{border:`solid 1px ${L(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:L(e.palette.grey[500],.16),"&:hover":{backgroundColor:L(e.palette.grey[500],.32)}}}};return[...$q.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...a&&{"& .MuiChip-deleteIcon":{color:L(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:L(e.palette[c].main,.16),"&:hover":{backgroundColor:L(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:L(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:v.jsx(bq,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function Iq(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,textTransform:"none","&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function jq(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function Lq(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Rq(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function Nq(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const Bq=["info","success","warning","error"];function Vq(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",a=n.variant==="filled",o=n.variant==="outlined";return[...Bq.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...a&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...o&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:v.jsx(xq,{}),success:v.jsx(Cq,{}),warning:v.jsx(wq,{}),error:v.jsx(Sq,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function zq(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function Wq(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function Hq(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:L(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:L(e.palette.grey[500],.08),"&:hover":{backgroundColor:L(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:L(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:L(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function Uq(e){return{MuiRadio:{defaultProps:{icon:v.jsx(kq,{}),checkedIcon:v.jsx(Mq,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function Yq(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${L(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function Gq(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function qq(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:L(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function Kq(e){return{MuiRating:{defaultProps:{emptyIcon:v.jsx(w2,{}),icon:v.jsx(w2,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:L(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function Xq(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const Zq=["primary","secondary","info","success","warning","error"];function Qq(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",a=n.variant==="contained",o=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={textTransform:"none",...i&&{...a&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...o&&{borderColor:L(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:L(e.palette.grey[500],.08),"&:hover":{backgroundColor:L(e.palette.grey[500],.24)}}}},d=Zq.map(p=>({...n.color===p&&{...a&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:L(e.palette[p].main,.16),"&:hover":{backgroundColor:L(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},g={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,g]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function Jq(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:L(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function eK(e){return{MuiSelect:{defaultProps:{IconComponent:Oq}}}}function tK(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function rK(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function nK(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function iK(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function aK(e){return{MuiDataGrid:{styleOverrides:{root:{border:0,padding:8,"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},main:{backgroundColor:"#F5F5F5",borderRadius:8,outline:"8px solid #F5F5F5"},columnHeader:{fontSize:13,fontWeight:600,color:e.palette.grey[600],padding:"0 16px",borderColor:"transparent"},row:{borderRadius:8,backgroundColor:"#FFFFFF",color:e.palette.grey[800]},rowReorderCell:{color:e.palette.grey[400]},cell:{borderBottom:0,padding:"0 16px"},columnSeparator:{color:e.palette.divider,"&:hover":{color:e.palette.primary.main}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}},overlayWrapper:{height:"100% !important"},overlayWrapperInner:{height:"100% !important"}}}}}function oK(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function sK(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:L(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const lK=["primary","secondary","info","success","warning","error"];function uK(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...lK.map(o=>({...r.color===o&&{backgroundColor:E.alpha(e.palette[o].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function cK(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function fK(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:v.jsx(Aq,{sx:{width:20,height:20}}),defaultExpandIcon:v.jsx(Pq,{sx:{width:20,height:20}}),defaultEndIcon:v.jsx(Dq,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function dK(e){return{MuiCheckbox:{defaultProps:{icon:v.jsx(Eq,{}),checkedIcon:v.jsx(Tq,{}),indeterminateIcon:v.jsx(_q,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function hK(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function pK(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const gK=["primary","secondary","info","success","warning","error"];function mK(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",a=n.variant==="soft",o={"& .MuiPaginationItem-root":{...i&&{borderColor:L(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...gK.map(u=>({...n.color===u&&{...a&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:L(e.palette[u].main,.16),"&:hover":{backgroundColor:L(e.palette[u].main,.32)}}}}}})),o]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function vK(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const yK=["primary","secondary","info","success","warning","error"];function bK(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",a=r.variant==="outlined",o=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!a&&{borderStyle:"solid",...n&&{borderColor:L(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=yK.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!a&&{...r.color===h&&{...i&&{borderColor:L(e.palette[h].dark,.48)},...o&&{borderColor:L(e.palette[h].main,.48)},...s&&{borderColor:L(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function xK(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:L(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const wK=["primary","secondary","info","success","warning","error"];function CK(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},a=wK.map(s=>({...r.color===s&&{"&:hover":{borderColor:L(e.palette[s].main,.48),backgroundColor:L(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),o={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...a,i,o]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${L(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function SK(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function EK(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function C2(e){return Object.assign(vq(e),Iq(e),Fq(e),yq(e),jq(e),Lq(),Hq(e),Uq(e),zq(),Rq(e),Nq(e),Wq(),Vq(e),Jq(e),eK(),Qq(e),Kq(e),Gq(e),qq(e),Xq(e),Yq(e),iK(e),rK(e),nK(e),tK(),dK(e),aK(e),oK(e),cK(e),fK(e),sK(e),uK(e),hK(e),pK(e),mK(e),bK(e),vK(e),xK(e),SK(e),CK(e),EK())}const S2=rn("light"),TK=S2.grey[500],_K=S2.common.black;function E2(e){const t=L(e,.2),r=L(e,.14),n=L(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const T2=e=>E2(e==="light"?TK:_K);function Mt(e){return`${e/16}rem`}function na({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Mt(e)},"@media (min-width:900px)":{fontSize:Mt(t)},"@media (min-width:1200px)":{fontSize:Mt(r)}}}const _2={fontFamily:"inherit",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Mt(40),...na({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Mt(32),...na({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Mt(24),...na({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Mt(20),...na({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Mt(18),...na({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Mt(17),...na({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Mt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Mt(14)},body1:{lineHeight:1.5,fontSize:Mt(16)},body2:{lineHeight:22/14,fontSize:Mt(14)},caption:{lineHeight:1.5,fontSize:Mt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Mt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Mt(14),textTransform:"capitalize"}},k2=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=m.useMemo(()=>({palette:m2(t),typography:_2,shape:{borderRadius:8},direction:r,shadows:T2(n),customShadows:b2(n,t)}),[t,r,n]),a=Uc(i);return a.components=C2(a),v.jsx(Qg,{injectFirst:!0,children:v.jsxs(Yc,{theme:a,children:[v.jsx(E.CssBaseline,{}),v.jsx(x2,{}),e]})})},Wee="",kK=({themeColor:e,children:t})=>v.jsx(Yn.LocalizationProvider,{dateAdapter:a2,adapterLocale:o2,children:v.jsx(Gc,{children:v.jsx(k2,{color:e,children:v.jsx(Em,{children:t})})})}),MK=({children:e,color:t,direction:r="ltr",themeMode:n="light",components:i})=>{const a=m.useMemo(()=>({palette:m2(t),typography:_2,shape:{borderRadius:8},direction:r,shadows:T2(n),customShadows:b2(n,t),components:i}),[t,r,n,i]),o=Uc(a);return o.components=C2(o),v.jsxs(Yc,{theme:o,children:[v.jsx(E.CssBaseline,{}),v.jsx(x2,{}),e]})},OK=({themeColor:e,children:t})=>v.jsx(Yn.LocalizationProvider,{dateAdapter:a2,adapterLocale:o2,children:v.jsx(MK,{color:e,children:v.jsx(Gc,{children:v.jsx(Em,{children:t})})})}),AK=({modalTitle:e="Tem certeza que deseja excluir?",message:t="Essa ação não poderá ser desfeita.",cancelButtonText:r="Cancelar",confirmButtonText:n="Sim, excluir registro",onClose:i,onConfirm:a,confirming:o,...s})=>v.jsxs(E.Dialog,{fullWidth:!0,maxWidth:"xs",...s,onClose:i,children:[v.jsx(E.DialogTitle,{children:e}),v.jsx(E.DialogContent,{children:t}),v.jsxs(E.DialogActions,{children:[v.jsx(E.Button,{variant:"outlined",color:"inherit",onClick:i,size:"large",children:r}),v.jsx(C5.LoadingButton,{variant:"contained",onClick:a,size:"large",loading:o,children:n})]})]}),ia=e=>e&&e.charAt(0).toUpperCase(),PK=e=>["A","N","H","L","Q"].includes(ia(e))?"primary":["F","G","T","I","J"].includes(ia(e))?"info":["K","D","Y","B","O"].includes(ia(e))?"success":["P","E","R","S","U"].includes(ia(e))?"warning":["V","W","X","M","Z"].includes(ia(e))?"error":"default",M2=m.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...a},o)=>{const s=ia(t),u=PK(t),l=e||u,c={...i},f=l==="default"?v.jsxs(E.Avatar,{ref:o,sx:i,...a,children:[t&&s,n]}):v.jsxs(E.Avatar,{ref:o,sx:d=>{var h,g;return{color:(h=d.palette[l])==null?void 0:h.contrastText,backgroundColor:(g=d.palette[l])==null?void 0:g.main,fontWeight:d.typography.fontWeightMedium,...c}},...a,children:[t&&s,n]});return r?v.jsx(E.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});M2.displayName="CustomAvatar";const nn={tiny:24,small:32,medium:40,large:56},O2=m.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...a},o)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return v.jsx(E.AvatarGroup,{ref:o,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:nn.large,height:nn.large,"&:first-of-type":{fontSize:16}},...l&&{width:nn.medium,height:nn.medium},...u&&{width:nn.small,height:nn.small},...s&&{width:nn.tiny,height:nn.tiny}},...t&&{...f},...i},...a,children:n})});O2.displayName="CustomAvatarGroup";const Gl=({sx:e})=>v.jsx(E.LinearProgress,{sx:{position:"absolute",top:0,left:0,width:1,zIndex:9999,...e}}),A2=E.styled(E.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),DK=()=>{var c,f;const e=Br.useGridApiContext(),{rowHeight:t,paginationModel:r,initialState:n}=Br.useGridRootProps(),i=(r==null?void 0:r.pageSize)||((f=(c=n==null?void 0:n.pagination)==null?void 0:c.paginationModel)==null?void 0:f.pageSize)||10,a=Br.gridColumnsTotalWidthSelector(e),o=Br.gridColumnPositionsSelector(e),s=m.useMemo(()=>o.filter(d=>d<=a).length,[a,o]),u=e.current.getVisibleColumns().slice(0,s),l=m.useMemo(()=>{const d=[];for(let h=0;h<i;h+=1){for(const g of u)d.push(v.jsx(A2,{sx:{justifyContent:g.align},children:v.jsx(E.Skeleton,{width:"100%"})},`column-${h}-${g.field}`));d.push(v.jsx(A2,{},`fill-${h}`))}return d},[i,u]);return v.jsx(E.Stack,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${u.map(({computedWidth:d})=>`${d}px`).join(" ")} 1fr`,gridAutoRows:t,backgroundColor:"grey.0",borderRadius:1,overflow:"hidden"},children:l})},$K=()=>{const t=hi().palette.primary.main;return v.jsxs(v.Fragment,{children:[v.jsx("defs",{children:v.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[v.jsx("stop",{offset:"0%",stopColor:t}),v.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),v.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},FK=m.memo($K),IK=({...e})=>{const t=hi(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return v.jsx(E.Box,{...e,children:v.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx(FK,{}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[v.jsx("stop",{offset:"0%",stopOpacity:"0"}),v.jsx("stop",{offset:"100%"})]})}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),v.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),v.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),v.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),v.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),v.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),v.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),v.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),v.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),v.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),v.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),v.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),v.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),v.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),v.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},jK=m.memo(IK),LK=()=>v.jsxs("svg",{width:"480",height:"360",viewBox:"0 0 480 360",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsxs("g",{id:"illustrations/illustration_empty_content",children:[v.jsxs("g",{id:"Illustration/Background",children:[v.jsx("path",{id:"BG",opacity:"0.16",fillRule:"evenodd",clipRule:"evenodd",d:"M0 198.781C0 240.238 14.9454 278.016 39.539 306.566C67.7534 339.331 108.667 359.931 154.273 360C174.204 360.029 193.262 356.113 210.768 348.964C219.819 345.265 229.95 345.69 238.716 350.071C248.999 355.204 260.514 358.082 272.673 358.082C277.696 358.082 282.615 357.587 287.373 356.648C300.954 353.978 313.313 347.658 323.462 338.708C329.841 333.081 338.01 330.252 346.36 330.262H346.502C374.091 330.262 399.717 321.53 420.994 306.566C440.015 293.206 455.548 274.87 465.898 253.341C474.92 234.581 480 213.388 480 190.958C480 114.027 420.226 51.6534 346.502 51.6534C338.986 51.6534 331.622 52.3158 324.439 53.5518C305.418 21.4201 271.355 0 232.498 0C216.093 0 200.54 3.81769 186.619 10.6612C173.379 17.1483 161.608 26.3663 151.978 37.6C119.281 38.144 89.048 49.2899 64.303 67.8914C25.3514 97.1552 0 144.882 0 198.781Z",fill:"url(#paint0_linear_0_9560)"}),v.jsxs("g",{id:"Vector",opacity:"0.2",children:[v.jsx("path",{d:"M271.929 75.6377C269.408 75.6377 266.889 74.6804 264.971 72.7652C261.134 68.9346 261.134 62.7023 264.971 58.8724C268.806 55.0432 275.05 55.0419 278.886 58.8724C282.723 62.703 282.723 68.9353 278.886 72.7652C276.968 74.6804 274.448 75.6377 271.929 75.6377ZM271.929 62.7714C271.147 62.7714 270.364 63.0681 269.769 63.663C268.578 64.8513 268.578 66.7856 269.769 67.9746C270.96 69.1629 272.896 69.1636 274.087 67.9746C275.278 66.7862 275.278 64.852 274.087 63.663C273.492 63.0688 272.71 62.7714 271.929 62.7714Z",fill:"#919EAB"}),v.jsx("path",{d:"M194.574 305C192.054 305 189.534 304.042 187.616 302.127C183.779 298.297 183.779 292.065 187.616 288.235C191.451 284.405 197.696 284.405 201.532 288.235C205.368 292.065 205.368 298.298 201.532 302.127C199.614 304.043 197.093 305 194.574 305ZM194.574 292.134C193.792 292.134 193.01 292.43 192.414 293.025C191.223 294.214 191.223 296.148 192.414 297.337C193.605 298.526 195.541 298.526 196.733 297.337C197.923 296.148 197.923 294.214 196.733 293.025C196.138 292.431 195.355 292.134 194.574 292.134Z",fill:"#919EAB"})]}),v.jsxs("g",{id:"Vector_2",opacity:"0.2",children:[v.jsx("path",{d:"M366.607 258.732C365.739 258.732 364.87 258.401 364.208 257.74L360.16 253.699L356.112 257.74C354.788 259.062 352.639 259.062 351.315 257.74C349.989 256.417 349.989 254.272 351.315 252.949L357.761 246.513C359.085 245.19 361.235 245.19 362.559 246.513L369.006 252.949C370.331 254.272 370.331 256.417 369.006 257.74C368.344 258.4 367.475 258.732 366.607 258.732Z",fill:"#919EAB"}),v.jsx("path",{d:"M127.287 245.825C126.419 245.825 125.549 245.495 124.888 244.833L120.84 240.793L116.792 244.833C115.468 246.156 113.318 246.156 111.994 244.833C110.669 243.51 110.669 241.365 111.994 240.043L118.441 233.607C119.765 232.284 121.915 232.284 123.239 233.607L129.685 240.043C131.011 241.366 131.011 243.511 129.685 244.833C129.023 245.494 128.154 245.825 127.287 245.825Z",fill:"#919EAB"})]})]}),v.jsx("path",{id:"Subtract",opacity:"0.16",fillRule:"evenodd",clipRule:"evenodd",d:"M172.018 173.478H195.091C198.279 173.478 200.859 170.902 200.859 167.719C200.859 164.536 198.279 161.96 195.091 161.96H172.018C168.829 161.96 166.25 164.536 166.25 167.719C166.25 170.902 168.829 173.478 172.018 173.478ZM310.455 161.96H252.773C249.584 161.96 247.004 164.536 247.004 167.719V236.824C247.004 240.007 249.584 242.582 252.773 242.582H310.455C313.643 242.582 316.223 240.007 316.223 236.824V167.719C316.223 164.536 313.643 161.96 310.455 161.96ZM166.25 190.754C166.25 187.571 168.829 184.995 172.018 184.995H229.7C232.888 184.995 235.468 187.571 235.468 190.754C235.468 193.937 232.888 196.513 229.7 196.513H172.018C168.829 196.513 166.25 193.937 166.25 190.754ZM172.018 208.03C168.829 208.03 166.25 210.606 166.25 213.789C166.25 216.972 168.829 219.548 172.018 219.548H229.7C232.888 219.548 235.468 216.972 235.468 213.789C235.468 210.606 232.888 208.03 229.7 208.03H172.018ZM166.25 236.824C166.25 233.641 168.829 231.065 172.018 231.065H229.7C232.888 231.065 235.468 233.641 235.468 236.824C235.468 240.007 232.888 242.582 229.7 242.582H172.018C168.829 242.582 166.25 240.007 166.25 236.824Z",fill:"#919EAB"}),v.jsx("path",{id:"Subtract_2",fillRule:"evenodd",clipRule:"evenodd",d:"M142.023 145.836V247.185C142.023 254.821 148.213 261.01 155.848 261.01H326.624C334.259 261.01 340.449 254.821 340.449 247.185V145.836H142.023ZM195.09 173.478H172.017C168.829 173.478 166.249 170.902 166.249 167.719C166.249 164.536 168.829 161.961 172.017 161.961H195.09C198.278 161.961 200.858 164.536 200.858 167.719C200.858 170.902 198.278 173.478 195.09 173.478ZM252.772 161.961H310.454C313.642 161.961 316.222 164.536 316.222 167.719V236.824C316.222 240.007 313.642 242.583 310.454 242.583H252.772C249.584 242.583 247.004 240.007 247.004 236.824V167.719C247.004 164.536 249.584 161.961 252.772 161.961ZM172.017 184.995C168.829 184.995 166.249 187.571 166.249 190.754C166.249 193.937 168.829 196.513 172.017 196.513H229.699C232.888 196.513 235.467 193.937 235.467 190.754C235.467 187.571 232.888 184.995 229.699 184.995H172.017ZM166.249 213.789C166.249 210.606 168.829 208.03 172.017 208.03H229.699C232.888 208.03 235.467 210.606 235.467 213.789C235.467 216.972 232.888 219.548 229.699 219.548H172.017C168.829 219.548 166.249 216.972 166.249 213.789ZM172.017 231.065C168.829 231.065 166.249 233.641 166.249 236.824C166.249 240.007 168.829 242.583 172.017 242.583H229.699C232.888 242.583 235.467 240.007 235.467 236.824C235.467 233.641 232.888 231.065 229.699 231.065H172.017Z",fill:"#919EAB",fillOpacity:"0.48"}),v.jsx("path",{id:"Intersect",opacity:"0.16",fillRule:"evenodd",clipRule:"evenodd",d:"M340.45 113.591C340.45 105.956 334.26 99.7661 326.625 99.7661H155.848C148.213 99.7661 142.023 105.956 142.023 113.591V145.836H340.45V113.591ZM172.018 117.042C168.788 117.042 166.25 119.576 166.25 122.801C166.25 126.025 168.788 128.56 172.018 128.56C175.249 128.56 177.786 126.025 177.786 122.801C177.786 119.576 175.249 117.042 172.018 117.042ZM195.091 117.042C191.86 117.042 189.323 119.576 189.323 122.801C189.323 126.025 191.86 128.56 195.091 128.56C198.321 128.56 200.859 126.025 200.859 122.801C200.859 119.576 198.321 117.042 195.091 117.042ZM218.164 117.042C214.933 117.042 212.395 119.576 212.395 122.801C212.395 126.025 214.933 128.56 218.164 128.56C221.394 128.56 223.932 126.025 223.932 122.801C223.932 119.576 221.394 117.042 218.164 117.042Z",fill:"#919EAB"}),v.jsx("path",{id:"Intersect_2",opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M172.018 117.042C168.787 117.042 166.25 119.576 166.25 122.801C166.25 126.026 168.787 128.56 172.018 128.56C175.248 128.56 177.786 126.026 177.786 122.801C177.786 119.576 175.248 117.042 172.018 117.042ZM195.091 117.042C191.86 117.042 189.322 119.576 189.322 122.801C189.322 126.026 191.86 128.56 195.091 128.56C198.321 128.56 200.859 126.026 200.859 122.801C200.859 119.576 198.321 117.042 195.091 117.042ZM218.163 117.042C214.933 117.042 212.395 119.576 212.395 122.801C212.395 126.026 214.933 128.56 218.163 128.56C221.394 128.56 223.932 126.026 223.932 122.801C223.932 119.576 221.394 117.042 218.163 117.042Z",fill:"#919EAB"})]}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"paint0_linear_0_9560",x1:"328.81",y1:"424.032",x2:"505.393",y2:"26.0479",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{stopColor:"#919EAB"}),v.jsx("stop",{offset:"1",stopColor:"#919EAB",stopOpacity:"0.01"})]})})]}),P2=({text:e,sx:t})=>v.jsxs(E.Stack,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"grey.0",padding:2,borderRadius:2,"& svg":{width:"100%"},...t},children:[v.jsx(LK,{}),v.jsx(E.Typography,{variant:"body1",sx:{color:"text.secondary"},children:e})]}),D2=()=>{const{localeText:{noRowsLabel:e}}=Br.useGridRootProps();return v.jsx(P2,{text:e,sx:{"& svg":{height:200}}})},RK=({columns:e,rows:t,loading:r,fetching:n,localeText:i,paginationModel:a={page:0,pageSize:10},rowHeight:o=72,sx:s,...u})=>{const l=[{...Br.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],c=m.useCallback(f=>({bottom:f.isLastVisible?0:8}),[]);return v.jsxs(E.Stack,{position:"relative",borderRadius:2,overflow:"hidden",children:[n&&v.jsx(Gl,{sx:{zIndex:1}}),v.jsx(Br.DataGridPremium,{columns:l,rows:t,loading:r,autoHeight:!0,rowHeight:o,getRowSpacing:c,slots:{loadingOverlay:DK,noRowsOverlay:D2,noResultsOverlay:D2},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:f=>`Agrupar por ${f}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:f=>`Parar de agrupar por ${f}`,unpin:"Desafixar",footerRowSelected:f=>`${f} ${f===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"Itens por página",labelDisplayedRows:f=>`${f.from}-${f.to} de ${f.count}`},noRowsLabel:"Nenhum registro para ser apresentado",...i},sx:{...s,"& .MuiDataGrid-virtualScroller, & .MuiDataGrid-virtualScrollerContent":{minHeight:r?o*a.pageSize:o*t.length,...t.length===0&&{height:400}}},...u})]})},NK=({children:e,waitBeforeShow:t=500})=>{const[r,n]=m.useState(!1);return m.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var BK=!!(typeof window<"u"&&window.document&&window.document.createElement),VK=BK;const $2=vn(VK);var aa=function(){return aa=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},aa.apply(this,arguments)},oa=null,F2=null;$2&&window.addEventListener("resize",function(){F2!==window.devicePixelRatio&&(F2=window.devicePixelRatio,oa=null)});function I2(){if(oa===null){if(typeof document>"u")return oa=0,oa;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),oa=r}return oa}function j2(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function L2(e){return!e||!e.ownerDocument?document:e.ownerDocument}var R2=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var a=i.name.match(/data-simplebar-(.+)/);if(a){var o=a[1].replace(/\W+(.)/g,function(s,u){return u.toUpperCase()});switch(i.value){case"true":n[o]=!0;break;case"false":n[o]=!1;break;case void 0:n[o]=!0;break;default:n[o]=i.value}}return n},t);return r};function N2(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function B2(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function V2(e){return".".concat(e.split(" ").join("."))}var zK=Object.freeze({__proto__:null,getElementWindow:j2,getElementDocument:L2,getOptions:R2,addClasses:N2,removeClasses:B2,classNamesToQuery:V2}),an=j2,sh=L2,WK=R2,on=N2,sn=B2,Lt=V2,ql=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=an(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,on(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){sn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(on(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){sn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,o;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(o=n.isWithinBounds(n.axis.y.track.rect)),(a||o)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),o&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var a,o,s,u,l,c,f,d,h,g,p;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,b=n.axis[n.draggedAxis].track,x=(o=(a=b.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,C=n.axis[n.draggedAxis].scrollbar,k=(u=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,w=parseInt((c=(l=n.elStyles)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?y=i.pageY:y=i.pageX;var _=y-((d=(f=b.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;_=n.draggedAxis==="x"&&n.isRtl?((g=(h=b.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:0)-C.size-_:_;var T=_/(x-C.size),O=T*(k-w);n.draggedAxis==="x"&&n.isRtl&&(O=!((p=e.getRtlHelpers())===null||p===void 0)&&p.isScrollingToNegative?-O:O),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=O}},this.onEndDrag=function(i){var a=sh(n.el),o=an(n.el);i.preventDefault(),i.stopPropagation(),sn(n.el,n.classNames.dragging),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=o.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=aa(aa({},e.defaultOptions),r),this.classNames=aa(aa({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=jy(this._onMouseMove,64),this.onWindowResize=go(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=go(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=go(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var o=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==a.left,isScrollingToNegative:a.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:I2()}catch{return I2()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=sh(t),i=an(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){$2&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Lt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Lt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Lt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Lt(this.classNames.offset)),this.maskEl=this.el.querySelector(Lt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Lt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Lt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Lt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Lt(this.classNames.track)).concat(Lt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Lt(this.classNames.track)).concat(Lt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Lt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Lt(this.classNames.scrollbar)))||null,this.options.autoHide||(on(this.axis.x.scrollbar.el,this.classNames.visible),on(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=an(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=an(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||l,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&l>r,this.axis.y.isOverflowing=u>c,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>a-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>c-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,o=a/i,s;return s=Math.max(~~(o*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var c=l/(o-u),f=~~((s-a.size)*c);f=t==="x"&&this.isRtl?-f+(s-a.size):f,a.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(on(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(sn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),on(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?on(r.scrollbar.el,this.classNames.hover):sn(r.scrollbar.el,this.classNames.hover)):(sn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),sn(this.axis[t].track.el,this.classNames.hover),sn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var i=sh(this.el),a=an(this.el),o=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=o.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,on(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,a,o,s;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=an(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var c=this.axis[r].scrollbar,f=(a=(i=c.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,d=parseInt((s=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),h=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],g=r==="y"?this.mouseY-f:this.mouseX-f,p=g<0?-1:1,y=p===-1?h-d:h+d,b=40,x=function(){n.contentWrapperEl&&(p===-1?h>y&&(h-=b,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(x)):h<y&&(h+=b,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(x)))};x()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=an(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=WK,e.helpers=zK,e}(),Gt=function(){return Gt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Gt.apply(this,arguments)};function HK(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var z2=pe.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,a=HK(e,["children","scrollableNodeProps"]),o=pe.useRef(),s=pe.useRef(),u=pe.useRef(),l={},c={};Object.keys(a).forEach(function(h){Object.prototype.hasOwnProperty.call(ql.defaultOptions,h)?l[h]=a[h]:c[h]=a[h]});var f=Gt(Gt({},ql.defaultOptions.classNames),l.classNames),d=Gt(Gt({},i),{className:"".concat(f.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":l.ariaLabel||ql.defaultOptions.ariaLabel});return pe.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,o.current&&(h=new ql(o.current,Gt(Gt(Gt({},l),s.current&&{scrollableNode:s.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),pe.createElement("div",Gt({"data-simplebar":"init",ref:o},c),pe.createElement("div",{className:f.wrapper},pe.createElement("div",{className:f.heightAutoObserverWrapperEl},pe.createElement("div",{className:f.heightAutoObserverEl})),pe.createElement("div",{className:f.mask},pe.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:Gt(Gt({},d),{ref:s}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):pe.createElement("div",Gt({},d),pe.createElement("div",{className:f.contentEl},r)))),pe.createElement("div",{className:f.placeholder})),pe.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},pe.createElement("div",{className:f.scrollbar})),pe.createElement("div",{className:"".concat(f.track," simplebar-vertical")},pe.createElement("div",{className:f.scrollbar})))});z2.displayName="SimpleBar";const UK=Xr("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),YK=Xr(z2)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:L(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),GK=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?v.jsx(E.Box,{sx:{overflowX:"auto",...t},...r,children:e}):v.jsx(UK,{children:v.jsx(YK,{clickOnTrack:!1,sx:t,...r,children:e})})},W2=m.memo(GK),qK=E.styled(E.Stack)(({theme:e})=>({flexDirection:"row",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[300]}`,padding:"22px 20px"})),KK=E.styled(E.Stack)({padding:32}),XK=({headerTitle:e,onClose:t,children:r,contentProps:n,maxWidth:i=684,headerInfo:a,...o})=>v.jsxs(E.Drawer,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:i}},onClose:t,...o,children:[v.jsxs(qK,{children:[v.jsxs(E.Stack,{flexDirection:"row",alignItems:"center",children:[v.jsx(E.IconButton,{onClick:t,children:v.jsx(nt,{icon:"ic:round-close"})}),v.jsx(E.Typography,{variant:"subtitle1",children:e})]}),a]}),v.jsx(W2,{children:v.jsx(KK,{...n,children:r})})]});/*! *****************************************************************************
135
+ `),m.createElement("div",{style:c.white,className:"saturation-white"},m.createElement("div",{style:c.black,className:"saturation-black"}),m.createElement("div",{style:c.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:c.circle}))))}}]),t}(m.PureComponent||m.Component);function qB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var KB=by(Object.keys,Object);const XB=KB;var ZB=Object.prototype,QB=ZB.hasOwnProperty;function JB(e){if(!od(e))return XB(e);var t=[];for(var r in Object(e))QB.call(e,r)&&r!="constructor"&&t.push(r);return t}function hd(e){return Ai(e)?Ay(e):JB(e)}function eV(e,t){return e&&hy(e,t,hd)}function tV(e,t){return function(r,n){if(r==null)return r;if(!Ai(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var rV=tV(eV);const Ly=rV;function nV(e){return typeof e=="function"?e:Sl}function iV(e,t){var r=Wt(e)?qB:Ly;return r(e,nV(t))}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}var aV=/^\s+/,oV=/\s+$/;function ae(e,t){if(e=e||"",t=t||{},e instanceof ae)return e;if(!(this instanceof ae))return new ae(e,t);var r=sV(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}ae.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,a,o,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(t){return this._a=Wy(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ny(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ny(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Ry(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Ry(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return By(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return fV(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(it(this._r,255)*100)+"%",g:Math.round(it(this._g,255)*100)+"%",b:Math.round(it(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(it(this._r,255)*100)+"%, "+Math.round(it(this._g,255)*100)+"%, "+Math.round(it(this._b,255)*100)+"%)":"rgba("+Math.round(it(this._r,255)*100)+"%, "+Math.round(it(this._g,255)*100)+"%, "+Math.round(it(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:SV[By(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Vy(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ae(t);n="#"+Vy(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,a=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return ae(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(gV,arguments)},brighten:function(){return this._applyModification(mV,arguments)},darken:function(){return this._applyModification(vV,arguments)},desaturate:function(){return this._applyModification(dV,arguments)},saturate:function(){return this._applyModification(hV,arguments)},greyscale:function(){return this._applyModification(pV,arguments)},spin:function(){return this._applyModification(yV,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(wV,arguments)},complement:function(){return this._applyCombination(bV,arguments)},monochromatic:function(){return this._applyCombination(CV,arguments)},splitcomplement:function(){return this._applyCombination(xV,arguments)},triad:function(){return this._applyCombination(zy,[3])},tetrad:function(){return this._applyCombination(zy,[4])}},ae.fromRatio=function(e,t){if(_l(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=mo(e[n]));e=r}return ae(e,t)};function sV(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=kV(e)),_l(e)=="object"&&(Fr(e.r)&&Fr(e.g)&&Fr(e.b)?(t=lV(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fr(e.h)&&Fr(e.s)&&Fr(e.v)?(n=mo(e.s),i=mo(e.v),t=cV(e.h,n,i),o=!0,s="hsv"):Fr(e.h)&&Fr(e.s)&&Fr(e.l)&&(n=mo(e.s),a=mo(e.l),t=uV(e.h,n,a),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Wy(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function lV(e,t,r){return{r:it(e,255)*255,g:it(t,255)*255,b:it(r,255)*255}}function Ry(e,t,r){e=it(e,255),t=it(t,255),r=it(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a,o,s=(n+i)/2;if(n==i)a=o=0;else{var u=n-i;switch(o=s>.5?u/(2-n-i):u/(n+i),n){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,l:s}}function uV(e,t,r){var n,i,a;e=it(e,360),t=it(t,100),r=it(r,100);function o(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(t===0)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=o(u,s,e+1/3),i=o(u,s,e),a=o(u,s,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Ny(e,t,r){e=it(e,255),t=it(t,255),r=it(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a,o,s=n,u=n-i;if(o=n===0?0:u/n,n==i)a=0;else{switch(n){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,v:s}}function cV(e,t,r){e=it(e,360)*6,t=it(t,100),r=it(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,l=[r,o,a,a,s,r][u],c=[s,r,r,o,a,a][u],f=[a,a,s,r,r,o][u];return{r:l*255,g:c*255,b:f*255}}function By(e,t,r,n){var i=[or(Math.round(e).toString(16)),or(Math.round(t).toString(16)),or(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function fV(e,t,r,n,i){var a=[or(Math.round(e).toString(16)),or(Math.round(t).toString(16)),or(Math.round(r).toString(16)),or(Hy(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Vy(e,t,r,n){var i=[or(Hy(n)),or(Math.round(e).toString(16)),or(Math.round(t).toString(16)),or(Math.round(r).toString(16))];return i.join("")}ae.equals=function(e,t){return!e||!t?!1:ae(e).toRgbString()==ae(t).toRgbString()},ae.random=function(){return ae.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function dV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.s-=t/100,r.s=kl(r.s),ae(r)}function hV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.s+=t/100,r.s=kl(r.s),ae(r)}function pV(e){return ae(e).desaturate(100)}function gV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.l+=t/100,r.l=kl(r.l),ae(r)}function mV(e,t){t=t===0?0:t||10;var r=ae(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),ae(r)}function vV(e,t){t=t===0?0:t||10;var r=ae(e).toHsl();return r.l-=t/100,r.l=kl(r.l),ae(r)}function yV(e,t){var r=ae(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,ae(r)}function bV(e){var t=ae(e).toHsl();return t.h=(t.h+180)%360,ae(t)}function zy(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=ae(e).toHsl(),n=[ae(e)],i=360/t,a=1;a<t;a++)n.push(ae({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function xV(e){var t=ae(e).toHsl(),r=t.h;return[ae(e),ae({h:(r+72)%360,s:t.s,l:t.l}),ae({h:(r+216)%360,s:t.s,l:t.l})]}function wV(e,t,r){t=t||6,r=r||30;var n=ae(e).toHsl(),i=360/r,a=[ae(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(ae(n));return a}function CV(e,t){t=t||6;for(var r=ae(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(ae({h:n,s:i,v:a})),a=(a+s)%1;return o}ae.mix=function(e,t,r){r=r===0?0:r||50;var n=ae(e).toRgb(),i=ae(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return ae(o)},ae.readability=function(e,t){var r=ae(e),n=ae(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},ae.isReadable=function(e,t,r){var n=ae.readability(e,t),i,a;switch(a=!1,i=MV(r),i.level+i.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},ae.mostReadable=function(e,t,r){var n=null,i=0,a,o,s,u;r=r||{},o=r.includeFallbackColors,s=r.level,u=r.size;for(var l=0;l<t.length;l++)a=ae.readability(e,t[l]),a>i&&(i=a,n=ae(t[l]));return ae.isReadable(e,n,{level:s,size:u})||!o?n:(r.includeFallbackColors=!1,ae.mostReadable(e,["#fff","#000"],r))};var pd=ae.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},SV=ae.hexNames=EV(pd);function EV(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Wy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function it(e,t){TV(e)&&(e="100%");var r=_V(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function kl(e){return Math.min(1,Math.max(0,e))}function Ht(e){return parseInt(e,16)}function TV(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _V(e){return typeof e=="string"&&e.indexOf("%")!=-1}function or(e){return e.length==1?"0"+e:""+e}function mo(e){return e<=1&&(e=e*100+"%"),e}function Hy(e){return Math.round(parseFloat(e)*255).toString(16)}function Uy(e){return Ht(e)/255}var sr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fr(e){return!!sr.CSS_UNIT.exec(e)}function kV(e){e=e.replace(aV,"").replace(oV,"").toLowerCase();var t=!1;if(pd[e])e=pd[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=sr.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=sr.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=sr.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=sr.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=sr.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=sr.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=sr.hex8.exec(e))?{r:Ht(r[1]),g:Ht(r[2]),b:Ht(r[3]),a:Uy(r[4]),format:t?"name":"hex8"}:(r=sr.hex6.exec(e))?{r:Ht(r[1]),g:Ht(r[2]),b:Ht(r[3]),format:t?"name":"hex"}:(r=sr.hex4.exec(e))?{r:Ht(r[1]+""+r[1]),g:Ht(r[2]+""+r[2]),b:Ht(r[3]+""+r[3]),a:Uy(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=sr.hex3.exec(e))?{r:Ht(r[1]+""+r[1]),g:Ht(r[2]+""+r[2]),b:Ht(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function MV(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Yy=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return iV(r,function(a){if(t[a]&&(n+=1,isNaN(t[a])||(i+=1),a==="s"||a==="l")){var o=/^\d+%$/;o.test(t[a])&&(i+=1)}}),n===i?t:!1},vo=function(t,r){var n=t.hex?ae(t.hex):ae(t),i=n.toHsl(),a=n.toHsv(),o=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,a.h=r||0);var u=s==="000000"&&o.a===0;return{hsl:i,hex:u?"transparent":"#"+s,rgb:o,hsv:a,oldHue:t.h||r||i.h,source:t.source}},Jr=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&ae(t).isValid()},gd=function(t){if(!t)return"#fff";var r=vo(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},md=function(t,r){var n=t.replace("°","");return ae(r+" ("+n+")")._ok},yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OV=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function AV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PV(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function DV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jt=function(t){var r=function(n){DV(i,n);function i(a){AV(this,i);var o=PV(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return o.handleChange=function(s,u){var l=Yy(s);if(l){var c=vo(s,s.h||o.state.oldHue);o.setState(c),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,c,u),o.props.onChange&&o.props.onChange(c,u)}},o.handleSwatchHover=function(s,u){var l=Yy(s);if(l){var c=vo(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(c,u)}},o.state=yo({},vo(a.color,0)),o.debounce=go(function(s,u,l){s(u,l)},100),o}return OV(i,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),m.createElement(t,yo({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return yo({},vo(o.color,s.oldHue))}}]),i}(m.PureComponent||m.Component);return r.propTypes=yo({},t.propTypes),r.defaultProps=yo({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},$V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FV=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function IV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function jV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){jV(i,n);function i(){var a,o,s,u;IV(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=Gy(this,(a=i.__proto__||Object.getPrototypeOf(i)).call.apply(a,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),Gy(s,u)}return FV(i,[{key:"render",value:function(){return m.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},m.createElement(t,$V({},this.props,this.state)))}}]),i}(m.Component)},qy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RV=13,NV=function(t){var r=t.color,n=t.style,i=t.onClick,a=i===void 0?function(){}:i,o=t.onHover,s=t.title,u=s===void 0?r:s,l=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",g=me({default:{swatch:qy({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),p=function(k){return a(r,k)},y=function(k){return k.keyCode===RV&&a(r,k)},b=function(k){return o(r,k)},x={};return o&&(x.onMouseOver=b),m.createElement("div",qy({style:g.swatch,onClick:p,title:u,tabIndex:0,onKeyDown:y},x),l,h&&m.createElement(Mi,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Pn=LV(NV);var BV=function(t){var r=t.direction,n=me({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return m.createElement("div",{style:n.picker})},VV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky=function(t){var r=t.rgb,n=t.hsl,i=t.width,a=t.height,o=t.onChange,s=t.direction,u=t.style,l=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=me({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:u}}});return m.createElement("div",{style:h.picker,className:"alpha-picker "+d},m.createElement(td,VV({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:l,onChange:o,direction:s})))};Ky.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:BV},jt(Ky);function Xy(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var zV="__lodash_hash_undefined__";function WV(e){return this.__data__.set(e,zV),this}function HV(e){return this.__data__.has(e)}function Ml(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new $r;++t<r;)this.add(e[t])}Ml.prototype.add=Ml.prototype.push=WV,Ml.prototype.has=HV;function UV(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function YV(e,t){return e.has(t)}var GV=1,qV=2;function Zy(e,t,r,n,i,a){var o=r&GV,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&qV?new Ml:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(n)var y=o?n(p,g,f,t,e,a):n(g,p,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!UV(t,function(b,x){if(!YV(h,x)&&(g===b||i(g,b,r,n,a)))return h.push(x)})){d=!1;break}}else if(!(g===p||i(g,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function KV(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function XV(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ZV=1,QV=2,JV="[object Boolean]",ez="[object Date]",tz="[object Error]",rz="[object Map]",nz="[object Number]",iz="[object RegExp]",az="[object Set]",oz="[object String]",sz="[object Symbol]",lz="[object ArrayBuffer]",uz="[object DataView]",Qy=Zr?Zr.prototype:void 0,vd=Qy?Qy.valueOf:void 0;function cz(e,t,r,n,i,a,o){switch(r){case uz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lz:return!(e.byteLength!=t.byteLength||!a(new xl(e),new xl(t)));case JV:case ez:case nz:return lo(+e,+t);case tz:return e.name==t.name&&e.message==t.message;case iz:case oz:return e==t+"";case rz:var s=KV;case az:var u=n&ZV;if(s||(s=XV),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;n|=QV,o.set(e,t);var c=Zy(s(e),s(t),n,i,a,o);return o.delete(e),c;case sz:if(vd)return vd.call(e)==vd.call(t)}return!1}function fz(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function dz(e,t,r){var n=t(e);return Wt(e)?n:fz(n,r(e))}function hz(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function pz(){return[]}var gz=Object.prototype,mz=gz.propertyIsEnumerable,Jy=Object.getOwnPropertySymbols,vz=Jy?function(e){return e==null?[]:(e=Object(e),hz(Jy(e),function(t){return mz.call(e,t)}))}:pz;const yz=vz;function eb(e){return dz(e,hd,yz)}var bz=1,xz=Object.prototype,wz=xz.hasOwnProperty;function Cz(e,t,r,n,i,a){var o=r&bz,s=eb(e),u=s.length,l=eb(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:wz.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<u;){d=s[f];var b=e[d],x=t[d];if(n)var C=o?n(x,b,d,t,e,a):n(b,x,d,e,t,a);if(!(C===void 0?b===x||i(b,x,r,n,a):C)){p=!1;break}y||(y=d=="constructor")}if(p&&!y){var k=e.constructor,w=t.constructor;k!=w&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var Sz=On(ar,"DataView");const yd=Sz;var Ez=On(ar,"Promise");const bd=Ez;var Tz=On(ar,"Set");const xd=Tz;var _z=On(ar,"WeakMap");const wd=_z;var tb="[object Map]",kz="[object Object]",rb="[object Promise]",nb="[object Set]",ib="[object WeakMap]",ab="[object DataView]",Mz=Mn(yd),Oz=Mn(co),Az=Mn(bd),Pz=Mn(xd),Dz=Mn(wd),Dn=kn;(yd&&Dn(new yd(new ArrayBuffer(1)))!=ab||co&&Dn(new co)!=tb||bd&&Dn(bd.resolve())!=rb||xd&&Dn(new xd)!=nb||wd&&Dn(new wd)!=ib)&&(Dn=function(e){var t=kn(e),r=t==kz?e.constructor:void 0,n=r?Mn(r):"";if(n)switch(n){case Mz:return ab;case Oz:return tb;case Az:return rb;case Pz:return nb;case Dz:return ib}return t});const ob=Dn;var $z=1,sb="[object Arguments]",lb="[object Array]",Ol="[object Object]",Fz=Object.prototype,ub=Fz.hasOwnProperty;function Iz(e,t,r,n,i,a){var o=Wt(e),s=Wt(t),u=o?lb:ob(e),l=s?lb:ob(t);u=u==sb?Ol:u,l=l==sb?Ol:l;var c=u==Ol,f=l==Ol,d=u==l;if(d&&Cl(e)){if(!Cl(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new vr),o||ud(e)?Zy(e,t,r,n,i,a):cz(e,t,u,r,n,i,a);if(!(r&$z)){var h=c&&ub.call(e,"__wrapped__"),g=f&&ub.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,y=g?t.value():t;return a||(a=new vr),i(p,y,r,n,a)}}return d?(a||(a=new vr),Cz(e,t,r,n,i,a)):!1}function Cd(e,t,r,n,i){return e===t?!0:e==null||t==null||!Qr(e)&&!Qr(t)?e!==e&&t!==t:Iz(e,t,r,n,Cd,i)}var jz=1,Lz=2;function Rz(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var u=s[0],l=e[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new vr;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?Cd(c,l,jz|Lz,n,f):d))return!1}}return!0}function cb(e){return e===e&&!tr(e)}function Nz(e){for(var t=hd(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,cb(i)]}return t}function fb(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Bz(e){var t=Nz(e);return t.length==1&&t[0][2]?fb(t[0][0],t[0][1]):function(r){return r===e||Rz(r,e,t)}}var Vz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zz=/^\w*$/;function Sd(e,t){if(Wt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||El(e)?!0:zz.test(e)||!Vz.test(e)||t!=null&&e in Object(t)}var Wz="Expected a function";function Ed(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Wz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Ed.Cache||$r),r}Ed.Cache=$r;var Hz=500;function Uz(e){var t=Ed(e,function(n){return r.size===Hz&&r.clear(),n}),r=t.cache;return t}var Yz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gz=/\\(\\)?/g,qz=Uz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yz,function(r,n,i,a){t.push(i?a.replace(Gz,"$1"):n||r)}),t});const Kz=qz;var Xz=1/0,db=Zr?Zr.prototype:void 0,hb=db?db.toString:void 0;function pb(e){if(typeof e=="string")return e;if(Wt(e))return Xy(e,pb)+"";if(El(e))return hb?hb.call(e):"";var t=e+"";return t=="0"&&1/e==-Xz?"-0":t}function Zz(e){return e==null?"":pb(e)}function gb(e,t){return Wt(e)?e:Sd(e,t)?[e]:Kz(Zz(e))}var Qz=1/0;function Al(e){if(typeof e=="string"||El(e))return e;var t=e+"";return t=="0"&&1/e==-Qz?"-0":t}function mb(e,t){t=gb(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Al(t[r++])];return r&&r==n?e:void 0}function Jz(e,t,r){var n=e==null?void 0:mb(e,t);return n===void 0?r:n}function eW(e,t){return e!=null&&t in Object(e)}function tW(e,t,r){t=gb(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Al(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&sd(i)&&fd(o,i)&&(Wt(e)||wl(e)))}function rW(e,t){return e!=null&&tW(e,t,eW)}var nW=1,iW=2;function aW(e,t){return Sd(e)&&cb(t)?fb(Al(e),t):function(r){var n=Jz(r,e);return n===void 0&&n===t?rW(r,e):Cd(t,n,nW|iW)}}function oW(e){return function(t){return t==null?void 0:t[e]}}function sW(e){return function(t){return mb(t,e)}}function lW(e){return Sd(e)?oW(Al(e)):sW(e)}function uW(e){return typeof e=="function"?e:e==null?Sl:typeof e=="object"?Wt(e)?aW(e[0],e[1]):Bz(e):lW(e)}function cW(e,t){var r=-1,n=Ai(e)?Array(e.length):[];return Ly(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function $n(e,t){var r=Wt(e)?Xy:cW;return r(e,uW(t))}var fW=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,a=me({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return m.createElement("div",{style:a.swatches},$n(r,function(o){return m.createElement(Pn,{key:o,color:o,style:a.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+o}})}),m.createElement("div",{style:a.clear}))},Td=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,a=t.colors,o=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=i==="transparent",h=function(y,b){Jr(y)&&r({hex:y,source:"hex"},b)},g=me(It({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:gd(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return m.createElement("div",{style:g.card,className:"block-picker "+f},m.createElement("div",{style:g.triangle}),m.createElement("div",{style:g.head},d&&m.createElement(Mi,{borderRadius:"6px 6px 0 0"}),m.createElement("div",{style:g.label},i)),m.createElement("div",{style:g.body},m.createElement(fW,{colors:a,onClick:h,onSwatchHover:n}),m.createElement(Me,{style:{input:g.input},value:i,onChange:h})))};Td.propTypes={width:M.oneOfType([M.string,M.number]),colors:M.arrayOf(M.string),triangle:M.oneOf(["top","hide"]),styles:M.object},Td.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},jt(Td);var Pi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Di={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},$i={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Fi={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ii={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},ji={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Li={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Ri={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Ni={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},bo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Bi={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Vi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},zi={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Wi={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Hi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Ui={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Yi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Gi={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},vb=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,a=t.hover,o=t.active,s=t.circleSize,u=t.circleSpacing,l=me({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:a,active:o});return m.createElement("div",{style:l.swatch},m.createElement(Pn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};vb.defaultProps={circleSize:28,circleSpacing:14};const dW=Jf(vb);var _d=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,a=t.colors,o=t.hex,s=t.circleSize,u=t.styles,l=u===void 0?{}:u,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=me(It({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),g=function(y,b){return n({hex:y,source:"hex"},b)};return m.createElement("div",{style:h.card,className:"circle-picker "+d},$n(a,function(p){return m.createElement(dW,{key:p,color:p,onClick:g,onSwatchHover:i,active:o===p.toLowerCase(),circleSize:s,circleSpacing:c})}))};_d.propTypes={width:M.oneOfType([M.string,M.number]),circleSize:M.number,circleSpacing:M.number,styles:M.object},_d.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Pi[500],Di[500],$i[500],Fi[500],Ii[500],ji[500],Li[500],Ri[500],Ni[500],bo[500],Bi[500],Vi[500],zi[500],Wi[500],Hi[500],Ui[500],Yi[500],Gi[500]],styles:{}},jt(_d);function yb(e){return e===void 0}var bb={};Object.defineProperty(bb,"__esModule",{value:!0});var xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hW=m,wb=pW(hW);function pW(e){return e&&e.__esModule?e:{default:e}}function gW(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Pl=24,mW=bb.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Pl:n,a=e.height,o=a===void 0?Pl:a,s=e.style,u=s===void 0?{}:s,l=gW(e,["fill","width","height","style"]);return wb.default.createElement("svg",xb({viewBox:"0 0 "+Pl+" "+Pl,style:xb({fill:r,width:i,height:o},u)},l),wb.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},vW=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bW(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Cb=function(e){xW(t,e);function t(r){yW(this,t);var n=bW(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,a){i.hex?Jr(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},a):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},a):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},a)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(yb(i.s)?n.props.hsl.s:i.s),l:Number(yb(i.l)?n.props.hsl.l:i.l),source:"hsl"},a))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return vW(t,[{key:"render",value:function(){var n=this,i=me({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),a=void 0;return this.state.view==="hex"?a=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?a=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:i.alpha},m.createElement(Me,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(a=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Me,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:i.alpha},m.createElement(Me,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:i.wrap,className:"flexbox-fix"},a,m.createElement("div",{style:i.toggle},m.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(mW,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(m.Component);Cb.defaultProps={view:"hex"};var Sb=function(){var t=me({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return m.createElement("div",{style:t.picker})},wW=function(){var t=me({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:t.picker})},kd=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,a=t.rgb,o=t.hsl,s=t.hsv,u=t.hex,l=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,g=t.defaultView,p=me(It({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return m.createElement("div",{style:p.picker,className:"chrome-picker "+h},m.createElement("div",{style:p.saturation},m.createElement(Tl,{style:p.Saturation,hsl:o,hsv:s,pointer:wW,onChange:n})),m.createElement("div",{style:p.body},m.createElement("div",{style:p.controls,className:"flexbox-fix"},m.createElement("div",{style:p.color},m.createElement("div",{style:p.swatch},m.createElement("div",{style:p.active}),m.createElement(Mi,{renderers:l}))),m.createElement("div",{style:p.toggles},m.createElement("div",{style:p.hue},m.createElement(Oi,{style:p.Hue,hsl:o,pointer:Sb,onChange:n})),m.createElement("div",{style:p.alpha},m.createElement(td,{style:p.Alpha,rgb:a,hsl:o,pointer:Sb,renderers:l,onChange:n})))),m.createElement(Cb,{rgb:a,hsl:o,hex:u,view:g,onChange:n,disableAlpha:i})))};kd.propTypes={width:M.oneOfType([M.string,M.number]),disableAlpha:M.bool,styles:M.object,defaultView:M.oneOf(["hex","rgb","hsl"])},kd.defaultProps={width:225,disableAlpha:!1,styles:{}};const CW=jt(kd);var SW=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,a=t.onSwatchHover,o=t.active,s=me({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:gd(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(Pn,{style:s.color,color:r,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},EW=function(t){var r=t.hex,n=t.rgb,i=t.onChange,a=me({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(u,l){u.r||u.g||u.b?i({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):i({hex:u.hex,source:"hex"},l)};return m.createElement("div",{style:a.fields,className:"flexbox-fix"},m.createElement("div",{style:a.active}),m.createElement(Me,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:r,onChange:o}),m.createElement(Me,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:o}),m.createElement(Me,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:o}),m.createElement(Me,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:o}))},Md=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,a=t.hex,o=t.rgb,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=me(It({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),d=function(g,p){g.hex?Jr(g.hex)&&r({hex:g.hex,source:"hex"},p):r(g,p)};return m.createElement(po,{style:f.Compact,styles:u},m.createElement("div",{style:f.compact,className:"compact-picker "+c},m.createElement("div",null,$n(i,function(h){return m.createElement(SW,{key:h,color:h,active:h.toLowerCase()===a,onClick:d,onSwatchHover:n})}),m.createElement("div",{style:f.clear})),m.createElement(EW,{hex:a,rgb:o,onChange:d})))};Md.propTypes={colors:M.arrayOf(M.string),styles:M.object},Md.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},jt(Md);var TW=function(t){var r=t.hover,n=t.color,i=t.onClick,a=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=me({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(Pn,{color:n,onClick:i,onHover:a,focusStyle:o}))};const _W=Jf(TW);var Od=function(t){var r=t.width,n=t.colors,i=t.onChange,a=t.onSwatchHover,o=t.triangle,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=me(It({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(g,p){return i({hex:g,source:"hex"},p)};return m.createElement("div",{style:f.card,className:"github-picker "+c},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),$n(n,function(h){return m.createElement(_W,{color:h,key:h,onClick:d,onSwatchHover:a})}))};Od.propTypes={width:M.oneOfType([M.string,M.number]),colors:M.arrayOf(M.string),triangle:M.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:M.object},Od.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},jt(Od);var kW=function(t){var r=t.direction,n=me({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return m.createElement("div",{style:n.picker})},MW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ad=function(t){var r=t.width,n=t.height,i=t.onChange,a=t.hsl,o=t.direction,s=t.pointer,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=me(It({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return m.createElement("div",{style:d.picker,className:"hue-picker "+f},m.createElement(Oi,MW({},d.hue,{hsl:a,pointer:s,onChange:h,direction:o})))};Ad.propTypes={styles:M.object},Ad.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:kW,styles:{}},jt(Ad);var OW=function(t){var r=t.onChange,n=t.hex,i=t.rgb,a=t.styles,o=a===void 0?{}:a,s=t.className,u=s===void 0?"":s,l=me(It({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),c=function(d,h){d.hex?Jr(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return m.createElement(po,{styles:o},m.createElement("div",{style:l.material,className:"material-picker "+u},m.createElement(Me,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),m.createElement("div",{style:l.split,className:"flexbox-fix"},m.createElement("div",{style:l.third},m.createElement(Me,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),m.createElement("div",{style:l.third},m.createElement(Me,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),m.createElement("div",{style:l.third},m.createElement(Me,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))};jt(OW);var AW=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,a=t.hex,o=me({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?Jr(l["#"])&&r({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},c)};return m.createElement("div",{style:o.fields},m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),m.createElement("div",{style:o.divider}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),m.createElement(Me,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),m.createElement("div",{style:o.divider}),m.createElement(Me,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:a.replace("#",""),onChange:s}),m.createElement("div",{style:o.fieldSymbols},m.createElement("div",{style:o.symbol},"°"),m.createElement("div",{style:o.symbol},"%"),m.createElement("div",{style:o.symbol},"%")))},PW=function(t){var r=t.hsl,n=me({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return m.createElement("div",{style:n.picker})},DW=function(){var t=me({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return m.createElement("div",{style:t.pointer},m.createElement("div",{style:t.left},m.createElement("div",{style:t.leftInside})),m.createElement("div",{style:t.right},m.createElement("div",{style:t.rightInside})))},Eb=function(t){var r=t.onClick,n=t.label,i=t.children,a=t.active,o=me({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return m.createElement("div",{style:o.button,onClick:r},n||i)},$W=function(t){var r=t.rgb,n=t.currentColor,i=me({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return m.createElement("div",null,m.createElement("div",{style:i.label},"new"),m.createElement("div",{style:i.swatches},m.createElement("div",{style:i.new}),m.createElement("div",{style:i.current})),m.createElement("div",{style:i.label},"current"))},FW=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function IW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jW(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function LW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Pd=function(e){LW(t,e);function t(r){IW(this,t);var n=jW(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return FW(t,[{key:"render",value:function(){var n=this.props,i=n.styles,a=i===void 0?{}:i,o=n.className,s=o===void 0?"":o,u=me(It({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},a));return m.createElement("div",{style:u.picker,className:"photoshop-picker "+s},m.createElement("div",{style:u.head},this.props.header),m.createElement("div",{style:u.body,className:"flexbox-fix"},m.createElement("div",{style:u.saturation},m.createElement(Tl,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:PW,onChange:this.props.onChange})),m.createElement("div",{style:u.hue},m.createElement(Oi,{direction:"vertical",hsl:this.props.hsl,pointer:DW,onChange:this.props.onChange})),m.createElement("div",{style:u.controls},m.createElement("div",{style:u.top,className:"flexbox-fix"},m.createElement("div",{style:u.previews},m.createElement($W,{rgb:this.props.rgb,currentColor:this.state.currentColor})),m.createElement("div",{style:u.actions},m.createElement(Eb,{label:"OK",onClick:this.props.onAccept,active:!0}),m.createElement(Eb,{label:"Cancel",onClick:this.props.onCancel}),m.createElement(AW,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(m.Component);Pd.propTypes={header:M.string,styles:M.object},Pd.defaultProps={header:"Color Picker",styles:{}},jt(Pd);var RW=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,a=t.hex,o=t.disableAlpha,s=me({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),u=function(c,f){c.hex?Jr(c.hex)&&r({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:i.h,s:i.s,l:i.l,a:c.a,source:"rgb"},f))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(Me,{style:{input:s.input,label:s.label},label:"hex",value:a.replace("#",""),onChange:u})),m.createElement("div",{style:s.single},m.createElement(Me,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Me,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Me,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(Me,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},NW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tb=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,a=t.onSwatchHover,o=me({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,c){i({hex:l,source:"hex"},c)};return m.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return m.createElement("div",{key:c,style:o.swatchWrap},m.createElement(Pn,NW({},l,{style:o.swatch,onClick:s,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};Tb.propTypes={colors:M.arrayOf(M.oneOfType([M.string,M.shape({color:M.string,title:M.string})])).isRequired};var BW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dd=function(t){var r=t.width,n=t.rgb,i=t.hex,a=t.hsv,o=t.hsl,s=t.onChange,u=t.onSwatchHover,l=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,g=t.className,p=g===void 0?"":g,y=me(It({default:BW({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return m.createElement("div",{style:y.picker,className:"sketch-picker "+p},m.createElement("div",{style:y.saturation},m.createElement(Tl,{style:y.Saturation,hsl:o,hsv:a,onChange:s})),m.createElement("div",{style:y.controls,className:"flexbox-fix"},m.createElement("div",{style:y.sliders},m.createElement("div",{style:y.hue},m.createElement(Oi,{style:y.Hue,hsl:o,onChange:s})),m.createElement("div",{style:y.alpha},m.createElement(td,{style:y.Alpha,rgb:n,hsl:o,renderers:f,onChange:s}))),m.createElement("div",{style:y.color},m.createElement(Mi,null),m.createElement("div",{style:y.activeColor}))),m.createElement(RW,{rgb:n,hsl:o,hex:i,onChange:s,disableAlpha:l}),m.createElement(Tb,{colors:c,onClick:s,onSwatchHover:u}))};Dd.propTypes={disableAlpha:M.bool,width:M.oneOfType([M.string,M.number]),styles:M.object},Dd.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},jt(Dd);var xo=function(t){var r=t.hsl,n=t.offset,i=t.onClick,a=i===void 0?function(){}:i,o=t.active,s=t.first,u=t.last,l=me({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:u}),c=function(d){return a({h:r.h,s:.5,l:n,source:"hsl"},d)};return m.createElement("div",{style:l.swatch,onClick:c})},VW=function(t){var r=t.onClick,n=t.hsl,i=me({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return m.createElement("div",{style:i.swatches},m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<a&&Math.abs(n.s-.5)<a,onClick:r,first:!0})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<a&&Math.abs(n.s-.5)<a,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<a&&Math.abs(n.s-.5)<a,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<a&&Math.abs(n.s-.5)<a,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(xo,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<a&&Math.abs(n.s-.5)<a,onClick:r,last:!0})),m.createElement("div",{style:i.clear}))},zW=function(){var t=me({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return m.createElement("div",{style:t.picker})},$d=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,a=t.styles,o=a===void 0?{}:a,s=t.className,u=s===void 0?"":s,l=me(It({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return m.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},m.createElement("div",{style:l.hue},m.createElement(Oi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),m.createElement("div",{style:l.swatches},m.createElement(VW,{hsl:r,onClick:n})))};$d.propTypes={styles:M.object},$d.defaultProps={pointer:zW,styles:{}},jt($d);var _b={};Object.defineProperty(_b,"__esModule",{value:!0});var kb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WW=m,Mb=HW(WW);function HW(e){return e&&e.__esModule?e:{default:e}}function UW(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Dl=24,YW=_b.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Dl:n,a=e.height,o=a===void 0?Dl:a,s=e.style,u=s===void 0?{}:s,l=UW(e,["fill","width","height","style"]);return Mb.default.createElement("svg",kb({viewBox:"0 0 "+Dl+" "+Dl,style:kb({fill:r,width:i,height:o},u)},l),Mb.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},GW=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,a=t.onSwatchHover,o=t.first,s=t.last,u=t.active,l=me({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:gd(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(Pn,{color:r,style:l.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:l.check},m.createElement(YW,null)))},qW=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,a=t.active,o=me({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:o.group},$n(i,function(s,u){return m.createElement(GW,{key:s,color:s,active:s.toLowerCase()===a,first:u===0,last:u===i.length-1,onClick:r,onSwatchHover:n})}))},Fd=function(t){var r=t.width,n=t.height,i=t.onChange,a=t.onSwatchHover,o=t.colors,s=t.hex,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=me(It({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,y){return i({hex:p,source:"hex"},y)};return m.createElement("div",{style:d.picker,className:"swatches-picker "+f},m.createElement(po,null,m.createElement("div",{style:d.overflow},m.createElement("div",{style:d.body},$n(o,function(g){return m.createElement(qW,{key:g.toString(),group:g,active:s,onClick:h,onSwatchHover:a})}),m.createElement("div",{style:d.clear})))))};Fd.propTypes={width:M.oneOfType([M.string,M.number]),height:M.oneOfType([M.string,M.number]),colors:M.arrayOf(M.arrayOf(M.string)),styles:M.object},Fd.defaultProps={width:320,height:240,colors:[[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],[$i[900],$i[700],$i[500],$i[300],$i[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[Ii[900],Ii[700],Ii[500],Ii[300],Ii[100]],[ji[900],ji[700],ji[500],ji[300],ji[100]],[Li[900],Li[700],Li[500],Li[300],Li[100]],[Ri[900],Ri[700],Ri[500],Ri[300],Ri[100]],[Ni[900],Ni[700],Ni[500],Ni[300],Ni[100]],["#194D33",bo[700],bo[500],bo[300],bo[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[zi[900],zi[700],zi[500],zi[300],zi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},jt(Fd);var Id=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,a=t.colors,o=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=me(It({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,y){Jr(p)&&r({hex:p,source:"hex"},y)};return m.createElement("div",{style:d.card,className:"twitter-picker "+f},m.createElement("div",{style:d.triangleShadow}),m.createElement("div",{style:d.triangle}),m.createElement("div",{style:d.body},$n(a,function(g,p){return m.createElement(Pn,{key:p,color:g,hex:g,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+g}})}),m.createElement("div",{style:d.hash},"#"),m.createElement(Me,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),m.createElement("div",{style:d.clear})))};Id.propTypes={width:M.oneOfType([M.string,M.number]),triangle:M.oneOf(["hide","top-left","top-right"]),colors:M.arrayOf(M.string),styles:M.object},Id.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},jt(Id);var jd=function(t){var r=me({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return m.createElement("div",{style:r.picker})};jd.propTypes={hsl:M.shape({h:M.number,s:M.number,l:M.number,a:M.number})},jd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Ld=function(t){var r=me({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return m.createElement("div",{style:r.picker})};Ld.propTypes={hsl:M.shape({h:M.number,s:M.number,l:M.number,a:M.number})},Ld.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var KW=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,a=t.hex,o=t.hsv,s=function(h,g){if(h.hex)Jr(h.hex)&&r({hex:h.hex,source:"hex"},g);else if(h.rgb){var p=h.rgb.split(",");md(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},g)}else if(h.hsv){var y=h.hsv.split(",");md(h.hsv,"hsv")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),y[1]==1?y[1]=.01:y[2]==1&&(y[2]=.01),r({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsv"},g))}else if(h.hsl){var b=h.hsl.split(",");md(h.hsl,"hsl")&&(b[2]=b[2].replace("%",""),b[1]=b[1].replace("%",""),b[0]=b[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(b[0]),s:Number(b[1]),v:Number(b[2]),source:"hsl"},g))}},u=me({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return m.createElement("div",{style:u.wrap,className:"flexbox-fix"},m.createElement("div",{style:u.fields},m.createElement("div",{style:u.double},m.createElement(Me,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:s})),m.createElement("div",{style:u.column},m.createElement("div",{style:u.single},m.createElement(Me,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),m.createElement("div",{style:u.single},m.createElement(Me,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),m.createElement("div",{style:u.single},m.createElement(Me,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},Rd=function(t){var r=t.width,n=t.onChange,i=t.rgb,a=t.hsl,o=t.hsv,s=t.hex,u=t.header,l=t.styles,c=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=me(It({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return m.createElement("div",{style:h.picker,className:"google-picker "+d},m.createElement("div",{style:h.head},u),m.createElement("div",{style:h.swatch}),m.createElement("div",{style:h.saturation},m.createElement(Tl,{hsl:a,hsv:o,pointer:jd,onChange:n})),m.createElement("div",{style:h.body},m.createElement("div",{style:h.controls,className:"flexbox-fix"},m.createElement("div",{style:h.hue},m.createElement(Oi,{style:h.Hue,hsl:a,radius:"4px",pointer:Ld,onChange:n}))),m.createElement(KW,{rgb:i,hsl:a,hex:s,hsv:o,onChange:n})))};Rd.propTypes={width:M.oneOfType([M.string,M.number]),styles:M.object,header:M.string},Rd.defaultProps={width:652,styles:{},header:"Color picker"},jt(Rd);const Ob=({value:e,onChangeColor:t,tabIndex:r,...n})=>{const i=e?"#"+e.replaceAll("#",""):"",[a,o]=m.useState(null),s=c=>{o(c.currentTarget)},u=()=>o(null),l=(c="")=>{(/^#[0-9a-fA-F]*$/.test(c)||c===""||c==="#")&&t("#"+c.replaceAll("#",""))};return v.jsxs(v.Fragment,{children:[v.jsx(E.TextField,{...n,value:i,onChange:c=>l(c.target.value),InputProps:{inputProps:{...n.inputProps,maxLength:7,tabIndex:r},startAdornment:v.jsx(E.InputAdornment,{position:"start",sx:{ml:2},children:v.jsx(E.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:s,children:v.jsx(nt,{icon:"bi:square-fill",color:i,width:25,height:23})})})}}),v.jsx(E.Popover,{open:!!a,anchorEl:a,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:v.jsx(CW,{color:i,onChange:c=>t(c.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function De(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function N(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function B(e){N(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ir(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Nd(e,t){N(2,arguments);var r=B(e),n=De(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function $l(e,t){N(2,arguments);var r=B(e).getTime(),n=De(t);return new Date(r+n)}function XW(e,t){N(2,arguments);var r=De(t);return $l(e,r*1e3)}var ZW=6e4;function QW(e,t){N(2,arguments);var r=De(t);return $l(e,r*ZW)}var JW=36e5;function eH(e,t){N(2,arguments);var r=De(t);return $l(e,r*JW)}function tH(e,t){N(2,arguments);var r=De(t),n=r*7;return Nd(e,n)}function Fl(e,t){N(2,arguments);var r=B(e),n=De(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Ab(e,t){N(2,arguments);var r=De(t);return Fl(e,r*12)}function rH(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getFullYear()-n.getFullYear()}function qi(e,t){N(2,arguments);var r=B(e),n=B(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function nH(e,t){N(2,arguments);var r=B(e),n=B(t),i=qi(r,n),a=Math.abs(rH(r,n));r.setFullYear(1584),n.setFullYear(1584);var o=qi(r,n)===-i,s=i*(a-Number(o));return s===0?0:s}function iH(e,t){N(2,arguments);var r=B(e),n=B(t),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function Bd(e){N(1,arguments);var t=B(e);return t.setHours(23,59,59,999),t}function Vd(e){N(1,arguments);var t=B(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function aH(e){N(1,arguments);var t=B(e);return Bd(t).getTime()===Vd(t).getTime()}function zd(e,t){N(2,arguments);var r=B(e),n=B(t),i=qi(r,n),a=Math.abs(iH(r,n)),o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=qi(r,n)===-i;aH(B(e))&&a===1&&qi(e,n)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}var Pb={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},oH="trunc";function wo(e){return e?Pb[e]:Pb[oH]}function sH(e,t,r){N(2,arguments);var n=zd(e,t)/3;return wo(r==null?void 0:r.roundingMethod)(n)}function Ki(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xi(e){N(1,arguments);var t=B(e);return t.setHours(0,0,0,0),t}var lH=864e5;function uH(e,t){N(2,arguments);var r=Xi(e),n=Xi(t),i=r.getTime()-Ki(r),a=n.getTime()-Ki(n);return Math.round((i-a)/lH)}function Db(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function $b(e,t){N(2,arguments);var r=B(e),n=B(t),i=Db(r,n),a=Math.abs(uH(r,n));r.setDate(r.getDate()-i*a);var o=+(Db(r,n)===-i),s=i*(a-o);return s===0?0:s}function cH(e,t,r){N(2,arguments);var n=$b(e,t)/7;return wo(r==null?void 0:r.roundingMethod)(n)}var Il=6e4,jl=36e5,fH=1e3;function Ll(e,t){return N(2,arguments),B(e).getTime()-B(t).getTime()}function dH(e,t,r){N(2,arguments);var n=Ll(e,t)/jl;return wo(r==null?void 0:r.roundingMethod)(n)}function hH(e,t,r){N(2,arguments);var n=Ll(e,t)/Il;return wo(r==null?void 0:r.roundingMethod)(n)}function Fb(e,t,r){N(2,arguments);var n=Ll(e,t)/1e3;return wo(r==null?void 0:r.roundingMethod)(n)}function pH(e,t){var r;N(1,arguments);var n=e||{},i=B(n.start),a=B(n.end),o=a.getTime();if(!(i.getTime()<=o))throw new RangeError("Invalid interval");var s=[],u=i;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)s.push(B(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}var gH={};function lr(){return gH}function Wd(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=B(e),h=d.getDay(),g=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}function Hd(e){N(1,arguments);var t=B(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function mH(e){return N(1,arguments),e instanceof Date||Ir(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ud(e){if(N(1,arguments),!mH(e)&&typeof e!="number")return!1;var t=B(e);return!isNaN(Number(t))}function Ib(e,t){N(2,arguments);var r=De(t);return $l(e,-r)}var vH=864e5;function yH(e){N(1,arguments);var t=B(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/vH)+1}function Zi(e){N(1,arguments);var t=1,r=B(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function jb(e){N(1,arguments);var t=B(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Zi(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var o=Zi(a);return t.getTime()>=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function bH(e){N(1,arguments);var t=jb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Zi(r);return n}var xH=6048e5;function Lb(e){N(1,arguments);var t=B(e),r=Zi(t).getTime()-bH(t).getTime();return Math.round(r/xH)+1}function Fn(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=B(e),h=d.getUTCDay(),g=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-g),d.setUTCHours(0,0,0,0),d}function Yd(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=B(e),f=c.getUTCFullYear(),d=lr(),h=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(f+1,0,h),g.setUTCHours(0,0,0,0);var p=Fn(g,t),y=new Date(0);y.setUTCFullYear(f,0,h),y.setUTCHours(0,0,0,0);var b=Fn(y,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function wH(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Yd(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var g=Fn(h,t);return g}var CH=6048e5;function Rb(e,t){N(1,arguments);var r=B(e),n=Fn(r,t).getTime()-wH(r,t).getTime();return Math.round(n/CH)+1}function Te(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var SH={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return Te(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Te(n+1,2)},d:function(t,r){return Te(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Te(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Te(t.getUTCHours(),r.length)},m:function(t,r){return Te(t.getUTCMinutes(),r.length)},s:function(t,r){return Te(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return Te(a,r.length)}};const en=SH;var Qi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},EH={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return en.y(t,r)},Y:function(t,r,n,i){var a=Yd(t,i),o=a>0?a:1-a;if(r==="YY"){var s=o%100;return Te(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Te(o,r.length)},R:function(t,r){var n=jb(t);return Te(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Te(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Te(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Te(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return en.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return Te(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var a=Rb(t,i);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):Te(a,r.length)},I:function(t,r,n){var i=Lb(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):Te(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):en.d(t,r)},D:function(t,r,n){var i=yH(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Te(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Te(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Te(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),a=i===0?7:i;switch(r){case"i":return String(a);case"ii":return Te(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),a;switch(i===12?a=Qi.noon:i===0?a=Qi.midnight:a=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),a;switch(i>=17?a=Qi.evening:i>=12?a=Qi.afternoon:i>=4?a=Qi.morning:a=Qi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return en.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):en.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Te(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):Te(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):en.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):en.s(t,r)},S:function(t,r){return en.S(t,r)},X:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return Bb(o);case"XXXX":case"XX":return In(o);case"XXXXX":case"XXX":default:return In(o,":")}},x:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(r){case"x":return Bb(o);case"xxxx":case"xx":return In(o);case"xxxxx":case"xxx":default:return In(o,":")}},O:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Nb(o,":");case"OOOO":default:return"GMT"+In(o,":")}},z:function(t,r,n,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Nb(o,":");case"zzzz":default:return"GMT"+In(o,":")}},t:function(t,r,n,i){var a=i._originalDate||t,o=Math.floor(a.getTime()/1e3);return Te(o,r.length)},T:function(t,r,n,i){var a=i._originalDate||t,o=a.getTime();return Te(o,r.length)}};function Nb(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=t||"";return r+String(i)+o+Te(a,2)}function Bb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Te(Math.abs(e)/60,2)}return In(e,t)}function In(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=Te(Math.floor(i/60),2),o=Te(i%60,2);return n+a+r+o}const TH=EH;var Vb=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},zb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},_H=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return Vb(t,r);var o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Vb(i,r)).replace("{{time}}",zb(a,r))},kH={p:zb,P:_H};const Gd=kH;var MH=["D","DD"],OH=["YY","YYYY"];function Wb(e){return MH.indexOf(e)!==-1}function Hb(e){return OH.indexOf(e)!==-1}function Rl(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AH={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},PH=function(t,r,n){var i,a=AH[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const DH=PH;function Ji(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var $H={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FH={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IH={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jH={date:Ji({formats:$H,defaultWidth:"full"}),time:Ji({formats:FH,defaultWidth:"full"}),dateTime:Ji({formats:IH,defaultWidth:"full"})};const LH=jH;var RH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NH=function(t,r,n,i){return RH[t]};const BH=NH;function yr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var VH={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zH={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HH={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},UH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},YH={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},GH=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},qH={ordinalNumber:GH,era:yr({values:VH,defaultWidth:"wide"}),quarter:yr({values:zH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yr({values:WH,defaultWidth:"wide"}),day:yr({values:HH,defaultWidth:"wide"}),dayPeriod:yr({values:UH,defaultWidth:"wide",formattingValues:YH,defaultFormattingWidth:"wide"})};const KH=qH;function br(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?ZH(s,function(f){return f.test(o)}):XH(s,function(f){return f.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function XH(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ZH(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ub(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var QH=/^(\d+)(th|st|nd|rd)?/i,JH=/\d+/i,eU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tU={any:[/^b/i,/^(a|c)/i]},rU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nU={any:[/1/i,/2/i,/3/i,/4/i]},iU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cU={ordinalNumber:Ub({matchPattern:QH,parsePattern:JH,valueCallback:function(t){return parseInt(t,10)}}),era:br({matchPatterns:eU,defaultMatchWidth:"wide",parsePatterns:tU,defaultParseWidth:"any"}),quarter:br({matchPatterns:rU,defaultMatchWidth:"wide",parsePatterns:nU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:br({matchPatterns:iU,defaultMatchWidth:"wide",parsePatterns:aU,defaultParseWidth:"any"}),day:br({matchPatterns:oU,defaultMatchWidth:"wide",parsePatterns:sU,defaultParseWidth:"any"}),dayPeriod:br({matchPatterns:lU,defaultMatchWidth:"any",parsePatterns:uU,defaultParseWidth:"any"})},fU={code:"en-US",formatDistance:DH,formatLong:LH,formatRelative:BH,localize:KH,match:cU,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Nl=fU;var dU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pU=/^'([^]*?)'?$/,gU=/''/g,mU=/[a-zA-Z]/;function qd(e,t,r){var n,i,a,o,s,u,l,c,f,d,h,g,p,y,b,x,C,k;N(2,arguments);var w=String(t),_=lr(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:Nl,O=De((a=(o=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&o!==void 0?o:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=De((h=(g=(p=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:_.weekStartsOn)!==null&&g!==void 0?g:(C=_.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&h!==void 0?h:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var F=B(e);if(!Ud(F))throw new RangeError("Invalid time value");var Z=Ki(F),be=Ib(F,Z),oe={firstWeekContainsDate:O,weekStartsOn:P,locale:T,_originalDate:F},Q=w.match(hU).map(function(H){var R=H[0];if(R==="p"||R==="P"){var U=Gd[R];return U(H,T.formatLong)}return H}).join("").match(dU).map(function(H){if(H==="''")return"'";var R=H[0];if(R==="'")return vU(H);var U=TH[R];if(U)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Hb(H)&&Rl(H,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Wb(H)&&Rl(H,t,String(e)),U(be,H,T.localize,oe);if(R.match(mU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return H}).join("");return Q}function vU(e){var t=e.match(pU);return t?t[1].replace(gU,"'"):e}function yU(e){N(1,arguments);var t=B(e),r=t.getDate();return r}function Yb(e){N(1,arguments);var t=B(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function bU(e){N(1,arguments);var t=B(e),r=t.getHours();return r}function xU(e){N(1,arguments);var t=B(e),r=t.getMinutes();return r}function wU(e){N(1,arguments);var t=B(e),r=t.getMonth();return r}function CU(e){N(1,arguments);var t=B(e),r=t.getSeconds();return r}function SU(e){N(1,arguments);var t=B(e),r=t.getMilliseconds();return r}function jn(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=B(e),h=d.getDay(),g=(h<f?7:0)+h-f;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function EU(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=B(e),f=c.getFullYear(),d=lr(),h=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setFullYear(f+1,0,h),g.setHours(0,0,0,0);var p=jn(g,t),y=new Date(0);y.setFullYear(f,0,h),y.setHours(0,0,0,0);var b=jn(y,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function TU(e,t){var r,n,i,a,o,s,u,l;N(1,arguments);var c=lr(),f=De((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=EU(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var g=jn(h,t);return g}var _U=6048e5;function kU(e,t){N(1,arguments);var r=B(e),n=jn(r,t).getTime()-TU(r,t).getTime();return Math.round(n/_U)+1}function MU(e){return N(1,arguments),B(e).getFullYear()}function Kd(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getTime()>n.getTime()}function Co(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getTime()<n.getTime()}function OU(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getTime()===n.getTime()}function AU(e,t){N(2,arguments);var r=Xi(e),n=Xi(t);return r.getTime()===n.getTime()}function PU(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getFullYear()===n.getFullYear()}function DU(e,t){N(2,arguments);var r=B(e),n=B(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Gb(e){N(1,arguments);var t=B(e);return t.setMinutes(0,0,0),t}function $U(e,t){N(2,arguments);var r=Gb(e),n=Gb(t);return r.getTime()===n.getTime()}function qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FU(e,t){if(e){if(typeof e=="string")return qb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qb(e,t)}}function Kb(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=FU(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Xd(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Js(e,t)}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(e)}function IU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jU(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}function Fe(e){var t=IU();return function(){var n=Bl(e),i;if(t){var a=Bl(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return jU(this,i)}}function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LU(e,t){if(Ir(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xb(e){var t=LU(e,"string");return Ir(t)==="symbol"?t:String(t)}function Zb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xb(n.key),n)}}function Ae(e,t,r){return t&&Zb(e.prototype,t),r&&Zb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e,t,r){return t=Xb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var RU=10,Qb=function(){function e(){Oe(this,e),G(this,"priority",void 0),G(this,"subPriority",0)}return Ae(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),NU=function(e){$e(r,e);var t=Fe(r);function r(n,i,a,o,s){var u;return Oe(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=a,u.priority=o,s&&(u.subPriority=s),u}return Ae(r,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,o){return this.setValue(i,a,this.value,o)}}]),r}(Qb),BU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",RU),G(K(n),"subPriority",-1),n}return Ae(r,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}}]),r}(Qb),Le=function(){function e(){Oe(this,e),G(this,"incompatibleTokens",void 0),G(this,"priority",void 0),G(this,"subPriority",void 0)}return Ae(e,[{key:"run",value:function(r,n,i,a){var o=this.parse(r,n,i,a);return o?{setter:new NU(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),VU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",140),G(K(n),"incompatibleTokens",["R","u","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})||o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,o){return a.era=o,i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),vt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},xr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function yt(e,t){return e&&{value:t(e.value),rest:e.rest}}function ot(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function wr(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(i*jl+a*Il+o*fH),rest:t.slice(r[0].length)}}function Jb(e){return ot(vt.anyDigitsSigned,e)}function ht(e,t){switch(e){case 1:return ot(vt.singleDigit,t);case 2:return ot(vt.twoDigits,t);case 3:return ot(vt.threeDigits,t);case 4:return ot(vt.fourDigits,t);default:return ot(new RegExp("^\\d{1,"+e+"}"),t)}}function Vl(e,t){switch(e){case 1:return ot(vt.singleDigitSigned,t);case 2:return ot(vt.twoDigitsSigned,t);case 3:return ot(vt.threeDigitsSigned,t);case 4:return ot(vt.fourDigitsSigned,t);default:return ot(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Zd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function e2(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var a=n+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return r?i:1-i}function t2(e){return e%400===0||e%4===0&&e%100!==0}var zU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return{year:l,isTwoDigitYear:a==="yy"}};switch(a){case"y":return yt(ht(4,i),s);case"yo":return yt(o.ordinalNumber(i,{unit:"year"}),s);default:return yt(ht(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var u=e2(o.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),WU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return{year:l,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return yt(ht(4,i),s);case"Yo":return yt(o.ordinalNumber(i,{unit:"year"}),s);default:return yt(ht(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o,s){var u=Yd(i,s);if(o.isTwoDigitYear){var l=e2(o.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Fn(i,s)}var c=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Fn(i,s)}}]),r}(Le),HU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a){return Vl(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),Zi(s)}}]),r}(Le),UU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",130),G(K(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a){return Vl(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,o){return i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),YU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",120),G(K(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"Q":case"QQ":return ht(a.length,i);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})||o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),GU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",120),G(K(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"q":case"qq":return ht(a.length,i);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})||o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),qU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),G(K(n),"priority",110),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return l-1};switch(a){case"M":return yt(ot(vt.month,i),s);case"MM":return yt(ht(2,i),s);case"Mo":return yt(o.ordinalNumber(i,{unit:"month"}),s);case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})||o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le),KU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",110),G(K(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return l-1};switch(a){case"L":return yt(ot(vt.month,i),s);case"LL":return yt(ht(2,i),s);case"Lo":return yt(o.ordinalNumber(i,{unit:"month"}),s);case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})||o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),r}(Le);function XU(e,t,r){N(2,arguments);var n=B(e),i=De(t),a=Rb(n,r)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}var ZU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",100),G(K(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"w":return ot(vt.week,i);case"wo":return o.ordinalNumber(i,{unit:"week"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o,s){return Fn(XU(i,o,s),s)}}]),r}(Le);function QU(e,t){N(2,arguments);var r=B(e),n=De(t),i=Lb(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var JU=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",100),G(K(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"I":return ot(vt.week,i);case"Io":return o.ordinalNumber(i,{unit:"week"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o){return Zi(QU(i,o))}}]),r}(Le),eY=[31,28,31,30,31,30,31,31,30,31,30,31],tY=[31,29,31,30,31,30,31,31,30,31,30,31],rY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"subPriority",1),G(K(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"d":return ot(vt.date,i);case"do":return o.ordinalNumber(i,{unit:"date"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=t2(o),u=i.getUTCMonth();return s?a>=1&&a<=tY[u]:a>=1&&a<=eY[u]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),r}(Le),nY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"subpriority",1),G(K(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"D":case"DD":return ot(vt.dayOfYear,i);case"Do":return o.ordinalNumber(i,{unit:"date"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=t2(o);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),r}(Le);function Qd(e,t,r){var n,i,a,o,s,u,l,c;N(2,arguments);var f=lr(),d=De((n=(i=(a=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=B(e),g=De(t),p=h.getUTCDay(),y=g%7,b=(y+7)%7,x=(b<d?7:0)+g-p;return h.setUTCDate(h.getUTCDate()+x),h}var iY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Qd(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r}(Le),aY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(a){case"e":case"ee":return yt(ht(a.length,i),u);case"eo":return yt(o.ordinalNumber(i,{unit:"day"}),u);case"eee":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Qd(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r}(Le),oY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(a){case"c":case"cc":return yt(ht(a.length,i),u);case"co":return yt(o.ordinalNumber(i,{unit:"day"}),u);case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})||o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=Qd(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r}(Le);function sY(e,t){N(2,arguments);var r=De(t);r%7===0&&(r=r-7);var n=1,i=B(e),a=i.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<n?7:0)+r-a;return i.setUTCDate(i.getUTCDate()+u),i}var lY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",90),G(K(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){var s=function(l){return l===0?7:l};switch(a){case"i":case"ii":return ht(a.length,i);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return yt(o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return yt(o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return yt(o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return yt(o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,o){return i=sY(i,o),i.setUTCHours(0,0,0,0),i}}]),r}(Le),uY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",80),G(K(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"a":case"aa":case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Zd(o),0,0,0),i}}]),r}(Le),cY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",80),G(K(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"b":case"bb":case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Zd(o),0,0,0),i}}]),r}(Le),fY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",80),G(K(n),"incompatibleTokens",["a","b","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(Zd(o),0,0,0),i}}]),r}(Le),dY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"h":return ot(vt.hour12h,i);case"ho":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),r}(Le),hY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"H":return ot(vt.hour23h,i);case"Ho":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),r}(Le),pY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"K":return ot(vt.hour11h,i);case"Ko":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),r}(Le),gY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",70),G(K(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"k":return ot(vt.hour24h,i);case"ko":return o.ordinalNumber(i,{unit:"hour"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),r}(Le),mY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",60),G(K(n),"incompatibleTokens",["t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"m":return ot(vt.minute,i);case"mo":return o.ordinalNumber(i,{unit:"minute"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),r}(Le),vY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",50),G(K(n),"incompatibleTokens",["t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a,o){switch(a){case"s":return ot(vt.second,i);case"so":return o.ordinalNumber(i,{unit:"second"});default:return ht(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),r}(Le),yY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",30),G(K(n),"incompatibleTokens",["t","T"]),n}return Ae(r,[{key:"parse",value:function(i,a){var o=function(u){return Math.floor(u*Math.pow(10,-a.length+3))};return yt(ht(a.length,i),o)}},{key:"set",value:function(i,a,o){return i.setUTCMilliseconds(o),i}}]),r}(Le),bY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",10),G(K(n),"incompatibleTokens",["t","T","x"]),n}return Ae(r,[{key:"parse",value:function(i,a){switch(a){case"X":return wr(xr.basicOptionalMinutes,i);case"XX":return wr(xr.basic,i);case"XXXX":return wr(xr.basicOptionalSeconds,i);case"XXXXX":return wr(xr.extendedOptionalSeconds,i);case"XXX":default:return wr(xr.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),r}(Le),xY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",10),G(K(n),"incompatibleTokens",["t","T","X"]),n}return Ae(r,[{key:"parse",value:function(i,a){switch(a){case"x":return wr(xr.basicOptionalMinutes,i);case"xx":return wr(xr.basic,i);case"xxxx":return wr(xr.basicOptionalSeconds,i);case"xxxxx":return wr(xr.extendedOptionalSeconds,i);case"xxx":default:return wr(xr.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),r}(Le),wY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",40),G(K(n),"incompatibleTokens","*"),n}return Ae(r,[{key:"parse",value:function(i){return Jb(i)}},{key:"set",value:function(i,a,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(Le),CY=function(e){$e(r,e);var t=Fe(r);function r(){var n;Oe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),G(K(n),"priority",20),G(K(n),"incompatibleTokens","*"),n}return Ae(r,[{key:"parse",value:function(i){return Jb(i)}},{key:"set",value:function(i,a,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(Le),SY={G:new VU,y:new zU,Y:new WU,R:new HU,u:new UU,Q:new YU,q:new GU,M:new qU,L:new KU,w:new ZU,I:new JU,d:new rY,D:new nY,E:new iY,e:new aY,c:new oY,i:new lY,a:new uY,b:new cY,B:new fY,h:new dY,H:new hY,K:new pY,k:new gY,m:new mY,s:new vY,S:new yY,X:new bY,x:new xY,t:new wY,T:new CY},EY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_Y=/^'([^]*?)'?$/,kY=/''/g,MY=/\S/,OY=/[a-zA-Z]/;function r2(e,t,r,n){var i,a,o,s,u,l,c,f,d,h,g,p,y,b,x,C,k,w;N(3,arguments);var _=String(e),T=String(t),O=lr(),P=(i=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:O.locale)!==null&&i!==void 0?i:Nl;if(!P.match)throw new RangeError("locale must contain match property");var F=De((o=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:O.firstWeekContainsDate)!==null&&s!==void 0?s:(d=O.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=De((g=(p=(y=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(x=n.locale)===null||x===void 0||(C=x.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&y!==void 0?y:O.weekStartsOn)!==null&&p!==void 0?p:(k=O.locale)===null||k===void 0||(w=k.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return _===""?B(r):new Date(NaN);var be={firstWeekContainsDate:F,weekStartsOn:Z,locale:P},oe=[new BU],Q=T.match(TY).map(function(ee){var q=ee[0];if(q in Gd){var te=Gd[q];return te(ee,P.formatLong)}return ee}).join("").match(EY),H=[],R=Kb(Q),U;try{var Ce=function(){var q=U.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&Hb(q)&&Rl(q,T,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Wb(q)&&Rl(q,T,e);var te=q[0],Se=SY[te];if(Se){var j=Se.incompatibleTokens;if(Array.isArray(j)){var Je=H.find(function(V){return j.includes(V.token)||V.token===te});if(Je)throw new RangeError("The format string mustn't contain `".concat(Je.fullToken,"` and `").concat(q,"` at the same time"))}else if(Se.incompatibleTokens==="*"&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(q,"` and any other token at the same time"));H.push({token:te,fullToken:q});var J=Se.run(_,q,P.match,be);if(!J)return{v:new Date(NaN)};oe.push(J.setter),_=J.rest}else{if(te.match(OY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(q==="''"?q="'":te==="'"&&(q=AY(q)),_.indexOf(q)===0)_=_.slice(q.length);else return{v:new Date(NaN)}}};for(R.s();!(U=R.n()).done;){var fe=Ce();if(Ir(fe)==="object")return fe.v}}catch(ee){R.e(ee)}finally{R.f()}if(_.length>0&&MY.test(_))return new Date(NaN);var D=oe.map(function(ee){return ee.priority}).sort(function(ee,q){return q-ee}).filter(function(ee,q,te){return te.indexOf(ee)===q}).map(function(ee){return oe.filter(function(q){return q.priority===ee}).sort(function(q,te){return te.subPriority-q.subPriority})}).map(function(ee){return ee[0]}),$=B(r);if(isNaN($.getTime()))return new Date(NaN);var W=Ib($,Ki($)),se={},X=Kb(D),ce;try{for(X.s();!(ce=X.n()).done;){var ne=ce.value;if(!ne.validate(W,be))return new Date(NaN);var le=ne.set(W,se,be);Array.isArray(le)?(W=le[0],Xd(se,le[1])):W=le}}catch(ee){X.e(ee)}finally{X.f()}return W}function AY(e){return e.match(_Y)[1].replace(kY,"'")}function PY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setDate(n),r}function DY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setHours(n),r}function $Y(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setMinutes(n),r}function FY(e,t){N(2,arguments);var r=B(e),n=De(t),i=r.getFullYear(),a=r.getDate(),o=new Date(0);o.setFullYear(i,n,15),o.setHours(0,0,0,0);var s=Yb(o);return r.setMonth(n,Math.min(a,s)),r}function IY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setSeconds(n),r}function jY(e,t){N(2,arguments);var r=B(e),n=De(t);return r.setMilliseconds(n),r}function LY(e,t){N(2,arguments);var r=B(e),n=De(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function n2(e){N(1,arguments);var t=B(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zl(e){N(1,arguments);var t=B(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function RY(e,t){var r;N(1,arguments);var n=De((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=zY(e),a;if(i.date){var o=WY(i.date,n);a=HY(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),u=0,l;if(i.time&&(u=UY(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=YY(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var Wl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},NY=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,BY=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,VY=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zY(e){var t={},r=e.split(Wl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Wl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Wl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=Wl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function WY(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((n[1]||n[2]).length)}}function HY(e,t){if(t===null)return new Date(NaN);var r=e.match(NY);if(!r)return new Date(NaN);var n=!!r[4],i=So(r[1]),a=So(r[2])-1,o=So(r[3]),s=So(r[4]),u=So(r[5])-1;if(n)return ZY(t,s,u)?GY(t,s,u):new Date(NaN);var l=new Date(0);return!KY(t,a,o)||!XY(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}function So(e){return e?parseInt(e):1}function UY(e){var t=e.match(BY);if(!t)return NaN;var r=Jd(t[1]),n=Jd(t[2]),i=Jd(t[3]);return QY(r,n,i)?r*jl+n*Il+i*1e3:NaN}function Jd(e){return e&&parseFloat(e.replace(",","."))||0}function YY(e){if(e==="Z")return 0;var t=e.match(VY);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return JY(n,i)?r*(n*jl+i*Il):NaN}function GY(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var qY=[31,null,31,30,31,30,31,31,30,31,30,31];function i2(e){return e%400===0||e%4===0&&e%100!==0}function KY(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(qY[t]||(i2(e)?29:28))}function XY(e,t){return t>=1&&t<=(i2(e)?366:365)}function ZY(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function QY(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function JY(e,t){return t>=0&&t<=59}function eG(e,t){var r,n;N(1,arguments);var i=B(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var a=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),o=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=a==="extended"?"-":"",c=a==="extended"?":":"";if(o!=="time"){var f=Te(i.getDate(),2),d=Te(i.getMonth()+1,2),h=Te(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(o!=="date"){var g=i.getTimezoneOffset();if(g!==0){var p=Math.abs(g),y=Te(Math.floor(p/60),2),b=Te(p%60,2),x=g<0?"+":"-";u="".concat(x).concat(y,":").concat(b)}else u="Z";var C=Te(i.getHours(),2),k=Te(i.getMinutes(),2),w=Te(i.getSeconds(),2),_=s===""?"":"T",T=[C,k,w].join(c);s="".concat(s).concat(_).concat(T).concat(u)}return s}function tG(e,t){N(2,arguments);var r=B(e).getTime(),n=B(t.start).getTime(),i=B(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var eh={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(eh,eh.exports);var rG=eh.exports;const nG=vn(rG),iG={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},aG={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class a2{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=iG,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>RY(n),this.toISO=n=>eG(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:r2(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(a=>{const o=a[0];if(o==="p"||o==="P"){const s=nG[o],u=this.locale||Nl;return s(a,u.formatLong,{})}return a}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>Ud(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>qd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,a)=>{switch(a){case"years":return nH(n,this.date(i));case"quarters":return sH(n,this.date(i));case"months":return zd(n,this.date(i));case"weeks":return cH(n,this.date(i));case"days":return $b(n,this.date(i));case"hours":return dH(n,this.date(i));case"minutes":return hH(n,this.date(i));case"seconds":return Fb(n,this.date(i));default:return Ll(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:OU(n,i),this.isSameYear=(n,i)=>PU(n,i),this.isSameMonth=(n,i)=>DU(n,i),this.isSameDay=(n,i)=>AU(n,i),this.isSameHour=(n,i)=>$U(n,i),this.isAfter=(n,i)=>Kd(n,i),this.isAfterYear=(n,i)=>Kd(n,Hd(i)),this.isAfterDay=(n,i)=>Kd(n,Bd(i)),this.isBefore=(n,i)=>Co(n,i),this.isBeforeYear=(n,i)=>Co(n,zl(i)),this.isBeforeDay=(n,i)=>Co(n,Xi(i)),this.isWithinRange=(n,[i,a])=>tG(n,{start:i,end:a}),this.startOfYear=n=>zl(n),this.startOfMonth=n=>n2(n),this.startOfWeek=n=>jn(n,{locale:this.locale}),this.startOfDay=n=>Xi(n),this.endOfYear=n=>Hd(n),this.endOfMonth=n=>Vd(n),this.endOfWeek=n=>Wd(n,{locale:this.locale}),this.endOfDay=n=>Bd(n),this.addYears=(n,i)=>Ab(n,i),this.addMonths=(n,i)=>Fl(n,i),this.addWeeks=(n,i)=>tH(n,i),this.addDays=(n,i)=>Nd(n,i),this.addHours=(n,i)=>eH(n,i),this.addMinutes=(n,i)=>QW(n,i),this.addSeconds=(n,i)=>XW(n,i),this.getYear=n=>MU(n),this.getMonth=n=>wU(n),this.getDate=n=>yU(n),this.getHours=n=>bU(n),this.getMinutes=n=>xU(n),this.getSeconds=n=>CU(n),this.getMilliseconds=n=>SU(n),this.setYear=(n,i)=>LY(n,i),this.setMonth=(n,i)=>FY(n,i),this.setDate=(n,i)=>PY(n,i),this.setHours=(n,i)=>DY(n,i),this.setMinutes=(n,i)=>$Y(n,i),this.setSeconds=(n,i)=>IY(n,i),this.setMilliseconds=(n,i)=>jY(n,i),this.getDaysInMonth=n=>Yb(n),this.getNextMonth=n=>Fl(n,1),this.getPreviousMonth=n=>Fl(n,-1),this.getMonthArray=n=>{const a=[zl(n)];for(;a.length<12;){const o=a[a.length-1];a.push(this.getNextMonth(o))}return a},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return pH({start:jn(n,{locale:this.locale}),end:Wd(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=jn(n2(n),{locale:this.locale}),a=Wd(Vd(n),{locale:this.locale});let o=0,s=i;const u=[];for(;Co(s,a);){const l=Math.floor(o/7);u[l]=u[l]||[],u[l].push(s),s=Nd(s,1),o+=1}return u},this.getWeekNumber=n=>kU(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const a=zl(n),o=Hd(i),s=[];let u=a;for(;Co(u,o);)s.push(u),u=Ab(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=we({},aG,r)}}var oG={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},sG=function(t,r,n){var i,a=oG[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const lG=sG;var uG={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},cG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fG={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dG={date:Ji({formats:uG,defaultWidth:"full"}),time:Ji({formats:cG,defaultWidth:"full"}),dateTime:Ji({formats:fG,defaultWidth:"full"})};const hG=dG;var pG={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},gG=function(t,r,n,i){var a=pG[t];return typeof a=="function"?a(r):a};const mG=gG;var vG={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},yG={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},bG={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},xG={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},wG={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},CG={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},SG=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},EG={ordinalNumber:SG,era:yr({values:vG,defaultWidth:"wide"}),quarter:yr({values:yG,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yr({values:bG,defaultWidth:"wide"}),day:yr({values:xG,defaultWidth:"wide"}),dayPeriod:yr({values:wG,defaultWidth:"wide",formattingValues:CG,defaultFormattingWidth:"wide"})};const TG=EG;var _G=/^(\d+)[ºªo]?/i,kG=/\d+/i,MG={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},OG={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},AG={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},PG={any:[/1/i,/2/i,/3/i,/4/i]},DG={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},$G={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},FG={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},IG={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},jG={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},LG={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},RG={ordinalNumber:Ub({matchPattern:_G,parsePattern:kG,valueCallback:function(t){return parseInt(t,10)}}),era:br({matchPatterns:MG,defaultMatchWidth:"wide",parsePatterns:OG,defaultParseWidth:"any"}),quarter:br({matchPatterns:AG,defaultMatchWidth:"wide",parsePatterns:PG,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:br({matchPatterns:DG,defaultMatchWidth:"wide",parsePatterns:$G,defaultParseWidth:"any"}),day:br({matchPatterns:FG,defaultMatchWidth:"wide",parsePatterns:IG,defaultParseWidth:"any"}),dayPeriod:br({matchPatterns:jG,defaultMatchWidth:"any",parsePatterns:LG,defaultParseWidth:"any"})},NG={code:"pt-BR",formatDistance:lG,formatLong:hG,formatRelative:mG,localize:TG,match:RG,options:{weekStartsOn:0,firstWeekContainsDate:1}};const o2=NG;var s2={exports:{}},l2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u2={exports:{}},BG=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},VG=BG,zG=Array.prototype.concat,WG=Array.prototype.slice,c2=u2.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var a=t[n];VG(a)?r=zG.call(r,WG.call(a)):r.push(a)}return r};c2.wrap=function(e){return function(){return e(c2(arguments))}};var HG=u2.exports,Eo=l2,To=HG,f2=Object.hasOwnProperty,d2=Object.create(null);for(var th in Eo)f2.call(Eo,th)&&(d2[Eo[th]]=th);var Ut=s2.exports={to:{},get:{}};Ut.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=Ut.get.hsl(e),n="hsl";break;case"hwb":r=Ut.get.hwb(e),n="hwb";break;default:r=Ut.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},Ut.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(s.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)o[u]=parseInt(s[u]+s[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)o[u]=parseInt(s[u+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=e.match(a))?s[1]==="transparent"?[0,0,0,0]:f2.call(Eo,s[1])?(o=Eo[s[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=tn(o[u],0,255);return o[3]=tn(o[3],0,1),o},Ut.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,a=tn(parseFloat(r[2]),0,100),o=tn(parseFloat(r[3]),0,100),s=tn(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null},Ut.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,a=tn(parseFloat(r[2]),0,100),o=tn(parseFloat(r[3]),0,100),s=tn(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null},Ut.to.hex=function(){var e=To(arguments);return"#"+Hl(e[0])+Hl(e[1])+Hl(e[2])+(e[3]<1?Hl(Math.round(e[3]*255)):"")},Ut.to.rgb=function(){var e=To(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},Ut.to.rgb.percent=function(){var e=To(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},Ut.to.hsl=function(){var e=To(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Ut.to.hwb=function(){var e=To(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Ut.to.keyword=function(e){return d2[e.slice(0,3)]};function tn(e,t,r){return Math.min(Math.max(t,e),r)}function Hl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var UG=s2.exports;const _o=l2,h2={};for(const e of Object.keys(_o))h2[_o[e]]=e;const ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var p2=ie;for(const e of Object.keys(ie)){if(!("channels"in ie[e]))throw new Error("missing channels property: "+e);if(!("labels"in ie[e]))throw new Error("missing channel labels property: "+e);if(ie[e].labels.length!==ie[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=ie[e];delete ie[e].channels,delete ie[e].labels,Object.defineProperty(ie[e],"channels",{value:t}),Object.defineProperty(ie[e],"labels",{value:r})}ie.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let s,u;a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+a)/2;return a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]},ie.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(o,s,u),c=l-Math.min(o,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,a=0):(a=c/l,t=f(o),r=f(s),n=f(u),o===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,l*100]},ie.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=ie.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]},ie.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function YG(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ie.rgb.keyword=function(e){const t=h2[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(_o)){const a=_o[i],o=YG(e,a);o<r&&(r=o,n=i)}return n},ie.keyword.rgb=function(e){return _o[e]},ie.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]},ie.rgb.lab=function(e){const t=ie.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),s=200*(n-i);return[a,o,s]},ie.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?o=s+(i-s)*6*a:2*a<1?o=i:3*a<2?o=s+(i-s)*(2/3-a)*6:o=s,u[l]=o*255;return u},ie.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,s=n===0?2*i/(a+i):2*r/(n+r);return[t,s*100,o*100]},ie.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}},ie.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const s=(2-r)*i;return a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]},ie.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),s=1-n;a=6*t-o,o&1&&(a=1-a);const u=r+a*(s-r);let l,c,f;switch(o){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},ie.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]},ie.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},ie.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]},ie.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const s=a**3,u=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},ie.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]},ie.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]},ie.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?ie.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o},ie.hsv.ansi16=function(e){return ie.rgb.ansi16(ie.hsv.rgb(e),e[2])},ie.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},ie.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]},ie.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},ie.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},ie.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]},ie.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let s,u;return o<1?s=a/(1-o):s=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,s*100]},ie.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},ie.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},ie.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},ie.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},ie.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},ie.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},ie.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]},ie.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ie.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ie.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ie.gray.hsl=function(e){return[0,0,e[0]]},ie.gray.hsv=ie.gray.hsl,ie.gray.hwb=function(e){return[0,100,e[0]]},ie.gray.cmyk=function(e){return[0,0,0,e[0]]},ie.gray.lab=function(e){return[e[0],0,0]},ie.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},ie.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Ul=p2;function GG(){const e={},t=Object.keys(Ul);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function qG(e){const t=GG(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(Ul[n]);for(let a=i.length,o=0;o<a;o++){const s=i[o],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function KG(e,t){return function(r){return t(e(r))}}function XG(e,t){const r=[t[e].parent,e];let n=Ul[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=KG(Ul[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var ZG=function(e){const t=qG(e),r={},n=Object.keys(t);for(let i=n.length,a=0;a<i;a++){const o=n[a];t[o].parent!==null&&(r[o]=XG(o,t))}return r};const rh=p2,QG=ZG,ea={},JG=Object.keys(rh);function eq(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function tq(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o<a;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}JG.forEach(e=>{ea[e]={},Object.defineProperty(ea[e],"channels",{value:rh[e].channels}),Object.defineProperty(ea[e],"labels",{value:rh[e].labels});const t=QG(e);Object.keys(t).forEach(n=>{const i=t[n];ea[e][n]=tq(i),ea[e][n].raw=eq(i)})});var rq=ea;const ta=UG,Yt=rq,g2=["keyword","gray","hex"],nh={};for(const e of Object.keys(Yt))nh[[...Yt[e].labels].sort().join("")]=e;const Yl={};function Tt(e,t){if(!(this instanceof Tt))return new Tt(e,t);if(t&&t in g2&&(t=null),t&&!(t in Yt))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Tt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=ta.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=Yt[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=Yt[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=ih(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in nh))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=nh[a];const{labels:o}=Yt[this.model],s=[];for(r=0;r<o.length;r++)s.push(e[o[r]]);this.color=ih(s)}if(Yl[this.model])for(n=Yt[this.model].channels,r=0;r<n;r++){const i=Yl[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Tt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ta.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return ta.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return ta.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yt[this.model],{labels:r}=Yt[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Tt([...this.color.map(iq(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new Tt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:pt("rgb",0,Et(255)),green:pt("rgb",1,Et(255)),blue:pt("rgb",2,Et(255)),hue:pt(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:pt("hsl",1,Et(100)),lightness:pt("hsl",2,Et(100)),saturationv:pt("hsv",1,Et(100)),value:pt("hsv",2,Et(100)),chroma:pt("hcg",1,Et(100)),gray:pt("hcg",2,Et(100)),white:pt("hwb",1,Et(100)),wblack:pt("hwb",2,Et(100)),cyan:pt("cmyk",0,Et(100)),magenta:pt("cmyk",1,Et(100)),yellow:pt("cmyk",2,Et(100)),black:pt("cmyk",3,Et(100)),x:pt("xyz",0,Et(95.047)),y:pt("xyz",1,Et(100)),z:pt("xyz",2,Et(108.833)),l:pt("lab",0,Et(100)),a:pt("lab",1),b:pt("lab",2),keyword(e){return e!==void 0?new Tt(e):Yt[this.model].keyword(this.color)},hex(e){return e!==void 0?new Tt(e):ta.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Tt(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),ta.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Tt.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=r.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return Tt.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(Yt)){if(g2.includes(e))continue;const{channels:t}=Yt[e];Tt.prototype[e]=function(...r){return this.model===e?new Tt(this):r.length>0?new Tt(r,e):new Tt([...aq(Yt[this.model][e].raw(this.color)),this.valpha],e)},Tt[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=ih(r,t)),new Tt(n,e)}}function nq(e,t){return Number(e.toFixed(t))}function iq(e){return function(t){return nq(t,e)}}function pt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(Yl[n]||(Yl[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function Et(e){return function(t){return Math.max(0,Math.min(e,t))}}function aq(e){return Array.isArray(e)?e:[e]}function ih(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var oq=Tt;const sq=vn(oq),Ke={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},ah={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},lq={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},uq={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},cq={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},fq={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:Ke[800]},ra={common:{black:"#000",white:"#fff"},primary:ah,secondary:lq,info:uq,success:cq,warning:fq,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:Ke,divider:L(Ke[500],.24),action:{hover:L(Ke[500],.08),selected:L(Ke[500],.16),disabled:L(Ke[500],.8),disabledBackground:L(Ke[500],.24),focus:L(Ke[500],.24),hoverOpacity:.08,disabledOpacity:.48}},rn=e=>{const t={...ra,mode:"light",text:{primary:Ke[800],secondary:Ke[600],disabled:Ke[500]},background:{paper:"#fff",default:Ke[100],neutral:Ke[200]},action:{...ra.action,active:Ke[600]}},r={...ra,mode:"dark",text:{primary:"#fff",secondary:Ke[500],disabled:Ke[600]},background:{paper:Ke[800],default:Ke[900],neutral:L(Ke[500],.16)},action:{...ra.action,active:Ke[500]}};return e==="light"?t:r},dq=e=>({lighter:Wc(e,.815),light:Wc(e,.225),main:e,dark:zc(e,.15),darker:zc(e,.35)}),hq=e=>sq(e).luminosity()<=.55?"#fff":Ke[900],m2=e=>{const t=dq(e);return{...ra,primary:{...t,contrastText:hq(t.main)},mode:"light",text:{primary:Ke[800],secondary:Ke[600],disabled:Ke[500]},background:{paper:"#fff",default:Ke[100],neutral:Ke[200]},action:{active:Ke[600],...ra.action}}},v2=rn("light"),pq=v2.grey[500],gq=v2.common.black;function y2(e,t){const r=L(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${L(t||rn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${L(rn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${L(rn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${L(rn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${L(rn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${L(rn("light").error.main,.24)}`,card:`0 0 2px 0 ${L(e,.2)}, 0 12px 24px -4px ${L(e,.12)}`,dialog:`-40px 40px 80px -8px ${L(e,.24)}`,dropdown:`0 0 2px 0 ${L(e,.24)}, -20px 20px 40px -4px ${L(e,.24)}`}}const b2=(e,t)=>y2(e==="light"?pq:gq,t),x2=()=>v.jsx(E.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),mq=["primary","secondary","info","success","warning","error"];function vq(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",a=n.color==="inherit",o=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(o||s)&&{...(i||a)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||a)&&{border:`solid 1px ${L(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{backgroundColor:L(e.palette.grey[500],.08),"&:hover":{backgroundColor:L(e.palette.grey[500],.24)}}}},h=mq.map(y=>({...n.color===y&&{...(o||s)&&{boxShadow:e.customShadows[y],"&:hover":{backgroundColor:e.palette[y].dark}},...(u||l)&&{color:e.palette[y].main,border:`solid 1px ${L(e.palette[y].main,.48)}`,"&:hover":{backgroundColor:L(e.palette[y].main,.08),border:`solid 1px ${e.palette[y].main}`}},...(c||f)&&{color:e.palette[y][t?"dark":"light"],backgroundColor:L(e.palette[y].main,.16),"&:hover":{backgroundColor:L(e.palette[y].main,.32)}}}})),g={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,g,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function yq(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function bq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function w2(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function xq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function wq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function Cq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function Sq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function Eq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function Tq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function _q(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function kq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function Mq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function Oq(e){return v.jsx(E.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:v.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function Aq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function Pq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function Dq(e){return v.jsx(E.SvgIcon,{...e,children:v.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const $q=["primary","secondary","info","success","warning","error"];function Fq(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",a=n.variant==="filled",o=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:L(e.palette.grey[500],.48)},...o&&{border:`solid 1px ${L(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:L(e.palette.grey[500],.16),"&:hover":{backgroundColor:L(e.palette.grey[500],.32)}}}};return[...$q.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...a&&{"& .MuiChip-deleteIcon":{color:L(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:L(e.palette[c].main,.16),"&:hover":{backgroundColor:L(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:L(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:v.jsx(bq,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function Iq(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,textTransform:"none","&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function jq(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function Lq(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Rq(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function Nq(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const Bq=["info","success","warning","error"];function Vq(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",a=n.variant==="filled",o=n.variant==="outlined";return[...Bq.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...a&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...o&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:v.jsx(xq,{}),success:v.jsx(Cq,{}),warning:v.jsx(wq,{}),error:v.jsx(Sq,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function zq(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function Wq(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function Hq(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:L(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:L(e.palette.grey[500],.08),"&:hover":{backgroundColor:L(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:L(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:L(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function Uq(e){return{MuiRadio:{defaultProps:{icon:v.jsx(kq,{}),checkedIcon:v.jsx(Mq,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function Yq(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${L(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function Gq(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function qq(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:L(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function Kq(e){return{MuiRating:{defaultProps:{emptyIcon:v.jsx(w2,{}),icon:v.jsx(w2,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:L(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function Xq(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const Zq=["primary","secondary","info","success","warning","error"];function Qq(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",a=n.variant==="contained",o=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={textTransform:"none",...i&&{...a&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...o&&{borderColor:L(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:L(e.palette.grey[500],.08),"&:hover":{backgroundColor:L(e.palette.grey[500],.24)}}}},d=Zq.map(p=>({...n.color===p&&{...a&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:L(e.palette[p].main,.16),"&:hover":{backgroundColor:L(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},g={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,g]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function Jq(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:L(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function eK(e){return{MuiSelect:{defaultProps:{IconComponent:Oq}}}}function tK(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function rK(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function nK(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function iK(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function aK(e){return{MuiDataGrid:{styleOverrides:{root:{border:0,padding:8,"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},main:{backgroundColor:"#F5F5F5",borderRadius:8,outline:"8px solid #F5F5F5"},columnHeader:{fontSize:13,fontWeight:600,color:e.palette.grey[600],padding:"0 16px",borderColor:"transparent"},row:{borderRadius:8,backgroundColor:"#FFFFFF",color:e.palette.grey[800]},rowReorderCell:{color:e.palette.grey[400]},cell:{borderBottom:0,padding:"0 16px"},columnSeparator:{color:e.palette.divider,"&:hover":{color:e.palette.primary.main}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}},overlayWrapper:{height:"100% !important"},overlayWrapperInner:{height:"100% !important"}}}}}function oK(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function sK(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:L(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const lK=["primary","secondary","info","success","warning","error"];function uK(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...lK.map(o=>({...r.color===o&&{backgroundColor:E.alpha(e.palette[o].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function cK(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function fK(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:v.jsx(Aq,{sx:{width:20,height:20}}),defaultExpandIcon:v.jsx(Pq,{sx:{width:20,height:20}}),defaultEndIcon:v.jsx(Dq,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function dK(e){return{MuiCheckbox:{defaultProps:{icon:v.jsx(Eq,{}),checkedIcon:v.jsx(Tq,{}),indeterminateIcon:v.jsx(_q,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function hK(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function pK(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const gK=["primary","secondary","info","success","warning","error"];function mK(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",a=n.variant==="soft",o={"& .MuiPaginationItem-root":{...i&&{borderColor:L(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...gK.map(u=>({...n.color===u&&{...a&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:L(e.palette[u].main,.16),"&:hover":{backgroundColor:L(e.palette[u].main,.32)}}}}}})),o]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function vK(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const yK=["primary","secondary","info","success","warning","error"];function bK(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",a=r.variant==="outlined",o=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!a&&{borderStyle:"solid",...n&&{borderColor:L(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=yK.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!a&&{...r.color===h&&{...i&&{borderColor:L(e.palette[h].dark,.48)},...o&&{borderColor:L(e.palette[h].main,.48)},...s&&{borderColor:L(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function xK(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:L(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const wK=["primary","secondary","info","success","warning","error"];function CK(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},a=wK.map(s=>({...r.color===s&&{"&:hover":{borderColor:L(e.palette[s].main,.48),backgroundColor:L(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),o={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...a,i,o]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${L(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function SK(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function EK(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function C2(e){return Object.assign(vq(e),Iq(e),Fq(e),yq(e),jq(e),Lq(),Hq(e),Uq(e),zq(),Rq(e),Nq(e),Wq(),Vq(e),Jq(e),eK(),Qq(e),Kq(e),Gq(e),qq(e),Xq(e),Yq(e),iK(e),rK(e),nK(e),tK(),dK(e),aK(e),oK(e),cK(e),fK(e),sK(e),uK(e),hK(e),pK(e),mK(e),bK(e),vK(e),xK(e),SK(e),CK(e),EK())}const S2=rn("light"),TK=S2.grey[500],_K=S2.common.black;function E2(e){const t=L(e,.2),r=L(e,.14),n=L(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const T2=e=>E2(e==="light"?TK:_K);function Mt(e){return`${e/16}rem`}function na({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Mt(e)},"@media (min-width:900px)":{fontSize:Mt(t)},"@media (min-width:1200px)":{fontSize:Mt(r)}}}const _2={fontFamily:"inherit",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Mt(40),...na({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Mt(32),...na({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Mt(24),...na({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Mt(20),...na({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Mt(18),...na({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Mt(17),...na({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Mt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Mt(14)},body1:{lineHeight:1.5,fontSize:Mt(16)},body2:{lineHeight:22/14,fontSize:Mt(14)},caption:{lineHeight:1.5,fontSize:Mt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Mt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Mt(14),textTransform:"capitalize"}},k2=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=m.useMemo(()=>({palette:m2(t),typography:_2,shape:{borderRadius:8},direction:r,shadows:T2(n),customShadows:b2(n,t)}),[t,r,n]),a=Uc(i);return a.components=C2(a),v.jsx(Zg,{injectFirst:!0,children:v.jsxs(Yc,{theme:a,children:[v.jsx(E.CssBaseline,{}),v.jsx(x2,{}),e]})})},Wee="",kK=({themeColor:e,children:t})=>v.jsx(Yn.LocalizationProvider,{dateAdapter:a2,adapterLocale:o2,children:v.jsx(w1,{children:v.jsx(k2,{color:e,children:v.jsx(Em,{children:t})})})}),MK=({children:e,color:t,direction:r="ltr",themeMode:n="light",components:i})=>{const a=m.useMemo(()=>({palette:m2(t),typography:_2,shape:{borderRadius:8},direction:r,shadows:T2(n),customShadows:b2(n,t),components:i}),[t,r,n,i]),o=Uc(a);return o.components=C2(o),v.jsxs(Yc,{theme:o,children:[v.jsx(E.CssBaseline,{}),v.jsx(x2,{}),e]})},OK=({themeColor:e,children:t})=>v.jsx(Yn.LocalizationProvider,{dateAdapter:a2,adapterLocale:o2,children:v.jsx(MK,{color:e,children:v.jsx(Em,{children:t})})}),AK=({modalTitle:e="Tem certeza que deseja excluir?",message:t="Essa ação não poderá ser desfeita.",cancelButtonText:r="Cancelar",confirmButtonText:n="Sim, excluir registro",onClose:i,onConfirm:a,confirming:o,...s})=>v.jsxs(E.Dialog,{fullWidth:!0,maxWidth:"xs",...s,onClose:i,children:[v.jsx(E.DialogTitle,{children:e}),v.jsx(E.DialogContent,{children:t}),v.jsxs(E.DialogActions,{children:[v.jsx(E.Button,{variant:"outlined",color:"inherit",onClick:i,size:"large",children:r}),v.jsx(C5.LoadingButton,{variant:"contained",onClick:a,size:"large",loading:o,children:n})]})]}),ia=e=>e&&e.charAt(0).toUpperCase(),PK=e=>["A","N","H","L","Q"].includes(ia(e))?"primary":["F","G","T","I","J"].includes(ia(e))?"info":["K","D","Y","B","O"].includes(ia(e))?"success":["P","E","R","S","U"].includes(ia(e))?"warning":["V","W","X","M","Z"].includes(ia(e))?"error":"default",M2=m.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...a},o)=>{const s=ia(t),u=PK(t),l=e||u,c={...i},f=l==="default"?v.jsxs(E.Avatar,{ref:o,sx:i,...a,children:[t&&s,n]}):v.jsxs(E.Avatar,{ref:o,sx:d=>{var h,g;return{color:(h=d.palette[l])==null?void 0:h.contrastText,backgroundColor:(g=d.palette[l])==null?void 0:g.main,fontWeight:d.typography.fontWeightMedium,...c}},...a,children:[t&&s,n]});return r?v.jsx(E.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});M2.displayName="CustomAvatar";const nn={tiny:24,small:32,medium:40,large:56},O2=m.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...a},o)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return v.jsx(E.AvatarGroup,{ref:o,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:nn.large,height:nn.large,"&:first-of-type":{fontSize:16}},...l&&{width:nn.medium,height:nn.medium},...u&&{width:nn.small,height:nn.small},...s&&{width:nn.tiny,height:nn.tiny}},...t&&{...f},...i},...a,children:n})});O2.displayName="CustomAvatarGroup";const Gl=({sx:e})=>v.jsx(E.LinearProgress,{sx:{position:"absolute",top:0,left:0,width:1,zIndex:9999,...e}}),A2=E.styled(E.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),DK=()=>{var c,f;const e=Br.useGridApiContext(),{rowHeight:t,paginationModel:r,initialState:n}=Br.useGridRootProps(),i=(r==null?void 0:r.pageSize)||((f=(c=n==null?void 0:n.pagination)==null?void 0:c.paginationModel)==null?void 0:f.pageSize)||10,a=Br.gridColumnsTotalWidthSelector(e),o=Br.gridColumnPositionsSelector(e),s=m.useMemo(()=>o.filter(d=>d<=a).length,[a,o]),u=e.current.getVisibleColumns().slice(0,s),l=m.useMemo(()=>{const d=[];for(let h=0;h<i;h+=1){for(const g of u)d.push(v.jsx(A2,{sx:{justifyContent:g.align},children:v.jsx(E.Skeleton,{width:"100%"})},`column-${h}-${g.field}`));d.push(v.jsx(A2,{},`fill-${h}`))}return d},[i,u]);return v.jsx(E.Stack,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${u.map(({computedWidth:d})=>`${d}px`).join(" ")} 1fr`,gridAutoRows:t,backgroundColor:"grey.0",borderRadius:1,overflow:"hidden"},children:l})},$K=()=>{const t=hi().palette.primary.main;return v.jsxs(v.Fragment,{children:[v.jsx("defs",{children:v.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[v.jsx("stop",{offset:"0%",stopColor:t}),v.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),v.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},FK=m.memo($K),IK=({...e})=>{const t=hi(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return v.jsx(E.Box,{...e,children:v.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx(FK,{}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[v.jsx("stop",{offset:"0%",stopOpacity:"0"}),v.jsx("stop",{offset:"100%"})]})}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),v.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),v.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),v.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),v.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),v.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),v.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),v.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),v.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),v.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),v.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),v.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),v.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),v.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),v.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),v.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),v.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),v.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),v.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),v.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),v.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),v.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),v.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),v.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},jK=m.memo(IK),LK=()=>v.jsxs("svg",{width:"480",height:"360",viewBox:"0 0 480 360",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsxs("g",{id:"illustrations/illustration_empty_content",children:[v.jsxs("g",{id:"Illustration/Background",children:[v.jsx("path",{id:"BG",opacity:"0.16",fillRule:"evenodd",clipRule:"evenodd",d:"M0 198.781C0 240.238 14.9454 278.016 39.539 306.566C67.7534 339.331 108.667 359.931 154.273 360C174.204 360.029 193.262 356.113 210.768 348.964C219.819 345.265 229.95 345.69 238.716 350.071C248.999 355.204 260.514 358.082 272.673 358.082C277.696 358.082 282.615 357.587 287.373 356.648C300.954 353.978 313.313 347.658 323.462 338.708C329.841 333.081 338.01 330.252 346.36 330.262H346.502C374.091 330.262 399.717 321.53 420.994 306.566C440.015 293.206 455.548 274.87 465.898 253.341C474.92 234.581 480 213.388 480 190.958C480 114.027 420.226 51.6534 346.502 51.6534C338.986 51.6534 331.622 52.3158 324.439 53.5518C305.418 21.4201 271.355 0 232.498 0C216.093 0 200.54 3.81769 186.619 10.6612C173.379 17.1483 161.608 26.3663 151.978 37.6C119.281 38.144 89.048 49.2899 64.303 67.8914C25.3514 97.1552 0 144.882 0 198.781Z",fill:"url(#paint0_linear_0_9560)"}),v.jsxs("g",{id:"Vector",opacity:"0.2",children:[v.jsx("path",{d:"M271.929 75.6377C269.408 75.6377 266.889 74.6804 264.971 72.7652C261.134 68.9346 261.134 62.7023 264.971 58.8724C268.806 55.0432 275.05 55.0419 278.886 58.8724C282.723 62.703 282.723 68.9353 278.886 72.7652C276.968 74.6804 274.448 75.6377 271.929 75.6377ZM271.929 62.7714C271.147 62.7714 270.364 63.0681 269.769 63.663C268.578 64.8513 268.578 66.7856 269.769 67.9746C270.96 69.1629 272.896 69.1636 274.087 67.9746C275.278 66.7862 275.278 64.852 274.087 63.663C273.492 63.0688 272.71 62.7714 271.929 62.7714Z",fill:"#919EAB"}),v.jsx("path",{d:"M194.574 305C192.054 305 189.534 304.042 187.616 302.127C183.779 298.297 183.779 292.065 187.616 288.235C191.451 284.405 197.696 284.405 201.532 288.235C205.368 292.065 205.368 298.298 201.532 302.127C199.614 304.043 197.093 305 194.574 305ZM194.574 292.134C193.792 292.134 193.01 292.43 192.414 293.025C191.223 294.214 191.223 296.148 192.414 297.337C193.605 298.526 195.541 298.526 196.733 297.337C197.923 296.148 197.923 294.214 196.733 293.025C196.138 292.431 195.355 292.134 194.574 292.134Z",fill:"#919EAB"})]}),v.jsxs("g",{id:"Vector_2",opacity:"0.2",children:[v.jsx("path",{d:"M366.607 258.732C365.739 258.732 364.87 258.401 364.208 257.74L360.16 253.699L356.112 257.74C354.788 259.062 352.639 259.062 351.315 257.74C349.989 256.417 349.989 254.272 351.315 252.949L357.761 246.513C359.085 245.19 361.235 245.19 362.559 246.513L369.006 252.949C370.331 254.272 370.331 256.417 369.006 257.74C368.344 258.4 367.475 258.732 366.607 258.732Z",fill:"#919EAB"}),v.jsx("path",{d:"M127.287 245.825C126.419 245.825 125.549 245.495 124.888 244.833L120.84 240.793L116.792 244.833C115.468 246.156 113.318 246.156 111.994 244.833C110.669 243.51 110.669 241.365 111.994 240.043L118.441 233.607C119.765 232.284 121.915 232.284 123.239 233.607L129.685 240.043C131.011 241.366 131.011 243.511 129.685 244.833C129.023 245.494 128.154 245.825 127.287 245.825Z",fill:"#919EAB"})]})]}),v.jsx("path",{id:"Subtract",opacity:"0.16",fillRule:"evenodd",clipRule:"evenodd",d:"M172.018 173.478H195.091C198.279 173.478 200.859 170.902 200.859 167.719C200.859 164.536 198.279 161.96 195.091 161.96H172.018C168.829 161.96 166.25 164.536 166.25 167.719C166.25 170.902 168.829 173.478 172.018 173.478ZM310.455 161.96H252.773C249.584 161.96 247.004 164.536 247.004 167.719V236.824C247.004 240.007 249.584 242.582 252.773 242.582H310.455C313.643 242.582 316.223 240.007 316.223 236.824V167.719C316.223 164.536 313.643 161.96 310.455 161.96ZM166.25 190.754C166.25 187.571 168.829 184.995 172.018 184.995H229.7C232.888 184.995 235.468 187.571 235.468 190.754C235.468 193.937 232.888 196.513 229.7 196.513H172.018C168.829 196.513 166.25 193.937 166.25 190.754ZM172.018 208.03C168.829 208.03 166.25 210.606 166.25 213.789C166.25 216.972 168.829 219.548 172.018 219.548H229.7C232.888 219.548 235.468 216.972 235.468 213.789C235.468 210.606 232.888 208.03 229.7 208.03H172.018ZM166.25 236.824C166.25 233.641 168.829 231.065 172.018 231.065H229.7C232.888 231.065 235.468 233.641 235.468 236.824C235.468 240.007 232.888 242.582 229.7 242.582H172.018C168.829 242.582 166.25 240.007 166.25 236.824Z",fill:"#919EAB"}),v.jsx("path",{id:"Subtract_2",fillRule:"evenodd",clipRule:"evenodd",d:"M142.023 145.836V247.185C142.023 254.821 148.213 261.01 155.848 261.01H326.624C334.259 261.01 340.449 254.821 340.449 247.185V145.836H142.023ZM195.09 173.478H172.017C168.829 173.478 166.249 170.902 166.249 167.719C166.249 164.536 168.829 161.961 172.017 161.961H195.09C198.278 161.961 200.858 164.536 200.858 167.719C200.858 170.902 198.278 173.478 195.09 173.478ZM252.772 161.961H310.454C313.642 161.961 316.222 164.536 316.222 167.719V236.824C316.222 240.007 313.642 242.583 310.454 242.583H252.772C249.584 242.583 247.004 240.007 247.004 236.824V167.719C247.004 164.536 249.584 161.961 252.772 161.961ZM172.017 184.995C168.829 184.995 166.249 187.571 166.249 190.754C166.249 193.937 168.829 196.513 172.017 196.513H229.699C232.888 196.513 235.467 193.937 235.467 190.754C235.467 187.571 232.888 184.995 229.699 184.995H172.017ZM166.249 213.789C166.249 210.606 168.829 208.03 172.017 208.03H229.699C232.888 208.03 235.467 210.606 235.467 213.789C235.467 216.972 232.888 219.548 229.699 219.548H172.017C168.829 219.548 166.249 216.972 166.249 213.789ZM172.017 231.065C168.829 231.065 166.249 233.641 166.249 236.824C166.249 240.007 168.829 242.583 172.017 242.583H229.699C232.888 242.583 235.467 240.007 235.467 236.824C235.467 233.641 232.888 231.065 229.699 231.065H172.017Z",fill:"#919EAB",fillOpacity:"0.48"}),v.jsx("path",{id:"Intersect",opacity:"0.16",fillRule:"evenodd",clipRule:"evenodd",d:"M340.45 113.591C340.45 105.956 334.26 99.7661 326.625 99.7661H155.848C148.213 99.7661 142.023 105.956 142.023 113.591V145.836H340.45V113.591ZM172.018 117.042C168.788 117.042 166.25 119.576 166.25 122.801C166.25 126.025 168.788 128.56 172.018 128.56C175.249 128.56 177.786 126.025 177.786 122.801C177.786 119.576 175.249 117.042 172.018 117.042ZM195.091 117.042C191.86 117.042 189.323 119.576 189.323 122.801C189.323 126.025 191.86 128.56 195.091 128.56C198.321 128.56 200.859 126.025 200.859 122.801C200.859 119.576 198.321 117.042 195.091 117.042ZM218.164 117.042C214.933 117.042 212.395 119.576 212.395 122.801C212.395 126.025 214.933 128.56 218.164 128.56C221.394 128.56 223.932 126.025 223.932 122.801C223.932 119.576 221.394 117.042 218.164 117.042Z",fill:"#919EAB"}),v.jsx("path",{id:"Intersect_2",opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M172.018 117.042C168.787 117.042 166.25 119.576 166.25 122.801C166.25 126.026 168.787 128.56 172.018 128.56C175.248 128.56 177.786 126.026 177.786 122.801C177.786 119.576 175.248 117.042 172.018 117.042ZM195.091 117.042C191.86 117.042 189.322 119.576 189.322 122.801C189.322 126.026 191.86 128.56 195.091 128.56C198.321 128.56 200.859 126.026 200.859 122.801C200.859 119.576 198.321 117.042 195.091 117.042ZM218.163 117.042C214.933 117.042 212.395 119.576 212.395 122.801C212.395 126.026 214.933 128.56 218.163 128.56C221.394 128.56 223.932 126.026 223.932 122.801C223.932 119.576 221.394 117.042 218.163 117.042Z",fill:"#919EAB"})]}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"paint0_linear_0_9560",x1:"328.81",y1:"424.032",x2:"505.393",y2:"26.0479",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{stopColor:"#919EAB"}),v.jsx("stop",{offset:"1",stopColor:"#919EAB",stopOpacity:"0.01"})]})})]}),P2=({text:e,sx:t})=>v.jsxs(E.Stack,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"grey.0",padding:2,borderRadius:2,"& svg":{width:"100%"},...t},children:[v.jsx(LK,{}),v.jsx(E.Typography,{variant:"body1",sx:{color:"text.secondary"},children:e})]}),D2=()=>{const{localeText:{noRowsLabel:e}}=Br.useGridRootProps();return v.jsx(P2,{text:e,sx:{"& svg":{height:200}}})},RK=({columns:e,rows:t,loading:r,fetching:n,localeText:i,paginationModel:a={page:0,pageSize:10},rowHeight:o=72,sx:s,...u})=>{const l=[{...Br.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],c=m.useCallback(f=>({bottom:f.isLastVisible?0:8}),[]);return v.jsxs(E.Stack,{position:"relative",borderRadius:2,overflow:"hidden",children:[n&&v.jsx(Gl,{sx:{zIndex:1}}),v.jsx(Br.DataGridPremium,{columns:l,rows:t,loading:r,autoHeight:!0,rowHeight:o,getRowSpacing:c,slots:{loadingOverlay:DK,noRowsOverlay:D2,noResultsOverlay:D2},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:f=>`Agrupar por ${f}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:f=>`Parar de agrupar por ${f}`,unpin:"Desafixar",footerRowSelected:f=>`${f} ${f===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"Itens por página",labelDisplayedRows:f=>`${f.from}-${f.to} de ${f.count}`},noRowsLabel:"Nenhum registro para ser apresentado",...i},sx:{...s,"& .MuiDataGrid-virtualScroller, & .MuiDataGrid-virtualScrollerContent":{minHeight:r?o*a.pageSize:o*t.length,...t.length===0&&{height:400}}},...u})]})},NK=({children:e,waitBeforeShow:t=500})=>{const[r,n]=m.useState(!1);return m.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var BK=!!(typeof window<"u"&&window.document&&window.document.createElement),VK=BK;const $2=vn(VK);var aa=function(){return aa=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},aa.apply(this,arguments)},oa=null,F2=null;$2&&window.addEventListener("resize",function(){F2!==window.devicePixelRatio&&(F2=window.devicePixelRatio,oa=null)});function I2(){if(oa===null){if(typeof document>"u")return oa=0,oa;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),oa=r}return oa}function j2(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function L2(e){return!e||!e.ownerDocument?document:e.ownerDocument}var R2=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var a=i.name.match(/data-simplebar-(.+)/);if(a){var o=a[1].replace(/\W+(.)/g,function(s,u){return u.toUpperCase()});switch(i.value){case"true":n[o]=!0;break;case"false":n[o]=!1;break;case void 0:n[o]=!0;break;default:n[o]=i.value}}return n},t);return r};function N2(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function B2(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function V2(e){return".".concat(e.split(" ").join("."))}var zK=Object.freeze({__proto__:null,getElementWindow:j2,getElementDocument:L2,getOptions:R2,addClasses:N2,removeClasses:B2,classNamesToQuery:V2}),an=j2,oh=L2,WK=R2,on=N2,sn=B2,Lt=V2,ql=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=an(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,on(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){sn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(on(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){sn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,o;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(o=n.isWithinBounds(n.axis.y.track.rect)),(a||o)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),o&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var a,o,s,u,l,c,f,d,h,g,p;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,b=n.axis[n.draggedAxis].track,x=(o=(a=b.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,C=n.axis[n.draggedAxis].scrollbar,k=(u=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,w=parseInt((c=(l=n.elStyles)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?y=i.pageY:y=i.pageX;var _=y-((d=(f=b.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;_=n.draggedAxis==="x"&&n.isRtl?((g=(h=b.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:0)-C.size-_:_;var T=_/(x-C.size),O=T*(k-w);n.draggedAxis==="x"&&n.isRtl&&(O=!((p=e.getRtlHelpers())===null||p===void 0)&&p.isScrollingToNegative?-O:O),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=O}},this.onEndDrag=function(i){var a=oh(n.el),o=an(n.el);i.preventDefault(),i.stopPropagation(),sn(n.el,n.classNames.dragging),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=o.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=aa(aa({},e.defaultOptions),r),this.classNames=aa(aa({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=jy(this._onMouseMove,64),this.onWindowResize=go(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=go(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=go(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var o=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==a.left,isScrollingToNegative:a.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:I2()}catch{return I2()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=oh(t),i=an(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){$2&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Lt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Lt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Lt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Lt(this.classNames.offset)),this.maskEl=this.el.querySelector(Lt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Lt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Lt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Lt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Lt(this.classNames.track)).concat(Lt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Lt(this.classNames.track)).concat(Lt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Lt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Lt(this.classNames.scrollbar)))||null,this.options.autoHide||(on(this.axis.x.scrollbar.el,this.classNames.visible),on(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=an(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=an(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||l,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&l>r,this.axis.y.isOverflowing=u>c,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>a-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>c-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,o=a/i,s;return s=Math.max(~~(o*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var c=l/(o-u),f=~~((s-a.size)*c);f=t==="x"&&this.isRtl?-f+(s-a.size):f,a.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(on(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(sn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),on(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?on(r.scrollbar.el,this.classNames.hover):sn(r.scrollbar.el,this.classNames.hover)):(sn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),sn(this.axis[t].track.el,this.classNames.hover),sn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var i=oh(this.el),a=an(this.el),o=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=o.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,on(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,a,o,s;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=an(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var c=this.axis[r].scrollbar,f=(a=(i=c.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,d=parseInt((s=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),h=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],g=r==="y"?this.mouseY-f:this.mouseX-f,p=g<0?-1:1,y=p===-1?h-d:h+d,b=40,x=function(){n.contentWrapperEl&&(p===-1?h>y&&(h-=b,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(x)):h<y&&(h+=b,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(x)))};x()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=an(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=WK,e.helpers=zK,e}(),Gt=function(){return Gt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Gt.apply(this,arguments)};function HK(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var z2=pe.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,a=HK(e,["children","scrollableNodeProps"]),o=pe.useRef(),s=pe.useRef(),u=pe.useRef(),l={},c={};Object.keys(a).forEach(function(h){Object.prototype.hasOwnProperty.call(ql.defaultOptions,h)?l[h]=a[h]:c[h]=a[h]});var f=Gt(Gt({},ql.defaultOptions.classNames),l.classNames),d=Gt(Gt({},i),{className:"".concat(f.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":l.ariaLabel||ql.defaultOptions.ariaLabel});return pe.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,o.current&&(h=new ql(o.current,Gt(Gt(Gt({},l),s.current&&{scrollableNode:s.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),pe.createElement("div",Gt({"data-simplebar":"init",ref:o},c),pe.createElement("div",{className:f.wrapper},pe.createElement("div",{className:f.heightAutoObserverWrapperEl},pe.createElement("div",{className:f.heightAutoObserverEl})),pe.createElement("div",{className:f.mask},pe.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:Gt(Gt({},d),{ref:s}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):pe.createElement("div",Gt({},d),pe.createElement("div",{className:f.contentEl},r)))),pe.createElement("div",{className:f.placeholder})),pe.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},pe.createElement("div",{className:f.scrollbar})),pe.createElement("div",{className:"".concat(f.track," simplebar-vertical")},pe.createElement("div",{className:f.scrollbar})))});z2.displayName="SimpleBar";const UK=Xr("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),YK=Xr(z2)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:L(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),GK=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?v.jsx(E.Box,{sx:{overflowX:"auto",...t},...r,children:e}):v.jsx(UK,{children:v.jsx(YK,{clickOnTrack:!1,sx:t,...r,children:e})})},W2=m.memo(GK),qK=E.styled(E.Stack)(({theme:e})=>({flexDirection:"row",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[300]}`,padding:"22px 20px"})),KK=E.styled(E.Stack)({padding:32}),XK=({headerTitle:e,onClose:t,children:r,contentProps:n,maxWidth:i=684,headerInfo:a,...o})=>v.jsxs(E.Drawer,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:i}},onClose:t,...o,children:[v.jsxs(qK,{children:[v.jsxs(E.Stack,{flexDirection:"row",alignItems:"center",children:[v.jsx(E.IconButton,{onClick:t,children:v.jsx(nt,{icon:"ic:round-close"})}),v.jsx(E.Typography,{variant:"subtitle1",children:e})]}),a]}),v.jsx(W2,{children:v.jsx(KK,{...n,children:r})})]});/*! *****************************************************************************
137
137
  Copyright (c) Microsoft Corporation.
138
138
 
139
139
  Permission to use, copy, modify, and/or distribute this software for any
@@ -146,7 +146,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
146
146
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
147
147
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
148
148
  PERFORMANCE OF THIS SOFTWARE.
149
- ***************************************************************************** */var lh=function(e,t){return lh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},lh(e,t)};function ZK(e,t){lh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ot=function(){return Ot=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ot.apply(this,arguments)},H2=!1,Ln,uh,ch,Kl,Xl,U2,Zl,fh,dh,hh,Y2,ph,gh,G2,q2;function Rt(){if(!H2){H2=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(ph=/\b(iPhone|iP[ao]d)/.exec(e),gh=/\b(iP[ao]d)/.exec(e),hh=/Android/i.exec(e),G2=/FBAN\/\w+;/i.exec(e),q2=/Mobile/i.exec(e),Y2=!!/Win64/.exec(e),t){Ln=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ln&&document&&document.documentMode&&(Ln=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);U2=n?parseFloat(n[1])+4:Ln,uh=t[2]?parseFloat(t[2]):NaN,ch=t[3]?parseFloat(t[3]):NaN,Kl=t[4]?parseFloat(t[4]):NaN,Kl?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Xl=t&&t[1]?parseFloat(t[1]):NaN):Xl=NaN}else Ln=uh=ch=Xl=Kl=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Zl=i?parseFloat(i[1].replace("_",".")):!0}else Zl=!1;fh=!!r[2],dh=!!r[3]}else Zl=fh=dh=!1}}var mh={ie:function(){return Rt()||Ln},ieCompatibilityMode:function(){return Rt()||U2>Ln},ie64:function(){return mh.ie()&&Y2},firefox:function(){return Rt()||uh},opera:function(){return Rt()||ch},webkit:function(){return Rt()||Kl},safari:function(){return mh.webkit()},chrome:function(){return Rt()||Xl},windows:function(){return Rt()||fh},osx:function(){return Rt()||Zl},linux:function(){return Rt()||dh},iphone:function(){return Rt()||ph},mobile:function(){return Rt()||ph||gh||hh||q2},nativeApp:function(){return Rt()||G2},android:function(){return Rt()||hh},ipad:function(){return Rt()||gh}},QK=mh,Ql=!!(typeof window<"u"&&window.document&&window.document.createElement),JK={canUseDOM:Ql,canUseWorkers:typeof Worker<"u",canUseEventListeners:Ql&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ql&&!!window.screen,isInWorker:!Ql},eX=JK,K2=eX,X2;K2.canUseDOM&&(X2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
149
+ ***************************************************************************** */var sh=function(e,t){return sh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},sh(e,t)};function ZK(e,t){sh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ot=function(){return Ot=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ot.apply(this,arguments)},H2=!1,Ln,lh,uh,Kl,Xl,U2,Zl,ch,fh,dh,Y2,hh,ph,G2,q2;function Rt(){if(!H2){H2=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(hh=/\b(iPhone|iP[ao]d)/.exec(e),ph=/\b(iP[ao]d)/.exec(e),dh=/Android/i.exec(e),G2=/FBAN\/\w+;/i.exec(e),q2=/Mobile/i.exec(e),Y2=!!/Win64/.exec(e),t){Ln=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ln&&document&&document.documentMode&&(Ln=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);U2=n?parseFloat(n[1])+4:Ln,lh=t[2]?parseFloat(t[2]):NaN,uh=t[3]?parseFloat(t[3]):NaN,Kl=t[4]?parseFloat(t[4]):NaN,Kl?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Xl=t&&t[1]?parseFloat(t[1]):NaN):Xl=NaN}else Ln=lh=uh=Xl=Kl=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Zl=i?parseFloat(i[1].replace("_",".")):!0}else Zl=!1;ch=!!r[2],fh=!!r[3]}else Zl=ch=fh=!1}}var gh={ie:function(){return Rt()||Ln},ieCompatibilityMode:function(){return Rt()||U2>Ln},ie64:function(){return gh.ie()&&Y2},firefox:function(){return Rt()||lh},opera:function(){return Rt()||uh},webkit:function(){return Rt()||Kl},safari:function(){return gh.webkit()},chrome:function(){return Rt()||Xl},windows:function(){return Rt()||ch},osx:function(){return Rt()||Zl},linux:function(){return Rt()||fh},iphone:function(){return Rt()||hh},mobile:function(){return Rt()||hh||ph||dh||q2},nativeApp:function(){return Rt()||G2},android:function(){return Rt()||dh},ipad:function(){return Rt()||ph}},QK=gh,Ql=!!(typeof window<"u"&&window.document&&window.document.createElement),JK={canUseDOM:Ql,canUseWorkers:typeof Worker<"u",canUseEventListeners:Ql&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ql&&!!window.screen,isInWorker:!Ql},eX=JK,K2=eX,X2;K2.canUseDOM&&(X2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
150
150
  * Checks if an event is supported in the current execution environment.
151
151
  *
152
152
  * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -245,7 +245,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
245
245
  * author : Adam Draper
246
246
  * license : MIT
247
247
  * http://adamwdraper.github.com/Numeral-js/
248
- */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(Aa,function(){var t,r,n="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=a[t.options.currentLocale],h=!1,g=!1,p=0,y="",b=1e12,x=1e9,C=1e6,k=1e3,w="",_=!1,T,O,P,F,Z,be,oe;if(l=l||0,O=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(Z=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(c," a")&&(y=" "),c=c.replace(new RegExp(y+"a[kmbt]?"),""),O>=b&&!T||T==="t"?(y+=d.abbreviations.trillion,l=l/b):O<b&&O>=x&&!T||T==="b"?(y+=d.abbreviations.billion,l=l/x):O<x&&O>=C&&!T||T==="m"?(y+=d.abbreviations.million,l=l/C):(O<C&&O>=k&&!T||T==="k")&&(y+=d.abbreviations.thousand,l=l/k)),t._.includes(c,"[.]")&&(g=!0,c=c.replace("[.]",".")),P=l.toString().split(".")[0],F=c.split(".")[1],be=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,F?(t._.includes(F,"[")?(F=F.replace("]",""),F=F.split("["),w=t._.toFixed(l,F[0].length+F[1].length,f,F[1].length)):w=t._.toFixed(l,F.length,f),P=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",g&&Number(w.slice(1))===0&&(w="")):P=t._.toFixed(l,0,f),y&&!T&&Number(P)>=1e3&&y!==d.abbreviations.trillion)switch(P=String(Number(P)/1e3),y){case d.abbreviations.thousand:y=d.abbreviations.million;break;case d.abbreviations.million:y=d.abbreviations.billion;break;case d.abbreviations.billion:y=d.abbreviations.trillion;break}if(t._.includes(P,"-")&&(P=P.slice(1),_=!0),P.length<p)for(var Q=p-P.length;Q>0;Q--)P="0"+P;return be>-1&&(P=P.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(P=""),oe=P+w+(y||""),h?oe=(h&&_?"(":"")+oe+(h&&_?")":""):Z>=0?oe=Z===0?(_?"-":"+")+oe:oe+(_?"-":"+"):_&&(oe="-"+oe),oe},stringToNumber:function(l){var c=a[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,g,p;if(s.zeroFormat&&l===s.zeroFormat)g=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)g=null;else{g=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){g*=Math.pow(10,d[h]);break}g*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),g*=Number(l)}return g},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,g;if(arguments.length===3)g=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");g=f[h++]}for(;h<d;h++)h in f&&(g=c(g,f[h],h,f));return g},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),g=c-(d||0),p,y,b,x;return h.length===2?p=Math.min(Math.max(h[1].length,g),c):p=g,b=Math.pow(10,p),x=(f(l+"e+"+p)/b).toFixed(p),d>c-p&&(y=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),x=x.replace(y,"")),x}},t.options=s,t.formats=i,t.locales=a,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return a[s.currentLocale];if(l=l.toLowerCase(),!a[l])throw new Error("Unknown locale : "+l);return a[l]},t.reset=function(){for(var l in o)s[l]=o[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,g,p,y,b,x;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{b=t.localeData(c)}catch{b=t.localeData(t.locale())}return h=b.currency.symbol,p=b.abbreviations,f=b.delimiters.decimal,b.delimiters.thousands==="."?d="\\.":d=b.delimiters.thousands,x=l.match(/^[^\d]+/),x!==null&&(l=l.substr(1),x[0]!==h)||(x=l.match(/[^\d]+$/),x!==null&&(l=l.slice(0,-1),x[0]!==p.thousand&&x[0]!==p.million&&x[0]!==p.billion&&x[0]!==p.trillion))?!1:(y=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(g=l.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(y):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(y)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(y)&&!!g[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,g,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)g=s.zeroFormat;else if(f===null&&s.nullFormat!==null)g=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,g=p(f,d,c)}return g},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,g,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,g,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,g){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,g){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,g,p){var y,b=t._.includes(g,"ib")?c:l,x=t._.includes(g," b")||t._.includes(g," ib")?" ":"",C,k,w;for(g=g.replace(/\s?i?b/,""),C=0;C<=b.suffixes.length;C++)if(k=Math.pow(b.base,C),w=Math.pow(b.base,C+1),h===null||h===0||h>=k&&h<w){x+=b.suffixes[C],k>0&&(h=h/k);break}return y=t._.numberToFormat(h,g,p),y+x},unformat:function(h){var g=t._.stringToNumber(h),p,y;if(g){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){y=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){y=Math.pow(c.base,p);break}}g*=y||1}return g}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,p,y;for(c=c.replace(/\s?\$\s?/,""),g=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),y=0;y<h.before.length;y++)switch(p=h.before[y],p){case"$":g=t._.insert(g,d.currency.symbol,y);break;case" ":g=t._.insert(g," ",y+d.currency.symbol.length-1);break}for(y=h.after.length-1;y>=0;y--)switch(p=h.after[y],p){case"$":g=y===h.after.length-1?g+d.currency.symbol:t._.insert(g,d.currency.symbol,-(h.after.length-(1+y)));break;case" ":g=y===h.after.length-1?g+" ":t._.insert(g," ",-(h.after.length-(1+y)+d.currency.symbol.length-1));break}return g}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",g=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(g[0]),c,f),d+"e"+g[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(g,p,y,b){var x=t._.correctionFactor(g,p),C=g*x*(p*x)/(x*x);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,g=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),g+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+g}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),g=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(g<10?"0"+g:g)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(sx);var SX=sx.exports;const ko=vn(SX);function EX(e){return ko(e).format()}function TX(e){const t=e?ko(e).format("$0,0.00"):"";return ru(t,".00")}function _X(e){const t=e?ko(Number(e)/100).format("0.0%"):"";return ru(t,".0")}function kX(e){const t=e?ko(e).format("0.00a"):"";return ru(t,".00")}function vh(e){const t=e?ko(e).format("0.0 b"):"";return ru(t,".0")}function ru(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const yh=e=>+Number(e).toFixed(12),MX=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:TX,fData:vh,fNumber:EX,fPercent:_X,fShortenNumber:kX,fWithDecimalPlacesOrNot:yh},Symbol.toStringTag,{value:"Module"}));function lx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Mo;(function(e){e.event="event",e.props="prop"})(Mo||(Mo={}));function ln(){}function OX(e){var t,r=void 0;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return t&&n.length===t.length&&n.every(function(a,o){return a===t[o]})||(t=n,r=e.apply(void 0,n)),r}}function Oo(e){return!!(e||"").match(/\d/)}function la(e){return e==null}function AX(e){return typeof e=="number"&&isNaN(e)}function ux(e){return la(e)||AX(e)||typeof e=="number"&&!isFinite(e)}function cx(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function PX(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function DX(e,t,r){var n=PX(r),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+t)}function $X(e){var t=m.useRef(e);t.current=e;var r=m.useRef(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return t.current.apply(t,n)});return r.current}function bh(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:r,addNegation:n}}function FX(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+n+(i?"."+i:"")}function fx(e,t,r){for(var n="",i=r?"0":"",a=0;a<=t-1;a++)n+=e[a]||i;return n}function dx(e,t){return Array(t+1).join(e)}function hx(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),i=n[0],a=n[1];if(a=Number(a),!a)return r+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+dx("0",Math.abs(o))+i:o>=s?i=i+dx("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),r+i}function px(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,i=bh(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,u=parseFloat("0."+(o||"0")),l=o.length<=t?"0."+o:u.toFixed(t),c=l.split("."),f=a.split("").reverse().reduce(function(p,y,b){return p.length>b?(Number(p[0])+Number(y)).toString()+p.substring(1,p.length):y+p},c[0]),d=fx(c[1]||"",t,r),h=s?"-":"",g=n?".":"";return""+h+f+g+d}function Rn(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var gx=OX(function(e,t){for(var r=0,n=0,i=e.length,a=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-n]===t[a-1-n]&&a-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:a-n}}});function IX(e,t,r){return Math.min(Math.max(e,t),r)}function xh(e){return Math.max(e.selectionStart,e.selectionEnd)}function jX(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function LX(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function RX(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function NX(e,t,r,n,i,a,o){o===void 0&&(o=RX);var s=i.findIndex(function(k){return k}),u=e.slice(0,s);!t&&!r.startsWith(u)&&(t=u,r=u+r,n=n+u.length);for(var l=r.length,c=e.length,f={},d=new Array(l),h=0;h<l;h++){d[h]=-1;for(var g=0,p=c;g<p;g++){var y=o({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:g});if(y&&f[g]!==!0){d[h]=g,f[g]=!0;break}}}for(var b=n;b<l&&(d[b]===-1||!a(r[b]));)b++;var x=b===l||d[b]===-1?c:d[b];for(b=n-1;b>0&&d[b]===-1;)b--;var C=b===-1||d[b]===-1?0:d[b]+1;return C>x?x:n-C<x-n?C:x}function mx(e,t,r,n){var i=e.length;if(t=IX(t,0,i),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return t===-1&&(t=i),t}function BX(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(Oo(e[r])||Oo(e[r-1]));return t}function vx(e,t,r,n,i,a){a===void 0&&(a=ln);var o=$X(function(g,p){var y,b;return ux(g)?(b="",y=""):typeof g=="number"||p?(b=typeof g=="number"?hx(g):g,y=n(b)):(b=i(g,void 0),y=n(b)),{formattedValue:y,numAsString:b}}),s=m.useState(function(){return o(la(e)?t:e,r)}),u=s[0],l=s[1],c=function(g,p){g.formattedValue!==u.formattedValue&&l({formattedValue:g.formattedValue,numAsString:g.value}),a(g,p)},f=e,d=r;la(e)&&(f=u.numAsString,d=!0);var h=o(f,d);return m.useMemo(function(){l(h)},[h.formattedValue]),[u,c]}function VX(e){return e.replace(/[^0-9]/g,"")}function zX(e){return e}function WX(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=zX);var s=e.removeFormatting;s===void 0&&(s=VX);var u=e.defaultValue,l=e.valueIsNumericString,c=e.onValueChange,f=e.isAllowed,d=e.onChange;d===void 0&&(d=ln);var h=e.onKeyDown;h===void 0&&(h=ln);var g=e.onMouseUp;g===void 0&&(g=ln);var p=e.onFocus;p===void 0&&(p=ln);var y=e.onBlur;y===void 0&&(y=ln);var b=e.value,x=e.getCaretBoundary;x===void 0&&(x=BX);var C=e.isValidInputCharacter;C===void 0&&(C=Oo);var k=e.isCharacterSame,w=lx(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=vx(b,u,!!l,o,s,c),T=_[0],O=T.formattedValue,P=T.numAsString,F=_[1],Z=m.useRef({formattedValue:O,numAsString:P}),be=function(V,re){Z.current={formattedValue:V.formattedValue,numAsString:V.value},F(V,re)},oe=m.useState(!1),Q=oe[0],H=oe[1],R=m.useRef(null),U=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return H(!0),function(){clearTimeout(U.current.setCaretTimeout),clearTimeout(U.current.focusTimeout)}},[]);var Ce=o,fe=function(V,re){var de=parseFloat(re);return{formattedValue:V,value:re,floatValue:isNaN(de)?void 0:de}},D=function(V,re,de){V.selectionStart===0&&V.selectionEnd===V.value.length||(Rn(V,re),U.current.setCaretTimeout=setTimeout(function(){V.value===de&&V.selectionStart!==V.selectionEnd&&Rn(V,re)},0))},$=function(V,re,de){return mx(V,re,x(V),de)},W=function(V,re,de){var Xe=x(re),Ue=NX(re,O,V,de,Xe,C,k);return Ue=mx(re,Ue,Xe),Ue},se=function(V){var re=V.formattedValue;re===void 0&&(re="");var de=V.input,Xe=V.setCaretPosition;Xe===void 0&&(Xe=!0);var Ue=V.source,Ye=V.event,gt=V.numAsString,mt=V.caretPos;if(de){if(mt===void 0&&Xe){var Lr=V.inputValue||de.value,z=xh(de);de.value=re,mt=W(Lr,re,z)}de.value=re,Xe&&mt!==void 0&&D(de,mt,re)}re!==O&&be(fe(re,gt),{event:Ye,source:Ue})};m.useEffect(function(){var V=Z.current,re=V.formattedValue,de=V.numAsString;O!==re&&(O!==P||re!==de)&&be(fe(O,P),{event:void 0,source:Mo.props})},[O,P]);var X=R.current?xh(R.current):void 0,ce=typeof window<"u"?m.useLayoutEffect:m.useEffect;ce(function(){var V=R.current;if(O!==Z.current.formattedValue&&V){var re=W(Z.current.formattedValue,O,X);V.value=O,D(V,re,O)}},[O]);var ne=function(V,re,de){var Xe=gx(O,V),Ue=Object.assign(Object.assign({},Xe),{lastValue:O}),Ye=s(V,Ue),gt=Ce(Ye);if(Ye=s(gt,void 0),f&&!f(fe(gt,Ye))){var mt=re.target,Lr=xh(mt),z=W(V,O,Lr);return mt.value=O,D(mt,z,O),!1}return se({formattedValue:gt,numAsString:Ye,inputValue:V,event:re,source:de,setCaretPosition:!0,input:re.target}),!0},le=function(V){var re=V.target,de=re.value,Xe=ne(de,V,Mo.event);Xe&&d(V)},ee=function(V){var re=V.target,de=V.key,Xe=re.selectionStart,Ue=re.selectionEnd,Ye=re.value;Ye===void 0&&(Ye="");var gt;if(de==="ArrowLeft"||de==="Backspace"?gt=Math.max(Xe-1,0):de==="ArrowRight"?gt=Math.min(Xe+1,Ye.length):de==="Delete"&&(gt=Xe),gt===void 0||Xe!==Ue){h(V);return}var mt=gt;if(de==="ArrowLeft"||de==="ArrowRight"){var Lr=de==="ArrowLeft"?"left":"right";mt=$(Ye,gt,Lr),mt!==gt&&V.preventDefault()}else de==="Delete"&&!C(Ye[gt])?mt=$(Ye,gt,"right"):de==="Backspace"&&!C(Ye[gt])&&(mt=$(Ye,gt,"left"));mt!==gt&&D(re,mt,Ye),V.isUnitTestRun&&D(re,mt,Ye),h(V)},q=function(V){var re=V.target,de=re.selectionStart,Xe=re.selectionEnd,Ue=re.value;if(Ue===void 0&&(Ue=""),de===Xe){var Ye=$(Ue,de);Ye!==de&&D(re,Ye,Ue)}g(V)},te=function(V){V.persist&&V.persist();var re=V.target;R.current=re,U.current.focusTimeout=setTimeout(function(){var de=re.selectionStart,Xe=re.selectionEnd,Ue=re.value;Ue===void 0&&(Ue="");var Ye=$(Ue,de);Ye!==de&&!(de===0&&Xe===Ue.length)&&D(re,Ye,Ue),p(V)},0)},Se=function(V){R.current=null,clearTimeout(U.current.focusTimeout),clearTimeout(U.current.setCaretTimeout),y(V)},j=Q&&jX()?"numeric":void 0,Je=Object.assign({inputMode:j},w,{type:t,value:O,onChange:le,onKeyDown:ee,onMouseUp:q,onFocus:te,onBlur:Se});if(r==="text")return i?m.createElement(m.Fragment,null,i(O,w)||null):m.createElement("span",Object.assign({},w,{ref:a}),O);if(n){var J=n;return m.createElement(J,Object.assign({},Je,{ref:a}))}return m.createElement("input",Object.assign({},Je,{ref:a}))}function yx(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var u=nu(t),l=u.thousandSeparator,c=u.decimalSeparator,f=r!==0&&e.indexOf(".")!==-1||r&&n,d=bh(e,o),h=d.beforeDecimal,g=d.afterDecimal,p=d.addNegation;return r!==void 0&&(g=fx(g,r,!!n)),l&&(h=DX(h,l,s)),i&&(h=i+h),a&&(g=g+a),p&&(h="-"+h),e=h+(f&&c||"")+g,e}function nu(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function HX(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),a=n.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function UX(e,t){return new RegExp("(^-)|[0-9]|"+cx(e),t?"g":void 0)}function YX(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function GX(e,t,r){var n;t===void 0&&(t=LX(e));var i=r.allowNegative,a=r.prefix;a===void 0&&(a="");var o=r.suffix;o===void 0&&(o="");var s=r.decimalScale,u=t.from,l=t.to,c=l.start,f=l.end,d=nu(r),h=d.allowedDecimalSeparators,g=d.decimalSeparator,p=e[f]===g;if(Oo(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(f-c===1&&h.indexOf(e[c])!==-1){var y=s===0?"":g;e=e.substring(0,c)+y+e.substring(c+1,e.length)}var b=function(U,Ce,fe){var D=!1,$=!1;a.startsWith("-")?D=!1:U.startsWith("--")?(D=!1,$=!0):o.startsWith("-")&&U.length===o.length?D=!1:U[0]==="-"&&(D=!0);var W=D?1:0;return $&&(W=2),W&&(U=U.substring(W),Ce-=W,fe-=W),{value:U,start:Ce,end:fe,hasNegation:D}},x=b(e,c,f),C=x.hasNegation;n=x,e=n.value,c=n.start,f=n.end;var k=b(t.lastValue,u.start,u.end),w=k.start,_=k.end,T=k.value,O=e.substring(c,f);e.length&&T.length&&(w>T.length-o.length||_<a.length)&&!(O&&o.startsWith(O))&&(e=T);var P=0;e.startsWith(a)?P+=a.length:c<a.length&&(P=c),e=e.substring(P),f-=P;var F=e.length,Z=e.length-o.length;e.endsWith(o)?F=Z:(f>Z||f>e.length-o.length)&&(F=f),e=e.substring(0,F),e=HX(C?"-"+e:e,i),e=(e.match(UX(g,!0))||[]).join("");var be=e.indexOf(g);e=e.replace(new RegExp(cx(g),"g"),function(U,Ce){return Ce===be?".":""});var oe=bh(e,i),Q=oe.beforeDecimal,H=oe.afterDecimal,R=oe.addNegation;return l.end-l.start<u.end-u.start&&Q===""&&p&&!parseFloat(H)&&(e=R?"-":""),e}function qX(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,r.length+(a?1:0));var o=e.length;return i.fill(!1,o-n.length+1,o+1),i}function KX(e){var t=nu(e),r=t.thousandSeparator,n=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),r===n)throw new Error(`
248
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(Aa,function(){var t,r,n="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=a[t.options.currentLocale],h=!1,g=!1,p=0,y="",b=1e12,x=1e9,C=1e6,k=1e3,w="",_=!1,T,O,P,F,Z,be,oe;if(l=l||0,O=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(Z=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(c," a")&&(y=" "),c=c.replace(new RegExp(y+"a[kmbt]?"),""),O>=b&&!T||T==="t"?(y+=d.abbreviations.trillion,l=l/b):O<b&&O>=x&&!T||T==="b"?(y+=d.abbreviations.billion,l=l/x):O<x&&O>=C&&!T||T==="m"?(y+=d.abbreviations.million,l=l/C):(O<C&&O>=k&&!T||T==="k")&&(y+=d.abbreviations.thousand,l=l/k)),t._.includes(c,"[.]")&&(g=!0,c=c.replace("[.]",".")),P=l.toString().split(".")[0],F=c.split(".")[1],be=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,F?(t._.includes(F,"[")?(F=F.replace("]",""),F=F.split("["),w=t._.toFixed(l,F[0].length+F[1].length,f,F[1].length)):w=t._.toFixed(l,F.length,f),P=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",g&&Number(w.slice(1))===0&&(w="")):P=t._.toFixed(l,0,f),y&&!T&&Number(P)>=1e3&&y!==d.abbreviations.trillion)switch(P=String(Number(P)/1e3),y){case d.abbreviations.thousand:y=d.abbreviations.million;break;case d.abbreviations.million:y=d.abbreviations.billion;break;case d.abbreviations.billion:y=d.abbreviations.trillion;break}if(t._.includes(P,"-")&&(P=P.slice(1),_=!0),P.length<p)for(var Q=p-P.length;Q>0;Q--)P="0"+P;return be>-1&&(P=P.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(P=""),oe=P+w+(y||""),h?oe=(h&&_?"(":"")+oe+(h&&_?")":""):Z>=0?oe=Z===0?(_?"-":"+")+oe:oe+(_?"-":"+"):_&&(oe="-"+oe),oe},stringToNumber:function(l){var c=a[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,g,p;if(s.zeroFormat&&l===s.zeroFormat)g=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)g=null;else{g=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){g*=Math.pow(10,d[h]);break}g*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),g*=Number(l)}return g},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,g;if(arguments.length===3)g=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");g=f[h++]}for(;h<d;h++)h in f&&(g=c(g,f[h],h,f));return g},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),g=c-(d||0),p,y,b,x;return h.length===2?p=Math.min(Math.max(h[1].length,g),c):p=g,b=Math.pow(10,p),x=(f(l+"e+"+p)/b).toFixed(p),d>c-p&&(y=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),x=x.replace(y,"")),x}},t.options=s,t.formats=i,t.locales=a,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return a[s.currentLocale];if(l=l.toLowerCase(),!a[l])throw new Error("Unknown locale : "+l);return a[l]},t.reset=function(){for(var l in o)s[l]=o[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,g,p,y,b,x;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{b=t.localeData(c)}catch{b=t.localeData(t.locale())}return h=b.currency.symbol,p=b.abbreviations,f=b.delimiters.decimal,b.delimiters.thousands==="."?d="\\.":d=b.delimiters.thousands,x=l.match(/^[^\d]+/),x!==null&&(l=l.substr(1),x[0]!==h)||(x=l.match(/[^\d]+$/),x!==null&&(l=l.slice(0,-1),x[0]!==p.thousand&&x[0]!==p.million&&x[0]!==p.billion&&x[0]!==p.trillion))?!1:(y=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(g=l.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(y):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(y)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(y)&&!!g[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,g,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)g=s.zeroFormat;else if(f===null&&s.nullFormat!==null)g=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,g=p(f,d,c)}return g},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,g,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,g,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,g){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,g){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,g,p){var y,b=t._.includes(g,"ib")?c:l,x=t._.includes(g," b")||t._.includes(g," ib")?" ":"",C,k,w;for(g=g.replace(/\s?i?b/,""),C=0;C<=b.suffixes.length;C++)if(k=Math.pow(b.base,C),w=Math.pow(b.base,C+1),h===null||h===0||h>=k&&h<w){x+=b.suffixes[C],k>0&&(h=h/k);break}return y=t._.numberToFormat(h,g,p),y+x},unformat:function(h){var g=t._.stringToNumber(h),p,y;if(g){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){y=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){y=Math.pow(c.base,p);break}}g*=y||1}return g}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,p,y;for(c=c.replace(/\s?\$\s?/,""),g=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),y=0;y<h.before.length;y++)switch(p=h.before[y],p){case"$":g=t._.insert(g,d.currency.symbol,y);break;case" ":g=t._.insert(g," ",y+d.currency.symbol.length-1);break}for(y=h.after.length-1;y>=0;y--)switch(p=h.after[y],p){case"$":g=y===h.after.length-1?g+d.currency.symbol:t._.insert(g,d.currency.symbol,-(h.after.length-(1+y)));break;case" ":g=y===h.after.length-1?g+" ":t._.insert(g," ",-(h.after.length-(1+y)+d.currency.symbol.length-1));break}return g}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",g=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(g[0]),c,f),d+"e"+g[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(g,p,y,b){var x=t._.correctionFactor(g,p),C=g*x*(p*x)/(x*x);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,g=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),g+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+g}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),g=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(g<10?"0"+g:g)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(sx);var SX=sx.exports;const ko=vn(SX);function EX(e){return ko(e).format()}function TX(e){const t=e?ko(e).format("$0,0.00"):"";return ru(t,".00")}function _X(e){const t=e?ko(Number(e)/100).format("0.0%"):"";return ru(t,".0")}function kX(e){const t=e?ko(e).format("0.00a"):"";return ru(t,".00")}function mh(e){const t=e?ko(e).format("0.0 b"):"";return ru(t,".0")}function ru(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const vh=e=>+Number(e).toFixed(12),MX=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:TX,fData:mh,fNumber:EX,fPercent:_X,fShortenNumber:kX,fWithDecimalPlacesOrNot:vh},Symbol.toStringTag,{value:"Module"}));function lx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Mo;(function(e){e.event="event",e.props="prop"})(Mo||(Mo={}));function ln(){}function OX(e){var t,r=void 0;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return t&&n.length===t.length&&n.every(function(a,o){return a===t[o]})||(t=n,r=e.apply(void 0,n)),r}}function Oo(e){return!!(e||"").match(/\d/)}function la(e){return e==null}function AX(e){return typeof e=="number"&&isNaN(e)}function ux(e){return la(e)||AX(e)||typeof e=="number"&&!isFinite(e)}function cx(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function PX(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function DX(e,t,r){var n=PX(r),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+t)}function $X(e){var t=m.useRef(e);t.current=e;var r=m.useRef(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return t.current.apply(t,n)});return r.current}function yh(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:r,addNegation:n}}function FX(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+n+(i?"."+i:"")}function fx(e,t,r){for(var n="",i=r?"0":"",a=0;a<=t-1;a++)n+=e[a]||i;return n}function dx(e,t){return Array(t+1).join(e)}function hx(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),i=n[0],a=n[1];if(a=Number(a),!a)return r+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+dx("0",Math.abs(o))+i:o>=s?i=i+dx("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),r+i}function px(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,i=yh(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,u=parseFloat("0."+(o||"0")),l=o.length<=t?"0."+o:u.toFixed(t),c=l.split("."),f=a.split("").reverse().reduce(function(p,y,b){return p.length>b?(Number(p[0])+Number(y)).toString()+p.substring(1,p.length):y+p},c[0]),d=fx(c[1]||"",t,r),h=s?"-":"",g=n?".":"";return""+h+f+g+d}function Rn(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var gx=OX(function(e,t){for(var r=0,n=0,i=e.length,a=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-n]===t[a-1-n]&&a-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:a-n}}});function IX(e,t,r){return Math.min(Math.max(e,t),r)}function bh(e){return Math.max(e.selectionStart,e.selectionEnd)}function jX(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function LX(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function RX(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function NX(e,t,r,n,i,a,o){o===void 0&&(o=RX);var s=i.findIndex(function(k){return k}),u=e.slice(0,s);!t&&!r.startsWith(u)&&(t=u,r=u+r,n=n+u.length);for(var l=r.length,c=e.length,f={},d=new Array(l),h=0;h<l;h++){d[h]=-1;for(var g=0,p=c;g<p;g++){var y=o({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:g});if(y&&f[g]!==!0){d[h]=g,f[g]=!0;break}}}for(var b=n;b<l&&(d[b]===-1||!a(r[b]));)b++;var x=b===l||d[b]===-1?c:d[b];for(b=n-1;b>0&&d[b]===-1;)b--;var C=b===-1||d[b]===-1?0:d[b]+1;return C>x?x:n-C<x-n?C:x}function mx(e,t,r,n){var i=e.length;if(t=IX(t,0,i),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return t===-1&&(t=i),t}function BX(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(Oo(e[r])||Oo(e[r-1]));return t}function vx(e,t,r,n,i,a){a===void 0&&(a=ln);var o=$X(function(g,p){var y,b;return ux(g)?(b="",y=""):typeof g=="number"||p?(b=typeof g=="number"?hx(g):g,y=n(b)):(b=i(g,void 0),y=n(b)),{formattedValue:y,numAsString:b}}),s=m.useState(function(){return o(la(e)?t:e,r)}),u=s[0],l=s[1],c=function(g,p){g.formattedValue!==u.formattedValue&&l({formattedValue:g.formattedValue,numAsString:g.value}),a(g,p)},f=e,d=r;la(e)&&(f=u.numAsString,d=!0);var h=o(f,d);return m.useMemo(function(){l(h)},[h.formattedValue]),[u,c]}function VX(e){return e.replace(/[^0-9]/g,"")}function zX(e){return e}function WX(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=zX);var s=e.removeFormatting;s===void 0&&(s=VX);var u=e.defaultValue,l=e.valueIsNumericString,c=e.onValueChange,f=e.isAllowed,d=e.onChange;d===void 0&&(d=ln);var h=e.onKeyDown;h===void 0&&(h=ln);var g=e.onMouseUp;g===void 0&&(g=ln);var p=e.onFocus;p===void 0&&(p=ln);var y=e.onBlur;y===void 0&&(y=ln);var b=e.value,x=e.getCaretBoundary;x===void 0&&(x=BX);var C=e.isValidInputCharacter;C===void 0&&(C=Oo);var k=e.isCharacterSame,w=lx(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=vx(b,u,!!l,o,s,c),T=_[0],O=T.formattedValue,P=T.numAsString,F=_[1],Z=m.useRef({formattedValue:O,numAsString:P}),be=function(V,re){Z.current={formattedValue:V.formattedValue,numAsString:V.value},F(V,re)},oe=m.useState(!1),Q=oe[0],H=oe[1],R=m.useRef(null),U=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return H(!0),function(){clearTimeout(U.current.setCaretTimeout),clearTimeout(U.current.focusTimeout)}},[]);var Ce=o,fe=function(V,re){var de=parseFloat(re);return{formattedValue:V,value:re,floatValue:isNaN(de)?void 0:de}},D=function(V,re,de){V.selectionStart===0&&V.selectionEnd===V.value.length||(Rn(V,re),U.current.setCaretTimeout=setTimeout(function(){V.value===de&&V.selectionStart!==V.selectionEnd&&Rn(V,re)},0))},$=function(V,re,de){return mx(V,re,x(V),de)},W=function(V,re,de){var Xe=x(re),Ue=NX(re,O,V,de,Xe,C,k);return Ue=mx(re,Ue,Xe),Ue},se=function(V){var re=V.formattedValue;re===void 0&&(re="");var de=V.input,Xe=V.setCaretPosition;Xe===void 0&&(Xe=!0);var Ue=V.source,Ye=V.event,gt=V.numAsString,mt=V.caretPos;if(de){if(mt===void 0&&Xe){var Lr=V.inputValue||de.value,z=bh(de);de.value=re,mt=W(Lr,re,z)}de.value=re,Xe&&mt!==void 0&&D(de,mt,re)}re!==O&&be(fe(re,gt),{event:Ye,source:Ue})};m.useEffect(function(){var V=Z.current,re=V.formattedValue,de=V.numAsString;O!==re&&(O!==P||re!==de)&&be(fe(O,P),{event:void 0,source:Mo.props})},[O,P]);var X=R.current?bh(R.current):void 0,ce=typeof window<"u"?m.useLayoutEffect:m.useEffect;ce(function(){var V=R.current;if(O!==Z.current.formattedValue&&V){var re=W(Z.current.formattedValue,O,X);V.value=O,D(V,re,O)}},[O]);var ne=function(V,re,de){var Xe=gx(O,V),Ue=Object.assign(Object.assign({},Xe),{lastValue:O}),Ye=s(V,Ue),gt=Ce(Ye);if(Ye=s(gt,void 0),f&&!f(fe(gt,Ye))){var mt=re.target,Lr=bh(mt),z=W(V,O,Lr);return mt.value=O,D(mt,z,O),!1}return se({formattedValue:gt,numAsString:Ye,inputValue:V,event:re,source:de,setCaretPosition:!0,input:re.target}),!0},le=function(V){var re=V.target,de=re.value,Xe=ne(de,V,Mo.event);Xe&&d(V)},ee=function(V){var re=V.target,de=V.key,Xe=re.selectionStart,Ue=re.selectionEnd,Ye=re.value;Ye===void 0&&(Ye="");var gt;if(de==="ArrowLeft"||de==="Backspace"?gt=Math.max(Xe-1,0):de==="ArrowRight"?gt=Math.min(Xe+1,Ye.length):de==="Delete"&&(gt=Xe),gt===void 0||Xe!==Ue){h(V);return}var mt=gt;if(de==="ArrowLeft"||de==="ArrowRight"){var Lr=de==="ArrowLeft"?"left":"right";mt=$(Ye,gt,Lr),mt!==gt&&V.preventDefault()}else de==="Delete"&&!C(Ye[gt])?mt=$(Ye,gt,"right"):de==="Backspace"&&!C(Ye[gt])&&(mt=$(Ye,gt,"left"));mt!==gt&&D(re,mt,Ye),V.isUnitTestRun&&D(re,mt,Ye),h(V)},q=function(V){var re=V.target,de=re.selectionStart,Xe=re.selectionEnd,Ue=re.value;if(Ue===void 0&&(Ue=""),de===Xe){var Ye=$(Ue,de);Ye!==de&&D(re,Ye,Ue)}g(V)},te=function(V){V.persist&&V.persist();var re=V.target;R.current=re,U.current.focusTimeout=setTimeout(function(){var de=re.selectionStart,Xe=re.selectionEnd,Ue=re.value;Ue===void 0&&(Ue="");var Ye=$(Ue,de);Ye!==de&&!(de===0&&Xe===Ue.length)&&D(re,Ye,Ue),p(V)},0)},Se=function(V){R.current=null,clearTimeout(U.current.focusTimeout),clearTimeout(U.current.setCaretTimeout),y(V)},j=Q&&jX()?"numeric":void 0,Je=Object.assign({inputMode:j},w,{type:t,value:O,onChange:le,onKeyDown:ee,onMouseUp:q,onFocus:te,onBlur:Se});if(r==="text")return i?m.createElement(m.Fragment,null,i(O,w)||null):m.createElement("span",Object.assign({},w,{ref:a}),O);if(n){var J=n;return m.createElement(J,Object.assign({},Je,{ref:a}))}return m.createElement("input",Object.assign({},Je,{ref:a}))}function yx(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var u=nu(t),l=u.thousandSeparator,c=u.decimalSeparator,f=r!==0&&e.indexOf(".")!==-1||r&&n,d=yh(e,o),h=d.beforeDecimal,g=d.afterDecimal,p=d.addNegation;return r!==void 0&&(g=fx(g,r,!!n)),l&&(h=DX(h,l,s)),i&&(h=i+h),a&&(g=g+a),p&&(h="-"+h),e=h+(f&&c||"")+g,e}function nu(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function HX(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),a=n.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function UX(e,t){return new RegExp("(^-)|[0-9]|"+cx(e),t?"g":void 0)}function YX(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function GX(e,t,r){var n;t===void 0&&(t=LX(e));var i=r.allowNegative,a=r.prefix;a===void 0&&(a="");var o=r.suffix;o===void 0&&(o="");var s=r.decimalScale,u=t.from,l=t.to,c=l.start,f=l.end,d=nu(r),h=d.allowedDecimalSeparators,g=d.decimalSeparator,p=e[f]===g;if(Oo(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(f-c===1&&h.indexOf(e[c])!==-1){var y=s===0?"":g;e=e.substring(0,c)+y+e.substring(c+1,e.length)}var b=function(U,Ce,fe){var D=!1,$=!1;a.startsWith("-")?D=!1:U.startsWith("--")?(D=!1,$=!0):o.startsWith("-")&&U.length===o.length?D=!1:U[0]==="-"&&(D=!0);var W=D?1:0;return $&&(W=2),W&&(U=U.substring(W),Ce-=W,fe-=W),{value:U,start:Ce,end:fe,hasNegation:D}},x=b(e,c,f),C=x.hasNegation;n=x,e=n.value,c=n.start,f=n.end;var k=b(t.lastValue,u.start,u.end),w=k.start,_=k.end,T=k.value,O=e.substring(c,f);e.length&&T.length&&(w>T.length-o.length||_<a.length)&&!(O&&o.startsWith(O))&&(e=T);var P=0;e.startsWith(a)?P+=a.length:c<a.length&&(P=c),e=e.substring(P),f-=P;var F=e.length,Z=e.length-o.length;e.endsWith(o)?F=Z:(f>Z||f>e.length-o.length)&&(F=f),e=e.substring(0,F),e=HX(C?"-"+e:e,i),e=(e.match(UX(g,!0))||[]).join("");var be=e.indexOf(g);e=e.replace(new RegExp(cx(g),"g"),function(U,Ce){return Ce===be?".":""});var oe=yh(e,i),Q=oe.beforeDecimal,H=oe.afterDecimal,R=oe.addNegation;return l.end-l.start<u.end-u.start&&Q===""&&p&&!parseFloat(H)&&(e=R?"-":""),e}function qX(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,r.length+(a?1:0));var o=e.length;return i.fill(!1,o-n.length+1,o+1),i}function KX(e){var t=nu(e),r=t.thousandSeparator,n=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),r===n)throw new Error(`
249
249
  Decimal separator can't be same as thousand separator.
250
250
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
251
251
  decimalSeparator: `+n+` (default value for decimalSeparator is .)
@@ -253,8 +253,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
253
253
  Prefix can't start with '-' when allowNegative is true.
254
254
  prefix: `+i+`
255
255
  allowNegative: `+a+`
256
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function XX(e){e=KX(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ln);var a=e.onBlur;a===void 0&&(a=ln);var o=e.thousandSeparator,s=e.decimalScale,u=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l="");var c=e.defaultValue,f=e.value,d=e.valueIsNumericString,h=e.onValueChange,g=lx(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=nu(e),y=p.decimalSeparator,b=p.allowedDecimalSeparators,x=function(R){return yx(R,e)},C=function(R,U){return GX(R,U,e)},k=la(f)?c:f,w=d??YX(k,l,t);la(f)?la(c)||(w=w||typeof c=="number"):w=w||typeof f=="number";var _=function(R){return ux(R)?R:(typeof R=="number"&&(R=hx(R)),w&&typeof s=="number"?px(R,s,!!u):R)},T=vx(_(f),_(c),!!w,x,C,h),O=T[0],P=O.numAsString,F=O.formattedValue,Z=T[1],be=function(R){var U=R.target,Ce=R.key,fe=U.selectionStart,D=U.selectionEnd,$=U.value;if($===void 0&&($=""),fe!==D){i(R);return}Ce==="Backspace"&&$[0]==="-"&&fe===l.length+1&&r&&Rn(U,1),s&&u&&(Ce==="Backspace"&&$[fe-1]===y?(Rn(U,fe-1),R.preventDefault()):Ce==="Delete"&&$[fe]===y&&R.preventDefault()),b!=null&&b.includes(Ce)&&$[fe]===y&&Rn(U,fe+1);var W=o===!0?",":o;Ce==="Backspace"&&$[fe-1]===W&&Rn(U,fe-1),Ce==="Delete"&&$[fe]===W&&Rn(U,fe+1),i(R)},oe=function(R){var U=P;if(U.match(/\d/g)||(U=""),n||(U=FX(U)),u&&s&&(U=px(U,s,u)),U!==P){var Ce=yx(U,e);Z({formattedValue:Ce,value:U,floatValue:parseFloat(U)},{event:R,source:Mo.event})}a(R)},Q=function(R){return R===y?!0:Oo(R)},H=function(R){var U=R.currentValue,Ce=R.lastValue,fe=R.formattedValue,D=R.currentValueIndex,$=R.formattedValueIndex,W=U[D],se=fe[$],X=gx(Ce,U),ce=X.to;return D>=ce.start&&D<ce.end&&b&&b.includes(W)&&se===y?!0:W===se};return Object.assign(Object.assign({},g),{value:F,valueIsNumericString:!1,isValidInputCharacter:Q,isCharacterSame:H,onValueChange:Z,format:x,removeFormatting:C,getCaretBoundary:function(R){return qX(R,e)},onKeyDown:be,onBlur:oe})}function ZX(e){var t=XX(e);return m.createElement(WX,Object.assign({},t))}const iu=m.forwardRef(({decimalScale:e=0,fixedDecimalScale:t=!0,prefix:r,allowNegative:n,minValue:i,maxValue:a=1/0,maxLength:o,value:s,inputProps:u,InputProps:l,size:c,disabled:f,name:d,helperText:h,error:g,fullWidth:p,label:y,required:b,onChange:x,tabIndex:C},k)=>{const w=m.useRef(null),_=T=>{x&&(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{const{floatValue:O}=T,P=O||0;if(i!==void 0&&i>P){x({target:{name:d,value:i}});return}if(O!==void 0&&a<P){x({target:{name:d,value:a}});return}x({target:{name:d,value:O}})},600))};return m.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),v.jsx(ZX,{getInputRef:k,value:s,prefix:r,decimalSeparator:",",thousandSeparator:".",decimalScale:e,fixedDecimalScale:t,autoComplete:"off",allowNegative:n,maxLength:o,onValueChange:_,customInput:E.TextField,InputProps:{...l},inputProps:{...u,tabIndex:C},disabled:f,size:c,helperText:h,error:g,fullWidth:p,label:y,required:b})});iu.displayName="NumberInput";const wh=m.forwardRef(({name:e,increment:t=1,updadteForMultiple:r,allowNegative:n=!1,value:i=0,onChange:a,minValue:o,maxValue:s,decimalScale:u,disabled:l,tabIndex:c,...f},d)=>{const h=ox(i,t,u),g=()=>{if(!n&&i-t<0)return;const b=i-t,x=Math.floor(i/t)*t,C=!h&&r?x:b;o!==void 0&&b<o?a(o):a(yh(C))},p=()=>{const b=Number(i)+t,x=Math.ceil(i/t)*t,k=yh(!h&&r?x:b);s!==void 0&&b>=s?a(s):a(o!==void 0&&k<=o?o:k)},y=b=>{const x=Number(b.target.value),C=Math.ceil(x/t)*t,k=r?C:x;if(o!==void 0&&x<=o){a(o);return}if(s!==void 0&&x>=s){a(s);return}a(k)};return v.jsx(iu,{ref:d,name:e,value:i,minValue:o,maxValue:s,allowNegative:n,decimalScale:u,InputProps:{startAdornment:v.jsx(E.InputAdornment,{position:"start",children:v.jsx(E.IconButton,{size:"medium",disabled:l||(n?!1:!i),onClick:g,children:v.jsx(nt,{icon:"eva:minus-fill",width:14,height:14,color:"primary.main"})})}),endAdornment:v.jsx(E.InputAdornment,{position:"end",children:v.jsx(E.IconButton,{size:"medium",onClick:p,disabled:l,children:v.jsx(nt,{icon:"eva:plus-fill",width:14,height:14,color:"primary.main"})})}),inputProps:{style:{textAlign:"center"}}},inputProps:{tabIndex:c},onChange:y,disabled:l,...f})});wh.displayName="Incrementer";const QX=Xr(E.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",i=t.variant==="outlined",a=t.variant==="soft",o={...t.color==="default"&&{...i&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${L(e.palette.grey[500],.32)}`},...a&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:L(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...i&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...a&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:L(e.palette[t.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"none",padding:e.spacing(0,1),color:e.palette.grey[800],fontSize:e.typography.pxToRem(12),fontFamily:e.typography.fontFamily,backgroundColor:e.palette.grey[300],fontWeight:e.typography.fontWeightBold,...s,...o}}),bx=m.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:i,sx:a,...o},s)=>{const u=hi(),l={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return v.jsxs(QX,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...a},theme:u,...o,children:[n&&v.jsxs(E.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&v.jsxs(E.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});bx.displayName="Label";function un(e){return typeof e=="string"||e instanceof String}function xx(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function wx(e,t){return Array.isArray(t)?wx(e,(r,n)=>t.includes(n)):Object.entries(e).reduce((r,n)=>{let[i,a]=n;return t(a,i)&&(r[i]=a),r},{})}const ue={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function JX(e){switch(e){case ue.LEFT:return ue.FORCE_LEFT;case ue.RIGHT:return ue.FORCE_RIGHT;default:return e}}function Ch(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function au(e,t){if(t===e)return!0;const r=Array.isArray(t),n=Array.isArray(e);let i;if(r&&n){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!au(t[i],e[i]))return!1;return!0}if(r!=n)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){const a=t instanceof Date,o=e instanceof Date;if(a&&o)return t.getTime()==e.getTime();if(a!=o)return!1;const s=t instanceof RegExp,u=e instanceof RegExp;if(s&&u)return t.toString()==e.toString();if(s!=u)return!1;const l=Object.keys(t);for(i=0;i<l.length;i++)if(!Object.prototype.hasOwnProperty.call(e,l[i]))return!1;for(i=0;i<l.length;i++)if(!au(e[l[i]],t[l[i]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}class eZ{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?ue.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?ue.RIGHT:ue.LEFT}}function ye(e,t){return new ye.InputMask(e,t)}function Cx(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?ye.MaskedRegExp:un(e)?ye.MaskedPattern:e===Date?ye.MaskedDate:e===Number?ye.MaskedNumber:Array.isArray(e)||e===Array?ye.MaskedDynamic:ye.Masked&&e.prototype instanceof ye.Masked?e:ye.Masked&&e instanceof ye.Masked?e.constructor:e instanceof Function?ye.MaskedFunction:(console.warn("Mask not found for mask",e),ye.Masked)}function ou(e){if(!e)throw new Error("Options in not defined");if(ye.Masked){if(e.prototype instanceof ye.Masked)return{mask:e};const{mask:t=void 0,...r}=e instanceof ye.Masked?{mask:e}:xx(e)&&e.mask instanceof ye.Masked?e:{};if(t){const n=t.mask;return{...wx(t,(i,a)=>!a.startsWith("_")),mask:t.constructor,_mask:n,...r}}}return xx(e)?{...e}:{mask:e}}function Nn(e){if(ye.Masked&&e instanceof ye.Masked)return e;const t=ou(e),r=Cx(t.mask);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}ye.createMask=Nn;class Sh{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch{}}get isActive(){return!1}}ye.MaskElement=Sh;class Bn extends Sh{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,r,n;return(t=(r=(n=this.input).getRootNode)==null?void 0:r.call(n))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){Object.keys(t).forEach(r=>this._toggleEventHandler(Bn.EVENTS_MAP[r],t[r]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,r){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),r&&(this.input.addEventListener(t,r),this._handlers[t]=r)}}Bn.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},ye.HTMLMaskElement=Bn;class tZ extends Bn{constructor(t){super(t),this.input=t,this._handlers={}}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}ye.HTMLMaskElement=Bn;class Sx extends Bn{get _unsafeSelectionStart(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,r);const i=this.rootElement,a=i.getSelection&&i.getSelection();a&&(a.removeAllRanges(),a.addRange(n))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}ye.HTMLContenteditableMaskElement=Sx;class rZ{constructor(t,r){this.el=t instanceof Sh?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Sx(t):new tZ(t),this.masked=Nn(r),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof ye.Masked)&&this.masked.constructor===Cx(t)){this.masked.updateOptions({mask:t});return}const r=t instanceof ye.Masked?t:Nn({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){const n=this._listeners[t];n&&n.forEach(i=>i(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,r=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==r;this._unmaskedValue=t,this._value=r,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(t){const{mask:r,...n}=t,i=!this.maskEquals(r),a=!au(this.masked,n);i&&(this.mask=r),a&&this.masked.updateOptions(n),(i||a)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ue.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;const n=this._listeners[t].indexOf(r);return n>=0&&this._listeners[t].splice(n,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const r=new eZ({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=n===this.masked.rawInputValue?r.removeDirection:ue.NONE;let o=this.masked.nearestInputPos(r.startChangePos+i,a);a!==ue.NONE&&(o=this.masked.nearestInputPos(o,ue.NONE)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}ye.InputMask=rZ;class qe{static normalize(t){return Array.isArray(t)?t:[t,new qe]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}ye.ChangeDetails=qe;class jr{constructor(t,r,n){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=n}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class qt{constructor(t){this._value="",this._update({...qt.DEFAULTS,...t}),this._initialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new jr(this.extractInput(t,r),t)}appendTail(t){return un(t)&&(t=new jr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new qe({inserted:t,rawInserted:t})):new qe}_appendChar(t,r,n){r===void 0&&(r={});const i=this.state;let a;if([t,a]=this.doPrepareChar(t,r),a=a.aggregate(this._appendCharRaw(t,r)),a.inserted){let o,s=this.doValidate(r)!==!1;if(s&&n!=null){const u=this.state;this.overwrite===!0&&(o=n.state,n.unshift(this.displayValue.length-a.tailShift));let l=this.appendTail(n);s=l.rawInserted===n.toString(),!(s&&l.inserted)&&this.overwrite==="shift"&&(this.state=u,o=n.state,n.shift(),l=this.appendTail(n),s=l.rawInserted===n.toString()),s&&l.inserted&&(this.state=u)}s||(a=new qe,this.state=i,n&&o&&(n.state=o))}return a}_appendPlaceholder(){return new qe}_appendEager(){return new qe}append(t,r,n){if(!un(t))throw new Error("value should be string");const i=un(n)?new jr(String(n)):n;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,r);for(let o=0;o<t.length;++o){const s=this._appendChar(t[o],r,i);if(!s.rawInserted&&!this.doSkipInvalid(t[o],r,i))break;a.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&a.aggregate(this._appendEager()),i!=null&&(a.tailShift+=this.appendTail(i).tailShift),a}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new qe}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;const r=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=r,this.value&&this.value!==n&&n.indexOf(this.value)===0&&this.append(n.slice(this.displayValue.length),{},""),delete this._refreshing,i}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;const r=this.state,n=t(this);return this.state=r,delete this._isolated,n}doSkipInvalid(t,r,n){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),qe.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),qe.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,n,i,a){i===void 0&&(i=ue.NONE),a===void 0&&(a={input:!0});const o=t+r,s=this.extractTail(o),u=this.eager===!0||this.eager==="remove";let l;u&&(i=JX(i),l=this.extractInput(0,o,{raw:!0}));let c=t;const f=new qe;if(i!==ue.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!u?ue.NONE:i),f.tailShift=c-t),f.aggregate(this.remove(c)),u&&i!==ue.NONE&&l===this.rawInputValue)if(i===ue.FORCE_LEFT){let d;for(;l===this.rawInputValue&&(d=this.displayValue.length);)f.aggregate(new qe({tailShift:-1})).aggregate(this.remove(d-1))}else i===ue.FORCE_RIGHT&&s.unshift();return f.aggregate(this.append(n,a,s))}maskEquals(t){return this.mask===t}typedValueEquals(t){const r=this.typedValue;return t===r||qt.EMPTY_VALUES.includes(t)&&qt.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}}qt.DEFAULTS={skipInvalid:!0},qt.EMPTY_VALUES=[void 0,null,""],ye.Masked=qt;class Vn{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=un(t)?new jr(String(t)):t;const r=this.chunks[this.chunks.length-1],n=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof jr)n?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof Vn){if(t.stop==null){let i;for(;t.chunks.length&&t.chunks[0].stop==null;)i=t.chunks.shift(),i.from+=t.from,this.extend(i)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof ye.MaskedPattern))return new jr(this.toString()).appendTo(t);const r=new qe;for(let n=0;n<this.chunks.length&&!r.skip;++n){const i=this.chunks[n],a=t._mapPosToBlock(t.displayValue.length),o=i.stop;let s;if(o!=null&&(!a||a.index<=o)){if(i instanceof Vn||t._stops.indexOf(o)>=0){const u=t._appendPlaceholder(o);r.aggregate(u)}s=i instanceof Vn&&t._blocks[o]}if(s){const u=s.appendTail(i);u.skip=!1,r.aggregate(u),t._value+=u.inserted;const l=i.toString().slice(u.rawInserted.length);l&&r.aggregate(t.append(l,{tail:!0}))}else r.aggregate(t.append(i.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:r,...n}=t;Object.assign(this,n),this.chunks=r.map(i=>{const a="chunks"in i?new Vn:new jr;return a.state=i,a})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const r=t!=null?t-this.from:t;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],a=i.unshift(r);if(i.toString()){if(!a)break;++n}else this.chunks.splice(n,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const r=this.chunks[t],n=r.shift();if(r.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}class nZ{constructor(t,r){this.masked=t,this._log=[];const{offset:n,index:i}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ue.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ue.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ue.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ue.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ue.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ue.NONE),!0})}}class Ex{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new qe}nearestInputPos(t,r){r===void 0&&(r=ue.NONE);const n=0,i=this._value.length;switch(r){case ue.LEFT:case ue.FORCE_LEFT:return n;case ue.NONE:case ue.RIGHT:case ue.FORCE_RIGHT:default:return i}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){r===void 0&&(r={});const n=new qe;if(this.isFilled)return n;const i=this.eager===!0||this.eager==="append",o=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!i)&&!r.tail;return o&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=o&&(r.raw||r.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new qe;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new jr("")}appendTail(t){return un(t)&&(t=new jr(String(t))),t.appendTo(this)}append(t,r,n){const i=this._appendChar(t[0],r);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}}class su{constructor(t){const{parent:r,isOptional:n,placeholderChar:i,displayChar:a,lazy:o,eager:s,...u}=t;this.masked=Nn(u),Object.assign(this,{parent:r,isOptional:n,placeholderChar:i,displayChar:a,lazy:o,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new qe}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new qe;const n=this.masked.state,i=this.masked._appendChar(t,this.currentMaskFlags(r));return i.inserted&&this.doValidate(r)===!1&&(i.inserted=i.rawInserted="",this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(t,r,n){return this.masked.append(t,this.currentMaskFlags(r),n)}_appendPlaceholder(){const t=new qe;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new qe}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,n)}nearestInputPos(t,r){r===void 0&&(r=ue.NONE);const n=0,i=this.value.length,a=Math.min(Math.max(t,n),i);switch(r){case ue.LEFT:case ue.FORCE_LEFT:return this.isComplete?a:n;case ue.RIGHT:case ue.FORCE_RIGHT:return this.isComplete?a:i;case ue.NONE:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return{...t,_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)}}}su.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class iZ extends qt{updateOptions(t){super.updateOptions(t)}_update(t){const r=t.mask;r&&(t.validate=n=>n.search(r)>=0),super._update(t)}}ye.MaskedRegExp=iZ;class Kt extends qt{constructor(t){super({...Kt.DEFAULTS,...t,definitions:Object.assign({},su.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const r=this.mask;if(!r||!t)return;let n=!1,i=!1;for(let a=0;a<r.length;++a){if(this.blocks){const l=r.slice(a),c=Object.keys(this.blocks).filter(d=>l.indexOf(d)===0);c.sort((d,h)=>h.length-d.length);const f=c[0];if(f){const{expose:d,...h}=ou(this.blocks[f]),g=Nn({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,...h,parent:this});g&&(this._blocks.push(g),d&&(this.exposeBlock=g),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),a+=f.length-1;continue}}let o=r[a],s=o in t;if(o===Kt.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(o==="{"||o==="}"){n=!n;continue}if(o==="["||o==="]"){i=!i;continue}if(o===Kt.ESCAPE_CHAR){if(++a,o=r[a],!o)break;s=!1}const u=s?new su({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...ou(t[o]),parent:this}):new Ex({char:o,eager:this.eager,isUnmasking:n});this._blocks.push(u)}}get state(){return{...super.state,_blocks:this._blocks.map(t=>t.state)}}set state(t){const{_blocks:r,...n}=t;this._blocks.forEach((i,a)=>i.state=r[a]),super.state=n}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const r=new qe;let n=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(n==null)return r;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const a=this._blocks[i]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._mapPosToBlock(this.displayValue.length),i=new qe;if(!n)return i;for(let o=n.index;;++o){var a;const s=this._blocks[o];if(!s)break;const u=s._appendChar(t,{...r,_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[o]}),l=u.skip;if(i.aggregate(u),l||u.rawInserted)break}return i}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=new Vn;return t===r||this._forEachBlocksInRange(t,r,(i,a,o,s)=>{const u=i.extractTail(o,s);u.stop=this._findStopBefore(a),u.from=this._blockStartPos(a),u instanceof Vn&&(u.blockIndex=a),n.extend(u)}),n}extractInput(t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),n===void 0&&(n={}),t===r)return"";let i="";return this._forEachBlocksInRange(t,r,(a,o,s,u)=>{i+=a.extractInput(s,u,n)}),i}_findStopBefore(t){let r;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=t)r=i;else break}return r}_appendPlaceholder(t){const r=new qe;if(this.lazy&&t==null)return r;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return r;const i=n.index,a=t??this._blocks.length;return this._blocks.slice(i,a).forEach(o=>{if(!o.lazy||t!=null){var s;const u=o._appendPlaceholder((s=o._blocks)==null?void 0:s.length);this._value+=u.inserted,r.aggregate(u)}}),r}_mapPosToBlock(t){let r="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],a=r.length;if(r+=i.displayValue,t<=r.length)return{index:n,offset:t-a}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,n)=>r+=n.displayValue.length,0)}_forEachBlocksInRange(t,r,n){r===void 0&&(r=this.displayValue.length);const i=this._mapPosToBlock(t);if(i){const a=this._mapPosToBlock(r),o=a&&i.index===a.index,s=i.offset,u=a&&o?a.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,s,u),a&&!o){for(let l=i.index+1;l<a.index;++l)n(this._blocks[l],l,0,this._blocks[l].displayValue.length);n(this._blocks[a.index],a.index,0,a.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._forEachBlocksInRange(t,r,(i,a,o,s)=>{n.aggregate(i.remove(o,s))}),n}nearestInputPos(t,r){if(r===void 0&&(r=ue.NONE),!this._blocks.length)return 0;const n=new nZ(this,t);if(r===ue.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(r===ue.LEFT||r===ue.FORCE_LEFT){if(r===ue.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),r===ue.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t||(n.popState(),n.ok&&n.pos<=t))return n.pos;n.popState()}return n.ok?n.pos:r===ue.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return r===ue.RIGHT||r===ue.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:r===ue.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(t,ue.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let n=0;return this._forEachBlocksInRange(t,r,(i,a,o,s)=>{n+=i.totalInputPositions(o,s)}),n}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const r=this._maskedBlocks[t];return r?r.map(n=>this._blocks[n]):[]}}Kt.DEFAULTS={lazy:!0,placeholderChar:"_"},Kt.STOP_CHAR="`",Kt.ESCAPE_CHAR="\\",Kt.InputDefinition=su,Kt.FixedDefinition=Ex,ye.MaskedPattern=Kt;class lu extends Kt{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:r=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:a=this.autofix,...o}=t;this.to=r,this.from=n,this.maxLength=Math.max(String(r).length,i),this.autofix=a;const s=String(this.from).padStart(this.maxLength,"0"),u=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<u.length&&u[l]===s[l];)++l;o.mask=u.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(o)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",n="";const[,i,a]=t.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(i.length)+a,n="9".repeat(i.length)+a),r=r.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[r,n]}doPrepareChar(t,r){r===void 0&&(r={});let n;if([t,n]=super.doPrepareChar(t.replace(/\D/g,""),r),!this.autofix||!t)return[t,n];const i=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0"),o=this.value+t;if(o.length>this.maxLength)return["",n];const[s,u]=this.boundaries(o);return Number(u)<this.from?[i[o.length-1],n]:Number(s)>this.to?this.autofix==="pad"&&o.length<this.maxLength?["",n.aggregate(this.append(i[o.length-1]+t,r))]:[a[o.length-1],n]:[t,n]}doValidate(t){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[i,a]=this.boundaries(r);return this.from<=Number(a)&&Number(i)<=this.to&&super.doValidate(t)}}ye.MaskedRange=lu;class zn extends Kt{constructor(t){const{mask:r,pattern:n,...i}={...zn.DEFAULTS,...t};super({...i,mask:un(r)?r:n})}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:r,pattern:n,blocks:i,...a}={...zn.DEFAULTS,...t},o=Object.assign({},zn.GET_DEFAULT_BLOCKS());t.min&&(o.Y.from=t.min.getFullYear()),t.max&&(o.Y.to=t.max.getFullYear()),t.min&&t.max&&o.Y.from===o.Y.to&&(o.m.from=t.min.getMonth()+1,o.m.to=t.max.getMonth()+1,o.m.from===o.m.to&&(o.d.from=t.min.getDate(),o.d.to=t.max.getDate())),Object.assign(o,this.blocks,i),Object.keys(o).forEach(s=>{const u=o[s];!("autofix"in u)&&"autofix"in t&&(u.autofix=t.autofix)}),super._update({...a,mask:un(r)?r:n,blocks:o})}doValidate(t){const r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}zn.GET_DEFAULT_BLOCKS=()=>({d:{mask:lu,from:1,to:31,maxLength:2},m:{mask:lu,from:1,to:12,maxLength:2},Y:{mask:lu,from:1900,to:9999}}),zn.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return[r,n,i].join(".")},parse:(e,t)=>{const[r,n,i]=e.split(".").map(Number);return new Date(i,n-1,r)}},ye.MaskedDate=zn;class Ao extends qt{constructor(t){super({...Ao.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{const{expose:n,...i}=ou(r),a=Nn({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=a),a}):[])}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._applyDispatch(t,r);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),n}_applyDispatch(t,r,n){t===void 0&&(t=""),r===void 0&&(r={}),n===void 0&&(n="");const i=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,o=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,s=a.slice(o.length),u=this.currentMask,l=new qe,c=u==null?void 0:u.state;if(this.currentMask=this.doDispatch(t,{...r},n),this.currentMask)if(this.currentMask!==u){if(this.currentMask.reset(),o){const f=this.currentMask.append(o,{raw:!0});l.tailShift=f.inserted.length-i.length}s&&(l.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else c&&(this.currentMask.state=c);return l}_appendPlaceholder(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const r=new qe;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,n;return{...t,_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((n=t._beforeTailState)==null?void 0:n.currentMask)||t._beforeTailState}}doDispatch(t,r,n){return r===void 0&&(r={}),n===void 0&&(n=""),this.dispatch(t,this,r,n)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[n,i]=super.doPrepare(t,r);if(this.currentMask){let a;[n,a]=super.doPrepare(n,this.currentMaskFlags(r)),i=i.aggregate(a)}return[n,i]}doPrepareChar(t,r){r===void 0&&(r={});let[n,i]=super.doPrepareChar(t,r);if(this.currentMask){let a;[n,a]=super.doPrepareChar(n,this.currentMaskFlags(r)),i=i.aggregate(a)}return[n,i]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){const n=new qe;return this.currentMask&&n.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),n}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:r,currentMaskRef:n,currentMask:i,...a}=t;r&&this.compiledMasks.forEach((o,s)=>o.state=r[s]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=a}extractInput(t,r,n){return this.currentMask?this.currentMask.extractInput(t,r,n):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,n)=>{if(!t[n])return;const{mask:i,...a}=t[n];return au(r,a)&&r.maskEquals(i)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}}Ao.DEFAULTS=void 0,Ao.DEFAULTS={dispatch:(e,t,r,n)=>{if(!t.compiledMasks.length)return;const i=t.rawInputValue,a=t.compiledMasks.map((o,s)=>{const u=t.currentMask===o,l=u?o.displayValue.length:o.nearestInputPos(o.displayValue.length,ue.FORCE_LEFT);return o.rawInputValue!==i?(o.reset(),o.append(i,{raw:!0})):u||o.remove(l),o.append(e,t.currentMaskFlags(r)),o.appendTail(n),{index:s,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(l,o.nearestInputPos(o.displayValue.length,ue.FORCE_LEFT)))}});return a.sort((o,s)=>s.weight-o.weight||s.totalInputPositions-o.totalInputPositions),t.compiledMasks[a[0].index]}},ye.MaskedDynamic=Ao;class aZ extends Kt{constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:r,...n}=t;if(r){const i=r.map(s=>s.length),a=Math.min(...i),o=Math.max(...i)-a;n.mask="*".repeat(a),o&&(n.mask+="["+"*".repeat(o)+"]"),this.enum=r}super._update(n)}doValidate(t){return this.enum.some(r=>r.indexOf(this.unmaskedValue)===0)&&super.doValidate(t)}}ye.MaskedEnum=aZ;class oZ extends qt{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}ye.MaskedFunction=oZ;class rr extends qt{constructor(t){super({...rr.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",n=(this.scale?"("+Ch(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ch).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ch(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(t,r){r===void 0&&(r=!1);let n=0;for(let i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,r&&(t+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,n))}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.thousandsSeparator)return super._appendCharRaw(t,r);const n=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const a=super._appendCharRaw(t,r);this._value=this._insertThousandsSeparators(this._value);const o=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(o);return a.tailShift+=(s-i)*this.thousandsSeparator.length,a.skip=!a.rawInserted&&t===this.thousandsSeparator,a}_findSeparatorAround(t){if(this.thousandsSeparator){const r=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,r);if(n<=t)return n}return-1}_adjustRangeWithSeparators(t,r){const n=this._findSeparatorAround(t);n>=0&&(t=n);const i=this._findSeparatorAround(r);return i>=0&&(r=i+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);const n=this.value.slice(0,t),i=this.value.slice(r),a=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const o=this._separatorsCountFromSlice(n);return new qe({tailShift:(o-a)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case ue.NONE:case ue.LEFT:case ue.FORCE_LEFT:{const n=this._findSeparatorAround(t-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||r===ue.FORCE_LEFT)return n}break}case ue.RIGHT:case ue.FORCE_RIGHT:{const n=this._findSeparatorAround(t);if(n>=0)return n+this.thousandsSeparator.length}}return t}doValidate(t){let r=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(r){const n=this.number;r=r&&!isNaN(n)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return r&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(t){const r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(n,i,a,o)=>i+o),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,n){r===void 0&&(r={});const i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===rr.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,rr.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(rr.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||rr.EMPTY_VALUES.includes(t)&&rr.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}rr.UNMASKED_RADIX=".",rr.EMPTY_VALUES=[...qt.EMPTY_VALUES,0],rr.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[rr.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ye.MaskedNumber=rr;const Eh={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Tx(e,t,r){t===void 0&&(t=Eh.MASKED),r===void 0&&(r=Eh.MASKED);const n=Nn(e);return i=>n.runIsolated(a=>(a[t]=i,a[r]))}function sZ(e,t,r,n){return Tx(t,r,n)(e)}ye.PIPE_TYPE=Eh,ye.createPipe=Tx,ye.pipe=sZ;try{globalThis.IMask=ye}catch{}const _x={mask:M.oneOfType([M.array,M.func,M.string,M.instanceOf(RegExp),M.oneOf([Date,Number,ye.Masked]),M.instanceOf(ye.Masked)]),value:M.any,unmask:M.oneOfType([M.bool,M.oneOf(["typed"])]),prepare:M.func,prepareChar:M.func,validate:M.func,commit:M.func,overwrite:M.oneOfType([M.bool,M.oneOf(["shift"])]),eager:M.oneOfType([M.bool,M.oneOf(["append","remove"])]),skipInvalid:M.bool,onAccept:M.func,onComplete:M.func,placeholderChar:M.string,displayChar:M.string,lazy:M.bool,definitions:M.object,blocks:M.object,enum:M.arrayOf(M.string),maxLength:M.number,from:M.number,to:M.number,pattern:M.string,format:M.func,parse:M.func,autofix:M.oneOfType([M.bool,M.oneOf(["pad"])]),radix:M.string,thousandsSeparator:M.string,mapToRadix:M.arrayOf(M.string),scale:M.number,normalizeZeros:M.bool,padFractionalZeros:M.bool,min:M.oneOfType([M.number,M.instanceOf(Date)]),max:M.oneOfType([M.number,M.instanceOf(Date)]),dispatch:M.func,inputRef:M.oneOfType([M.func,M.shape({current:M.object})])},kx=Object.keys(_x).filter(e=>e!=="value"),lZ=["value","unmask","onAccept","onComplete","inputRef"],uZ=kx.filter(e=>lZ.indexOf(e)<0);function Mx(e){var t;const r=(t=class extends m.Component{constructor(a){super(a),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const a=this.props,o=this._extractMaskOptionsFromProps(a);if(o.mask)this.maskRef?(this.maskRef.updateOptions(o),"value"in a&&a.value!==void 0&&(this.maskValue=a.value)):this.initMask(o);else if(this.destroyMask(),"value"in a&&a.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=a.value:this.element.value=a.value}}componentWillUnmount(){this.destroyMask()}_inputRef(a){this.element=a,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=a:this.props.inputRef(a))}initMask(a){a===void 0&&(a=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ye(this.element,a).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(a){const{...o}=a;return Object.keys(o).filter(s=>uZ.indexOf(s)<0).forEach(s=>{delete o[s]}),o}_extractNonMaskProps(a){const{...o}=a;return kx.forEach(s=>{delete o[s]}),"defaultValue"in o||(o.defaultValue=a.mask?"":o.value),delete o.value,o}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(a){this.maskRef&&(a=a==null&&this.props.unmask!=="typed"?"":a,this.props.unmask==="typed"?this.maskRef.typedValue=a:this.props.unmask?this.maskRef.unmaskedValue=a:this.maskRef.value=a)}_onAccept(a){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,a)}_onComplete(a){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,a)}render(){return m.createElement(e,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},t.displayName=void 0,t.propTypes=void 0,t),n=e.displayName||e.name||"Component";return r.displayName="IMask("+n+")",r.propTypes=_x,m.forwardRef((i,a)=>m.createElement(r,{...i,ref:a}))}const cZ=Mx(e=>{let{inputRef:t,...r}=e;return m.createElement("input",{...r,ref:t})}),fZ=(e,t)=>m.createElement(cZ,{...e,ref:t});m.forwardRef(fZ);const dZ=Mx(e=>{const{inputRef:t,"data-value":r,defaultValue:n,tabIndex:i,...a}=e;return v.jsx(E.TextField,{inputRef:t,fullWidth:!0,...a,inputProps:{...a.inputProps,tabIndex:i},value:r})}),Th=m.forwardRef(({onChange:e,name:t,...r},n)=>{const[i,a]=m.useState("");return v.jsx(dZ,{inputRef:n,name:t,"data-value":i,...r,onAccept:(o,s)=>{a(o),e({target:{name:t,value:s._unmaskedValue}})}})});Th.displayName="MaskedInput";function hZ(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const pZ=Xr("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${L(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},o={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},s={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...o,left:20},...e==="bottom-center"&&{...o,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...o,right:20},...e==="left-top"&&{...s,top:20},...e==="left-center"&&{...s,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...s,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}}),gZ=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...a})=>{const{style:o,anchorOrigin:s,transformOrigin:u}=hZ(r);return v.jsxs(E.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:u,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...o,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!n&&v.jsx(pZ,{arrow:r}),t]})},mZ=E.styled(E.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[300]}`,button:{marginRight:24}})),vZ=E.styled(E.DialogContent)({padding:"24px !important"}),yZ=E.styled(E.DialogActions)(({theme:e})=>({borderTop:`1px solid ${e.palette.grey[300]}`,backgroundColor:e.palette.grey[50]})),bZ=({children:e,actionsProps:t})=>v.jsx(yZ,{sx:{borderTop:"1px solid",borderColor:"grey.300",backgroundColor:"grey.50"},...t,children:e}),Ox=({actions:e,actionsProps:t,children:r,dialogContentProps:n,dialogTitle:i,dialogTitleProps:a,onClose:o,id:s,...u})=>{const l=s||"modal-actions";return v.jsxs(E.Dialog,{id:s,scroll:"body",...u,onClose:o,children:[v.jsxs(mZ,{children:[i&&v.jsx(E.DialogTitle,{variant:"subtitle1",...a,children:i}),v.jsx(E.IconButton,{onClick:o,children:v.jsx(nt,{icon:"ic:round-close"})})]}),v.jsx(vZ,{...n,children:r}),e&&v.jsx(bZ,{actionsProps:{...t,id:l},children:e})]})},Ax=({children:e,container:t,waitBeforeShow:r=50})=>{const[n,i]=m.useState(!1);return m.useEffect(()=>{const a=setTimeout(()=>i(!0),r);return()=>clearTimeout(a)},[r]),n?Nh.createPortal(e,document.getElementById(t)||document.body):null},xZ=({children:e,id:t="modal-actions"})=>v.jsx(Ax,{container:t,children:e}),wZ=e=>{if(!e||(e=e==null?void 0:e.replace(/[^\d]+/g,""),e.length!==11||e==="00000000000"||e==="11111111111"||e==="22222222222"||e==="33333333333"||e==="44444444444"||e==="55555555555"||e==="66666666666"||e==="77777777777"||e==="88888888888"||e==="99999999999"))return!1;let t=0;for(let n=0;n<9;n++)t+=parseInt(e.charAt(n))*(10-n);let r=11-t%11;if((r===10||r===11)&&(r=0),r!==parseInt(e.charAt(9)))return!1;t=0;for(let n=0;n<10;n++)t+=parseInt(e.charAt(n))*(11-n);return r=11-t%11,(r===10||r===11)&&(r=0),r===parseInt(e.charAt(10))},CZ=e=>{if(!e||(e=e.replace(/[^\d]+/g,""),e.length!==14)||e==="00000000000000"||e==="11111111111111"||e==="22222222222222"||e==="33333333333333"||e==="44444444444444"||e==="55555555555555"||e==="66666666666666"||e==="77777777777777"||e==="88888888888888"||e==="99999999999999")return!1;let t=e.length-2,r=e.substring(0,t);const n=e.substring(t);let i=0,a=t-7;for(let s=t;s>=1;s--)i+=parseInt(r.charAt(t-s))*a--,a<2&&(a=9);let o=i%11<2?0:11-i%11;if(o!==parseInt(n.charAt(0)))return!1;t+=1,r=e.substring(0,t),i=0,a=t-7;for(let s=t;s>=1;s--)i+=parseInt(r.charAt(t-s))*a--,a<2&&(a=9);return o=i%11<2?0:11-i%11,o===parseInt(n.charAt(1))},uu=(e="",t=[8,20],r=!1,n=!1,i=!1)=>{const a=e.length>=t[0]&&e.length<=t[1],o=!i||/[A-Z]/.test(e),s=!n||/[!@#$%^&*(),.?":{}|<>]/.test(e),u=!r||/\d/.test(e);return{isLengthValid:a,hasUpperCaseChar:o,hasSpecialCharacter:s,hasNumberChar:u}},SZ=Object.freeze(Object.defineProperty({__proto__:null,cnpjIsValid:CZ,cpfIsValid:wZ,validatePassword:uu},Symbol.toStringTag,{value:"Module"})),EZ=E.styled(E.Stack)(({theme:e})=>({width:"100%",border:`solid 1px ${E.alpha(e.palette.grey[500],.32)}`,padding:16,borderRadius:8,gap:8})),TZ=E.styled(E.Stack)(()=>({gap:4})),cu=E.styled(E.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",gap:8,color:e.palette.text.secondary,div:{fontSize:12},strong:{fontWeight:700,color:e.palette.text.primary}})),fu=({passed:e})=>e?v.jsx(nt,{icon:"ic:round-check",color:"success.main"}):v.jsx(nt,{icon:"ic:outline-warning",color:"warning.main"}),_Z=({password:e,passwordSize:t,numberChar:r=!1,specialCharacter:n=!1,upperCaseChar:i=!1})=>{const{hasSpecialCharacter:a,hasUpperCaseChar:o,isLengthValid:s,hasNumberChar:u}=uu(e,t,r,n,i);return v.jsxs(EZ,{children:[v.jsx(E.Typography,{color:"text.secondary",variant:"body2",children:"Sua senha deve conter:"}),v.jsxs(TZ,{children:[v.jsxs(cu,{children:[v.jsx(fu,{passed:s}),v.jsxs(E.Typography,{component:"div",children:[v.jsxs("strong",{children:[t[0],"-",t[1]]})," ","caracteres"]})]}),i&&v.jsxs(cu,{children:[v.jsx(fu,{passed:o}),v.jsxs(E.Typography,{component:"div",children:["Pelo menos uma ",v.jsx("strong",{children:"letra maiúscula"})]})]}),r&&v.jsxs(cu,{children:[v.jsx(fu,{passed:u}),v.jsxs(E.Typography,{component:"div",children:["Pelo menos ",v.jsx("strong",{children:"um número"})]})]}),n&&v.jsxs(cu,{children:[v.jsx(fu,{passed:a}),v.jsxs(E.Typography,{component:"div",children:["Pelo menos um ",v.jsx("strong",{children:"caracter especial"})," ",v.jsx("span",{children:"(#,@,!,?)"})]})]})]})]})},kZ=({onSearch:e,onChange:t,trigger:r="click",iconPosition:n="end",tabIndex:i,...a})=>{const o=m.useRef(null),s=v.jsx(E.InputAdornment,{position:n,children:v.jsx(E.IconButton,{color:"inherit",onClick:()=>{var u;e((u=o.current)==null?void 0:u.value)},children:v.jsx(nt,{icon:"eva:search-fill",sx:{width:20,height:20}})})});return v.jsx(E.TextField,{inputRef:o,InputProps:{onKeyDown:u=>{var l;u.key==="Enter"&&e((l=o.current)==null?void 0:l.value)},...n==="start"?{startAdornment:s}:{endAdornment:s}},inputProps:{tabIndex:i,...a.inputProps},onChange:u=>{if(r==="change"){e(u.target.value);return}u.target.value===""&&e(""),t&&t(u)},...a})},MZ=E.styled(E.StepConnector)(({theme:e})=>({top:10,left:"calc(-50% + 20px)",right:"calc(50% + 20px)","& .MuiStepConnector-line":{borderTopWidth:2,borderColor:e.palette.divider},"&.Mui-active, &.Mui-completed":{"& .MuiStepConnector-line":{borderColor:e.palette.primary.main}}})),OZ=({active:e,completed:t})=>v.jsx(E.Stack,{alignItems:"center",justifyContent:"center",sx:{width:24,height:24,color:"text.disabled",...e&&{color:"primary.main"}},children:t?v.jsx(nt,{icon:"eva:checkmark-fill",sx:{color:"primary.main"}}):v.jsx(E.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"currentColor"}})}),AZ=({steps:e,activeStep:t,showLabels:r=!0,sx:n,...i})=>v.jsx(E.Stepper,{alternativeLabel:!0,activeStep:t,connector:v.jsx(MZ,{}),sx:n,...i,children:e.map(a=>v.jsx(E.Step,{children:v.jsx(E.StepLabel,{StepIconComponent:OZ,sx:{"& .MuiStepLabel-label":{typography:"subtitle2"}},children:r&&a})},a))}),PZ=({children:e,value:t,index:r,sx:n})=>v.jsx(E.Box,{role:"tabpanel",id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,sx:{mt:3,...t.toString()!==r.toString()&&{position:"absolute",width:"100%",height:0,overflow:"hidden",visibility:"hidden"},...n},children:e});function ua(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{l(n.next(c))}catch(f){o(f)}}function u(c){try{l(n.throw(c))}catch(f){o(f)}}function l(c){c.done?a(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function ca(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Px(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Dx(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var DZ=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Po(e,t){var r=$Z(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function $Z(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=DZ.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var FZ=[".DS_Store","Thumbs.db"];function IZ(e){return ua(this,void 0,void 0,function(){return ca(this,function(t){return du(e)&&jZ(e.dataTransfer)?[2,BZ(e.dataTransfer,e.type)]:LZ(e)?[2,RZ(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,NZ(e)]:[2,[]]})})}function jZ(e){return du(e)}function LZ(e){return du(e)&&du(e.target)}function du(e){return typeof e=="object"&&e!==null}function RZ(e){return _h(e.target.files).map(function(t){return Po(t)})}function NZ(e){return ua(this,void 0,void 0,function(){var t;return ca(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Po(n)})]}})})}function BZ(e,t){return ua(this,void 0,void 0,function(){var r,n;return ca(this,function(i){switch(i.label){case 0:return e.items?(r=_h(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(VZ))]):[3,2];case 1:return n=i.sent(),[2,$x(Fx(n))];case 2:return[2,$x(_h(e.files).map(function(a){return Po(a)}))]}})})}function $x(e){return e.filter(function(t){return FZ.indexOf(t.name)===-1})}function _h(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function VZ(e){if(typeof e.webkitGetAsEntry!="function")return Ix(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?jx(t):Ix(e)}function Fx(e){return e.reduce(function(t,r){return Dx(Dx([],Px(t),!1),Px(Array.isArray(r)?Fx(r):[r]),!1)},[])}function Ix(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=Po(t);return Promise.resolve(r)}function zZ(e){return ua(this,void 0,void 0,function(){return ca(this,function(t){return[2,e.isDirectory?jx(e):WZ(e)]})})}function jx(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function a(){var o=this;t.readEntries(function(s){return ua(o,void 0,void 0,function(){var u,l,c;return ca(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=f.sent(),r(u),[3,4];case 3:return l=f.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(zZ)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}a()})}function WZ(e){return ua(this,void 0,void 0,function(){return ca(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var a=Po(i,e.fullPath);r(a)},function(i){n(i)})})]})})}var HZ=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return r.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function Lx(e){return GZ(e)||YZ(e)||Vx(e)||UZ()}function UZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
257
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GZ(e){if(Array.isArray(e))return kh(e)}function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rx(Object(r),!0).forEach(function(n){Bx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Do(e,t){return XZ(e)||KZ(e,t)||Vx(e,t)||qZ()}function qZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
258
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vx(e,t){if(e){if(typeof e=="string")return kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kh(e,t)}}function kh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function XZ(e){if(Array.isArray(e))return e}var ZZ="file-invalid-type",QZ="file-too-large",JZ="file-too-small",eQ="too-many-files",tQ=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:ZZ,message:"File type must be ".concat(r)}},zx=function(t){return{code:QZ,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Wx=function(t){return{code:JZ,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},rQ={code:eQ,message:"Too many files"};function Hx(e,t){var r=e.type==="application/x-moz-file"||HZ(e,t);return[r,r?null:tQ(t)]}function Ux(e,t,r){if(Wn(e.size))if(Wn(t)&&Wn(r)){if(e.size>r)return[!1,zx(r)];if(e.size<t)return[!1,Wx(t)]}else{if(Wn(t)&&e.size<t)return[!1,Wx(t)];if(Wn(r)&&e.size>r)return[!1,zx(r)]}return[!0,null]}function Wn(e){return e!=null}function nQ(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(u){var l=Hx(u,r),c=Do(l,1),f=c[0],d=Ux(u,n,i),h=Do(d,1),g=h[0],p=s?s(u):null;return f&&g&&!p})}function hu(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function pu(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Yx(e){e.preventDefault()}function iQ(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function aQ(e){return e.indexOf("Edge/")!==-1}function oQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return iQ(e)||aQ(e)}function Cr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return!hu(n)&&s&&s.apply(void 0,[n].concat(a)),hu(n)})}}function sQ(){return"showOpenFilePicker"in window}function lQ(e){if(Wn(e)){var t=Object.entries(e).filter(function(r){var n=Do(r,2),i=n[0],a=n[1],o=!0;return Gx(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(qx))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(r,n){var i=Do(n,2),a=i[0],o=i[1];return Nx(Nx({},r),{},Bx({},a,o))},{});return[{description:"Files",accept:t}]}return e}function uQ(e){if(Wn(e))return Object.entries(e).reduce(function(t,r){var n=Do(r,2),i=n[0],a=n[1];return[].concat(Lx(t),[i],Lx(a))},[]).filter(function(t){return Gx(t)||qx(t)}).join(",")}function cQ(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function fQ(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Gx(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function qx(e){return/^.*\.[\w]+$/.test(e)}var dQ=["children"],hQ=["open"],pQ=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],gQ=["refKey","onChange","onClick"];function mQ(e){return bQ(e)||yQ(e)||Kx(e)||vQ()}function vQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
259
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bQ(e){if(Array.isArray(e))return Oh(e)}function Mh(e,t){return CQ(e)||wQ(e,t)||Kx(e,t)||xQ()}function xQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
260
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kx(e,t){if(e){if(typeof e=="string")return Oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oh(e,t)}}function Oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function CQ(e){if(Array.isArray(e))return e}function Xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xx(Object(r),!0).forEach(function(n){Ah(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ah(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gu(e,t){if(e==null)return{};var r=SQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ph=m.forwardRef(function(e,t){var r=e.children,n=gu(e,dQ),i=mu(n),a=i.open,o=gu(i,hQ);return m.useImperativeHandle(t,function(){return{open:a}},[a]),m.createElement(m.Fragment,null,r(st(st({},o),{},{open:a})))});Ph.displayName="Dropzone";var Zx={disabled:!1,getFilesFromEvent:IZ,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ph.defaultProps=Zx,Ph.propTypes={children:M.func,accept:M.objectOf(M.arrayOf(M.string)),multiple:M.bool,preventDropOnDocument:M.bool,noClick:M.bool,noKeyboard:M.bool,noDrag:M.bool,noDragEventsBubbling:M.bool,minSize:M.number,maxSize:M.number,maxFiles:M.number,disabled:M.bool,getFilesFromEvent:M.func,onFileDialogCancel:M.func,onFileDialogOpen:M.func,useFsAccessApi:M.bool,autoFocus:M.bool,onDragEnter:M.func,onDragLeave:M.func,onDragOver:M.func,onDrop:M.func,onDropAccepted:M.func,onDropRejected:M.func,onError:M.func,validator:M.func};var Dh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function mu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=st(st({},Zx),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,C=t.preventDropOnDocument,k=t.noClick,w=t.noKeyboard,_=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,P=t.validator,F=m.useMemo(function(){return uQ(r)},[r]),Z=m.useMemo(function(){return lQ(r)},[r]),be=m.useMemo(function(){return typeof y=="function"?y:Qx},[y]),oe=m.useMemo(function(){return typeof p=="function"?p:Qx},[p]),Q=m.useRef(null),H=m.useRef(null),R=m.useReducer(EQ,Dh),U=Mh(R,2),Ce=U[0],fe=U[1],D=Ce.isFocused,$=Ce.isFileDialogActive,W=m.useRef(typeof window<"u"&&window.isSecureContext&&b&&sQ()),se=function(){!W.current&&$&&setTimeout(function(){if(H.current){var he=H.current.files;he.length||(fe({type:"closeDialog"}),oe())}},300)};m.useEffect(function(){return window.addEventListener("focus",se,!1),function(){window.removeEventListener("focus",se,!1)}},[H,$,oe,W]);var X=m.useRef([]),ce=function(he){Q.current&&Q.current.contains(he.target)||(he.preventDefault(),X.current=[])};m.useEffect(function(){return C&&(document.addEventListener("dragover",Yx,!1),document.addEventListener("drop",ce,!1)),function(){C&&(document.removeEventListener("dragover",Yx),document.removeEventListener("drop",ce))}},[Q,C]),m.useEffect(function(){return!n&&x&&Q.current&&Q.current.focus(),function(){}},[Q,x,n]);var ne=m.useCallback(function(z){O?O(z):console.error(z)},[O]),le=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z),X.current=[].concat(mQ(X.current),[z.target]),pu(z)&&Promise.resolve(i(z)).then(function(he){if(!(hu(z)&&!T)){var lt=he.length,ut=lt>0&&nQ({files:he,accept:F,minSize:o,maxSize:a,multiple:s,maxFiles:u,validator:P}),Pt=lt>0&&!ut;fe({isDragAccept:ut,isDragReject:Pt,isDragActive:!0,type:"setDraggedFiles"}),l&&l(z)}}).catch(function(he){return ne(he)})},[i,l,ne,T,F,o,a,s,u,P]),ee=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z);var he=pu(z);if(he&&z.dataTransfer)try{z.dataTransfer.dropEffect="copy"}catch{}return he&&f&&f(z),!1},[f,T]),q=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z);var he=X.current.filter(function(ut){return Q.current&&Q.current.contains(ut)}),lt=he.indexOf(z.target);lt!==-1&&he.splice(lt,1),X.current=he,!(he.length>0)&&(fe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),pu(z)&&c&&c(z))},[Q,c,T]),te=m.useCallback(function(z,he){var lt=[],ut=[];z.forEach(function(Pt){var cn=Hx(Pt,F),Rr=Mh(cn,2),Un=Rr[0],$o=Rr[1],Fo=Ux(Pt,o,a),fa=Mh(Fo,2),Io=fa[0],jo=fa[1],Lo=P?P(Pt):null;if(Un&&Io&&!Lo)lt.push(Pt);else{var Ro=[$o,jo];Lo&&(Ro=Ro.concat(Lo)),ut.push({file:Pt,errors:Ro.filter(function(No){return No})})}}),(!s&&lt.length>1||s&&u>=1&&lt.length>u)&&(lt.forEach(function(Pt){ut.push({file:Pt,errors:[rQ]})}),lt.splice(0)),fe({acceptedFiles:lt,fileRejections:ut,type:"setFiles"}),d&&d(lt,ut,he),ut.length>0&&g&&g(ut,he),lt.length>0&&h&&h(lt,he)},[fe,s,F,o,a,u,d,h,g,P]),Se=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z),X.current=[],pu(z)&&Promise.resolve(i(z)).then(function(he){hu(z)&&!T||te(he,z)}).catch(function(he){return ne(he)}),fe({type:"reset"})},[i,te,ne,T]),j=m.useCallback(function(){if(W.current){fe({type:"openDialog"}),be();var z={multiple:s,types:Z};window.showOpenFilePicker(z).then(function(he){return i(he)}).then(function(he){te(he,null),fe({type:"closeDialog"})}).catch(function(he){cQ(he)?(oe(he),fe({type:"closeDialog"})):fQ(he)?(W.current=!1,H.current?(H.current.value=null,H.current.click()):ne(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ne(he)});return}H.current&&(fe({type:"openDialog"}),be(),H.current.value=null,H.current.click())},[fe,be,oe,b,te,ne,Z,s]),Je=m.useCallback(function(z){!Q.current||!Q.current.isEqualNode(z.target)||(z.key===" "||z.key==="Enter"||z.keyCode===32||z.keyCode===13)&&(z.preventDefault(),j())},[Q,j]),J=m.useCallback(function(){fe({type:"focus"})},[]),V=m.useCallback(function(){fe({type:"blur"})},[]),re=m.useCallback(function(){k||(oQ()?setTimeout(j,0):j())},[k,j]),de=function(he){return n?null:he},Xe=function(he){return w?null:de(he)},Ue=function(he){return _?null:de(he)},Ye=function(he){T&&he.stopPropagation()},gt=m.useMemo(function(){return function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=z.refKey,lt=he===void 0?"ref":he,ut=z.role,Pt=z.onKeyDown,cn=z.onFocus,Rr=z.onBlur,Un=z.onClick,$o=z.onDragEnter,Fo=z.onDragOver,fa=z.onDragLeave,Io=z.onDrop,jo=gu(z,pQ);return st(st(Ah({onKeyDown:Xe(Cr(Pt,Je)),onFocus:Xe(Cr(cn,J)),onBlur:Xe(Cr(Rr,V)),onClick:de(Cr(Un,re)),onDragEnter:Ue(Cr($o,le)),onDragOver:Ue(Cr(Fo,ee)),onDragLeave:Ue(Cr(fa,q)),onDrop:Ue(Cr(Io,Se)),role:typeof ut=="string"&&ut!==""?ut:"presentation"},lt,Q),!n&&!w?{tabIndex:0}:{}),jo)}},[Q,Je,J,V,re,le,ee,q,Se,w,_,n]),mt=m.useCallback(function(z){z.stopPropagation()},[]),Lr=m.useMemo(function(){return function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=z.refKey,lt=he===void 0?"ref":he,ut=z.onChange,Pt=z.onClick,cn=gu(z,gQ),Rr=Ah({accept:F,multiple:s,type:"file",style:{display:"none"},onChange:de(Cr(ut,Se)),onClick:de(Cr(Pt,mt)),tabIndex:-1},lt,H);return st(st({},Rr),cn)}},[H,r,s,Se,n]);return st(st({},Ce),{},{isFocused:D&&!n,getRootProps:gt,getInputProps:Lr,rootRef:Q,inputRef:H,open:de(j)})}function EQ(e,t){switch(t.type){case"focus":return st(st({},e),{},{isFocused:!0});case"blur":return st(st({},e),{},{isFocused:!1});case"openDialog":return st(st({},Dh),{},{isFileDialogActive:!0});case"closeDialog":return st(st({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return st(st({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return st(st({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return st({},Dh);default:return e}}function Qx(){}const TQ=["pdf"],_Q=["txt"],kQ=["psd"],MQ=["doc","docx"],OQ=["xls","xlsx"],AQ=["zip","rar","iso"],PQ=["ai","esp"],DQ=["ppt","pptx"],$Q=["wav","aif","mp3","aac"],FQ=["jpg","jpeg","gif","bmp","png","svg"],IQ=["m4v","avi","mpg","mp4","webm"],Xt=e=>`/assets/icons/files/${e}.svg`;function Jx(e){let t;switch(e==null?void 0:e.includes(Nt(e))){case _Q.includes(Nt(e)):t="txt";break;case AQ.includes(Nt(e)):t="zip";break;case $Q.includes(Nt(e)):t="audio";break;case FQ.includes(Nt(e)):t="image";break;case IQ.includes(Nt(e)):t="video";break;case MQ.includes(Nt(e)):t="word";break;case OQ.includes(Nt(e)):t="excel";break;case DQ.includes(Nt(e)):t="powerpoint";break;case TQ.includes(Nt(e)):t="pdf";break;case kQ.includes(Nt(e)):t="photoshop";break;case PQ.includes(Nt(e)):t="illustrator";break;default:t=Nt(e)}return t}function jQ(e){let t;switch(Jx(e)){case"folder":t=Xt("ic_folder");break;case"txt":t=Xt("ic_txt");break;case"zip":t=Xt("ic_zip");break;case"audio":t=Xt("ic_audio");break;case"video":t=Xt("ic_video");break;case"word":t=Xt("ic_word");break;case"excel":t=Xt("ic_excel");break;case"powerpoint":t=Xt("ic_power_point");break;case"pdf":t=Xt("ic_pdf");break;case"photoshop":t=Xt("ic_pts");break;case"illustrator":t=Xt("ic_ai");break;case"image":t=Xt("ic_img");break;default:t=Xt("ic_file")}return t}function Nt(e=""){return e&&e.split(".").pop()||""}function LQ(e){return e.split("/").pop()}function $h(e){return typeof e=="string"?{key:e,preview:e,name:LQ(e),type:Nt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function e5(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:L(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:L(t,n)}}function RQ(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,a=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||a}, ${n||a}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function NQ(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function BQ(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const VQ=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:e5,bgGradient:RQ,filterStyles:BQ,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:{msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},textGradient:NQ},Symbol.toStringTag,{value:"Module"})),t5=({onDownload:e})=>{const t=hi();return v.jsx(E.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...e5({opacity:.64,color:t.palette.grey[900]})}},children:v.jsx(nt,{icon:"eva:arrow-circle-down-fill",width:24})})},r5=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:a})=>{const{name:o="",path:s="",preview:u=""}=$h(e),l=Jx(s||u),c=l==="image"&&r?v.jsx(E.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...a}}):v.jsx(E.Box,{component:"img",src:jQ(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?v.jsx(E.Tooltip,{title:o,children:v.jsxs(E.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&v.jsx(t5,{onDownload:n})]})}):v.jsxs(v.Fragment,{children:[c,n&&v.jsx(t5,{onDownload:n})]})},n5=({fileRejections:e})=>e.length?v.jsx(E.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>L(t.palette.error.main,.08),borderColor:t=>L(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=$h(t);return v.jsxs(E.Box,{sx:{my:1},children:[v.jsxs(E.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?vh(i):""]}),r.map(a=>v.jsxs(E.Box,{component:"span",sx:{typography:"caption"},children:["- ",a.message]},a.code))]},n)})}):null,zQ=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?v.jsx(cg,{initial:!1,children:t.map(i=>{const{key:a,name:o="",size:s=0}=$h(i),u=typeof i=="string";return e?v.jsxs(E.Stack,{component:Jt.div,...pa().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[v.jsx(r5,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&v.jsx(E.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>L(l.palette.common.white,.72),bgcolor:l=>L(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>L(l.palette.grey[900],.72)}},children:v.jsx(nt,{icon:"eva:close-fill",width:16})})]},a):v.jsxs(E.Stack,{component:Jt.div,...pa().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[v.jsx(r5,{file:i}),v.jsxs(E.Stack,{flexGrow:1,sx:{minWidth:0},children:[v.jsx(E.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:o}),v.jsx(E.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":vh(s)})]}),r&&v.jsx(E.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:v.jsx(nt,{icon:"eva:close-fill"})})]},a)})}):null,WQ=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return v.jsx(E.Stack,{position:"absolute",width:1,height:1,maxHeight:"100%",alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:v.jsx("img",{alt:"file preview",src:t,style:{borderRadius:8,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},HQ=Xr("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${L(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),UQ=({header:e,description:t,sx:r,...n})=>v.jsxs(E.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[v.jsx(jK,{sx:{width:220}}),v.jsxs("div",{children:[v.jsx(E.Typography,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),v.jsx(E.Typography,{variant:"body2",sx:{color:"text.secondary"},children:t||v.jsxs(v.Fragment,{children:["Solte os arquivos aqui ou clique",v.jsx(E.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})})]})]}),i5=({id:e,disabled:t,multiple:r=!1,error:n,helperText:i,file:a,onDelete:o,files:s,thumbnail:u,onUpload:l,onRemove:c,onRemoveAll:f,sx:d,dropZoneProps:h,placeholderProps:g,placeholderAlt:p,image:y,tabIndex:b,...x})=>{const{getRootProps:C,getInputProps:k,isDragActive:w,isDragReject:_,fileRejections:T}=mu({multiple:r,disabled:t,...x}),O=!!a&&!r||y,P=s&&r&&s.length>0,F=_||!!n;return v.jsxs(E.Box,{sx:{width:1,position:"relative",...d},children:[v.jsxs(HQ,{...C(),sx:{...w&&{opacity:.72},...F&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...h},children:[v.jsx("input",{...k(),id:e,tabIndex:b}),p?v.jsx(E.Stack,{sx:{...O&&{opacity:0}},children:p}):v.jsx(UQ,{sx:{...O&&{opacity:0}},header:g==null?void 0:g.title,description:g==null?void 0:g.description}),O&&v.jsx(WQ,{file:a||y||""})]}),i&&v.jsx(E.FormHelperText,{error:!!n,sx:Z=>({mx:"14px",color:t?Z.palette.grey[500]:void 0}),children:i}),v.jsx(n5,{fileRejections:T}),O&&o&&v.jsx(E.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:Z=>L(Z.palette.common.white,.8),bgcolor:Z=>L(Z.palette.grey[900],.72),"&:hover":{bgcolor:Z=>L(Z.palette.grey[900],.48)}},children:v.jsx(nt,{icon:"eva:close-fill",width:18})}),P&&v.jsxs(v.Fragment,{children:[v.jsx(E.Box,{sx:{my:3},children:v.jsx(zQ,{files:s,thumbnail:u,onRemove:c})}),v.jsxs(E.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[f&&v.jsx(E.Button,{color:"inherit",variant:"outlined",size:"small",onClick:f,children:"Remove all"}),l&&v.jsx(E.Button,{size:"small",variant:"contained",onClick:l,children:"Upload files"})]})]})]})},YQ=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return v.jsx("img",{alt:"avatar",src:t,style:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},GQ=Xr("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${L(e.palette.grey[500],.32)}`})),qQ=Xr("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),a5=({error:e,file:t,image:r,disabled:n,helperText:i,sx:a,tabIndex:o,...s})=>{const{getRootProps:u,getInputProps:l,isDragActive:c,isDragReject:f,fileRejections:d}=mu({multiple:!1,disabled:n,...s}),h=!!t||r,g=f||!!e;return v.jsxs(v.Fragment,{children:[v.jsxs(GQ,{...u(),sx:{...c&&{opacity:.72},...g&&{borderColor:"error.light",...h&&{bgcolor:"error.lighter"}},...n&&{opacity:.48,pointerEvents:"none"},...h&&{"&:hover":{"& .placeholder":{opacity:1}}},...a},children:[v.jsx("input",{...l(),tabIndex:o}),h&&v.jsx(YQ,{file:t||r||""}),v.jsxs(qQ,{className:"placeholder",sx:{"&:hover":{opacity:.72},...h&&{zIndex:9,opacity:0,color:"common.white",bgcolor:p=>L(p.palette.grey[900],.64)},...g&&{color:"error.main",bgcolor:"error.lighter"}},children:[v.jsx(nt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),v.jsx(E.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),i&&i,v.jsx(n5,{fileRejections:d})]})},KQ=Xr("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:L(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),XQ=({placeholderAlt:e,error:t,disabled:r,sx:n,tabIndex:i,...a})=>{const{getRootProps:o,getInputProps:s,isDragActive:u,isDragReject:l}=mu({disabled:r,...a}),c=l||t;return v.jsxs(KQ,{...o(),sx:{...u&&{opacity:.72},...c&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[v.jsx("input",{...s(),tabIndex:i}),e||v.jsx(nt,{icon:"eva:cloud-upload-fill",width:28})]})},ZQ=e=>new Promise((t,r)=>{const n=new Image;n.addEventListener("load",()=>t(n)),n.addEventListener("error",i=>r(i)),n.setAttribute("crossOrigin","anonymous"),n.src=e});function o5(e){return e*Math.PI/180}function QQ(e,t,r){const n=o5(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}async function JQ(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await ZQ(e),a=document.createElement("canvas"),o=a.getContext("2d");if(!o)return null;const s=o5(r),{width:u,height:l}=QQ(i.width,i.height,r);a.width=u,a.height=l,o.translate(u/2,l/2),o.rotate(s),o.scale(n.horizontal?-1:1,n.vertical?-1:1),o.translate(-i.width/2,-i.height/2),o.drawImage(i,0,0);const c=o.getImageData(t.x,t.y,t.width,t.height);return a.width=t.width,a.height=t.height,o.putImageData(c,0,0),new Promise((f,d)=>{a.toBlob(h=>{f(h)},"image/png")})}const s5=(e=!1)=>{const[t,r]=m.useState(e),n=m.useCallback(()=>r(i=>!i),[]);return[t,n,r]},l5=({onFileCropped:e,onImageUploaded:t,onCancel:r,image:n})=>{const i=m.useId(),[a,o,s]=s5(),[u,l]=m.useState({x:0,y:0}),[c,f]=m.useState(1),d=m.useRef();return{id:i,crop:u,setCrop:l,zoom:c,setZoom:f,fileRef:d,onCropComplete:async(b,x)=>{try{const C=await JQ(n,x,0);d.current=new File([C],"image.png",{type:C.type})}catch{e(void 0)}},saveChanges:()=>{e(d.current),o()},cancelChanges:()=>{r&&r(),s(!1)},handleRemove:()=>{e(void 0),t(void 0),l({x:0,y:0}),f(1),s(!1)},cropModalOpen:a,toggleCropModalOpen:o,setCropModalOpen:s}},u5=({id:e,open:t,onClose:r,label:n,onSave:i,onRemove:a,imgSrc:o,aspect:s,size:{height:u,width:l},crop:c,zoom:f,onCropComplete:d,onCropChange:h,onZoomChange:g})=>v.jsx(Ox,{open:t,onClose:r,dialogTitle:n,actions:v.jsxs(v.Fragment,{children:[v.jsx(E.Button,{variant:"outlined",size:"medium",onClick:r,color:"inherit",children:"Cancelar"}),v.jsx(E.Button,{variant:"contained",size:"medium",onClick:i,children:"Salvar"})]}),children:v.jsxs(E.Stack,{gap:2,children:[v.jsx(ax,{image:{width:l,height:u,aspect:s,imgSrc:o},crop:c,zoom:f,onCropComplete:d,onCropChange:h,onZoomChange:g}),v.jsxs(E.Stack,{gap:1.5,children:[v.jsxs(E.Stack,{width:1,direction:"row",gap:3,flex:1,alignItems:"center",mr:"auto",children:[v.jsx(E.Typography,{variant:"body1",children:"Zoom"}),v.jsx(E.Slider,{value:f,onChange:(p,y)=>g(Array.isArray(y)?y[0]:y),min:1,max:5,size:"medium",step:.5})]}),v.jsxs(E.Stack,{direction:"row",gap:2,children:[v.jsx(E.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:v.jsx(nt,{icon:"eva:trash-2-outline",color:"error.main"}),onClick:a,children:"Remover"}),v.jsx(E.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:v.jsx(nt,{icon:"ic:outline-image-search",color:oh.main}),component:"label",htmlFor:e,children:"Alterar"})]})]})]})}),eJ=E.styled(E.Stack)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),tJ=E.styled(E.Stack)(({theme:e})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:E.alpha(e.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),rJ=E.styled(E.CircularProgress)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"}),c5=({onFileCropped:e,onImageUploaded:t,onCancel:r,aspect:n,size:i,label:a,image:o="",uploading:s,file:u,tabIndex:l,...c})=>{const{id:f,crop:d,cropModalOpen:h,zoom:g,cancelChanges:p,handleRemove:y,onCropComplete:b,saveChanges:x,setCrop:C,setCropModalOpen:k,setZoom:w,toggleCropModalOpen:_}=l5({image:o,onFileCropped:e,onImageUploaded:t,onCancel:r});return v.jsxs(v.Fragment,{children:[v.jsxs(eJ,{children:[s&&v.jsx(Gl,{}),v.jsx(i5,{...c,id:f,file:u,onDrop:T=>{if(T.length>0){k(!0),w(1),C({x:0,y:0});const O=new FileReader;O.addEventListener("load",()=>{var F;const P=((F=O.result)==null?void 0:F.toString())||"";t(P),e(void 0)}),O.readAsDataURL(T[0])}},image:o,tabIndex:l}),(u||o)&&v.jsxs(tJ,{className:"actions",children:[v.jsx(E.Button,{color:"inherit",startIcon:v.jsx(nt,{icon:"eva:trash-2-outline",color:"error.main"}),onClick:y,children:"Remover"}),v.jsx(E.Button,{color:"inherit",startIcon:v.jsx(nt,{icon:"ic:outline-image",color:oh.main}),onClick:_,children:"Editar"})]})]}),v.jsx(u5,{id:f,open:h,onClose:p,label:a,aspect:n,crop:d,zoom:g,onCropComplete:b,onCropChange:C,onZoomChange:w,imgSrc:o,onRemove:y,onSave:x,size:i})]})},f5=({name:e,helperText:t,rules:r,onSelectOption:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,rules:r,render:({field:o,fieldState:{error:s}})=>v.jsx(Ef,{...o,...i,onChange:u=>{n&&n(u),o.onChange(u)},error:!!s,helperText:(s==null?void 0:s.message)||t})})},Hn=({name:e,helperText:t,rules:r,onChange:n,tabIndex:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:r,render:({field:{ref:s,...u},fieldState:{error:l}})=>v.jsx(E.TextField,{...u,onChange:c=>{u.onChange(c),n&&n(c)},inputRef:s,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||t,...a,inputProps:{...a.inputProps,tabIndex:i}})})},d5=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:i,rules:r,render:({field:{name:a,onChange:o,value:s,ref:u},fieldState:{error:l}})=>v.jsx(Th,{ref:u,...n,name:a,value:s,error:!!l,helperText:(l==null?void 0:l.message)||t,onChange:({target:{value:c}})=>o(c)})})},nJ=({name:e,containerProps:t,required:r,rules:n,tabIndex:i})=>{const a=`${e}.zipCode`,o=`${e}.publicPlace`,s=`${e}.number`,u=`${e}.district`,l=`${e}.complement`,c=`${e}.state`,f=`${e}.city`,d=h=>{h.key==="Enter"&&h.preventDefault()};return v.jsxs(E.Stack,{gap:1.5,...t,children:[v.jsxs(E.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[v.jsx(d5,{name:a,label:"CEP",mask:[{mask:"00000-000"}],InputProps:{endAdornment:v.jsx(E.InputAdornment,{position:"end",children:v.jsx(E.CircularProgress,{size:24})})},rules:n,onKeyDown:d,required:r,sx:{width:"auto",flex:1,minWidth:160},tabIndex:i}),v.jsxs(E.Stack,{direction:{xs:"column",sm:"row"},gap:1.5,flex:{xs:1,md:"1 1 50%"},children:[v.jsx(Hn,{name:o,label:"Logradouro",onKeyDown:d,inputProps:{maxLength:70},sx:{width:"auto",minWidth:250,flex:1},tabIndex:i}),v.jsx(Hn,{name:s,label:"Número",onKeyDown:d,inputProps:{maxLength:6},sx:{width:"auto",minWidth:100},tabIndex:i})]})]}),v.jsxs(E.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[v.jsx(Hn,{name:u,label:"Bairro",onKeyDown:d,inputProps:{maxLength:20},sx:{width:"auto",flex:{xs:1,md:"1 1 100px"}},tabIndex:i}),v.jsx(Hn,{name:l,label:"Complemento",onKeyDown:d,inputProps:{maxLength:30},sx:{minWidth:200,width:"auto",flex:{xs:1,md:"1 1 500px"}},tabIndex:i})]}),v.jsxs(E.Stack,{gap:1.5,flexWrap:"wrap",direction:{xs:"column",sm:"row"},children:[v.jsx(f5,{name:c,label:"Estado",options:[],disabled:!0,required:r,sx:{flex:1},tabIndex:i}),v.jsx(Hn,{name:f,label:"Cidade",disabled:!0,required:r,sx:{flex:1},tabIndex:i})]})]})},iJ=({name:e,rules:t,helperText:r,tabIndex:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,rules:t,render:({field:o,fieldState:{error:s}})=>v.jsxs("div",{children:[v.jsx(E.FormControlLabel,{control:v.jsx(E.Checkbox,{...o,checked:o.value,tabIndex:n}),...i}),(!!s||r)&&v.jsx(E.FormHelperText,{error:!!s,children:s?s==null?void 0:s.message:r})]})})},aJ=({row:e,name:t,rules:r,label:n,options:i,spacing:a,helperText:o,required:s,...u})=>{const{control:l}=Ee.useFormContext(),c=(f,d)=>f.includes(d)?f.filter(h=>h!==d):[...f,d];return v.jsx(Ee.Controller,{name:t,control:l,rules:r,render:({field:{value:f=[],...d},fieldState:{error:h}})=>v.jsxs(E.FormControl,{component:"fieldset",children:[n&&v.jsx(E.FormLabel,{component:"legend",sx:{typography:"body2"},required:s,children:n}),v.jsx(E.FormGroup,{sx:{...e&&{flexDirection:"row"},"& .MuiFormControlLabel-root":{"&:not(:last-of-type)":{mb:a||0},...e&&{mr:0,"&:not(:last-of-type)":{mr:a||2}}}},children:i.map(g=>v.jsx(E.FormControlLabel,{control:v.jsx(E.Checkbox,{checked:f.includes(g.value),onChange:()=>d.onChange(c(f,g.value))}),label:g.label,...u},g.value))}),(!!h||o)&&v.jsx(E.FormHelperText,{error:!!h,sx:g=>({color:u.disabled?g.palette.grey[500]:void 0}),children:h?h==null?void 0:h.message:o})]})})},oJ=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Fh(e,t,r,n){const i=m.useRef(t);oJ(()=>{i.current=t},[t]),m.useEffect(()=>{const a=(r==null?void 0:r.current)||window;if(!(a&&a.addEventListener))return;const o=s=>i.current(s);return a.addEventListener(e,o,n),()=>{a.removeEventListener(e,o)}},[e,r,n])}const sJ=({keyName:e,inputs:t=[],rules:r,tabIndex:n,...i})=>{const a=m.useRef(null),{control:o,setValue:s,formState:{errors:u}}=Ee.useFormContext(),l=d=>{const h=d.clipboardData.getData("text").split("");t.map((g,p)=>s(g,h[p])),d.preventDefault()},c=(d,h)=>{const{maxLength:g,value:p,name:y}=d.target,b=y.replace(e,""),x=Number(b),C=document.querySelector(`input[name=${e}${x+1}]`);p.length>g&&(d.target.value=p[0]),p.length>=g&&x<6&&C!==null&&C.focus(),h(d)};Fh("paste",l,a);const f=t.some(d=>u[d]);return v.jsxs(E.Stack,{children:[v.jsx(E.Stack,{direction:"row",spacing:2,justifyContent:"center",ref:a,children:t.map((d,h)=>v.jsx(Ee.Controller,{name:`${e}${h+1}`,control:o,rules:r,render:({field:g,fieldState:{error:p}})=>v.jsx(E.TextField,{...i,...g,autoComplete:"none",error:!!p,autoFocus:h===0,placeholder:"-",onChange:y=>{c(y,g.onChange)},onFocus:y=>y.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number",tabIndex:n}})},d))}),f&&v.jsx(E.FormHelperText,{error:!0,sx:{px:2},children:"Código é obrigatório"})]})},lJ=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:i,rules:{...t,validate:{...t==null?void 0:t.validate,validation:a=>{const o="#"+a.replaceAll("#","");return/^#([0-9A-Fa-f]{3}){1,2}$/.test(o)?!0:"Cor inválida"}}},render:({field:{ref:a,onChange:o,...s},fieldState:{error:u}})=>v.jsx(Ob,{...s,onChangeColor:o,inputRef:a,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||r,...n})})},uJ=({name:e,rules:t,tabIndex:r,helperText:n,required:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:t,render:({field:{ref:s,...u},fieldState:{error:l}})=>{var c;return v.jsx(Yn.DatePicker,{inputRef:s,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...a.localeText},...u,...a,value:u.value?new Date(u.value):null,slotProps:{textField:{...(c=a.slotProps)==null?void 0:c.textField,required:i,error:!!l,helperText:(l==null?void 0:l.message)||n,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:r}},openPickerButton:{tabIndex:r}}})}})},cJ=({name:e,label:t,rules:r,tabIndex:n,helperText:i,required:a,...o})=>{const{control:s,setError:u}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:s,rules:r,render:({field:{value:l,onChange:c},fieldState:{error:f}})=>v.jsx(Yn.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...o.localeText},value:[(l==null?void 0:l.startDate)||null,(l==null?void 0:l.endDate)||null],onChange:d=>c({startDate:d[0],endDate:d[1]}),onError:d=>{u(e,{message:d[0]||d[1]||void 0})},...o,slotProps:{textField:({position:d})=>{var h;return{...(h=o.slotProps)==null?void 0:h.textField,required:a,error:!!f,helperText:(f==null?void 0:f.message)||i,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:d==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`,inputProps:{tabIndex:n}}}},sx:{width:1}})})},fJ=({name:e,rules:t,tabIndex:r,helperText:n,required:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:t,render:({field:{ref:s,...u},fieldState:{error:l}})=>{var c;return v.jsx(Yn.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:s,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...a.localeText},...u,...a,value:u.value?new Date(u.value):null,slotProps:{textField:{...(c=a.slotProps)==null?void 0:c.textField,required:i,error:!!l,helperText:(l==null?void 0:l.message)||n,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:r}},openPickerButton:{tabIndex:r}}})}})},dJ=({id:e,children:t,onSubmit:r,methods:n,...i})=>v.jsx(Ee.FormProvider,{...n,children:v.jsx(E.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,...i,children:t})}),hJ=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:i,rules:r,render:({field:{ref:a,value:o,...s},fieldState:{error:u}})=>v.jsx(wh,{value:o,inputRef:a,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||t,...n,...s,name:e})})},pJ=({name:e,helperText:t,rules:r,onChange:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,rules:r,render:({field:o,fieldState:{error:s}})=>v.jsx(iu,{...o,onChange:u=>{o.onChange(u),n&&n(u)},fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...i})})},gJ=({name:e,sx:t,rules:r,passwordSize:n,specialCharacter:i,upperCaseChar:a,numberChar:o,...s})=>{const{watch:u}=Ee.useFormContext(),l=u(e),[c,f]=m.useState(!1),{hasNumberChar:d,hasSpecialCharacter:h,hasUpperCaseChar:g,isLengthValid:p}=uu(l,n,o,i,a);return v.jsx(Hn,{...s,name:e,type:c?"text":"password",InputProps:{endAdornment:v.jsx(E.InputAdornment,{position:"end",children:v.jsx(E.IconButton,{onClick:()=>f(!c),edge:"end","aria-label":"Mostrar/Ocultar senha",children:v.jsx(nt,{icon:c?"eva:eye-off-fill":"eva:eye-fill"})})})},rules:{...r,validate:{...r==null?void 0:r.validate,validationPassword:y=>{const b=uu(y,n,o,i,a);return!b.hasNumberChar||!b.hasSpecialCharacter||!b.hasUpperCaseChar||!b.isLengthValid?"Senha inválida":!0}}},sx:{...t,"& .MuiFormHelperText-root":{display:!h||!g||!p||!d?"none":void 0}}})},mJ=({name:e,rules:t,row:r,label:n,options:i,spacing:a,helperText:o,decorated:s,onChange:u,tabIndex:l,required:c,disabled:f,...d})=>{const{control:h}=Ee.useFormContext(),g=n?`${e}-${n}`:"";return v.jsx(Ee.Controller,{name:e,control:h,rules:t,render:({field:p,fieldState:{error:y}})=>v.jsxs(E.FormControl,{component:"fieldset",sx:{...s&&{paddingLeft:1.5}},children:[n&&v.jsx(E.FormLabel,{component:"legend",id:g,sx:{typography:"body2"},required:c,children:n}),v.jsx(E.RadioGroup,{...d,...p,onChange:(b,x)=>{p.onChange(b),u&&u(b,x)},"aria-labelledby":g,row:r,children:i.map(b=>v.jsx(E.FormControlLabel,{value:b.value,control:v.jsx(E.Radio,{inputProps:{tabIndex:l},disabled:f,checked:b.value===p.value}),label:b.label,sx:({palette:x})=>({"&:not(:last-of-type)":{mb:a||0},...r&&{mr:0,"&:not(:last-of-type)":{mr:a||2}},...s&&{border:`1px solid ${E.alpha(x.grey[500],.32)}`,borderRadius:1,padding:.25,paddingRight:(a||0)/2||1,...p.value===b.value&&{borderColor:"primary.main",backgroundColor:E.alpha(x.primary.main,.05)}}})},b.value))}),(!!y||o)&&v.jsx(E.FormHelperText,{error:!!y,sx:b=>({color:f?b.palette.grey[500]:void 0}),children:y?y==null?void 0:y.message:o})]})})},vJ=({name:e,helperText:t,onChange:r,tabIndex:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,render:({field:o,fieldState:{error:s}})=>v.jsxs("div",{children:[v.jsx(E.FormControlLabel,{control:v.jsx(E.Switch,{...o,checked:o.value,onChange:(u,l)=>{o.onChange(u),r&&r(u,l)},inputProps:{tabIndex:n}}),...i}),(!!s||t)&&v.jsx(E.FormHelperText,{error:!!s,sx:u=>({mx:"14px",color:i.disabled?u.palette.grey[500]:void 0}),children:s?s==null?void 0:s.message:t})]})})},yJ=({name:e,rules:t,tabIndex:r,helperText:n,required:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:t,render:({field:{ref:s,...u},fieldState:{error:l}})=>{var c;return v.jsx(Yn.TimePicker,{ampm:!1,format:"HH:mm",inputRef:s,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...a.localeText},...u,...a,value:u.value?new Date(u.value):null,slotProps:{textField:{...(c=a.slotProps)==null?void 0:c.textField,error:!!l,required:i,helperText:(l==null?void 0:l.message)||n,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:r}},openPickerButton:{tabIndex:r}}})}})};function h5(e,t){const{watch:r,setValue:n}=Ee.useFormContext(),[i,a]=m.useState(t),o=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),a(void 0);return}n(e,d),a(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...o,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),a(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=o.filter(g=>g!==d);n(e,h)},file:i,setFileValue:a}}const bJ=({name:e,rules:t,helperText:r,aspect:n,label:i,size:a,image:o,onFileCropped:s,onImageUploaded:u,onCancel:l,...c})=>{const{control:f}=Ee.useFormContext(),{uploadFile:d,file:h,setFileValue:g}=h5(e);return v.jsx(Ee.Controller,{name:e,control:f,rules:t,render:({field:{value:p},fieldState:{error:y}})=>v.jsx(c5,{accept:{"image/*":[]},file:p?h:void 0,onFileCropped:b=>{d(b),s&&s(b)},onImageUploaded:u,onCancel:()=>{g(void 0),l&&l()},error:!!y,disableMultiple:!0,helperText:(!!y||r)&&v.jsx(E.FormHelperText,{error:!!y,sx:{px:2},children:y?y==null?void 0:y.message:r}),aspect:n,label:i,size:a,image:o,...c})})},xJ=({onFileCropped:e,onImageUploaded:t,onCancel:r,aspect:n,size:i,label:a,image:o="",uploading:s,file:u,tabIndex:l,...c})=>{const{id:f,crop:d,cropModalOpen:h,zoom:g,cancelChanges:p,handleRemove:y,onCropComplete:b,saveChanges:x,setCrop:C,setCropModalOpen:k,setZoom:w}=l5({image:o,onFileCropped:e,onImageUploaded:t,onCancel:r});return v.jsxs(v.Fragment,{children:[v.jsxs(E.Stack,{position:"relative",alignItems:"center",justifyContent:"center",children:[s&&v.jsx(rJ,{}),v.jsx(a5,{...c,id:f,file:u,onDrop:_=>{if(_.length>0){k(!0),w(1),C({x:0,y:0});const T=new FileReader;T.addEventListener("load",()=>{var P;const O=((P=T.result)==null?void 0:P.toString())||"";t(O),e(void 0)}),T.readAsDataURL(_[0])}},image:o,tabIndex:l})]}),v.jsx(u5,{id:f,open:h,onClose:p,label:a,aspect:n,crop:d,zoom:g,onCropComplete:b,onCropChange:C,onZoomChange:w,imgSrc:o,onRemove:y,onSave:x,size:i})]})},wJ=({name:e,rules:t,helperText:r,aspect:n,label:i,size:a,image:o,onFileCropped:s,onImageUploaded:u,onCancel:l,...c})=>{const{control:f}=Ee.useFormContext(),{uploadFile:d,file:h,setFileValue:g}=h5(e);return v.jsx(Ee.Controller,{name:e,control:f,rules:t,render:({field:{value:p},fieldState:{error:y}})=>v.jsx(xJ,{accept:{"image/*":[]},file:p?h:void 0,onFileCropped:b=>{d(b),s&&s(b)},onImageUploaded:u,onCancel:()=>{g(void 0),l&&l()},error:!!y,disableMultiple:!0,helperText:(!!y||r)&&v.jsx(E.FormHelperText,{error:!!y,sx:{px:2},children:y?y==null?void 0:y.message:r}),aspect:n,label:i,size:a,image:o,...c})})},CJ=()=>{const[e,t]=m.useState(!1),[r,n]=m.useState(document.activeElement);return m.useEffect(()=>{const i=o=>n(o.target),a=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",a,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",a)}},[]),{activeElement:r,listenersReady:e}};function SJ(){const[e,t]=m.useState(null);return{copiedText:e,copy:async n=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch{return t(null),!1}}}}const EJ=({page:e,perPage:t,dir:r,search:n,searchValue:i,sort:a}={page:0,perPage:25})=>{const o=Br.useGridApiRef(),[s,u]=m.useState({page:e,perPage:t,dir:r,search:n,searchValue:i,sort:a}),l=({pageSize:p=25,page:y=0})=>{u(b=>({...b,page:y,perPage:p}))},c=p=>u(y=>({...y,page:0,search:p})),f=p=>u(y=>({...y,searchValue:p})),d=()=>u(p=>({...p,page:0,search:p.searchValue})),h=(p,y)=>u(b=>({...b,sort:p,dir:y})),g=()=>{o.current.setPage(0),l({page:0})};return{...s,apiRef:o,page:s.page||0,perPage:s.perPage||25,handlePaginationModelChange:l,handleSearch:c,handleSort:h,handleSearchValue:f,applySearchValue:d,goToPageFirstPage:g}};var TJ=Uf;function _J(e,t){return TJ(e,t)}var kJ=_J;const MJ=vn(kJ),OJ=(e,t)=>MJ(e,t),AJ=e=>{const t=m.useRef();return OJ(e,t.current)||(t.current=e),t.current},PJ=(e,t)=>{m.useEffect(e,t.map(AJ))},DJ=()=>{const e=m.useRef(!0);return e.current?(e.current=!1,!0):e.current};function $J(e=""){const[t,r]=m.useState(e);return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}function FJ({items:e,itemsPerPage:t}){const[r,n]=m.useState(1),i=Math.ceil(e.length/t),a=e.slice((r-1)*t,r*t);return{currentPage:r,totalPages:i,currentItems:a,goToPage:l=>{l>0&&l<=i&&n(l)},nextPage:()=>{r<i&&n(l=>l+1)},prevPage:()=>{r>1&&n(l=>l-1)}}}const IJ=(e,t,r="mousedown")=>{Fh(r,n=>{const i=e==null?void 0:e.current;!i||i.contains(n.target)||t(n)})},jJ=(e=100,t)=>{const{scrollY:r}=mS(t),[n,i]=m.useState(!1);return m.useEffect(()=>r.onChange(a=>{a>e?i(!0):i(!1)}),[r,e]),n},LJ=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),a=`${e.replace(t,"")}.${t}`;i.href=n,i.download=a,i.click()}},Symbol.toStringTag,{value:"Module"}));function RJ(e){return Zd({},e)}var p5=1440,NJ=2520,Ih=43200,BJ=86400;function VJ(e,t,r){var n,i;N(2,arguments);var a=lr(),o=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:a.locale)!==null&&n!==void 0?n:Nl;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=qi(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=Zd(RJ(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=B(t),c=B(e)):(l=B(e),c=B(t));var f=Fb(c,l),d=(Ki(c)-Ki(l))/1e3,h=Math.round((f-d)/60),g;if(h<2)return r!=null&&r.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,u):f<10?o.formatDistance("lessThanXSeconds",10,u):f<20?o.formatDistance("lessThanXSeconds",20,u):f<40?o.formatDistance("halfAMinute",0,u):f<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(h<p5){var p=Math.round(h/60);return o.formatDistance("aboutXHours",p,u)}else{if(h<NJ)return o.formatDistance("xDays",1,u);if(h<Ih){var y=Math.round(h/p5);return o.formatDistance("xDays",y,u)}else if(h<BJ)return g=Math.round(h/Ih),o.formatDistance("aboutXMonths",g,u)}if(g=Wd(c,l),g<12){var b=Math.round(h/Ih);return o.formatDistance("xMonths",b,u)}else{var x=g%12,C=Math.floor(g/12);return x<3?o.formatDistance("aboutXYears",C,u):x<9?o.formatDistance("overXYears",C,u):o.formatDistance("almostXYears",C+1,u)}}function zJ(e,t){return N(1,arguments),VJ(e,Date.now(),t)}function WJ(e){N(1,arguments);var t=B(e),r=t.getTime();return r}function HJ(e,t){const r=t||"dd/MM/yyyy";return e?Kd(new Date(e),r):null}function UJ(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?Kd(new Date(e),r):null}function YJ(e){return e?WJ(new Date(e)):null}function GJ(e){return e?zJ(new Date(e),{addSuffix:!0}):null}function qJ(e,t="dd/MM/yyyy hh:mm:ss"){if(!e)return null;const r=r2(e,t,new Date);return Yd(r)?r:null}const KJ=Object.freeze(Object.defineProperty({__proto__:null,fDate:HJ,fDateTime:UJ,fTimestamp:YJ,fToNow:GJ,stringToDate:qJ},Symbol.toStringTag,{value:"Module"}));function XJ(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const ZJ=Object.freeze(Object.defineProperty({__proto__:null,getRoot:XJ},Symbol.toStringTag,{value:"Module"}));function QJ(e,t,r="asc"){return e.slice().sort((n,i)=>{const a=n[t],o=i[t];return a<o?r==="asc"?-1:1:a>o?r==="asc"?1:-1:0})}function JJ(e,t,r){const n=[...r],i=n.splice(e,1)[0];return n.splice(t,0,i),n}const eee=Object.freeze(Object.defineProperty({__proto__:null,sort:QJ,updatePosition:JJ},Symbol.toStringTag,{value:"Module"})),jh=(e="",t)=>{let r="",n=0;return[...t].forEach(i=>{r+=i==="#"?e[n++]||"_":i}),r},tee=Object.freeze(Object.defineProperty({__proto__:null,applyMask:jh,cnpjMask:e=>jh(e.replace(/\D/g,""),"##.###.###/####-##"),cpfMask:e=>jh(e.replace(/\D/g,""),"###.###.###-##")},Symbol.toStringTag,{value:"Module"}));function ree(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const nee=e=>function(r){return v.jsx(m.Suspense,{fallback:v.jsx(Gl,{}),children:v.jsx(e,{...r})})},iee=Object.freeze(Object.defineProperty({__proto__:null,default:UC},Symbol.toStringTag,{value:"Module"}));A.Address=nJ,A.Autocomplete=Ef,A.AutocompleteField=f5,A.Checkbox=iJ,A.Codes=sJ,A.ColorPickerField=lJ,A.ColorPickerInput=Ob,A.Common=kK,A.CommonSSR=OK,A.Confirm=AK,A.CustomAvatar=M2,A.CustomAvatarGroup=O2,A.DataGrid=RK,A.DatePicker=uJ,A.DateRangePicker=cJ,A.DateTimePicker=fJ,A.Delayed=NK,A.DialogAnimate=bS,A.Drawer=XK,A.EmptyView=P2,A.FabButtonAnimate=bg,A.Field=Hn,A.FixedProgressBar=Gl,A.Form=dJ,A.IconButtonAnimate=xg,A.Iconify=nt,A.ImageCrop=ax,A.Incrementer=wh,A.IncrementerField=hJ,A.Label=bx,A.MaskedInput=Th,A.MaskedInputField=d5,A.MaterialDesignContent=U1,A.MenuPopover=gZ,A.Modal=Ox,A.ModalActions=xZ,A.MotionContainer=p7,A.MotionLazyContainer=Gc,A.MotionViewport=h7,A.MultiCheckbox=aJ,A.NumberInput=iu,A.NumberInputField=pJ,A.PasswordField=gJ,A.PasswordRules=_Z,A.Portal=Ax,A.RadioGroupField=mJ,A.Scrollbar=W2,A.SearchInput=kZ,A.SnackbarContent=tf,A.SnackbarProvider=q1,A.Steps=AZ,A.Switch=vJ,A.TRANSITION=Bh,A.TabPanel=PZ,A.TextAnimate=xS,A.ThemeProvider=k2,A.TimePicker=yJ,A.Transition=Ns,A.Upload=i5,A.UploadAvatar=a5,A.UploadAvatarWithCropField=wJ,A.UploadBox=XQ,A.UploadWithCrop=c5,A.UploadWithCropField=bJ,A.cssStyles=VQ,A.file=LJ,A.formatNumber=MX,A.formatTime=KJ,A.loadable=nee,A.m=Jt,A.mask=tee,A.number=CX,A.routes=ZJ,A.sort=eee,A.useActiveElement=CJ,A.useCopyToClipboard=SJ,A.useDatagrid=EJ,A.useDeepCompareEffect=PJ,A.useEventListener=Fh,A.useIsMounting=DJ,A.useOffSetTop=jJ,A.useOnClickOutside=IJ,A.usePagination=FJ,A.useResponsive=w1,A.useSnackbar=Y7,A.useTabs=$J,A.useToggle=s5,A.uuidv4=ree,A.validators=SZ,A.varBgColor=F5,A.varBgKenburns=I5,A.varBgPan=j5,A.varBounce=P5,A.varContainer=Bo,A.varFade=pa,A.varFlip=M5,A.varHover=$5,A.varPath=T5,A.varRotate=D5,A.varScale=A5,A.varSlide=O5,A.varTranEnter=xe,A.varTranExit=_e,A.varTranHover=_5,A.varZoom=k5,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
256
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function XX(e){e=KX(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ln);var a=e.onBlur;a===void 0&&(a=ln);var o=e.thousandSeparator,s=e.decimalScale,u=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l="");var c=e.defaultValue,f=e.value,d=e.valueIsNumericString,h=e.onValueChange,g=lx(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=nu(e),y=p.decimalSeparator,b=p.allowedDecimalSeparators,x=function(R){return yx(R,e)},C=function(R,U){return GX(R,U,e)},k=la(f)?c:f,w=d??YX(k,l,t);la(f)?la(c)||(w=w||typeof c=="number"):w=w||typeof f=="number";var _=function(R){return ux(R)?R:(typeof R=="number"&&(R=hx(R)),w&&typeof s=="number"?px(R,s,!!u):R)},T=vx(_(f),_(c),!!w,x,C,h),O=T[0],P=O.numAsString,F=O.formattedValue,Z=T[1],be=function(R){var U=R.target,Ce=R.key,fe=U.selectionStart,D=U.selectionEnd,$=U.value;if($===void 0&&($=""),fe!==D){i(R);return}Ce==="Backspace"&&$[0]==="-"&&fe===l.length+1&&r&&Rn(U,1),s&&u&&(Ce==="Backspace"&&$[fe-1]===y?(Rn(U,fe-1),R.preventDefault()):Ce==="Delete"&&$[fe]===y&&R.preventDefault()),b!=null&&b.includes(Ce)&&$[fe]===y&&Rn(U,fe+1);var W=o===!0?",":o;Ce==="Backspace"&&$[fe-1]===W&&Rn(U,fe-1),Ce==="Delete"&&$[fe]===W&&Rn(U,fe+1),i(R)},oe=function(R){var U=P;if(U.match(/\d/g)||(U=""),n||(U=FX(U)),u&&s&&(U=px(U,s,u)),U!==P){var Ce=yx(U,e);Z({formattedValue:Ce,value:U,floatValue:parseFloat(U)},{event:R,source:Mo.event})}a(R)},Q=function(R){return R===y?!0:Oo(R)},H=function(R){var U=R.currentValue,Ce=R.lastValue,fe=R.formattedValue,D=R.currentValueIndex,$=R.formattedValueIndex,W=U[D],se=fe[$],X=gx(Ce,U),ce=X.to;return D>=ce.start&&D<ce.end&&b&&b.includes(W)&&se===y?!0:W===se};return Object.assign(Object.assign({},g),{value:F,valueIsNumericString:!1,isValidInputCharacter:Q,isCharacterSame:H,onValueChange:Z,format:x,removeFormatting:C,getCaretBoundary:function(R){return qX(R,e)},onKeyDown:be,onBlur:oe})}function ZX(e){var t=XX(e);return m.createElement(WX,Object.assign({},t))}const iu=m.forwardRef(({decimalScale:e=0,fixedDecimalScale:t=!0,prefix:r,allowNegative:n,minValue:i,maxValue:a=1/0,maxLength:o,value:s,inputProps:u,InputProps:l,size:c,disabled:f,name:d,helperText:h,error:g,fullWidth:p,label:y,required:b,onChange:x,tabIndex:C},k)=>{const w=m.useRef(null),_=T=>{x&&(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{const{floatValue:O}=T,P=O||0;if(i!==void 0&&i>P){x({target:{name:d,value:i}});return}if(O!==void 0&&a<P){x({target:{name:d,value:a}});return}x({target:{name:d,value:O}})},600))};return m.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),v.jsx(ZX,{getInputRef:k,value:s,prefix:r,decimalSeparator:",",thousandSeparator:".",decimalScale:e,fixedDecimalScale:t,autoComplete:"off",allowNegative:n,maxLength:o,onValueChange:_,customInput:E.TextField,InputProps:{...l},inputProps:{...u,tabIndex:C},disabled:f,size:c,helperText:h,error:g,fullWidth:p,label:y,required:b})});iu.displayName="NumberInput";const xh=m.forwardRef(({name:e,increment:t=1,updadteForMultiple:r,allowNegative:n=!1,value:i=0,onChange:a,minValue:o,maxValue:s,decimalScale:u,disabled:l,tabIndex:c,...f},d)=>{const h=ox(i,t,u),g=()=>{if(!n&&i-t<0)return;const b=i-t,x=Math.floor(i/t)*t,C=!h&&r?x:b;o!==void 0&&b<o?a(o):a(vh(C))},p=()=>{const b=Number(i)+t,x=Math.ceil(i/t)*t,k=vh(!h&&r?x:b);s!==void 0&&b>=s?a(s):a(o!==void 0&&k<=o?o:k)},y=b=>{const x=Number(b.target.value),C=Math.ceil(x/t)*t,k=r?C:x;if(o!==void 0&&x<=o){a(o);return}if(s!==void 0&&x>=s){a(s);return}a(k)};return v.jsx(iu,{ref:d,name:e,value:i,minValue:o,maxValue:s,allowNegative:n,decimalScale:u,InputProps:{startAdornment:v.jsx(E.InputAdornment,{position:"start",children:v.jsx(E.IconButton,{size:"medium",disabled:l||(n?!1:!i),onClick:g,children:v.jsx(nt,{icon:"eva:minus-fill",width:14,height:14,color:"primary.main"})})}),endAdornment:v.jsx(E.InputAdornment,{position:"end",children:v.jsx(E.IconButton,{size:"medium",onClick:p,disabled:l,children:v.jsx(nt,{icon:"eva:plus-fill",width:14,height:14,color:"primary.main"})})}),inputProps:{style:{textAlign:"center"}}},inputProps:{tabIndex:c},onChange:y,disabled:l,...f})});xh.displayName="Incrementer";const QX=Xr(E.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",i=t.variant==="outlined",a=t.variant==="soft",o={...t.color==="default"&&{...i&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${L(e.palette.grey[500],.32)}`},...a&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:L(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...i&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...a&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:L(e.palette[t.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"none",padding:e.spacing(0,1),color:e.palette.grey[800],fontSize:e.typography.pxToRem(12),fontFamily:e.typography.fontFamily,backgroundColor:e.palette.grey[300],fontWeight:e.typography.fontWeightBold,...s,...o}}),bx=m.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:i,sx:a,...o},s)=>{const u=hi(),l={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return v.jsxs(QX,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...a},theme:u,...o,children:[n&&v.jsxs(E.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&v.jsxs(E.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});bx.displayName="Label";function un(e){return typeof e=="string"||e instanceof String}function xx(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function wx(e,t){return Array.isArray(t)?wx(e,(r,n)=>t.includes(n)):Object.entries(e).reduce((r,n)=>{let[i,a]=n;return t(a,i)&&(r[i]=a),r},{})}const ue={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function JX(e){switch(e){case ue.LEFT:return ue.FORCE_LEFT;case ue.RIGHT:return ue.FORCE_RIGHT;default:return e}}function wh(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function au(e,t){if(t===e)return!0;const r=Array.isArray(t),n=Array.isArray(e);let i;if(r&&n){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!au(t[i],e[i]))return!1;return!0}if(r!=n)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){const a=t instanceof Date,o=e instanceof Date;if(a&&o)return t.getTime()==e.getTime();if(a!=o)return!1;const s=t instanceof RegExp,u=e instanceof RegExp;if(s&&u)return t.toString()==e.toString();if(s!=u)return!1;const l=Object.keys(t);for(i=0;i<l.length;i++)if(!Object.prototype.hasOwnProperty.call(e,l[i]))return!1;for(i=0;i<l.length;i++)if(!au(e[l[i]],t[l[i]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}class eZ{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?ue.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?ue.RIGHT:ue.LEFT}}function ye(e,t){return new ye.InputMask(e,t)}function Cx(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?ye.MaskedRegExp:un(e)?ye.MaskedPattern:e===Date?ye.MaskedDate:e===Number?ye.MaskedNumber:Array.isArray(e)||e===Array?ye.MaskedDynamic:ye.Masked&&e.prototype instanceof ye.Masked?e:ye.Masked&&e instanceof ye.Masked?e.constructor:e instanceof Function?ye.MaskedFunction:(console.warn("Mask not found for mask",e),ye.Masked)}function ou(e){if(!e)throw new Error("Options in not defined");if(ye.Masked){if(e.prototype instanceof ye.Masked)return{mask:e};const{mask:t=void 0,...r}=e instanceof ye.Masked?{mask:e}:xx(e)&&e.mask instanceof ye.Masked?e:{};if(t){const n=t.mask;return{...wx(t,(i,a)=>!a.startsWith("_")),mask:t.constructor,_mask:n,...r}}}return xx(e)?{...e}:{mask:e}}function Nn(e){if(ye.Masked&&e instanceof ye.Masked)return e;const t=ou(e),r=Cx(t.mask);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}ye.createMask=Nn;class Ch{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch{}}get isActive(){return!1}}ye.MaskElement=Ch;class Bn extends Ch{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,r,n;return(t=(r=(n=this.input).getRootNode)==null?void 0:r.call(n))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){Object.keys(t).forEach(r=>this._toggleEventHandler(Bn.EVENTS_MAP[r],t[r]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,r){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),r&&(this.input.addEventListener(t,r),this._handlers[t]=r)}}Bn.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},ye.HTMLMaskElement=Bn;class tZ extends Bn{constructor(t){super(t),this.input=t,this._handlers={}}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}ye.HTMLMaskElement=Bn;class Sx extends Bn{get _unsafeSelectionStart(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,r);const i=this.rootElement,a=i.getSelection&&i.getSelection();a&&(a.removeAllRanges(),a.addRange(n))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}ye.HTMLContenteditableMaskElement=Sx;class rZ{constructor(t,r){this.el=t instanceof Ch?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Sx(t):new tZ(t),this.masked=Nn(r),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof ye.Masked)&&this.masked.constructor===Cx(t)){this.masked.updateOptions({mask:t});return}const r=t instanceof ye.Masked?t:Nn({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){const n=this._listeners[t];n&&n.forEach(i=>i(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,r=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==r;this._unmaskedValue=t,this._value=r,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(t){const{mask:r,...n}=t,i=!this.maskEquals(r),a=!au(this.masked,n);i&&(this.mask=r),a&&this.masked.updateOptions(n),(i||a)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ue.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;const n=this._listeners[t].indexOf(r);return n>=0&&this._listeners[t].splice(n,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const r=new eZ({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=n===this.masked.rawInputValue?r.removeDirection:ue.NONE;let o=this.masked.nearestInputPos(r.startChangePos+i,a);a!==ue.NONE&&(o=this.masked.nearestInputPos(o,ue.NONE)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}ye.InputMask=rZ;class qe{static normalize(t){return Array.isArray(t)?t:[t,new qe]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}ye.ChangeDetails=qe;class jr{constructor(t,r,n){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=n}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class qt{constructor(t){this._value="",this._update({...qt.DEFAULTS,...t}),this._initialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new jr(this.extractInput(t,r),t)}appendTail(t){return un(t)&&(t=new jr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new qe({inserted:t,rawInserted:t})):new qe}_appendChar(t,r,n){r===void 0&&(r={});const i=this.state;let a;if([t,a]=this.doPrepareChar(t,r),a=a.aggregate(this._appendCharRaw(t,r)),a.inserted){let o,s=this.doValidate(r)!==!1;if(s&&n!=null){const u=this.state;this.overwrite===!0&&(o=n.state,n.unshift(this.displayValue.length-a.tailShift));let l=this.appendTail(n);s=l.rawInserted===n.toString(),!(s&&l.inserted)&&this.overwrite==="shift"&&(this.state=u,o=n.state,n.shift(),l=this.appendTail(n),s=l.rawInserted===n.toString()),s&&l.inserted&&(this.state=u)}s||(a=new qe,this.state=i,n&&o&&(n.state=o))}return a}_appendPlaceholder(){return new qe}_appendEager(){return new qe}append(t,r,n){if(!un(t))throw new Error("value should be string");const i=un(n)?new jr(String(n)):n;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,r);for(let o=0;o<t.length;++o){const s=this._appendChar(t[o],r,i);if(!s.rawInserted&&!this.doSkipInvalid(t[o],r,i))break;a.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&a.aggregate(this._appendEager()),i!=null&&(a.tailShift+=this.appendTail(i).tailShift),a}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new qe}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;const r=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=r,this.value&&this.value!==n&&n.indexOf(this.value)===0&&this.append(n.slice(this.displayValue.length),{},""),delete this._refreshing,i}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;const r=this.state,n=t(this);return this.state=r,delete this._isolated,n}doSkipInvalid(t,r,n){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),qe.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),qe.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,n,i,a){i===void 0&&(i=ue.NONE),a===void 0&&(a={input:!0});const o=t+r,s=this.extractTail(o),u=this.eager===!0||this.eager==="remove";let l;u&&(i=JX(i),l=this.extractInput(0,o,{raw:!0}));let c=t;const f=new qe;if(i!==ue.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!u?ue.NONE:i),f.tailShift=c-t),f.aggregate(this.remove(c)),u&&i!==ue.NONE&&l===this.rawInputValue)if(i===ue.FORCE_LEFT){let d;for(;l===this.rawInputValue&&(d=this.displayValue.length);)f.aggregate(new qe({tailShift:-1})).aggregate(this.remove(d-1))}else i===ue.FORCE_RIGHT&&s.unshift();return f.aggregate(this.append(n,a,s))}maskEquals(t){return this.mask===t}typedValueEquals(t){const r=this.typedValue;return t===r||qt.EMPTY_VALUES.includes(t)&&qt.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}}qt.DEFAULTS={skipInvalid:!0},qt.EMPTY_VALUES=[void 0,null,""],ye.Masked=qt;class Vn{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=un(t)?new jr(String(t)):t;const r=this.chunks[this.chunks.length-1],n=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof jr)n?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof Vn){if(t.stop==null){let i;for(;t.chunks.length&&t.chunks[0].stop==null;)i=t.chunks.shift(),i.from+=t.from,this.extend(i)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof ye.MaskedPattern))return new jr(this.toString()).appendTo(t);const r=new qe;for(let n=0;n<this.chunks.length&&!r.skip;++n){const i=this.chunks[n],a=t._mapPosToBlock(t.displayValue.length),o=i.stop;let s;if(o!=null&&(!a||a.index<=o)){if(i instanceof Vn||t._stops.indexOf(o)>=0){const u=t._appendPlaceholder(o);r.aggregate(u)}s=i instanceof Vn&&t._blocks[o]}if(s){const u=s.appendTail(i);u.skip=!1,r.aggregate(u),t._value+=u.inserted;const l=i.toString().slice(u.rawInserted.length);l&&r.aggregate(t.append(l,{tail:!0}))}else r.aggregate(t.append(i.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:r,...n}=t;Object.assign(this,n),this.chunks=r.map(i=>{const a="chunks"in i?new Vn:new jr;return a.state=i,a})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const r=t!=null?t-this.from:t;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],a=i.unshift(r);if(i.toString()){if(!a)break;++n}else this.chunks.splice(n,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const r=this.chunks[t],n=r.shift();if(r.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}class nZ{constructor(t,r){this.masked=t,this._log=[];const{offset:n,index:i}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ue.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ue.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ue.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ue.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ue.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ue.NONE),!0})}}class Ex{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new qe}nearestInputPos(t,r){r===void 0&&(r=ue.NONE);const n=0,i=this._value.length;switch(r){case ue.LEFT:case ue.FORCE_LEFT:return n;case ue.NONE:case ue.RIGHT:case ue.FORCE_RIGHT:default:return i}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){r===void 0&&(r={});const n=new qe;if(this.isFilled)return n;const i=this.eager===!0||this.eager==="append",o=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!i)&&!r.tail;return o&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=o&&(r.raw||r.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new qe;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new jr("")}appendTail(t){return un(t)&&(t=new jr(String(t))),t.appendTo(this)}append(t,r,n){const i=this._appendChar(t[0],r);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}}class su{constructor(t){const{parent:r,isOptional:n,placeholderChar:i,displayChar:a,lazy:o,eager:s,...u}=t;this.masked=Nn(u),Object.assign(this,{parent:r,isOptional:n,placeholderChar:i,displayChar:a,lazy:o,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new qe}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new qe;const n=this.masked.state,i=this.masked._appendChar(t,this.currentMaskFlags(r));return i.inserted&&this.doValidate(r)===!1&&(i.inserted=i.rawInserted="",this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(t,r,n){return this.masked.append(t,this.currentMaskFlags(r),n)}_appendPlaceholder(){const t=new qe;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new qe}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,n)}nearestInputPos(t,r){r===void 0&&(r=ue.NONE);const n=0,i=this.value.length,a=Math.min(Math.max(t,n),i);switch(r){case ue.LEFT:case ue.FORCE_LEFT:return this.isComplete?a:n;case ue.RIGHT:case ue.FORCE_RIGHT:return this.isComplete?a:i;case ue.NONE:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return{...t,_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)}}}su.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class iZ extends qt{updateOptions(t){super.updateOptions(t)}_update(t){const r=t.mask;r&&(t.validate=n=>n.search(r)>=0),super._update(t)}}ye.MaskedRegExp=iZ;class Kt extends qt{constructor(t){super({...Kt.DEFAULTS,...t,definitions:Object.assign({},su.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const r=this.mask;if(!r||!t)return;let n=!1,i=!1;for(let a=0;a<r.length;++a){if(this.blocks){const l=r.slice(a),c=Object.keys(this.blocks).filter(d=>l.indexOf(d)===0);c.sort((d,h)=>h.length-d.length);const f=c[0];if(f){const{expose:d,...h}=ou(this.blocks[f]),g=Nn({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,...h,parent:this});g&&(this._blocks.push(g),d&&(this.exposeBlock=g),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),a+=f.length-1;continue}}let o=r[a],s=o in t;if(o===Kt.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(o==="{"||o==="}"){n=!n;continue}if(o==="["||o==="]"){i=!i;continue}if(o===Kt.ESCAPE_CHAR){if(++a,o=r[a],!o)break;s=!1}const u=s?new su({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...ou(t[o]),parent:this}):new Ex({char:o,eager:this.eager,isUnmasking:n});this._blocks.push(u)}}get state(){return{...super.state,_blocks:this._blocks.map(t=>t.state)}}set state(t){const{_blocks:r,...n}=t;this._blocks.forEach((i,a)=>i.state=r[a]),super.state=n}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const r=new qe;let n=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(n==null)return r;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const a=this._blocks[i]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._mapPosToBlock(this.displayValue.length),i=new qe;if(!n)return i;for(let o=n.index;;++o){var a;const s=this._blocks[o];if(!s)break;const u=s._appendChar(t,{...r,_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[o]}),l=u.skip;if(i.aggregate(u),l||u.rawInserted)break}return i}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=new Vn;return t===r||this._forEachBlocksInRange(t,r,(i,a,o,s)=>{const u=i.extractTail(o,s);u.stop=this._findStopBefore(a),u.from=this._blockStartPos(a),u instanceof Vn&&(u.blockIndex=a),n.extend(u)}),n}extractInput(t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),n===void 0&&(n={}),t===r)return"";let i="";return this._forEachBlocksInRange(t,r,(a,o,s,u)=>{i+=a.extractInput(s,u,n)}),i}_findStopBefore(t){let r;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=t)r=i;else break}return r}_appendPlaceholder(t){const r=new qe;if(this.lazy&&t==null)return r;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return r;const i=n.index,a=t??this._blocks.length;return this._blocks.slice(i,a).forEach(o=>{if(!o.lazy||t!=null){var s;const u=o._appendPlaceholder((s=o._blocks)==null?void 0:s.length);this._value+=u.inserted,r.aggregate(u)}}),r}_mapPosToBlock(t){let r="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],a=r.length;if(r+=i.displayValue,t<=r.length)return{index:n,offset:t-a}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,n)=>r+=n.displayValue.length,0)}_forEachBlocksInRange(t,r,n){r===void 0&&(r=this.displayValue.length);const i=this._mapPosToBlock(t);if(i){const a=this._mapPosToBlock(r),o=a&&i.index===a.index,s=i.offset,u=a&&o?a.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,s,u),a&&!o){for(let l=i.index+1;l<a.index;++l)n(this._blocks[l],l,0,this._blocks[l].displayValue.length);n(this._blocks[a.index],a.index,0,a.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._forEachBlocksInRange(t,r,(i,a,o,s)=>{n.aggregate(i.remove(o,s))}),n}nearestInputPos(t,r){if(r===void 0&&(r=ue.NONE),!this._blocks.length)return 0;const n=new nZ(this,t);if(r===ue.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(r===ue.LEFT||r===ue.FORCE_LEFT){if(r===ue.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),r===ue.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t||(n.popState(),n.ok&&n.pos<=t))return n.pos;n.popState()}return n.ok?n.pos:r===ue.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return r===ue.RIGHT||r===ue.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:r===ue.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(t,ue.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let n=0;return this._forEachBlocksInRange(t,r,(i,a,o,s)=>{n+=i.totalInputPositions(o,s)}),n}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const r=this._maskedBlocks[t];return r?r.map(n=>this._blocks[n]):[]}}Kt.DEFAULTS={lazy:!0,placeholderChar:"_"},Kt.STOP_CHAR="`",Kt.ESCAPE_CHAR="\\",Kt.InputDefinition=su,Kt.FixedDefinition=Ex,ye.MaskedPattern=Kt;class lu extends Kt{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:r=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:a=this.autofix,...o}=t;this.to=r,this.from=n,this.maxLength=Math.max(String(r).length,i),this.autofix=a;const s=String(this.from).padStart(this.maxLength,"0"),u=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<u.length&&u[l]===s[l];)++l;o.mask=u.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(o)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",n="";const[,i,a]=t.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(i.length)+a,n="9".repeat(i.length)+a),r=r.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[r,n]}doPrepareChar(t,r){r===void 0&&(r={});let n;if([t,n]=super.doPrepareChar(t.replace(/\D/g,""),r),!this.autofix||!t)return[t,n];const i=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0"),o=this.value+t;if(o.length>this.maxLength)return["",n];const[s,u]=this.boundaries(o);return Number(u)<this.from?[i[o.length-1],n]:Number(s)>this.to?this.autofix==="pad"&&o.length<this.maxLength?["",n.aggregate(this.append(i[o.length-1]+t,r))]:[a[o.length-1],n]:[t,n]}doValidate(t){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[i,a]=this.boundaries(r);return this.from<=Number(a)&&Number(i)<=this.to&&super.doValidate(t)}}ye.MaskedRange=lu;class zn extends Kt{constructor(t){const{mask:r,pattern:n,...i}={...zn.DEFAULTS,...t};super({...i,mask:un(r)?r:n})}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:r,pattern:n,blocks:i,...a}={...zn.DEFAULTS,...t},o=Object.assign({},zn.GET_DEFAULT_BLOCKS());t.min&&(o.Y.from=t.min.getFullYear()),t.max&&(o.Y.to=t.max.getFullYear()),t.min&&t.max&&o.Y.from===o.Y.to&&(o.m.from=t.min.getMonth()+1,o.m.to=t.max.getMonth()+1,o.m.from===o.m.to&&(o.d.from=t.min.getDate(),o.d.to=t.max.getDate())),Object.assign(o,this.blocks,i),Object.keys(o).forEach(s=>{const u=o[s];!("autofix"in u)&&"autofix"in t&&(u.autofix=t.autofix)}),super._update({...a,mask:un(r)?r:n,blocks:o})}doValidate(t){const r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}zn.GET_DEFAULT_BLOCKS=()=>({d:{mask:lu,from:1,to:31,maxLength:2},m:{mask:lu,from:1,to:12,maxLength:2},Y:{mask:lu,from:1900,to:9999}}),zn.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return[r,n,i].join(".")},parse:(e,t)=>{const[r,n,i]=e.split(".").map(Number);return new Date(i,n-1,r)}},ye.MaskedDate=zn;class Ao extends qt{constructor(t){super({...Ao.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{const{expose:n,...i}=ou(r),a=Nn({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=a),a}):[])}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._applyDispatch(t,r);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),n}_applyDispatch(t,r,n){t===void 0&&(t=""),r===void 0&&(r={}),n===void 0&&(n="");const i=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,o=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,s=a.slice(o.length),u=this.currentMask,l=new qe,c=u==null?void 0:u.state;if(this.currentMask=this.doDispatch(t,{...r},n),this.currentMask)if(this.currentMask!==u){if(this.currentMask.reset(),o){const f=this.currentMask.append(o,{raw:!0});l.tailShift=f.inserted.length-i.length}s&&(l.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else c&&(this.currentMask.state=c);return l}_appendPlaceholder(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const r=new qe;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,n;return{...t,_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((n=t._beforeTailState)==null?void 0:n.currentMask)||t._beforeTailState}}doDispatch(t,r,n){return r===void 0&&(r={}),n===void 0&&(n=""),this.dispatch(t,this,r,n)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[n,i]=super.doPrepare(t,r);if(this.currentMask){let a;[n,a]=super.doPrepare(n,this.currentMaskFlags(r)),i=i.aggregate(a)}return[n,i]}doPrepareChar(t,r){r===void 0&&(r={});let[n,i]=super.doPrepareChar(t,r);if(this.currentMask){let a;[n,a]=super.doPrepareChar(n,this.currentMaskFlags(r)),i=i.aggregate(a)}return[n,i]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){const n=new qe;return this.currentMask&&n.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),n}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:r,currentMaskRef:n,currentMask:i,...a}=t;r&&this.compiledMasks.forEach((o,s)=>o.state=r[s]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=a}extractInput(t,r,n){return this.currentMask?this.currentMask.extractInput(t,r,n):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,n)=>{if(!t[n])return;const{mask:i,...a}=t[n];return au(r,a)&&r.maskEquals(i)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}}Ao.DEFAULTS=void 0,Ao.DEFAULTS={dispatch:(e,t,r,n)=>{if(!t.compiledMasks.length)return;const i=t.rawInputValue,a=t.compiledMasks.map((o,s)=>{const u=t.currentMask===o,l=u?o.displayValue.length:o.nearestInputPos(o.displayValue.length,ue.FORCE_LEFT);return o.rawInputValue!==i?(o.reset(),o.append(i,{raw:!0})):u||o.remove(l),o.append(e,t.currentMaskFlags(r)),o.appendTail(n),{index:s,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(l,o.nearestInputPos(o.displayValue.length,ue.FORCE_LEFT)))}});return a.sort((o,s)=>s.weight-o.weight||s.totalInputPositions-o.totalInputPositions),t.compiledMasks[a[0].index]}},ye.MaskedDynamic=Ao;class aZ extends Kt{constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:r,...n}=t;if(r){const i=r.map(s=>s.length),a=Math.min(...i),o=Math.max(...i)-a;n.mask="*".repeat(a),o&&(n.mask+="["+"*".repeat(o)+"]"),this.enum=r}super._update(n)}doValidate(t){return this.enum.some(r=>r.indexOf(this.unmaskedValue)===0)&&super.doValidate(t)}}ye.MaskedEnum=aZ;class oZ extends qt{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}ye.MaskedFunction=oZ;class rr extends qt{constructor(t){super({...rr.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",n=(this.scale?"("+wh(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(wh).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(wh(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(t,r){r===void 0&&(r=!1);let n=0;for(let i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,r&&(t+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,n))}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.thousandsSeparator)return super._appendCharRaw(t,r);const n=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const a=super._appendCharRaw(t,r);this._value=this._insertThousandsSeparators(this._value);const o=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(o);return a.tailShift+=(s-i)*this.thousandsSeparator.length,a.skip=!a.rawInserted&&t===this.thousandsSeparator,a}_findSeparatorAround(t){if(this.thousandsSeparator){const r=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,r);if(n<=t)return n}return-1}_adjustRangeWithSeparators(t,r){const n=this._findSeparatorAround(t);n>=0&&(t=n);const i=this._findSeparatorAround(r);return i>=0&&(r=i+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);const n=this.value.slice(0,t),i=this.value.slice(r),a=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const o=this._separatorsCountFromSlice(n);return new qe({tailShift:(o-a)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case ue.NONE:case ue.LEFT:case ue.FORCE_LEFT:{const n=this._findSeparatorAround(t-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||r===ue.FORCE_LEFT)return n}break}case ue.RIGHT:case ue.FORCE_RIGHT:{const n=this._findSeparatorAround(t);if(n>=0)return n+this.thousandsSeparator.length}}return t}doValidate(t){let r=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(r){const n=this.number;r=r&&!isNaN(n)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return r&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(t){const r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(n,i,a,o)=>i+o),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,n){r===void 0&&(r={});const i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===rr.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,rr.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(rr.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||rr.EMPTY_VALUES.includes(t)&&rr.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}rr.UNMASKED_RADIX=".",rr.EMPTY_VALUES=[...qt.EMPTY_VALUES,0],rr.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[rr.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ye.MaskedNumber=rr;const Sh={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Tx(e,t,r){t===void 0&&(t=Sh.MASKED),r===void 0&&(r=Sh.MASKED);const n=Nn(e);return i=>n.runIsolated(a=>(a[t]=i,a[r]))}function sZ(e,t,r,n){return Tx(t,r,n)(e)}ye.PIPE_TYPE=Sh,ye.createPipe=Tx,ye.pipe=sZ;try{globalThis.IMask=ye}catch{}const _x={mask:M.oneOfType([M.array,M.func,M.string,M.instanceOf(RegExp),M.oneOf([Date,Number,ye.Masked]),M.instanceOf(ye.Masked)]),value:M.any,unmask:M.oneOfType([M.bool,M.oneOf(["typed"])]),prepare:M.func,prepareChar:M.func,validate:M.func,commit:M.func,overwrite:M.oneOfType([M.bool,M.oneOf(["shift"])]),eager:M.oneOfType([M.bool,M.oneOf(["append","remove"])]),skipInvalid:M.bool,onAccept:M.func,onComplete:M.func,placeholderChar:M.string,displayChar:M.string,lazy:M.bool,definitions:M.object,blocks:M.object,enum:M.arrayOf(M.string),maxLength:M.number,from:M.number,to:M.number,pattern:M.string,format:M.func,parse:M.func,autofix:M.oneOfType([M.bool,M.oneOf(["pad"])]),radix:M.string,thousandsSeparator:M.string,mapToRadix:M.arrayOf(M.string),scale:M.number,normalizeZeros:M.bool,padFractionalZeros:M.bool,min:M.oneOfType([M.number,M.instanceOf(Date)]),max:M.oneOfType([M.number,M.instanceOf(Date)]),dispatch:M.func,inputRef:M.oneOfType([M.func,M.shape({current:M.object})])},kx=Object.keys(_x).filter(e=>e!=="value"),lZ=["value","unmask","onAccept","onComplete","inputRef"],uZ=kx.filter(e=>lZ.indexOf(e)<0);function Mx(e){var t;const r=(t=class extends m.Component{constructor(a){super(a),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const a=this.props,o=this._extractMaskOptionsFromProps(a);if(o.mask)this.maskRef?(this.maskRef.updateOptions(o),"value"in a&&a.value!==void 0&&(this.maskValue=a.value)):this.initMask(o);else if(this.destroyMask(),"value"in a&&a.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=a.value:this.element.value=a.value}}componentWillUnmount(){this.destroyMask()}_inputRef(a){this.element=a,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=a:this.props.inputRef(a))}initMask(a){a===void 0&&(a=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ye(this.element,a).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(a){const{...o}=a;return Object.keys(o).filter(s=>uZ.indexOf(s)<0).forEach(s=>{delete o[s]}),o}_extractNonMaskProps(a){const{...o}=a;return kx.forEach(s=>{delete o[s]}),"defaultValue"in o||(o.defaultValue=a.mask?"":o.value),delete o.value,o}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(a){this.maskRef&&(a=a==null&&this.props.unmask!=="typed"?"":a,this.props.unmask==="typed"?this.maskRef.typedValue=a:this.props.unmask?this.maskRef.unmaskedValue=a:this.maskRef.value=a)}_onAccept(a){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,a)}_onComplete(a){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,a)}render(){return m.createElement(e,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},t.displayName=void 0,t.propTypes=void 0,t),n=e.displayName||e.name||"Component";return r.displayName="IMask("+n+")",r.propTypes=_x,m.forwardRef((i,a)=>m.createElement(r,{...i,ref:a}))}const cZ=Mx(e=>{let{inputRef:t,...r}=e;return m.createElement("input",{...r,ref:t})}),fZ=(e,t)=>m.createElement(cZ,{...e,ref:t});m.forwardRef(fZ);const dZ=Mx(e=>{const{inputRef:t,"data-value":r,defaultValue:n,tabIndex:i,...a}=e;return v.jsx(E.TextField,{inputRef:t,fullWidth:!0,...a,inputProps:{...a.inputProps,tabIndex:i},value:r})}),Eh=m.forwardRef(({onChange:e,name:t,...r},n)=>{const[i,a]=m.useState("");return v.jsx(dZ,{inputRef:n,name:t,"data-value":i,...r,onAccept:(o,s)=>{a(o),e({target:{name:t,value:s._unmaskedValue}})}})});Eh.displayName="MaskedInput";function hZ(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const pZ=Xr("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${L(t.palette.grey[500],.12)}`,a={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},o={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},s={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...a,left:20},...e==="top-center"&&{...a,left:0,right:0,margin:"auto"},...e==="top-right"&&{...a,right:20},...e==="bottom-left"&&{...o,left:20},...e==="bottom-center"&&{...o,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...o,right:20},...e==="left-top"&&{...s,top:20},...e==="left-center"&&{...s,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...s,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}}),gZ=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...a})=>{const{style:o,anchorOrigin:s,transformOrigin:u}=hZ(r);return v.jsxs(E.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:u,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...o,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...a,children:[!n&&v.jsx(pZ,{arrow:r}),t]})},mZ=E.styled(E.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[300]}`,button:{marginRight:24}})),vZ=E.styled(E.DialogContent)({padding:"24px !important"}),yZ=E.styled(E.DialogActions)(({theme:e})=>({borderTop:`1px solid ${e.palette.grey[300]}`,backgroundColor:e.palette.grey[50]})),bZ=({children:e,actionsProps:t})=>v.jsx(yZ,{sx:{borderTop:"1px solid",borderColor:"grey.300",backgroundColor:"grey.50"},...t,children:e}),Ox=({actions:e,actionsProps:t,children:r,dialogContentProps:n,dialogTitle:i,dialogTitleProps:a,onClose:o,id:s,...u})=>{const l=s||"modal-actions";return v.jsxs(E.Dialog,{id:s,scroll:"body",...u,onClose:o,children:[v.jsxs(mZ,{children:[i&&v.jsx(E.DialogTitle,{variant:"subtitle1",...a,children:i}),v.jsx(E.IconButton,{onClick:o,children:v.jsx(nt,{icon:"ic:round-close"})})]}),v.jsx(vZ,{...n,children:r}),e&&v.jsx(bZ,{actionsProps:{...t,id:l},children:e})]})},Ax=({children:e,container:t,waitBeforeShow:r=50})=>{const[n,i]=m.useState(!1);return m.useEffect(()=>{const a=setTimeout(()=>i(!0),r);return()=>clearTimeout(a)},[r]),n?Rh.createPortal(e,document.getElementById(t)||document.body):null},xZ=({children:e,id:t="modal-actions"})=>v.jsx(Ax,{container:t,children:e}),wZ=e=>{if(!e||(e=e==null?void 0:e.replace(/[^\d]+/g,""),e.length!==11||e==="00000000000"||e==="11111111111"||e==="22222222222"||e==="33333333333"||e==="44444444444"||e==="55555555555"||e==="66666666666"||e==="77777777777"||e==="88888888888"||e==="99999999999"))return!1;let t=0;for(let n=0;n<9;n++)t+=parseInt(e.charAt(n))*(10-n);let r=11-t%11;if((r===10||r===11)&&(r=0),r!==parseInt(e.charAt(9)))return!1;t=0;for(let n=0;n<10;n++)t+=parseInt(e.charAt(n))*(11-n);return r=11-t%11,(r===10||r===11)&&(r=0),r===parseInt(e.charAt(10))},CZ=e=>{if(!e||(e=e.replace(/[^\d]+/g,""),e.length!==14)||e==="00000000000000"||e==="11111111111111"||e==="22222222222222"||e==="33333333333333"||e==="44444444444444"||e==="55555555555555"||e==="66666666666666"||e==="77777777777777"||e==="88888888888888"||e==="99999999999999")return!1;let t=e.length-2,r=e.substring(0,t);const n=e.substring(t);let i=0,a=t-7;for(let s=t;s>=1;s--)i+=parseInt(r.charAt(t-s))*a--,a<2&&(a=9);let o=i%11<2?0:11-i%11;if(o!==parseInt(n.charAt(0)))return!1;t+=1,r=e.substring(0,t),i=0,a=t-7;for(let s=t;s>=1;s--)i+=parseInt(r.charAt(t-s))*a--,a<2&&(a=9);return o=i%11<2?0:11-i%11,o===parseInt(n.charAt(1))},uu=(e="",t=[8,20],r=!1,n=!1,i=!1)=>{const a=e.length>=t[0]&&e.length<=t[1],o=!i||/[A-Z]/.test(e),s=!n||/[!@#$%^&*(),.?":{}|<>]/.test(e),u=!r||/\d/.test(e);return{isLengthValid:a,hasUpperCaseChar:o,hasSpecialCharacter:s,hasNumberChar:u}},SZ=Object.freeze(Object.defineProperty({__proto__:null,cnpjIsValid:CZ,cpfIsValid:wZ,validatePassword:uu},Symbol.toStringTag,{value:"Module"})),EZ=E.styled(E.Stack)(({theme:e})=>({width:"100%",border:`solid 1px ${E.alpha(e.palette.grey[500],.32)}`,padding:16,borderRadius:8,gap:8})),TZ=E.styled(E.Stack)(()=>({gap:4})),cu=E.styled(E.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",gap:8,color:e.palette.text.secondary,div:{fontSize:12},strong:{fontWeight:700,color:e.palette.text.primary}})),fu=({passed:e})=>e?v.jsx(nt,{icon:"ic:round-check",color:"success.main"}):v.jsx(nt,{icon:"ic:outline-warning",color:"warning.main"}),_Z=({password:e,passwordSize:t,numberChar:r=!1,specialCharacter:n=!1,upperCaseChar:i=!1})=>{const{hasSpecialCharacter:a,hasUpperCaseChar:o,isLengthValid:s,hasNumberChar:u}=uu(e,t,r,n,i);return v.jsxs(EZ,{children:[v.jsx(E.Typography,{color:"text.secondary",variant:"body2",children:"Sua senha deve conter:"}),v.jsxs(TZ,{children:[v.jsxs(cu,{children:[v.jsx(fu,{passed:s}),v.jsxs(E.Typography,{component:"div",children:[v.jsxs("strong",{children:[t[0],"-",t[1]]})," ","caracteres"]})]}),i&&v.jsxs(cu,{children:[v.jsx(fu,{passed:o}),v.jsxs(E.Typography,{component:"div",children:["Pelo menos uma ",v.jsx("strong",{children:"letra maiúscula"})]})]}),r&&v.jsxs(cu,{children:[v.jsx(fu,{passed:u}),v.jsxs(E.Typography,{component:"div",children:["Pelo menos ",v.jsx("strong",{children:"um número"})]})]}),n&&v.jsxs(cu,{children:[v.jsx(fu,{passed:a}),v.jsxs(E.Typography,{component:"div",children:["Pelo menos um ",v.jsx("strong",{children:"caracter especial"})," ",v.jsx("span",{children:"(#,@,!,?)"})]})]})]})]})},kZ=({onSearch:e,onChange:t,trigger:r="click",iconPosition:n="end",tabIndex:i,...a})=>{const o=m.useRef(null),s=v.jsx(E.InputAdornment,{position:n,children:v.jsx(E.IconButton,{color:"inherit",onClick:()=>{var u;e((u=o.current)==null?void 0:u.value)},children:v.jsx(nt,{icon:"eva:search-fill",sx:{width:20,height:20}})})});return v.jsx(E.TextField,{inputRef:o,InputProps:{onKeyDown:u=>{var l;u.key==="Enter"&&e((l=o.current)==null?void 0:l.value)},...n==="start"?{startAdornment:s}:{endAdornment:s}},inputProps:{tabIndex:i,...a.inputProps},onChange:u=>{if(r==="change"){e(u.target.value);return}u.target.value===""&&e(""),t&&t(u)},...a})},MZ=E.styled(E.StepConnector)(({theme:e})=>({top:10,left:"calc(-50% + 20px)",right:"calc(50% + 20px)","& .MuiStepConnector-line":{borderTopWidth:2,borderColor:e.palette.divider},"&.Mui-active, &.Mui-completed":{"& .MuiStepConnector-line":{borderColor:e.palette.primary.main}}})),OZ=({active:e,completed:t})=>v.jsx(E.Stack,{alignItems:"center",justifyContent:"center",sx:{width:24,height:24,color:"text.disabled",...e&&{color:"primary.main"}},children:t?v.jsx(nt,{icon:"eva:checkmark-fill",sx:{color:"primary.main"}}):v.jsx(E.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"currentColor"}})}),AZ=({steps:e,activeStep:t,showLabels:r=!0,sx:n,...i})=>v.jsx(E.Stepper,{alternativeLabel:!0,activeStep:t,connector:v.jsx(MZ,{}),sx:n,...i,children:e.map(a=>v.jsx(E.Step,{children:v.jsx(E.StepLabel,{StepIconComponent:OZ,sx:{"& .MuiStepLabel-label":{typography:"subtitle2"}},children:r&&a})},a))}),PZ=({children:e,value:t,index:r,sx:n})=>v.jsx(E.Box,{role:"tabpanel",id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,sx:{mt:3,...t.toString()!==r.toString()&&{position:"absolute",width:"100%",height:0,overflow:"hidden",visibility:"hidden"},...n},children:e});function ua(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{l(n.next(c))}catch(f){o(f)}}function u(c){try{l(n.throw(c))}catch(f){o(f)}}function l(c){c.done?a(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function ca(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Px(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Dx(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var DZ=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Po(e,t){var r=$Z(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function $Z(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=DZ.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var FZ=[".DS_Store","Thumbs.db"];function IZ(e){return ua(this,void 0,void 0,function(){return ca(this,function(t){return du(e)&&jZ(e.dataTransfer)?[2,BZ(e.dataTransfer,e.type)]:LZ(e)?[2,RZ(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,NZ(e)]:[2,[]]})})}function jZ(e){return du(e)}function LZ(e){return du(e)&&du(e.target)}function du(e){return typeof e=="object"&&e!==null}function RZ(e){return Th(e.target.files).map(function(t){return Po(t)})}function NZ(e){return ua(this,void 0,void 0,function(){var t;return ca(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Po(n)})]}})})}function BZ(e,t){return ua(this,void 0,void 0,function(){var r,n;return ca(this,function(i){switch(i.label){case 0:return e.items?(r=Th(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(VZ))]):[3,2];case 1:return n=i.sent(),[2,$x(Fx(n))];case 2:return[2,$x(Th(e.files).map(function(a){return Po(a)}))]}})})}function $x(e){return e.filter(function(t){return FZ.indexOf(t.name)===-1})}function Th(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function VZ(e){if(typeof e.webkitGetAsEntry!="function")return Ix(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?jx(t):Ix(e)}function Fx(e){return e.reduce(function(t,r){return Dx(Dx([],Px(t),!1),Px(Array.isArray(r)?Fx(r):[r]),!1)},[])}function Ix(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=Po(t);return Promise.resolve(r)}function zZ(e){return ua(this,void 0,void 0,function(){return ca(this,function(t){return[2,e.isDirectory?jx(e):WZ(e)]})})}function jx(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function a(){var o=this;t.readEntries(function(s){return ua(o,void 0,void 0,function(){var u,l,c;return ca(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=f.sent(),r(u),[3,4];case 3:return l=f.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(zZ)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}a()})}function WZ(e){return ua(this,void 0,void 0,function(){return ca(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var a=Po(i,e.fullPath);r(a)},function(i){n(i)})})]})})}var HZ=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return r.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function Lx(e){return GZ(e)||YZ(e)||Vx(e)||UZ()}function UZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
257
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GZ(e){if(Array.isArray(e))return _h(e)}function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rx(Object(r),!0).forEach(function(n){Bx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Do(e,t){return XZ(e)||KZ(e,t)||Vx(e,t)||qZ()}function qZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
258
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vx(e,t){if(e){if(typeof e=="string")return _h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _h(e,t)}}function _h(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function XZ(e){if(Array.isArray(e))return e}var ZZ="file-invalid-type",QZ="file-too-large",JZ="file-too-small",eQ="too-many-files",tQ=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:ZZ,message:"File type must be ".concat(r)}},zx=function(t){return{code:QZ,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Wx=function(t){return{code:JZ,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},rQ={code:eQ,message:"Too many files"};function Hx(e,t){var r=e.type==="application/x-moz-file"||HZ(e,t);return[r,r?null:tQ(t)]}function Ux(e,t,r){if(Wn(e.size))if(Wn(t)&&Wn(r)){if(e.size>r)return[!1,zx(r)];if(e.size<t)return[!1,Wx(t)]}else{if(Wn(t)&&e.size<t)return[!1,Wx(t)];if(Wn(r)&&e.size>r)return[!1,zx(r)]}return[!0,null]}function Wn(e){return e!=null}function nQ(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(u){var l=Hx(u,r),c=Do(l,1),f=c[0],d=Ux(u,n,i),h=Do(d,1),g=h[0],p=s?s(u):null;return f&&g&&!p})}function hu(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function pu(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Yx(e){e.preventDefault()}function iQ(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function aQ(e){return e.indexOf("Edge/")!==-1}function oQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return iQ(e)||aQ(e)}function Cr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return!hu(n)&&s&&s.apply(void 0,[n].concat(a)),hu(n)})}}function sQ(){return"showOpenFilePicker"in window}function lQ(e){if(Wn(e)){var t=Object.entries(e).filter(function(r){var n=Do(r,2),i=n[0],a=n[1],o=!0;return Gx(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(qx))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(r,n){var i=Do(n,2),a=i[0],o=i[1];return Nx(Nx({},r),{},Bx({},a,o))},{});return[{description:"Files",accept:t}]}return e}function uQ(e){if(Wn(e))return Object.entries(e).reduce(function(t,r){var n=Do(r,2),i=n[0],a=n[1];return[].concat(Lx(t),[i],Lx(a))},[]).filter(function(t){return Gx(t)||qx(t)}).join(",")}function cQ(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function fQ(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Gx(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function qx(e){return/^.*\.[\w]+$/.test(e)}var dQ=["children"],hQ=["open"],pQ=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],gQ=["refKey","onChange","onClick"];function mQ(e){return bQ(e)||yQ(e)||Kx(e)||vQ()}function vQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
259
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bQ(e){if(Array.isArray(e))return Mh(e)}function kh(e,t){return CQ(e)||wQ(e,t)||Kx(e,t)||xQ()}function xQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
260
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kx(e,t){if(e){if(typeof e=="string")return Mh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mh(e,t)}}function Mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}function CQ(e){if(Array.isArray(e))return e}function Xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xx(Object(r),!0).forEach(function(n){Oh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gu(e,t){if(e==null)return{};var r=SQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ah=m.forwardRef(function(e,t){var r=e.children,n=gu(e,dQ),i=mu(n),a=i.open,o=gu(i,hQ);return m.useImperativeHandle(t,function(){return{open:a}},[a]),m.createElement(m.Fragment,null,r(st(st({},o),{},{open:a})))});Ah.displayName="Dropzone";var Zx={disabled:!1,getFilesFromEvent:IZ,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ah.defaultProps=Zx,Ah.propTypes={children:M.func,accept:M.objectOf(M.arrayOf(M.string)),multiple:M.bool,preventDropOnDocument:M.bool,noClick:M.bool,noKeyboard:M.bool,noDrag:M.bool,noDragEventsBubbling:M.bool,minSize:M.number,maxSize:M.number,maxFiles:M.number,disabled:M.bool,getFilesFromEvent:M.func,onFileDialogCancel:M.func,onFileDialogOpen:M.func,useFsAccessApi:M.bool,autoFocus:M.bool,onDragEnter:M.func,onDragLeave:M.func,onDragOver:M.func,onDrop:M.func,onDropAccepted:M.func,onDropRejected:M.func,onError:M.func,validator:M.func};var Ph={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function mu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=st(st({},Zx),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,C=t.preventDropOnDocument,k=t.noClick,w=t.noKeyboard,_=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,P=t.validator,F=m.useMemo(function(){return uQ(r)},[r]),Z=m.useMemo(function(){return lQ(r)},[r]),be=m.useMemo(function(){return typeof y=="function"?y:Qx},[y]),oe=m.useMemo(function(){return typeof p=="function"?p:Qx},[p]),Q=m.useRef(null),H=m.useRef(null),R=m.useReducer(EQ,Ph),U=kh(R,2),Ce=U[0],fe=U[1],D=Ce.isFocused,$=Ce.isFileDialogActive,W=m.useRef(typeof window<"u"&&window.isSecureContext&&b&&sQ()),se=function(){!W.current&&$&&setTimeout(function(){if(H.current){var he=H.current.files;he.length||(fe({type:"closeDialog"}),oe())}},300)};m.useEffect(function(){return window.addEventListener("focus",se,!1),function(){window.removeEventListener("focus",se,!1)}},[H,$,oe,W]);var X=m.useRef([]),ce=function(he){Q.current&&Q.current.contains(he.target)||(he.preventDefault(),X.current=[])};m.useEffect(function(){return C&&(document.addEventListener("dragover",Yx,!1),document.addEventListener("drop",ce,!1)),function(){C&&(document.removeEventListener("dragover",Yx),document.removeEventListener("drop",ce))}},[Q,C]),m.useEffect(function(){return!n&&x&&Q.current&&Q.current.focus(),function(){}},[Q,x,n]);var ne=m.useCallback(function(z){O?O(z):console.error(z)},[O]),le=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z),X.current=[].concat(mQ(X.current),[z.target]),pu(z)&&Promise.resolve(i(z)).then(function(he){if(!(hu(z)&&!T)){var lt=he.length,ut=lt>0&&nQ({files:he,accept:F,minSize:o,maxSize:a,multiple:s,maxFiles:u,validator:P}),Pt=lt>0&&!ut;fe({isDragAccept:ut,isDragReject:Pt,isDragActive:!0,type:"setDraggedFiles"}),l&&l(z)}}).catch(function(he){return ne(he)})},[i,l,ne,T,F,o,a,s,u,P]),ee=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z);var he=pu(z);if(he&&z.dataTransfer)try{z.dataTransfer.dropEffect="copy"}catch{}return he&&f&&f(z),!1},[f,T]),q=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z);var he=X.current.filter(function(ut){return Q.current&&Q.current.contains(ut)}),lt=he.indexOf(z.target);lt!==-1&&he.splice(lt,1),X.current=he,!(he.length>0)&&(fe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),pu(z)&&c&&c(z))},[Q,c,T]),te=m.useCallback(function(z,he){var lt=[],ut=[];z.forEach(function(Pt){var cn=Hx(Pt,F),Rr=kh(cn,2),Un=Rr[0],$o=Rr[1],Fo=Ux(Pt,o,a),fa=kh(Fo,2),Io=fa[0],jo=fa[1],Lo=P?P(Pt):null;if(Un&&Io&&!Lo)lt.push(Pt);else{var Ro=[$o,jo];Lo&&(Ro=Ro.concat(Lo)),ut.push({file:Pt,errors:Ro.filter(function(No){return No})})}}),(!s&&lt.length>1||s&&u>=1&&lt.length>u)&&(lt.forEach(function(Pt){ut.push({file:Pt,errors:[rQ]})}),lt.splice(0)),fe({acceptedFiles:lt,fileRejections:ut,type:"setFiles"}),d&&d(lt,ut,he),ut.length>0&&g&&g(ut,he),lt.length>0&&h&&h(lt,he)},[fe,s,F,o,a,u,d,h,g,P]),Se=m.useCallback(function(z){z.preventDefault(),z.persist(),Ye(z),X.current=[],pu(z)&&Promise.resolve(i(z)).then(function(he){hu(z)&&!T||te(he,z)}).catch(function(he){return ne(he)}),fe({type:"reset"})},[i,te,ne,T]),j=m.useCallback(function(){if(W.current){fe({type:"openDialog"}),be();var z={multiple:s,types:Z};window.showOpenFilePicker(z).then(function(he){return i(he)}).then(function(he){te(he,null),fe({type:"closeDialog"})}).catch(function(he){cQ(he)?(oe(he),fe({type:"closeDialog"})):fQ(he)?(W.current=!1,H.current?(H.current.value=null,H.current.click()):ne(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ne(he)});return}H.current&&(fe({type:"openDialog"}),be(),H.current.value=null,H.current.click())},[fe,be,oe,b,te,ne,Z,s]),Je=m.useCallback(function(z){!Q.current||!Q.current.isEqualNode(z.target)||(z.key===" "||z.key==="Enter"||z.keyCode===32||z.keyCode===13)&&(z.preventDefault(),j())},[Q,j]),J=m.useCallback(function(){fe({type:"focus"})},[]),V=m.useCallback(function(){fe({type:"blur"})},[]),re=m.useCallback(function(){k||(oQ()?setTimeout(j,0):j())},[k,j]),de=function(he){return n?null:he},Xe=function(he){return w?null:de(he)},Ue=function(he){return _?null:de(he)},Ye=function(he){T&&he.stopPropagation()},gt=m.useMemo(function(){return function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=z.refKey,lt=he===void 0?"ref":he,ut=z.role,Pt=z.onKeyDown,cn=z.onFocus,Rr=z.onBlur,Un=z.onClick,$o=z.onDragEnter,Fo=z.onDragOver,fa=z.onDragLeave,Io=z.onDrop,jo=gu(z,pQ);return st(st(Oh({onKeyDown:Xe(Cr(Pt,Je)),onFocus:Xe(Cr(cn,J)),onBlur:Xe(Cr(Rr,V)),onClick:de(Cr(Un,re)),onDragEnter:Ue(Cr($o,le)),onDragOver:Ue(Cr(Fo,ee)),onDragLeave:Ue(Cr(fa,q)),onDrop:Ue(Cr(Io,Se)),role:typeof ut=="string"&&ut!==""?ut:"presentation"},lt,Q),!n&&!w?{tabIndex:0}:{}),jo)}},[Q,Je,J,V,re,le,ee,q,Se,w,_,n]),mt=m.useCallback(function(z){z.stopPropagation()},[]),Lr=m.useMemo(function(){return function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=z.refKey,lt=he===void 0?"ref":he,ut=z.onChange,Pt=z.onClick,cn=gu(z,gQ),Rr=Oh({accept:F,multiple:s,type:"file",style:{display:"none"},onChange:de(Cr(ut,Se)),onClick:de(Cr(Pt,mt)),tabIndex:-1},lt,H);return st(st({},Rr),cn)}},[H,r,s,Se,n]);return st(st({},Ce),{},{isFocused:D&&!n,getRootProps:gt,getInputProps:Lr,rootRef:Q,inputRef:H,open:de(j)})}function EQ(e,t){switch(t.type){case"focus":return st(st({},e),{},{isFocused:!0});case"blur":return st(st({},e),{},{isFocused:!1});case"openDialog":return st(st({},Ph),{},{isFileDialogActive:!0});case"closeDialog":return st(st({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return st(st({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return st(st({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return st({},Ph);default:return e}}function Qx(){}const TQ=["pdf"],_Q=["txt"],kQ=["psd"],MQ=["doc","docx"],OQ=["xls","xlsx"],AQ=["zip","rar","iso"],PQ=["ai","esp"],DQ=["ppt","pptx"],$Q=["wav","aif","mp3","aac"],FQ=["jpg","jpeg","gif","bmp","png","svg"],IQ=["m4v","avi","mpg","mp4","webm"],Xt=e=>`/assets/icons/files/${e}.svg`;function Jx(e){let t;switch(e==null?void 0:e.includes(Nt(e))){case _Q.includes(Nt(e)):t="txt";break;case AQ.includes(Nt(e)):t="zip";break;case $Q.includes(Nt(e)):t="audio";break;case FQ.includes(Nt(e)):t="image";break;case IQ.includes(Nt(e)):t="video";break;case MQ.includes(Nt(e)):t="word";break;case OQ.includes(Nt(e)):t="excel";break;case DQ.includes(Nt(e)):t="powerpoint";break;case TQ.includes(Nt(e)):t="pdf";break;case kQ.includes(Nt(e)):t="photoshop";break;case PQ.includes(Nt(e)):t="illustrator";break;default:t=Nt(e)}return t}function jQ(e){let t;switch(Jx(e)){case"folder":t=Xt("ic_folder");break;case"txt":t=Xt("ic_txt");break;case"zip":t=Xt("ic_zip");break;case"audio":t=Xt("ic_audio");break;case"video":t=Xt("ic_video");break;case"word":t=Xt("ic_word");break;case"excel":t=Xt("ic_excel");break;case"powerpoint":t=Xt("ic_power_point");break;case"pdf":t=Xt("ic_pdf");break;case"photoshop":t=Xt("ic_pts");break;case"illustrator":t=Xt("ic_ai");break;case"image":t=Xt("ic_img");break;default:t=Xt("ic_file")}return t}function Nt(e=""){return e&&e.split(".").pop()||""}function LQ(e){return e.split("/").pop()}function Dh(e){return typeof e=="string"?{key:e,preview:e,name:LQ(e),type:Nt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function e5(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:L(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:L(t,n)}}function RQ(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,a=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||a}, ${n||a}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function NQ(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function BQ(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const VQ=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:e5,bgGradient:RQ,filterStyles:BQ,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:{msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},textGradient:NQ},Symbol.toStringTag,{value:"Module"})),t5=({onDownload:e})=>{const t=hi();return v.jsx(E.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...e5({opacity:.64,color:t.palette.grey[900]})}},children:v.jsx(nt,{icon:"eva:arrow-circle-down-fill",width:24})})},r5=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:a})=>{const{name:o="",path:s="",preview:u=""}=Dh(e),l=Jx(s||u),c=l==="image"&&r?v.jsx(E.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...a}}):v.jsx(E.Box,{component:"img",src:jQ(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?v.jsx(E.Tooltip,{title:o,children:v.jsxs(E.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&v.jsx(t5,{onDownload:n})]})}):v.jsxs(v.Fragment,{children:[c,n&&v.jsx(t5,{onDownload:n})]})},n5=({fileRejections:e})=>e.length?v.jsx(E.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>L(t.palette.error.main,.08),borderColor:t=>L(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=Dh(t);return v.jsxs(E.Box,{sx:{my:1},children:[v.jsxs(E.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?mh(i):""]}),r.map(a=>v.jsxs(E.Box,{component:"span",sx:{typography:"caption"},children:["- ",a.message]},a.code))]},n)})}):null,zQ=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?v.jsx(ug,{initial:!1,children:t.map(i=>{const{key:a,name:o="",size:s=0}=Dh(i),u=typeof i=="string";return e?v.jsxs(E.Stack,{component:Jt.div,...pa().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[v.jsx(r5,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&v.jsx(E.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>L(l.palette.common.white,.72),bgcolor:l=>L(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>L(l.palette.grey[900],.72)}},children:v.jsx(nt,{icon:"eva:close-fill",width:16})})]},a):v.jsxs(E.Stack,{component:Jt.div,...pa().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[v.jsx(r5,{file:i}),v.jsxs(E.Stack,{flexGrow:1,sx:{minWidth:0},children:[v.jsx(E.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:o}),v.jsx(E.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":mh(s)})]}),r&&v.jsx(E.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:v.jsx(nt,{icon:"eva:close-fill"})})]},a)})}):null,WQ=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return v.jsx(E.Stack,{position:"absolute",width:1,height:1,maxHeight:"100%",alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:v.jsx("img",{alt:"file preview",src:t,style:{borderRadius:8,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},HQ=Xr("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${L(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),UQ=({header:e,description:t,sx:r,...n})=>v.jsxs(E.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[v.jsx(jK,{sx:{width:220}}),v.jsxs("div",{children:[v.jsx(E.Typography,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),v.jsx(E.Typography,{variant:"body2",sx:{color:"text.secondary"},children:t||v.jsxs(v.Fragment,{children:["Solte os arquivos aqui ou clique",v.jsx(E.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})})]})]}),i5=({id:e,disabled:t,multiple:r=!1,error:n,helperText:i,file:a,onDelete:o,files:s,thumbnail:u,onUpload:l,onRemove:c,onRemoveAll:f,sx:d,dropZoneProps:h,placeholderProps:g,placeholderAlt:p,image:y,tabIndex:b,...x})=>{const{getRootProps:C,getInputProps:k,isDragActive:w,isDragReject:_,fileRejections:T}=mu({multiple:r,disabled:t,...x}),O=!!a&&!r||y,P=s&&r&&s.length>0,F=_||!!n;return v.jsxs(E.Box,{sx:{width:1,position:"relative",...d},children:[v.jsxs(HQ,{...C(),sx:{...w&&{opacity:.72},...F&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...h},children:[v.jsx("input",{...k(),id:e,tabIndex:b}),p?v.jsx(E.Stack,{sx:{...O&&{opacity:0}},children:p}):v.jsx(UQ,{sx:{...O&&{opacity:0}},header:g==null?void 0:g.title,description:g==null?void 0:g.description}),O&&v.jsx(WQ,{file:a||y||""})]}),i&&v.jsx(E.FormHelperText,{error:!!n,sx:Z=>({mx:"14px",color:t?Z.palette.grey[500]:void 0}),children:i}),v.jsx(n5,{fileRejections:T}),O&&o&&v.jsx(E.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:Z=>L(Z.palette.common.white,.8),bgcolor:Z=>L(Z.palette.grey[900],.72),"&:hover":{bgcolor:Z=>L(Z.palette.grey[900],.48)}},children:v.jsx(nt,{icon:"eva:close-fill",width:18})}),P&&v.jsxs(v.Fragment,{children:[v.jsx(E.Box,{sx:{my:3},children:v.jsx(zQ,{files:s,thumbnail:u,onRemove:c})}),v.jsxs(E.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[f&&v.jsx(E.Button,{color:"inherit",variant:"outlined",size:"small",onClick:f,children:"Remove all"}),l&&v.jsx(E.Button,{size:"small",variant:"contained",onClick:l,children:"Upload files"})]})]})]})},YQ=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return v.jsx("img",{alt:"avatar",src:t,style:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},GQ=Xr("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${L(e.palette.grey[500],.32)}`})),qQ=Xr("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),a5=({error:e,file:t,image:r,disabled:n,helperText:i,sx:a,tabIndex:o,...s})=>{const{getRootProps:u,getInputProps:l,isDragActive:c,isDragReject:f,fileRejections:d}=mu({multiple:!1,disabled:n,...s}),h=!!t||r,g=f||!!e;return v.jsxs(v.Fragment,{children:[v.jsxs(GQ,{...u(),sx:{...c&&{opacity:.72},...g&&{borderColor:"error.light",...h&&{bgcolor:"error.lighter"}},...n&&{opacity:.48,pointerEvents:"none"},...h&&{"&:hover":{"& .placeholder":{opacity:1}}},...a},children:[v.jsx("input",{...l(),tabIndex:o}),h&&v.jsx(YQ,{file:t||r||""}),v.jsxs(qQ,{className:"placeholder",sx:{"&:hover":{opacity:.72},...h&&{zIndex:9,opacity:0,color:"common.white",bgcolor:p=>L(p.palette.grey[900],.64)},...g&&{color:"error.main",bgcolor:"error.lighter"}},children:[v.jsx(nt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),v.jsx(E.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),i&&i,v.jsx(n5,{fileRejections:d})]})},KQ=Xr("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:L(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),XQ=({placeholderAlt:e,error:t,disabled:r,sx:n,tabIndex:i,...a})=>{const{getRootProps:o,getInputProps:s,isDragActive:u,isDragReject:l}=mu({disabled:r,...a}),c=l||t;return v.jsxs(KQ,{...o(),sx:{...u&&{opacity:.72},...c&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[v.jsx("input",{...s(),tabIndex:i}),e||v.jsx(nt,{icon:"eva:cloud-upload-fill",width:28})]})},ZQ=e=>new Promise((t,r)=>{const n=new Image;n.addEventListener("load",()=>t(n)),n.addEventListener("error",i=>r(i)),n.setAttribute("crossOrigin","anonymous"),n.src=e});function o5(e){return e*Math.PI/180}function QQ(e,t,r){const n=o5(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}async function JQ(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await ZQ(e),a=document.createElement("canvas"),o=a.getContext("2d");if(!o)return null;const s=o5(r),{width:u,height:l}=QQ(i.width,i.height,r);a.width=u,a.height=l,o.translate(u/2,l/2),o.rotate(s),o.scale(n.horizontal?-1:1,n.vertical?-1:1),o.translate(-i.width/2,-i.height/2),o.drawImage(i,0,0);const c=o.getImageData(t.x,t.y,t.width,t.height);return a.width=t.width,a.height=t.height,o.putImageData(c,0,0),new Promise((f,d)=>{a.toBlob(h=>{f(h)},"image/png")})}const s5=(e=!1)=>{const[t,r]=m.useState(e),n=m.useCallback(()=>r(i=>!i),[]);return[t,n,r]},l5=({onFileCropped:e,onImageUploaded:t,onCancel:r,image:n})=>{const i=m.useId(),[a,o,s]=s5(),[u,l]=m.useState({x:0,y:0}),[c,f]=m.useState(1),d=m.useRef();return{id:i,crop:u,setCrop:l,zoom:c,setZoom:f,fileRef:d,onCropComplete:async(b,x)=>{try{const C=await JQ(n,x,0);d.current=new File([C],"image.png",{type:C.type})}catch{e(void 0)}},saveChanges:()=>{e(d.current),o()},cancelChanges:()=>{r&&r(),s(!1)},handleRemove:()=>{e(void 0),t(void 0),l({x:0,y:0}),f(1),s(!1)},cropModalOpen:a,toggleCropModalOpen:o,setCropModalOpen:s}},u5=({id:e,open:t,onClose:r,label:n,onSave:i,onRemove:a,imgSrc:o,aspect:s,size:{height:u,width:l},crop:c,zoom:f,onCropComplete:d,onCropChange:h,onZoomChange:g})=>v.jsx(Ox,{open:t,onClose:r,dialogTitle:n,actions:v.jsxs(v.Fragment,{children:[v.jsx(E.Button,{variant:"outlined",size:"medium",onClick:r,color:"inherit",children:"Cancelar"}),v.jsx(E.Button,{variant:"contained",size:"medium",onClick:i,children:"Salvar"})]}),children:v.jsxs(E.Stack,{gap:2,children:[v.jsx(ax,{image:{width:l,height:u,aspect:s,imgSrc:o},crop:c,zoom:f,onCropComplete:d,onCropChange:h,onZoomChange:g}),v.jsxs(E.Stack,{gap:1.5,children:[v.jsxs(E.Stack,{width:1,direction:"row",gap:3,flex:1,alignItems:"center",mr:"auto",children:[v.jsx(E.Typography,{variant:"body1",children:"Zoom"}),v.jsx(E.Slider,{value:f,onChange:(p,y)=>g(Array.isArray(y)?y[0]:y),min:1,max:5,size:"medium",step:.5})]}),v.jsxs(E.Stack,{direction:"row",gap:2,children:[v.jsx(E.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:v.jsx(nt,{icon:"eva:trash-2-outline",color:"error.main"}),onClick:a,children:"Remover"}),v.jsx(E.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:v.jsx(nt,{icon:"ic:outline-image-search",color:ah.main}),component:"label",htmlFor:e,children:"Alterar"})]})]})]})}),eJ=E.styled(E.Stack)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),tJ=E.styled(E.Stack)(({theme:e})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:E.alpha(e.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),rJ=E.styled(E.CircularProgress)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"}),c5=({onFileCropped:e,onImageUploaded:t,onCancel:r,aspect:n,size:i,label:a,image:o="",uploading:s,file:u,tabIndex:l,...c})=>{const{id:f,crop:d,cropModalOpen:h,zoom:g,cancelChanges:p,handleRemove:y,onCropComplete:b,saveChanges:x,setCrop:C,setCropModalOpen:k,setZoom:w,toggleCropModalOpen:_}=l5({image:o,onFileCropped:e,onImageUploaded:t,onCancel:r});return v.jsxs(v.Fragment,{children:[v.jsxs(eJ,{children:[s&&v.jsx(Gl,{}),v.jsx(i5,{...c,id:f,file:u,onDrop:T=>{if(T.length>0){k(!0),w(1),C({x:0,y:0});const O=new FileReader;O.addEventListener("load",()=>{var F;const P=((F=O.result)==null?void 0:F.toString())||"";t(P),e(void 0)}),O.readAsDataURL(T[0])}},image:o,tabIndex:l}),(u||o)&&v.jsxs(tJ,{className:"actions",children:[v.jsx(E.Button,{color:"inherit",startIcon:v.jsx(nt,{icon:"eva:trash-2-outline",color:"error.main"}),onClick:y,children:"Remover"}),v.jsx(E.Button,{color:"inherit",startIcon:v.jsx(nt,{icon:"ic:outline-image",color:ah.main}),onClick:_,children:"Editar"})]})]}),v.jsx(u5,{id:f,open:h,onClose:p,label:a,aspect:n,crop:d,zoom:g,onCropComplete:b,onCropChange:C,onZoomChange:w,imgSrc:o,onRemove:y,onSave:x,size:i})]})},f5=({name:e,helperText:t,rules:r,onSelectOption:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,rules:r,render:({field:o,fieldState:{error:s}})=>v.jsx(Sf,{...o,...i,onChange:u=>{n&&n(u),o.onChange(u)},error:!!s,helperText:(s==null?void 0:s.message)||t})})},Hn=({name:e,helperText:t,rules:r,onChange:n,tabIndex:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:r,render:({field:{ref:s,...u},fieldState:{error:l}})=>v.jsx(E.TextField,{...u,onChange:c=>{u.onChange(c),n&&n(c)},inputRef:s,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||t,...a,inputProps:{...a.inputProps,tabIndex:i}})})},d5=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:i,rules:r,render:({field:{name:a,onChange:o,value:s,ref:u},fieldState:{error:l}})=>v.jsx(Eh,{ref:u,...n,name:a,value:s,error:!!l,helperText:(l==null?void 0:l.message)||t,onChange:({target:{value:c}})=>o(c)})})},nJ=({name:e,containerProps:t,required:r,rules:n,tabIndex:i})=>{const a=`${e}.zipCode`,o=`${e}.publicPlace`,s=`${e}.number`,u=`${e}.district`,l=`${e}.complement`,c=`${e}.state`,f=`${e}.city`,d=h=>{h.key==="Enter"&&h.preventDefault()};return v.jsxs(E.Stack,{gap:1.5,...t,children:[v.jsxs(E.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[v.jsx(d5,{name:a,label:"CEP",mask:[{mask:"00000-000"}],InputProps:{endAdornment:v.jsx(E.InputAdornment,{position:"end",children:v.jsx(E.CircularProgress,{size:24})})},rules:n,onKeyDown:d,required:r,sx:{width:"auto",flex:1,minWidth:160},tabIndex:i}),v.jsxs(E.Stack,{direction:{xs:"column",sm:"row"},gap:1.5,flex:{xs:1,md:"1 1 50%"},children:[v.jsx(Hn,{name:o,label:"Logradouro",onKeyDown:d,inputProps:{maxLength:70},sx:{width:"auto",minWidth:250,flex:1},tabIndex:i}),v.jsx(Hn,{name:s,label:"Número",onKeyDown:d,inputProps:{maxLength:6},sx:{width:"auto",minWidth:100},tabIndex:i})]})]}),v.jsxs(E.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[v.jsx(Hn,{name:u,label:"Bairro",onKeyDown:d,inputProps:{maxLength:20},sx:{width:"auto",flex:{xs:1,md:"1 1 100px"}},tabIndex:i}),v.jsx(Hn,{name:l,label:"Complemento",onKeyDown:d,inputProps:{maxLength:30},sx:{minWidth:200,width:"auto",flex:{xs:1,md:"1 1 500px"}},tabIndex:i})]}),v.jsxs(E.Stack,{gap:1.5,flexWrap:"wrap",direction:{xs:"column",sm:"row"},children:[v.jsx(f5,{name:c,label:"Estado",options:[],disabled:!0,required:r,sx:{flex:1},tabIndex:i}),v.jsx(Hn,{name:f,label:"Cidade",disabled:!0,required:r,sx:{flex:1},tabIndex:i})]})]})},iJ=({name:e,rules:t,helperText:r,tabIndex:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,rules:t,render:({field:o,fieldState:{error:s}})=>v.jsxs("div",{children:[v.jsx(E.FormControlLabel,{control:v.jsx(E.Checkbox,{...o,checked:o.value,tabIndex:n}),...i}),(!!s||r)&&v.jsx(E.FormHelperText,{error:!!s,children:s?s==null?void 0:s.message:r})]})})},aJ=({row:e,name:t,rules:r,label:n,options:i,spacing:a,helperText:o,required:s,...u})=>{const{control:l}=Ee.useFormContext(),c=(f,d)=>f.includes(d)?f.filter(h=>h!==d):[...f,d];return v.jsx(Ee.Controller,{name:t,control:l,rules:r,render:({field:{value:f=[],...d},fieldState:{error:h}})=>v.jsxs(E.FormControl,{component:"fieldset",children:[n&&v.jsx(E.FormLabel,{component:"legend",sx:{typography:"body2"},required:s,children:n}),v.jsx(E.FormGroup,{sx:{...e&&{flexDirection:"row"},"& .MuiFormControlLabel-root":{"&:not(:last-of-type)":{mb:a||0},...e&&{mr:0,"&:not(:last-of-type)":{mr:a||2}}}},children:i.map(g=>v.jsx(E.FormControlLabel,{control:v.jsx(E.Checkbox,{checked:f.includes(g.value),onChange:()=>d.onChange(c(f,g.value))}),label:g.label,...u},g.value))}),(!!h||o)&&v.jsx(E.FormHelperText,{error:!!h,sx:g=>({color:u.disabled?g.palette.grey[500]:void 0}),children:h?h==null?void 0:h.message:o})]})})},oJ=typeof window<"u"?m.useLayoutEffect:m.useEffect;function $h(e,t,r,n){const i=m.useRef(t);oJ(()=>{i.current=t},[t]),m.useEffect(()=>{const a=(r==null?void 0:r.current)||window;if(!(a&&a.addEventListener))return;const o=s=>i.current(s);return a.addEventListener(e,o,n),()=>{a.removeEventListener(e,o)}},[e,r,n])}const sJ=({keyName:e,inputs:t=[],rules:r,tabIndex:n,...i})=>{const a=m.useRef(null),{control:o,setValue:s,formState:{errors:u}}=Ee.useFormContext(),l=d=>{const h=d.clipboardData.getData("text").split("");t.map((g,p)=>s(g,h[p])),d.preventDefault()},c=(d,h)=>{const{maxLength:g,value:p,name:y}=d.target,b=y.replace(e,""),x=Number(b),C=document.querySelector(`input[name=${e}${x+1}]`);p.length>g&&(d.target.value=p[0]),p.length>=g&&x<6&&C!==null&&C.focus(),h(d)};$h("paste",l,a);const f=t.some(d=>u[d]);return v.jsxs(E.Stack,{children:[v.jsx(E.Stack,{direction:"row",spacing:2,justifyContent:"center",ref:a,children:t.map((d,h)=>v.jsx(Ee.Controller,{name:`${e}${h+1}`,control:o,rules:r,render:({field:g,fieldState:{error:p}})=>v.jsx(E.TextField,{...i,...g,autoComplete:"none",error:!!p,autoFocus:h===0,placeholder:"-",onChange:y=>{c(y,g.onChange)},onFocus:y=>y.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number",tabIndex:n}})},d))}),f&&v.jsx(E.FormHelperText,{error:!0,sx:{px:2},children:"Código é obrigatório"})]})},lJ=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:i,rules:{...t,validate:{...t==null?void 0:t.validate,validation:a=>{const o="#"+a.replaceAll("#","");return/^#([0-9A-Fa-f]{3}){1,2}$/.test(o)?!0:"Cor inválida"}}},render:({field:{ref:a,onChange:o,...s},fieldState:{error:u}})=>v.jsx(Ob,{...s,onChangeColor:o,inputRef:a,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||r,...n})})},uJ=({name:e,rules:t,tabIndex:r,helperText:n,required:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:t,render:({field:{ref:s,...u},fieldState:{error:l}})=>{var c;return v.jsx(Yn.DatePicker,{inputRef:s,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...a.localeText},...u,...a,value:u.value?new Date(u.value):null,slotProps:{textField:{...(c=a.slotProps)==null?void 0:c.textField,required:i,error:!!l,helperText:(l==null?void 0:l.message)||n,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:r}},openPickerButton:{tabIndex:r}}})}})},cJ=({name:e,label:t,rules:r,tabIndex:n,helperText:i,required:a,...o})=>{const{control:s,setError:u}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:s,rules:r,render:({field:{value:l,onChange:c},fieldState:{error:f}})=>v.jsx(Yn.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...o.localeText},value:[(l==null?void 0:l.startDate)||null,(l==null?void 0:l.endDate)||null],onChange:d=>c({startDate:d[0],endDate:d[1]}),onError:d=>{u(e,{message:d[0]||d[1]||void 0})},...o,slotProps:{textField:({position:d})=>{var h;return{...(h=o.slotProps)==null?void 0:h.textField,required:a,error:!!f,helperText:(f==null?void 0:f.message)||i,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:d==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`,inputProps:{tabIndex:n}}}},sx:{width:1}})})},fJ=({name:e,rules:t,tabIndex:r,helperText:n,required:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:t,render:({field:{ref:s,...u},fieldState:{error:l}})=>{var c;return v.jsx(Yn.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:s,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...a.localeText},...u,...a,value:u.value?new Date(u.value):null,slotProps:{textField:{...(c=a.slotProps)==null?void 0:c.textField,required:i,error:!!l,helperText:(l==null?void 0:l.message)||n,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:r}},openPickerButton:{tabIndex:r}}})}})},dJ=({id:e,children:t,onSubmit:r,methods:n,...i})=>v.jsx(Ee.FormProvider,{...n,children:v.jsx(E.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,...i,children:t})}),hJ=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:i,rules:r,render:({field:{ref:a,value:o,...s},fieldState:{error:u}})=>v.jsx(xh,{value:o,inputRef:a,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||t,...n,...s,name:e})})},pJ=({name:e,helperText:t,rules:r,onChange:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,rules:r,render:({field:o,fieldState:{error:s}})=>v.jsx(iu,{...o,onChange:u=>{o.onChange(u),n&&n(u)},fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...i})})},gJ=({name:e,sx:t,rules:r,passwordSize:n,specialCharacter:i,upperCaseChar:a,numberChar:o,...s})=>{const{watch:u}=Ee.useFormContext(),l=u(e),[c,f]=m.useState(!1),{hasNumberChar:d,hasSpecialCharacter:h,hasUpperCaseChar:g,isLengthValid:p}=uu(l,n,o,i,a);return v.jsx(Hn,{...s,name:e,type:c?"text":"password",InputProps:{endAdornment:v.jsx(E.InputAdornment,{position:"end",children:v.jsx(E.IconButton,{onClick:()=>f(!c),edge:"end","aria-label":"Mostrar/Ocultar senha",children:v.jsx(nt,{icon:c?"eva:eye-off-fill":"eva:eye-fill"})})})},rules:{...r,validate:{...r==null?void 0:r.validate,validationPassword:y=>{const b=uu(y,n,o,i,a);return!b.hasNumberChar||!b.hasSpecialCharacter||!b.hasUpperCaseChar||!b.isLengthValid?"Senha inválida":!0}}},sx:{...t,"& .MuiFormHelperText-root":{display:!h||!g||!p||!d?"none":void 0}}})},mJ=({name:e,rules:t,row:r,label:n,options:i,spacing:a,helperText:o,decorated:s,onChange:u,tabIndex:l,required:c,disabled:f,...d})=>{const{control:h}=Ee.useFormContext(),g=n?`${e}-${n}`:"";return v.jsx(Ee.Controller,{name:e,control:h,rules:t,render:({field:p,fieldState:{error:y}})=>v.jsxs(E.FormControl,{component:"fieldset",sx:{...s&&{paddingLeft:1.5}},children:[n&&v.jsx(E.FormLabel,{component:"legend",id:g,sx:{typography:"body2"},required:c,children:n}),v.jsx(E.RadioGroup,{...d,...p,onChange:(b,x)=>{p.onChange(b),u&&u(b,x)},"aria-labelledby":g,row:r,children:i.map(b=>v.jsx(E.FormControlLabel,{value:b.value,control:v.jsx(E.Radio,{inputProps:{tabIndex:l},disabled:f,checked:b.value===p.value}),label:b.label,sx:({palette:x})=>({"&:not(:last-of-type)":{mb:a||0},...r&&{mr:0,"&:not(:last-of-type)":{mr:a||2}},...s&&{border:`1px solid ${E.alpha(x.grey[500],.32)}`,borderRadius:1,padding:.25,paddingRight:(a||0)/2||1,...p.value===b.value&&{borderColor:"primary.main",backgroundColor:E.alpha(x.primary.main,.05)}}})},b.value))}),(!!y||o)&&v.jsx(E.FormHelperText,{error:!!y,sx:b=>({color:f?b.palette.grey[500]:void 0}),children:y?y==null?void 0:y.message:o})]})})},vJ=({name:e,helperText:t,onChange:r,tabIndex:n,...i})=>{const{control:a}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:a,render:({field:o,fieldState:{error:s}})=>v.jsxs("div",{children:[v.jsx(E.FormControlLabel,{control:v.jsx(E.Switch,{...o,checked:o.value,onChange:(u,l)=>{o.onChange(u),r&&r(u,l)},inputProps:{tabIndex:n}}),...i}),(!!s||t)&&v.jsx(E.FormHelperText,{error:!!s,sx:u=>({mx:"14px",color:i.disabled?u.palette.grey[500]:void 0}),children:s?s==null?void 0:s.message:t})]})})},yJ=({name:e,rules:t,tabIndex:r,helperText:n,required:i,...a})=>{const{control:o}=Ee.useFormContext();return v.jsx(Ee.Controller,{name:e,control:o,rules:t,render:({field:{ref:s,...u},fieldState:{error:l}})=>{var c;return v.jsx(Yn.TimePicker,{ampm:!1,format:"HH:mm",inputRef:s,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...a.localeText},...u,...a,value:u.value?new Date(u.value):null,slotProps:{textField:{...(c=a.slotProps)==null?void 0:c.textField,error:!!l,required:i,helperText:(l==null?void 0:l.message)||n,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:r}},openPickerButton:{tabIndex:r}}})}})};function h5(e,t){const{watch:r,setValue:n}=Ee.useFormContext(),[i,a]=m.useState(t),o=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),a(void 0);return}n(e,d),a(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...o,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),a(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=o.filter(g=>g!==d);n(e,h)},file:i,setFileValue:a}}const bJ=({name:e,rules:t,helperText:r,aspect:n,label:i,size:a,image:o,onFileCropped:s,onImageUploaded:u,onCancel:l,...c})=>{const{control:f}=Ee.useFormContext(),{uploadFile:d,file:h,setFileValue:g}=h5(e);return v.jsx(Ee.Controller,{name:e,control:f,rules:t,render:({field:{value:p},fieldState:{error:y}})=>v.jsx(c5,{accept:{"image/*":[]},file:p?h:void 0,onFileCropped:b=>{d(b),s&&s(b)},onImageUploaded:u,onCancel:()=>{g(void 0),l&&l()},error:!!y,disableMultiple:!0,helperText:(!!y||r)&&v.jsx(E.FormHelperText,{error:!!y,sx:{px:2},children:y?y==null?void 0:y.message:r}),aspect:n,label:i,size:a,image:o,...c})})},xJ=({onFileCropped:e,onImageUploaded:t,onCancel:r,aspect:n,size:i,label:a,image:o="",uploading:s,file:u,tabIndex:l,...c})=>{const{id:f,crop:d,cropModalOpen:h,zoom:g,cancelChanges:p,handleRemove:y,onCropComplete:b,saveChanges:x,setCrop:C,setCropModalOpen:k,setZoom:w}=l5({image:o,onFileCropped:e,onImageUploaded:t,onCancel:r});return v.jsxs(v.Fragment,{children:[v.jsxs(E.Stack,{position:"relative",alignItems:"center",justifyContent:"center",children:[s&&v.jsx(rJ,{}),v.jsx(a5,{...c,id:f,file:u,onDrop:_=>{if(_.length>0){k(!0),w(1),C({x:0,y:0});const T=new FileReader;T.addEventListener("load",()=>{var P;const O=((P=T.result)==null?void 0:P.toString())||"";t(O),e(void 0)}),T.readAsDataURL(_[0])}},image:o,tabIndex:l})]}),v.jsx(u5,{id:f,open:h,onClose:p,label:a,aspect:n,crop:d,zoom:g,onCropComplete:b,onCropChange:C,onZoomChange:w,imgSrc:o,onRemove:y,onSave:x,size:i})]})},wJ=({name:e,rules:t,helperText:r,aspect:n,label:i,size:a,image:o,onFileCropped:s,onImageUploaded:u,onCancel:l,...c})=>{const{control:f}=Ee.useFormContext(),{uploadFile:d,file:h,setFileValue:g}=h5(e);return v.jsx(Ee.Controller,{name:e,control:f,rules:t,render:({field:{value:p},fieldState:{error:y}})=>v.jsx(xJ,{accept:{"image/*":[]},file:p?h:void 0,onFileCropped:b=>{d(b),s&&s(b)},onImageUploaded:u,onCancel:()=>{g(void 0),l&&l()},error:!!y,disableMultiple:!0,helperText:(!!y||r)&&v.jsx(E.FormHelperText,{error:!!y,sx:{px:2},children:y?y==null?void 0:y.message:r}),aspect:n,label:i,size:a,image:o,...c})})},CJ=()=>{const[e,t]=m.useState(!1),[r,n]=m.useState(document.activeElement);return m.useEffect(()=>{const i=o=>n(o.target),a=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",a,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",a)}},[]),{activeElement:r,listenersReady:e}};function SJ(){const[e,t]=m.useState(null);return{copiedText:e,copy:async n=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch{return t(null),!1}}}}const EJ=({page:e,perPage:t,dir:r,search:n,searchValue:i,sort:a}={page:0,perPage:25})=>{const o=Br.useGridApiRef(),[s,u]=m.useState({page:e,perPage:t,dir:r,search:n,searchValue:i,sort:a}),l=({pageSize:p=25,page:y=0})=>{u(b=>({...b,page:y,perPage:p}))},c=p=>u(y=>({...y,page:0,search:p})),f=p=>u(y=>({...y,searchValue:p})),d=()=>u(p=>({...p,page:0,search:p.searchValue})),h=(p,y)=>u(b=>({...b,sort:p,dir:y})),g=()=>{o.current.setPage(0),l({page:0})};return{...s,apiRef:o,page:s.page||0,perPage:s.perPage||25,handlePaginationModelChange:l,handleSearch:c,handleSort:h,handleSearchValue:f,applySearchValue:d,goToPageFirstPage:g}};var TJ=Hf;function _J(e,t){return TJ(e,t)}var kJ=_J;const MJ=vn(kJ),OJ=(e,t)=>MJ(e,t),AJ=e=>{const t=m.useRef();return OJ(e,t.current)||(t.current=e),t.current},PJ=(e,t)=>{m.useEffect(e,t.map(AJ))},DJ=()=>{const e=m.useRef(!0);return e.current?(e.current=!1,!0):e.current};function $J(e=""){const[t,r]=m.useState(e);return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}function FJ({items:e,itemsPerPage:t}){const[r,n]=m.useState(1),i=Math.ceil(e.length/t),a=e.slice((r-1)*t,r*t);return{currentPage:r,totalPages:i,currentItems:a,goToPage:l=>{l>0&&l<=i&&n(l)},nextPage:()=>{r<i&&n(l=>l+1)},prevPage:()=>{r>1&&n(l=>l-1)}}}const IJ=(e,t,r="mousedown")=>{$h(r,n=>{const i=e==null?void 0:e.current;!i||i.contains(n.target)||t(n)})},jJ=(e=100,t)=>{const{scrollY:r}=mS(t),[n,i]=m.useState(!1);return m.useEffect(()=>r.onChange(a=>{a>e?i(!0):i(!1)}),[r,e]),n},LJ=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),a=`${e.replace(t,"")}.${t}`;i.href=n,i.download=a,i.click()}},Symbol.toStringTag,{value:"Module"}));function RJ(e){return Xd({},e)}var p5=1440,NJ=2520,Fh=43200,BJ=86400;function VJ(e,t,r){var n,i;N(2,arguments);var a=lr(),o=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:a.locale)!==null&&n!==void 0?n:Nl;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=qi(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=Xd(RJ(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=B(t),c=B(e)):(l=B(e),c=B(t));var f=Fb(c,l),d=(Ki(c)-Ki(l))/1e3,h=Math.round((f-d)/60),g;if(h<2)return r!=null&&r.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,u):f<10?o.formatDistance("lessThanXSeconds",10,u):f<20?o.formatDistance("lessThanXSeconds",20,u):f<40?o.formatDistance("halfAMinute",0,u):f<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(h<p5){var p=Math.round(h/60);return o.formatDistance("aboutXHours",p,u)}else{if(h<NJ)return o.formatDistance("xDays",1,u);if(h<Fh){var y=Math.round(h/p5);return o.formatDistance("xDays",y,u)}else if(h<BJ)return g=Math.round(h/Fh),o.formatDistance("aboutXMonths",g,u)}if(g=zd(c,l),g<12){var b=Math.round(h/Fh);return o.formatDistance("xMonths",b,u)}else{var x=g%12,C=Math.floor(g/12);return x<3?o.formatDistance("aboutXYears",C,u):x<9?o.formatDistance("overXYears",C,u):o.formatDistance("almostXYears",C+1,u)}}function zJ(e,t){return N(1,arguments),VJ(e,Date.now(),t)}function WJ(e){N(1,arguments);var t=B(e),r=t.getTime();return r}function HJ(e,t){const r=t||"dd/MM/yyyy";return e?qd(new Date(e),r):null}function UJ(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?qd(new Date(e),r):null}function YJ(e){return e?WJ(new Date(e)):null}function GJ(e){return e?zJ(new Date(e),{addSuffix:!0}):null}function qJ(e,t="dd/MM/yyyy hh:mm:ss"){if(!e)return null;const r=r2(e,t,new Date);return Ud(r)?r:null}const KJ=Object.freeze(Object.defineProperty({__proto__:null,fDate:HJ,fDateTime:UJ,fTimestamp:YJ,fToNow:GJ,stringToDate:qJ},Symbol.toStringTag,{value:"Module"}));function XJ(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const ZJ=Object.freeze(Object.defineProperty({__proto__:null,getRoot:XJ},Symbol.toStringTag,{value:"Module"}));function QJ(e,t,r="asc"){return e.slice().sort((n,i)=>{const a=n[t],o=i[t];return a<o?r==="asc"?-1:1:a>o?r==="asc"?1:-1:0})}function JJ(e,t,r){const n=[...r],i=n.splice(e,1)[0];return n.splice(t,0,i),n}const eee=Object.freeze(Object.defineProperty({__proto__:null,sort:QJ,updatePosition:JJ},Symbol.toStringTag,{value:"Module"})),Ih=(e="",t)=>{let r="",n=0;return[...t].forEach(i=>{r+=i==="#"?e[n++]||"_":i}),r},tee=Object.freeze(Object.defineProperty({__proto__:null,applyMask:Ih,cnpjMask:e=>Ih(e.replace(/\D/g,""),"##.###.###/####-##"),cpfMask:e=>Ih(e.replace(/\D/g,""),"###.###.###-##")},Symbol.toStringTag,{value:"Module"}));function ree(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const nee=e=>function(r){return v.jsx(m.Suspense,{fallback:v.jsx(Gl,{}),children:v.jsx(e,{...r})})},iee=Object.freeze(Object.defineProperty({__proto__:null,default:UC},Symbol.toStringTag,{value:"Module"}));A.Address=nJ,A.Autocomplete=Sf,A.AutocompleteField=f5,A.Checkbox=iJ,A.Codes=sJ,A.ColorPickerField=lJ,A.ColorPickerInput=Ob,A.Common=kK,A.CommonSSR=OK,A.Confirm=AK,A.CustomAvatar=M2,A.CustomAvatarGroup=O2,A.DataGrid=RK,A.DatePicker=uJ,A.DateRangePicker=cJ,A.DateTimePicker=fJ,A.Delayed=NK,A.DialogAnimate=bS,A.Drawer=XK,A.EmptyView=P2,A.FabButtonAnimate=yg,A.Field=Hn,A.FixedProgressBar=Gl,A.Form=dJ,A.IconButtonAnimate=bg,A.Iconify=nt,A.ImageCrop=ax,A.Incrementer=xh,A.IncrementerField=hJ,A.Label=bx,A.MaskedInput=Eh,A.MaskedInputField=d5,A.MaterialDesignContent=U1,A.MenuPopover=gZ,A.Modal=Ox,A.ModalActions=xZ,A.MotionContainer=p7,A.MotionLazyContainer=w1,A.MotionViewport=h7,A.MultiCheckbox=aJ,A.NumberInput=iu,A.NumberInputField=pJ,A.PasswordField=gJ,A.PasswordRules=_Z,A.Portal=Ax,A.RadioGroupField=mJ,A.Scrollbar=W2,A.SearchInput=kZ,A.SnackbarContent=ef,A.SnackbarProvider=q1,A.Steps=AZ,A.Switch=vJ,A.TRANSITION=Nh,A.TabPanel=PZ,A.TextAnimate=xS,A.ThemeProvider=k2,A.TimePicker=yJ,A.Transition=Ns,A.Upload=i5,A.UploadAvatar=a5,A.UploadAvatarWithCropField=wJ,A.UploadBox=XQ,A.UploadWithCrop=c5,A.UploadWithCropField=bJ,A.cssStyles=VQ,A.file=LJ,A.formatNumber=MX,A.formatTime=KJ,A.loadable=nee,A.m=Jt,A.mask=tee,A.number=CX,A.routes=ZJ,A.sort=eee,A.useActiveElement=CJ,A.useCopyToClipboard=SJ,A.useDatagrid=EJ,A.useDeepCompareEffect=PJ,A.useEventListener=$h,A.useIsMounting=DJ,A.useOffSetTop=jJ,A.useOnClickOutside=IJ,A.usePagination=FJ,A.useResponsive=x1,A.useSnackbar=Y7,A.useTabs=$J,A.useToggle=s5,A.uuidv4=ree,A.validators=SZ,A.varBgColor=F5,A.varBgKenburns=I5,A.varBgPan=j5,A.varBounce=P5,A.varContainer=Bo,A.varFade=pa,A.varFlip=M5,A.varHover=$5,A.varPath=T5,A.varRotate=D5,A.varScale=A5,A.varSlide=O5,A.varTranEnter=xe,A.varTranExit=_e,A.varTranHover=_5,A.varZoom=k5,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});