@applica-software-guru/react-admin 1.5.325 → 1.5.326

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(k,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("@emotion/styled"),require("@emotion/react"),require("react"),require("@mui/material"),require("@ant-design/icons"),require("react-router-dom"),require("@mui/icons-material"),require("ra-core"),require("react-router"),require("react-admin"),require("react-hook-form"),require("react-query"),require("react-dom"),require("ra-i18n-polyglot")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@emotion/styled","@emotion/react","react","@mui/material","@ant-design/icons","react-router-dom","@mui/icons-material","ra-core","react-router","react-admin","react-hook-form","react-query","react-dom","ra-i18n-polyglot"],f):(k=typeof globalThis<"u"?globalThis:k||self,f(k["react-admin"]={},k["react/jsx-runtime"],k["@emotion/styled"],k["@emotion/react"],k.React,k["@mui/material"],k["@ant-design/icons"],k["react-router-dom"],k["@mui/icons-material"],k["ra-core"],k["react-router"],k["react-admin"],k["react-hook-form"],k["react-query"],k.ReactDOM,k["ra-i18n-polyglot"]))})(this,function(k,f,Zt,Wt,E,S,Ue,ut,en,q,ai,L,tn,li,Zi,gv){"use strict";var mae=Object.defineProperty;var nj=k=>{throw TypeError(k)};var vae=(k,f,Zt)=>f in k?mae(k,f,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):k[f]=Zt;var zl=(k,f,Zt)=>vae(k,typeof f!="symbol"?f+"":f,Zt),hv=(k,f,Zt)=>f.has(k)||nj("Cannot "+Zt);var Nn=(k,f,Zt)=>(hv(k,f,"read from private field"),Zt?Zt.call(k):f.get(k)),Io=(k,f,Zt)=>f.has(k)?nj("Cannot add the same private member more than once"):f instanceof WeakSet?f.add(k):f.set(k,Zt),si=(k,f,Zt,Wt)=>(hv(k,f,"write to private field"),Wt?Wt.call(k,Zt):f.set(k,Zt),Zt),Ul=(k,f,Zt)=>(hv(k,f,"access private method"),Zt);var Qo,Ri,Hl,bl,xl,Xs,Cl,wl,Di;function mv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=mv(E),vv=mv(Zi),yv=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Gl=E.createContext({}),bf=E.createContext(null),Yl=typeof document<"u",rj=Yl?E.useLayoutEffect:E.useEffect,bv=E.createContext({strict:!1}),xf=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),xv="data-"+xf("framerAppearId");function oj(e,t,n,r){const{visualElement:o}=E.useContext(Gl),i=E.useContext(bv),a=E.useContext(bf),c=E.useContext(yv).reducedMotion,u=E.useRef();r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current;E.useInsertionEffect(()=>{d&&d.update(n,a)});const p=E.useRef(!!(n[xv]&&!window.HandoffComplete));return rj(()=>{d&&(d.render(),p.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(d.updateFeatures(),!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),d}function Qi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ij(e,t,n){return E.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qi(n)&&(n.current=r))},[t])}function ca(e){return typeof e=="string"||Array.isArray(e)}function Kl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Cf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...Cf];function Xl(e){return Kl(e.animate)||wf.some(t=>ca(e[t]))}function Cv(e){return!!(Xl(e)||e.variants)}function sj(e,t){if(Xl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ca(n)?n:void 0,animate:ca(r)?r:void 0}}return e.inherit!==!1?t:{}}function aj(e){const{initial:t,animate:n}=sj(e,E.useContext(Gl));return E.useMemo(()=>({initial:t,animate:n}),[wv(t),wv(n)])}function wv(e){return Array.isArray(e)?e.join(" "):e}const Sv={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"]},ua={};for(const e in Sv)ua[e]={isEnabled:t=>Sv[e].some(n=>!!t[n])};function lj(e){for(const t in e)ua[t]={...ua[t],...e[t]}}const Ev=E.createContext({}),Tv=E.createContext({}),cj=Symbol.for("motionComponentSymbol");function uj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&lj(e);function i(c,u){let d;const p={...E.useContext(yv),...c,layoutId:dj(c)},{isStatic:g}=p,v=aj(c),y=r(c,g);if(!g&&Yl){v.visualElement=oj(o,y,p,t);const b=E.useContext(Tv),x=E.useContext(bv).strict;v.visualElement&&(d=v.visualElement.loadFeatures(p,x,e,b))}return D.createElement(Gl.Provider,{value:v},d&&v.visualElement?D.createElement(d,{visualElement:v.visualElement,...p}):null,n(o,c,ij(y,v.visualElement,u),y,g,v.visualElement))}const a=E.forwardRef(i);return a[cj]=o,a}function dj({layoutId:e}){const t=E.useContext(Ev).id;return t&&e!==void 0?t+"-"+e:e}function fj(e){function t(r,o={}){return uj(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const pj=["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 Sf(e){return typeof e!="string"||e.includes("-")?!1:!!(pj.indexOf(e)>-1||/[A-Z]/.test(e))}const Zl={};function hj(e){Object.assign(Zl,e)}const da=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ci=new Set(da);function Av(e,{layout:t,layoutId:n}){return ci.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zl[e]||e==="opacity")}const An=e=>!!(e&&e.getVelocity),gj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mj=da.length;function vj(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<mj;a++){const c=da[a];if(e[c]!==void 0){const u=gj[c]||c;i+=`${u}(${e[c]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Iv=e=>t=>typeof t=="string"&&t.startsWith(e),Ov=Iv("--"),Ef=Iv("var(--"),yj=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,bj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Oo=(e,t,n)=>Math.min(Math.max(n,e),t),ui={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fa={...ui,transform:e=>Oo(0,1,e)},Ql={...ui,default:1},pa=e=>Math.round(e*1e5)/1e5,Jl=/(-)?([\d]*\.?[\d])+/g,Pv=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,xj=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ha(e){return typeof e=="string"}const ga=e=>({test:t=>ha(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Po=ga("deg"),Rr=ga("%"),Fe=ga("px"),Cj=ga("vh"),wj=ga("vw"),jv={...Rr,parse:e=>Rr.parse(e)/100,transform:e=>Rr.transform(e*100)},kv={...ui,transform:Math.round},Mv={borderWidth:Fe,borderTopWidth:Fe,borderRightWidth:Fe,borderBottomWidth:Fe,borderLeftWidth:Fe,borderRadius:Fe,radius:Fe,borderTopLeftRadius:Fe,borderTopRightRadius:Fe,borderBottomRightRadius:Fe,borderBottomLeftRadius:Fe,width:Fe,maxWidth:Fe,height:Fe,maxHeight:Fe,size:Fe,top:Fe,right:Fe,bottom:Fe,left:Fe,padding:Fe,paddingTop:Fe,paddingRight:Fe,paddingBottom:Fe,paddingLeft:Fe,margin:Fe,marginTop:Fe,marginRight:Fe,marginBottom:Fe,marginLeft:Fe,rotate:Po,rotateX:Po,rotateY:Po,rotateZ:Po,scale:Ql,scaleX:Ql,scaleY:Ql,scaleZ:Ql,skew:Po,skewX:Po,skewY:Po,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:fa,originX:jv,originY:jv,originZ:Fe,zIndex:kv,fillOpacity:fa,strokeOpacity:fa,numOctaves:kv};function Tf(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:c}=e;let u=!1,d=!1,p=!0;for(const g in t){const v=t[g];if(Ov(g)){i[g]=v;continue}const y=Mv[g],b=bj(v,y);if(ci.has(g)){if(u=!0,a[g]=b,!p)continue;v!==(y.default||0)&&(p=!1)}else g.startsWith("origin")?(d=!0,c[g]=b):o[g]=b}if(t.transform||(u||r?o.transform=vj(e.transform,n,p,r):o.transform&&(o.transform="none")),d){const{originX:g="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${g} ${v} ${y}`}}const Af=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fv(e,t,n){for(const r in t)!An(t[r])&&!Av(r,n)&&(e[r]=t[r])}function Sj({transformTemplate:e},t,n){return E.useMemo(()=>{const r=Af();return Tf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Ej(e,t,n){const r=e.style||{},o={};return Fv(o,r,e),Object.assign(o,Sj(e,t,n)),e.transformValues?e.transformValues(o):o}function Tj(e,t,n){const r={},o=Ej(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Aj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ql(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Aj.has(e)}let _v=e=>!ql(e);function Ij(e){e&&(_v=t=>t.startsWith("on")?!ql(t):e(t))}try{Ij(require("@emotion/is-prop-valid").default)}catch{}function Oj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(_v(o)||n===!0&&ql(o)||!t&&!ql(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Rv(e,t,n){return typeof e=="string"?e:Fe.transform(t+n*e)}function Pj(e,t,n){const r=Rv(t,e.x,e.width),o=Rv(n,e.y,e.height);return`${r} ${o}`}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},kj={offset:"strokeDashoffset",array:"strokeDasharray"};function Mj(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?jj:kj;e[i.offset]=Fe.transform(-r);const a=Fe.transform(t),c=Fe.transform(n);e[i.array]=`${a} ${c}`}function If(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},p,g,v){if(Tf(e,d,p,v),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b,dimensions:x}=e;y.transform&&(x&&(b.transform=y.transform),delete y.transform),x&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=Pj(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&Mj(y,a,c,u,!1)}const Dv=()=>({...Af(),attrs:{}}),Of=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fj(e,t,n,r){const o=E.useMemo(()=>{const i=Dv();return If(i,t,{enableHardwareAcceleration:!1},Of(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fv(i,e.style,e),o.style={...i,...o.style}}return o}function _j(e=!1){return(n,r,o,{latestValues:i},a)=>{const u=(Sf(n)?Fj:Tj)(r,i,a,n),p={...Oj(r,typeof n=="string",e),...u,ref:o},{children:g}=r,v=E.useMemo(()=>An(g)?g.get():g,[g]);return E.createElement(n,{...p,children:v})}}function Lv(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Bv=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 Nv(e,t,n,r){Lv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Bv.has(o)?o:xf(o),t.attrs[o])}function Pf(e,t){const{style:n}=e,r={};for(const o in n)(An(n[o])||t.style&&An(t.style[o])||Av(o,e))&&(r[o]=n[o]);return r}function Vv(e,t){const n=Pf(e,t);for(const r in e)if(An(e[r])||An(t[r])){const o=da.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function jf(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Rj(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const $l=e=>Array.isArray(e),Dj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Lj=e=>$l(e)?e[e.length-1]||0:e;function ec(e){const t=An(e)?e.get():e;return Dj(t)?t.toValue():t}function Bj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Nj(r,o,i,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const Wv=e=>(t,n)=>{const r=E.useContext(Gl),o=E.useContext(bf),i=()=>Bj(e,t,r,o);return n?i():Rj(i)};function Nj(e,t,n,r){const o={},i=r(e,{});for(const v in i)o[v]=ec(i[v]);let{initial:a,animate:c}=e;const u=Xl(e),d=Cv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const g=p?c:a;return g&&typeof g!="boolean"&&!Kl(g)&&(Array.isArray(g)?g:[g]).forEach(y=>{const b=jf(e,y);if(!b)return;const{transitionEnd:x,transition:w,...A}=b;for(const j in A){let T=A[j];if(Array.isArray(T)){const P=p?T.length-1:0;T=T[P]}T!==null&&(o[j]=T)}for(const j in x)o[j]=x[j]}),o}const kt=e=>e;class zv{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 n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Vj(e){let t=new zv,n=new zv,r=0,o=!1,i=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const g=p&&o,v=g?t:n;return d&&a.add(u),v.add(u)&&g&&o&&(r=t.order.length),u},cancel:u=>{n.remove(u),a.delete(u)},process:u=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const p=t.order[d];p(u),a.has(p)&&(c.schedule(p),e())}o=!1,i&&(i=!1,c.process(u))}};return c}const tc=["prepare","read","update","preRender","render","postRender"],Wj=40;function zj(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=tc.reduce((g,v)=>(g[v]=Vj(()=>n=!0),g),{}),a=g=>i[g].process(o),c=()=>{const g=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(g-o.timestamp,Wj),1),o.timestamp=g,o.isProcessing=!0,tc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(c))},u=()=>{n=!0,r=!0,o.isProcessing||e(c)};return{schedule:tc.reduce((g,v)=>{const y=i[v];return g[v]=(b,x=!1,w=!1)=>(n||u(),y.schedule(b,x,w)),g},{}),cancel:g=>tc.forEach(v=>i[v].cancel(g)),state:o,steps:i}}const{schedule:vt,cancel:eo,state:cn,steps:kf}=zj(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Uj={useVisualState:Wv({scrapeMotionValuesFromProps:Vv,createRenderState:Dv,onMount:(e,t,{renderState:n,latestValues:r})=>{vt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),vt.render(()=>{If(n,r,{enableHardwareAcceleration:!1},Of(t.tagName),e.transformTemplate),Nv(t,n)})}})},Hj={useVisualState:Wv({scrapeMotionValuesFromProps:Pf,createRenderState:Af})};function Gj(e,{forwardMotionProps:t=!1},n,r){return{...Sf(e)?Uj:Hj,preloadedFeatures:n,useRender:_j(t),createVisualElement:r,Component:e}}function to(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Uv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function nc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Yj=e=>t=>Uv(t)&&e(t,nc(t));function no(e,t,n,r){return to(e,t,Yj(n),r)}const Kj=(e,t)=>n=>t(e(n)),jo=(...e)=>e.reduce(Kj);function Hv(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gv=Hv("dragHorizontal"),Yv=Hv("dragVertical");function Kv(e){let t=!1;if(e==="y")t=Yv();else if(e==="x")t=Gv();else{const n=Gv(),r=Yv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Xv(){const e=Kv(!0);return e?(e(),!1):!0}class ko{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||Xv())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&vt.update(()=>c[r](i,a))};return no(e.current,n,o,{passive:!e.getProps()[r]})}class Xj extends ko{mount(){this.unmount=jo(Zv(this.node,!0),Zv(this.node,!1))}unmount(){}}class Zj extends ko{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=jo(to(this.node.current,"focus",()=>this.onFocus()),to(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Qv=(e,t)=>t?e===t?!0:Qv(e,t.parentElement):!1;function Mf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,nc(n))}class Qj extends ko{constructor(){super(...arguments),this.removeStartListeners=kt,this.removeEndListeners=kt,this.removeAccessibleListeners=kt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=no(window,"pointerup",(c,u)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:p,globalTapTarget:g}=this.node.getProps();vt.update(()=>{!g&&!Qv(this.node.current,c.target)?p&&p(c,u):d&&d(c,u)})},{passive:!(r.onTap||r.onPointerUp)}),a=no(window,"pointercancel",(c,u)=>this.cancelPress(c,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jo(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Mf("up",(u,d)=>{const{onTap:p}=this.node.getProps();p&&vt.update(()=>p(u,d))})};this.removeEndListeners(),this.removeEndListeners=to(this.node.current,"keyup",a),Mf("down",(c,u)=>{this.startPress(c,u)})},n=to(this.node.current,"keydown",t),r=()=>{this.isPressing&&Mf("cancel",(i,a)=>this.cancelPress(i,a))},o=to(this.node.current,"blur",r);this.removeAccessibleListeners=jo(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&vt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xv()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&vt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=no(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=to(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ff=new WeakMap,_f=new WeakMap,Jj=e=>{const t=Ff.get(e.target);t&&t(e)},qj=e=>{e.forEach(Jj)};function $j({root:e,...t}){const n=e||document;_f.has(n)||_f.set(n,{});const r=_f.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(qj,{root:e,...t})),r[o]}function e3(e,t,n){const r=$j(t);return Ff.set(e,n),r.observe(e),()=>{Ff.delete(e),r.unobserve(e)}}const t3={some:0,all:1};class n3 extends ko{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:t3[o]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=d?p:g;v&&v(u)};return e3(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(r3(t,n))&&this.startObserver()}unmount(){}}function r3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o3={inView:{Feature:n3},tap:{Feature:Qj},focus:{Feature:Zj},hover:{Feature:Xj}};function Jv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function i3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function s3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function rc(e,t,n){const r=e.getProps();return jf(r,t,n!==void 0?n:r.custom,i3(e),s3(e))}let ma=kt,Ar=kt;process.env.NODE_ENV!=="production"&&(ma=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ar=(e,t)=>{if(!e)throw new Error(t)});const Mo=e=>e*1e3,ro=e=>e/1e3,a3={current:!1},qv=e=>Array.isArray(e)&&typeof e[0]=="number";function $v(e){return!!(!e||typeof e=="string"&&ey[e]||qv(e)||Array.isArray(e)&&e.every($v))}const va=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ey={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:va([0,.65,.55,1]),circOut:va([.55,0,1,.45]),backIn:va([.31,.01,.66,-.59]),backOut:va([.33,1.53,.69,.99])};function ty(e){if(e)return qv(e)?va(e):Array.isArray(e)?e.map(ty):ey[e]}function l3(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:c,times:u}={}){const d={[t]:n};u&&(d.offset=u);const p=ty(c);return Array.isArray(p)&&(d.easing=p),e.animate(d,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function c3(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ny=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,u3=1e-7,d3=12;function f3(e,t,n,r,o){let i,a,c=0;do a=t+(n-t)/2,i=ny(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>u3&&++c<d3);return a}function ya(e,t,n,r){if(e===t&&n===r)return kt;const o=i=>f3(i,0,1,e,n);return i=>i===0||i===1?i:ny(o(i),t,r)}const p3=ya(.42,0,1,1),h3=ya(0,0,.58,1),ry=ya(.42,0,.58,1),g3=e=>Array.isArray(e)&&typeof e[0]!="number",oy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iy=e=>t=>1-e(1-t),Rf=e=>1-Math.sin(Math.acos(e)),sy=iy(Rf),m3=oy(Rf),ay=ya(.33,1.53,.69,.99),Df=iy(ay),v3=oy(Df),ly={linear:kt,easeIn:p3,easeInOut:ry,easeOut:h3,circIn:Rf,circInOut:m3,circOut:sy,backIn:Df,backInOut:v3,backOut:ay,anticipate:e=>(e*=2)<1?.5*Df(e):.5*(2-Math.pow(2,-10*(e-1)))},cy=e=>{if(Array.isArray(e)){Ar(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return ya(t,n,r,o)}else if(typeof e=="string")return Ar(ly[e]!==void 0,`Invalid easing type '${e}'`),ly[e];return e},Lf=(e,t)=>n=>!!(ha(n)&&xj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),uy=(e,t,n)=>r=>{if(!ha(r))return r;const[o,i,a,c]=r.match(Jl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},y3=e=>Oo(0,255,e),Bf={...ui,transform:e=>Math.round(y3(e))},di={test:Lf("rgb","red"),parse:uy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bf.transform(e)+", "+Bf.transform(t)+", "+Bf.transform(n)+", "+pa(fa.transform(r))+")"};function b3(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Nf={test:Lf("#"),parse:b3,transform:di.transform},Ji={test:Lf("hsl","hue"),parse:uy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rr.transform(pa(t))+", "+Rr.transform(pa(n))+", "+pa(fa.transform(r))+")"},bn={test:e=>di.test(e)||Nf.test(e)||Ji.test(e),parse:e=>di.test(e)?di.parse(e):Ji.test(e)?Ji.parse(e):Nf.parse(e),transform:e=>ha(e)?e:e.hasOwnProperty("red")?di.transform(e):Ji.transform(e)},At=(e,t,n)=>-n*e+n*t+e;function Vf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function x3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=Vf(u,c,e+1/3),i=Vf(u,c,e),a=Vf(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const Wf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},C3=[Nf,di,Ji],w3=e=>C3.find(t=>t.test(e));function dy(e){const t=w3(e);Ar(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Ji&&(n=x3(n)),n}const fy=(e,t)=>{const n=dy(e),r=dy(t),o={...n};return i=>(o.red=Wf(n.red,r.red,i),o.green=Wf(n.green,r.green,i),o.blue=Wf(n.blue,r.blue,i),o.alpha=At(n.alpha,r.alpha,i),di.transform(o))};function S3(e){var t,n;return isNaN(e)&&ha(e)&&(((t=e.match(Jl))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Pv))===null||n===void 0?void 0:n.length)||0)>0}const py={regex:yj,countKey:"Vars",token:"${v}",parse:kt},hy={regex:Pv,countKey:"Colors",token:"${c}",parse:bn.parse},gy={regex:Jl,countKey:"Numbers",token:"${n}",parse:ui.parse};function zf(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function oc(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zf(n,py),zf(n,hy),zf(n,gy),n}function my(e){return oc(e).values}function vy(e){const{values:t,numColors:n,numVars:r,tokenised:o}=oc(e),i=t.length;return a=>{let c=o;for(let u=0;u<i;u++)u<r?c=c.replace(py.token,a[u]):u<r+n?c=c.replace(hy.token,bn.transform(a[u])):c=c.replace(gy.token,pa(a[u]));return c}}const E3=e=>typeof e=="number"?0:e;function T3(e){const t=my(e);return vy(e)(t.map(E3))}const Fo={test:S3,parse:my,createTransformer:vy,getAnimatableNone:T3},yy=(e,t)=>n=>`${n>0?t:e}`;function by(e,t){return typeof e=="number"?n=>At(e,t,n):bn.test(e)?fy(e,t):e.startsWith("var(")?yy(e,t):Cy(e,t)}const xy=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>by(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}},A3=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=by(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Cy=(e,t)=>{const n=Fo.createTransformer(t),r=oc(e),o=oc(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?jo(xy(r.values,o.values),n):(ma(!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.`),yy(e,t))},ba=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wy=(e,t)=>n=>At(e,t,n);function I3(e){return typeof e=="number"?wy:typeof e=="string"?bn.test(e)?fy:Cy:Array.isArray(e)?xy:typeof e=="object"?A3:wy}function O3(e,t,n){const r=[],o=n||I3(e[0]),i=e.length-1;for(let a=0;a<i;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=jo(u,c)}r.push(c)}return r}function Sy(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ar(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=O3(t,r,o),c=a.length,u=d=>{let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const g=ba(e[p],e[p+1],d);return a[p](g)};return n?d=>u(Oo(e[0],e[i-1],d)):u}function P3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ba(0,t,r);e.push(At(n,1,o))}}function j3(e){const t=[0];return P3(t,e.length-1),t}function k3(e,t){return e.map(n=>n*t)}function M3(e,t){return e.map(()=>t||ry).splice(0,e.length-1)}function ic({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=g3(r)?r.map(cy):cy(r),i={done:!1,value:t[0]},a=k3(n&&n.length===t.length?n:j3(t),e),c=Sy(a,t,{ease:Array.isArray(o)?o:M3(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}function Ey(e,t){return t?e*(1e3/t):0}const F3=5;function Ty(e,t,n){const r=Math.max(t-F3,0);return Ey(n-e(r),t-r)}const Uf=.001,_3=.01,Ay=10,R3=.05,D3=1;function L3({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ma(e<=Mo(Ay),"Spring duration must be 10 seconds or less");let a=1-t;a=Oo(R3,D3,a),e=Oo(_3,Ay,ro(e)),a<1?(o=d=>{const p=d*a,g=p*e,v=p-n,y=Hf(d,a),b=Math.exp(-g);return Uf-v/y*b},i=d=>{const g=d*a*e,v=g*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-g),x=Hf(Math.pow(d,2),a);return(-o(d)+Uf>0?-1:1)*((v-y)*b)/x}):(o=d=>{const p=Math.exp(-d*e),g=(d-n)*e+1;return-Uf+p*g},i=d=>{const p=Math.exp(-d*e),g=(n-d)*(e*e);return p*g});const c=5/e,u=N3(o,i,c);if(e=Mo(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const B3=12;function N3(e,t,n){let r=n;for(let o=1;o<B3;o++)r=r-e(r)/t(r);return r}function Hf(e,t){return e*Math.sqrt(1-t*t)}const V3=["duration","bounce"],W3=["stiffness","damping","mass"];function Iy(e,t){return t.some(n=>e[n]!==void 0)}function z3(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Iy(e,W3)&&Iy(e,V3)){const n=L3(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Oy({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:p,velocity:g,isResolvedFromDuration:v}=z3({...r,velocity:-ro(r.velocity||0)}),y=g||0,b=u/(2*Math.sqrt(c*d)),x=i-o,w=ro(Math.sqrt(c/d)),A=Math.abs(x)<5;n||(n=A?.01:2),t||(t=A?.005:.5);let j;if(b<1){const T=Hf(w,b);j=P=>{const O=Math.exp(-b*w*P);return i-O*((y+b*w*x)/T*Math.sin(T*P)+x*Math.cos(T*P))}}else if(b===1)j=T=>i-Math.exp(-w*T)*(x+(y+w*x)*T);else{const T=w*Math.sqrt(b*b-1);j=P=>{const O=Math.exp(-b*w*P),_=Math.min(T*P,300);return i-O*((y+b*w*x)*Math.sinh(_)+T*x*Math.cosh(_))/T}}return{calculatedDuration:v&&p||null,next:T=>{const P=j(T);if(v)a.done=T>=p;else{let O=y;T!==0&&(b<1?O=Ty(j,T,P):O=0);const _=Math.abs(O)<=n,R=Math.abs(i-P)<=t;a.done=_&&R}return a.value=a.done?i:P,a}}}function Py({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},y=N=>c!==void 0&&N<c||u!==void 0&&N>u,b=N=>c===void 0?u:u===void 0||Math.abs(c-N)<Math.abs(u-N)?c:u;let x=n*t;const w=g+x,A=a===void 0?w:a(w);A!==w&&(x=A-g);const j=N=>-x*Math.exp(-N/r),T=N=>A+j(N),P=N=>{const Y=j(N),X=T(N);v.done=Math.abs(Y)<=d,v.value=v.done?A:X};let O,_;const R=N=>{y(v.value)&&(O=N,_=Oy({keyframes:[v.value,b(v.value)],velocity:Ty(T,N,v.value),damping:o,stiffness:i,restDelta:d,restSpeed:p}))};return R(0),{calculatedDuration:null,next:N=>{let Y=!1;return!_&&O===void 0&&(Y=!0,P(N),R(N)),O!==void 0&&N>O?_.next(N-O):(!Y&&P(N),v)}}}const U3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>vt.update(t,!0),stop:()=>eo(t),now:()=>cn.isProcessing?cn.timestamp:performance.now()}},jy=2e4;function ky(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jy;)t+=n,r=e.next(t);return t>=jy?1/0:t}const H3={decay:Py,inertia:Py,tween:ic,keyframes:ic,spring:Oy};function sc({autoplay:e=!0,delay:t=0,driver:n=U3,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:c="loop",onPlay:u,onStop:d,onComplete:p,onUpdate:g,...v}){let y=1,b=!1,x,w;const A=()=>{w=new Promise(ee=>{x=ee})};A();let j;const T=H3[o]||ic;let P;T!==ic&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ar(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),P=Sy([0,100],r,{clamp:!1}),r=[0,100]);const O=T({...v,keyframes:r});let _;c==="mirror"&&(_=T({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let R="idle",N=null,Y=null,X=null;O.calculatedDuration===null&&i&&(O.calculatedDuration=ky(O));const{calculatedDuration:G}=O;let re=1/0,ne=1/0;G!==null&&(re=G+a,ne=re*(i+1)-a);let Z=0;const J=ee=>{if(Y===null)return;y>0&&(Y=Math.min(Y,ee)),y<0&&(Y=Math.min(ee-ne/y,Y)),N!==null?Z=N:Z=Math.round(ee-Y)*y;const de=Z-t*(y>=0?1:-1),ge=y>=0?de<0:de>ne;Z=Math.max(de,0),R==="finished"&&N===null&&(Z=ne);let fe=Z,he=O;if(i){const ye=Math.min(Z,ne)/re;let we=Math.floor(ye),Ie=ye%1;!Ie&&ye>=1&&(Ie=1),Ie===1&&we--,we=Math.min(we,i+1),!!(we%2)&&(c==="reverse"?(Ie=1-Ie,a&&(Ie-=a/re)):c==="mirror"&&(he=_)),fe=Oo(0,1,Ie)*re}const me=ge?{done:!1,value:r[0]}:he.next(fe);P&&(me.value=P(me.value));let{done:Se}=me;!ge&&G!==null&&(Se=y>=0?Z>=ne:Z<=0);const be=N===null&&(R==="finished"||R==="running"&&Se);return g&&g(me.value),be&&W(),me},V=()=>{j&&j.stop(),j=void 0},$=()=>{R="idle",V(),x(),A(),Y=X=null},W=()=>{R="finished",p&&p(),V(),x()},ie=()=>{if(b)return;j||(j=n(J));const ee=j.now();u&&u(),N!==null?Y=ee-N:(!Y||R==="finished")&&(Y=ee),R==="finished"&&A(),X=Y,N=null,R="running",j.start()};e&&ie();const U={then(ee,de){return w.then(ee,de)},get time(){return ro(Z)},set time(ee){ee=Mo(ee),Z=ee,N!==null||!j||y===0?N=ee:Y=j.now()-ee/y},get duration(){const ee=O.calculatedDuration===null?ky(O):O.calculatedDuration;return ro(ee)},get speed(){return y},set speed(ee){ee===y||!j||(y=ee,U.time=ro(Z))},get state(){return R},play:ie,pause:()=>{R="paused",N=Z},stop:()=>{b=!0,R!=="idle"&&(R="idle",d&&d(),$())},cancel:()=>{X!==null&&J(X),$()},complete:()=>{R="finished"},sample:ee=>(Y=0,J(ee))};return U}function G3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Y3=G3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),K3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ac=10,X3=2e4,Z3=(e,t)=>t.type==="spring"||e==="backgroundColor"||!$v(t.ease);function Q3(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Y3()&&K3.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,c,u,d=!1;const p=()=>{u=new Promise(T=>{c=T})};p();let{keyframes:g,duration:v=300,ease:y,times:b}=o;if(Z3(t,o)){const T=sc({...o,repeat:0,delay:0});let P={done:!1,value:g[0]};const O=[];let _=0;for(;!P.done&&_<X3;)P=T.sample(_),O.push(P.value),_+=ac;b=void 0,g=O,v=_-ac,y="linear"}const x=l3(e.owner.current,t,g,{...o,duration:v,ease:y,times:b}),w=()=>{d=!1,x.cancel()},A=()=>{d=!0,vt.update(w),c(),p()};return x.onfinish=()=>{d||(e.set(c3(g,o)),r&&r(),A())},{then(T,P){return u.then(T,P)},attachTimeline(T){return x.timeline=T,x.onfinish=null,kt},get time(){return ro(x.currentTime||0)},set time(T){x.currentTime=Mo(T)},get speed(){return x.playbackRate},set speed(T){x.playbackRate=T},get duration(){return ro(v)},play:()=>{a||(x.play(),eo(w))},pause:()=>x.pause(),stop:()=>{if(a=!0,x.playState==="idle")return;const{currentTime:T}=x;if(T){const P=sc({...o,autoplay:!1});e.setWithVelocity(P.sample(T-ac).value,P.sample(T).value,ac)}A()},complete:()=>{d||x.finish()},cancel:A}}function J3({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:kt,pause:kt,stop:kt,then:i=>(i(),Promise.resolve()),cancel:kt,complete:kt});return t?sc({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const q3={type:"spring",stiffness:500,damping:25,restSpeed:10},$3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),e4={type:"keyframes",duration:.8},t4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n4=(e,{keyframes:t})=>t.length>2?e4:ci.has(e)?e.startsWith("scale")?$3(t[1]):q3:t4,Gf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Fo.test(t)||t==="0")&&!t.startsWith("url(")),r4=new Set(["brightness","contrast","saturate","opacity"]);function o4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Jl)||[];if(!r)return e;const o=n.replace(r,"");let i=r4.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const i4=/([a-z-]*)\(.*?\)/g,Yf={...Fo,getAnimatableNone:e=>{const t=e.match(i4);return t?t.map(o4).join(" "):e}},s4={...Mv,color:bn,backgroundColor:bn,outlineColor:bn,fill:bn,stroke:bn,borderColor:bn,borderTopColor:bn,borderRightColor:bn,borderBottomColor:bn,borderLeftColor:bn,filter:Yf,WebkitFilter:Yf},Kf=e=>s4[e];function My(e,t){let n=Kf(e);return n!==Yf&&(n=Fo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Fy=e=>/^0[^.\s]+$/.test(e);function a4(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Fy(e)}function l4(e,t,n,r){const o=Gf(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let c;const u=[];for(let d=0;d<i.length;d++)i[d]===null&&(i[d]=d===0?a:i[d-1]),a4(i[d])&&u.push(d),typeof i[d]=="string"&&i[d]!=="none"&&i[d]!=="0"&&(c=i[d]);if(o&&u.length&&c)for(let d=0;d<u.length;d++){const p=u[d];i[p]=My(t,c)}return i}function c4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:c,from:u,elapsed:d,...p}){return!!Object.keys(p).length}function Xf(e,t){return e[t]||e.default||e}const u4={skipAnimations:!1},Zf=(e,t,n,r={})=>o=>{const i=Xf(r,e)||{},a=i.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Mo(a);const u=l4(t,e,n,i),d=u[0],p=u[u.length-1],g=Gf(e,d),v=Gf(e,p);ma(g===v,`You are trying to animate ${e} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let y={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-c,onUpdate:b=>{t.set(b),i.onUpdate&&i.onUpdate(b)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(c4(i)||(y={...y,...n4(e,y)}),y.duration&&(y.duration=Mo(y.duration)),y.repeatDelay&&(y.repeatDelay=Mo(y.repeatDelay)),!g||!v||a3.current||i.type===!1||u4.skipAnimations)return J3(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const b=Q3(t,e,y);if(b)return b}return sc(y)};function lc(e){return!!(An(e)&&e.add)}const _y=e=>/^\-?\d*\.?\d+$/.test(e);function Qf(e,t){e.indexOf(t)===-1&&e.push(t)}function Jf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qf{constructor(){this.subscriptions=[]}add(t){return Qf(this.subscriptions,t),()=>Jf(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ry=new Set;function $f(e,t,n){e||Ry.has(t)||(console.warn(t),Ry.add(t))}const d4=e=>!isNaN(parseFloat(e));class f4{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:a}=cn;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,vt.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()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>vt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==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=d4(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&$f(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qf);const r=this.events[t].add(n);return t==="change"?()=>{r(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}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?Ey(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 qi(e,t){return new f4(e,t)}const Dy=e=>t=>t.test(e),Ly=[ui,Fe,Rr,Po,wj,Cj,{test:e=>e==="auto",parse:e=>e}],xa=e=>Ly.find(Dy(e)),p4=[...Ly,bn,Fo],h4=e=>p4.find(Dy(e));function g4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qi(n))}function m4(e,t){const n=rc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const c=Lj(i[a]);g4(e,a,c)}}function v4(e,t,n){var r,o;const i=Object.keys(t).filter(c=>!e.hasValue(c)),a=i.length;if(a)for(let c=0;c<a;c++){const u=i[c],d=t[u];let p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(o=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&o!==void 0?o:t[u]),p!=null&&(typeof p=="string"&&(_y(p)||Fy(p))?p=parseFloat(p):!h4(p)&&Fo.test(d)&&(p=My(u,d)),e.addValue(u,qi(p,{owner:e})),n[u]===void 0&&(n[u]=p),p!==null&&e.setBaseTarget(u,p))}}function y4(e,t){return t?(t[e]||t.default||t).from:void 0}function b4(e,t,n){const r={};for(const o in e){const i=y4(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function x4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function C4(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function By(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...c}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(i=r);const d=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in c){const v=e.getValue(g),y=c[g];if(!v||y===void 0||p&&x4(p,g))continue;const b={delay:n,elapsed:0,...Xf(i||{},g)};if(window.HandoffAppearAnimations){const A=e.getProps()[xv];if(A){const j=window.HandoffAppearAnimations(A,g,v,vt);j!==null&&(b.elapsed=j,b.isHandoff=!0)}}let x=!b.isHandoff&&!C4(v,y);if(b.type==="spring"&&(v.getVelocity()||b.velocity)&&(x=!1),v.animation&&(x=!1),x)continue;v.start(Zf(g,v,y,e.shouldReduceMotion&&ci.has(g)?{type:!1}:b));const w=v.animation;lc(u)&&(u.add(g),w.then(()=>u.remove(g))),d.push(w)}return a&&Promise.all(d).then(()=>{a&&m4(e,a)}),d}function ep(e,t,n={}){const r=rc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(By(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:g}=o;return w4(e,t,d+u,p,g,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function w4(e,t,n=0,r=0,o=1,i){const a=[],c=(e.variantChildren.size-1)*r,u=o===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(S4).forEach((d,p)=>{d.notify("AnimationStart",t),a.push(ep(d,t,{...i,delay:n+u(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function S4(e,t){return e.sortNodePosition(t)}function E4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ep(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ep(e,t,n);else{const o=typeof t=="function"?rc(e,t,n.custom):t;r=Promise.all(By(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const T4=[...Cf].reverse(),A4=Cf.length;function I4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>E4(e,n,r)))}function O4(e){let t=I4(e);const n=j4();let r=!0;const o=(u,d)=>{const p=rc(e,d);if(p){const{transition:g,transitionEnd:v,...y}=p;u={...u,...y,...v}}return u};function i(u){t=u(e)}function a(u,d){const p=e.getProps(),g=e.getVariantContext(!0)||{},v=[],y=new Set;let b={},x=1/0;for(let A=0;A<A4;A++){const j=T4[A],T=n[j],P=p[j]!==void 0?p[j]:g[j],O=ca(P),_=j===d?T.isActive:null;_===!1&&(x=A);let R=P===g[j]&&P!==p[j]&&O;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),T.protectedKeys={...b},!T.isActive&&_===null||!P&&!T.prevProp||Kl(P)||typeof P=="boolean")continue;let Y=P4(T.prevProp,P)||j===d&&T.isActive&&!R&&O||A>x&&O,X=!1;const G=Array.isArray(P)?P:[P];let re=G.reduce(o,{});_===!1&&(re={});const{prevResolvedValues:ne={}}=T,Z={...ne,...re},J=V=>{Y=!0,y.has(V)&&(X=!0,y.delete(V)),T.needsAnimating[V]=!0};for(const V in Z){const $=re[V],W=ne[V];if(b.hasOwnProperty(V))continue;let ie=!1;$l($)&&$l(W)?ie=!Jv($,W):ie=$!==W,ie?$!==void 0?J(V):y.add(V):$!==void 0&&y.has(V)?J(V):T.protectedKeys[V]=!0}T.prevProp=P,T.prevResolvedValues=re,T.isActive&&(b={...b,...re}),r&&e.blockInitialAnimation&&(Y=!1),Y&&(!R||X)&&v.push(...G.map(V=>({animation:V,options:{type:j,...u}})))}if(y.size){const A={};y.forEach(j=>{const T=e.getBaseTarget(j);T!==void 0&&(A[j]=T)}),v.push({animation:A})}let w=!!v.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(v):Promise.resolve()}function c(u,d,p){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(y=>{var b;return(b=y.animationState)===null||b===void 0?void 0:b.setActive(u,d)}),n[u].isActive=d;const v=a(p,u);for(const y in n)n[y].protectedKeys={};return v}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n}}function P4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Jv(t,e):!1}function fi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function j4(){return{animate:fi(!0),whileInView:fi(),whileHover:fi(),whileTap:fi(),whileDrag:fi(),whileFocus:fi(),exit:fi()}}class k4 extends ko{constructor(t){super(t),t.animationState||(t.animationState=O4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Kl(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let M4=0;class F4 extends ko{constructor(){super(...arguments),this.id=M4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const _4={animation:{Feature:k4},exit:{Feature:F4}},Ny=(e,t)=>Math.abs(e-t);function R4(e,t){const n=Ny(e.x,t.x),r=Ny(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vy{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=np(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,y=R4(g.offset,{x:0,y:0})>=3;if(!v&&!y)return;const{point:b}=g,{timestamp:x}=cn;this.history.push({...b,timestamp:x});const{onStart:w,onMove:A}=this.handlers;v||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=tp(v,this.transformPagePoint),vt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=np(g.type==="pointercancel"?this.lastMoveEventInfo:tp(v,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,w),b&&b(g,w)},!Uv(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=nc(t),c=tp(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=cn;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(t,np(c,this.history)),this.removeListeners=jo(no(this.contextWindow,"pointermove",this.handlePointerMove),no(this.contextWindow,"pointerup",this.handlePointerUp),no(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eo(this.updatePoint)}}function tp(e,t){return t?{point:t(e.point)}:e}function Wy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function np({point:e},t){return{point:e,delta:Wy(e,zy(t)),offset:Wy(e,D4(t)),velocity:L4(t,.1)}}function D4(e){return e[0]}function zy(e){return e[e.length-1]}function L4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zy(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Mo(t)));)n--;if(!r)return{x:0,y:0};const i=ro(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Vn(e){return e.max-e.min}function rp(e,t=0,n=.01){return Math.abs(e-t)<=n}function Uy(e,t,n,r=.5){e.origin=r,e.originPoint=At(t.min,t.max,e.origin),e.scale=Vn(n)/Vn(t),(rp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=At(n.min,n.max,e.origin)-e.originPoint,(rp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ca(e,t,n,r){Uy(e.x,t.x,n.x,r?r.originX:void 0),Uy(e.y,t.y,n.y,r?r.originY:void 0)}function Hy(e,t,n){e.min=n.min+t.min,e.max=e.min+Vn(t)}function B4(e,t,n){Hy(e.x,t.x,n.x),Hy(e.y,t.y,n.y)}function Gy(e,t,n){e.min=t.min-n.min,e.max=e.min+Vn(t)}function wa(e,t,n){Gy(e.x,t.x,n.x),Gy(e.y,t.y,n.y)}function N4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?At(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?At(n,e,r.max):Math.min(e,n)),e}function Yy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function V4(e,{top:t,left:n,bottom:r,right:o}){return{x:Yy(e.x,n,o),y:Yy(e.y,t,r)}}function Ky(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W4(e,t){return{x:Ky(e.x,t.x),y:Ky(e.y,t.y)}}function z4(e,t){let n=.5;const r=Vn(e),o=Vn(t);return o>r?n=ba(t.min,t.max-r,e.min):r>o&&(n=ba(e.min,e.max-o,t.min)),Oo(0,1,n)}function U4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const op=.35;function H4(e=op){return e===!1?e=0:e===!0&&(e=op),{x:Xy(e,"left","right"),y:Xy(e,"top","bottom")}}function Xy(e,t,n){return{min:Zy(e,t),max:Zy(e,n)}}function Zy(e,t){return typeof e=="number"?e:e[t]||0}const Qy=()=>({translate:0,scale:1,origin:0,originPoint:0}),$i=()=>({x:Qy(),y:Qy()}),Jy=()=>({min:0,max:0}),zt=()=>({x:Jy(),y:Jy()});function nr(e){return[e("x"),e("y")]}function qy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function G4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Y4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ip(e){return e===void 0||e===1}function sp({scale:e,scaleX:t,scaleY:n}){return!ip(e)||!ip(t)||!ip(n)}function pi(e){return sp(e)||$y(e)||e.z||e.rotate||e.rotateX||e.rotateY}function $y(e){return eb(e.x)||eb(e.y)}function eb(e){return e&&e!=="0%"}function cc(e,t,n){const r=e-n,o=t*r;return n+o}function tb(e,t,n,r,o){return o!==void 0&&(e=cc(e,o,r)),cc(e,n,r)+t}function ap(e,t=0,n=1,r,o){e.min=tb(e.min,t,n,r,o),e.max=tb(e.max,t,n,r,o)}function nb(e,{x:t,y:n}){ap(e.x,t.translate,t.scale,t.originPoint),ap(e.y,n.translate,n.scale,n.originPoint)}function K4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let c=0;c<o;c++){i=n[c],a=i.projectionDelta;const u=i.instance;u&&u.style&&u.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&es(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,nb(e,a)),r&&pi(i.latestValues)&&es(e,i.latestValues))}t.x=rb(t.x),t.y=rb(t.y)}function rb(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function _o(e,t){e.min=e.min+t,e.max=e.max+t}function ob(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=At(e.min,e.max,i);ap(e,t[n],t[r],a,t.scale)}const X4=["x","scaleX","originX"],Z4=["y","scaleY","originY"];function es(e,t){ob(e.x,t,X4),ob(e.y,t,Z4)}function ib(e,t){return qy(Y4(e.getBoundingClientRect(),t))}function Q4(e,t,n){const r=ib(e,n),{scroll:o}=t;return o&&(_o(r.x,o.offset.x),_o(r.y,o.offset.y)),r}const sb=({current:e})=>e?e.ownerDocument.defaultView:null,J4=new WeakMap;class q4{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=zt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(nc(p,"page").point)},i=(p,g)=>{const{drag:v,dragPropagation:y,onDragStart:b}=this.getProps();if(v&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Kv(v),!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),nr(w=>{let A=this.getAxisMotionValue(w).get()||0;if(Rr.test(A)){const{projection:j}=this.visualElement;if(j&&j.layout){const T=j.layout.layoutBox[w];T&&(A=Vn(T)*(parseFloat(A)/100))}}this.originPoint[w]=A}),b&&vt.update(()=>b(p,g),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(p,g)=>{const{dragPropagation:v,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=$4(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&x(p,g)},c=(p,g)=>this.stop(p,g),u=()=>nr(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Vy(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:sb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&vt.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!uc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=N4(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Qi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=V4(o.layoutBox,n):this.constraints=!1,this.elastic=H4(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=U4(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qi(t))return!1;const r=t.current;Ar(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Q4(r,o.root,this.visualElement.getTransformPagePoint());let a=W4(o.layout.layoutBox,i);if(n){const c=n(G4(a));this.hasMutatedConstraints=!!c,c&&(a=qy(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=nr(p=>{if(!uc(p,n,this.currentDirection))return;let g=u&&u[p]||{};a&&(g={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,b={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(p,b)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Zf(t,r,0,n))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!uc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n];i.set(t[n]-At(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qi(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};nr(a=>{const c=this.getAxisMotionValue(a);if(c){const u=c.get();o[a]=z4({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!uc(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(At(u,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;J4.set(this.visualElement,this);const t=this.visualElement.current,n=no(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Qi(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=to(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(nr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=u[p].translate,g.set(g.get()+u[p].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=op,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:c}}}function uc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class e5 extends ko{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new q4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const ab=e=>(t,n)=>{e&&vt.update(()=>e(t,n))};class t5 extends ko{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Vy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ab(t),onStart:ab(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&vt.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=no(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 n5(){const e=E.useContext(bf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=E.useId();return E.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const dc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;const n=lb(e,t.target.x),r=lb(e,t.target.y);return`${n}% ${r}%`}},r5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Fo.parse(e);if(o.length>5)return r;const i=Fo.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const d=At(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class o5 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;hj(i5),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),dc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||vt.postRender(()=>{const c=a.getStack();(!c||!c.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:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cb(e){const[t,n]=n5(),r=E.useContext(Ev);return E.createElement(o5,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Tv),isPresent:t,safeToRemove:n})}const i5={borderRadius:{...Sa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sa,borderTopRightRadius:Sa,borderBottomLeftRadius:Sa,borderBottomRightRadius:Sa,boxShadow:r5},ub=["TopLeft","TopRight","BottomLeft","BottomRight"],s5=ub.length,db=e=>typeof e=="string"?parseFloat(e):e,fb=e=>typeof e=="number"||Fe.test(e);function a5(e,t,n,r,o,i){o?(e.opacity=At(0,n.opacity!==void 0?n.opacity:1,l5(r)),e.opacityExit=At(t.opacity!==void 0?t.opacity:1,0,c5(r))):i&&(e.opacity=At(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<s5;a++){const c=`border${ub[a]}Radius`;let u=pb(t,c),d=pb(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||fb(u)===fb(d)?(e[c]=Math.max(At(db(u),db(d),r),0),(Rr.test(d)||Rr.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=At(t.rotate||0,n.rotate||0,r))}function pb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const l5=hb(0,.5,sy),c5=hb(.5,.95,kt);function hb(e,t,n){return r=>r<e?0:r>t?1:n(ba(e,t,r))}function gb(e,t){e.min=t.min,e.max=t.max}function rr(e,t){gb(e.x,t.x),gb(e.y,t.y)}function mb(e,t,n,r,o){return e-=t,e=cc(e,1/n,r),o!==void 0&&(e=cc(e,1/o,r)),e}function u5(e,t=0,n=1,r=.5,o,i=e,a=e){if(Rr.test(t)&&(t=parseFloat(t),t=At(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=At(i.min,i.max,r);e===i&&(c-=t),e.min=mb(e.min,t,n,c,o),e.max=mb(e.max,t,n,c,o)}function vb(e,t,[n,r,o],i,a){u5(e,t[n],t[r],t[o],t.scale,i,a)}const d5=["x","scaleX","originX"],f5=["y","scaleY","originY"];function yb(e,t,n,r){vb(e.x,t,d5,n?n.x:void 0,r?r.x:void 0),vb(e.y,t,f5,n?n.y:void 0,r?r.y:void 0)}function bb(e){return e.translate===0&&e.scale===1}function xb(e){return bb(e.x)&&bb(e.y)}function p5(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 Cb(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 wb(e){return Vn(e.x)/Vn(e.y)}class h5{constructor(){this.members=[]}add(t){Qf(this.members,t),t.scheduleRender()}remove(t){if(Jf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:d,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const g5=(e,t)=>e.depth-t.depth;class m5{constructor(){this.children=[],this.isDirty=!1}add(t){Qf(this.children,t),this.isDirty=!0}remove(t){Jf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(g5),this.isDirty=!1,this.children.forEach(t)}}function v5(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(eo(r),e(i-t))};return vt.read(r,!0),()=>eo(r)}function y5(e){window.MotionDebug&&window.MotionDebug.record(e)}function b5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function x5(e,t,n){const r=An(e)?e:qi(e);return r.start(Zf("",r,t,n)),r.animation}const Eb=["","X","Y","Z"],C5={visibility:"hidden"},Tb=1e3;let w5=0;const hi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ab({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t==null?void 0:t()){this.id=w5++,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.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hi.totalNodes=hi.resolvedTargetDeltas=hi.recalculatedProjection=0,this.nodes.forEach(T5),this.nodes.forEach(j5),this.nodes.forEach(k5),this.nodes.forEach(A5),y5(hi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new m5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new qf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=b5(a),this.instance=a;const{layoutId:u,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=v5(v,250),dc.hasAnimatedSinceResize&&(dc.hasAnimatedSinceResize=!1,this.nodes.forEach(Ob))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||p.getDefaultTransition()||D5,{onLayoutAnimationStart:w,onLayoutAnimationComplete:A}=p.getProps(),j=!this.targetLayout||!Cb(this.targetLayout,b)||y,T=!v&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||v&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,T);const P={...Xf(x,"layout"),onPlay:w,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else v||Ob(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,eo(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(M5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!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 p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ib);return}this.isUpdating||this.nodes.forEach(O5),this.isUpdating=!1,this.nodes.forEach(P5),this.nodes.forEach(S5),this.nodes.forEach(E5),this.clearAllSnapshots();const c=performance.now();cn.delta=Oo(0,1e3/60,c-cn.timestamp),cn.timestamp=c,cn.isProcessing=!0,kf.update.process(cn),kf.preRender.process(cn),kf.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(I5),this.sharedNodes.forEach(F5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vt.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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=zt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!xb(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;a&&(c||pi(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),L5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return zt();const c=a.measureViewportBox(),{scroll:u}=this.root;return u&&(_o(c.x,u.offset.x),_o(c.y,u.offset.y)),c}removeElementScroll(a){const c=zt();rr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:g}=d;if(d!==this.root&&p&&g.layoutScroll){if(p.isRoot){rr(c,a);const{scroll:v}=this.root;v&&(_o(c.x,-v.offset.x),_o(c.y,-v.offset.y))}_o(c.x,p.offset.x),_o(c.y,p.offset.y)}}return c}applyTransform(a,c=!1){const u=zt();rr(u,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&es(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),pi(p.latestValues)&&es(u,p.latestValues)}return pi(this.latestValues)&&es(u,this.latestValues),u}removeTransform(a){const c=zt();rr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!pi(d.latestValues))continue;sp(d.latestValues)&&d.updateSnapshot();const p=zt(),g=d.measurePageBox();rr(p,g),yb(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return pi(this.latestValues)&&yb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==cn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=zt(),this.relativeTargetOrigin=zt(),wa(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=zt(),this.targetWithTransforms=zt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),nb(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=zt(),this.relativeTargetOrigin=zt(),wa(this.relativeTargetOrigin,this.target,y.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||sp(this.parent.latestValues)||$y(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 a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===cn.timestamp&&(d=!1),d)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;rr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;K4(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:b}=c;if(!b){this.projectionTransform&&(this.projectionDelta=$i(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=$i(),this.projectionDeltaWithTransform=$i());const x=this.projectionTransform;Ca(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Sb(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==v||this.treeScale.y!==y)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),hi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},p={...this.latestValues},g=$i();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=zt(),y=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=y!==b,w=this.getStack(),A=!w||w.members.length<=1,j=!!(x&&!A&&this.options.crossfade===!0&&!this.path.some(R5));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const O=P/1e3;Pb(g.x,a.x,O),Pb(g.y,a.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wa(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_5(this.relativeTarget,this.relativeTargetOrigin,v,O),T&&p5(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=zt()),rr(T,this.relativeTarget)),x&&(this.animationValues=p,a5(p,d,this.latestValues,O,j,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vt.update(()=>{dc.hasAnimatedSinceResize=!0,this.currentAnimation=x5(0,Tb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&_b(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||zt();const g=Vn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+g;const v=Vn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+v}rr(c,u),es(c,p),Ca(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new h5),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const d={};for(let p=0;p<Eb.length;p++){const g="rotate"+Eb[p];u[g]&&(d[g]=u[g],a.setStaticValue(g,0))}a.render();for(const p in d)a.setStaticValue(p,d[p]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return C5;const d={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=ec(a==null?void 0:a.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none",d;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=ec(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(x.transform=p?p({},""):"none",this.hasProjected=!1),x}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),d.transform=Sb(this.projectionDeltaWithTransform,this.treeScale,v),p&&(d.transform=p(v,d.transform));const{x:y,y:b}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,g.animationValues?d.opacity=g===this?(u=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const x in Zl){if(v[x]===void 0)continue;const{correct:w,applyTo:A}=Zl[x],j=d.transform==="none"?v[x]:w(v[x],g);if(A){const T=A.length;for(let P=0;P<T;P++)d[A[P]]=j}else d[x]=j}return this.options.layoutId&&(d.pointerEvents=g===this?ec(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ib),this.root.sharedNodes.clear()}}}function S5(e){e.updateLayout()}function E5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?nr(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Vn(v);v.min=r[g].min,v.max=v.min+y}):_b(i,n.layoutBox,r)&&nr(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Vn(r[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const c=$i();Ca(c,r,n.layoutBox);const u=$i();a?Ca(u,e.applyTransform(o,!0),n.measuredBox):Ca(u,r,n.layoutBox);const d=!xb(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const b=zt();wa(b,n.layoutBox,v.layoutBox);const x=zt();wa(x,r,y.layoutBox),Cb(b,x)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function T5(e){hi.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 A5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I5(e){e.clearSnapshot()}function Ib(e){e.clearMeasurements()}function O5(e){e.isLayoutDirty=!1}function P5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ob(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function j5(e){e.resolveTargetDelta()}function k5(e){e.calcProjection()}function M5(e){e.resetRotation()}function F5(e){e.removeLeadSnapshot()}function Pb(e,t,n){e.translate=At(t.translate,0,n),e.scale=At(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function jb(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}function _5(e,t,n,r){jb(e.x,t.x,n.x,r),jb(e.y,t.y,n.y,r)}function R5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const D5={duration:.45,ease:[.4,0,.1,1]},kb=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Mb=kb("applewebkit/")&&!kb("chrome/")?Math.round:kt;function Fb(e){e.min=Mb(e.min),e.max=Mb(e.max)}function L5(e){Fb(e.x),Fb(e.y)}function _b(e,t,n){return e==="position"||e==="preserve-aspect"&&!rp(wb(t),wb(n),.2)}const B5=Ab({attachResizeListener:(e,t)=>to(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lp={current:void 0},Rb=Ab({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lp.current){const e=new B5({});e.mount(window),e.setOptions({layoutScroll:!0}),lp.current=e}return lp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),N5={pan:{Feature:t5},drag:{Feature:e5,ProjectionNode:Rb,MeasureLayout:cb}},V5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function W5(e){const t=V5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const z5=4;function cp(e,t,n=1){Ar(n<=z5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W5(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return _y(a)?parseFloat(a):a}else return Ef(o)?cp(o,t,n+1):o}function U5(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ef(i))return;const a=cp(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!Ef(i))continue;const a=cp(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const H5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Db=e=>H5.has(e),G5=e=>Object.keys(e).some(Db),fc=e=>e===ui||e===Fe,Lb=(e,t)=>parseFloat(e.split(", ")[t]),Bb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Lb(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Lb(i[1],e):0}},Y5=new Set(["x","y","z"]),K5=da.filter(e=>!Y5.has(e));function X5(e){const t=[];return K5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ts={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Bb(4,13),y:Bb(5,14)};ts.translateX=ts.x,ts.translateY=ts.y;const Z5=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{c[d]=ts[d](r,i)}),t.render();const u=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);p&&p.jump(c[d]),e[d]=ts[d](u,i)}),e},Q5=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Db);let i=[],a=!1;const c=[];if(o.forEach(u=>{const d=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],g=xa(p);const v=t[u];let y;if($l(v)){const b=v.length,x=v[0]===null?1:0;p=v[x],g=xa(p);for(let w=x;w<b&&v[w]!==null;w++)y?Ar(xa(v[w])===y,"All keyframes must be of the same type"):(y=xa(v[w]),Ar(y===g||fc(g)&&fc(y),"Keyframes must be of the same dimension as the current value"))}else y=xa(v);if(g!==y)if(fc(g)&&fc(y)){const b=d.get();typeof b=="string"&&d.set(parseFloat(b)),typeof v=="string"?t[u]=parseFloat(v):Array.isArray(v)&&y===Fe&&(t[u]=v.map(parseFloat))}else g!=null&&g.transform&&(y!=null&&y.transform)&&(p===0||v===0)?p===0?d.set(y.transform(p)):t[u]=g.transform(v):(a||(i=X5(e),a=!0),c.push(u),r[u]=r[u]!==void 0?r[u]:t[u],d.jump(v))}),c.length){const u=c.indexOf("height")>=0?window.pageYOffset:null,d=Z5(t,e,c);return i.length&&i.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),Yl&&u!==null&&window.scrollTo({top:u}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function J5(e,t,n,r){return G5(t)?Q5(e,t,n,r):{target:t,transitionEnd:r}}const q5=(e,t,n,r)=>{const o=U5(e,t,r);return t=o.target,r=o.transitionEnd,J5(e,t,n,r)},up={current:null},Nb={current:!1};function $5(){if(Nb.current=!0,!!Yl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>up.current=e.matches;e.addListener(t),t()}else up.current=!1}function ek(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(An(i))e.addValue(o,i),lc(r)&&r.add(o),process.env.NODE_ENV==="development"&&$f(i.version==="10.18.0",`Attempting to mix Framer Motion versions ${i.version} with 10.18.0 may not work as expected.`);else if(An(a))e.addValue(o,qi(i,{owner:e})),lc(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const c=e.getValue(o);!c.hasAnimated&&c.set(i)}else{const c=e.getStaticValue(o);e.addValue(o,qi(c!==void 0?c:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Vb=new WeakMap,Wb=Object.keys(ua),tk=Wb.length,zb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nk=wf.length;class rk{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){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=()=>vt.render(this.render,!1,!0);const{latestValues:c,renderState:u}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Xl(n),this.isVariantNode=Cv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const v=p[g];c[g]!==void 0&&An(v)&&(v.set(c[g],!1),lc(d)&&d.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Vb.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((n,r)=>this.bindToMotionValue(r,n)),Nb.current||$5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:up.current,process.env.NODE_ENV!=="production"&&$f(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(){Vb.delete(this.current),this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(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,n){const r=ci.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&vt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,c;if(process.env.NODE_ENV!=="production"&&o&&r){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?ma(!1,u):Ar(!1,u)}for(let u=0;u<tk;u++){const d=Wb[u],{isEnabled:p,Feature:g,ProjectionNode:v,MeasureLayout:y}=ua[d];v&&(a=v),p(n)&&(!this.features[d]&&g&&(this.features[d]=new g(this)),y&&(c=y))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:d,drag:p,dragConstraints:g,layoutScroll:v,layoutRoot:y}=n;this.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!p||g&&Qi(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:v,layoutRoot:y})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):zt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zb.length;r++){const o=zb[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=ek(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 r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<nk;r++){const o=wf[r],i=this.props[o];(ca(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=jf(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!An(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ub extends rk{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let a=b4(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){v4(this,r,a);const c=q5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function ok(e){return window.getComputedStyle(e)}class ik extends Ub{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(ci.has(n)){const r=Kf(n);return r&&r.default||0}else{const r=ok(t),o=(Ov(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ib(t,n)}build(t,n,r,o){Tf(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Pf(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;An(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Lv(t,n,r,o)}}class sk extends Ub{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ci.has(n)){const r=Kf(n);return r&&r.default||0}return n=Bv.has(n)?n:xf(n),t.getAttribute(n)}measureInstanceViewportBox(){return zt()}scrapeMotionValuesFromProps(t,n){return Vv(t,n)}build(t,n,r,o){If(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Nv(t,n,r,o)}mount(t){this.isSVGTag=Of(t.tagName),super.mount(t)}}const ak=(e,t)=>Sf(e)?new sk(t,{enableHardwareAcceleration:!1}):new ik(t,{enableHardwareAcceleration:!0}),lk={..._4,...o3,...N5,...{layout:{ProjectionNode:Rb,MeasureLayout:cb}}},pc=fj((e,t)=>Gj(e,t,lk,ak)),ck=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Hb(...e){const t=E.useRef(0),[n,r]=E.useState(e[t.current]),o=E.useCallback(i=>{t.current=typeof i!="number"?ck(0,e.length,t.current+1):i,r(e[t.current])},[e.length,...e]);return[n,o]}function uk({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let i,a;switch(n){case"up":case"left":i=r,a=0;break;case"right":case"down":default:i=0,a=r;break}const[c,u]=Hb(i,a),[d,p]=Hb(i,a);switch(t){case"rotate":return f.jsx(pc.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:e});case"slide":return n==="up"||n==="down"?f.jsx(pc.div,{animate:{y:d!==void 0?d:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):f.jsx(pc.div,{animate:{x:c!==void 0?c:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:e});case"scale":default:return typeof o=="number"&&(o={hover:o,tap:o}),f.jsx(pc.div,{whileHover:{scale:o==null?void 0:o.hover},whileTap:{scale:o==null?void 0:o.tap},children:e})}}function nn(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function Re(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var dp={exports:{}},hc={exports:{}},it={};/** @license React v16.13.1
1
+ (function(k,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("@emotion/styled"),require("@emotion/react"),require("react"),require("@mui/material"),require("@ant-design/icons"),require("react-router-dom"),require("@mui/icons-material"),require("ra-core"),require("react-router"),require("react-admin"),require("react-hook-form"),require("react-query"),require("react-dom"),require("ra-i18n-polyglot")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@emotion/styled","@emotion/react","react","@mui/material","@ant-design/icons","react-router-dom","@mui/icons-material","ra-core","react-router","react-admin","react-hook-form","react-query","react-dom","ra-i18n-polyglot"],f):(k=typeof globalThis<"u"?globalThis:k||self,f(k["react-admin"]={},k["react/jsx-runtime"],k["@emotion/styled"],k["@emotion/react"],k.React,k["@mui/material"],k["@ant-design/icons"],k["react-router-dom"],k["@mui/icons-material"],k["ra-core"],k["react-router"],k["react-admin"],k["react-hook-form"],k["react-query"],k.ReactDOM,k["ra-i18n-polyglot"]))})(this,function(k,f,Zt,Wt,E,S,Ue,ut,en,q,ai,L,tn,li,Zi,gv){"use strict";var mae=Object.defineProperty;var nj=k=>{throw TypeError(k)};var vae=(k,f,Zt)=>f in k?mae(k,f,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):k[f]=Zt;var Ul=(k,f,Zt)=>vae(k,typeof f!="symbol"?f+"":f,Zt),hv=(k,f,Zt)=>f.has(k)||nj("Cannot "+Zt);var Nn=(k,f,Zt)=>(hv(k,f,"read from private field"),Zt?Zt.call(k):f.get(k)),Io=(k,f,Zt)=>f.has(k)?nj("Cannot add the same private member more than once"):f instanceof WeakSet?f.add(k):f.set(k,Zt),si=(k,f,Zt,Wt)=>(hv(k,f,"write to private field"),Wt?Wt.call(k,Zt):f.set(k,Zt),Zt),Hl=(k,f,Zt)=>(hv(k,f,"access private method"),Zt);var Qo,Ri,Gl,xl,Cl,Xs,wl,Sl,Di;function mv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=mv(E),vv=mv(Zi),yv=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Yl=E.createContext({}),bf=E.createContext(null),Kl=typeof document<"u",rj=Kl?E.useLayoutEffect:E.useEffect,bv=E.createContext({strict:!1}),xf=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),xv="data-"+xf("framerAppearId");function oj(e,t,n,r){const{visualElement:o}=E.useContext(Yl),i=E.useContext(bv),a=E.useContext(bf),c=E.useContext(yv).reducedMotion,u=E.useRef();r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current;E.useInsertionEffect(()=>{d&&d.update(n,a)});const p=E.useRef(!!(n[xv]&&!window.HandoffComplete));return rj(()=>{d&&(d.render(),p.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(d.updateFeatures(),!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),d}function Qi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ij(e,t,n){return E.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qi(n)&&(n.current=r))},[t])}function ca(e){return typeof e=="string"||Array.isArray(e)}function Xl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Cf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...Cf];function Zl(e){return Xl(e.animate)||wf.some(t=>ca(e[t]))}function Cv(e){return!!(Zl(e)||e.variants)}function sj(e,t){if(Zl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ca(n)?n:void 0,animate:ca(r)?r:void 0}}return e.inherit!==!1?t:{}}function aj(e){const{initial:t,animate:n}=sj(e,E.useContext(Yl));return E.useMemo(()=>({initial:t,animate:n}),[wv(t),wv(n)])}function wv(e){return Array.isArray(e)?e.join(" "):e}const Sv={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"]},ua={};for(const e in Sv)ua[e]={isEnabled:t=>Sv[e].some(n=>!!t[n])};function lj(e){for(const t in e)ua[t]={...ua[t],...e[t]}}const Ev=E.createContext({}),Tv=E.createContext({}),cj=Symbol.for("motionComponentSymbol");function uj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&lj(e);function i(c,u){let d;const p={...E.useContext(yv),...c,layoutId:dj(c)},{isStatic:g}=p,v=aj(c),y=r(c,g);if(!g&&Kl){v.visualElement=oj(o,y,p,t);const b=E.useContext(Tv),x=E.useContext(bv).strict;v.visualElement&&(d=v.visualElement.loadFeatures(p,x,e,b))}return D.createElement(Yl.Provider,{value:v},d&&v.visualElement?D.createElement(d,{visualElement:v.visualElement,...p}):null,n(o,c,ij(y,v.visualElement,u),y,g,v.visualElement))}const a=E.forwardRef(i);return a[cj]=o,a}function dj({layoutId:e}){const t=E.useContext(Ev).id;return t&&e!==void 0?t+"-"+e:e}function fj(e){function t(r,o={}){return uj(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const pj=["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 Sf(e){return typeof e!="string"||e.includes("-")?!1:!!(pj.indexOf(e)>-1||/[A-Z]/.test(e))}const Ql={};function hj(e){Object.assign(Ql,e)}const da=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ci=new Set(da);function Av(e,{layout:t,layoutId:n}){return ci.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ql[e]||e==="opacity")}const An=e=>!!(e&&e.getVelocity),gj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mj=da.length;function vj(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<mj;a++){const c=da[a];if(e[c]!==void 0){const u=gj[c]||c;i+=`${u}(${e[c]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Iv=e=>t=>typeof t=="string"&&t.startsWith(e),Ov=Iv("--"),Ef=Iv("var(--"),yj=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,bj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Oo=(e,t,n)=>Math.min(Math.max(n,e),t),ui={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},fa={...ui,transform:e=>Oo(0,1,e)},Jl={...ui,default:1},pa=e=>Math.round(e*1e5)/1e5,ql=/(-)?([\d]*\.?[\d])+/g,Pv=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,xj=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ha(e){return typeof e=="string"}const ga=e=>({test:t=>ha(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Po=ga("deg"),Rr=ga("%"),Fe=ga("px"),Cj=ga("vh"),wj=ga("vw"),jv={...Rr,parse:e=>Rr.parse(e)/100,transform:e=>Rr.transform(e*100)},kv={...ui,transform:Math.round},Mv={borderWidth:Fe,borderTopWidth:Fe,borderRightWidth:Fe,borderBottomWidth:Fe,borderLeftWidth:Fe,borderRadius:Fe,radius:Fe,borderTopLeftRadius:Fe,borderTopRightRadius:Fe,borderBottomRightRadius:Fe,borderBottomLeftRadius:Fe,width:Fe,maxWidth:Fe,height:Fe,maxHeight:Fe,size:Fe,top:Fe,right:Fe,bottom:Fe,left:Fe,padding:Fe,paddingTop:Fe,paddingRight:Fe,paddingBottom:Fe,paddingLeft:Fe,margin:Fe,marginTop:Fe,marginRight:Fe,marginBottom:Fe,marginLeft:Fe,rotate:Po,rotateX:Po,rotateY:Po,rotateZ:Po,scale:Jl,scaleX:Jl,scaleY:Jl,scaleZ:Jl,skew:Po,skewX:Po,skewY:Po,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:fa,originX:jv,originY:jv,originZ:Fe,zIndex:kv,fillOpacity:fa,strokeOpacity:fa,numOctaves:kv};function Tf(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:c}=e;let u=!1,d=!1,p=!0;for(const g in t){const v=t[g];if(Ov(g)){i[g]=v;continue}const y=Mv[g],b=bj(v,y);if(ci.has(g)){if(u=!0,a[g]=b,!p)continue;v!==(y.default||0)&&(p=!1)}else g.startsWith("origin")?(d=!0,c[g]=b):o[g]=b}if(t.transform||(u||r?o.transform=vj(e.transform,n,p,r):o.transform&&(o.transform="none")),d){const{originX:g="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${g} ${v} ${y}`}}const Af=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fv(e,t,n){for(const r in t)!An(t[r])&&!Av(r,n)&&(e[r]=t[r])}function Sj({transformTemplate:e},t,n){return E.useMemo(()=>{const r=Af();return Tf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Ej(e,t,n){const r=e.style||{},o={};return Fv(o,r,e),Object.assign(o,Sj(e,t,n)),e.transformValues?e.transformValues(o):o}function Tj(e,t,n){const r={},o=Ej(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Aj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $l(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Aj.has(e)}let _v=e=>!$l(e);function Ij(e){e&&(_v=t=>t.startsWith("on")?!$l(t):e(t))}try{Ij(require("@emotion/is-prop-valid").default)}catch{}function Oj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(_v(o)||n===!0&&$l(o)||!t&&!$l(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Rv(e,t,n){return typeof e=="string"?e:Fe.transform(t+n*e)}function Pj(e,t,n){const r=Rv(t,e.x,e.width),o=Rv(n,e.y,e.height);return`${r} ${o}`}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},kj={offset:"strokeDashoffset",array:"strokeDasharray"};function Mj(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?jj:kj;e[i.offset]=Fe.transform(-r);const a=Fe.transform(t),c=Fe.transform(n);e[i.array]=`${a} ${c}`}function If(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},p,g,v){if(Tf(e,d,p,v),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b,dimensions:x}=e;y.transform&&(x&&(b.transform=y.transform),delete y.transform),x&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=Pj(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&Mj(y,a,c,u,!1)}const Dv=()=>({...Af(),attrs:{}}),Of=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fj(e,t,n,r){const o=E.useMemo(()=>{const i=Dv();return If(i,t,{enableHardwareAcceleration:!1},Of(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fv(i,e.style,e),o.style={...i,...o.style}}return o}function _j(e=!1){return(n,r,o,{latestValues:i},a)=>{const u=(Sf(n)?Fj:Tj)(r,i,a,n),p={...Oj(r,typeof n=="string",e),...u,ref:o},{children:g}=r,v=E.useMemo(()=>An(g)?g.get():g,[g]);return E.createElement(n,{...p,children:v})}}function Lv(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Bv=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 Nv(e,t,n,r){Lv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Bv.has(o)?o:xf(o),t.attrs[o])}function Pf(e,t){const{style:n}=e,r={};for(const o in n)(An(n[o])||t.style&&An(t.style[o])||Av(o,e))&&(r[o]=n[o]);return r}function Vv(e,t){const n=Pf(e,t);for(const r in e)if(An(e[r])||An(t[r])){const o=da.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function jf(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Rj(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const ec=e=>Array.isArray(e),Dj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Lj=e=>ec(e)?e[e.length-1]||0:e;function tc(e){const t=An(e)?e.get():e;return Dj(t)?t.toValue():t}function Bj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Nj(r,o,i,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const Wv=e=>(t,n)=>{const r=E.useContext(Yl),o=E.useContext(bf),i=()=>Bj(e,t,r,o);return n?i():Rj(i)};function Nj(e,t,n,r){const o={},i=r(e,{});for(const v in i)o[v]=tc(i[v]);let{initial:a,animate:c}=e;const u=Zl(e),d=Cv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const g=p?c:a;return g&&typeof g!="boolean"&&!Xl(g)&&(Array.isArray(g)?g:[g]).forEach(y=>{const b=jf(e,y);if(!b)return;const{transitionEnd:x,transition:w,...A}=b;for(const j in A){let T=A[j];if(Array.isArray(T)){const P=p?T.length-1:0;T=T[P]}T!==null&&(o[j]=T)}for(const j in x)o[j]=x[j]}),o}const kt=e=>e;class zv{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 n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Vj(e){let t=new zv,n=new zv,r=0,o=!1,i=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const g=p&&o,v=g?t:n;return d&&a.add(u),v.add(u)&&g&&o&&(r=t.order.length),u},cancel:u=>{n.remove(u),a.delete(u)},process:u=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const p=t.order[d];p(u),a.has(p)&&(c.schedule(p),e())}o=!1,i&&(i=!1,c.process(u))}};return c}const nc=["prepare","read","update","preRender","render","postRender"],Wj=40;function zj(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=nc.reduce((g,v)=>(g[v]=Vj(()=>n=!0),g),{}),a=g=>i[g].process(o),c=()=>{const g=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(g-o.timestamp,Wj),1),o.timestamp=g,o.isProcessing=!0,nc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(c))},u=()=>{n=!0,r=!0,o.isProcessing||e(c)};return{schedule:nc.reduce((g,v)=>{const y=i[v];return g[v]=(b,x=!1,w=!1)=>(n||u(),y.schedule(b,x,w)),g},{}),cancel:g=>nc.forEach(v=>i[v].cancel(g)),state:o,steps:i}}const{schedule:vt,cancel:eo,state:cn,steps:kf}=zj(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Uj={useVisualState:Wv({scrapeMotionValuesFromProps:Vv,createRenderState:Dv,onMount:(e,t,{renderState:n,latestValues:r})=>{vt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),vt.render(()=>{If(n,r,{enableHardwareAcceleration:!1},Of(t.tagName),e.transformTemplate),Nv(t,n)})}})},Hj={useVisualState:Wv({scrapeMotionValuesFromProps:Pf,createRenderState:Af})};function Gj(e,{forwardMotionProps:t=!1},n,r){return{...Sf(e)?Uj:Hj,preloadedFeatures:n,useRender:_j(t),createVisualElement:r,Component:e}}function to(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Uv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function rc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Yj=e=>t=>Uv(t)&&e(t,rc(t));function no(e,t,n,r){return to(e,t,Yj(n),r)}const Kj=(e,t)=>n=>t(e(n)),jo=(...e)=>e.reduce(Kj);function Hv(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Gv=Hv("dragHorizontal"),Yv=Hv("dragVertical");function Kv(e){let t=!1;if(e==="y")t=Yv();else if(e==="x")t=Gv();else{const n=Gv(),r=Yv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Xv(){const e=Kv(!0);return e?(e(),!1):!0}class ko{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||Xv())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&vt.update(()=>c[r](i,a))};return no(e.current,n,o,{passive:!e.getProps()[r]})}class Xj extends ko{mount(){this.unmount=jo(Zv(this.node,!0),Zv(this.node,!1))}unmount(){}}class Zj extends ko{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=jo(to(this.node.current,"focus",()=>this.onFocus()),to(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Qv=(e,t)=>t?e===t?!0:Qv(e,t.parentElement):!1;function Mf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,rc(n))}class Qj extends ko{constructor(){super(...arguments),this.removeStartListeners=kt,this.removeEndListeners=kt,this.removeAccessibleListeners=kt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=no(window,"pointerup",(c,u)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:p,globalTapTarget:g}=this.node.getProps();vt.update(()=>{!g&&!Qv(this.node.current,c.target)?p&&p(c,u):d&&d(c,u)})},{passive:!(r.onTap||r.onPointerUp)}),a=no(window,"pointercancel",(c,u)=>this.cancelPress(c,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jo(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Mf("up",(u,d)=>{const{onTap:p}=this.node.getProps();p&&vt.update(()=>p(u,d))})};this.removeEndListeners(),this.removeEndListeners=to(this.node.current,"keyup",a),Mf("down",(c,u)=>{this.startPress(c,u)})},n=to(this.node.current,"keydown",t),r=()=>{this.isPressing&&Mf("cancel",(i,a)=>this.cancelPress(i,a))},o=to(this.node.current,"blur",r);this.removeAccessibleListeners=jo(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&vt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xv()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&vt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=no(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=to(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ff=new WeakMap,_f=new WeakMap,Jj=e=>{const t=Ff.get(e.target);t&&t(e)},qj=e=>{e.forEach(Jj)};function $j({root:e,...t}){const n=e||document;_f.has(n)||_f.set(n,{});const r=_f.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(qj,{root:e,...t})),r[o]}function e3(e,t,n){const r=$j(t);return Ff.set(e,n),r.observe(e),()=>{Ff.delete(e),r.unobserve(e)}}const t3={some:0,all:1};class n3 extends ko{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:t3[o]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=d?p:g;v&&v(u)};return e3(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(r3(t,n))&&this.startObserver()}unmount(){}}function r3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o3={inView:{Feature:n3},tap:{Feature:Qj},focus:{Feature:Zj},hover:{Feature:Xj}};function Jv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function i3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function s3(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function oc(e,t,n){const r=e.getProps();return jf(r,t,n!==void 0?n:r.custom,i3(e),s3(e))}let ma=kt,Ar=kt;process.env.NODE_ENV!=="production"&&(ma=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ar=(e,t)=>{if(!e)throw new Error(t)});const Mo=e=>e*1e3,ro=e=>e/1e3,a3={current:!1},qv=e=>Array.isArray(e)&&typeof e[0]=="number";function $v(e){return!!(!e||typeof e=="string"&&ey[e]||qv(e)||Array.isArray(e)&&e.every($v))}const va=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ey={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:va([0,.65,.55,1]),circOut:va([.55,0,1,.45]),backIn:va([.31,.01,.66,-.59]),backOut:va([.33,1.53,.69,.99])};function ty(e){if(e)return qv(e)?va(e):Array.isArray(e)?e.map(ty):ey[e]}function l3(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:c,times:u}={}){const d={[t]:n};u&&(d.offset=u);const p=ty(c);return Array.isArray(p)&&(d.easing=p),e.animate(d,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function c3(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ny=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,u3=1e-7,d3=12;function f3(e,t,n,r,o){let i,a,c=0;do a=t+(n-t)/2,i=ny(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>u3&&++c<d3);return a}function ya(e,t,n,r){if(e===t&&n===r)return kt;const o=i=>f3(i,0,1,e,n);return i=>i===0||i===1?i:ny(o(i),t,r)}const p3=ya(.42,0,1,1),h3=ya(0,0,.58,1),ry=ya(.42,0,.58,1),g3=e=>Array.isArray(e)&&typeof e[0]!="number",oy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iy=e=>t=>1-e(1-t),Rf=e=>1-Math.sin(Math.acos(e)),sy=iy(Rf),m3=oy(Rf),ay=ya(.33,1.53,.69,.99),Df=iy(ay),v3=oy(Df),ly={linear:kt,easeIn:p3,easeInOut:ry,easeOut:h3,circIn:Rf,circInOut:m3,circOut:sy,backIn:Df,backInOut:v3,backOut:ay,anticipate:e=>(e*=2)<1?.5*Df(e):.5*(2-Math.pow(2,-10*(e-1)))},cy=e=>{if(Array.isArray(e)){Ar(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return ya(t,n,r,o)}else if(typeof e=="string")return Ar(ly[e]!==void 0,`Invalid easing type '${e}'`),ly[e];return e},Lf=(e,t)=>n=>!!(ha(n)&&xj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),uy=(e,t,n)=>r=>{if(!ha(r))return r;const[o,i,a,c]=r.match(ql);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},y3=e=>Oo(0,255,e),Bf={...ui,transform:e=>Math.round(y3(e))},di={test:Lf("rgb","red"),parse:uy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bf.transform(e)+", "+Bf.transform(t)+", "+Bf.transform(n)+", "+pa(fa.transform(r))+")"};function b3(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Nf={test:Lf("#"),parse:b3,transform:di.transform},Ji={test:Lf("hsl","hue"),parse:uy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rr.transform(pa(t))+", "+Rr.transform(pa(n))+", "+pa(fa.transform(r))+")"},bn={test:e=>di.test(e)||Nf.test(e)||Ji.test(e),parse:e=>di.test(e)?di.parse(e):Ji.test(e)?Ji.parse(e):Nf.parse(e),transform:e=>ha(e)?e:e.hasOwnProperty("red")?di.transform(e):Ji.transform(e)},At=(e,t,n)=>-n*e+n*t+e;function Vf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function x3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=Vf(u,c,e+1/3),i=Vf(u,c,e),a=Vf(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const Wf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},C3=[Nf,di,Ji],w3=e=>C3.find(t=>t.test(e));function dy(e){const t=w3(e);Ar(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Ji&&(n=x3(n)),n}const fy=(e,t)=>{const n=dy(e),r=dy(t),o={...n};return i=>(o.red=Wf(n.red,r.red,i),o.green=Wf(n.green,r.green,i),o.blue=Wf(n.blue,r.blue,i),o.alpha=At(n.alpha,r.alpha,i),di.transform(o))};function S3(e){var t,n;return isNaN(e)&&ha(e)&&(((t=e.match(ql))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Pv))===null||n===void 0?void 0:n.length)||0)>0}const py={regex:yj,countKey:"Vars",token:"${v}",parse:kt},hy={regex:Pv,countKey:"Colors",token:"${c}",parse:bn.parse},gy={regex:ql,countKey:"Numbers",token:"${n}",parse:ui.parse};function zf(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function ic(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zf(n,py),zf(n,hy),zf(n,gy),n}function my(e){return ic(e).values}function vy(e){const{values:t,numColors:n,numVars:r,tokenised:o}=ic(e),i=t.length;return a=>{let c=o;for(let u=0;u<i;u++)u<r?c=c.replace(py.token,a[u]):u<r+n?c=c.replace(hy.token,bn.transform(a[u])):c=c.replace(gy.token,pa(a[u]));return c}}const E3=e=>typeof e=="number"?0:e;function T3(e){const t=my(e);return vy(e)(t.map(E3))}const Fo={test:S3,parse:my,createTransformer:vy,getAnimatableNone:T3},yy=(e,t)=>n=>`${n>0?t:e}`;function by(e,t){return typeof e=="number"?n=>At(e,t,n):bn.test(e)?fy(e,t):e.startsWith("var(")?yy(e,t):Cy(e,t)}const xy=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>by(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}},A3=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=by(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Cy=(e,t)=>{const n=Fo.createTransformer(t),r=ic(e),o=ic(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?jo(xy(r.values,o.values),n):(ma(!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.`),yy(e,t))},ba=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wy=(e,t)=>n=>At(e,t,n);function I3(e){return typeof e=="number"?wy:typeof e=="string"?bn.test(e)?fy:Cy:Array.isArray(e)?xy:typeof e=="object"?A3:wy}function O3(e,t,n){const r=[],o=n||I3(e[0]),i=e.length-1;for(let a=0;a<i;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=jo(u,c)}r.push(c)}return r}function Sy(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ar(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=O3(t,r,o),c=a.length,u=d=>{let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const g=ba(e[p],e[p+1],d);return a[p](g)};return n?d=>u(Oo(e[0],e[i-1],d)):u}function P3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ba(0,t,r);e.push(At(n,1,o))}}function j3(e){const t=[0];return P3(t,e.length-1),t}function k3(e,t){return e.map(n=>n*t)}function M3(e,t){return e.map(()=>t||ry).splice(0,e.length-1)}function sc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=g3(r)?r.map(cy):cy(r),i={done:!1,value:t[0]},a=k3(n&&n.length===t.length?n:j3(t),e),c=Sy(a,t,{ease:Array.isArray(o)?o:M3(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}function Ey(e,t){return t?e*(1e3/t):0}const F3=5;function Ty(e,t,n){const r=Math.max(t-F3,0);return Ey(n-e(r),t-r)}const Uf=.001,_3=.01,Ay=10,R3=.05,D3=1;function L3({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ma(e<=Mo(Ay),"Spring duration must be 10 seconds or less");let a=1-t;a=Oo(R3,D3,a),e=Oo(_3,Ay,ro(e)),a<1?(o=d=>{const p=d*a,g=p*e,v=p-n,y=Hf(d,a),b=Math.exp(-g);return Uf-v/y*b},i=d=>{const g=d*a*e,v=g*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-g),x=Hf(Math.pow(d,2),a);return(-o(d)+Uf>0?-1:1)*((v-y)*b)/x}):(o=d=>{const p=Math.exp(-d*e),g=(d-n)*e+1;return-Uf+p*g},i=d=>{const p=Math.exp(-d*e),g=(n-d)*(e*e);return p*g});const c=5/e,u=N3(o,i,c);if(e=Mo(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const B3=12;function N3(e,t,n){let r=n;for(let o=1;o<B3;o++)r=r-e(r)/t(r);return r}function Hf(e,t){return e*Math.sqrt(1-t*t)}const V3=["duration","bounce"],W3=["stiffness","damping","mass"];function Iy(e,t){return t.some(n=>e[n]!==void 0)}function z3(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Iy(e,W3)&&Iy(e,V3)){const n=L3(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Oy({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:p,velocity:g,isResolvedFromDuration:v}=z3({...r,velocity:-ro(r.velocity||0)}),y=g||0,b=u/(2*Math.sqrt(c*d)),x=i-o,w=ro(Math.sqrt(c/d)),A=Math.abs(x)<5;n||(n=A?.01:2),t||(t=A?.005:.5);let j;if(b<1){const T=Hf(w,b);j=P=>{const O=Math.exp(-b*w*P);return i-O*((y+b*w*x)/T*Math.sin(T*P)+x*Math.cos(T*P))}}else if(b===1)j=T=>i-Math.exp(-w*T)*(x+(y+w*x)*T);else{const T=w*Math.sqrt(b*b-1);j=P=>{const O=Math.exp(-b*w*P),_=Math.min(T*P,300);return i-O*((y+b*w*x)*Math.sinh(_)+T*x*Math.cosh(_))/T}}return{calculatedDuration:v&&p||null,next:T=>{const P=j(T);if(v)a.done=T>=p;else{let O=y;T!==0&&(b<1?O=Ty(j,T,P):O=0);const _=Math.abs(O)<=n,R=Math.abs(i-P)<=t;a.done=_&&R}return a.value=a.done?i:P,a}}}function Py({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},y=N=>c!==void 0&&N<c||u!==void 0&&N>u,b=N=>c===void 0?u:u===void 0||Math.abs(c-N)<Math.abs(u-N)?c:u;let x=n*t;const w=g+x,A=a===void 0?w:a(w);A!==w&&(x=A-g);const j=N=>-x*Math.exp(-N/r),T=N=>A+j(N),P=N=>{const Y=j(N),X=T(N);v.done=Math.abs(Y)<=d,v.value=v.done?A:X};let O,_;const R=N=>{y(v.value)&&(O=N,_=Oy({keyframes:[v.value,b(v.value)],velocity:Ty(T,N,v.value),damping:o,stiffness:i,restDelta:d,restSpeed:p}))};return R(0),{calculatedDuration:null,next:N=>{let Y=!1;return!_&&O===void 0&&(Y=!0,P(N),R(N)),O!==void 0&&N>O?_.next(N-O):(!Y&&P(N),v)}}}const U3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>vt.update(t,!0),stop:()=>eo(t),now:()=>cn.isProcessing?cn.timestamp:performance.now()}},jy=2e4;function ky(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jy;)t+=n,r=e.next(t);return t>=jy?1/0:t}const H3={decay:Py,inertia:Py,tween:sc,keyframes:sc,spring:Oy};function ac({autoplay:e=!0,delay:t=0,driver:n=U3,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:c="loop",onPlay:u,onStop:d,onComplete:p,onUpdate:g,...v}){let y=1,b=!1,x,w;const A=()=>{w=new Promise(ee=>{x=ee})};A();let j;const T=H3[o]||sc;let P;T!==sc&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ar(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),P=Sy([0,100],r,{clamp:!1}),r=[0,100]);const O=T({...v,keyframes:r});let _;c==="mirror"&&(_=T({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let R="idle",N=null,Y=null,X=null;O.calculatedDuration===null&&i&&(O.calculatedDuration=ky(O));const{calculatedDuration:G}=O;let re=1/0,ne=1/0;G!==null&&(re=G+a,ne=re*(i+1)-a);let Z=0;const J=ee=>{if(Y===null)return;y>0&&(Y=Math.min(Y,ee)),y<0&&(Y=Math.min(ee-ne/y,Y)),N!==null?Z=N:Z=Math.round(ee-Y)*y;const de=Z-t*(y>=0?1:-1),ge=y>=0?de<0:de>ne;Z=Math.max(de,0),R==="finished"&&N===null&&(Z=ne);let fe=Z,he=O;if(i){const ye=Math.min(Z,ne)/re;let we=Math.floor(ye),Ie=ye%1;!Ie&&ye>=1&&(Ie=1),Ie===1&&we--,we=Math.min(we,i+1),!!(we%2)&&(c==="reverse"?(Ie=1-Ie,a&&(Ie-=a/re)):c==="mirror"&&(he=_)),fe=Oo(0,1,Ie)*re}const me=ge?{done:!1,value:r[0]}:he.next(fe);P&&(me.value=P(me.value));let{done:Se}=me;!ge&&G!==null&&(Se=y>=0?Z>=ne:Z<=0);const be=N===null&&(R==="finished"||R==="running"&&Se);return g&&g(me.value),be&&W(),me},V=()=>{j&&j.stop(),j=void 0},$=()=>{R="idle",V(),x(),A(),Y=X=null},W=()=>{R="finished",p&&p(),V(),x()},ie=()=>{if(b)return;j||(j=n(J));const ee=j.now();u&&u(),N!==null?Y=ee-N:(!Y||R==="finished")&&(Y=ee),R==="finished"&&A(),X=Y,N=null,R="running",j.start()};e&&ie();const U={then(ee,de){return w.then(ee,de)},get time(){return ro(Z)},set time(ee){ee=Mo(ee),Z=ee,N!==null||!j||y===0?N=ee:Y=j.now()-ee/y},get duration(){const ee=O.calculatedDuration===null?ky(O):O.calculatedDuration;return ro(ee)},get speed(){return y},set speed(ee){ee===y||!j||(y=ee,U.time=ro(Z))},get state(){return R},play:ie,pause:()=>{R="paused",N=Z},stop:()=>{b=!0,R!=="idle"&&(R="idle",d&&d(),$())},cancel:()=>{X!==null&&J(X),$()},complete:()=>{R="finished"},sample:ee=>(Y=0,J(ee))};return U}function G3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Y3=G3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),K3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),lc=10,X3=2e4,Z3=(e,t)=>t.type==="spring"||e==="backgroundColor"||!$v(t.ease);function Q3(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Y3()&&K3.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,c,u,d=!1;const p=()=>{u=new Promise(T=>{c=T})};p();let{keyframes:g,duration:v=300,ease:y,times:b}=o;if(Z3(t,o)){const T=ac({...o,repeat:0,delay:0});let P={done:!1,value:g[0]};const O=[];let _=0;for(;!P.done&&_<X3;)P=T.sample(_),O.push(P.value),_+=lc;b=void 0,g=O,v=_-lc,y="linear"}const x=l3(e.owner.current,t,g,{...o,duration:v,ease:y,times:b}),w=()=>{d=!1,x.cancel()},A=()=>{d=!0,vt.update(w),c(),p()};return x.onfinish=()=>{d||(e.set(c3(g,o)),r&&r(),A())},{then(T,P){return u.then(T,P)},attachTimeline(T){return x.timeline=T,x.onfinish=null,kt},get time(){return ro(x.currentTime||0)},set time(T){x.currentTime=Mo(T)},get speed(){return x.playbackRate},set speed(T){x.playbackRate=T},get duration(){return ro(v)},play:()=>{a||(x.play(),eo(w))},pause:()=>x.pause(),stop:()=>{if(a=!0,x.playState==="idle")return;const{currentTime:T}=x;if(T){const P=ac({...o,autoplay:!1});e.setWithVelocity(P.sample(T-lc).value,P.sample(T).value,lc)}A()},complete:()=>{d||x.finish()},cancel:A}}function J3({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:kt,pause:kt,stop:kt,then:i=>(i(),Promise.resolve()),cancel:kt,complete:kt});return t?ac({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const q3={type:"spring",stiffness:500,damping:25,restSpeed:10},$3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),e4={type:"keyframes",duration:.8},t4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n4=(e,{keyframes:t})=>t.length>2?e4:ci.has(e)?e.startsWith("scale")?$3(t[1]):q3:t4,Gf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Fo.test(t)||t==="0")&&!t.startsWith("url(")),r4=new Set(["brightness","contrast","saturate","opacity"]);function o4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ql)||[];if(!r)return e;const o=n.replace(r,"");let i=r4.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const i4=/([a-z-]*)\(.*?\)/g,Yf={...Fo,getAnimatableNone:e=>{const t=e.match(i4);return t?t.map(o4).join(" "):e}},s4={...Mv,color:bn,backgroundColor:bn,outlineColor:bn,fill:bn,stroke:bn,borderColor:bn,borderTopColor:bn,borderRightColor:bn,borderBottomColor:bn,borderLeftColor:bn,filter:Yf,WebkitFilter:Yf},Kf=e=>s4[e];function My(e,t){let n=Kf(e);return n!==Yf&&(n=Fo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Fy=e=>/^0[^.\s]+$/.test(e);function a4(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Fy(e)}function l4(e,t,n,r){const o=Gf(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let c;const u=[];for(let d=0;d<i.length;d++)i[d]===null&&(i[d]=d===0?a:i[d-1]),a4(i[d])&&u.push(d),typeof i[d]=="string"&&i[d]!=="none"&&i[d]!=="0"&&(c=i[d]);if(o&&u.length&&c)for(let d=0;d<u.length;d++){const p=u[d];i[p]=My(t,c)}return i}function c4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:c,from:u,elapsed:d,...p}){return!!Object.keys(p).length}function Xf(e,t){return e[t]||e.default||e}const u4={skipAnimations:!1},Zf=(e,t,n,r={})=>o=>{const i=Xf(r,e)||{},a=i.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Mo(a);const u=l4(t,e,n,i),d=u[0],p=u[u.length-1],g=Gf(e,d),v=Gf(e,p);ma(g===v,`You are trying to animate ${e} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let y={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-c,onUpdate:b=>{t.set(b),i.onUpdate&&i.onUpdate(b)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(c4(i)||(y={...y,...n4(e,y)}),y.duration&&(y.duration=Mo(y.duration)),y.repeatDelay&&(y.repeatDelay=Mo(y.repeatDelay)),!g||!v||a3.current||i.type===!1||u4.skipAnimations)return J3(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const b=Q3(t,e,y);if(b)return b}return ac(y)};function cc(e){return!!(An(e)&&e.add)}const _y=e=>/^\-?\d*\.?\d+$/.test(e);function Qf(e,t){e.indexOf(t)===-1&&e.push(t)}function Jf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qf{constructor(){this.subscriptions=[]}add(t){return Qf(this.subscriptions,t),()=>Jf(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ry=new Set;function $f(e,t,n){e||Ry.has(t)||(console.warn(t),Ry.add(t))}const d4=e=>!isNaN(parseFloat(e));class f4{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:a}=cn;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,vt.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()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>vt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==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=d4(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&$f(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qf);const r=this.events[t].add(n);return t==="change"?()=>{r(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}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?Ey(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 qi(e,t){return new f4(e,t)}const Dy=e=>t=>t.test(e),Ly=[ui,Fe,Rr,Po,wj,Cj,{test:e=>e==="auto",parse:e=>e}],xa=e=>Ly.find(Dy(e)),p4=[...Ly,bn,Fo],h4=e=>p4.find(Dy(e));function g4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qi(n))}function m4(e,t){const n=oc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const c=Lj(i[a]);g4(e,a,c)}}function v4(e,t,n){var r,o;const i=Object.keys(t).filter(c=>!e.hasValue(c)),a=i.length;if(a)for(let c=0;c<a;c++){const u=i[c],d=t[u];let p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(o=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&o!==void 0?o:t[u]),p!=null&&(typeof p=="string"&&(_y(p)||Fy(p))?p=parseFloat(p):!h4(p)&&Fo.test(d)&&(p=My(u,d)),e.addValue(u,qi(p,{owner:e})),n[u]===void 0&&(n[u]=p),p!==null&&e.setBaseTarget(u,p))}}function y4(e,t){return t?(t[e]||t.default||t).from:void 0}function b4(e,t,n){const r={};for(const o in e){const i=y4(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function x4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function C4(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function By(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...c}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(i=r);const d=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in c){const v=e.getValue(g),y=c[g];if(!v||y===void 0||p&&x4(p,g))continue;const b={delay:n,elapsed:0,...Xf(i||{},g)};if(window.HandoffAppearAnimations){const A=e.getProps()[xv];if(A){const j=window.HandoffAppearAnimations(A,g,v,vt);j!==null&&(b.elapsed=j,b.isHandoff=!0)}}let x=!b.isHandoff&&!C4(v,y);if(b.type==="spring"&&(v.getVelocity()||b.velocity)&&(x=!1),v.animation&&(x=!1),x)continue;v.start(Zf(g,v,y,e.shouldReduceMotion&&ci.has(g)?{type:!1}:b));const w=v.animation;cc(u)&&(u.add(g),w.then(()=>u.remove(g))),d.push(w)}return a&&Promise.all(d).then(()=>{a&&m4(e,a)}),d}function ep(e,t,n={}){const r=oc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(By(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:g}=o;return w4(e,t,d+u,p,g,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function w4(e,t,n=0,r=0,o=1,i){const a=[],c=(e.variantChildren.size-1)*r,u=o===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(S4).forEach((d,p)=>{d.notify("AnimationStart",t),a.push(ep(d,t,{...i,delay:n+u(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function S4(e,t){return e.sortNodePosition(t)}function E4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ep(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ep(e,t,n);else{const o=typeof t=="function"?oc(e,t,n.custom):t;r=Promise.all(By(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const T4=[...Cf].reverse(),A4=Cf.length;function I4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>E4(e,n,r)))}function O4(e){let t=I4(e);const n=j4();let r=!0;const o=(u,d)=>{const p=oc(e,d);if(p){const{transition:g,transitionEnd:v,...y}=p;u={...u,...y,...v}}return u};function i(u){t=u(e)}function a(u,d){const p=e.getProps(),g=e.getVariantContext(!0)||{},v=[],y=new Set;let b={},x=1/0;for(let A=0;A<A4;A++){const j=T4[A],T=n[j],P=p[j]!==void 0?p[j]:g[j],O=ca(P),_=j===d?T.isActive:null;_===!1&&(x=A);let R=P===g[j]&&P!==p[j]&&O;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),T.protectedKeys={...b},!T.isActive&&_===null||!P&&!T.prevProp||Xl(P)||typeof P=="boolean")continue;let Y=P4(T.prevProp,P)||j===d&&T.isActive&&!R&&O||A>x&&O,X=!1;const G=Array.isArray(P)?P:[P];let re=G.reduce(o,{});_===!1&&(re={});const{prevResolvedValues:ne={}}=T,Z={...ne,...re},J=V=>{Y=!0,y.has(V)&&(X=!0,y.delete(V)),T.needsAnimating[V]=!0};for(const V in Z){const $=re[V],W=ne[V];if(b.hasOwnProperty(V))continue;let ie=!1;ec($)&&ec(W)?ie=!Jv($,W):ie=$!==W,ie?$!==void 0?J(V):y.add(V):$!==void 0&&y.has(V)?J(V):T.protectedKeys[V]=!0}T.prevProp=P,T.prevResolvedValues=re,T.isActive&&(b={...b,...re}),r&&e.blockInitialAnimation&&(Y=!1),Y&&(!R||X)&&v.push(...G.map(V=>({animation:V,options:{type:j,...u}})))}if(y.size){const A={};y.forEach(j=>{const T=e.getBaseTarget(j);T!==void 0&&(A[j]=T)}),v.push({animation:A})}let w=!!v.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(v):Promise.resolve()}function c(u,d,p){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(y=>{var b;return(b=y.animationState)===null||b===void 0?void 0:b.setActive(u,d)}),n[u].isActive=d;const v=a(p,u);for(const y in n)n[y].protectedKeys={};return v}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n}}function P4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Jv(t,e):!1}function fi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function j4(){return{animate:fi(!0),whileInView:fi(),whileHover:fi(),whileTap:fi(),whileDrag:fi(),whileFocus:fi(),exit:fi()}}class k4 extends ko{constructor(t){super(t),t.animationState||(t.animationState=O4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xl(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let M4=0;class F4 extends ko{constructor(){super(...arguments),this.id=M4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const _4={animation:{Feature:k4},exit:{Feature:F4}},Ny=(e,t)=>Math.abs(e-t);function R4(e,t){const n=Ny(e.x,t.x),r=Ny(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vy{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=np(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,y=R4(g.offset,{x:0,y:0})>=3;if(!v&&!y)return;const{point:b}=g,{timestamp:x}=cn;this.history.push({...b,timestamp:x});const{onStart:w,onMove:A}=this.handlers;v||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=tp(v,this.transformPagePoint),vt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=np(g.type==="pointercancel"?this.lastMoveEventInfo:tp(v,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,w),b&&b(g,w)},!Uv(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=rc(t),c=tp(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=cn;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(t,np(c,this.history)),this.removeListeners=jo(no(this.contextWindow,"pointermove",this.handlePointerMove),no(this.contextWindow,"pointerup",this.handlePointerUp),no(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eo(this.updatePoint)}}function tp(e,t){return t?{point:t(e.point)}:e}function Wy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function np({point:e},t){return{point:e,delta:Wy(e,zy(t)),offset:Wy(e,D4(t)),velocity:L4(t,.1)}}function D4(e){return e[0]}function zy(e){return e[e.length-1]}function L4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zy(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Mo(t)));)n--;if(!r)return{x:0,y:0};const i=ro(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Vn(e){return e.max-e.min}function rp(e,t=0,n=.01){return Math.abs(e-t)<=n}function Uy(e,t,n,r=.5){e.origin=r,e.originPoint=At(t.min,t.max,e.origin),e.scale=Vn(n)/Vn(t),(rp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=At(n.min,n.max,e.origin)-e.originPoint,(rp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ca(e,t,n,r){Uy(e.x,t.x,n.x,r?r.originX:void 0),Uy(e.y,t.y,n.y,r?r.originY:void 0)}function Hy(e,t,n){e.min=n.min+t.min,e.max=e.min+Vn(t)}function B4(e,t,n){Hy(e.x,t.x,n.x),Hy(e.y,t.y,n.y)}function Gy(e,t,n){e.min=t.min-n.min,e.max=e.min+Vn(t)}function wa(e,t,n){Gy(e.x,t.x,n.x),Gy(e.y,t.y,n.y)}function N4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?At(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?At(n,e,r.max):Math.min(e,n)),e}function Yy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function V4(e,{top:t,left:n,bottom:r,right:o}){return{x:Yy(e.x,n,o),y:Yy(e.y,t,r)}}function Ky(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W4(e,t){return{x:Ky(e.x,t.x),y:Ky(e.y,t.y)}}function z4(e,t){let n=.5;const r=Vn(e),o=Vn(t);return o>r?n=ba(t.min,t.max-r,e.min):r>o&&(n=ba(e.min,e.max-o,t.min)),Oo(0,1,n)}function U4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const op=.35;function H4(e=op){return e===!1?e=0:e===!0&&(e=op),{x:Xy(e,"left","right"),y:Xy(e,"top","bottom")}}function Xy(e,t,n){return{min:Zy(e,t),max:Zy(e,n)}}function Zy(e,t){return typeof e=="number"?e:e[t]||0}const Qy=()=>({translate:0,scale:1,origin:0,originPoint:0}),$i=()=>({x:Qy(),y:Qy()}),Jy=()=>({min:0,max:0}),zt=()=>({x:Jy(),y:Jy()});function nr(e){return[e("x"),e("y")]}function qy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function G4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Y4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ip(e){return e===void 0||e===1}function sp({scale:e,scaleX:t,scaleY:n}){return!ip(e)||!ip(t)||!ip(n)}function pi(e){return sp(e)||$y(e)||e.z||e.rotate||e.rotateX||e.rotateY}function $y(e){return eb(e.x)||eb(e.y)}function eb(e){return e&&e!=="0%"}function uc(e,t,n){const r=e-n,o=t*r;return n+o}function tb(e,t,n,r,o){return o!==void 0&&(e=uc(e,o,r)),uc(e,n,r)+t}function ap(e,t=0,n=1,r,o){e.min=tb(e.min,t,n,r,o),e.max=tb(e.max,t,n,r,o)}function nb(e,{x:t,y:n}){ap(e.x,t.translate,t.scale,t.originPoint),ap(e.y,n.translate,n.scale,n.originPoint)}function K4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let c=0;c<o;c++){i=n[c],a=i.projectionDelta;const u=i.instance;u&&u.style&&u.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&es(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,nb(e,a)),r&&pi(i.latestValues)&&es(e,i.latestValues))}t.x=rb(t.x),t.y=rb(t.y)}function rb(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function _o(e,t){e.min=e.min+t,e.max=e.max+t}function ob(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=At(e.min,e.max,i);ap(e,t[n],t[r],a,t.scale)}const X4=["x","scaleX","originX"],Z4=["y","scaleY","originY"];function es(e,t){ob(e.x,t,X4),ob(e.y,t,Z4)}function ib(e,t){return qy(Y4(e.getBoundingClientRect(),t))}function Q4(e,t,n){const r=ib(e,n),{scroll:o}=t;return o&&(_o(r.x,o.offset.x),_o(r.y,o.offset.y)),r}const sb=({current:e})=>e?e.ownerDocument.defaultView:null,J4=new WeakMap;class q4{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=zt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(rc(p,"page").point)},i=(p,g)=>{const{drag:v,dragPropagation:y,onDragStart:b}=this.getProps();if(v&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Kv(v),!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),nr(w=>{let A=this.getAxisMotionValue(w).get()||0;if(Rr.test(A)){const{projection:j}=this.visualElement;if(j&&j.layout){const T=j.layout.layoutBox[w];T&&(A=Vn(T)*(parseFloat(A)/100))}}this.originPoint[w]=A}),b&&vt.update(()=>b(p,g),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(p,g)=>{const{dragPropagation:v,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=$4(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&x(p,g)},c=(p,g)=>this.stop(p,g),u=()=>nr(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Vy(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:sb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&vt.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!dc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=N4(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Qi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=V4(o.layoutBox,n):this.constraints=!1,this.elastic=H4(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=U4(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qi(t))return!1;const r=t.current;Ar(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Q4(r,o.root,this.visualElement.getTransformPagePoint());let a=W4(o.layout.layoutBox,i);if(n){const c=n(G4(a));this.hasMutatedConstraints=!!c,c&&(a=qy(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=nr(p=>{if(!dc(p,n,this.currentDirection))return;let g=u&&u[p]||{};a&&(g={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,b={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(p,b)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Zf(t,r,0,n))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!dc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n];i.set(t[n]-At(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qi(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};nr(a=>{const c=this.getAxisMotionValue(a);if(c){const u=c.get();o[a]=z4({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!dc(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(At(u,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;J4.set(this.visualElement,this);const t=this.visualElement.current,n=no(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Qi(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=to(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(nr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=u[p].translate,g.set(g.get()+u[p].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=op,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:c}}}function dc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class e5 extends ko{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new q4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const ab=e=>(t,n)=>{e&&vt.update(()=>e(t,n))};class t5 extends ko{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Vy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ab(t),onStart:ab(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&vt.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=no(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 n5(){const e=E.useContext(bf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=E.useId();return E.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;const n=lb(e,t.target.x),r=lb(e,t.target.y);return`${n}% ${r}%`}},r5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Fo.parse(e);if(o.length>5)return r;const i=Fo.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const d=At(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class o5 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;hj(i5),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),fc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||vt.postRender(()=>{const c=a.getStack();(!c||!c.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:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cb(e){const[t,n]=n5(),r=E.useContext(Ev);return E.createElement(o5,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Tv),isPresent:t,safeToRemove:n})}const i5={borderRadius:{...Sa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sa,borderTopRightRadius:Sa,borderBottomLeftRadius:Sa,borderBottomRightRadius:Sa,boxShadow:r5},ub=["TopLeft","TopRight","BottomLeft","BottomRight"],s5=ub.length,db=e=>typeof e=="string"?parseFloat(e):e,fb=e=>typeof e=="number"||Fe.test(e);function a5(e,t,n,r,o,i){o?(e.opacity=At(0,n.opacity!==void 0?n.opacity:1,l5(r)),e.opacityExit=At(t.opacity!==void 0?t.opacity:1,0,c5(r))):i&&(e.opacity=At(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<s5;a++){const c=`border${ub[a]}Radius`;let u=pb(t,c),d=pb(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||fb(u)===fb(d)?(e[c]=Math.max(At(db(u),db(d),r),0),(Rr.test(d)||Rr.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=At(t.rotate||0,n.rotate||0,r))}function pb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const l5=hb(0,.5,sy),c5=hb(.5,.95,kt);function hb(e,t,n){return r=>r<e?0:r>t?1:n(ba(e,t,r))}function gb(e,t){e.min=t.min,e.max=t.max}function rr(e,t){gb(e.x,t.x),gb(e.y,t.y)}function mb(e,t,n,r,o){return e-=t,e=uc(e,1/n,r),o!==void 0&&(e=uc(e,1/o,r)),e}function u5(e,t=0,n=1,r=.5,o,i=e,a=e){if(Rr.test(t)&&(t=parseFloat(t),t=At(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=At(i.min,i.max,r);e===i&&(c-=t),e.min=mb(e.min,t,n,c,o),e.max=mb(e.max,t,n,c,o)}function vb(e,t,[n,r,o],i,a){u5(e,t[n],t[r],t[o],t.scale,i,a)}const d5=["x","scaleX","originX"],f5=["y","scaleY","originY"];function yb(e,t,n,r){vb(e.x,t,d5,n?n.x:void 0,r?r.x:void 0),vb(e.y,t,f5,n?n.y:void 0,r?r.y:void 0)}function bb(e){return e.translate===0&&e.scale===1}function xb(e){return bb(e.x)&&bb(e.y)}function p5(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 Cb(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 wb(e){return Vn(e.x)/Vn(e.y)}class h5{constructor(){this.members=[]}add(t){Qf(this.members,t),t.scheduleRender()}remove(t){if(Jf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:d,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const g5=(e,t)=>e.depth-t.depth;class m5{constructor(){this.children=[],this.isDirty=!1}add(t){Qf(this.children,t),this.isDirty=!0}remove(t){Jf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(g5),this.isDirty=!1,this.children.forEach(t)}}function v5(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(eo(r),e(i-t))};return vt.read(r,!0),()=>eo(r)}function y5(e){window.MotionDebug&&window.MotionDebug.record(e)}function b5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function x5(e,t,n){const r=An(e)?e:qi(e);return r.start(Zf("",r,t,n)),r.animation}const Eb=["","X","Y","Z"],C5={visibility:"hidden"},Tb=1e3;let w5=0;const hi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ab({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t==null?void 0:t()){this.id=w5++,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.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hi.totalNodes=hi.resolvedTargetDeltas=hi.recalculatedProjection=0,this.nodes.forEach(T5),this.nodes.forEach(j5),this.nodes.forEach(k5),this.nodes.forEach(A5),y5(hi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new m5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new qf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=b5(a),this.instance=a;const{layoutId:u,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=v5(v,250),fc.hasAnimatedSinceResize&&(fc.hasAnimatedSinceResize=!1,this.nodes.forEach(Ob))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||p.getDefaultTransition()||D5,{onLayoutAnimationStart:w,onLayoutAnimationComplete:A}=p.getProps(),j=!this.targetLayout||!Cb(this.targetLayout,b)||y,T=!v&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||v&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,T);const P={...Xf(x,"layout"),onPlay:w,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else v||Ob(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,eo(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(M5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!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 p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ib);return}this.isUpdating||this.nodes.forEach(O5),this.isUpdating=!1,this.nodes.forEach(P5),this.nodes.forEach(S5),this.nodes.forEach(E5),this.clearAllSnapshots();const c=performance.now();cn.delta=Oo(0,1e3/60,c-cn.timestamp),cn.timestamp=c,cn.isProcessing=!0,kf.update.process(cn),kf.preRender.process(cn),kf.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(I5),this.sharedNodes.forEach(F5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vt.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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=zt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!xb(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;a&&(c||pi(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),L5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return zt();const c=a.measureViewportBox(),{scroll:u}=this.root;return u&&(_o(c.x,u.offset.x),_o(c.y,u.offset.y)),c}removeElementScroll(a){const c=zt();rr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:g}=d;if(d!==this.root&&p&&g.layoutScroll){if(p.isRoot){rr(c,a);const{scroll:v}=this.root;v&&(_o(c.x,-v.offset.x),_o(c.y,-v.offset.y))}_o(c.x,p.offset.x),_o(c.y,p.offset.y)}}return c}applyTransform(a,c=!1){const u=zt();rr(u,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&es(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),pi(p.latestValues)&&es(u,p.latestValues)}return pi(this.latestValues)&&es(u,this.latestValues),u}removeTransform(a){const c=zt();rr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!pi(d.latestValues))continue;sp(d.latestValues)&&d.updateSnapshot();const p=zt(),g=d.measurePageBox();rr(p,g),yb(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return pi(this.latestValues)&&yb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==cn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=zt(),this.relativeTargetOrigin=zt(),wa(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=zt(),this.targetWithTransforms=zt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),nb(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=zt(),this.relativeTargetOrigin=zt(),wa(this.relativeTargetOrigin,this.target,y.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||sp(this.parent.latestValues)||$y(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 a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===cn.timestamp&&(d=!1),d)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;rr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;K4(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:b}=c;if(!b){this.projectionTransform&&(this.projectionDelta=$i(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=$i(),this.projectionDeltaWithTransform=$i());const x=this.projectionTransform;Ca(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Sb(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==v||this.treeScale.y!==y)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),hi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},p={...this.latestValues},g=$i();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=zt(),y=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=y!==b,w=this.getStack(),A=!w||w.members.length<=1,j=!!(x&&!A&&this.options.crossfade===!0&&!this.path.some(R5));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const O=P/1e3;Pb(g.x,a.x,O),Pb(g.y,a.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wa(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_5(this.relativeTarget,this.relativeTargetOrigin,v,O),T&&p5(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=zt()),rr(T,this.relativeTarget)),x&&(this.animationValues=p,a5(p,d,this.latestValues,O,j,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vt.update(()=>{fc.hasAnimatedSinceResize=!0,this.currentAnimation=x5(0,Tb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&_b(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||zt();const g=Vn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+g;const v=Vn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+v}rr(c,u),es(c,p),Ca(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new h5),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const d={};for(let p=0;p<Eb.length;p++){const g="rotate"+Eb[p];u[g]&&(d[g]=u[g],a.setStaticValue(g,0))}a.render();for(const p in d)a.setStaticValue(p,d[p]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return C5;const d={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=tc(a==null?void 0:a.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none",d;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=tc(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(x.transform=p?p({},""):"none",this.hasProjected=!1),x}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),d.transform=Sb(this.projectionDeltaWithTransform,this.treeScale,v),p&&(d.transform=p(v,d.transform));const{x:y,y:b}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,g.animationValues?d.opacity=g===this?(u=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const x in Ql){if(v[x]===void 0)continue;const{correct:w,applyTo:A}=Ql[x],j=d.transform==="none"?v[x]:w(v[x],g);if(A){const T=A.length;for(let P=0;P<T;P++)d[A[P]]=j}else d[x]=j}return this.options.layoutId&&(d.pointerEvents=g===this?tc(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ib),this.root.sharedNodes.clear()}}}function S5(e){e.updateLayout()}function E5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?nr(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Vn(v);v.min=r[g].min,v.max=v.min+y}):_b(i,n.layoutBox,r)&&nr(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Vn(r[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const c=$i();Ca(c,r,n.layoutBox);const u=$i();a?Ca(u,e.applyTransform(o,!0),n.measuredBox):Ca(u,r,n.layoutBox);const d=!xb(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const b=zt();wa(b,n.layoutBox,v.layoutBox);const x=zt();wa(x,r,y.layoutBox),Cb(b,x)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function T5(e){hi.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 A5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I5(e){e.clearSnapshot()}function Ib(e){e.clearMeasurements()}function O5(e){e.isLayoutDirty=!1}function P5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ob(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function j5(e){e.resolveTargetDelta()}function k5(e){e.calcProjection()}function M5(e){e.resetRotation()}function F5(e){e.removeLeadSnapshot()}function Pb(e,t,n){e.translate=At(t.translate,0,n),e.scale=At(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function jb(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}function _5(e,t,n,r){jb(e.x,t.x,n.x,r),jb(e.y,t.y,n.y,r)}function R5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const D5={duration:.45,ease:[.4,0,.1,1]},kb=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Mb=kb("applewebkit/")&&!kb("chrome/")?Math.round:kt;function Fb(e){e.min=Mb(e.min),e.max=Mb(e.max)}function L5(e){Fb(e.x),Fb(e.y)}function _b(e,t,n){return e==="position"||e==="preserve-aspect"&&!rp(wb(t),wb(n),.2)}const B5=Ab({attachResizeListener:(e,t)=>to(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lp={current:void 0},Rb=Ab({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lp.current){const e=new B5({});e.mount(window),e.setOptions({layoutScroll:!0}),lp.current=e}return lp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),N5={pan:{Feature:t5},drag:{Feature:e5,ProjectionNode:Rb,MeasureLayout:cb}},V5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function W5(e){const t=V5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const z5=4;function cp(e,t,n=1){Ar(n<=z5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W5(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return _y(a)?parseFloat(a):a}else return Ef(o)?cp(o,t,n+1):o}function U5(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ef(i))return;const a=cp(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!Ef(i))continue;const a=cp(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const H5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Db=e=>H5.has(e),G5=e=>Object.keys(e).some(Db),pc=e=>e===ui||e===Fe,Lb=(e,t)=>parseFloat(e.split(", ")[t]),Bb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Lb(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Lb(i[1],e):0}},Y5=new Set(["x","y","z"]),K5=da.filter(e=>!Y5.has(e));function X5(e){const t=[];return K5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ts={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Bb(4,13),y:Bb(5,14)};ts.translateX=ts.x,ts.translateY=ts.y;const Z5=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{c[d]=ts[d](r,i)}),t.render();const u=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);p&&p.jump(c[d]),e[d]=ts[d](u,i)}),e},Q5=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Db);let i=[],a=!1;const c=[];if(o.forEach(u=>{const d=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],g=xa(p);const v=t[u];let y;if(ec(v)){const b=v.length,x=v[0]===null?1:0;p=v[x],g=xa(p);for(let w=x;w<b&&v[w]!==null;w++)y?Ar(xa(v[w])===y,"All keyframes must be of the same type"):(y=xa(v[w]),Ar(y===g||pc(g)&&pc(y),"Keyframes must be of the same dimension as the current value"))}else y=xa(v);if(g!==y)if(pc(g)&&pc(y)){const b=d.get();typeof b=="string"&&d.set(parseFloat(b)),typeof v=="string"?t[u]=parseFloat(v):Array.isArray(v)&&y===Fe&&(t[u]=v.map(parseFloat))}else g!=null&&g.transform&&(y!=null&&y.transform)&&(p===0||v===0)?p===0?d.set(y.transform(p)):t[u]=g.transform(v):(a||(i=X5(e),a=!0),c.push(u),r[u]=r[u]!==void 0?r[u]:t[u],d.jump(v))}),c.length){const u=c.indexOf("height")>=0?window.pageYOffset:null,d=Z5(t,e,c);return i.length&&i.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),Kl&&u!==null&&window.scrollTo({top:u}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function J5(e,t,n,r){return G5(t)?Q5(e,t,n,r):{target:t,transitionEnd:r}}const q5=(e,t,n,r)=>{const o=U5(e,t,r);return t=o.target,r=o.transitionEnd,J5(e,t,n,r)},up={current:null},Nb={current:!1};function $5(){if(Nb.current=!0,!!Kl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>up.current=e.matches;e.addListener(t),t()}else up.current=!1}function ek(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(An(i))e.addValue(o,i),cc(r)&&r.add(o),process.env.NODE_ENV==="development"&&$f(i.version==="10.18.0",`Attempting to mix Framer Motion versions ${i.version} with 10.18.0 may not work as expected.`);else if(An(a))e.addValue(o,qi(i,{owner:e})),cc(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const c=e.getValue(o);!c.hasAnimated&&c.set(i)}else{const c=e.getStaticValue(o);e.addValue(o,qi(c!==void 0?c:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Vb=new WeakMap,Wb=Object.keys(ua),tk=Wb.length,zb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nk=wf.length;class rk{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){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=()=>vt.render(this.render,!1,!0);const{latestValues:c,renderState:u}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Zl(n),this.isVariantNode=Cv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const v=p[g];c[g]!==void 0&&An(v)&&(v.set(c[g],!1),cc(d)&&d.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Vb.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((n,r)=>this.bindToMotionValue(r,n)),Nb.current||$5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:up.current,process.env.NODE_ENV!=="production"&&$f(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(){Vb.delete(this.current),this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(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,n){const r=ci.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&vt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,c;if(process.env.NODE_ENV!=="production"&&o&&r){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?ma(!1,u):Ar(!1,u)}for(let u=0;u<tk;u++){const d=Wb[u],{isEnabled:p,Feature:g,ProjectionNode:v,MeasureLayout:y}=ua[d];v&&(a=v),p(n)&&(!this.features[d]&&g&&(this.features[d]=new g(this)),y&&(c=y))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:d,drag:p,dragConstraints:g,layoutScroll:v,layoutRoot:y}=n;this.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!p||g&&Qi(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:v,layoutRoot:y})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):zt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zb.length;r++){const o=zb[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=ek(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 r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<nk;r++){const o=wf[r],i=this.props[o];(ca(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=jf(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!An(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ub extends rk{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let a=b4(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){v4(this,r,a);const c=q5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function ok(e){return window.getComputedStyle(e)}class ik extends Ub{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(ci.has(n)){const r=Kf(n);return r&&r.default||0}else{const r=ok(t),o=(Ov(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ib(t,n)}build(t,n,r,o){Tf(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Pf(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;An(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Lv(t,n,r,o)}}class sk extends Ub{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ci.has(n)){const r=Kf(n);return r&&r.default||0}return n=Bv.has(n)?n:xf(n),t.getAttribute(n)}measureInstanceViewportBox(){return zt()}scrapeMotionValuesFromProps(t,n){return Vv(t,n)}build(t,n,r,o){If(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Nv(t,n,r,o)}mount(t){this.isSVGTag=Of(t.tagName),super.mount(t)}}const ak=(e,t)=>Sf(e)?new sk(t,{enableHardwareAcceleration:!1}):new ik(t,{enableHardwareAcceleration:!0}),lk={..._4,...o3,...N5,...{layout:{ProjectionNode:Rb,MeasureLayout:cb}}},hc=fj((e,t)=>Gj(e,t,lk,ak)),ck=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Hb(...e){const t=E.useRef(0),[n,r]=E.useState(e[t.current]),o=E.useCallback(i=>{t.current=typeof i!="number"?ck(0,e.length,t.current+1):i,r(e[t.current])},[e.length,...e]);return[n,o]}function uk({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let i,a;switch(n){case"up":case"left":i=r,a=0;break;case"right":case"down":default:i=0,a=r;break}const[c,u]=Hb(i,a),[d,p]=Hb(i,a);switch(t){case"rotate":return f.jsx(hc.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:e});case"slide":return n==="up"||n==="down"?f.jsx(hc.div,{animate:{y:d!==void 0?d:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):f.jsx(hc.div,{animate:{x:c!==void 0?c:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:e});case"scale":default:return typeof o=="number"&&(o={hover:o,tap:o}),f.jsx(hc.div,{whileHover:{scale:o==null?void 0:o.hover},whileTap:{scale:o==null?void 0:o.tap},children:e})}}function nn(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function Re(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var dp={exports:{}},gc={exports:{}},it={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -12,24 +12,24 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Yb;function fk(){return Yb||(Yb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function T(pe){return typeof pe=="string"||typeof pe=="function"||pe===r||pe===d||pe===i||pe===o||pe===g||pe===v||typeof pe=="object"&&pe!==null&&(pe.$$typeof===b||pe.$$typeof===y||pe.$$typeof===a||pe.$$typeof===c||pe.$$typeof===p||pe.$$typeof===w||pe.$$typeof===A||pe.$$typeof===j||pe.$$typeof===x)}function P(pe){if(typeof pe=="object"&&pe!==null){var Ke=pe.$$typeof;switch(Ke){case t:var ve=pe.type;switch(ve){case u:case d:case r:case i:case o:case g:return ve;default:var $e=ve&&ve.$$typeof;switch($e){case c:case p:case b:case y:case a:return $e;default:return Ke}}case n:return Ke}}}var O=u,_=d,R=c,N=a,Y=t,X=p,G=r,re=b,ne=y,Z=n,J=i,V=o,$=g,W=!1;function ie(pe){return W||(W=!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.")),U(pe)||P(pe)===u}function U(pe){return P(pe)===d}function ee(pe){return P(pe)===c}function de(pe){return P(pe)===a}function ge(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===t}function fe(pe){return P(pe)===p}function he(pe){return P(pe)===r}function me(pe){return P(pe)===b}function Se(pe){return P(pe)===y}function be(pe){return P(pe)===n}function ye(pe){return P(pe)===i}function we(pe){return P(pe)===o}function Ie(pe){return P(pe)===g}st.AsyncMode=O,st.ConcurrentMode=_,st.ContextConsumer=R,st.ContextProvider=N,st.Element=Y,st.ForwardRef=X,st.Fragment=G,st.Lazy=re,st.Memo=ne,st.Portal=Z,st.Profiler=J,st.StrictMode=V,st.Suspense=$,st.isAsyncMode=ie,st.isConcurrentMode=U,st.isContextConsumer=ee,st.isContextProvider=de,st.isElement=ge,st.isForwardRef=fe,st.isFragment=he,st.isLazy=me,st.isMemo=Se,st.isPortal=be,st.isProfiler=ye,st.isStrictMode=we,st.isSuspense=Ie,st.isValidElementType=T,st.typeOf=P}()),st}var Kb;function Xb(){return Kb||(Kb=1,process.env.NODE_ENV==="production"?hc.exports=dk():hc.exports=fk()),hc.exports}/*
15
+ */var Yb;function fk(){return Yb||(Yb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function T(pe){return typeof pe=="string"||typeof pe=="function"||pe===r||pe===d||pe===i||pe===o||pe===g||pe===v||typeof pe=="object"&&pe!==null&&(pe.$$typeof===b||pe.$$typeof===y||pe.$$typeof===a||pe.$$typeof===c||pe.$$typeof===p||pe.$$typeof===w||pe.$$typeof===A||pe.$$typeof===j||pe.$$typeof===x)}function P(pe){if(typeof pe=="object"&&pe!==null){var Ke=pe.$$typeof;switch(Ke){case t:var ve=pe.type;switch(ve){case u:case d:case r:case i:case o:case g:return ve;default:var $e=ve&&ve.$$typeof;switch($e){case c:case p:case b:case y:case a:return $e;default:return Ke}}case n:return Ke}}}var O=u,_=d,R=c,N=a,Y=t,X=p,G=r,re=b,ne=y,Z=n,J=i,V=o,$=g,W=!1;function ie(pe){return W||(W=!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.")),U(pe)||P(pe)===u}function U(pe){return P(pe)===d}function ee(pe){return P(pe)===c}function de(pe){return P(pe)===a}function ge(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===t}function fe(pe){return P(pe)===p}function he(pe){return P(pe)===r}function me(pe){return P(pe)===b}function Se(pe){return P(pe)===y}function be(pe){return P(pe)===n}function ye(pe){return P(pe)===i}function we(pe){return P(pe)===o}function Ie(pe){return P(pe)===g}st.AsyncMode=O,st.ConcurrentMode=_,st.ContextConsumer=R,st.ContextProvider=N,st.Element=Y,st.ForwardRef=X,st.Fragment=G,st.Lazy=re,st.Memo=ne,st.Portal=Z,st.Profiler=J,st.StrictMode=V,st.Suspense=$,st.isAsyncMode=ie,st.isConcurrentMode=U,st.isContextConsumer=ee,st.isContextProvider=de,st.isElement=ge,st.isForwardRef=fe,st.isFragment=he,st.isLazy=me,st.isMemo=Se,st.isPortal=be,st.isProfiler=ye,st.isStrictMode=we,st.isSuspense=Ie,st.isValidElementType=T,st.typeOf=P}()),st}var Kb;function Xb(){return Kb||(Kb=1,process.env.NODE_ENV==="production"?gc.exports=dk():gc.exports=fk()),gc.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
19
  */var fp,Zb;function pk(){if(Zb)return fp;Zb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fp=o()?Object.assign:function(i,a){for(var c,u=r(i),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){d=e(c);for(var v=0;v<d.length;v++)n.call(c,d[v])&&(u[d[v]]=c[d[v]])}}return u},fp}var pp,Qb;function hp(){if(Qb)return pp;Qb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pp=e,pp}var gp,Jb;function qb(){return Jb||(Jb=1,gp=Function.call.bind(Object.prototype.hasOwnProperty)),gp}var mp,$b;function hk(){if($b)return mp;$b=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=hp(),n={},r=qb();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var v=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=i[p](a,p,u,c,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+g.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},mp=o,mp}var vp,ex;function gk(){if(ex)return vp;ex=1;var e=Xb(),t=pk(),n=hp(),r=qb(),o=hk(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return vp=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(U){var ee=U&&(d&&U[d]||U[p]);if(typeof ee=="function")return ee}var v="<<anonymous>>",y={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:j(),arrayOf:T,element:P(),elementType:O(),instanceOf:_,node:X(),objectOf:N,oneOf:R,oneOfType:Y,shape:re,exact:ne};function b(U,ee){return U===ee?U!==0||1/U===1/ee:U!==U&&ee!==ee}function x(U,ee){this.message=U,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}x.prototype=Error.prototype;function w(U){if(process.env.NODE_ENV!=="production")var ee={},de=0;function ge(he,me,Se,be,ye,we,Ie){if(be=be||v,we=we||Se,Ie!==n){if(u){var pe=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 pe.name="Invariant Violation",pe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ke=be+":"+Se;!ee[Ke]&&de<3&&(i("You are manually calling a React.PropTypes validation function for the `"+we+"` prop on `"+be+"`. 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."),ee[Ke]=!0,de++)}}return me[Se]==null?he?me[Se]===null?new x("The "+ye+" `"+we+"` is marked as required "+("in `"+be+"`, but its value is `null`.")):new x("The "+ye+" `"+we+"` is marked as required in "+("`"+be+"`, but its value is `undefined`.")):null:U(me,Se,be,ye,we)}var fe=ge.bind(null,!1);return fe.isRequired=ge.bind(null,!0),fe}function A(U){function ee(de,ge,fe,he,me,Se){var be=de[ge],ye=V(be);if(ye!==U){var we=$(be);return new x("Invalid "+he+" `"+me+"` of type "+("`"+we+"` supplied to `"+fe+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return w(ee)}function j(){return w(a)}function T(U){function ee(de,ge,fe,he,me){if(typeof U!="function")return new x("Property `"+me+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var Se=de[ge];if(!Array.isArray(Se)){var be=V(Se);return new x("Invalid "+he+" `"+me+"` of type "+("`"+be+"` supplied to `"+fe+"`, expected an array."))}for(var ye=0;ye<Se.length;ye++){var we=U(Se,ye,fe,he,me+"["+ye+"]",n);if(we instanceof Error)return we}return null}return w(ee)}function P(){function U(ee,de,ge,fe,he){var me=ee[de];if(!c(me)){var Se=V(me);return new x("Invalid "+fe+" `"+he+"` of type "+("`"+Se+"` supplied to `"+ge+"`, expected a single ReactElement."))}return null}return w(U)}function O(){function U(ee,de,ge,fe,he){var me=ee[de];if(!e.isValidElementType(me)){var Se=V(me);return new x("Invalid "+fe+" `"+he+"` of type "+("`"+Se+"` supplied to `"+ge+"`, expected a single ReactElement type."))}return null}return w(U)}function _(U){function ee(de,ge,fe,he,me){if(!(de[ge]instanceof U)){var Se=U.name||v,be=ie(de[ge]);return new x("Invalid "+he+" `"+me+"` of type "+("`"+be+"` supplied to `"+fe+"`, expected ")+("instance of `"+Se+"`."))}return null}return w(ee)}function R(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function ee(de,ge,fe,he,me){for(var Se=de[ge],be=0;be<U.length;be++)if(b(Se,U[be]))return null;var ye=JSON.stringify(U,function(Ie,pe){var Ke=$(pe);return Ke==="symbol"?String(pe):pe});return new x("Invalid "+he+" `"+me+"` of value `"+String(Se)+"` "+("supplied to `"+fe+"`, expected one of "+ye+"."))}return w(ee)}function N(U){function ee(de,ge,fe,he,me){if(typeof U!="function")return new x("Property `"+me+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var Se=de[ge],be=V(Se);if(be!=="object")return new x("Invalid "+he+" `"+me+"` of type "+("`"+be+"` supplied to `"+fe+"`, expected an object."));for(var ye in Se)if(r(Se,ye)){var we=U(Se,ye,fe,he,me+"."+ye,n);if(we instanceof Error)return we}return null}return w(ee)}function Y(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var ee=0;ee<U.length;ee++){var de=U[ee];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(de)+" at index "+ee+"."),a}function ge(fe,he,me,Se,be){for(var ye=[],we=0;we<U.length;we++){var Ie=U[we],pe=Ie(fe,he,me,Se,be,n);if(pe==null)return null;pe.data&&r(pe.data,"expectedType")&&ye.push(pe.data.expectedType)}var Ke=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new x("Invalid "+Se+" `"+be+"` supplied to "+("`"+me+"`"+Ke+"."))}return w(ge)}function X(){function U(ee,de,ge,fe,he){return Z(ee[de])?null:new x("Invalid "+fe+" `"+he+"` supplied to "+("`"+ge+"`, expected a ReactNode."))}return w(U)}function G(U,ee,de,ge,fe){return new x((U||"React class")+": "+ee+" type `"+de+"."+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function re(U){function ee(de,ge,fe,he,me){var Se=de[ge],be=V(Se);if(be!=="object")return new x("Invalid "+he+" `"+me+"` of type `"+be+"` "+("supplied to `"+fe+"`, expected `object`."));for(var ye in U){var we=U[ye];if(typeof we!="function")return G(fe,he,me,ye,$(we));var Ie=we(Se,ye,fe,he,me+"."+ye,n);if(Ie)return Ie}return null}return w(ee)}function ne(U){function ee(de,ge,fe,he,me){var Se=de[ge],be=V(Se);if(be!=="object")return new x("Invalid "+he+" `"+me+"` of type `"+be+"` "+("supplied to `"+fe+"`, expected `object`."));var ye=t({},de[ge],U);for(var we in ye){var Ie=U[we];if(r(U,we)&&typeof Ie!="function")return G(fe,he,me,we,$(Ie));if(!Ie)return new x("Invalid "+he+" `"+me+"` key `"+we+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(de[ge],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(U),null," "));var pe=Ie(Se,we,fe,he,me+"."+we,n);if(pe)return pe}return null}return w(ee)}function Z(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(Z);if(U===null||c(U))return!0;var ee=g(U);if(ee){var de=ee.call(U),ge;if(ee!==U.entries){for(;!(ge=de.next()).done;)if(!Z(ge.value))return!1}else for(;!(ge=de.next()).done;){var fe=ge.value;if(fe&&!Z(fe[1]))return!1}}else return!1;return!0;default:return!1}}function J(U,ee){return U==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function V(U){var ee=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":J(ee,U)?"symbol":ee}function $(U){if(typeof U>"u"||U===null)return""+U;var ee=V(U);if(ee==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return ee}function W(U){var ee=$(U);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function ie(U){return!U.constructor||!U.constructor.name?v:U.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},vp}var yp,tx;function mk(){if(tx)return yp;tx=1;var e=hp();function t(){}function n(){}return n.resetWarningCache=t,yp=function(){function r(a,c,u,d,p,g){if(g!==e){var v=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 v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},yp}if(process.env.NODE_ENV!=="production"){var vk=Xb(),yk=!0;dp.exports=gk()(vk.isElement,yk)}else dp.exports=mk()();var bk=dp.exports;const m=Dr(bk);function nx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=nx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=nx(e))&&(r&&(r+=" "),r+=t);return r}function Ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const c=t(a);c!==""&&i.push(c),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function bp(e,t){const n=H({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=H({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=H({},i),Object.keys(o).forEach(a=>{n[r][a]=bp(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function xk(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bp(t.components[n].defaultProps,r)}function io(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rx(e){if(D.isValidElement(e)||!io(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=rx(e[n])}),t}function Lr(e,t,n={clone:!0}){const r=n.clone?H({},e):e;return io(e)&&io(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:io(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&io(e[o])?r[o]=Lr(e[o],t[o],n):n.clone?r[o]=io(t[o])?rx(t[o]):t[o]:r[o]=t[o]}),r}const Ck=Object.freeze(Object.defineProperty({__proto__:null,default:Lr,isPlainObject:io},Symbol.toStringTag,{value:"Module"})),wk=["values","unit","step"],Sk=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>H({},n,{[r.key]:r.val}),{})};function ox(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Re(e,wk),i=Sk(t),a=Object.keys(i);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function u(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function d(v,y){const b=a.indexOf(y);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:y)-r/100}${n})`}function p(v){return a.indexOf(v)+1<a.length?d(v,a[a.indexOf(v)+1]):c(v)}function g(v){const y=a.indexOf(v);return y===0?c(a[1]):y===a.length-1?u(a[y]):d(v,a[a.indexOf(v)+1]).replace("@media","@media not all and")}return H({keys:a,values:i,up:c,down:u,between:d,only:p,not:g,unit:n},o)}const Ek={borderRadius:4},Ro=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Ea(e,t){return t?Lr(e,t,{clone:!1}):e}const xp={xs:0,sm:600,md:900,lg:1200,xl:1536},ix={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xp[e]}px)`};function so(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ix;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||ix;return Object.keys(t).reduce((a,c)=>{if(Object.keys(i.values||xp).indexOf(c)!==-1){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function Tk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ak(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function gi(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Ik=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"}));function Ne(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":gi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ok=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"}));function gc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function mc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=gc(e,n)||r,t&&(o=t(o,r,e)),o}function Dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=gc(u,r)||{};return so(a,c,g=>{let v=mc(d,o,g);return g===v&&typeof g=="string"&&(v=mc(d,o,`${t}${g==="default"?"":Ne(g)}`,g)),n===!1?v:{[n]:v}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ro}:{},i.filterProps=[t],i}function Pk(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jk={m:"margin",p:"padding"},kk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mk=Pk(e=>{if(e.length>2)if(sx[e])e=sx[e];else return[e];const[t,n]=e.split(""),r=jk[t],o=kk[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),vc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Fk=[...vc,...yc];function Ta(e,t,n,r){var o;const i=(o=gc(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
20
+ Valid keys: `+JSON.stringify(Object.keys(U),null," "));var pe=Ie(Se,we,fe,he,me+"."+we,n);if(pe)return pe}return null}return w(ee)}function Z(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(Z);if(U===null||c(U))return!0;var ee=g(U);if(ee){var de=ee.call(U),ge;if(ee!==U.entries){for(;!(ge=de.next()).done;)if(!Z(ge.value))return!1}else for(;!(ge=de.next()).done;){var fe=ge.value;if(fe&&!Z(fe[1]))return!1}}else return!1;return!0;default:return!1}}function J(U,ee){return U==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function V(U){var ee=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":J(ee,U)?"symbol":ee}function $(U){if(typeof U>"u"||U===null)return""+U;var ee=V(U);if(ee==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return ee}function W(U){var ee=$(U);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function ie(U){return!U.constructor||!U.constructor.name?v:U.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},vp}var yp,tx;function mk(){if(tx)return yp;tx=1;var e=hp();function t(){}function n(){}return n.resetWarningCache=t,yp=function(){function r(a,c,u,d,p,g){if(g!==e){var v=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 v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},yp}if(process.env.NODE_ENV!=="production"){var vk=Xb(),yk=!0;dp.exports=gk()(vk.isElement,yk)}else dp.exports=mk()();var bk=dp.exports;const m=Dr(bk);function nx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=nx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=nx(e))&&(r&&(r+=" "),r+=t);return r}function Ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const c=t(a);c!==""&&i.push(c),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function bp(e,t){const n=H({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=H({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=H({},i),Object.keys(o).forEach(a=>{n[r][a]=bp(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function xk(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bp(t.components[n].defaultProps,r)}function io(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rx(e){if(D.isValidElement(e)||!io(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=rx(e[n])}),t}function Lr(e,t,n={clone:!0}){const r=n.clone?H({},e):e;return io(e)&&io(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:io(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&io(e[o])?r[o]=Lr(e[o],t[o],n):n.clone?r[o]=io(t[o])?rx(t[o]):t[o]:r[o]=t[o]}),r}const Ck=Object.freeze(Object.defineProperty({__proto__:null,default:Lr,isPlainObject:io},Symbol.toStringTag,{value:"Module"})),wk=["values","unit","step"],Sk=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>H({},n,{[r.key]:r.val}),{})};function ox(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Re(e,wk),i=Sk(t),a=Object.keys(i);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function u(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function d(v,y){const b=a.indexOf(y);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:y)-r/100}${n})`}function p(v){return a.indexOf(v)+1<a.length?d(v,a[a.indexOf(v)+1]):c(v)}function g(v){const y=a.indexOf(v);return y===0?c(a[1]):y===a.length-1?u(a[y]):d(v,a[a.indexOf(v)+1]).replace("@media","@media not all and")}return H({keys:a,values:i,up:c,down:u,between:d,only:p,not:g,unit:n},o)}const Ek={borderRadius:4},Ro=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Ea(e,t){return t?Lr(e,t,{clone:!1}):e}const xp={xs:0,sm:600,md:900,lg:1200,xl:1536},ix={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xp[e]}px)`};function so(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ix;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||ix;return Object.keys(t).reduce((a,c)=>{if(Object.keys(i.values||xp).indexOf(c)!==-1){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function Tk(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ak(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function gi(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Ik=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"}));function Ne(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":gi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ok=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"}));function mc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function vc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=mc(e,n)||r,t&&(o=t(o,r,e)),o}function Dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=mc(u,r)||{};return so(a,c,g=>{let v=vc(d,o,g);return g===v&&typeof g=="string"&&(v=vc(d,o,`${t}${g==="default"?"":Ne(g)}`,g)),n===!1?v:{[n]:v}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ro}:{},i.filterProps=[t],i}function Pk(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jk={m:"margin",p:"padding"},kk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mk=Pk(e=>{if(e.length>2)if(sx[e])e=sx[e];else return[e];const[t,n]=e.split(""),r=jk[t],o=kk[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),yc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Fk=[...yc,...bc];function Ta(e,t,n,r){var o;const i=(o=mc(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
21
21
  `)):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(`
22
22
  `))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
23
- `)),()=>{})}function ax(e){return Ta(e,"spacing",8,"spacing")}function Aa(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function _k(e,t){return n=>e.reduce((r,o)=>(r[o]=Aa(t,n),r),{})}function Rk(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Mk(n),i=_k(o,r),a=e[n];return so(e,a,i)}function lx(e,t){const n=ax(e.theme);return Object.keys(e).map(r=>Rk(e,t,r,n)).reduce(Ea,{})}function Mt(e){return lx(e,vc)}Mt.propTypes=process.env.NODE_ENV!=="production"?vc.reduce((e,t)=>(e[t]=Ro,e),{}):{},Mt.filterProps=vc;function Ft(e){return lx(e,yc)}Ft.propTypes=process.env.NODE_ENV!=="production"?yc.reduce((e,t)=>(e[t]=Ro,e),{}):{},Ft.filterProps=yc,process.env.NODE_ENV!=="production"&&Fk.reduce((e,t)=>(e[t]=Ro,e),{});function Dk(e=8){if(e.mui)return e;const t=ax({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function bc(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ea(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function or(e){return typeof e!="number"?e:`${e}px solid`}function ir(e,t){return Dt({prop:e,themeKey:"borders",transform:t})}const Lk=ir("border",or),Bk=ir("borderTop",or),Nk=ir("borderRight",or),Vk=ir("borderBottom",or),Wk=ir("borderLeft",or),zk=ir("borderColor"),Uk=ir("borderTopColor"),Hk=ir("borderRightColor"),Gk=ir("borderBottomColor"),Yk=ir("borderLeftColor"),Kk=ir("outline",or),Xk=ir("outlineColor"),xc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ta(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Aa(t,r)});return so(e,e.borderRadius,n)}return null};xc.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ro}:{},xc.filterProps=["borderRadius"],bc(Lk,Bk,Nk,Vk,Wk,zk,Uk,Hk,Gk,Yk,xc,Kk,Xk);const Cc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ta(e.theme,"spacing",8,"gap"),n=r=>({gap:Aa(t,r)});return so(e,e.gap,n)}return null};Cc.propTypes=process.env.NODE_ENV!=="production"?{gap:Ro}:{},Cc.filterProps=["gap"];const wc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ta(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Aa(t,r)});return so(e,e.columnGap,n)}return null};wc.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ro}:{},wc.filterProps=["columnGap"];const Sc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ta(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Aa(t,r)});return so(e,e.rowGap,n)}return null};Sc.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ro}:{},Sc.filterProps=["rowGap"];const Zk=Dt({prop:"gridColumn"}),Qk=Dt({prop:"gridRow"}),Jk=Dt({prop:"gridAutoFlow"}),qk=Dt({prop:"gridAutoColumns"}),$k=Dt({prop:"gridAutoRows"}),eM=Dt({prop:"gridTemplateColumns"}),tM=Dt({prop:"gridTemplateRows"}),nM=Dt({prop:"gridTemplateAreas"}),rM=Dt({prop:"gridArea"});bc(Cc,wc,Sc,Zk,Qk,Jk,qk,$k,eM,tM,nM,rM);function ns(e,t){return t==="grey"?t:e}const oM=Dt({prop:"color",themeKey:"palette",transform:ns}),iM=Dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ns}),sM=Dt({prop:"backgroundColor",themeKey:"palette",transform:ns});bc(oM,iM,sM);function Wn(e){return e<=1&&e!==0?`${e*100}%`:e}const aM=Dt({prop:"width",transform:Wn}),Cp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||xp[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Wn(n)}};return so(e,e.maxWidth,t)}return null};Cp.filterProps=["maxWidth"];const lM=Dt({prop:"minWidth",transform:Wn}),cM=Dt({prop:"height",transform:Wn}),uM=Dt({prop:"maxHeight",transform:Wn}),dM=Dt({prop:"minHeight",transform:Wn});Dt({prop:"size",cssProperty:"width",transform:Wn}),Dt({prop:"size",cssProperty:"height",transform:Wn});const fM=Dt({prop:"boxSizing"});bc(aM,Cp,lM,cM,uM,dM,fM);const Ia={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xc},color:{themeKey:"palette",transform:ns},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ns},backgroundColor:{themeKey:"palette",transform:ns},p:{style:Ft},pt:{style:Ft},pr:{style:Ft},pb:{style:Ft},pl:{style:Ft},px:{style:Ft},py:{style:Ft},padding:{style:Ft},paddingTop:{style:Ft},paddingRight:{style:Ft},paddingBottom:{style:Ft},paddingLeft:{style:Ft},paddingX:{style:Ft},paddingY:{style:Ft},paddingInline:{style:Ft},paddingInlineStart:{style:Ft},paddingInlineEnd:{style:Ft},paddingBlock:{style:Ft},paddingBlockStart:{style:Ft},paddingBlockEnd:{style:Ft},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Cc},rowGap:{style:Sc},columnGap:{style:wc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:Cp},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pM(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function hM(e,t){return typeof e=="function"?e(t):e}function cx(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const v=gc(o,d)||{};return g?g(a):so(a,r,b=>{let x=mc(v,p,b);return b===x&&typeof b=="string"&&(x=mc(v,p,`${n}${b==="default"?"":Ne(b)}`,b)),u===!1?x:{[u]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Ia;function c(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const p=Tk(i.breakpoints),g=Object.keys(p);let v=p;return Object.keys(d).forEach(y=>{const b=hM(d[y],i);if(b!=null)if(typeof b=="object")if(a[y])v=Ea(v,e(y,b,i,a));else{const x=so({theme:i},b,w=>({[y]:w}));pM(x,b)?v[y]=t({sx:b,theme:i}):v=Ea(v,x)}else v=Ea(v,e(y,b,i,a))}),Ak(g,v)}return Array.isArray(o)?o.map(c):c(o)}return t}const Oa=cx();Oa.filterProps=["sx"];function ux(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const gM=["breakpoints","palette","spacing","shape"];function Ec(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Re(e,gM),c=ox(n),u=Dk(o);let d=Lr({breakpoints:c,direction:"ltr",components:{},palette:H({mode:"light"},r),spacing:u,shape:H({},Ek,i)},a);return d.applyStyles=ux,d=t.reduce((p,g)=>Lr(p,g),d),d.unstable_sxConfig=H({},Ia,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Oa({sx:g,theme:this})},d}const mM=Object.freeze(Object.defineProperty({__proto__:null,default:Ec,private_createBreakpoints:ox,unstable_applyStyles:ux},Symbol.toStringTag,{value:"Module"}));var vM=!1;function yM(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 bM(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 xM=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!vM:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bM(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=yM(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),un="-ms-",Tc="-moz-",nt="-webkit-",dx="comm",wp="rule",Sp="decl",CM="@import",fx="@keyframes",wM="@layer",SM=Math.abs,Ac=String.fromCharCode,EM=Object.assign;function TM(e,t){return rn(e,0)^45?(((t<<2^rn(e,0))<<2^rn(e,1))<<2^rn(e,2))<<2^rn(e,3):0}function px(e){return e.trim()}function AM(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,n){return e.replace(t,n)}function Ep(e,t){return e.indexOf(t)}function rn(e,t){return e.charCodeAt(t)|0}function Pa(e,t,n){return e.slice(t,n)}function Br(e){return e.length}function Tp(e){return e.length}function Ic(e,t){return t.push(e),e}function IM(e,t){return e.map(t).join("")}var Oc=1,rs=1,hx=0,In=0,Ht=0,os="";function Pc(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Oc,column:rs,length:a,return:""}}function ja(e,t){return EM(Pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function OM(){return Ht}function PM(){return Ht=In>0?rn(os,--In):0,rs--,Ht===10&&(rs=1,Oc--),Ht}function zn(){return Ht=In<hx?rn(os,In++):0,rs++,Ht===10&&(rs=1,Oc++),Ht}function Nr(){return rn(os,In)}function jc(){return In}function ka(e,t){return Pa(os,e,t)}function Ma(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 gx(e){return Oc=rs=1,hx=Br(os=e),In=0,[]}function mx(e){return os="",e}function kc(e){return px(ka(In-1,Ap(e===91?e+2:e===40?e+1:e)))}function jM(e){for(;(Ht=Nr())&&Ht<33;)zn();return Ma(e)>2||Ma(Ht)>3?"":" "}function kM(e,t){for(;--t&&zn()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return ka(e,jc()+(t<6&&Nr()==32&&zn()==32))}function Ap(e){for(;zn();)switch(Ht){case e:return In;case 34:case 39:e!==34&&e!==39&&Ap(Ht);break;case 40:e===41&&Ap(e);break;case 92:zn();break}return In}function MM(e,t){for(;zn()&&e+Ht!==57;)if(e+Ht===84&&Nr()===47)break;return"/*"+ka(t,In-1)+"*"+Ac(e===47?e:zn())}function FM(e){for(;!Ma(Nr());)zn();return ka(e,In)}function _M(e){return mx(Mc("",null,null,null,[""],e=gx(e),0,[0],e))}function Mc(e,t,n,r,o,i,a,c,u){for(var d=0,p=0,g=a,v=0,y=0,b=0,x=1,w=1,A=1,j=0,T="",P=o,O=i,_=r,R=T;w;)switch(b=j,j=zn()){case 40:if(b!=108&&rn(R,g-1)==58){Ep(R+=rt(kc(j),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:R+=kc(j);break;case 9:case 10:case 13:case 32:R+=jM(b);break;case 92:R+=kM(jc()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Ic(RM(MM(zn(),jc()),t,n),u);break;default:R+="/"}break;case 123*x:c[d++]=Br(R)*A;case 125*x:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:A==-1&&(R=rt(R,/\f/g,"")),y>0&&Br(R)-g&&Ic(y>32?yx(R+";",r,n,g-1):yx(rt(R," ","")+";",r,n,g-2),u);break;case 59:R+=";";default:if(Ic(_=vx(R,t,n,d,p,o,c,T,P=[],O=[],g),i),j===123)if(p===0)Mc(R,t,_,_,P,i,g,c,O);else switch(v===99&&rn(R,3)===110?100:v){case 100:case 108:case 109:case 115:Mc(e,_,_,r&&Ic(vx(e,_,_,0,0,o,c,T,o,P=[],g),O),o,O,g,c,r?P:O);break;default:Mc(R,_,_,_,[""],O,0,c,O)}}d=p=y=0,x=A=1,T=R="",g=a;break;case 58:g=1+Br(R),y=b;default:if(x<1){if(j==123)--x;else if(j==125&&x++==0&&PM()==125)continue}switch(R+=Ac(j),j*x){case 38:A=p>0?1:(R+="\f",-1);break;case 44:c[d++]=(Br(R)-1)*A,A=1;break;case 64:Nr()===45&&(R+=kc(zn())),v=Nr(),p=g=Br(T=R+=FM(jc())),j++;break;case 45:b===45&&Br(R)==2&&(x=0)}}return i}function vx(e,t,n,r,o,i,a,c,u,d,p){for(var g=o-1,v=o===0?i:[""],y=Tp(v),b=0,x=0,w=0;b<r;++b)for(var A=0,j=Pa(e,g+1,g=SM(x=a[b])),T=e;A<y;++A)(T=px(x>0?v[A]+" "+j:rt(j,/&\f/g,v[A])))&&(u[w++]=T);return Pc(e,t,n,o===0?wp:c,u,d,p)}function RM(e,t,n){return Pc(e,t,n,dx,Ac(OM()),Pa(e,2,-2),0)}function yx(e,t,n,r){return Pc(e,t,n,Sp,Pa(e,0,r),Pa(e,r+1,-1),r)}function is(e,t){for(var n="",r=Tp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function DM(e,t,n,r){switch(e.type){case wM:if(e.children.length)break;case CM:case Sp:return e.return=e.return||e.value;case dx:return"";case fx:return e.return=e.value+"{"+is(e.children,r)+"}";case wp:e.value=e.props.join(",")}return Br(n=is(e.children,r))?e.return=e.value+"{"+n+"}":""}function LM(e){var t=Tp(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function BM(e){return function(t){t.root||(t=t.return)&&e(t)}}var NM=function(t,n,r){for(var o=0,i=0;o=i,i=Nr(),o===38&&i===12&&(n[r]=1),!Ma(i);)zn();return ka(t,In)},VM=function(t,n){var r=-1,o=44;do switch(Ma(o)){case 0:o===38&&Nr()===12&&(n[r]=1),t[r]+=NM(In-1,n,r);break;case 2:t[r]+=kc(o);break;case 4:if(o===44){t[++r]=Nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ac(o)}while(o=zn());return t},WM=function(t,n){return mx(VM(gx(t),n))},bx=new WeakMap,zM=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!bx.get(r))&&!o){bx.set(t,!0);for(var i=[],a=WM(n,i),c=r.props,u=0,d=0;u<a.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,c[p]):c[p]+" "+a[u]}}},UM=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function xx(e,t){switch(TM(e,t)){case 5103:return nt+"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 nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nt+e+Tc+e+un+e+e;case 6828:case 4268:return nt+e+un+e+e;case 6165:return nt+e+un+"flex-"+e+e;case 5187:return nt+e+rt(e,/(\w+).+(:[^]+)/,nt+"box-$1$2"+un+"flex-$1$2")+e;case 5443:return nt+e+un+"flex-item-"+rt(e,/flex-|-self/,"")+e;case 4675:return nt+e+un+"flex-line-pack"+rt(e,/align-content|flex-|-self/,"")+e;case 5548:return nt+e+un+rt(e,"shrink","negative")+e;case 5292:return nt+e+un+rt(e,"basis","preferred-size")+e;case 6060:return nt+"box-"+rt(e,"-grow","")+nt+e+un+rt(e,"grow","positive")+e;case 4554:return nt+rt(e,/([^-])(transform)/g,"$1"+nt+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,nt+"$1"),/(image-set)/,nt+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,nt+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,nt+"box-pack:$3"+un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nt+e+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,nt+"$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(Br(e)-1-t>6)switch(rn(e,t+1)){case 109:if(rn(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+Tc+(rn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ep(e,"stretch")?xx(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rn(e,t+1)!==115)break;case 6444:switch(rn(e,Br(e)-3-(~Ep(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(rn(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+un+"$2box$3")+e}break;case 5936:switch(rn(e,t+11)){case 114:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+un+e+e}return e}var HM=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Sp:t.return=xx(t.value,t.length);break;case fx:return is([ja(t,{value:rt(t.value,"@","@"+nt)})],o);case wp:if(t.length)return IM(t.props,function(i){switch(AM(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return is([ja(t,{props:[rt(i,/:(read-\w+)/,":"+Tc+"$1")]})],o);case"::placeholder":return is([ja(t,{props:[rt(i,/:(plac\w+)/,":"+nt+"input-$1")]}),ja(t,{props:[rt(i,/:(plac\w+)/,":"+Tc+"$1")]}),ja(t,{props:[rt(i,/:(plac\w+)/,un+"input-$1")]})],o)}return""})}},GM=[HM],YM=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||GM,i={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),A=1;A<w.length;A++)i[w[A]]=!0;c.push(x)});var u,d=[zM,UM];{var p,g=[DM,BM(function(x){p.insert(x)})],v=LM(d.concat(o,g)),y=function(w){return is(_M(w),v)};u=function(w,A,j,T){p=j,y(w?w+"{"+A.styles+"}":A.styles),T&&(b.inserted[A.name]=!0)}}var b={key:n,sheet:new xM({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return b.sheet.hydrate(c),b};let Ip;typeof document=="object"&&(Ip=YM({key:"css",prepend:!0}));function Cx(e){const{injectFirst:t,children:n}=e;return t&&Ip?f.jsx(Wt.CacheProvider,{value:Ip,children:n}):n}process.env.NODE_ENV!=="production"&&(Cx.propTypes={children:m.node,injectFirst:m.bool});function KM(e){return e==null||Object.keys(e).length===0}function wx(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(KM(o)?n:o):t;return f.jsx(Wt.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(wx.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
23
+ `)),()=>{})}function ax(e){return Ta(e,"spacing",8,"spacing")}function Aa(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function _k(e,t){return n=>e.reduce((r,o)=>(r[o]=Aa(t,n),r),{})}function Rk(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Mk(n),i=_k(o,r),a=e[n];return so(e,a,i)}function lx(e,t){const n=ax(e.theme);return Object.keys(e).map(r=>Rk(e,t,r,n)).reduce(Ea,{})}function Mt(e){return lx(e,yc)}Mt.propTypes=process.env.NODE_ENV!=="production"?yc.reduce((e,t)=>(e[t]=Ro,e),{}):{},Mt.filterProps=yc;function Ft(e){return lx(e,bc)}Ft.propTypes=process.env.NODE_ENV!=="production"?bc.reduce((e,t)=>(e[t]=Ro,e),{}):{},Ft.filterProps=bc,process.env.NODE_ENV!=="production"&&Fk.reduce((e,t)=>(e[t]=Ro,e),{});function Dk(e=8){if(e.mui)return e;const t=ax({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function xc(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ea(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function or(e){return typeof e!="number"?e:`${e}px solid`}function ir(e,t){return Dt({prop:e,themeKey:"borders",transform:t})}const Lk=ir("border",or),Bk=ir("borderTop",or),Nk=ir("borderRight",or),Vk=ir("borderBottom",or),Wk=ir("borderLeft",or),zk=ir("borderColor"),Uk=ir("borderTopColor"),Hk=ir("borderRightColor"),Gk=ir("borderBottomColor"),Yk=ir("borderLeftColor"),Kk=ir("outline",or),Xk=ir("outlineColor"),Cc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ta(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Aa(t,r)});return so(e,e.borderRadius,n)}return null};Cc.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ro}:{},Cc.filterProps=["borderRadius"],xc(Lk,Bk,Nk,Vk,Wk,zk,Uk,Hk,Gk,Yk,Cc,Kk,Xk);const wc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ta(e.theme,"spacing",8,"gap"),n=r=>({gap:Aa(t,r)});return so(e,e.gap,n)}return null};wc.propTypes=process.env.NODE_ENV!=="production"?{gap:Ro}:{},wc.filterProps=["gap"];const Sc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ta(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Aa(t,r)});return so(e,e.columnGap,n)}return null};Sc.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ro}:{},Sc.filterProps=["columnGap"];const Ec=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ta(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Aa(t,r)});return so(e,e.rowGap,n)}return null};Ec.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ro}:{},Ec.filterProps=["rowGap"];const Zk=Dt({prop:"gridColumn"}),Qk=Dt({prop:"gridRow"}),Jk=Dt({prop:"gridAutoFlow"}),qk=Dt({prop:"gridAutoColumns"}),$k=Dt({prop:"gridAutoRows"}),eM=Dt({prop:"gridTemplateColumns"}),tM=Dt({prop:"gridTemplateRows"}),nM=Dt({prop:"gridTemplateAreas"}),rM=Dt({prop:"gridArea"});xc(wc,Sc,Ec,Zk,Qk,Jk,qk,$k,eM,tM,nM,rM);function ns(e,t){return t==="grey"?t:e}const oM=Dt({prop:"color",themeKey:"palette",transform:ns}),iM=Dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ns}),sM=Dt({prop:"backgroundColor",themeKey:"palette",transform:ns});xc(oM,iM,sM);function Wn(e){return e<=1&&e!==0?`${e*100}%`:e}const aM=Dt({prop:"width",transform:Wn}),Cp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||xp[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Wn(n)}};return so(e,e.maxWidth,t)}return null};Cp.filterProps=["maxWidth"];const lM=Dt({prop:"minWidth",transform:Wn}),cM=Dt({prop:"height",transform:Wn}),uM=Dt({prop:"maxHeight",transform:Wn}),dM=Dt({prop:"minHeight",transform:Wn});Dt({prop:"size",cssProperty:"width",transform:Wn}),Dt({prop:"size",cssProperty:"height",transform:Wn});const fM=Dt({prop:"boxSizing"});xc(aM,Cp,lM,cM,uM,dM,fM);const Ia={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cc},color:{themeKey:"palette",transform:ns},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ns},backgroundColor:{themeKey:"palette",transform:ns},p:{style:Ft},pt:{style:Ft},pr:{style:Ft},pb:{style:Ft},pl:{style:Ft},px:{style:Ft},py:{style:Ft},padding:{style:Ft},paddingTop:{style:Ft},paddingRight:{style:Ft},paddingBottom:{style:Ft},paddingLeft:{style:Ft},paddingX:{style:Ft},paddingY:{style:Ft},paddingInline:{style:Ft},paddingInlineStart:{style:Ft},paddingInlineEnd:{style:Ft},paddingBlock:{style:Ft},paddingBlockStart:{style:Ft},paddingBlockEnd:{style:Ft},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:wc},rowGap:{style:Ec},columnGap:{style:Sc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:Cp},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pM(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function hM(e,t){return typeof e=="function"?e(t):e}function cx(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const v=mc(o,d)||{};return g?g(a):so(a,r,b=>{let x=vc(v,p,b);return b===x&&typeof b=="string"&&(x=vc(v,p,`${n}${b==="default"?"":Ne(b)}`,b)),u===!1?x:{[u]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Ia;function c(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const p=Tk(i.breakpoints),g=Object.keys(p);let v=p;return Object.keys(d).forEach(y=>{const b=hM(d[y],i);if(b!=null)if(typeof b=="object")if(a[y])v=Ea(v,e(y,b,i,a));else{const x=so({theme:i},b,w=>({[y]:w}));pM(x,b)?v[y]=t({sx:b,theme:i}):v=Ea(v,x)}else v=Ea(v,e(y,b,i,a))}),Ak(g,v)}return Array.isArray(o)?o.map(c):c(o)}return t}const Oa=cx();Oa.filterProps=["sx"];function ux(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const gM=["breakpoints","palette","spacing","shape"];function Tc(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Re(e,gM),c=ox(n),u=Dk(o);let d=Lr({breakpoints:c,direction:"ltr",components:{},palette:H({mode:"light"},r),spacing:u,shape:H({},Ek,i)},a);return d.applyStyles=ux,d=t.reduce((p,g)=>Lr(p,g),d),d.unstable_sxConfig=H({},Ia,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Oa({sx:g,theme:this})},d}const mM=Object.freeze(Object.defineProperty({__proto__:null,default:Tc,private_createBreakpoints:ox,unstable_applyStyles:ux},Symbol.toStringTag,{value:"Module"}));var vM=!1;function yM(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 bM(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 xM=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!vM:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bM(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=yM(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),un="-ms-",Ac="-moz-",nt="-webkit-",dx="comm",wp="rule",Sp="decl",CM="@import",fx="@keyframes",wM="@layer",SM=Math.abs,Ic=String.fromCharCode,EM=Object.assign;function TM(e,t){return rn(e,0)^45?(((t<<2^rn(e,0))<<2^rn(e,1))<<2^rn(e,2))<<2^rn(e,3):0}function px(e){return e.trim()}function AM(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,n){return e.replace(t,n)}function Ep(e,t){return e.indexOf(t)}function rn(e,t){return e.charCodeAt(t)|0}function Pa(e,t,n){return e.slice(t,n)}function Br(e){return e.length}function Tp(e){return e.length}function Oc(e,t){return t.push(e),e}function IM(e,t){return e.map(t).join("")}var Pc=1,rs=1,hx=0,In=0,Ht=0,os="";function jc(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pc,column:rs,length:a,return:""}}function ja(e,t){return EM(jc("",null,null,"",null,null,0),e,{length:-e.length},t)}function OM(){return Ht}function PM(){return Ht=In>0?rn(os,--In):0,rs--,Ht===10&&(rs=1,Pc--),Ht}function zn(){return Ht=In<hx?rn(os,In++):0,rs++,Ht===10&&(rs=1,Pc++),Ht}function Nr(){return rn(os,In)}function kc(){return In}function ka(e,t){return Pa(os,e,t)}function Ma(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 gx(e){return Pc=rs=1,hx=Br(os=e),In=0,[]}function mx(e){return os="",e}function Mc(e){return px(ka(In-1,Ap(e===91?e+2:e===40?e+1:e)))}function jM(e){for(;(Ht=Nr())&&Ht<33;)zn();return Ma(e)>2||Ma(Ht)>3?"":" "}function kM(e,t){for(;--t&&zn()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return ka(e,kc()+(t<6&&Nr()==32&&zn()==32))}function Ap(e){for(;zn();)switch(Ht){case e:return In;case 34:case 39:e!==34&&e!==39&&Ap(Ht);break;case 40:e===41&&Ap(e);break;case 92:zn();break}return In}function MM(e,t){for(;zn()&&e+Ht!==57;)if(e+Ht===84&&Nr()===47)break;return"/*"+ka(t,In-1)+"*"+Ic(e===47?e:zn())}function FM(e){for(;!Ma(Nr());)zn();return ka(e,In)}function _M(e){return mx(Fc("",null,null,null,[""],e=gx(e),0,[0],e))}function Fc(e,t,n,r,o,i,a,c,u){for(var d=0,p=0,g=a,v=0,y=0,b=0,x=1,w=1,A=1,j=0,T="",P=o,O=i,_=r,R=T;w;)switch(b=j,j=zn()){case 40:if(b!=108&&rn(R,g-1)==58){Ep(R+=rt(Mc(j),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:R+=Mc(j);break;case 9:case 10:case 13:case 32:R+=jM(b);break;case 92:R+=kM(kc()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Oc(RM(MM(zn(),kc()),t,n),u);break;default:R+="/"}break;case 123*x:c[d++]=Br(R)*A;case 125*x:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:A==-1&&(R=rt(R,/\f/g,"")),y>0&&Br(R)-g&&Oc(y>32?yx(R+";",r,n,g-1):yx(rt(R," ","")+";",r,n,g-2),u);break;case 59:R+=";";default:if(Oc(_=vx(R,t,n,d,p,o,c,T,P=[],O=[],g),i),j===123)if(p===0)Fc(R,t,_,_,P,i,g,c,O);else switch(v===99&&rn(R,3)===110?100:v){case 100:case 108:case 109:case 115:Fc(e,_,_,r&&Oc(vx(e,_,_,0,0,o,c,T,o,P=[],g),O),o,O,g,c,r?P:O);break;default:Fc(R,_,_,_,[""],O,0,c,O)}}d=p=y=0,x=A=1,T=R="",g=a;break;case 58:g=1+Br(R),y=b;default:if(x<1){if(j==123)--x;else if(j==125&&x++==0&&PM()==125)continue}switch(R+=Ic(j),j*x){case 38:A=p>0?1:(R+="\f",-1);break;case 44:c[d++]=(Br(R)-1)*A,A=1;break;case 64:Nr()===45&&(R+=Mc(zn())),v=Nr(),p=g=Br(T=R+=FM(kc())),j++;break;case 45:b===45&&Br(R)==2&&(x=0)}}return i}function vx(e,t,n,r,o,i,a,c,u,d,p){for(var g=o-1,v=o===0?i:[""],y=Tp(v),b=0,x=0,w=0;b<r;++b)for(var A=0,j=Pa(e,g+1,g=SM(x=a[b])),T=e;A<y;++A)(T=px(x>0?v[A]+" "+j:rt(j,/&\f/g,v[A])))&&(u[w++]=T);return jc(e,t,n,o===0?wp:c,u,d,p)}function RM(e,t,n){return jc(e,t,n,dx,Ic(OM()),Pa(e,2,-2),0)}function yx(e,t,n,r){return jc(e,t,n,Sp,Pa(e,0,r),Pa(e,r+1,-1),r)}function is(e,t){for(var n="",r=Tp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function DM(e,t,n,r){switch(e.type){case wM:if(e.children.length)break;case CM:case Sp:return e.return=e.return||e.value;case dx:return"";case fx:return e.return=e.value+"{"+is(e.children,r)+"}";case wp:e.value=e.props.join(",")}return Br(n=is(e.children,r))?e.return=e.value+"{"+n+"}":""}function LM(e){var t=Tp(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function BM(e){return function(t){t.root||(t=t.return)&&e(t)}}var NM=function(t,n,r){for(var o=0,i=0;o=i,i=Nr(),o===38&&i===12&&(n[r]=1),!Ma(i);)zn();return ka(t,In)},VM=function(t,n){var r=-1,o=44;do switch(Ma(o)){case 0:o===38&&Nr()===12&&(n[r]=1),t[r]+=NM(In-1,n,r);break;case 2:t[r]+=Mc(o);break;case 4:if(o===44){t[++r]=Nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ic(o)}while(o=zn());return t},WM=function(t,n){return mx(VM(gx(t),n))},bx=new WeakMap,zM=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!bx.get(r))&&!o){bx.set(t,!0);for(var i=[],a=WM(n,i),c=r.props,u=0,d=0;u<a.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,c[p]):c[p]+" "+a[u]}}},UM=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function xx(e,t){switch(TM(e,t)){case 5103:return nt+"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 nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nt+e+Ac+e+un+e+e;case 6828:case 4268:return nt+e+un+e+e;case 6165:return nt+e+un+"flex-"+e+e;case 5187:return nt+e+rt(e,/(\w+).+(:[^]+)/,nt+"box-$1$2"+un+"flex-$1$2")+e;case 5443:return nt+e+un+"flex-item-"+rt(e,/flex-|-self/,"")+e;case 4675:return nt+e+un+"flex-line-pack"+rt(e,/align-content|flex-|-self/,"")+e;case 5548:return nt+e+un+rt(e,"shrink","negative")+e;case 5292:return nt+e+un+rt(e,"basis","preferred-size")+e;case 6060:return nt+"box-"+rt(e,"-grow","")+nt+e+un+rt(e,"grow","positive")+e;case 4554:return nt+rt(e,/([^-])(transform)/g,"$1"+nt+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,nt+"$1"),/(image-set)/,nt+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,nt+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,nt+"box-pack:$3"+un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nt+e+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,nt+"$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(Br(e)-1-t>6)switch(rn(e,t+1)){case 109:if(rn(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+Ac+(rn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ep(e,"stretch")?xx(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rn(e,t+1)!==115)break;case 6444:switch(rn(e,Br(e)-3-(~Ep(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(rn(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+un+"$2box$3")+e}break;case 5936:switch(rn(e,t+11)){case 114:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+un+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+un+e+e}return e}var HM=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Sp:t.return=xx(t.value,t.length);break;case fx:return is([ja(t,{value:rt(t.value,"@","@"+nt)})],o);case wp:if(t.length)return IM(t.props,function(i){switch(AM(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return is([ja(t,{props:[rt(i,/:(read-\w+)/,":"+Ac+"$1")]})],o);case"::placeholder":return is([ja(t,{props:[rt(i,/:(plac\w+)/,":"+nt+"input-$1")]}),ja(t,{props:[rt(i,/:(plac\w+)/,":"+Ac+"$1")]}),ja(t,{props:[rt(i,/:(plac\w+)/,un+"input-$1")]})],o)}return""})}},GM=[HM],YM=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||GM,i={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),A=1;A<w.length;A++)i[w[A]]=!0;c.push(x)});var u,d=[zM,UM];{var p,g=[DM,BM(function(x){p.insert(x)})],v=LM(d.concat(o,g)),y=function(w){return is(_M(w),v)};u=function(w,A,j,T){p=j,y(w?w+"{"+A.styles+"}":A.styles),T&&(b.inserted[A.name]=!0)}}var b={key:n,sheet:new xM({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return b.sheet.hydrate(c),b};let Ip;typeof document=="object"&&(Ip=YM({key:"css",prepend:!0}));function Cx(e){const{injectFirst:t,children:n}=e;return t&&Ip?f.jsx(Wt.CacheProvider,{value:Ip,children:n}):n}process.env.NODE_ENV!=="production"&&(Cx.propTypes={children:m.node,injectFirst:m.bool});function KM(e){return e==null||Object.keys(e).length===0}function wx(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(KM(o)?n:o):t;return f.jsx(Wt.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(wx.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
24
24
  * @mui/styled-engine v5.16.8
25
25
  *
26
26
  * @license MIT
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
29
  */function Sx(e,t){const n=Zt(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
30
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Ex=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},XM=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wx,StyledEngineProvider:Cx,ThemeContext:Wt.ThemeContext,css:Wt.css,default:Sx,internal_processStyles:Ex,keyframes:Wt.keyframes},Symbol.toStringTag,{value:"Module"}));function ZM(e){return Object.keys(e).length===0}function Tx(e=null){const t=D.useContext(Wt.ThemeContext);return!t||ZM(t)?e:t}const QM=Ec();function Op(e=QM){return Tx(e)}function JM({props:e,name:t,defaultTheme:n,themeId:r}){let o=Op(n);return r&&(o=o[r]||o),xk({theme:o,name:t,props:e})}const qM=["sx"],$M=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ia;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Ax(e){const{sx:t}=e,n=Re(e,qM),{systemProps:r,otherProps:o}=$M(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return io(c)?H({},r,c):r}:i=H({},r,t),H({},o,{sx:i})}const e6=Object.freeze(Object.defineProperty({__proto__:null,default:Oa,extendSxProp:Ax,unstable_createStyleFunctionSx:cx,unstable_defaultSxConfig:Ia},Symbol.toStringTag,{value:"Module"})),Ix=e=>e,Ox=(()=>{let e=Ix;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ix}}})(),Px={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 Lt(e,t,n="Mui"){const r=Px[t];return r?`${n}-${r}`:`${Ox.generate(e)}-${t}`}function t6(e,t){return H({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Bt={},jx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(jx);var sr=jx.exports;const n6=oo(Ik);function kx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const r6=oo(Object.freeze(Object.defineProperty({__proto__:null,default:kx},Symbol.toStringTag,{value:"Module"})));var Mx=sr;Object.defineProperty(Bt,"__esModule",{value:!0});var Vr=Bt.alpha=Nx;Bt.blend=g6,Bt.colorChannel=void 0;var o6=Bt.darken=jp;Bt.decomposeColor=ar;var Fx=Bt.emphasize=Vx,_x=Bt.getContrastRatio=u6;Bt.getLuminance=Fc,Bt.hexToRgb=Dx,Bt.hslToRgb=Bx;var i6=Bt.lighten=kp;Bt.private_safeAlpha=d6,Bt.private_safeColorChannel=void 0,Bt.private_safeDarken=f6,Bt.private_safeEmphasize=h6,Bt.private_safeLighten=p6,Bt.recomposeColor=ss,Bt.rgbToHex=c6;var Rx=Mx(n6),s6=Mx(r6);function Pp(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,s6.default)(e,t,n)}function Dx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function a6(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ar(e){if(e.type)return e;if(e.charAt(0)==="#")return ar(Dx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
30
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Ex=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},XM=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wx,StyledEngineProvider:Cx,ThemeContext:Wt.ThemeContext,css:Wt.css,default:Sx,internal_processStyles:Ex,keyframes:Wt.keyframes},Symbol.toStringTag,{value:"Module"}));function ZM(e){return Object.keys(e).length===0}function Tx(e=null){const t=D.useContext(Wt.ThemeContext);return!t||ZM(t)?e:t}const QM=Tc();function Op(e=QM){return Tx(e)}function JM({props:e,name:t,defaultTheme:n,themeId:r}){let o=Op(n);return r&&(o=o[r]||o),xk({theme:o,name:t,props:e})}const qM=["sx"],$M=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ia;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Ax(e){const{sx:t}=e,n=Re(e,qM),{systemProps:r,otherProps:o}=$M(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return io(c)?H({},r,c):r}:i=H({},r,t),H({},o,{sx:i})}const e6=Object.freeze(Object.defineProperty({__proto__:null,default:Oa,extendSxProp:Ax,unstable_createStyleFunctionSx:cx,unstable_defaultSxConfig:Ia},Symbol.toStringTag,{value:"Module"})),Ix=e=>e,Ox=(()=>{let e=Ix;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ix}}})(),Px={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 Lt(e,t,n="Mui"){const r=Px[t];return r?`${n}-${r}`:`${Ox.generate(e)}-${t}`}function t6(e,t){return H({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Bt={},jx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(jx);var sr=jx.exports;const n6=oo(Ik);function kx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const r6=oo(Object.freeze(Object.defineProperty({__proto__:null,default:kx},Symbol.toStringTag,{value:"Module"})));var Mx=sr;Object.defineProperty(Bt,"__esModule",{value:!0});var Vr=Bt.alpha=Nx;Bt.blend=g6,Bt.colorChannel=void 0;var o6=Bt.darken=jp;Bt.decomposeColor=ar;var Fx=Bt.emphasize=Vx,_x=Bt.getContrastRatio=u6;Bt.getLuminance=_c,Bt.hexToRgb=Dx,Bt.hslToRgb=Bx;var i6=Bt.lighten=kp;Bt.private_safeAlpha=d6,Bt.private_safeColorChannel=void 0,Bt.private_safeDarken=f6,Bt.private_safeEmphasize=h6,Bt.private_safeLighten=p6,Bt.recomposeColor=ss,Bt.rgbToHex=c6;var Rx=Mx(n6),s6=Mx(r6);function Pp(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,s6.default)(e,t,n)}function Dx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function a6(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ar(e){if(e.type)return e;if(e.charAt(0)==="#")return ar(Dx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
31
31
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Rx.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
32
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Rx.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Lx=e=>{const t=ar(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Bt.colorChannel=Lx;const l6=(e,t)=>{try{return Lx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Bt.private_safeColorChannel=l6;function ss(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function c6(e){if(e.indexOf("#")===0)return e;const{values:t}=ar(e);return`#${t.map((n,r)=>a6(r===3?Math.round(255*n):n)).join("")}`}function Bx(e){e=ar(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),ss({type:c,values:u})}function Fc(e){e=ar(e);let t=e.type==="hsl"||e.type==="hsla"?ar(Bx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u6(e,t){const n=Fc(e),r=Fc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nx(e,t){return e=ar(e),t=Pp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ss(e)}function d6(e,t,n){try{return Nx(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function jp(e,t){if(e=ar(e),t=Pp(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 n=0;n<3;n+=1)e.values[n]*=1-t;return ss(e)}function f6(e,t,n){try{return jp(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function kp(e,t){if(e=ar(e),t=Pp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ss(e)}function p6(e,t,n){try{return kp(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Vx(e,t=.15){return Fc(e)>.5?jp(e,t):kp(e,t)}function h6(e,t,n){try{return Vx(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function g6(e,t,n,r=1){const o=(u,d)=>Math.round((u**(1/r)*(1-n)+d**(1/r)*n)**r),i=ar(e),a=ar(t),c=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ss({type:"rgb",values:c})}const Fa={black:"#000",white:"#fff"},m6={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"},as={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"},ls={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"},_a={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"},cs={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"},us={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"},ds={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"},v6=["mode","contrastThreshold","tonalOffset"],Wx={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:Fa.white,default:Fa.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}},Mp={text:{primary:Fa.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:Fa.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 zx(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i6(e.main,o):t==="dark"&&(e.dark=o6(e.main,i)))}function y6(e="light"){return e==="dark"?{main:cs[200],light:cs[50],dark:cs[400]}:{main:cs[700],light:cs[400],dark:cs[800]}}function b6(e="light"){return e==="dark"?{main:as[200],light:as[50],dark:as[400]}:{main:as[500],light:as[300],dark:as[700]}}function x6(e="light"){return e==="dark"?{main:ls[500],light:ls[300],dark:ls[700]}:{main:ls[700],light:ls[400],dark:ls[800]}}function C6(e="light"){return e==="dark"?{main:us[400],light:us[300],dark:us[700]}:{main:us[700],light:us[500],dark:us[900]}}function w6(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:ds[800],light:ds[500],dark:ds[900]}}function S6(e="light"){return e==="dark"?{main:_a[400],light:_a[300],dark:_a[700]}:{main:"#ed6c02",light:_a[500],dark:_a[900]}}function E6(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Re(e,v6),i=e.primary||y6(t),a=e.secondary||b6(t),c=e.error||x6(t),u=e.info||C6(t),d=e.success||w6(t),p=e.warning||S6(t);function g(x){const w=_x(x,Mp.text.primary)>=n?Mp.text.primary:Wx.text.primary;if(process.env.NODE_ENV!=="production"){const A=_x(x,w);A<3&&console.error([`MUI: The contrast ratio of ${A}:1 for ${w} on ${x}`,"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(`
32
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Rx.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Lx=e=>{const t=ar(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Bt.colorChannel=Lx;const l6=(e,t)=>{try{return Lx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Bt.private_safeColorChannel=l6;function ss(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function c6(e){if(e.indexOf("#")===0)return e;const{values:t}=ar(e);return`#${t.map((n,r)=>a6(r===3?Math.round(255*n):n)).join("")}`}function Bx(e){e=ar(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),ss({type:c,values:u})}function _c(e){e=ar(e);let t=e.type==="hsl"||e.type==="hsla"?ar(Bx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u6(e,t){const n=_c(e),r=_c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nx(e,t){return e=ar(e),t=Pp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ss(e)}function d6(e,t,n){try{return Nx(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function jp(e,t){if(e=ar(e),t=Pp(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 n=0;n<3;n+=1)e.values[n]*=1-t;return ss(e)}function f6(e,t,n){try{return jp(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function kp(e,t){if(e=ar(e),t=Pp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ss(e)}function p6(e,t,n){try{return kp(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Vx(e,t=.15){return _c(e)>.5?jp(e,t):kp(e,t)}function h6(e,t,n){try{return Vx(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function g6(e,t,n,r=1){const o=(u,d)=>Math.round((u**(1/r)*(1-n)+d**(1/r)*n)**r),i=ar(e),a=ar(t),c=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ss({type:"rgb",values:c})}const Fa={black:"#000",white:"#fff"},m6={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"},as={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"},ls={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"},_a={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"},cs={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"},us={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"},ds={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"},v6=["mode","contrastThreshold","tonalOffset"],Wx={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:Fa.white,default:Fa.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}},Mp={text:{primary:Fa.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:Fa.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 zx(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i6(e.main,o):t==="dark"&&(e.dark=o6(e.main,i)))}function y6(e="light"){return e==="dark"?{main:cs[200],light:cs[50],dark:cs[400]}:{main:cs[700],light:cs[400],dark:cs[800]}}function b6(e="light"){return e==="dark"?{main:as[200],light:as[50],dark:as[400]}:{main:as[500],light:as[300],dark:as[700]}}function x6(e="light"){return e==="dark"?{main:ls[500],light:ls[300],dark:ls[700]}:{main:ls[700],light:ls[400],dark:ls[800]}}function C6(e="light"){return e==="dark"?{main:us[400],light:us[300],dark:us[700]}:{main:us[700],light:us[500],dark:us[900]}}function w6(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:ds[800],light:ds[500],dark:ds[900]}}function S6(e="light"){return e==="dark"?{main:_a[400],light:_a[300],dark:_a[700]}:{main:"#ed6c02",light:_a[500],dark:_a[900]}}function E6(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Re(e,v6),i=e.primary||y6(t),a=e.secondary||b6(t),c=e.error||x6(t),u=e.info||C6(t),d=e.success||w6(t),p=e.warning||S6(t);function g(x){const w=_x(x,Mp.text.primary)>=n?Mp.text.primary:Wx.text.primary;if(process.env.NODE_ENV!=="production"){const A=_x(x,w);A<3&&console.error([`MUI: The contrast ratio of ${A}:1 for ${w} on ${x}`,"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(`
33
33
  `))}return w}const v=({color:x,name:w,mainShade:A=500,lightShade:j=300,darkShade:T=700})=>{if(x=H({},x),!x.main&&x[A]&&(x.main=x[A]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
34
34
  The color object needs to have a \`main\` property or a \`${A}\` property.`:gi(11,w?` (${w})`:"",A));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
35
35
  \`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
@@ -45,7 +45,7 @@ const theme1 = createTheme({ palette: {
45
45
  const theme2 = createTheme({ palette: {
46
46
  primary: { main: green[500] },
47
47
  } });`:gi(12,w?` (${w})`:"",JSON.stringify(x.main)));return zx(x,"light",j,r),zx(x,"dark",T,r),x.contrastText||(x.contrastText=g(x.main)),x},y={dark:Mp,light:Wx};return process.env.NODE_ENV!=="production"&&(y[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Lr(H({common:H({},Fa),mode:t,primary:v({color:i,name:"primary"}),secondary:v({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:u,name:"info"}),success:v({color:d,name:"success"}),grey:m6,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:r},y[t]),o)}const T6=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function A6(e){return Math.round(e*1e5)/1e5}const Ux={textTransform:"uppercase"},Hx='"Roboto", "Helvetica", "Arial", sans-serif';function I6(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Hx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:p,pxToRem:g}=n,v=Re(n,T6);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,b=g||(A=>`${A/d*y}rem`),x=(A,j,T,P,O)=>H({fontFamily:r,fontWeight:A,fontSize:b(j),lineHeight:T},r===Hx?{letterSpacing:`${A6(P/j)}em`}:{},O,p),w={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(c,14,1.75,.4,Ux),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,Ux),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lr(H({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u},w),v,{clone:!1})}const O6=.2,P6=.14,j6=.12;function St(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${O6})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${P6})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${j6})`].join(",")}const k6=["none",St(0,2,1,-1,0,1,1,0,0,1,3,0),St(0,3,1,-2,0,2,2,0,0,1,5,0),St(0,3,3,-2,0,3,4,0,0,1,8,0),St(0,2,4,-1,0,4,5,0,0,1,10,0),St(0,3,5,-1,0,5,8,0,0,1,14,0),St(0,3,5,-1,0,6,10,0,0,1,18,0),St(0,4,5,-2,0,7,10,1,0,2,16,1),St(0,5,5,-3,0,8,10,1,0,3,14,2),St(0,5,6,-3,0,9,12,1,0,3,16,2),St(0,6,6,-3,0,10,14,1,0,4,18,3),St(0,6,7,-4,0,11,15,1,0,4,20,3),St(0,7,8,-4,0,12,17,2,0,5,22,4),St(0,7,8,-4,0,13,19,2,0,5,24,4),St(0,7,9,-4,0,14,21,2,0,5,26,4),St(0,8,9,-5,0,15,22,2,0,6,28,5),St(0,8,10,-5,0,16,24,2,0,6,30,5),St(0,8,11,-5,0,17,26,2,0,6,32,5),St(0,9,11,-5,0,18,28,2,0,7,34,6),St(0,9,12,-6,0,19,29,2,0,7,36,6),St(0,10,13,-6,0,20,31,3,0,8,38,7),St(0,10,13,-6,0,21,33,3,0,8,40,7),St(0,10,14,-6,0,22,35,3,0,8,42,7),St(0,11,14,-7,0,23,36,3,0,9,44,8),St(0,11,15,-7,0,24,38,3,0,9,46,8)],M6=["duration","easing","delay"],F6={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)"},_6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gx(e){return`${Math.round(e)}ms`}function R6(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function D6(e){const t=H({},F6,e.easing),n=H({},_6,e.duration);return H({getAutoHeightDuration:R6,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0}=i,d=Re(i,M6);if(process.env.NODE_ENV!=="production"){const p=v=>typeof v=="string",g=v=>!isNaN(parseFloat(v));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(`
48
- `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:Gx(a)} ${c} ${typeof u=="string"?u:Gx(u)}`).join(",")}},e,{easing:t,duration:n})}const L6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},B6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Re(e,B6);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.":gi(18));const c=E6(r),u=Ec(e);let d=Lr(u,{mixins:t6(u.breakpoints,n),palette:c,shadows:k6.slice(),typography:I6(c,i),transitions:D6(o),zIndex:H({},L6)});if(d=Lr(d,a),d=t.reduce((p,g)=>Lr(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,y)=>{let b;for(b in v){const x=v[b];if(p.indexOf(b)!==-1&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const w=Lt("",b);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
48
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:Gx(a)} ${c} ${typeof u=="string"?u:Gx(u)}`).join(",")}},e,{easing:t,duration:n})}const L6={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},B6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Re(e,B6);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.":gi(18));const c=E6(r),u=Tc(e);let d=Lr(u,{mixins:t6(u.breakpoints,n),palette:c,shadows:k6.slice(),typography:I6(c,i),transitions:D6(o),zIndex:H({},L6)});if(d=Lr(d,a),d=t.reduce((p,g)=>Lr(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,y)=>{let b;for(b in v){const x=v[b];if(p.indexOf(b)!==-1&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const w=Lt("",b);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
49
49
  `))}v[b]={}}}};Object.keys(d.components).forEach(v=>{const y=d.components[v].styleOverrides;y&&v.indexOf("Mui")===0&&g(y,v)})}return d.unstable_sxConfig=H({},Ia,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Oa({sx:g,theme:this})},d}const _p=Fp(),Ra="$$material";function Gt({props:e,name:t}){return JM({props:e,name:t,defaultTheme:_p,themeId:Ra})}var Da={},Rp={exports:{}},Yx;function N6(){return Yx||(Yx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rp)),Rp.exports}var Dp={exports:{}},Kx;function V6(){return Kx||(Kx=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Dp)),Dp.exports}const Xx=oo(XM),W6=oo(Ck),z6=oo(Ok);var Lp={exports:{}},at={};/**
50
50
  * @license React
51
51
  * react-is.production.min.js
@@ -62,14 +62,14 @@ const theme2 = createTheme({ palette: {
62
62
  *
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
- */var Qx;function H6(){return Qx||(Qx=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=!1,x=!1,w=!1,A=!1,j=!1,T;T=Symbol.for("react.module.reference");function P(ve){return!!(typeof ve=="string"||typeof ve=="function"||ve===n||ve===o||j||ve===r||ve===d||ve===p||A||ve===y||b||x||w||typeof ve=="object"&&ve!==null&&(ve.$$typeof===v||ve.$$typeof===g||ve.$$typeof===i||ve.$$typeof===a||ve.$$typeof===u||ve.$$typeof===T||ve.getModuleId!==void 0))}function O(ve){if(typeof ve=="object"&&ve!==null){var $e=ve.$$typeof;switch($e){case e:var gn=ve.type;switch(gn){case n:case o:case r:case d:case p:return gn;default:var It=gn&&gn.$$typeof;switch(It){case c:case a:case u:case v:case g:case i:return It;default:return $e}}case t:return $e}}}var _=a,R=i,N=e,Y=u,X=n,G=v,re=g,ne=t,Z=o,J=r,V=d,$=p,W=!1,ie=!1;function U(ve){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(ve){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(ve){return O(ve)===a}function ge(ve){return O(ve)===i}function fe(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===e}function he(ve){return O(ve)===u}function me(ve){return O(ve)===n}function Se(ve){return O(ve)===v}function be(ve){return O(ve)===g}function ye(ve){return O(ve)===t}function we(ve){return O(ve)===o}function Ie(ve){return O(ve)===r}function pe(ve){return O(ve)===d}function Ke(ve){return O(ve)===p}lt.ContextConsumer=_,lt.ContextProvider=R,lt.Element=N,lt.ForwardRef=Y,lt.Fragment=X,lt.Lazy=G,lt.Memo=re,lt.Portal=ne,lt.Profiler=Z,lt.StrictMode=J,lt.Suspense=V,lt.SuspenseList=$,lt.isAsyncMode=U,lt.isConcurrentMode=ee,lt.isContextConsumer=de,lt.isContextProvider=ge,lt.isElement=fe,lt.isForwardRef=he,lt.isFragment=me,lt.isLazy=Se,lt.isMemo=be,lt.isPortal=ye,lt.isProfiler=we,lt.isStrictMode=Ie,lt.isSuspense=pe,lt.isSuspenseList=Ke,lt.isValidElementType=P,lt.typeOf=O}()),lt}process.env.NODE_ENV==="production"?Lp.exports=U6():Lp.exports=H6();var Bp=Lp.exports;const G6=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jx(e){const t=`${e}`.match(G6);return t&&t[1]||""}function qx(e,t=""){return e.displayName||e.name||Jx(e)||t}function $x(e,t,n){const r=qx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function eC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Bp.ForwardRef:return $x(e,e.render,"ForwardRef");case Bp.Memo:return $x(e,e.type,"memo");default:return}}}const Y6=oo(Object.freeze(Object.defineProperty({__proto__:null,default:eC,getFunctionName:Jx},Symbol.toStringTag,{value:"Module"}))),K6=oo(mM),X6=oo(e6);var fs=sr;Object.defineProperty(Da,"__esModule",{value:!0});var Z6=Da.default=c8;Da.shouldForwardProp=_c,Da.systemDefaultTheme=void 0;var lr=fs(N6()),Np=fs(V6()),tC=o8(Xx),Q6=W6,J6=fs(z6),q6=fs(Y6),$6=fs(K6),e8=fs(X6);const t8=["ownerState"],n8=["variants"],r8=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nC=function(r){return r?n:t})(e)}function o8(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function i8(e){return Object.keys(e).length===0}function s8(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _c(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const a8=Da.systemDefaultTheme=(0,$6.default)(),rC=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Rc({defaultTheme:e,theme:t,themeId:n}){return i8(t)?e:t[n]||t}function l8(e){return e?(t,n)=>n[e]:null}function Dc(e,t){let{ownerState:n}=t,r=(0,Np.default)(t,t8);const o=typeof e=="function"?e((0,lr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Dc(i,(0,lr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,Np.default)(o,n8);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,lr.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,lr.default)({ownerState:n},r,n)):u.style))}),c}return o}function c8(e={}){const{themeId:t,defaultTheme:n=a8,rootShouldForwardProp:r=_c,slotShouldForwardProp:o=_c}=e,i=a=>(0,e8.default)((0,lr.default)({},a,{theme:Rc((0,lr.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{(0,tC.internal_processStyles)(a,O=>O.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=l8(rC(d))}=c,y=(0,Np.default)(c,r8),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${rC(d||"Root")}`);let A=_c;d==="Root"||d==="root"?A=r:d?A=o:s8(a)&&(A=void 0);const j=(0,tC.default)(a,(0,lr.default)({shouldForwardProp:A,label:w},y)),T=O=>typeof O=="function"&&O.__emotion_real!==O||(0,Q6.isPlainObject)(O)?_=>Dc(O,(0,lr.default)({},_,{theme:Rc({theme:_.theme,defaultTheme:n,themeId:t})})):O,P=(O,..._)=>{let R=T(O);const N=_?_.map(T):[];u&&v&&N.push(G=>{const re=Rc((0,lr.default)({},G,{defaultTheme:n,themeId:t}));if(!re.components||!re.components[u]||!re.components[u].styleOverrides)return null;const ne=re.components[u].styleOverrides,Z={};return Object.entries(ne).forEach(([J,V])=>{Z[J]=Dc(V,(0,lr.default)({},G,{theme:re}))}),v(G,Z)}),u&&!b&&N.push(G=>{var re;const ne=Rc((0,lr.default)({},G,{defaultTheme:n,themeId:t})),Z=ne==null||(re=ne.components)==null||(re=re[u])==null?void 0:re.variants;return Dc({variants:Z},(0,lr.default)({},G,{theme:ne}))}),x||N.push(i);const Y=N.length-_.length;if(Array.isArray(O)&&Y>0){const G=new Array(Y).fill("");R=[...O,...G],R.raw=[...O.raw,...G]}const X=j(R,...N);if(process.env.NODE_ENV!=="production"){let G;u&&(G=`${u}${(0,J6.default)(d||"")}`),G===void 0&&(G=`Styled(${(0,q6.default)(a)})`),X.displayName=G}return a.muiName&&(X.muiName=a.muiName),X};return j.withConfig&&(P.withConfig=j.withConfig),P}}function u8(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vp=e=>u8(e)&&e!=="classes",ue=Z6({themeId:Ra,defaultTheme:_p,rootShouldForwardProp:Vp});function d8(e){return Gt}function Yt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Lt(e,o,n)}),r}function f8(e){return Lt("MuiSvgIcon",e)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p8=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h8=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return Ut(o,f8,r)},g8=ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,c,u,d,p,g,v,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?g:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Lc=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:v="0 0 24 24"}=r,y=Re(r,p8),b=D.isValidElement(o)&&o.type==="svg",x=H({},r,{color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:v,hasSvgAsChild:b}),w={};p||(w.viewBox=v);const A=h8(x);return f.jsxs(g8,H({as:c,className:Be(A.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},w,y,b&&o.props,{ownerState:x,children:[b?o.props.children:o,g?f.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(Lc.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string}),Lc.muiName="SvgIcon";function Wp(e,t){function n(r,o){return f.jsx(Lc,H({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Lc.muiName,D.memo(D.forwardRef(n))}const m8=Wp(f.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function v8(e){return Lt("MuiAvatar",e)}Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function ps(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function on(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ps(n,t)})},e)}function y8(e){return typeof e=="string"}function hs(e,t,n){return e===void 0||y8(e)?t:H({},t,{ownerState:H({},t.ownerState,n)})}const b8={disableDefaultClasses:!1},oC=D.createContext(b8);process.env.NODE_ENV!=="production"&&(oC.displayName="ClassNameConfiguratorContext");function x8(e){const{disableDefaultClasses:t}=D.useContext(oC);return n=>t?"":e(n)}function iC(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function sC(e,t,n){return typeof e=="function"?e(t,n):e}function ao(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function C8(e){const{prototype:t={}}=e;return!!t.isReactComponent}function aC(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;const u=i.type;return typeof u=="function"&&!C8(u)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const gs=ao(m.element,aC);gs.isRequired=ao(m.element.isRequired,aC);function w8(e){const{prototype:t={}}=e;return!!t.isReactComponent}function S8(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!w8(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const E8=ao(m.elementType,S8),T8="exact-prop: ​";function La(e){return process.env.NODE_ENV==="production"?e:H({},e,{[T8]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function lo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Bc=m.oneOfType([m.func,m.object]);function zp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function A8(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function I8(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const c=o||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function O8(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Un(e){return e&&e.ownerDocument||document}function Nc(e){return Un(e).defaultView||window}function P8(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?H({},t.propTypes):null;return o=>(i,a,c,u,d,...p)=>{const g=d||a,v=n==null?void 0:n[g];if(v){const y=v(i,a,c,u,d,...p);if(y)return y}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const Wr=typeof window<"u"?D.useLayoutEffect:D.useEffect;let lC=0;function j8(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(lC+=1,n(`mui-${lC}`))},[t]),r}const cC=D.useId;function Vc(e){if(cC!==void 0){const t=cC();return e??t}return j8(e)}function k8(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function uC({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){D.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
65
+ */var Qx;function H6(){return Qx||(Qx=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=!1,x=!1,w=!1,A=!1,j=!1,T;T=Symbol.for("react.module.reference");function P(ve){return!!(typeof ve=="string"||typeof ve=="function"||ve===n||ve===o||j||ve===r||ve===d||ve===p||A||ve===y||b||x||w||typeof ve=="object"&&ve!==null&&(ve.$$typeof===v||ve.$$typeof===g||ve.$$typeof===i||ve.$$typeof===a||ve.$$typeof===u||ve.$$typeof===T||ve.getModuleId!==void 0))}function O(ve){if(typeof ve=="object"&&ve!==null){var $e=ve.$$typeof;switch($e){case e:var gn=ve.type;switch(gn){case n:case o:case r:case d:case p:return gn;default:var It=gn&&gn.$$typeof;switch(It){case c:case a:case u:case v:case g:case i:return It;default:return $e}}case t:return $e}}}var _=a,R=i,N=e,Y=u,X=n,G=v,re=g,ne=t,Z=o,J=r,V=d,$=p,W=!1,ie=!1;function U(ve){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(ve){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(ve){return O(ve)===a}function ge(ve){return O(ve)===i}function fe(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===e}function he(ve){return O(ve)===u}function me(ve){return O(ve)===n}function Se(ve){return O(ve)===v}function be(ve){return O(ve)===g}function ye(ve){return O(ve)===t}function we(ve){return O(ve)===o}function Ie(ve){return O(ve)===r}function pe(ve){return O(ve)===d}function Ke(ve){return O(ve)===p}lt.ContextConsumer=_,lt.ContextProvider=R,lt.Element=N,lt.ForwardRef=Y,lt.Fragment=X,lt.Lazy=G,lt.Memo=re,lt.Portal=ne,lt.Profiler=Z,lt.StrictMode=J,lt.Suspense=V,lt.SuspenseList=$,lt.isAsyncMode=U,lt.isConcurrentMode=ee,lt.isContextConsumer=de,lt.isContextProvider=ge,lt.isElement=fe,lt.isForwardRef=he,lt.isFragment=me,lt.isLazy=Se,lt.isMemo=be,lt.isPortal=ye,lt.isProfiler=we,lt.isStrictMode=Ie,lt.isSuspense=pe,lt.isSuspenseList=Ke,lt.isValidElementType=P,lt.typeOf=O}()),lt}process.env.NODE_ENV==="production"?Lp.exports=U6():Lp.exports=H6();var Bp=Lp.exports;const G6=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jx(e){const t=`${e}`.match(G6);return t&&t[1]||""}function qx(e,t=""){return e.displayName||e.name||Jx(e)||t}function $x(e,t,n){const r=qx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function eC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Bp.ForwardRef:return $x(e,e.render,"ForwardRef");case Bp.Memo:return $x(e,e.type,"memo");default:return}}}const Y6=oo(Object.freeze(Object.defineProperty({__proto__:null,default:eC,getFunctionName:Jx},Symbol.toStringTag,{value:"Module"}))),K6=oo(mM),X6=oo(e6);var fs=sr;Object.defineProperty(Da,"__esModule",{value:!0});var Z6=Da.default=c8;Da.shouldForwardProp=Rc,Da.systemDefaultTheme=void 0;var lr=fs(N6()),Np=fs(V6()),tC=o8(Xx),Q6=W6,J6=fs(z6),q6=fs(Y6),$6=fs(K6),e8=fs(X6);const t8=["ownerState"],n8=["variants"],r8=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nC=function(r){return r?n:t})(e)}function o8(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function i8(e){return Object.keys(e).length===0}function s8(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Rc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const a8=Da.systemDefaultTheme=(0,$6.default)(),rC=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Dc({defaultTheme:e,theme:t,themeId:n}){return i8(t)?e:t[n]||t}function l8(e){return e?(t,n)=>n[e]:null}function Lc(e,t){let{ownerState:n}=t,r=(0,Np.default)(t,t8);const o=typeof e=="function"?e((0,lr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Lc(i,(0,lr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,Np.default)(o,n8);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,lr.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,lr.default)({ownerState:n},r,n)):u.style))}),c}return o}function c8(e={}){const{themeId:t,defaultTheme:n=a8,rootShouldForwardProp:r=Rc,slotShouldForwardProp:o=Rc}=e,i=a=>(0,e8.default)((0,lr.default)({},a,{theme:Dc((0,lr.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{(0,tC.internal_processStyles)(a,O=>O.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=l8(rC(d))}=c,y=(0,Np.default)(c,r8),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${rC(d||"Root")}`);let A=Rc;d==="Root"||d==="root"?A=r:d?A=o:s8(a)&&(A=void 0);const j=(0,tC.default)(a,(0,lr.default)({shouldForwardProp:A,label:w},y)),T=O=>typeof O=="function"&&O.__emotion_real!==O||(0,Q6.isPlainObject)(O)?_=>Lc(O,(0,lr.default)({},_,{theme:Dc({theme:_.theme,defaultTheme:n,themeId:t})})):O,P=(O,..._)=>{let R=T(O);const N=_?_.map(T):[];u&&v&&N.push(G=>{const re=Dc((0,lr.default)({},G,{defaultTheme:n,themeId:t}));if(!re.components||!re.components[u]||!re.components[u].styleOverrides)return null;const ne=re.components[u].styleOverrides,Z={};return Object.entries(ne).forEach(([J,V])=>{Z[J]=Lc(V,(0,lr.default)({},G,{theme:re}))}),v(G,Z)}),u&&!b&&N.push(G=>{var re;const ne=Dc((0,lr.default)({},G,{defaultTheme:n,themeId:t})),Z=ne==null||(re=ne.components)==null||(re=re[u])==null?void 0:re.variants;return Lc({variants:Z},(0,lr.default)({},G,{theme:ne}))}),x||N.push(i);const Y=N.length-_.length;if(Array.isArray(O)&&Y>0){const G=new Array(Y).fill("");R=[...O,...G],R.raw=[...O.raw,...G]}const X=j(R,...N);if(process.env.NODE_ENV!=="production"){let G;u&&(G=`${u}${(0,J6.default)(d||"")}`),G===void 0&&(G=`Styled(${(0,q6.default)(a)})`),X.displayName=G}return a.muiName&&(X.muiName=a.muiName),X};return j.withConfig&&(P.withConfig=j.withConfig),P}}function u8(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vp=e=>u8(e)&&e!=="classes",ue=Z6({themeId:Ra,defaultTheme:_p,rootShouldForwardProp:Vp});function d8(e){return Gt}function Yt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Lt(e,o,n)}),r}function f8(e){return Lt("MuiSvgIcon",e)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p8=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h8=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return Ut(o,f8,r)},g8=ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,c,u,d,p,g,v,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?g:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Bc=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:v="0 0 24 24"}=r,y=Re(r,p8),b=D.isValidElement(o)&&o.type==="svg",x=H({},r,{color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:v,hasSvgAsChild:b}),w={};p||(w.viewBox=v);const A=h8(x);return f.jsxs(g8,H({as:c,className:Be(A.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},w,y,b&&o.props,{ownerState:x,children:[b?o.props.children:o,g?f.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(Bc.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string}),Bc.muiName="SvgIcon";function Wp(e,t){function n(r,o){return f.jsx(Bc,H({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Bc.muiName,D.memo(D.forwardRef(n))}const m8=Wp(f.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function v8(e){return Lt("MuiAvatar",e)}Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function ps(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function on(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ps(n,t)})},e)}function y8(e){return typeof e=="string"}function hs(e,t,n){return e===void 0||y8(e)?t:H({},t,{ownerState:H({},t.ownerState,n)})}const b8={disableDefaultClasses:!1},oC=D.createContext(b8);process.env.NODE_ENV!=="production"&&(oC.displayName="ClassNameConfiguratorContext");function x8(e){const{disableDefaultClasses:t}=D.useContext(oC);return n=>t?"":e(n)}function iC(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function sC(e,t,n){return typeof e=="function"?e(t,n):e}function ao(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function C8(e){const{prototype:t={}}=e;return!!t.isReactComponent}function aC(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;const u=i.type;return typeof u=="function"&&!C8(u)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const gs=ao(m.element,aC);gs.isRequired=ao(m.element.isRequired,aC);function w8(e){const{prototype:t={}}=e;return!!t.isReactComponent}function S8(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!w8(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const E8=ao(m.elementType,S8),T8="exact-prop: ​";function La(e){return process.env.NODE_ENV==="production"?e:H({},e,{[T8]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function lo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Nc=m.oneOfType([m.func,m.object]);function zp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function A8(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function I8(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const c=o||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function O8(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Un(e){return e&&e.ownerDocument||document}function Vc(e){return Un(e).defaultView||window}function P8(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?H({},t.propTypes):null;return o=>(i,a,c,u,d,...p)=>{const g=d||a,v=n==null?void 0:n[g];if(v){const y=v(i,a,c,u,d,...p);if(y)return y}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const Wr=typeof window<"u"?D.useLayoutEffect:D.useEffect;let lC=0;function j8(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(lC+=1,n(`mui-${lC}`))},[t]),r}const cC=D.useId;function Wc(e){if(cC!==void 0){const t=cC();return e??t}return j8(e)}function k8(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function uC({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){D.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
66
66
  `))},[r,n,e]);const{current:d}=D.useRef(t);D.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
67
- `))},[JSON.stringify(t)])}const u=D.useCallback(d=>{o||a(d)},[]);return[c,u]}function co(e){const t=D.useRef(e);return Wr(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}const dC={};function M8(e,t){const n=D.useRef(dC);return n.current===dC&&(n.current=e(t)),n}const F8=[];function _8(e){D.useEffect(e,F8)}class Ba{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ba}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ms(){const e=M8(Ba.create).current;return _8(e.disposeEffect),e}let Wc=!0,Up=!1;const R8=new Ba,D8={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function L8(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&D8[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function B8(e){e.metaKey||e.altKey||e.ctrlKey||(Wc=!0)}function Hp(){Wc=!1}function N8(){this.visibilityState==="hidden"&&Up&&(Wc=!0)}function V8(e){e.addEventListener("keydown",B8,!0),e.addEventListener("mousedown",Hp,!0),e.addEventListener("pointerdown",Hp,!0),e.addEventListener("touchstart",Hp,!0),e.addEventListener("visibilitychange",N8,!0)}function W8(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Wc||L8(t)}function Gp(){const e=D.useCallback(o=>{o!=null&&V8(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(Up=!0,R8.start(100,()=>{Up=!1}),t.current=!1,!0):!1}function r(o){return W8(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function z8(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function U8(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function H8(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const G8=Number.isInteger||H8;function fC(e,t,n,r){const o=e[t];if(o==null||!G8(o)){const i=U8(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function pC(e,t,...n){return e[t]===void 0?null:fC(e,t,...n)}function Yp(){return null}pC.isRequired=fC,Yp.isRequired=Yp;const zc=process.env.NODE_ENV==="production"?Yp:pC;function hC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=H({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=H({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=iC(H({},o,r)),c=hC(r),u=hC(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=H({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=H({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const Y8=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Uc(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Re(e,Y8),c=i?{}:sC(r,o),{props:u,internalRef:d}=gC(H({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return hs(n,H({},u,{ref:p}),o)}const K8=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],X8=["component","slots","slotProps"],Z8=["component"];function Q8(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:c}=t,u=Re(t,K8),{component:d,slots:p={[e]:void 0},slotProps:g={[e]:void 0}}=i;Re(i,X8);const v=p[e]||r,y=sC(g[e],o),b=gC(H({className:n},u,{externalForwardedProps:void 0,externalSlotProps:y})),{props:{component:x},internalRef:w}=b,A=Re(b.props,Z8),j=on(w,y==null?void 0:y.ref,t.ref),T=a?a(A):{},P=H({},o,T),O=x,_=hs(v,H({},e==="root",!p[e]&&c,A,O&&{as:O},{ref:j}),P);return Object.keys(T).forEach(R=>{delete _[R]}),[v,_]}const J8=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],q8=d8(),$8=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ut({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},v8,t)},eF=ue("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:H({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:H({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),tF=ue("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),nF=ue(m8,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rF({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=D.useState(!1);return D.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const mC=D.forwardRef(function(t,n){const r=q8({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:u={},slotProps:d={},imgProps:p,sizes:g,src:v,srcSet:y,variant:b="circular"}=r,x=Re(r,J8);let w=null;const A=rF(H({},p,{src:v,srcSet:y})),j=v||y,T=j&&A!=="error",P=H({},r,{colorDefault:!T,component:c,variant:b}),O=$8(P),[_,R]=Q8("img",{className:O.img,elementType:tF,externalForwardedProps:{slots:u,slotProps:{img:H({},p,d.img)}},additionalProps:{alt:o,src:v,srcSet:y,sizes:g},ownerState:P});return T?w=f.jsx(_,H({},R)):i||i===0?w=i:j&&o?w=o[0]:w=f.jsx(nF,{ownerState:P,className:O.fallback}),f.jsx(eF,H({as:c,ownerState:P,className:Be(O.root,a),ref:n},x,{children:w}))});process.env.NODE_ENV!=="production"&&(mC.propTypes={alt:m.string,children:m.node,classes:m.object,className:m.string,component:m.elementType,imgProps:m.object,sizes:m.string,slotProps:m.shape({img:m.oneOfType([m.func,m.object])}),slots:m.shape({img:m.elementType}),src:m.string,srcSet:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["circular","rounded","square"]),m.string])});const oF=["ownerState"],iF=["variants"],sF=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function aF(e){return Object.keys(e).length===0}function lF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cF=Ec(),vC=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Hc({defaultTheme:e,theme:t,themeId:n}){return aF(t)?e:t[n]||t}function uF(e){return e?(t,n)=>n[e]:null}function Gc(e,t){let{ownerState:n}=t,r=Re(t,oF);const o=typeof e=="function"?e(H({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Gc(i,H({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=Re(o,iF);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props(H({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style(H({ownerState:n},r,n)):u.style))}),c}return o}function dF(e={}){const{themeId:t,defaultTheme:n=cF,rootShouldForwardProp:r=Kp,slotShouldForwardProp:o=Kp}=e,i=a=>Oa(H({},a,{theme:Hc(H({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{Ex(a,O=>O.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=uF(vC(d))}=c,y=Re(c,sF),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${vC(d||"Root")}`);let A=Kp;d==="Root"||d==="root"?A=r:d?A=o:lF(a)&&(A=void 0);const j=Sx(a,H({shouldForwardProp:A,label:w},y)),T=O=>typeof O=="function"&&O.__emotion_real!==O||io(O)?_=>Gc(O,H({},_,{theme:Hc({theme:_.theme,defaultTheme:n,themeId:t})})):O,P=(O,..._)=>{let R=T(O);const N=_?_.map(T):[];u&&v&&N.push(G=>{const re=Hc(H({},G,{defaultTheme:n,themeId:t}));if(!re.components||!re.components[u]||!re.components[u].styleOverrides)return null;const ne=re.components[u].styleOverrides,Z={};return Object.entries(ne).forEach(([J,V])=>{Z[J]=Gc(V,H({},G,{theme:re}))}),v(G,Z)}),u&&!b&&N.push(G=>{var re;const ne=Hc(H({},G,{defaultTheme:n,themeId:t})),Z=ne==null||(re=ne.components)==null||(re=re[u])==null?void 0:re.variants;return Gc({variants:Z},H({},G,{theme:ne}))}),x||N.push(i);const Y=N.length-_.length;if(Array.isArray(O)&&Y>0){const G=new Array(Y).fill("");R=[...O,...G],R.raw=[...O.raw,...G]}const X=j(R,...N);if(process.env.NODE_ENV!=="production"){let G;u&&(G=`${u}${Ne(d||"")}`),G===void 0&&(G=`Styled(${eC(a)})`),X.displayName=G}return a.muiName&&(X.muiName=a.muiName),X};return j.withConfig&&(P.withConfig=j.withConfig),P}}const Na=dF();function yC(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),kx(e,t,n)}function fF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Xp(e){if(e.type)return e;if(e.charAt(0)==="#")return Xp(fF(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
67
+ `))},[JSON.stringify(t)])}const u=D.useCallback(d=>{o||a(d)},[]);return[c,u]}function co(e){const t=D.useRef(e);return Wr(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}const dC={};function M8(e,t){const n=D.useRef(dC);return n.current===dC&&(n.current=e(t)),n}const F8=[];function _8(e){D.useEffect(e,F8)}class Ba{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ba}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ms(){const e=M8(Ba.create).current;return _8(e.disposeEffect),e}let zc=!0,Up=!1;const R8=new Ba,D8={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function L8(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&D8[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function B8(e){e.metaKey||e.altKey||e.ctrlKey||(zc=!0)}function Hp(){zc=!1}function N8(){this.visibilityState==="hidden"&&Up&&(zc=!0)}function V8(e){e.addEventListener("keydown",B8,!0),e.addEventListener("mousedown",Hp,!0),e.addEventListener("pointerdown",Hp,!0),e.addEventListener("touchstart",Hp,!0),e.addEventListener("visibilitychange",N8,!0)}function W8(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return zc||L8(t)}function Gp(){const e=D.useCallback(o=>{o!=null&&V8(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(Up=!0,R8.start(100,()=>{Up=!1}),t.current=!1,!0):!1}function r(o){return W8(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function z8(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function U8(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function H8(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const G8=Number.isInteger||H8;function fC(e,t,n,r){const o=e[t];if(o==null||!G8(o)){const i=U8(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function pC(e,t,...n){return e[t]===void 0?null:fC(e,t,...n)}function Yp(){return null}pC.isRequired=fC,Yp.isRequired=Yp;const Uc=process.env.NODE_ENV==="production"?Yp:pC;function hC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=H({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=H({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=iC(H({},o,r)),c=hC(r),u=hC(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=H({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=H({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const Y8=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Hc(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Re(e,Y8),c=i?{}:sC(r,o),{props:u,internalRef:d}=gC(H({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return hs(n,H({},u,{ref:p}),o)}const K8=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],X8=["component","slots","slotProps"],Z8=["component"];function Q8(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:c}=t,u=Re(t,K8),{component:d,slots:p={[e]:void 0},slotProps:g={[e]:void 0}}=i;Re(i,X8);const v=p[e]||r,y=sC(g[e],o),b=gC(H({className:n},u,{externalForwardedProps:void 0,externalSlotProps:y})),{props:{component:x},internalRef:w}=b,A=Re(b.props,Z8),j=on(w,y==null?void 0:y.ref,t.ref),T=a?a(A):{},P=H({},o,T),O=x,_=hs(v,H({},e==="root",!p[e]&&c,A,O&&{as:O},{ref:j}),P);return Object.keys(T).forEach(R=>{delete _[R]}),[v,_]}const J8=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],q8=d8(),$8=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ut({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},v8,t)},eF=ue("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:H({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:H({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),tF=ue("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),nF=ue(m8,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rF({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=D.useState(!1);return D.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const mC=D.forwardRef(function(t,n){const r=q8({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:u={},slotProps:d={},imgProps:p,sizes:g,src:v,srcSet:y,variant:b="circular"}=r,x=Re(r,J8);let w=null;const A=rF(H({},p,{src:v,srcSet:y})),j=v||y,T=j&&A!=="error",P=H({},r,{colorDefault:!T,component:c,variant:b}),O=$8(P),[_,R]=Q8("img",{className:O.img,elementType:tF,externalForwardedProps:{slots:u,slotProps:{img:H({},p,d.img)}},additionalProps:{alt:o,src:v,srcSet:y,sizes:g},ownerState:P});return T?w=f.jsx(_,H({},R)):i||i===0?w=i:j&&o?w=o[0]:w=f.jsx(nF,{ownerState:P,className:O.fallback}),f.jsx(eF,H({as:c,ownerState:P,className:Be(O.root,a),ref:n},x,{children:w}))});process.env.NODE_ENV!=="production"&&(mC.propTypes={alt:m.string,children:m.node,classes:m.object,className:m.string,component:m.elementType,imgProps:m.object,sizes:m.string,slotProps:m.shape({img:m.oneOfType([m.func,m.object])}),slots:m.shape({img:m.elementType}),src:m.string,srcSet:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["circular","rounded","square"]),m.string])});const oF=["ownerState"],iF=["variants"],sF=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function aF(e){return Object.keys(e).length===0}function lF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cF=Tc(),vC=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gc({defaultTheme:e,theme:t,themeId:n}){return aF(t)?e:t[n]||t}function uF(e){return e?(t,n)=>n[e]:null}function Yc(e,t){let{ownerState:n}=t,r=Re(t,oF);const o=typeof e=="function"?e(H({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Yc(i,H({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=Re(o,iF);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props(H({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style(H({ownerState:n},r,n)):u.style))}),c}return o}function dF(e={}){const{themeId:t,defaultTheme:n=cF,rootShouldForwardProp:r=Kp,slotShouldForwardProp:o=Kp}=e,i=a=>Oa(H({},a,{theme:Gc(H({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{Ex(a,O=>O.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=uF(vC(d))}=c,y=Re(c,sF),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${vC(d||"Root")}`);let A=Kp;d==="Root"||d==="root"?A=r:d?A=o:lF(a)&&(A=void 0);const j=Sx(a,H({shouldForwardProp:A,label:w},y)),T=O=>typeof O=="function"&&O.__emotion_real!==O||io(O)?_=>Yc(O,H({},_,{theme:Gc({theme:_.theme,defaultTheme:n,themeId:t})})):O,P=(O,..._)=>{let R=T(O);const N=_?_.map(T):[];u&&v&&N.push(G=>{const re=Gc(H({},G,{defaultTheme:n,themeId:t}));if(!re.components||!re.components[u]||!re.components[u].styleOverrides)return null;const ne=re.components[u].styleOverrides,Z={};return Object.entries(ne).forEach(([J,V])=>{Z[J]=Yc(V,H({},G,{theme:re}))}),v(G,Z)}),u&&!b&&N.push(G=>{var re;const ne=Gc(H({},G,{defaultTheme:n,themeId:t})),Z=ne==null||(re=ne.components)==null||(re=re[u])==null?void 0:re.variants;return Yc({variants:Z},H({},G,{theme:ne}))}),x||N.push(i);const Y=N.length-_.length;if(Array.isArray(O)&&Y>0){const G=new Array(Y).fill("");R=[...O,...G],R.raw=[...O.raw,...G]}const X=j(R,...N);if(process.env.NODE_ENV!=="production"){let G;u&&(G=`${u}${Ne(d||"")}`),G===void 0&&(G=`Styled(${eC(a)})`),X.displayName=G}return a.muiName&&(X.muiName=a.muiName),X};return j.withConfig&&(P.withConfig=j.withConfig),P}}const Na=dF();function yC(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),kx(e,t,n)}function fF(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Xp(e){if(e.type)return e;if(e.charAt(0)==="#")return Xp(fF(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
68
68
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:gi(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
69
69
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:gi(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function bC(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function et(e,t){return e=Xp(e),t=yC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bC(e)}function Zp(e,t){if(e=Xp(e),t=yC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return bC(e)}const Qp=D.createContext(null);process.env.NODE_ENV!=="production"&&(Qp.displayName="ThemeContext");function xC(){const e=D.useContext(Qp);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e}const pF=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function hF(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
70
- `))),n}return H({},e,t)}function Yc(e){const{children:t,theme:n}=e,r=xC();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="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(`
71
- `));const o=D.useMemo(()=>{const i=r===null?n:hF(r,n);return i!=null&&(i[pF]=r!==null),i},[n,r]);return f.jsx(Qp.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Yc.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Yc.propTypes=La(Yc.propTypes));const gF=["value"],CC=D.createContext();function wC(e){let{value:t}=e,n=Re(e,gF);return f.jsx(CC.Provider,H({value:t??!0},n))}process.env.NODE_ENV!=="production"&&(wC.propTypes={children:m.node,value:m.bool});const mF=()=>{const e=D.useContext(CC);return e??!1},vF=D.createContext(void 0);function SC({value:e,children:t}){return f.jsx(vF.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(SC.propTypes={children:m.node,value:m.object});const EC={};function TC(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?H({},t,{[e]:i}):i;return r?()=>a:a}return e?H({},t,{[e]:n}):H({},t,n)},[e,t,n,r])}function Kc(e){const{children:t,theme:n,themeId:r}=e,o=Tx(EC),i=xC()||EC;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="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(`
72
- `));const a=TC(r,o,n),c=TC(r,i,n,!0),u=a.direction==="rtl";return f.jsx(Yc,{theme:c,children:f.jsx(Wt.ThemeContext.Provider,{value:a,children:f.jsx(wC,{value:u,children:f.jsx(SC,{value:a==null?void 0:a.components,children:t})})})})}process.env.NODE_ENV!=="production"&&(Kc.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"&&(Kc.propTypes=La(Kc.propTypes));function pt(){const e=Op(_p);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[Ra]||e}const yF=["theme"];function AC(e){let{theme:t}=e,n=Re(e,yF);const r=t[Ra];return f.jsx(Kc,H({},n,{themeId:r?Ra:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(AC.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired});const IC=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bF({theme:e,color:t,type:n}){const r=nn(e,t),{lighter:o,light:i,main:a,contrastText:c}=r;switch(n){case"filled":return{color:c,backgroundColor:a};case"outlined":return{color:a,border:"1px solid",borderColor:a,backgroundColor:"transparent"};case"combined":return{color:a,border:"1px solid",borderColor:i,backgroundColor:o};default:return{color:a,backgroundColor:o}}}function xF(e){switch(e){case"badge":return{border:"2px solid",fontSize:"0.675rem",width:20,height:20};case"xs":return{fontSize:"0.75rem",width:24,height:24};case"sm":return{fontSize:"0.875rem",width:32,height:32};case"lg":return{fontSize:"1.2rem",width:52,height:52};case"xl":return{fontSize:"1.5rem",width:64,height:64};case"md":default:return{fontSize:"1rem",width:40,height:40}}}const CF=ue(mC,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,color:t,type:n,size:r})=>({...xF(r),...bF({theme:e,color:t,type:n}),...r==="badge"&&{borderColor:e.palette.background.default}}));function Xc({variant:e="circular",children:t,color:n="primary",type:r,size:o="md",...i}){const a=pt();return f.jsx(CF,{variant:e,theme:a,color:n,type:r,size:o,...i,children:t})}const OC={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},On=E.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:o=!0,contentSX:i={},darkTitle:a,divider:c=!0,elevation:u,secondary:d,shadow:p,sx:g={},title:v,modal:y=!1,color:b="default",...x},w)=>{const A=pt();return t=A.palette.mode==="dark"?t||!0:t,f.jsxs(S.Card,{elevation:u||0,ref:w,...x,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:A.palette.mode==="dark"?A.palette.divider:A.palette.grey.A800,boxShadow:t&&(!e||A.palette.mode==="dark")?p||A.customShadows.z0:"inherit",":hover":{boxShadow:t?p||A.customShadows.z0:"inherit"},backgroundColor:b==="default"?A.palette.background.paper:Zp(b==="primary"?A.palette.primary[100]:A.palette.secondary[100],.5),...y&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"calc( 100% - 50px)",sm:"auto"},"& .MuiCardContent-root":{overflowY:"auto",minHeight:"auto",maxHeight:"calc(100vh - 200px)"}},...g},children:[!a&&v?f.jsx(S.CardHeader,{sx:OC,title:v,action:d,subheader:r}):null,a&&v?f.jsx(S.CardHeader,{sx:OC,title:f.jsx(S.Typography,{variant:"h4",children:v}),action:d}):null,v&&c?f.jsx(S.Divider,{}):null,o?f.jsx(S.CardContent,{sx:i,children:n}):null,!o&&n]})});function wF(e){return Lt("MuiTypography",e)}Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const SF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],EF=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ut(c,wF,a)},TF=ue("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>H({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),PC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},AF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},IF=e=>AF[e]||e,Zc=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiTypography"}),o=IF(r.color),i=Ax(H({},r,{color:o})),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:v="body1",variantMapping:y=PC}=i,b=Re(i,SF),x=H({},i,{align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:g,variant:v,variantMapping:y}),w=u||(g?"p":y[v]||PC[v])||"span",A=EF(x);return f.jsx(TF,H({as:w,ref:n,ownerState:x,className:Be(A.root,c)},b))});process.env.NODE_ENV!=="production"&&(Zc.propTypes={align:m.oneOf(["center","inherit","justify","left","right"]),children:m.node,classes:m.object,className:m.string,component:m.elementType,gutterBottom:m.bool,noWrap:m.bool,paragraph:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),m.string]),variantMapping:m.object});const OF=Wp(f.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");function Jp(e,t){return Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Jp(e,t)}function qp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jp(e,t)}const jC={disabled:!1};var PF=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.shape({enter:m.number,exit:m.number,appear:m.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&m.oneOfType([m.string,m.shape({enter:m.string,exit:m.string,active:m.string}),m.shape({enter:m.string,enterDone:m.string,enterActive:m.string,exit:m.string,exitDone:m.string,exitActive:m.string})]);const Qc=E.createContext(null);var jF=function(t){return t.scrollTop},Va="unmounted",mi="exited",vi="entering",vs="entered",$p="exiting",zr=function(e){qp(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?c?(u=mi,i.appearStatus=vi):u=vs:r.unmountOnExit||r.mountOnEnter?u=Va:u=mi,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Va?{status:mi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==vi&&a!==vs&&(i=vi):(a===vi||a===vs)&&(i=$p)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===vi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Zi.findDOMNode(this);a&&jF(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mi&&this.setState({status:Va})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[Zi.findDOMNode(this),c],d=u[0],p=u[1],g=this.getTimeouts(),v=c?g.appear:g.enter;if(!o&&!a||jC.disabled){this.safeSetState({status:vs},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:vi},function(){i.props.onEntering(d,p),i.onTransitionEnd(v,function(){i.safeSetState({status:vs},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:Zi.findDOMNode(this);if(!i||jC.disabled){this.safeSetState({status:mi},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:$p},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:mi},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Zi.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Va)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=Re(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(Qc.Provider,{value:null},typeof a=="function"?a(o,c):E.cloneElement(E.Children.only(a),c))},t}(E.Component);zr.contextType=Qc,zr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:m.shape({current:typeof Element>"u"?m.any:function(e,t,n,r,o,i){var a=e[t];return m.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:m.oneOfType([m.func.isRequired,m.element.isRequired]).isRequired,in:m.bool,mountOnEnter:m.bool,unmountOnExit:m.bool,appear:m.bool,enter:m.bool,exit:m.bool,timeout:function(t){var n=PF;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:m.func,onEnter:m.func,onEntering:m.func,onEntered:m.func,onExit:m.func,onExiting:m.func,onExited:m.func}:{};function ys(){}zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ys,onEntering:ys,onEntered:ys,onExit:ys,onExiting:ys,onExited:ys},zr.UNMOUNTED=Va,zr.EXITED=mi,zr.ENTERING=vi,zr.ENTERED=vs,zr.EXITING=$p;function kF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eh(e,t){var n=function(i){return t&&E.isValidElement(i)?t(i):i},r=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function MF(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var d=r[u][a];c[r[u][a]]=n(d)}c[u]=n(u)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function yi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function FF(e,t){return eh(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yi(n,"appear",e),enter:yi(n,"enter",e),exit:yi(n,"exit",e)})})}function _F(e,t,n){var r=eh(e.children),o=MF(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(E.isValidElement(a)){var c=i in t,u=i in r,d=t[i],p=E.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:yi(a,"exit",e),enter:yi(a,"enter",e)}):!u&&c&&!p?o[i]=E.cloneElement(a,{in:!1}):u&&c&&E.isValidElement(d)&&(o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:yi(a,"exit",e),enter:yi(a,"enter",e)}))}}),o}var RF=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DF={component:"div",childFactory:function(t){return t}},th=function(e){qp(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(kF(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,u=i.firstRender;return{children:u?FF(o,c):_F(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=eh(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var u=H({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=Re(o,["component","childFactory"]),u=this.state.contextValue,d=RF(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?E.createElement(Qc.Provider,{value:u},d):E.createElement(Qc.Provider,{value:u},E.createElement(i,c,d))},t}(E.Component);th.propTypes=process.env.NODE_ENV!=="production"?{component:m.any,children:m.node,appear:m.bool,enter:m.bool,exit:m.bool,childFactory:m.func}:{},th.defaultProps=DF;function kC(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:d}=e,[p,g]=D.useState(!1),v=Be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=Be(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&g(!0),D.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),f.jsx("span",{className:v,style:y,children:f.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(kC.propTypes={classes:m.object.isRequired,className:m.string,in:m.bool,onExited:m.func,pulsate:m.bool,rippleSize:m.number,rippleX:m.number,rippleY:m.number,timeout:m.number.isRequired});const cr=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),LF=["center","classes","className"];let Jc=e=>e,MC,FC,_C,RC;const nh=550,BF=80,NF=Wt.keyframes(MC||(MC=Jc`
70
+ `))),n}return H({},e,t)}function Kc(e){const{children:t,theme:n}=e,r=xC();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="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(`
71
+ `));const o=D.useMemo(()=>{const i=r===null?n:hF(r,n);return i!=null&&(i[pF]=r!==null),i},[n,r]);return f.jsx(Qp.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Kc.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Kc.propTypes=La(Kc.propTypes));const gF=["value"],CC=D.createContext();function wC(e){let{value:t}=e,n=Re(e,gF);return f.jsx(CC.Provider,H({value:t??!0},n))}process.env.NODE_ENV!=="production"&&(wC.propTypes={children:m.node,value:m.bool});const mF=()=>{const e=D.useContext(CC);return e??!1},vF=D.createContext(void 0);function SC({value:e,children:t}){return f.jsx(vF.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(SC.propTypes={children:m.node,value:m.object});const EC={};function TC(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?H({},t,{[e]:i}):i;return r?()=>a:a}return e?H({},t,{[e]:n}):H({},t,n)},[e,t,n,r])}function Xc(e){const{children:t,theme:n,themeId:r}=e,o=Tx(EC),i=xC()||EC;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="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(`
72
+ `));const a=TC(r,o,n),c=TC(r,i,n,!0),u=a.direction==="rtl";return f.jsx(Kc,{theme:c,children:f.jsx(Wt.ThemeContext.Provider,{value:a,children:f.jsx(wC,{value:u,children:f.jsx(SC,{value:a==null?void 0:a.components,children:t})})})})}process.env.NODE_ENV!=="production"&&(Xc.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"&&(Xc.propTypes=La(Xc.propTypes));function pt(){const e=Op(_p);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[Ra]||e}const yF=["theme"];function AC(e){let{theme:t}=e,n=Re(e,yF);const r=t[Ra];return f.jsx(Xc,H({},n,{themeId:r?Ra:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(AC.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired});const IC=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bF({theme:e,color:t,type:n}){const r=nn(e,t),{lighter:o,light:i,main:a,contrastText:c}=r;switch(n){case"filled":return{color:c,backgroundColor:a};case"outlined":return{color:a,border:"1px solid",borderColor:a,backgroundColor:"transparent"};case"combined":return{color:a,border:"1px solid",borderColor:i,backgroundColor:o};default:return{color:a,backgroundColor:o}}}function xF(e){switch(e){case"badge":return{border:"2px solid",fontSize:"0.675rem",width:20,height:20};case"xs":return{fontSize:"0.75rem",width:24,height:24};case"sm":return{fontSize:"0.875rem",width:32,height:32};case"lg":return{fontSize:"1.2rem",width:52,height:52};case"xl":return{fontSize:"1.5rem",width:64,height:64};case"md":default:return{fontSize:"1rem",width:40,height:40}}}const CF=ue(mC,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,color:t,type:n,size:r})=>({...xF(r),...bF({theme:e,color:t,type:n}),...r==="badge"&&{borderColor:e.palette.background.default}}));function Zc({variant:e="circular",children:t,color:n="primary",type:r,size:o="md",...i}){const a=pt();return f.jsx(CF,{variant:e,theme:a,color:n,type:r,size:o,...i,children:t})}const OC={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},On=E.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:o=!0,contentSX:i={},darkTitle:a,divider:c=!0,elevation:u,secondary:d,shadow:p,sx:g={},title:v,modal:y=!1,color:b="default",...x},w)=>{const A=pt();return t=A.palette.mode==="dark"?t||!0:t,f.jsxs(S.Card,{elevation:u||0,ref:w,...x,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:A.palette.mode==="dark"?A.palette.divider:A.palette.grey.A800,boxShadow:t&&(!e||A.palette.mode==="dark")?p||A.customShadows.z0:"inherit",":hover":{boxShadow:t?p||A.customShadows.z0:"inherit"},backgroundColor:b==="default"?A.palette.background.paper:Zp(b==="primary"?A.palette.primary[100]:A.palette.secondary[100],.5),...y&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"calc( 100% - 50px)",sm:"auto"},"& .MuiCardContent-root":{overflowY:"auto",minHeight:"auto",maxHeight:"calc(100vh - 200px)"}},...g},children:[!a&&v?f.jsx(S.CardHeader,{sx:OC,title:v,action:d,subheader:r}):null,a&&v?f.jsx(S.CardHeader,{sx:OC,title:f.jsx(S.Typography,{variant:"h4",children:v}),action:d}):null,v&&c?f.jsx(S.Divider,{}):null,o?f.jsx(S.CardContent,{sx:i,children:n}):null,!o&&n]})});function wF(e){return Lt("MuiTypography",e)}Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const SF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],EF=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ut(c,wF,a)},TF=ue("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>H({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),PC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},AF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},IF=e=>AF[e]||e,Qc=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiTypography"}),o=IF(r.color),i=Ax(H({},r,{color:o})),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:v="body1",variantMapping:y=PC}=i,b=Re(i,SF),x=H({},i,{align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:g,variant:v,variantMapping:y}),w=u||(g?"p":y[v]||PC[v])||"span",A=EF(x);return f.jsx(TF,H({as:w,ref:n,ownerState:x,className:Be(A.root,c)},b))});process.env.NODE_ENV!=="production"&&(Qc.propTypes={align:m.oneOf(["center","inherit","justify","left","right"]),children:m.node,classes:m.object,className:m.string,component:m.elementType,gutterBottom:m.bool,noWrap:m.bool,paragraph:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),m.string]),variantMapping:m.object});const OF=Wp(f.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");function Jp(e,t){return Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Jp(e,t)}function qp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jp(e,t)}const jC={disabled:!1};var PF=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.shape({enter:m.number,exit:m.number,appear:m.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&m.oneOfType([m.string,m.shape({enter:m.string,exit:m.string,active:m.string}),m.shape({enter:m.string,enterDone:m.string,enterActive:m.string,exit:m.string,exitDone:m.string,exitActive:m.string})]);const Jc=E.createContext(null);var jF=function(t){return t.scrollTop},Va="unmounted",mi="exited",vi="entering",vs="entered",$p="exiting",zr=function(e){qp(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?c?(u=mi,i.appearStatus=vi):u=vs:r.unmountOnExit||r.mountOnEnter?u=Va:u=mi,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Va?{status:mi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==vi&&a!==vs&&(i=vi):(a===vi||a===vs)&&(i=$p)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===vi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Zi.findDOMNode(this);a&&jF(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mi&&this.setState({status:Va})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[Zi.findDOMNode(this),c],d=u[0],p=u[1],g=this.getTimeouts(),v=c?g.appear:g.enter;if(!o&&!a||jC.disabled){this.safeSetState({status:vs},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:vi},function(){i.props.onEntering(d,p),i.onTransitionEnd(v,function(){i.safeSetState({status:vs},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:Zi.findDOMNode(this);if(!i||jC.disabled){this.safeSetState({status:mi},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:$p},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:mi},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Zi.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Va)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=Re(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(Jc.Provider,{value:null},typeof a=="function"?a(o,c):E.cloneElement(E.Children.only(a),c))},t}(E.Component);zr.contextType=Jc,zr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:m.shape({current:typeof Element>"u"?m.any:function(e,t,n,r,o,i){var a=e[t];return m.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:m.oneOfType([m.func.isRequired,m.element.isRequired]).isRequired,in:m.bool,mountOnEnter:m.bool,unmountOnExit:m.bool,appear:m.bool,enter:m.bool,exit:m.bool,timeout:function(t){var n=PF;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:m.func,onEnter:m.func,onEntering:m.func,onEntered:m.func,onExit:m.func,onExiting:m.func,onExited:m.func}:{};function ys(){}zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ys,onEntering:ys,onEntered:ys,onExit:ys,onExiting:ys,onExited:ys},zr.UNMOUNTED=Va,zr.EXITED=mi,zr.ENTERING=vi,zr.ENTERED=vs,zr.EXITING=$p;function kF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eh(e,t){var n=function(i){return t&&E.isValidElement(i)?t(i):i},r=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function MF(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var d=r[u][a];c[r[u][a]]=n(d)}c[u]=n(u)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function yi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function FF(e,t){return eh(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yi(n,"appear",e),enter:yi(n,"enter",e),exit:yi(n,"exit",e)})})}function _F(e,t,n){var r=eh(e.children),o=MF(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(E.isValidElement(a)){var c=i in t,u=i in r,d=t[i],p=E.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:yi(a,"exit",e),enter:yi(a,"enter",e)}):!u&&c&&!p?o[i]=E.cloneElement(a,{in:!1}):u&&c&&E.isValidElement(d)&&(o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:yi(a,"exit",e),enter:yi(a,"enter",e)}))}}),o}var RF=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DF={component:"div",childFactory:function(t){return t}},th=function(e){qp(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(kF(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,u=i.firstRender;return{children:u?FF(o,c):_F(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=eh(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var u=H({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=Re(o,["component","childFactory"]),u=this.state.contextValue,d=RF(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?E.createElement(Jc.Provider,{value:u},d):E.createElement(Jc.Provider,{value:u},E.createElement(i,c,d))},t}(E.Component);th.propTypes=process.env.NODE_ENV!=="production"?{component:m.any,children:m.node,appear:m.bool,enter:m.bool,exit:m.bool,childFactory:m.func}:{},th.defaultProps=DF;function kC(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:d}=e,[p,g]=D.useState(!1),v=Be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=Be(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&g(!0),D.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),f.jsx("span",{className:v,style:y,children:f.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(kC.propTypes={classes:m.object.isRequired,className:m.string,in:m.bool,onExited:m.func,pulsate:m.bool,rippleSize:m.number,rippleX:m.number,rippleY:m.number,timeout:m.number.isRequired});const cr=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),LF=["center","classes","className"];let qc=e=>e,MC,FC,_C,RC;const nh=550,BF=80,NF=Wt.keyframes(MC||(MC=qc`
73
73
  0% {
74
74
  transform: scale(0);
75
75
  opacity: 0.1;
@@ -79,7 +79,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
79
79
  transform: scale(1);
80
80
  opacity: 0.3;
81
81
  }
82
- `)),VF=Wt.keyframes(FC||(FC=Jc`
82
+ `)),VF=Wt.keyframes(FC||(FC=qc`
83
83
  0% {
84
84
  opacity: 1;
85
85
  }
@@ -87,7 +87,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
87
87
  100% {
88
88
  opacity: 0;
89
89
  }
90
- `)),WF=Wt.keyframes(_C||(_C=Jc`
90
+ `)),WF=Wt.keyframes(_C||(_C=qc`
91
91
  0% {
92
92
  transform: scale(1);
93
93
  }
@@ -99,7 +99,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
99
99
  100% {
100
100
  transform: scale(1);
101
101
  }
102
- `)),zF=ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UF=ue(kC,{name:"MuiTouchRipple",slot:"Ripple"})(RC||(RC=Jc`
102
+ `)),zF=ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UF=ue(kC,{name:"MuiTouchRipple",slot:"Ripple"})(RC||(RC=qc`
103
103
  opacity: 0;
104
104
  position: absolute;
105
105
 
@@ -142,15 +142,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
142
142
  animation-iteration-count: infinite;
143
143
  animation-delay: 200ms;
144
144
  }
145
- `),cr.rippleVisible,NF,nh,({theme:e})=>e.transitions.easing.easeInOut,cr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,cr.child,cr.childLeaving,VF,nh,({theme:e})=>e.transitions.easing.easeInOut,cr.childPulsate,WF,({theme:e})=>e.transitions.easing.easeInOut),DC=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=Re(r,LF),[u,d]=D.useState([]),p=D.useRef(0),g=D.useRef(null);D.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const v=D.useRef(!1),y=ms(),b=D.useRef(null),x=D.useRef(null),w=D.useCallback(P=>{const{pulsate:O,rippleX:_,rippleY:R,rippleSize:N,cb:Y}=P;d(X=>[...X,f.jsx(UF,{classes:{ripple:Be(i.ripple,cr.ripple),rippleVisible:Be(i.rippleVisible,cr.rippleVisible),ripplePulsate:Be(i.ripplePulsate,cr.ripplePulsate),child:Be(i.child,cr.child),childLeaving:Be(i.childLeaving,cr.childLeaving),childPulsate:Be(i.childPulsate,cr.childPulsate)},timeout:nh,pulsate:O,rippleX:_,rippleY:R,rippleSize:N},p.current)]),p.current+=1,g.current=Y},[i]),A=D.useCallback((P={},O={},_=()=>{})=>{const{pulsate:R=!1,center:N=o||O.pulsate,fakeElement:Y=!1}=O;if((P==null?void 0:P.type)==="mousedown"&&v.current){v.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(v.current=!0);const X=Y?null:x.current,G=X?X.getBoundingClientRect():{width:0,height:0,left:0,top:0};let re,ne,Z;if(N||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)re=Math.round(G.width/2),ne=Math.round(G.height/2);else{const{clientX:J,clientY:V}=P.touches&&P.touches.length>0?P.touches[0]:P;re=Math.round(J-G.left),ne=Math.round(V-G.top)}if(N)Z=Math.sqrt((2*G.width**2+G.height**2)/3),Z%2===0&&(Z+=1);else{const J=Math.max(Math.abs((X?X.clientWidth:0)-re),re)*2+2,V=Math.max(Math.abs((X?X.clientHeight:0)-ne),ne)*2+2;Z=Math.sqrt(J**2+V**2)}P!=null&&P.touches?b.current===null&&(b.current=()=>{w({pulsate:R,rippleX:re,rippleY:ne,rippleSize:Z,cb:_})},y.start(BF,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:R,rippleX:re,rippleY:ne,rippleSize:Z,cb:_})},[o,w,y]),j=D.useCallback(()=>{A({},{pulsate:!0})},[A]),T=D.useCallback((P,O)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{T(P,O)});return}b.current=null,d(_=>_.length>0?_.slice(1):_),g.current=O},[y]);return D.useImperativeHandle(n,()=>({pulsate:j,start:A,stop:T}),[j,A,T]),f.jsx(zF,H({className:Be(cr.root,i.root,a),ref:x},c,{children:f.jsx(th,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(DC.propTypes={center:m.bool,classes:m.object,className:m.string});function HF(e){return Lt("MuiButtonBase",e)}const GF=Yt("MuiButtonBase",["root","disabled","focusVisible"]),YF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KF=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ut({root:["root",t&&"disabled",n&&"focusVisible"]},HF,o);return n&&r&&(a.root+=` ${r}`),a},XF=ue("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qc=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:v=!1,LinkComponent:y="a",onBlur:b,onClick:x,onContextMenu:w,onDragLeave:A,onFocus:j,onFocusVisible:T,onKeyDown:P,onKeyUp:O,onMouseDown:_,onMouseLeave:R,onMouseUp:N,onTouchEnd:Y,onTouchMove:X,onTouchStart:G,tabIndex:re=0,TouchRippleProps:ne,touchRippleRef:Z,type:J}=r,V=Re(r,YF),$=D.useRef(null),W=D.useRef(null),ie=on(W,Z),{isFocusVisibleRef:U,onFocus:ee,onBlur:de,ref:ge}=Gp(),[fe,he]=D.useState(!1);d&&fe&&he(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{he(!0),$.current.focus()}}),[]);const[me,Se]=D.useState(!1);D.useEffect(()=>{Se(!0)},[]);const be=me&&!p&&!d;D.useEffect(()=>{fe&&v&&!p&&me&&W.current.pulsate()},[p,v,fe,me]);function ye(Ce,gt,Xt=g){return co(We=>(gt&&gt(We),!Xt&&W.current&&W.current[Ce](We),!0))}const we=ye("start",_),Ie=ye("stop",w),pe=ye("stop",A),Ke=ye("stop",N),ve=ye("stop",Ce=>{fe&&Ce.preventDefault(),R&&R(Ce)}),$e=ye("start",G),gn=ye("stop",Y),It=ye("stop",X),bt=ye("stop",Ce=>{de(Ce),U.current===!1&&he(!1),b&&b(Ce)},!1),Zn=co(Ce=>{$.current||($.current=Ce.currentTarget),ee(Ce),U.current===!0&&(he(!0),T&&T(Ce)),j&&j(Ce)}),Ot=()=>{const Ce=$.current;return u&&u!=="button"&&!(Ce.tagName==="A"&&Ce.href)},xt=D.useRef(!1),qt=co(Ce=>{v&&!xt.current&&fe&&W.current&&Ce.key===" "&&(xt.current=!0,W.current.stop(Ce,()=>{W.current.start(Ce)})),Ce.target===Ce.currentTarget&&Ot()&&Ce.key===" "&&Ce.preventDefault(),P&&P(Ce),Ce.target===Ce.currentTarget&&Ot()&&Ce.key==="Enter"&&!d&&(Ce.preventDefault(),x&&x(Ce))}),Ct=co(Ce=>{v&&Ce.key===" "&&W.current&&fe&&!Ce.defaultPrevented&&(xt.current=!1,W.current.stop(Ce,()=>{W.current.pulsate(Ce)})),O&&O(Ce),x&&Ce.target===Ce.currentTarget&&Ot()&&Ce.key===" "&&!Ce.defaultPrevented&&x(Ce)});let Kt=u;Kt==="button"&&(V.href||V.to)&&(Kt=y);const Pt={};Kt==="button"?(Pt.type=J===void 0?"button":J,Pt.disabled=d):(!V.href&&!V.to&&(Pt.role="button"),d&&(Pt["aria-disabled"]=d));const _e=on(n,ge,$);process.env.NODE_ENV!=="production"&&D.useEffect(()=>{be&&!W.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
146
- `))},[be]);const Le=H({},r,{centerRipple:i,component:u,disabled:d,disableRipple:p,disableTouchRipple:g,focusRipple:v,tabIndex:re,focusVisible:fe}),Oe=KF(Le);return f.jsxs(XF,H({as:Kt,className:Be(Oe.root,c),ownerState:Le,onBlur:bt,onClick:x,onContextMenu:Ie,onFocus:Zn,onKeyDown:qt,onKeyUp:Ct,onMouseDown:we,onMouseLeave:ve,onMouseUp:Ke,onDragLeave:pe,onTouchEnd:gn,onTouchMove:It,onTouchStart:$e,ref:_e,tabIndex:d?-1:re,type:J},Pt,V,{children:[a,be?f.jsx(DC,H({ref:ie,center:i},ne)):null]}))});process.env.NODE_ENV!=="production"&&(qc.propTypes={action:Bc,centerRipple:m.bool,children:m.node,classes:m.object,className:m.string,component:E8,disabled:m.bool,disableRipple:m.bool,disableTouchRipple:m.bool,focusRipple:m.bool,focusVisibleClassName:m.string,href:m.any,LinkComponent:m.elementType,onBlur:m.func,onClick:m.func,onContextMenu:m.func,onDragLeave:m.func,onFocus:m.func,onFocusVisible:m.func,onKeyDown:m.func,onKeyUp:m.func,onMouseDown:m.func,onMouseLeave:m.func,onMouseUp:m.func,onTouchEnd:m.func,onTouchMove:m.func,onTouchStart:m.func,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,TouchRippleProps:m.object,touchRippleRef:m.oneOfType([m.func,m.shape({current:m.shape({pulsate:m.func.isRequired,start:m.func.isRequired,stop:m.func.isRequired})})]),type:m.oneOfType([m.oneOf(["button","reset","submit"]),m.string])});const ZF=["slots","slotProps"],QF=ue(qc)(({theme:e})=>H({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":H({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":H({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Fx(e.palette.grey[200],.12)}:{backgroundColor:Fx(e.palette.grey[600],.12)})})),JF=ue(OF)({width:24,height:16});function LC(e){const{slots:t={},slotProps:n={}}=e,r=Re(e,ZF),o=e;return f.jsx("li",{children:f.jsx(QF,H({focusRipple:!0},r,{ownerState:o,children:f.jsx(JF,H({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(LC.propTypes={slotProps:m.shape({collapsedIcon:m.oneOfType([m.func,m.object])}),slots:m.shape({CollapsedIcon:m.elementType}),sx:m.object});function qF(e){return Lt("MuiBreadcrumbs",e)}const $F=Yt("MuiBreadcrumbs",["root","ol","li","separator"]),e_=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],t_=e=>{const{classes:t}=e;return Ut({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},qF,t)},n_=ue(Zc,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${$F.li}`]:t.li},t.root]})({}),r_=ue("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),o_=ue("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function i_(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,f.jsx(o_,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const $c=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:g=1,maxItems:v=8,separator:y="/"}=r,b=Re(r,e_),[x,w]=D.useState(!1),A=H({},r,{component:a,expanded:x,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:g,maxItems:v,separator:y}),j=t_(A),T=Uc({elementType:c.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:A}),P=D.useRef(null),O=R=>{const N=()=>{w(!0);const Y=P.current.querySelector("a[href],button,[tabindex]");Y&&Y.focus()};return g+p>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${g}} >= maxItems={${v}}`].join(`
145
+ `),cr.rippleVisible,NF,nh,({theme:e})=>e.transitions.easing.easeInOut,cr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,cr.child,cr.childLeaving,VF,nh,({theme:e})=>e.transitions.easing.easeInOut,cr.childPulsate,WF,({theme:e})=>e.transitions.easing.easeInOut),DC=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=Re(r,LF),[u,d]=D.useState([]),p=D.useRef(0),g=D.useRef(null);D.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const v=D.useRef(!1),y=ms(),b=D.useRef(null),x=D.useRef(null),w=D.useCallback(P=>{const{pulsate:O,rippleX:_,rippleY:R,rippleSize:N,cb:Y}=P;d(X=>[...X,f.jsx(UF,{classes:{ripple:Be(i.ripple,cr.ripple),rippleVisible:Be(i.rippleVisible,cr.rippleVisible),ripplePulsate:Be(i.ripplePulsate,cr.ripplePulsate),child:Be(i.child,cr.child),childLeaving:Be(i.childLeaving,cr.childLeaving),childPulsate:Be(i.childPulsate,cr.childPulsate)},timeout:nh,pulsate:O,rippleX:_,rippleY:R,rippleSize:N},p.current)]),p.current+=1,g.current=Y},[i]),A=D.useCallback((P={},O={},_=()=>{})=>{const{pulsate:R=!1,center:N=o||O.pulsate,fakeElement:Y=!1}=O;if((P==null?void 0:P.type)==="mousedown"&&v.current){v.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(v.current=!0);const X=Y?null:x.current,G=X?X.getBoundingClientRect():{width:0,height:0,left:0,top:0};let re,ne,Z;if(N||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)re=Math.round(G.width/2),ne=Math.round(G.height/2);else{const{clientX:J,clientY:V}=P.touches&&P.touches.length>0?P.touches[0]:P;re=Math.round(J-G.left),ne=Math.round(V-G.top)}if(N)Z=Math.sqrt((2*G.width**2+G.height**2)/3),Z%2===0&&(Z+=1);else{const J=Math.max(Math.abs((X?X.clientWidth:0)-re),re)*2+2,V=Math.max(Math.abs((X?X.clientHeight:0)-ne),ne)*2+2;Z=Math.sqrt(J**2+V**2)}P!=null&&P.touches?b.current===null&&(b.current=()=>{w({pulsate:R,rippleX:re,rippleY:ne,rippleSize:Z,cb:_})},y.start(BF,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:R,rippleX:re,rippleY:ne,rippleSize:Z,cb:_})},[o,w,y]),j=D.useCallback(()=>{A({},{pulsate:!0})},[A]),T=D.useCallback((P,O)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{T(P,O)});return}b.current=null,d(_=>_.length>0?_.slice(1):_),g.current=O},[y]);return D.useImperativeHandle(n,()=>({pulsate:j,start:A,stop:T}),[j,A,T]),f.jsx(zF,H({className:Be(cr.root,i.root,a),ref:x},c,{children:f.jsx(th,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(DC.propTypes={center:m.bool,classes:m.object,className:m.string});function HF(e){return Lt("MuiButtonBase",e)}const GF=Yt("MuiButtonBase",["root","disabled","focusVisible"]),YF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KF=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ut({root:["root",t&&"disabled",n&&"focusVisible"]},HF,o);return n&&r&&(a.root+=` ${r}`),a},XF=ue("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$c=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:v=!1,LinkComponent:y="a",onBlur:b,onClick:x,onContextMenu:w,onDragLeave:A,onFocus:j,onFocusVisible:T,onKeyDown:P,onKeyUp:O,onMouseDown:_,onMouseLeave:R,onMouseUp:N,onTouchEnd:Y,onTouchMove:X,onTouchStart:G,tabIndex:re=0,TouchRippleProps:ne,touchRippleRef:Z,type:J}=r,V=Re(r,YF),$=D.useRef(null),W=D.useRef(null),ie=on(W,Z),{isFocusVisibleRef:U,onFocus:ee,onBlur:de,ref:ge}=Gp(),[fe,he]=D.useState(!1);d&&fe&&he(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{he(!0),$.current.focus()}}),[]);const[me,Se]=D.useState(!1);D.useEffect(()=>{Se(!0)},[]);const be=me&&!p&&!d;D.useEffect(()=>{fe&&v&&!p&&me&&W.current.pulsate()},[p,v,fe,me]);function ye(Ce,gt,Xt=g){return co(We=>(gt&&gt(We),!Xt&&W.current&&W.current[Ce](We),!0))}const we=ye("start",_),Ie=ye("stop",w),pe=ye("stop",A),Ke=ye("stop",N),ve=ye("stop",Ce=>{fe&&Ce.preventDefault(),R&&R(Ce)}),$e=ye("start",G),gn=ye("stop",Y),It=ye("stop",X),bt=ye("stop",Ce=>{de(Ce),U.current===!1&&he(!1),b&&b(Ce)},!1),Zn=co(Ce=>{$.current||($.current=Ce.currentTarget),ee(Ce),U.current===!0&&(he(!0),T&&T(Ce)),j&&j(Ce)}),Ot=()=>{const Ce=$.current;return u&&u!=="button"&&!(Ce.tagName==="A"&&Ce.href)},xt=D.useRef(!1),qt=co(Ce=>{v&&!xt.current&&fe&&W.current&&Ce.key===" "&&(xt.current=!0,W.current.stop(Ce,()=>{W.current.start(Ce)})),Ce.target===Ce.currentTarget&&Ot()&&Ce.key===" "&&Ce.preventDefault(),P&&P(Ce),Ce.target===Ce.currentTarget&&Ot()&&Ce.key==="Enter"&&!d&&(Ce.preventDefault(),x&&x(Ce))}),Ct=co(Ce=>{v&&Ce.key===" "&&W.current&&fe&&!Ce.defaultPrevented&&(xt.current=!1,W.current.stop(Ce,()=>{W.current.pulsate(Ce)})),O&&O(Ce),x&&Ce.target===Ce.currentTarget&&Ot()&&Ce.key===" "&&!Ce.defaultPrevented&&x(Ce)});let Kt=u;Kt==="button"&&(V.href||V.to)&&(Kt=y);const Pt={};Kt==="button"?(Pt.type=J===void 0?"button":J,Pt.disabled=d):(!V.href&&!V.to&&(Pt.role="button"),d&&(Pt["aria-disabled"]=d));const _e=on(n,ge,$);process.env.NODE_ENV!=="production"&&D.useEffect(()=>{be&&!W.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
146
+ `))},[be]);const Le=H({},r,{centerRipple:i,component:u,disabled:d,disableRipple:p,disableTouchRipple:g,focusRipple:v,tabIndex:re,focusVisible:fe}),Oe=KF(Le);return f.jsxs(XF,H({as:Kt,className:Be(Oe.root,c),ownerState:Le,onBlur:bt,onClick:x,onContextMenu:Ie,onFocus:Zn,onKeyDown:qt,onKeyUp:Ct,onMouseDown:we,onMouseLeave:ve,onMouseUp:Ke,onDragLeave:pe,onTouchEnd:gn,onTouchMove:It,onTouchStart:$e,ref:_e,tabIndex:d?-1:re,type:J},Pt,V,{children:[a,be?f.jsx(DC,H({ref:ie,center:i},ne)):null]}))});process.env.NODE_ENV!=="production"&&($c.propTypes={action:Nc,centerRipple:m.bool,children:m.node,classes:m.object,className:m.string,component:E8,disabled:m.bool,disableRipple:m.bool,disableTouchRipple:m.bool,focusRipple:m.bool,focusVisibleClassName:m.string,href:m.any,LinkComponent:m.elementType,onBlur:m.func,onClick:m.func,onContextMenu:m.func,onDragLeave:m.func,onFocus:m.func,onFocusVisible:m.func,onKeyDown:m.func,onKeyUp:m.func,onMouseDown:m.func,onMouseLeave:m.func,onMouseUp:m.func,onTouchEnd:m.func,onTouchMove:m.func,onTouchStart:m.func,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,TouchRippleProps:m.object,touchRippleRef:m.oneOfType([m.func,m.shape({current:m.shape({pulsate:m.func.isRequired,start:m.func.isRequired,stop:m.func.isRequired})})]),type:m.oneOfType([m.oneOf(["button","reset","submit"]),m.string])});const ZF=["slots","slotProps"],QF=ue($c)(({theme:e})=>H({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":H({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":H({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Fx(e.palette.grey[200],.12)}:{backgroundColor:Fx(e.palette.grey[600],.12)})})),JF=ue(OF)({width:24,height:16});function LC(e){const{slots:t={},slotProps:n={}}=e,r=Re(e,ZF),o=e;return f.jsx("li",{children:f.jsx(QF,H({focusRipple:!0},r,{ownerState:o,children:f.jsx(JF,H({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(LC.propTypes={slotProps:m.shape({collapsedIcon:m.oneOfType([m.func,m.object])}),slots:m.shape({CollapsedIcon:m.elementType}),sx:m.object});function qF(e){return Lt("MuiBreadcrumbs",e)}const $F=Yt("MuiBreadcrumbs",["root","ol","li","separator"]),e_=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],t_=e=>{const{classes:t}=e;return Ut({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},qF,t)},n_=ue(Qc,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${$F.li}`]:t.li},t.root]})({}),r_=ue("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),o_=ue("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function i_(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,f.jsx(o_,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const eu=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:g=1,maxItems:v=8,separator:y="/"}=r,b=Re(r,e_),[x,w]=D.useState(!1),A=H({},r,{component:a,expanded:x,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:g,maxItems:v,separator:y}),j=t_(A),T=Hc({elementType:c.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:A}),P=D.useRef(null),O=R=>{const N=()=>{w(!0);const Y=P.current.querySelector("a[href],button,[tabindex]");Y&&Y.focus()};return g+p>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${g}} >= maxItems={${v}}`].join(`
147
147
  `)),R):[...R.slice(0,g),f.jsx(LC,{"aria-label":d,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:N},"ellipsis"),...R.slice(R.length-p,R.length)]},_=D.Children.toArray(o).filter(R=>(process.env.NODE_ENV!=="production"&&Bp.isFragment(R)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
148
- `)),D.isValidElement(R))).map((R,N)=>f.jsx("li",{className:j.li,children:R},`child-${N}`));return f.jsx(n_,H({ref:n,component:a,color:"text.secondary",className:Be(j.root,i),ownerState:A},b,{children:f.jsx(r_,{className:j.ol,ref:P,ownerState:A,children:i_(x||v&&_.length<=v?_:O(_),j.separator,y,A)})}))});process.env.NODE_ENV!=="production"&&($c.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,expandText:m.string,itemsAfterCollapse:zc,itemsBeforeCollapse:zc,maxItems:zc,separator:m.node,slotProps:m.shape({collapsedIcon:m.oneOfType([m.func,m.object])}),slots:m.shape({CollapsedIcon:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function s_({id:e,title:t,icon:n,url:r,last:o}){const i=n||Ue.ApartmentOutlined;return f.jsxs(S.Typography,{component:ut.Link,to:r,variant:o?"subtitle1":"h6",sx:{textDecoration:"none",display:"inline-flex",alignItems:"center"},color:"textSecondary",children:[n?f.jsx(i,{style:{marginRight:8,fontSize:"0.875rem"}}):null,t]},e)}function BC({home:e="Home",card:t,divider:n=!0,icon:r,icons:o,maxItems:i,navigation:a,rightAlign:c,separator:u,title:d,titleBottom:p,sx:g,breadcrumbs:v,mode:y="navigation",...b}){const x=pt(),w=ut.useLocation(),[A,j]=E.useState(),[T,P]=E.useState(),O=w.pathname,_={marginRight:x.spacing(.75),marginTop:`-${x.spacing(.25)}`,width:"1rem",height:"1rem",color:x.palette.secondary.main};function R($){$.children&&$.children.filter(W=>(W.type&&W.type==="collapse"?(R(W),W.url===O&&(j(W),P(W))):W.type&&W.type==="item"&&O.includes(W.url)&&(j($),P(W)),!1))}E.useEffect(()=>{var $;($=a==null?void 0:a.items)==null||$.map(W=>(W.type&&W.type==="group"&&R(W),!1))});const N=u,Y=u?f.jsx(N,{style:{fontSize:"0.75rem",marginTop:2}}):"/",X={mb:2,bgcolor:t===!1?"transparent":"inherit",...g,[x.breakpoints.down("sm")]:{mb:1}};let G,re,ne=f.jsx(S.Typography,{}),Z="",J,V;return y==="breadcrumbs"?f.jsxs(On,{border:t,sx:X,...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[d&&!p?f.jsx(S.Grid,{item:!0,children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null,f.jsx(S.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:Y,sx:{[x.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(Ue.HomeOutlined,{style:_}):null,r&&!o?f.jsx(Ue.HomeFilled,{style:{..._,marginRight:0}}):null,!r||o?e:null]}),v.map(s_)]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]}):(A&&A.type==="collapse"&&A.breadcrumbs===!0&&(J=A.icon?A.icon:Ue.ApartmentOutlined,G=f.jsxs(S.Typography,{component:ut.Link,to:(T==null?void 0:T.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[o?f.jsx(J,{style:_}):null,A.title]}),ne=f.jsxs(On,{border:t,sx:X,...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[f.jsx(S.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:Y,children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(Ue.HomeOutlined,{style:_}):null,r&&!o?f.jsx(Ue.HomeFilled,{style:{..._,marginRight:0}}):null,!r||o?e:null]}),G]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:A.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]})),T&&T.type==="item"&&(Z=T.title,V=T.icon?T.icon:Ue.ApartmentOutlined,re=f.jsxs(S.Typography,{variant:"subtitle1",color:"textPrimary",component:ut.Link,to:T.url,sx:{textDecoration:"none"},children:[o?f.jsx(V,{style:_}):null,Z]}),T.breadcrumbs!==!1&&(ne=f.jsxs(On,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...g,[x.breakpoints.down("sm")]:{mb:1}},...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[d&&!p?f.jsx(S.Grid,{item:!0,children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null,f.jsx(S.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:Y,children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(Ue.HomeOutlined,{style:_}):null,r&&!o?f.jsx(Ue.HomeFilled,{style:{..._,marginRight:0}}):null,!r||o?e:null]}),G,re]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]}))),ne)}function rh({color:e,size:t,variant:n,sx:r}){const o=pt(),i=nn(o,e),{main:a}=i;return f.jsx(S.Box,{component:"span",sx:{width:t||8,height:t||8,borderRadius:"50%",bgcolor:n==="outlined"?"":a,...n==="outlined"&&{border:`1px solid ${a}`},...r}})}function bs(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;case"primaryButton":return e.customShadows.primaryButton;case"secondaryButton":return e.customShadows.secondaryButton;case"errorButton":return e.customShadows.errorButton;case"warningButton":return e.customShadows.warningButton;case"infoButton":return e.customShadows.infoButton;case"successButton":return e.customShadows.successButton;default:return e.customShadows.primary}}function a_(e){return Lt("MuiIconButton",e)}const l_=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c_=["edge","children","className","color","disabled","disableFocusRipple","size"],u_=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return Ut(a,a_,t)},d_=ue(qc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>H({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return H({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&H({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":H({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${l_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),oh=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium"}=r,g=Re(r,c_),v=H({},r,{edge:o,color:c,disabled:u,disableFocusRipple:d,size:p}),y=u_(v);return f.jsx(d_,H({className:Be(y.root,a),centerRipple:!0,focusRipple:!d,disabled:u,ref:n},g,{ownerState:v,children:i}))});process.env.NODE_ENV!=="production"&&(oh.propTypes={children:ao(m.node,e=>D.Children.toArray(e.children).some(n=>D.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
149
- `)):null),classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,disableFocusRipple:m.bool,disableRipple:m.bool,edge:m.oneOf(["end","start",!1]),size:m.oneOfType([m.oneOf(["small","medium","large"]),m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function f_({variant:e,theme:t,color:n}){const r=nn(t,n),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d=`${n}Button`,p=bs(t,d),g={"&::after":{boxShadow:`0 0 6px 6px ${et(c,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${et(c,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:a},...g};case"light":return{color:c,backgroundColor:o,"&:hover":{backgroundColor:i},...g};case"shadow":return{boxShadow:p,color:u,backgroundColor:c,"&:hover":{boxShadow:"none",backgroundColor:a},...g};case"outlined":return{"&:hover":{backgroundColor:"transparent",color:a,borderColor:a},...g};case"dashed":return{backgroundColor:o,"&:hover":{color:a,borderColor:a},...g};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...g}}}const p_=ue(oh,{shouldForwardProp:e=>e!=="variant"&&e!=="shape"})(({theme:e,variant:t,shape:n,color:r})=>({position:"relative","::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...n==="rounded"&&{borderRadius:"50%"},...t==="outlined"&&{border:"1px solid",borderColor:"inherit"},...t==="dashed"&&{border:"1px dashed",borderColor:"inherit"},...t!=="text"&&{"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},...f_({variant:t,theme:e,color:r})})),eu=E.forwardRef(({variant:e="text",shape:t="square",children:n,color:r="primary",...o},i)=>{const a=pt();return f.jsx(p_,{ref:i,disableRipple:!0,variant:e,shape:t,theme:a,color:r,...o,children:n})}),h_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ne,createChainedFunction:zp,createSvgIcon:Wp,debounce:A8,deprecatedPropType:I8,isMuiElement:O8,ownerDocument:Un,ownerWindow:Nc,requirePropFactory:P8,setRef:ps,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
150
- `)),Ox.configure(e)}},unstable_useEnhancedEffect:Wr,unstable_useId:Vc,unsupportedProp:k8,useControlled:uC,useEventCallback:co,useForkRef:on,useIsFocusVisible:Gp},Symbol.toStringTag,{value:"Module"}));function g_(e){return typeof e=="string"}function m_(e,t,n){return e===void 0||g_(e)?t:H({},t,{ownerState:H({},t.ownerState,n)})}const v_={disableDefaultClasses:!1},y_=D.createContext(v_);function b_(e){const{disableDefaultClasses:t}=D.useContext(y_);return n=>t?"":e(n)}function x_(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function C_(e,t,n){return typeof e=="function"?e(t,n):e}function NC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function w_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=H({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=H({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=x_(H({},o,r)),c=NC(r),u=NC(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=H({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=H({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const S_=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function E_(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Re(e,S_),c=i?{}:C_(r,o),{props:u,internalRef:d}=w_(H({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return m_(n,H({},u,{ref:p}),o)}var Pn="top",ur="bottom",dr="right",jn="left",ih="auto",Wa=[Pn,ur,dr,jn],xs="start",za="end",T_="clippingParents",VC="viewport",Ua="popper",A_="reference",WC=Wa.reduce(function(e,t){return e.concat([t+"-"+xs,t+"-"+za])},[]),zC=[].concat(Wa,[ih]).reduce(function(e,t){return e.concat([t,t+"-"+xs,t+"-"+za])},[]),I_="beforeRead",O_="read",P_="afterRead",j_="beforeMain",k_="main",M_="afterMain",F_="beforeWrite",__="write",R_="afterWrite",D_=[I_,O_,P_,j_,k_,M_,F_,__,R_];function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function Hn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bi(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function fr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sh(e){if(typeof ShadowRoot>"u")return!1;var t=Hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!fr(i)||!Ur(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function B_(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(u,d){return u[d]="",u},{});!fr(o)||!Ur(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const N_={name:"applyStyles",enabled:!0,phase:"write",fn:L_,effect:B_,requires:["computeStyles"]};function Hr(e){return e.split("-")[0]}var xi=Math.max,tu=Math.min,Cs=Math.round;function ah(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function UC(){return!/^((?!chrome|android).)*safari/i.test(ah())}function ws(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&fr(e)&&(o=e.offsetWidth>0&&Cs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cs(r.height)/e.offsetHeight||1);var a=bi(e)?Hn(e):window,c=a.visualViewport,u=!UC()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/i,g=r.width/o,v=r.height/i;return{width:g,height:v,top:p,right:d+g,bottom:p+v,left:d,x:d,y:p}}function lh(e){var t=ws(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function HC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uo(e){return Hn(e).getComputedStyle(e)}function V_(e){return["table","td","th"].indexOf(Ur(e))>=0}function Do(e){return((bi(e)?e.ownerDocument:e.document)||window.document).documentElement}function nu(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||(sh(e)?e.host:null)||Do(e)}function GC(e){return!fr(e)||uo(e).position==="fixed"?null:e.offsetParent}function W_(e){var t=/firefox/i.test(ah()),n=/Trident/i.test(ah());if(n&&fr(e)){var r=uo(e);if(r.position==="fixed")return null}var o=nu(e);for(sh(o)&&(o=o.host);fr(o)&&["html","body"].indexOf(Ur(o))<0;){var i=uo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ha(e){for(var t=Hn(e),n=GC(e);n&&V_(n)&&uo(n).position==="static";)n=GC(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&uo(n).position==="static")?t:n||W_(e)||t}function ch(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ga(e,t,n){return xi(e,tu(t,n))}function z_(e,t,n){var r=Ga(e,t,n);return r>n?n:r}function YC(){return{top:0,right:0,bottom:0,left:0}}function KC(e){return Object.assign({},YC(),e)}function XC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var U_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,KC(typeof t!="number"?t:XC(t,Wa))};function H_(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Hr(n.placement),u=ch(c),d=[jn,dr].indexOf(c)>=0,p=d?"height":"width";if(!(!i||!a)){var g=U_(o.padding,n),v=lh(i),y=u==="y"?Pn:jn,b=u==="y"?ur:dr,x=n.rects.reference[p]+n.rects.reference[u]-a[u]-n.rects.popper[p],w=a[u]-n.rects.reference[u],A=Ha(i),j=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,T=x/2-w/2,P=g[y],O=j-v[p]-g[b],_=j/2-v[p]/2+T,R=Ga(P,_,O),N=u;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-_,t)}}function G_(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||HC(t.elements.popper,o)&&(t.elements.arrow=o))}const Y_={name:"arrow",enabled:!0,phase:"main",fn:H_,effect:G_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ss(e){return e.split("-")[1]}var K_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X_(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cs(n*o)/o||0,y:Cs(r*o)/o||0}}function ZC(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,v=a.x,y=v===void 0?0:v,b=a.y,x=b===void 0?0:b,w=typeof p=="function"?p({x:y,y:x}):{x:y,y:x};y=w.x,x=w.y;var A=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),T=jn,P=Pn,O=window;if(d){var _=Ha(n),R="clientHeight",N="clientWidth";if(_===Hn(n)&&(_=Do(n),uo(_).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),_=_,o===Pn||(o===jn||o===dr)&&i===za){P=ur;var Y=g&&_===O&&O.visualViewport?O.visualViewport.height:_[R];x-=Y-r.height,x*=u?1:-1}if(o===jn||(o===Pn||o===ur)&&i===za){T=dr;var X=g&&_===O&&O.visualViewport?O.visualViewport.width:_[N];y-=X-r.width,y*=u?1:-1}}var G=Object.assign({position:c},d&&K_),re=p===!0?X_({x:y,y:x},Hn(n)):{x:y,y:x};if(y=re.x,x=re.y,u){var ne;return Object.assign({},G,(ne={},ne[P]=j?"0":"",ne[T]=A?"0":"",ne.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",ne))}return Object.assign({},G,(t={},t[P]=j?x+"px":"",t[T]=A?y+"px":"",t.transform="",t))}function Z_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Hr(t.placement),variation:Ss(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZC(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZC(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Q_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z_,data:{}};var ru={passive:!0};function J_(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,u=Hn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,ru)}),c&&u.addEventListener("resize",n.update,ru),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,ru)}),c&&u.removeEventListener("resize",n.update,ru)}}const q_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:J_,data:{}};var $_={left:"right",right:"left",bottom:"top",top:"bottom"};function ou(e){return e.replace(/left|right|bottom|top/g,function(t){return $_[t]})}var e9={start:"end",end:"start"};function QC(e){return e.replace(/start|end/g,function(t){return e9[t]})}function uh(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dh(e){return ws(Do(e)).left+uh(e).scrollLeft}function t9(e,t){var n=Hn(e),r=Do(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;var d=UC();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c+dh(e),y:u}}function n9(e){var t,n=Do(e),r=uh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=xi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+dh(e),u=-r.scrollTop;return uo(o||n).direction==="rtl"&&(c+=xi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}function fh(e){var t=uo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function JC(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:fr(e)&&fh(e)?e:JC(nu(e))}function Ya(e,t){var n;t===void 0&&(t=[]);var r=JC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Hn(r),a=o?[i].concat(i.visualViewport||[],fh(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Ya(nu(a)))}function ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r9(e,t){var n=ws(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qC(e,t,n){return t===VC?ph(t9(e,n)):bi(t)?r9(t,n):ph(n9(Do(e)))}function o9(e){var t=Ya(nu(e)),n=["absolute","fixed"].indexOf(uo(e).position)>=0,r=n&&fr(e)?Ha(e):e;return bi(r)?t.filter(function(o){return bi(o)&&HC(o,r)&&Ur(o)!=="body"}):[]}function i9(e,t,n,r){var o=t==="clippingParents"?o9(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(u,d){var p=qC(e,d,r);return u.top=xi(p.top,u.top),u.right=tu(p.right,u.right),u.bottom=tu(p.bottom,u.bottom),u.left=xi(p.left,u.left),u},qC(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function $C(e){var t=e.reference,n=e.element,r=e.placement,o=r?Hr(r):null,i=r?Ss(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case Pn:u={x:a,y:t.y-n.height};break;case ur:u={x:a,y:t.y+t.height};break;case dr:u={x:t.x+t.width,y:c};break;case jn:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?ch(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case xs:u[d]=u[d]-(t[p]/2-n[p]/2);break;case za:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function Ka(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,u=c===void 0?T_:c,d=n.rootBoundary,p=d===void 0?VC:d,g=n.elementContext,v=g===void 0?Ua:g,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,w=x===void 0?0:x,A=KC(typeof w!="number"?w:XC(w,Wa)),j=v===Ua?A_:Ua,T=e.rects.popper,P=e.elements[b?j:v],O=i9(bi(P)?P:P.contextElement||Do(e.elements.popper),u,p,a),_=ws(e.elements.reference),R=$C({reference:_,element:T,strategy:"absolute",placement:o}),N=ph(Object.assign({},T,R)),Y=v===Ua?N:_,X={top:O.top-Y.top+A.top,bottom:Y.bottom-O.bottom+A.bottom,left:O.left-Y.left+A.left,right:Y.right-O.right+A.right},G=e.modifiersData.offset;if(v===Ua&&G){var re=G[o];Object.keys(X).forEach(function(ne){var Z=[dr,ur].indexOf(ne)>=0?1:-1,J=[Pn,ur].indexOf(ne)>=0?"y":"x";X[ne]+=re[J]*Z})}return X}function s9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?zC:u,p=Ss(r),g=p?c?WC:WC.filter(function(b){return Ss(b)===p}):Wa,v=g.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=g);var y=v.reduce(function(b,x){return b[x]=Ka(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Hr(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function a9(e){if(Hr(e)===ih)return[];var t=ou(e);return[QC(e),t,QC(t)]}function l9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,x=n.allowedAutoPlacements,w=t.options.placement,A=Hr(w),j=A===w,T=u||(j||!b?[ou(w)]:a9(w)),P=[w].concat(T).reduce(function(fe,he){return fe.concat(Hr(he)===ih?s9(t,{placement:he,boundary:p,rootBoundary:g,padding:d,flipVariations:b,allowedAutoPlacements:x}):he)},[]),O=t.rects.reference,_=t.rects.popper,R=new Map,N=!0,Y=P[0],X=0;X<P.length;X++){var G=P[X],re=Hr(G),ne=Ss(G)===xs,Z=[Pn,ur].indexOf(re)>=0,J=Z?"width":"height",V=Ka(t,{placement:G,boundary:p,rootBoundary:g,altBoundary:v,padding:d}),$=Z?ne?dr:jn:ne?ur:Pn;O[J]>_[J]&&($=ou($));var W=ou($),ie=[];if(i&&ie.push(V[re]<=0),c&&ie.push(V[$]<=0,V[W]<=0),ie.every(function(fe){return fe})){Y=G,N=!1;break}R.set(G,ie)}if(N)for(var U=b?3:1,ee=function(he){var me=P.find(function(Se){var be=R.get(Se);if(be)return be.slice(0,he).every(function(ye){return ye})});if(me)return Y=me,"break"},de=U;de>0;de--){var ge=ee(de);if(ge==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const c9={name:"flip",enabled:!0,phase:"main",fn:l9,requiresIfExists:["offset"],data:{_skip:!1}};function e1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function t1(e){return[Pn,dr,ur,jn].some(function(t){return e[t]>=0})}function u9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ka(t,{elementContext:"reference"}),c=Ka(t,{altBoundary:!0}),u=e1(a,r),d=e1(c,o,i),p=t1(u),g=t1(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const d9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u9};function f9(e,t,n){var r=Hr(e),o=[jn,Pn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[jn,dr].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function p9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=zC.reduce(function(p,g){return p[g]=f9(g,t.rects,i),p},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const h9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p9};function g9(e){var t=e.state,n=e.name;t.modifiersData[n]=$C({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const m9={name:"popperOffsets",enabled:!0,phase:"read",fn:g9,data:{}};function v9(e){return e==="x"?"y":"x"}function y9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,x=b===void 0?0:b,w=Ka(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:p}),A=Hr(t.placement),j=Ss(t.placement),T=!j,P=ch(A),O=v9(P),_=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,Y=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,X=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,re={x:0,y:0};if(_){if(i){var ne,Z=P==="y"?Pn:jn,J=P==="y"?ur:dr,V=P==="y"?"height":"width",$=_[P],W=$+w[Z],ie=$-w[J],U=y?-N[V]/2:0,ee=j===xs?R[V]:N[V],de=j===xs?-N[V]:-R[V],ge=t.elements.arrow,fe=y&&ge?lh(ge):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:YC(),me=he[Z],Se=he[J],be=Ga(0,R[V],fe[V]),ye=T?R[V]/2-U-be-me-X.mainAxis:ee-be-me-X.mainAxis,we=T?-R[V]/2+U+be+Se+X.mainAxis:de+be+Se+X.mainAxis,Ie=t.elements.arrow&&Ha(t.elements.arrow),pe=Ie?P==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,Ke=(ne=G==null?void 0:G[P])!=null?ne:0,ve=$+ye-Ke-pe,$e=$+we-Ke,gn=Ga(y?tu(W,ve):W,$,y?xi(ie,$e):ie);_[P]=gn,re[P]=gn-$}if(c){var It,bt=P==="x"?Pn:jn,Zn=P==="x"?ur:dr,Ot=_[O],xt=O==="y"?"height":"width",qt=Ot+w[bt],Ct=Ot-w[Zn],Kt=[Pn,jn].indexOf(A)!==-1,Pt=(It=G==null?void 0:G[O])!=null?It:0,_e=Kt?qt:Ot-R[xt]-N[xt]-Pt+X.altAxis,Le=Kt?Ot+R[xt]+N[xt]-Pt-X.altAxis:Ct,Oe=y&&Kt?z_(_e,Ot,Le):Ga(y?_e:qt,Ot,y?Le:Ct);_[O]=Oe,re[O]=Oe-Ot}t.modifiersData[r]=re}}const b9={name:"preventOverflow",enabled:!0,phase:"main",fn:y9,requiresIfExists:["offset"]};function x9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function C9(e){return e===Hn(e)||!fr(e)?uh(e):x9(e)}function w9(e){var t=e.getBoundingClientRect(),n=Cs(t.width)/e.offsetWidth||1,r=Cs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function S9(e,t,n){n===void 0&&(n=!1);var r=fr(t),o=fr(t)&&w9(t),i=Do(t),a=ws(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||fh(i))&&(c=C9(t)),fr(t)?(u=ws(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=dh(i))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function E9(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function T9(e){var t=E9(e);return D_.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function A9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function I9(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var n1={placement:"bottom",modifiers:[],strategy:"absolute"};function r1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function O9(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?n1:o;return function(c,u,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},n1,i),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],v=!1,y={state:p,setOptions:function(A){var j=typeof A=="function"?A(p.options):A;x(),p.options=Object.assign({},i,p.options,j),p.scrollParents={reference:bi(c)?Ya(c):c.contextElement?Ya(c.contextElement):[],popper:Ya(u)};var T=T9(I9([].concat(r,p.options.modifiers)));return p.orderedModifiers=T.filter(function(P){return P.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var A=p.elements,j=A.reference,T=A.popper;if(r1(j,T)){p.rects={reference:S9(j,Ha(T),p.options.strategy==="fixed"),popper:lh(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(X){return p.modifiersData[X.name]=Object.assign({},X.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var O=p.orderedModifiers[P],_=O.fn,R=O.options,N=R===void 0?{}:R,Y=O.name;typeof _=="function"&&(p=_({state:p,options:N,name:Y,instance:y})||p)}}}},update:A9(function(){return new Promise(function(w){y.forceUpdate(),w(p)})}),destroy:function(){x(),v=!0}};if(!r1(c,u))return y;y.setOptions(d).then(function(w){!v&&d.onFirstUpdate&&d.onFirstUpdate(w)});function b(){p.orderedModifiers.forEach(function(w){var A=w.name,j=w.options,T=j===void 0?{}:j,P=w.effect;if(typeof P=="function"){var O=P({state:p,name:A,instance:y,options:T}),_=function(){};g.push(O||_)}})}function x(){g.forEach(function(w){return w()}),g=[]}return y}}var P9=[q_,m9,Q_,N_,h9,c9,b9,Y_,d9],o1=O9({defaultModifiers:P9});function j9(e){return typeof e=="function"?e():e}const iu=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Wr(()=>{i||c(j9(o)||document.body)},[o,i]),Wr(()=>{if(a&&!i)return ps(n,a),()=>{ps(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&vv.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(iu.propTypes={children:m.node,container:m.oneOfType([lo,m.func]),disablePortal:m.bool}),process.env.NODE_ENV!=="production"&&(iu.propTypes=La(iu.propTypes));function k9(e){return Lt("MuiPopper",e)}Yt("MuiPopper",["root"]);const M9=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],F9=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _9(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function su(e){return typeof e=="function"?e():e}function au(e){return e.nodeType!==void 0}function R9(e){return!au(e)}const D9=()=>Ut({root:["root"]},b_(k9)),L9={},B9=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=Re(t,M9),A=D.useRef(null),j=on(A,n),T=D.useRef(null),P=on(T,v),O=D.useRef(P);Wr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>T.current,[]);const _=_9(p,a),[R,N]=D.useState(_),[Y,X]=D.useState(su(o));D.useEffect(()=>{T.current&&T.current.forceUpdate()}),D.useEffect(()=>{o&&X(su(o))},[o]),Wr(()=>{if(!Y||!d)return;const J=W=>{N(W.placement)};if(process.env.NODE_ENV!=="production"&&Y&&au(Y)&&Y.nodeType===1){const W=Y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
151
- `))}let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{J(W)}}];u!=null&&(V=V.concat(u)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const $=o1(Y,A.current,H({placement:_},g,{modifiers:V}));return O.current($),()=>{$.destroy(),O.current(null)}},[Y,c,u,d,g,_]);const G={placement:R};x!==null&&(G.TransitionProps=x);const re=D9(),ne=(r=b.root)!=null?r:"div",Z=E_({elementType:ne,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:j},ownerState:t,className:re.root});return f.jsx(ne,H({},Z,{children:typeof i=="function"?i(G):i}))}),hh=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:v=L9,popperRef:y,style:b,transition:x=!1,slotProps:w={},slots:A={}}=t,j=Re(t,F9),[T,P]=D.useState(!0),O=()=>{P(!1)},_=()=>{P(!0)};if(!u&&!p&&(!x||T))return null;let R;if(i)R=i;else if(r){const X=su(r);R=X&&au(X)?Un(X).body:Un(null).body}const N=!p&&u&&(!x||T)?"none":void 0,Y=x?{in:p,onEnter:O,onExited:_}:void 0;return f.jsx(iu,{disablePortal:c,container:R,children:f.jsx(B9,H({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:x?!T:p,placement:g,popperOptions:v,popperRef:y,slotProps:w,slots:A},j,{style:H({position:"fixed",top:0,left:0,display:N},b),TransitionProps:Y,children:o}))})});process.env.NODE_ENV!=="production"&&(hh.propTypes={anchorEl:ao(m.oneOfType([lo,m.object,m.func]),e=>{if(e.open){const t=su(e.anchorEl);if(t&&au(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
148
+ `)),D.isValidElement(R))).map((R,N)=>f.jsx("li",{className:j.li,children:R},`child-${N}`));return f.jsx(n_,H({ref:n,component:a,color:"text.secondary",className:Be(j.root,i),ownerState:A},b,{children:f.jsx(r_,{className:j.ol,ref:P,ownerState:A,children:i_(x||v&&_.length<=v?_:O(_),j.separator,y,A)})}))});process.env.NODE_ENV!=="production"&&(eu.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,expandText:m.string,itemsAfterCollapse:Uc,itemsBeforeCollapse:Uc,maxItems:Uc,separator:m.node,slotProps:m.shape({collapsedIcon:m.oneOfType([m.func,m.object])}),slots:m.shape({CollapsedIcon:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function s_({id:e,title:t,icon:n,url:r,last:o}){const i=n||Ue.ApartmentOutlined;return f.jsxs(S.Typography,{component:ut.Link,to:r,variant:o?"subtitle1":"h6",sx:{textDecoration:"none",display:"inline-flex",alignItems:"center"},color:"textSecondary",children:[n?f.jsx(i,{style:{marginRight:8,fontSize:"0.875rem"}}):null,t]},e)}function BC({home:e="Home",card:t,divider:n=!0,icon:r,icons:o,maxItems:i,navigation:a,rightAlign:c,separator:u,title:d,titleBottom:p,sx:g,breadcrumbs:v,mode:y="navigation",...b}){const x=pt(),w=ut.useLocation(),[A,j]=E.useState(),[T,P]=E.useState(),O=w.pathname,_={marginRight:x.spacing(.75),marginTop:`-${x.spacing(.25)}`,width:"1rem",height:"1rem",color:x.palette.secondary.main};function R($){$.children&&$.children.filter(W=>(W.type&&W.type==="collapse"?(R(W),W.url===O&&(j(W),P(W))):W.type&&W.type==="item"&&O.includes(W.url)&&(j($),P(W)),!1))}E.useEffect(()=>{var $;($=a==null?void 0:a.items)==null||$.map(W=>(W.type&&W.type==="group"&&R(W),!1))});const N=u,Y=u?f.jsx(N,{style:{fontSize:"0.75rem",marginTop:2}}):"/",X={mb:2,bgcolor:t===!1?"transparent":"inherit",...g,[x.breakpoints.down("sm")]:{mb:1}};let G,re,ne=f.jsx(S.Typography,{}),Z="",J,V;return y==="breadcrumbs"?f.jsxs(On,{border:t,sx:X,...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[d&&!p?f.jsx(S.Grid,{item:!0,children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null,f.jsx(S.Grid,{item:!0,children:f.jsxs(eu,{"aria-label":"breadcrumb",maxItems:i||8,separator:Y,sx:{[x.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(Ue.HomeOutlined,{style:_}):null,r&&!o?f.jsx(Ue.HomeFilled,{style:{..._,marginRight:0}}):null,!r||o?e:null]}),v.map(s_)]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]}):(A&&A.type==="collapse"&&A.breadcrumbs===!0&&(J=A.icon?A.icon:Ue.ApartmentOutlined,G=f.jsxs(S.Typography,{component:ut.Link,to:(T==null?void 0:T.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[o?f.jsx(J,{style:_}):null,A.title]}),ne=f.jsxs(On,{border:t,sx:X,...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[f.jsx(S.Grid,{item:!0,children:f.jsxs(eu,{"aria-label":"breadcrumb",maxItems:i||8,separator:Y,children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(Ue.HomeOutlined,{style:_}):null,r&&!o?f.jsx(Ue.HomeFilled,{style:{..._,marginRight:0}}):null,!r||o?e:null]}),G]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:A.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]})),T&&T.type==="item"&&(Z=T.title,V=T.icon?T.icon:Ue.ApartmentOutlined,re=f.jsxs(S.Typography,{variant:"subtitle1",color:"textPrimary",component:ut.Link,to:T.url,sx:{textDecoration:"none"},children:[o?f.jsx(V,{style:_}):null,Z]}),T.breadcrumbs!==!1&&(ne=f.jsxs(On,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...g,[x.breakpoints.down("sm")]:{mb:1}},...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[d&&!p?f.jsx(S.Grid,{item:!0,children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null,f.jsx(S.Grid,{item:!0,children:f.jsxs(eu,{"aria-label":"breadcrumb",maxItems:i||8,separator:Y,children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(Ue.HomeOutlined,{style:_}):null,r&&!o?f.jsx(Ue.HomeFilled,{style:{..._,marginRight:0}}):null,!r||o?e:null]}),G,re]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]}))),ne)}function rh({color:e,size:t,variant:n,sx:r}){const o=pt(),i=nn(o,e),{main:a}=i;return f.jsx(S.Box,{component:"span",sx:{width:t||8,height:t||8,borderRadius:"50%",bgcolor:n==="outlined"?"":a,...n==="outlined"&&{border:`1px solid ${a}`},...r}})}function bs(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;case"primaryButton":return e.customShadows.primaryButton;case"secondaryButton":return e.customShadows.secondaryButton;case"errorButton":return e.customShadows.errorButton;case"warningButton":return e.customShadows.warningButton;case"infoButton":return e.customShadows.infoButton;case"successButton":return e.customShadows.successButton;default:return e.customShadows.primary}}function a_(e){return Lt("MuiIconButton",e)}const l_=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),c_=["edge","children","className","color","disabled","disableFocusRipple","size"],u_=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return Ut(a,a_,t)},d_=ue($c,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>H({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return H({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&H({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":H({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${l_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),oh=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium"}=r,g=Re(r,c_),v=H({},r,{edge:o,color:c,disabled:u,disableFocusRipple:d,size:p}),y=u_(v);return f.jsx(d_,H({className:Be(y.root,a),centerRipple:!0,focusRipple:!d,disabled:u,ref:n},g,{ownerState:v,children:i}))});process.env.NODE_ENV!=="production"&&(oh.propTypes={children:ao(m.node,e=>D.Children.toArray(e.children).some(n=>D.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
149
+ `)):null),classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,disableFocusRipple:m.bool,disableRipple:m.bool,edge:m.oneOf(["end","start",!1]),size:m.oneOfType([m.oneOf(["small","medium","large"]),m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function f_({variant:e,theme:t,color:n}){const r=nn(t,n),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d=`${n}Button`,p=bs(t,d),g={"&::after":{boxShadow:`0 0 6px 6px ${et(c,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${et(c,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:a},...g};case"light":return{color:c,backgroundColor:o,"&:hover":{backgroundColor:i},...g};case"shadow":return{boxShadow:p,color:u,backgroundColor:c,"&:hover":{boxShadow:"none",backgroundColor:a},...g};case"outlined":return{"&:hover":{backgroundColor:"transparent",color:a,borderColor:a},...g};case"dashed":return{backgroundColor:o,"&:hover":{color:a,borderColor:a},...g};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...g}}}const p_=ue(oh,{shouldForwardProp:e=>e!=="variant"&&e!=="shape"})(({theme:e,variant:t,shape:n,color:r})=>({position:"relative","::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...n==="rounded"&&{borderRadius:"50%"},...t==="outlined"&&{border:"1px solid",borderColor:"inherit"},...t==="dashed"&&{border:"1px dashed",borderColor:"inherit"},...t!=="text"&&{"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},...f_({variant:t,theme:e,color:r})})),tu=E.forwardRef(({variant:e="text",shape:t="square",children:n,color:r="primary",...o},i)=>{const a=pt();return f.jsx(p_,{ref:i,disableRipple:!0,variant:e,shape:t,theme:a,color:r,...o,children:n})}),h_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ne,createChainedFunction:zp,createSvgIcon:Wp,debounce:A8,deprecatedPropType:I8,isMuiElement:O8,ownerDocument:Un,ownerWindow:Vc,requirePropFactory:P8,setRef:ps,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
150
+ `)),Ox.configure(e)}},unstable_useEnhancedEffect:Wr,unstable_useId:Wc,unsupportedProp:k8,useControlled:uC,useEventCallback:co,useForkRef:on,useIsFocusVisible:Gp},Symbol.toStringTag,{value:"Module"}));function g_(e){return typeof e=="string"}function m_(e,t,n){return e===void 0||g_(e)?t:H({},t,{ownerState:H({},t.ownerState,n)})}const v_={disableDefaultClasses:!1},y_=D.createContext(v_);function b_(e){const{disableDefaultClasses:t}=D.useContext(y_);return n=>t?"":e(n)}function x_(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function C_(e,t,n){return typeof e=="function"?e(t,n):e}function NC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function w_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=H({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=H({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=x_(H({},o,r)),c=NC(r),u=NC(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=H({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=H({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const S_=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function E_(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Re(e,S_),c=i?{}:C_(r,o),{props:u,internalRef:d}=w_(H({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return m_(n,H({},u,{ref:p}),o)}var Pn="top",ur="bottom",dr="right",jn="left",ih="auto",Wa=[Pn,ur,dr,jn],xs="start",za="end",T_="clippingParents",VC="viewport",Ua="popper",A_="reference",WC=Wa.reduce(function(e,t){return e.concat([t+"-"+xs,t+"-"+za])},[]),zC=[].concat(Wa,[ih]).reduce(function(e,t){return e.concat([t,t+"-"+xs,t+"-"+za])},[]),I_="beforeRead",O_="read",P_="afterRead",j_="beforeMain",k_="main",M_="afterMain",F_="beforeWrite",__="write",R_="afterWrite",D_=[I_,O_,P_,j_,k_,M_,F_,__,R_];function Ur(e){return e?(e.nodeName||"").toLowerCase():null}function Hn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bi(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function fr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sh(e){if(typeof ShadowRoot>"u")return!1;var t=Hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!fr(i)||!Ur(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function B_(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(u,d){return u[d]="",u},{});!fr(o)||!Ur(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const N_={name:"applyStyles",enabled:!0,phase:"write",fn:L_,effect:B_,requires:["computeStyles"]};function Hr(e){return e.split("-")[0]}var xi=Math.max,nu=Math.min,Cs=Math.round;function ah(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function UC(){return!/^((?!chrome|android).)*safari/i.test(ah())}function ws(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&fr(e)&&(o=e.offsetWidth>0&&Cs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cs(r.height)/e.offsetHeight||1);var a=bi(e)?Hn(e):window,c=a.visualViewport,u=!UC()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/i,g=r.width/o,v=r.height/i;return{width:g,height:v,top:p,right:d+g,bottom:p+v,left:d,x:d,y:p}}function lh(e){var t=ws(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function HC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uo(e){return Hn(e).getComputedStyle(e)}function V_(e){return["table","td","th"].indexOf(Ur(e))>=0}function Do(e){return((bi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ru(e){return Ur(e)==="html"?e:e.assignedSlot||e.parentNode||(sh(e)?e.host:null)||Do(e)}function GC(e){return!fr(e)||uo(e).position==="fixed"?null:e.offsetParent}function W_(e){var t=/firefox/i.test(ah()),n=/Trident/i.test(ah());if(n&&fr(e)){var r=uo(e);if(r.position==="fixed")return null}var o=ru(e);for(sh(o)&&(o=o.host);fr(o)&&["html","body"].indexOf(Ur(o))<0;){var i=uo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ha(e){for(var t=Hn(e),n=GC(e);n&&V_(n)&&uo(n).position==="static";)n=GC(n);return n&&(Ur(n)==="html"||Ur(n)==="body"&&uo(n).position==="static")?t:n||W_(e)||t}function ch(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ga(e,t,n){return xi(e,nu(t,n))}function z_(e,t,n){var r=Ga(e,t,n);return r>n?n:r}function YC(){return{top:0,right:0,bottom:0,left:0}}function KC(e){return Object.assign({},YC(),e)}function XC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var U_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,KC(typeof t!="number"?t:XC(t,Wa))};function H_(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Hr(n.placement),u=ch(c),d=[jn,dr].indexOf(c)>=0,p=d?"height":"width";if(!(!i||!a)){var g=U_(o.padding,n),v=lh(i),y=u==="y"?Pn:jn,b=u==="y"?ur:dr,x=n.rects.reference[p]+n.rects.reference[u]-a[u]-n.rects.popper[p],w=a[u]-n.rects.reference[u],A=Ha(i),j=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,T=x/2-w/2,P=g[y],O=j-v[p]-g[b],_=j/2-v[p]/2+T,R=Ga(P,_,O),N=u;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-_,t)}}function G_(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||HC(t.elements.popper,o)&&(t.elements.arrow=o))}const Y_={name:"arrow",enabled:!0,phase:"main",fn:H_,effect:G_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ss(e){return e.split("-")[1]}var K_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X_(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cs(n*o)/o||0,y:Cs(r*o)/o||0}}function ZC(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,v=a.x,y=v===void 0?0:v,b=a.y,x=b===void 0?0:b,w=typeof p=="function"?p({x:y,y:x}):{x:y,y:x};y=w.x,x=w.y;var A=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),T=jn,P=Pn,O=window;if(d){var _=Ha(n),R="clientHeight",N="clientWidth";if(_===Hn(n)&&(_=Do(n),uo(_).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),_=_,o===Pn||(o===jn||o===dr)&&i===za){P=ur;var Y=g&&_===O&&O.visualViewport?O.visualViewport.height:_[R];x-=Y-r.height,x*=u?1:-1}if(o===jn||(o===Pn||o===ur)&&i===za){T=dr;var X=g&&_===O&&O.visualViewport?O.visualViewport.width:_[N];y-=X-r.width,y*=u?1:-1}}var G=Object.assign({position:c},d&&K_),re=p===!0?X_({x:y,y:x},Hn(n)):{x:y,y:x};if(y=re.x,x=re.y,u){var ne;return Object.assign({},G,(ne={},ne[P]=j?"0":"",ne[T]=A?"0":"",ne.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",ne))}return Object.assign({},G,(t={},t[P]=j?x+"px":"",t[T]=A?y+"px":"",t.transform="",t))}function Z_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Hr(t.placement),variation:Ss(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZC(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZC(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Q_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z_,data:{}};var ou={passive:!0};function J_(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,u=Hn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,ou)}),c&&u.addEventListener("resize",n.update,ou),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,ou)}),c&&u.removeEventListener("resize",n.update,ou)}}const q_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:J_,data:{}};var $_={left:"right",right:"left",bottom:"top",top:"bottom"};function iu(e){return e.replace(/left|right|bottom|top/g,function(t){return $_[t]})}var e9={start:"end",end:"start"};function QC(e){return e.replace(/start|end/g,function(t){return e9[t]})}function uh(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dh(e){return ws(Do(e)).left+uh(e).scrollLeft}function t9(e,t){var n=Hn(e),r=Do(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;var d=UC();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c+dh(e),y:u}}function n9(e){var t,n=Do(e),r=uh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=xi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+dh(e),u=-r.scrollTop;return uo(o||n).direction==="rtl"&&(c+=xi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}function fh(e){var t=uo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function JC(e){return["html","body","#document"].indexOf(Ur(e))>=0?e.ownerDocument.body:fr(e)&&fh(e)?e:JC(ru(e))}function Ya(e,t){var n;t===void 0&&(t=[]);var r=JC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Hn(r),a=o?[i].concat(i.visualViewport||[],fh(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Ya(ru(a)))}function ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r9(e,t){var n=ws(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qC(e,t,n){return t===VC?ph(t9(e,n)):bi(t)?r9(t,n):ph(n9(Do(e)))}function o9(e){var t=Ya(ru(e)),n=["absolute","fixed"].indexOf(uo(e).position)>=0,r=n&&fr(e)?Ha(e):e;return bi(r)?t.filter(function(o){return bi(o)&&HC(o,r)&&Ur(o)!=="body"}):[]}function i9(e,t,n,r){var o=t==="clippingParents"?o9(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(u,d){var p=qC(e,d,r);return u.top=xi(p.top,u.top),u.right=nu(p.right,u.right),u.bottom=nu(p.bottom,u.bottom),u.left=xi(p.left,u.left),u},qC(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function $C(e){var t=e.reference,n=e.element,r=e.placement,o=r?Hr(r):null,i=r?Ss(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case Pn:u={x:a,y:t.y-n.height};break;case ur:u={x:a,y:t.y+t.height};break;case dr:u={x:t.x+t.width,y:c};break;case jn:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?ch(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case xs:u[d]=u[d]-(t[p]/2-n[p]/2);break;case za:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function Ka(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,u=c===void 0?T_:c,d=n.rootBoundary,p=d===void 0?VC:d,g=n.elementContext,v=g===void 0?Ua:g,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,w=x===void 0?0:x,A=KC(typeof w!="number"?w:XC(w,Wa)),j=v===Ua?A_:Ua,T=e.rects.popper,P=e.elements[b?j:v],O=i9(bi(P)?P:P.contextElement||Do(e.elements.popper),u,p,a),_=ws(e.elements.reference),R=$C({reference:_,element:T,strategy:"absolute",placement:o}),N=ph(Object.assign({},T,R)),Y=v===Ua?N:_,X={top:O.top-Y.top+A.top,bottom:Y.bottom-O.bottom+A.bottom,left:O.left-Y.left+A.left,right:Y.right-O.right+A.right},G=e.modifiersData.offset;if(v===Ua&&G){var re=G[o];Object.keys(X).forEach(function(ne){var Z=[dr,ur].indexOf(ne)>=0?1:-1,J=[Pn,ur].indexOf(ne)>=0?"y":"x";X[ne]+=re[J]*Z})}return X}function s9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?zC:u,p=Ss(r),g=p?c?WC:WC.filter(function(b){return Ss(b)===p}):Wa,v=g.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=g);var y=v.reduce(function(b,x){return b[x]=Ka(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Hr(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function a9(e){if(Hr(e)===ih)return[];var t=iu(e);return[QC(e),t,QC(t)]}function l9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,x=n.allowedAutoPlacements,w=t.options.placement,A=Hr(w),j=A===w,T=u||(j||!b?[iu(w)]:a9(w)),P=[w].concat(T).reduce(function(fe,he){return fe.concat(Hr(he)===ih?s9(t,{placement:he,boundary:p,rootBoundary:g,padding:d,flipVariations:b,allowedAutoPlacements:x}):he)},[]),O=t.rects.reference,_=t.rects.popper,R=new Map,N=!0,Y=P[0],X=0;X<P.length;X++){var G=P[X],re=Hr(G),ne=Ss(G)===xs,Z=[Pn,ur].indexOf(re)>=0,J=Z?"width":"height",V=Ka(t,{placement:G,boundary:p,rootBoundary:g,altBoundary:v,padding:d}),$=Z?ne?dr:jn:ne?ur:Pn;O[J]>_[J]&&($=iu($));var W=iu($),ie=[];if(i&&ie.push(V[re]<=0),c&&ie.push(V[$]<=0,V[W]<=0),ie.every(function(fe){return fe})){Y=G,N=!1;break}R.set(G,ie)}if(N)for(var U=b?3:1,ee=function(he){var me=P.find(function(Se){var be=R.get(Se);if(be)return be.slice(0,he).every(function(ye){return ye})});if(me)return Y=me,"break"},de=U;de>0;de--){var ge=ee(de);if(ge==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const c9={name:"flip",enabled:!0,phase:"main",fn:l9,requiresIfExists:["offset"],data:{_skip:!1}};function e1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function t1(e){return[Pn,dr,ur,jn].some(function(t){return e[t]>=0})}function u9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ka(t,{elementContext:"reference"}),c=Ka(t,{altBoundary:!0}),u=e1(a,r),d=e1(c,o,i),p=t1(u),g=t1(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const d9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u9};function f9(e,t,n){var r=Hr(e),o=[jn,Pn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[jn,dr].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function p9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=zC.reduce(function(p,g){return p[g]=f9(g,t.rects,i),p},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const h9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p9};function g9(e){var t=e.state,n=e.name;t.modifiersData[n]=$C({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const m9={name:"popperOffsets",enabled:!0,phase:"read",fn:g9,data:{}};function v9(e){return e==="x"?"y":"x"}function y9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,x=b===void 0?0:b,w=Ka(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:p}),A=Hr(t.placement),j=Ss(t.placement),T=!j,P=ch(A),O=v9(P),_=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,Y=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,X=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,re={x:0,y:0};if(_){if(i){var ne,Z=P==="y"?Pn:jn,J=P==="y"?ur:dr,V=P==="y"?"height":"width",$=_[P],W=$+w[Z],ie=$-w[J],U=y?-N[V]/2:0,ee=j===xs?R[V]:N[V],de=j===xs?-N[V]:-R[V],ge=t.elements.arrow,fe=y&&ge?lh(ge):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:YC(),me=he[Z],Se=he[J],be=Ga(0,R[V],fe[V]),ye=T?R[V]/2-U-be-me-X.mainAxis:ee-be-me-X.mainAxis,we=T?-R[V]/2+U+be+Se+X.mainAxis:de+be+Se+X.mainAxis,Ie=t.elements.arrow&&Ha(t.elements.arrow),pe=Ie?P==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,Ke=(ne=G==null?void 0:G[P])!=null?ne:0,ve=$+ye-Ke-pe,$e=$+we-Ke,gn=Ga(y?nu(W,ve):W,$,y?xi(ie,$e):ie);_[P]=gn,re[P]=gn-$}if(c){var It,bt=P==="x"?Pn:jn,Zn=P==="x"?ur:dr,Ot=_[O],xt=O==="y"?"height":"width",qt=Ot+w[bt],Ct=Ot-w[Zn],Kt=[Pn,jn].indexOf(A)!==-1,Pt=(It=G==null?void 0:G[O])!=null?It:0,_e=Kt?qt:Ot-R[xt]-N[xt]-Pt+X.altAxis,Le=Kt?Ot+R[xt]+N[xt]-Pt-X.altAxis:Ct,Oe=y&&Kt?z_(_e,Ot,Le):Ga(y?_e:qt,Ot,y?Le:Ct);_[O]=Oe,re[O]=Oe-Ot}t.modifiersData[r]=re}}const b9={name:"preventOverflow",enabled:!0,phase:"main",fn:y9,requiresIfExists:["offset"]};function x9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function C9(e){return e===Hn(e)||!fr(e)?uh(e):x9(e)}function w9(e){var t=e.getBoundingClientRect(),n=Cs(t.width)/e.offsetWidth||1,r=Cs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function S9(e,t,n){n===void 0&&(n=!1);var r=fr(t),o=fr(t)&&w9(t),i=Do(t),a=ws(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Ur(t)!=="body"||fh(i))&&(c=C9(t)),fr(t)?(u=ws(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=dh(i))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function E9(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function T9(e){var t=E9(e);return D_.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function A9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function I9(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var n1={placement:"bottom",modifiers:[],strategy:"absolute"};function r1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function O9(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?n1:o;return function(c,u,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},n1,i),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],v=!1,y={state:p,setOptions:function(A){var j=typeof A=="function"?A(p.options):A;x(),p.options=Object.assign({},i,p.options,j),p.scrollParents={reference:bi(c)?Ya(c):c.contextElement?Ya(c.contextElement):[],popper:Ya(u)};var T=T9(I9([].concat(r,p.options.modifiers)));return p.orderedModifiers=T.filter(function(P){return P.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var A=p.elements,j=A.reference,T=A.popper;if(r1(j,T)){p.rects={reference:S9(j,Ha(T),p.options.strategy==="fixed"),popper:lh(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(X){return p.modifiersData[X.name]=Object.assign({},X.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var O=p.orderedModifiers[P],_=O.fn,R=O.options,N=R===void 0?{}:R,Y=O.name;typeof _=="function"&&(p=_({state:p,options:N,name:Y,instance:y})||p)}}}},update:A9(function(){return new Promise(function(w){y.forceUpdate(),w(p)})}),destroy:function(){x(),v=!0}};if(!r1(c,u))return y;y.setOptions(d).then(function(w){!v&&d.onFirstUpdate&&d.onFirstUpdate(w)});function b(){p.orderedModifiers.forEach(function(w){var A=w.name,j=w.options,T=j===void 0?{}:j,P=w.effect;if(typeof P=="function"){var O=P({state:p,name:A,instance:y,options:T}),_=function(){};g.push(O||_)}})}function x(){g.forEach(function(w){return w()}),g=[]}return y}}var P9=[q_,m9,Q_,N_,h9,c9,b9,Y_,d9],o1=O9({defaultModifiers:P9});function j9(e){return typeof e=="function"?e():e}const su=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Wr(()=>{i||c(j9(o)||document.body)},[o,i]),Wr(()=>{if(a&&!i)return ps(n,a),()=>{ps(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&vv.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(su.propTypes={children:m.node,container:m.oneOfType([lo,m.func]),disablePortal:m.bool}),process.env.NODE_ENV!=="production"&&(su.propTypes=La(su.propTypes));function k9(e){return Lt("MuiPopper",e)}Yt("MuiPopper",["root"]);const M9=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],F9=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _9(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function au(e){return typeof e=="function"?e():e}function lu(e){return e.nodeType!==void 0}function R9(e){return!lu(e)}const D9=()=>Ut({root:["root"]},b_(k9)),L9={},B9=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=Re(t,M9),A=D.useRef(null),j=on(A,n),T=D.useRef(null),P=on(T,v),O=D.useRef(P);Wr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>T.current,[]);const _=_9(p,a),[R,N]=D.useState(_),[Y,X]=D.useState(au(o));D.useEffect(()=>{T.current&&T.current.forceUpdate()}),D.useEffect(()=>{o&&X(au(o))},[o]),Wr(()=>{if(!Y||!d)return;const J=W=>{N(W.placement)};if(process.env.NODE_ENV!=="production"&&Y&&lu(Y)&&Y.nodeType===1){const W=Y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
151
+ `))}let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{J(W)}}];u!=null&&(V=V.concat(u)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const $=o1(Y,A.current,H({placement:_},g,{modifiers:V}));return O.current($),()=>{$.destroy(),O.current(null)}},[Y,c,u,d,g,_]);const G={placement:R};x!==null&&(G.TransitionProps=x);const re=D9(),ne=(r=b.root)!=null?r:"div",Z=E_({elementType:ne,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:j},ownerState:t,className:re.root});return f.jsx(ne,H({},Z,{children:typeof i=="function"?i(G):i}))}),hh=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:v=L9,popperRef:y,style:b,transition:x=!1,slotProps:w={},slots:A={}}=t,j=Re(t,F9),[T,P]=D.useState(!0),O=()=>{P(!1)},_=()=>{P(!0)};if(!u&&!p&&(!x||T))return null;let R;if(i)R=i;else if(r){const X=au(r);R=X&&lu(X)?Un(X).body:Un(null).body}const N=!p&&u&&(!x||T)?"none":void 0,Y=x?{in:p,onEnter:O,onExited:_}:void 0;return f.jsx(su,{disablePortal:c,container:R,children:f.jsx(B9,H({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:x?!T:p,placement:g,popperOptions:v,popperRef:y,slotProps:w,slots:A},j,{style:H({position:"fixed",top:0,left:0,display:N},b),TransitionProps:Y,children:o}))})});process.env.NODE_ENV!=="production"&&(hh.propTypes={anchorEl:ao(m.oneOfType([lo,m.object,m.func]),e=>{if(e.open){const t=au(e.anchorEl);if(t&&lu(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
152
152
  `))}else if(!t||typeof t.getBoundingClientRect!="function"||R9(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
153
- `))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([lo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bc,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});function N9(e){return Lt("MuiButton",e)}const lu=Yt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),i1=D.createContext({});process.env.NODE_ENV!=="production"&&(i1.displayName="ButtonGroupContext");const s1=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(s1.displayName="ButtonGroupButtonContext");const V9=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],W9=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${Ne(t)}`,`size${Ne(o)}`,`${i}Size${Ne(o)}`,`color${Ne(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`]},u=Ut(c,N9,a);return H({},a,u)},a1=e=>H({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),z9=ue(qc,{shouldForwardProp:e=>Vp(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ne(n.color)}`],t[`size${Ne(n.size)}`],t[`${n.variant}Size${Ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return H({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":H({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":H({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lu.focusVisible}`]:H({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lu.disabled}`]:H({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Vr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lu.disabled}`]:{boxShadow:"none"}}),U9=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ne(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},a1(e))),H9=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ne(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},a1(e))),cu=D.forwardRef(function(t,n){const r=D.useContext(i1),o=D.useContext(s1),i=bp(r,t),a=Gt({props:i,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:w=!1,size:A="medium",startIcon:j,type:T,variant:P="text"}=a,O=Re(a,V9),_=H({},a,{color:u,component:d,disabled:g,disableElevation:v,disableFocusRipple:y,fullWidth:w,size:A,type:T,variant:P}),R=W9(_),N=j&&f.jsx(U9,{className:R.startIcon,ownerState:_,children:j}),Y=b&&f.jsx(H9,{className:R.endIcon,ownerState:_,children:b}),X=o||"";return f.jsxs(z9,H({ownerState:_,className:Be(r.className,R.root,p,X),component:d,disabled:g,focusRipple:!y,focusVisibleClassName:Be(R.focusVisible,x),ref:n,type:T},O,{classes:R,children:[N,c,Y]}))});process.env.NODE_ENV!=="production"&&(cu.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","success","error","info","warning"]),m.string]),component:m.elementType,disabled:m.bool,disableElevation:m.bool,disableFocusRipple:m.bool,disableRipple:m.bool,endIcon:m.node,focusVisibleClassName:m.string,fullWidth:m.bool,href:m.string,size:m.oneOfType([m.oneOf(["small","medium","large"]),m.string]),startIcon:m.node,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),type:m.oneOfType([m.oneOf(["button","reset","submit"]),m.string]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function G9(e){return Lt("MuiCircularProgress",e)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Y9=["className","color","disableShrink","size","style","thickness","value","variant"];let uu=e=>e,l1,c1,u1,d1;const Lo=44,K9=Wt.keyframes(l1||(l1=uu`
153
+ `))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([lo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Nc,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});function N9(e){return Lt("MuiButton",e)}const cu=Yt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),i1=D.createContext({});process.env.NODE_ENV!=="production"&&(i1.displayName="ButtonGroupContext");const s1=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(s1.displayName="ButtonGroupButtonContext");const V9=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],W9=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${Ne(t)}`,`size${Ne(o)}`,`${i}Size${Ne(o)}`,`color${Ne(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`]},u=Ut(c,N9,a);return H({},a,u)},a1=e=>H({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),z9=ue($c,{shouldForwardProp:e=>Vp(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ne(n.color)}`],t[`size${Ne(n.size)}`],t[`${n.variant}Size${Ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return H({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":H({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":H({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${cu.focusVisible}`]:H({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${cu.disabled}`]:H({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Vr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${cu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cu.disabled}`]:{boxShadow:"none"}}),U9=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ne(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},a1(e))),H9=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ne(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},a1(e))),uu=D.forwardRef(function(t,n){const r=D.useContext(i1),o=D.useContext(s1),i=bp(r,t),a=Gt({props:i,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:w=!1,size:A="medium",startIcon:j,type:T,variant:P="text"}=a,O=Re(a,V9),_=H({},a,{color:u,component:d,disabled:g,disableElevation:v,disableFocusRipple:y,fullWidth:w,size:A,type:T,variant:P}),R=W9(_),N=j&&f.jsx(U9,{className:R.startIcon,ownerState:_,children:j}),Y=b&&f.jsx(H9,{className:R.endIcon,ownerState:_,children:b}),X=o||"";return f.jsxs(z9,H({ownerState:_,className:Be(r.className,R.root,p,X),component:d,disabled:g,focusRipple:!y,focusVisibleClassName:Be(R.focusVisible,x),ref:n,type:T},O,{classes:R,children:[N,c,Y]}))});process.env.NODE_ENV!=="production"&&(uu.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","success","error","info","warning"]),m.string]),component:m.elementType,disabled:m.bool,disableElevation:m.bool,disableFocusRipple:m.bool,disableRipple:m.bool,endIcon:m.node,focusVisibleClassName:m.string,fullWidth:m.bool,href:m.string,size:m.oneOfType([m.oneOf(["small","medium","large"]),m.string]),startIcon:m.node,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),type:m.oneOfType([m.oneOf(["button","reset","submit"]),m.string]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function G9(e){return Lt("MuiCircularProgress",e)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Y9=["className","color","disableShrink","size","style","thickness","value","variant"];let du=e=>e,l1,c1,u1,d1;const Lo=44,K9=Wt.keyframes(l1||(l1=du`
154
154
  0% {
155
155
  transform: rotate(0deg);
156
156
  }
@@ -158,7 +158,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
158
158
  100% {
159
159
  transform: rotate(360deg);
160
160
  }
161
- `)),X9=Wt.keyframes(c1||(c1=uu`
161
+ `)),X9=Wt.keyframes(c1||(c1=du`
162
162
  0% {
163
163
  stroke-dasharray: 1px, 200px;
164
164
  stroke-dashoffset: 0;
@@ -173,35 +173,35 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
173
173
  stroke-dasharray: 100px, 200px;
174
174
  stroke-dashoffset: -125px;
175
175
  }
176
- `)),Z9=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Ne(r)}`],svg:["svg"],circle:["circle",`circle${Ne(n)}`,o&&"circleDisableShrink"]};return Ut(i,G9,t)},Q9=ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ne(n.color)}`]]}})(({ownerState:e,theme:t})=>H({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Wt.css(u1||(u1=uu`
176
+ `)),Z9=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Ne(r)}`],svg:["svg"],circle:["circle",`circle${Ne(n)}`,o&&"circleDisableShrink"]};return Ut(i,G9,t)},Q9=ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ne(n.color)}`]]}})(({ownerState:e,theme:t})=>H({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Wt.css(u1||(u1=du`
177
177
  animation: ${0} 1.4s linear infinite;
178
- `),K9)),J9=ue("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),q9=ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>H({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Wt.css(d1||(d1=uu`
178
+ `),K9)),J9=ue("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),q9=ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>H({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Wt.css(d1||(d1=du`
179
179
  animation: ${0} 1.4s ease-in-out infinite;
180
- `),X9)),du=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:g="indeterminate"}=r,v=Re(r,Y9),y=H({},r,{color:i,disableShrink:a,size:c,thickness:d,value:p,variant:g}),b=Z9(y),x={},w={},A={};if(g==="determinate"){const j=2*Math.PI*((Lo-d)/2);x.strokeDasharray=j.toFixed(3),A["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*j).toFixed(3)}px`,w.transform="rotate(-90deg)"}return f.jsx(Q9,H({className:Be(b.root,o),style:H({width:c,height:c},w,u),ownerState:y,ref:n,role:"progressbar"},A,v,{children:f.jsx(J9,{className:b.svg,ownerState:y,viewBox:`${Lo/2} ${Lo/2} ${Lo} ${Lo}`,children:f.jsx(q9,{className:b.circle,style:x,ownerState:y,cx:Lo,cy:Lo,r:(Lo-d)/2,fill:"none",strokeWidth:d})})}))});process.env.NODE_ENV!=="production"&&(du.propTypes={classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","error","info","success","warning"]),m.string]),disableShrink:ao(m.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:m.oneOfType([m.number,m.string]),style:m.object,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),thickness:m.number,value:m.number,variant:m.oneOf(["determinate","indeterminate"])});function $9(e){return Lt("MuiLoadingButton",e)}const fo=Yt("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),eR=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],tR=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Ne(n)}`],endIcon:[t&&`endIconLoading${Ne(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Ne(n)}`]},i=Ut(o,$9,r);return H({},r,i)},nR=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",rR=ue(cu,{shouldForwardProp:e=>nR(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${fo.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${fo.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>H({[`& .${fo.startIconLoadingStart}, & .${fo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${fo.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${fo.startIconLoadingStart}, & .${fo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${fo.startIconLoadingStart}, & .${fo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),oR=ue("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Ne(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>H({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),f1=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:a,loading:c=!1,loadingIndicator:u,loadingPosition:d="center",variant:p="text"}=r,g=Re(r,eR),v=Vc(a),y=u??f.jsx(du,{"aria-labelledby":v,color:"inherit",size:16}),b=H({},r,{disabled:i,loading:c,loadingIndicator:y,loadingPosition:d,variant:p}),x=tR(b),w=c?f.jsx(oR,{className:x.loadingIndicator,ownerState:b,children:y}):null;return f.jsxs(rR,H({disabled:i||c,id:v,ref:n},g,{variant:p,classes:x,ownerState:b,children:[b.loadingPosition==="end"?o:w,b.loadingPosition==="end"?w:o]}))});process.env.NODE_ENV!=="production"&&(f1.propTypes={children:m.node,classes:m.object,disabled:m.bool,id:m.string,loading:m.bool,loadingIndicator:m.node,loadingPosition:ao(m.oneOf(["start","end","center"]),e=>e.loadingPosition==="start"&&!e.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):e.loadingPosition==="end"&&!e.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function gh({variant:e,theme:t,color:n,loadingPosition:r}){const o=nn(t,n),{lighter:i,main:a,dark:c,contrastText:u}=o,d=`${n}Button`,p=bs(t,d),g={"& .MuiLoadingButton-loadingIndicator":{color:a}},v={...r&&r!=="center"&&{color:a}},y={"&::after":{boxShadow:`0 0 6px 6px ${et(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${et(a,.9)}`},"&:focus-visible":{outline:`2px solid ${c}`,outlineOffset:2}};switch(e){case"contained":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"light":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"shadow":return{boxShadow:p,backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{boxShadow:"none",backgroundColor:c,color:u},...y};case"outlined":return{backgroundColor:"transparent",borderColor:a,...v,...g};case"dashed":return{backgroundColor:i,borderColor:a,...v,...g,...y};case"text":default:return{color:a,...g,...y}}}const iR=ue(f1,{shouldForwardProp:e=>e!=="shape"&&e!=="variant"})(({theme:e,variant:t,shape:n,color:r,loading:o,loadingPosition:i})=>({"::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...t==="text"&&{...gh({variant:t,theme:e,color:r,loadingPosition:i}),"&.MuiButton-sizeMedium":{height:36},"&.MuiButton-sizeSmall":{height:30},"&.MuiButton-sizeLarge":{height:44}},...n&&{minWidth:0,"&.MuiButton-sizeMedium":{width:36,height:36},"&.MuiButton-sizeSmall":{width:30,height:30},"&.MuiButton-sizeLarge":{width:44,height:44},...n==="rounded"&&{borderRadius:"50%"}},...t==="outlined"&&{border:"1px solid"},...t==="dashed"&&{border:"1px dashed"},...(t==="contained"||t==="shadow")&&!o&&{color:"#fff"},...t!=="text"&&{...gh({variant:t,theme:e,color:r,loadingPosition:i})},"&.Mui-disabled":{...t!=="text"&&{...gh({variant:t,theme:e,color:r,loadingPosition:i})}}})),p1=E.forwardRef(({variant:e="text",shape:t,children:n,color:r="primary",loadingPosition:o,loading:i,...a},c)=>{const u=pt();return f.jsx(iR,{ref:c,variant:e,shape:t,theme:u,loadingPosition:o,loading:i,color:r,...a,children:n})});function sR({color:e,theme:t,labelColor:n}){const r=nn(t,e),{main:o,contrastText:i}=r,a=e||"";return["primary","secondary","info","success","warning","error"].includes(a)?{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:o,color:n||i},[`& .${S.tooltipClasses.arrow}`]:{color:o}}:{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:a,color:n||i,boxShadow:t.shadows[1]},[`& .${S.tooltipClasses.arrow}`]:{color:a}}}const aR=ue(({className:e,...t})=>f.jsx(S.Tooltip,{...t,classes:{popper:e}}),{shouldForwardProp:e=>e!=="color"&&e!=="labelColor"})(({theme:e,color:t,labelColor:n})=>({...t&&sR({color:t,theme:e,labelColor:n})}));function fu({children:e,arrow:t,labelColor:n="",...r}){const o=pt();return f.jsx(S.Box,{display:"flex",children:f.jsx(aR,{arrow:t,...r,theme:o,labelColor:n,children:e})})}const Bo=E.forwardRef(({children:e,position:t="top-left",type:n="grow",direction:r="up",...o},i)=>{let a={transformOrigin:"0 0 0"};switch(t){case"top-right":a={transformOrigin:"top right"};break;case"top":a={transformOrigin:"top"};break;case"bottom-left":a={transformOrigin:"bottom left"};break;case"bottom-right":a={transformOrigin:"bottom right"};break;case"bottom":a={transformOrigin:"bottom"};break;case"top-left":default:a={transformOrigin:"0 0 0"};break}return f.jsxs(S.Box,{ref:i,children:[n==="grow"&&f.jsx(S.Grow,{...o,timeout:{appear:0,enter:150,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="collapse"&&f.jsx(S.Collapse,{...o,sx:a,children:e}),n==="fade"&&f.jsx(S.Fade,{...o,timeout:{appear:0,enter:300,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="slide"&&f.jsx(S.Slide,{...o,timeout:{appear:0,enter:150,exit:150},direction:r,children:f.jsx(S.Box,{sx:a,children:e})}),n==="zoom"&&f.jsx(S.Zoom,{...o,children:f.jsx(S.Box,{sx:a,children:e})})]})}),lR=E.forwardRef(function(t,n){return f.jsx(S.Zoom,{ref:n,timeout:200,...t})});function cR({value:e,...t}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",value:e,...t}),f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:`${Math.round(e)}%`})})]})}function uR({value:e,size:t,variant:n,thickness:r,showLabel:o,pathColor:i,sx:a,...c}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",sx:{color:i||"grey.200"},size:t,thickness:r,...c,value:100}),o?f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:e?`${Math.round(e)}%`:"0%"})}):null,f.jsx(S.CircularProgress,{variant:n,sx:{...a,position:"absolute",left:0,[`& .${S.circularProgressClasses.circle}`]:{strokeLinecap:"round"}},size:t,thickness:r,value:e,...c})]})}function dR({icon:e,value:t,...n}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:t,...n})}),f.jsx(S.Box,{sx:{minWidth:35},children:e})]})}function fR({value:e,...t}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:e,...t})}),f.jsx(S.Box,{sx:{minWidth:35},children:f.jsx(S.Typography,{variant:"body2",color:"text.secondary",children:`${Math.round(e)}%`})})]})}const h1=ue("span")(({arrow:e="top-right",theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${et(t.palette.grey[500],.12)}`,i={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};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,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...i,left:20},...e==="top-center"&&{...i,left:0,right:0,margin:"auto"},...e==="top-right"&&{...i,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function g1(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}function m1({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...i}){const{style:a,anchorOrigin:c,transformOrigin:u}=g1(n);return f.jsxs(S.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...i,children:[!r&&f.jsx(h1,{arrow:n}),t]})}const pR={width:"100%",justifyContent:"flex-start"},hR=S.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),gR=S.styled(m1,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)},[e.breakpoints.down("sm")]:{"&>.MuiSvgIcon-root, & svg":{marginRight:e.spacing(0)}}}}));function No({horizontal:e=!1,children:t}){const[n,r]=E.useState(null),o=E.useRef(null);function i(u){u.stopPropagation(),u.preventDefault(),r(u.currentTarget),o.current=u.currentTarget}const a=E.useCallback(u=>{u.stopPropagation(),u.preventDefault(),r(null)},[]),c=E.useCallback(u=>{var d;r(null),typeof((d=u.currentTarget)==null?void 0:d.onClick)=="function"&&u.currentTarget.onClick(u)},[]);return!t||E.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(u=>E.isValidElement(u)).length)===0?null:f.jsxs(hR,{children:[f.jsx(S.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:i,color:n?"inherit":"default",children:e?f.jsx(en.MoreHoriz,{}):f.jsx(en.MoreVert,{})}),f.jsx(gR,{open:n,onClose:a,arrow:"right-top",children:E.Children.map(t,(u,d)=>E.isValidElement(u)&&f.jsx(S.MenuItem,{onClick:c,children:E.cloneElement(u,{style:{...pR}})},d))})]})}function pu(){const e=Wt.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return f.jsx(S.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:f.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),f.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),f.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),f.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),f.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),f.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),f.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),f.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})}const v1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAesAAAHKCAYAAAAjA2MyAAAAxXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBbDsMgDPvnFDsCiVMex6Erk3aDHX+BhKmtZok4xGBCQv+8X+ExwCRBtlxSTSkqpErlpkmJhjYjRZlxou+e0bUens1TVoYyTCjJmFbdLyymcW87GZWnC/tVqGLM5WbkD2F0xJocblTdCGwCuUGzb8VUSz5/Ye/ximIrjIA8vX8m971knd6xaRHMHYSoEUjWAMZCQFOBNALjIGmxQVbFO9GB/JvTQvgCAHJZ0+cZkqUAAAGFaUNDUElDQyBwcm9maWxlAAB4nH2RPUjDUBSFT1NFqRUHO4iIZKjiYBcVcSxVLIKF0lZo1cHkpX/QpCFJcXEUXAsO/ixWHVycdXVwFQTBHxBXFydFFynxvqTQIsYHl/dx3juH++4DhEaFqWZXFFA1y0jFY2I2tyr2vKIPo1QTCEjM1BPpxQw819c9fHy/i/As73t/rn4lbzLAJxJHmW5YxBvEs5uWznmfOMRKkkJ8TjxpUIPEj1yXXX7jXHRY4JkhI5OaJw4Ri8UOljuYlQyVeIY4rKga5QtZlxXOW5zVSo21+uQvDOa1lTTXqUYQxxISSEKEjBrKqMBChHaNFBMpOo95+Icdf5JcMrnKYORYQBUqJMcP/ge/Z2sWpqfcpGAM6H6x7Y8xoGcXaNZt+/vYtpsngP8ZuNLa/moDmPskvd7WwkfAwDZwcd3W5D3gcgcYetIlQ3IkP5VQKADvZ/RNOWDwFgisuXNrneP0AcjQrJZvgINDYLxI2ese7+7tnNu/d1rz+w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nZS9wbmciCiAgIEdJTVA6QVBJPSIyLjAiCiAgIEdJTVA6UGxhdGZvcm09IldpbmRvd3MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNzAxMzQ0NDkwNjkzMDg2IgogICBHSU1QOlZlcnNpb249IjIuMTAuMzYiCiAgIHRpZmY6T3JpZW50YXRpb249IjEiCiAgIHhtcDpDcmVhdG9yVG9vbD0iR0lNUCAyLjEwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDIzOjExOjMwVDEyOjQxOjMwKzAxOjAwIgogICB4bXA6TW9kaWZ5RGF0ZT0iMjAyMzoxMTozMFQxMjo0MTozMCswMTowMCI+CiAgIDx4bXBNTTpIaXN0b3J5PgogICAgPHJkZjpTZXE+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjVkNGE4NzAxLWYzOTItNGVhOS04YzdlLWEwNzQ4ODE5ODIyYSIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0xMS0zMFQxMjo0MTozMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5A30f8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wseCykesp/dTgAAIABJREFUeNrsvXt0XGeZ5vt8e9e9dClJtuzYupQTEkjiJDIQOw0By4EQzJCOTNMkDsyJciAzNDAdmZk1Z4awxvJMN92nV9OyaWCaQ1h2GogcBtqGhHZMQmxjQsehg0VQCISOVZKvki2rdKl71f7OH7uqVKXaVSqpLqqSn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pbSJnQNZQcYH32gS+QVxYg8ZlxJKyqDkDsoYql3fEJu8eom+o86h52IqciZoBWUOtC7wnE3EjcKh1MVtRc5RjAWQNCBygMoxkhBxFzICsAZwFbl1gs0SOxMHPaHnEFi0PiwtggKwBkDhUPFK2PoaJlgFZA5RX4hGbwK2vEXnjCTmWJeVhSVEiZUDWANUv856MtO0iDyHzmpZxLEvIMYQMyBqgvmVuF7gl9ojt84c5JV+JSZqwyTeW9TlKuhqQNQDkI/RQlsSdvlbm88oGj9gt+dqlG3P4c5SIGABZA1SL4EM2eUeyPuf6WlnPWpT6ZmDE5fvRLOHGHP7O/n27dIV4AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgLvk/Afd07jclJisAAAAASUVORK5CYII=";var mh={};const mR=oo(h_);var y1;function Gr(){return y1||(y1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mR}(mh)),mh}var Xa=function(){return Xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xa.apply(this,arguments)},b1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},vh=function(e){var t=e.alignIcon,n=t===void 0?"left":t,r=e.children,o=e.className,i=e.disabled,a=e.label,c=e.color,u=c===void 0?"primary":c,d=e.size,p=d===void 0?"small":d,g=e.to,v=b1(e,["alignIcon","children","className","disabled","label","color","size","to"]),y=q.useTranslate(),b=a?y(a,{_:a}):void 0,x=bR(g),w=S.useMediaQuery(function(A){return A.breakpoints.down("sm")});return w?a&&!i?D.createElement(S.Tooltip,{title:b},D.createElement(S.IconButton,Xa({"aria-label":b,className:o,color:u,size:"large"},x,v),r)):D.createElement(S.IconButton,Xa({className:o,color:u,disabled:i,size:"large"},x,v),r):D.createElement(yR,Xa({className:o,color:u,size:p,"aria-label":b,disabled:i,startIcon:n==="left"&&r?r:void 0,endIcon:n==="right"&&r?r:void 0},x,v),b)};vh.propTypes={alignIcon:m.oneOf(["left","right"]),children:m.element,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,label:m.string,size:m.oneOf(["small","medium","large"])};var vR="RaButton",yR=ue(S.Button,{name:vR,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),bR=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=b1(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},yh={},xR=sr;Object.defineProperty(yh,"__esModule",{value:!0});var bh=yh.default=void 0,CR=xR(Gr()),wR=f;bh=yh.default=(0,CR.default)((0,wR.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function x1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=x1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Es(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=x1(e))&&(r&&(r+=" "),r+=t);return r}function SR(){this.__data__=[],this.size=0}var ER=SR;function TR(e,t){return e===t||e!==e&&t!==t}var Za=TR,AR=Za;function IR(e,t){for(var n=e.length;n--;)if(AR(e[n][0],t))return n;return-1}var hu=IR,OR=hu,PR=Array.prototype,jR=PR.splice;function kR(e){var t=this.__data__,n=OR(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jR.call(t,n,1),--this.size,!0}var MR=kR,FR=hu;function _R(e){var t=this.__data__,n=FR(t,e);return n<0?void 0:t[n][1]}var RR=_R,DR=hu;function LR(e){return DR(this.__data__,e)>-1}var BR=LR,NR=hu;function VR(e,t){var n=this.__data__,r=NR(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var WR=VR,zR=ER,UR=MR,HR=RR,GR=BR,YR=WR;function Ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ts.prototype.clear=zR,Ts.prototype.delete=UR,Ts.prototype.get=HR,Ts.prototype.has=GR,Ts.prototype.set=YR;var gu=Ts,KR=gu;function XR(){this.__data__=new KR,this.size=0}var ZR=XR;function QR(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var JR=QR;function qR(e){return this.__data__.get(e)}var $R=qR;function eD(e){return this.__data__.has(e)}var tD=eD,nD=typeof xn=="object"&&xn&&xn.Object===Object&&xn,C1=nD,rD=C1,oD=typeof self=="object"&&self&&self.Object===Object&&self,iD=rD||oD||Function("return this")(),Yr=iD,sD=Yr,aD=sD.Symbol,mu=aD,w1=mu,S1=Object.prototype,lD=S1.hasOwnProperty,cD=S1.toString,Qa=w1?w1.toStringTag:void 0;function uD(e){var t=lD.call(e,Qa),n=e[Qa];try{e[Qa]=void 0;var r=!0}catch{}var o=cD.call(e);return r&&(t?e[Qa]=n:delete e[Qa]),o}var dD=uD,fD=Object.prototype,pD=fD.toString;function hD(e){return pD.call(e)}var gD=hD,E1=mu,mD=dD,vD=gD,yD="[object Null]",bD="[object Undefined]",T1=E1?E1.toStringTag:void 0;function xD(e){return e==null?e===void 0?bD:yD:T1&&T1 in Object(e)?mD(e):vD(e)}var Ja=xD;function CD(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ci=CD,wD=Ja,SD=Ci,ED="[object AsyncFunction]",TD="[object Function]",AD="[object GeneratorFunction]",ID="[object Proxy]";function OD(e){if(!SD(e))return!1;var t=wD(e);return t==TD||t==AD||t==ED||t==ID}var xh=OD,PD=Yr,jD=PD["__core-js_shared__"],kD=jD,Ch=kD,A1=function(){var e=/[^.]+$/.exec(Ch&&Ch.keys&&Ch.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MD(e){return!!A1&&A1 in e}var FD=MD,_D=Function.prototype,RD=_D.toString;function DD(e){if(e!=null){try{return RD.call(e)}catch{}try{return e+""}catch{}}return""}var I1=DD,LD=xh,BD=FD,ND=Ci,VD=I1,WD=/[\\^$.*+?()[\]{}|]/g,zD=/^\[object .+?Constructor\]$/,UD=Function.prototype,HD=Object.prototype,GD=UD.toString,YD=HD.hasOwnProperty,KD=RegExp("^"+GD.call(YD).replace(WD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function XD(e){if(!ND(e)||BD(e))return!1;var t=LD(e)?KD:zD;return t.test(VD(e))}var ZD=XD;function QD(e,t){return e==null?void 0:e[t]}var JD=QD,qD=ZD,$D=JD;function eL(e,t){var n=$D(e,t);return qD(n)?n:void 0}var wi=eL,tL=wi,nL=Yr,rL=tL(nL,"Map"),wh=rL,oL=wi,iL=oL(Object,"create"),vu=iL,O1=vu;function sL(){this.__data__=O1?O1(null):{},this.size=0}var aL=sL;function lL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cL=lL,uL=vu,dL="__lodash_hash_undefined__",fL=Object.prototype,pL=fL.hasOwnProperty;function hL(e){var t=this.__data__;if(uL){var n=t[e];return n===dL?void 0:n}return pL.call(t,e)?t[e]:void 0}var gL=hL,mL=vu,vL=Object.prototype,yL=vL.hasOwnProperty;function bL(e){var t=this.__data__;return mL?t[e]!==void 0:yL.call(t,e)}var xL=bL,CL=vu,wL="__lodash_hash_undefined__";function SL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CL&&t===void 0?wL:t,this}var EL=SL,TL=aL,AL=cL,IL=gL,OL=xL,PL=EL;function As(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}As.prototype.clear=TL,As.prototype.delete=AL,As.prototype.get=IL,As.prototype.has=OL,As.prototype.set=PL;var jL=As,P1=jL,kL=gu,ML=wh;function FL(){this.size=0,this.__data__={hash:new P1,map:new(ML||kL),string:new P1}}var _L=FL;function RL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DL=RL,LL=DL;function BL(e,t){var n=e.__data__;return LL(t)?n[typeof t=="string"?"string":"hash"]:n.map}var yu=BL,NL=yu;function VL(e){var t=NL(this,e).delete(e);return this.size-=t?1:0,t}var WL=VL,zL=yu;function UL(e){return zL(this,e).get(e)}var HL=UL,GL=yu;function YL(e){return GL(this,e).has(e)}var KL=YL,XL=yu;function ZL(e,t){var n=XL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var QL=ZL,JL=_L,qL=WL,$L=HL,eB=KL,tB=QL;function Is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Is.prototype.clear=JL,Is.prototype.delete=qL,Is.prototype.get=$L,Is.prototype.has=eB,Is.prototype.set=tB;var j1=Is,nB=gu,rB=wh,oB=j1,iB=200;function sB(e,t){var n=this.__data__;if(n instanceof nB){var r=n.__data__;if(!rB||r.length<iB-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oB(r)}return n.set(e,t),this.size=n.size,this}var aB=sB,lB=gu,cB=ZR,uB=JR,dB=$R,fB=tD,pB=aB;function Os(e){var t=this.__data__=new lB(e);this.size=t.size}Os.prototype.clear=cB,Os.prototype.delete=uB,Os.prototype.get=dB,Os.prototype.has=fB,Os.prototype.set=pB;var k1=Os,hB="__lodash_hash_undefined__";function gB(e){return this.__data__.set(e,hB),this}var mB=gB;function vB(e){return this.__data__.has(e)}var yB=vB,bB=j1,xB=mB,CB=yB;function bu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bB;++t<n;)this.add(e[t])}bu.prototype.add=bu.prototype.push=xB,bu.prototype.has=CB;var Sh=bu;function wB(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var SB=wB;function EB(e,t){return e.has(t)}var Eh=EB,TB=Sh,AB=SB,IB=Eh,OB=1,PB=2;function jB(e,t,n,r,o,i){var a=n&OB,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var g=-1,v=!0,y=n&PB?new TB:void 0;for(i.set(e,t),i.set(t,e);++g<c;){var b=e[g],x=t[g];if(r)var w=a?r(x,b,g,t,e,i):r(b,x,g,e,t,i);if(w!==void 0){if(w)continue;v=!1;break}if(y){if(!AB(t,function(A,j){if(!IB(y,j)&&(b===A||o(b,A,n,r,i)))return y.push(j)})){v=!1;break}}else if(!(b===x||o(b,x,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}var M1=jB,kB=Yr,MB=kB.Uint8Array,F1=MB;function FB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var _B=FB;function RB(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Th=RB,_1=mu,R1=F1,DB=Za,LB=M1,BB=_B,NB=Th,VB=1,WB=2,zB="[object Boolean]",UB="[object Date]",HB="[object Error]",GB="[object Map]",YB="[object Number]",KB="[object RegExp]",XB="[object Set]",ZB="[object String]",QB="[object Symbol]",JB="[object ArrayBuffer]",qB="[object DataView]",D1=_1?_1.prototype:void 0,Ah=D1?D1.valueOf:void 0;function $B(e,t,n,r,o,i,a){switch(n){case qB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JB:return!(e.byteLength!=t.byteLength||!i(new R1(e),new R1(t)));case zB:case UB:case YB:return DB(+e,+t);case HB:return e.name==t.name&&e.message==t.message;case KB:case ZB:return e==t+"";case GB:var c=BB;case XB:var u=r&VB;if(c||(c=NB),e.size!=t.size&&!u)return!1;var d=a.get(e);if(d)return d==t;r|=WB,a.set(e,t);var p=LB(c(e),c(t),r,o,i,a);return a.delete(e),p;case QB:if(Ah)return Ah.call(e)==Ah.call(t)}return!1}var e7=$B;function t7(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var L1=t7,n7=Array.isArray,qa=n7,r7=L1,o7=qa;function i7(e,t,n){var r=t(e);return o7(e)?r:r7(r,n(e))}var s7=i7;function a7(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var l7=a7;function c7(){return[]}var u7=c7,d7=l7,f7=u7,p7=Object.prototype,h7=p7.propertyIsEnumerable,B1=Object.getOwnPropertySymbols,g7=B1?function(e){return e==null?[]:(e=Object(e),d7(B1(e),function(t){return h7.call(e,t)}))}:f7,m7=g7;function v7(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var y7=v7;function b7(e){return e!=null&&typeof e=="object"}var Ps=b7,x7=Ja,C7=Ps,w7="[object Arguments]";function S7(e){return C7(e)&&x7(e)==w7}var E7=S7,N1=E7,T7=Ps,V1=Object.prototype,A7=V1.hasOwnProperty,I7=V1.propertyIsEnumerable,O7=N1(function(){return arguments}())?N1:function(e){return T7(e)&&A7.call(e,"callee")&&!I7.call(e,"callee")},Ih=O7,xu={exports:{}};function P7(){return!1}var j7=P7;xu.exports,function(e,t){var n=Yr,r=j7,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,c=a?n.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||r;e.exports=d}(xu,xu.exports);var Oh=xu.exports,k7=9007199254740991,M7=/^(?:0|[1-9]\d*)$/;function F7(e,t){var n=typeof e;return t=t??k7,!!t&&(n=="number"||n!="symbol"&&M7.test(e))&&e>-1&&e%1==0&&e<t}var W1=F7,_7=9007199254740991;function R7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_7}var z1=R7,D7=Ja,L7=z1,B7=Ps,N7="[object Arguments]",V7="[object Array]",W7="[object Boolean]",z7="[object Date]",U7="[object Error]",H7="[object Function]",G7="[object Map]",Y7="[object Number]",K7="[object Object]",X7="[object RegExp]",Z7="[object Set]",Q7="[object String]",J7="[object WeakMap]",q7="[object ArrayBuffer]",$7="[object DataView]",eN="[object Float32Array]",tN="[object Float64Array]",nN="[object Int8Array]",rN="[object Int16Array]",oN="[object Int32Array]",iN="[object Uint8Array]",sN="[object Uint8ClampedArray]",aN="[object Uint16Array]",lN="[object Uint32Array]",yt={};yt[eN]=yt[tN]=yt[nN]=yt[rN]=yt[oN]=yt[iN]=yt[sN]=yt[aN]=yt[lN]=!0,yt[N7]=yt[V7]=yt[q7]=yt[W7]=yt[$7]=yt[z7]=yt[U7]=yt[H7]=yt[G7]=yt[Y7]=yt[K7]=yt[X7]=yt[Z7]=yt[Q7]=yt[J7]=!1;function cN(e){return B7(e)&&L7(e.length)&&!!yt[D7(e)]}var uN=cN;function dN(e){return function(t){return e(t)}}var U1=dN,Cu={exports:{}};Cu.exports,function(e,t){var n=C1,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,c=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=c}(Cu,Cu.exports);var fN=Cu.exports,pN=uN,hN=U1,H1=fN,G1=H1&&H1.isTypedArray,gN=G1?hN(G1):pN,Ph=gN,mN=y7,vN=Ih,yN=qa,bN=Oh,xN=W1,CN=Ph,wN=Object.prototype,SN=wN.hasOwnProperty;function EN(e,t){var n=yN(e),r=!n&&vN(e),o=!n&&!r&&bN(e),i=!n&&!r&&!o&&CN(e),a=n||r||o||i,c=a?mN(e.length,String):[],u=c.length;for(var d in e)(t||SN.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||xN(d,u)))&&c.push(d);return c}var Y1=EN,TN=Object.prototype;function AN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||TN;return e===n}var jh=AN;function IN(e,t){return function(n){return e(t(n))}}var K1=IN,ON=K1,PN=ON(Object.keys,Object),jN=PN,kN=jh,MN=jN,FN=Object.prototype,_N=FN.hasOwnProperty;function RN(e){if(!kN(e))return MN(e);var t=[];for(var n in Object(e))_N.call(e,n)&&n!="constructor"&&t.push(n);return t}var DN=RN,LN=xh,BN=z1;function NN(e){return e!=null&&BN(e.length)&&!LN(e)}var wu=NN,VN=Y1,WN=DN,zN=wu;function UN(e){return zN(e)?VN(e):WN(e)}var HN=UN,GN=s7,YN=m7,KN=HN;function XN(e){return GN(e,KN,YN)}var ZN=XN,X1=ZN,QN=1,JN=Object.prototype,qN=JN.hasOwnProperty;function $N(e,t,n,r,o,i){var a=n&QN,c=X1(e),u=c.length,d=X1(t),p=d.length;if(u!=p&&!a)return!1;for(var g=u;g--;){var v=c[g];if(!(a?v in t:qN.call(t,v)))return!1}var y=i.get(e),b=i.get(t);if(y&&b)return y==t&&b==e;var x=!0;i.set(e,t),i.set(t,e);for(var w=a;++g<u;){v=c[g];var A=e[v],j=t[v];if(r)var T=a?r(j,A,v,t,e,i):r(A,j,v,e,t,i);if(!(T===void 0?A===j||o(A,j,n,r,i):T)){x=!1;break}w||(w=v=="constructor")}if(x&&!w){var P=e.constructor,O=t.constructor;P!=O&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(x=!1)}return i.delete(e),i.delete(t),x}var e2=$N,t2=wi,n2=Yr,r2=t2(n2,"DataView"),o2=r2,i2=wi,s2=Yr,a2=i2(s2,"Promise"),l2=a2,c2=wi,u2=Yr,d2=c2(u2,"Set"),Z1=d2,f2=wi,p2=Yr,h2=f2(p2,"WeakMap"),g2=h2,kh=o2,Mh=wh,Fh=l2,_h=Z1,Rh=g2,Q1=Ja,js=I1,J1="[object Map]",m2="[object Object]",q1="[object Promise]",$1="[object Set]",ew="[object WeakMap]",tw="[object DataView]",v2=js(kh),y2=js(Mh),b2=js(Fh),x2=js(_h),C2=js(Rh),Si=Q1;(kh&&Si(new kh(new ArrayBuffer(1)))!=tw||Mh&&Si(new Mh)!=J1||Fh&&Si(Fh.resolve())!=q1||_h&&Si(new _h)!=$1||Rh&&Si(new Rh)!=ew)&&(Si=function(e){var t=Q1(e),n=t==m2?e.constructor:void 0,r=n?js(n):"";if(r)switch(r){case v2:return tw;case y2:return J1;case b2:return q1;case x2:return $1;case C2:return ew}return t});var w2=Si,Dh=k1,S2=M1,E2=e7,T2=e2,nw=w2,rw=qa,ow=Oh,A2=Ph,I2=1,iw="[object Arguments]",sw="[object Array]",Su="[object Object]",O2=Object.prototype,aw=O2.hasOwnProperty;function P2(e,t,n,r,o,i){var a=rw(e),c=rw(t),u=a?sw:nw(e),d=c?sw:nw(t);u=u==iw?Su:u,d=d==iw?Su:d;var p=u==Su,g=d==Su,v=u==d;if(v&&ow(e)){if(!ow(t))return!1;a=!0,p=!1}if(v&&!p)return i||(i=new Dh),a||A2(e)?S2(e,t,n,r,o,i):E2(e,t,u,n,r,o,i);if(!(n&I2)){var y=p&&aw.call(e,"__wrapped__"),b=g&&aw.call(t,"__wrapped__");if(y||b){var x=y?e.value():e,w=b?t.value():t;return i||(i=new Dh),o(x,w,n,r,i)}}return v?(i||(i=new Dh),T2(e,t,n,r,o,i)):!1}var j2=P2,k2=j2,lw=Ps;function cw(e,t,n,r,o){return e===t?!0:e==null||t==null||!lw(e)&&!lw(t)?e!==e&&t!==t:k2(e,t,n,r,cw,o)}var M2=cw,F2=M2;function _2(e,t){return F2(e,t)}var R2=_2;const $a=Dr(R2);var D2=wi,L2=function(){try{var e=D2(Object,"defineProperty");return e({},"",{}),e}catch{}}(),uw=L2,dw=uw;function B2(e,t,n){t=="__proto__"&&dw?dw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Lh=B2,N2=Lh,V2=Za;function W2(e,t,n){(n!==void 0&&!V2(e[t],n)||n===void 0&&!(t in e))&&N2(e,t,n)}var fw=W2;function z2(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(n(i[u],u,i)===!1)break}return t}}var U2=z2,H2=U2,G2=H2(),Y2=G2,Eu={exports:{}};Eu.exports,function(e,t){var n=Yr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;function u(d,p){if(p)return d.slice();var g=d.length,v=c?c(g):new d.constructor(g);return d.copy(v),v}e.exports=u}(Eu,Eu.exports);var K2=Eu.exports,pw=F1;function X2(e){var t=new e.constructor(e.byteLength);return new pw(t).set(new pw(e)),t}var Z2=X2,Q2=Z2;function J2(e,t){var n=t?Q2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var q2=J2;function $2(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var eV=$2,tV=Ci,hw=Object.create,nV=function(){function e(){}return function(t){if(!tV(t))return{};if(hw)return hw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),rV=nV,oV=K1,iV=oV(Object.getPrototypeOf,Object),gw=iV,sV=rV,aV=gw,lV=jh;function cV(e){return typeof e.constructor=="function"&&!lV(e)?sV(aV(e)):{}}var uV=cV,dV=wu,fV=Ps;function pV(e){return fV(e)&&dV(e)}var Bh=pV,hV=Ja,gV=gw,mV=Ps,vV="[object Object]",yV=Function.prototype,bV=Object.prototype,mw=yV.toString,xV=bV.hasOwnProperty,CV=mw.call(Object);function wV(e){if(!mV(e)||hV(e)!=vV)return!1;var t=gV(e);if(t===null)return!0;var n=xV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mw.call(n)==CV}var SV=wV;function EV(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vw=EV,TV=Lh,AV=Za,IV=Object.prototype,OV=IV.hasOwnProperty;function PV(e,t,n){var r=e[t];(!(OV.call(e,t)&&AV(r,n))||n===void 0&&!(t in e))&&TV(e,t,n)}var jV=PV,kV=jV,MV=Lh;function FV(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;u===void 0&&(u=e[c]),o?MV(n,c,u):kV(n,c,u)}return n}var _V=FV;function RV(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var DV=RV,LV=Ci,BV=jh,NV=DV,VV=Object.prototype,WV=VV.hasOwnProperty;function zV(e){if(!LV(e))return NV(e);var t=BV(e),n=[];for(var r in e)r=="constructor"&&(t||!WV.call(e,r))||n.push(r);return n}var UV=zV,HV=Y1,GV=UV,YV=wu;function KV(e){return YV(e)?HV(e,!0):GV(e)}var yw=KV,XV=_V,ZV=yw;function QV(e){return XV(e,ZV(e))}var JV=QV,bw=fw,qV=K2,$V=q2,eW=eV,tW=uV,xw=Ih,Cw=qa,nW=Bh,rW=Oh,oW=xh,iW=Ci,sW=SV,aW=Ph,ww=vw,lW=JV;function cW(e,t,n,r,o,i,a){var c=ww(e,n),u=ww(t,n),d=a.get(u);if(d){bw(e,n,d);return}var p=i?i(c,u,n+"",e,t,a):void 0,g=p===void 0;if(g){var v=Cw(u),y=!v&&rW(u),b=!v&&!y&&aW(u);p=u,v||y||b?Cw(c)?p=c:nW(c)?p=eW(c):y?(g=!1,p=qV(u,!0)):b?(g=!1,p=$V(u,!0)):p=[]:sW(u)||xw(u)?(p=c,xw(c)?p=lW(c):(!iW(c)||oW(c))&&(p=tW(u))):g=!1}g&&(a.set(u,p),o(p,u,r,i,a),a.delete(u)),bw(e,n,p)}var uW=cW,dW=k1,fW=fw,pW=Y2,hW=uW,gW=Ci,mW=yw,vW=vw;function Sw(e,t,n,r,o){e!==t&&pW(t,function(i,a){if(o||(o=new dW),gW(i))hW(e,t,a,n,Sw,r,o);else{var c=r?r(vW(e,a),i,a+"",e,t,o):void 0;c===void 0&&(c=i),fW(e,a,c)}},mW)}var yW=Sw;function bW(e){return e}var Ew=bW;function xW(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var CW=xW,wW=CW,Tw=Math.max;function SW(e,t,n){return t=Tw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Tw(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),wW(e,this,c)}}var EW=SW;function TW(e){return function(){return e}}var AW=TW,IW=AW,Aw=uw,OW=Ew,PW=Aw?function(e,t){return Aw(e,"toString",{configurable:!0,enumerable:!1,value:IW(t),writable:!0})}:OW,jW=PW,kW=800,MW=16,FW=Date.now;function _W(e){var t=0,n=0;return function(){var r=FW(),o=MW-(r-n);if(n=r,o>0){if(++t>=kW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RW=_W,DW=jW,LW=RW,BW=LW(DW),NW=BW,VW=Ew,WW=EW,zW=NW;function UW(e,t){return zW(WW(e,t,VW),e+"")}var Nh=UW,HW=Za,GW=wu,YW=W1,KW=Ci;function XW(e,t,n){if(!KW(n))return!1;var r=typeof t;return(r=="number"?GW(n)&&YW(t,n.length):r=="string"&&t in n)?HW(n[t],e):!1}var ZW=XW,QW=Nh,JW=ZW;function qW(e){return QW(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&JW(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t})}var $W=qW,ez=yW,tz=$W,nz=tz(function(e,t,n){ez(e,t,n)}),rz=nz;const Iw=Dr(rz);var Tu=function(){return Tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tu.apply(this,arguments)},Ow=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Pw=function(e){var t=e.className,n=e.icon,r=n===void 0?iz:n,o=e.label,i=o===void 0?"ra.action.create":o;e.resource;var a=e.scrollToTop,c=a===void 0?!0:a,u=e.variant,d=e.to,p=e.state,g=p===void 0?{}:p,v=Ow(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),y=q.useResourceContext(e),b=q.useCreatePath(),x=q.useTranslate(),w=S.useMediaQuery(function(T){return T.breakpoints.down("md")}),A=Iw({},oz.get(String(c)),g),j=cz(d);return w?D.createElement(sz,Tu({component:ut.Link,to:b({resource:y,type:"create"}),state:A,color:"primary",className:Es(Vh.floating,t),"aria-label":i&&x(i)},v,j),r):D.createElement(az,Tu({component:ut.Link,to:b({resource:y,type:"create"}),state:A,className:Es(Vh.root,t),label:i,variant:u},v,j),r)},oz=new Map([["true",{_scrollToTop:!0}],["false",{}]]),iz=D.createElement(bh,null);Pw.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};var Au="RaCreateButton",Vh={root:"".concat(Au,"-root"),floating:"".concat(Au,"-floating")},sz=ue(S.Fab,{name:Au,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["&.".concat(Vh.floating)]={color:n.palette.getContrastText(n.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),az=ue(vh,{name:Au,overridesResolver:function(e,t){return t.root}})({});const lz=D.memo(Pw,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&$a(e.to,t.to)&&$a(e.state,t.state)});var cz=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=Ow(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},Wh={},uz=sr;Object.defineProperty(Wh,"__esModule",{value:!0});var zh=Wh.default=void 0,dz=uz(Gr()),fz=f;zh=Wh.default=(0,dz.default)((0,fz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var jw={exports:{}};/*!
180
+ `),X9)),fu=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:g="indeterminate"}=r,v=Re(r,Y9),y=H({},r,{color:i,disableShrink:a,size:c,thickness:d,value:p,variant:g}),b=Z9(y),x={},w={},A={};if(g==="determinate"){const j=2*Math.PI*((Lo-d)/2);x.strokeDasharray=j.toFixed(3),A["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*j).toFixed(3)}px`,w.transform="rotate(-90deg)"}return f.jsx(Q9,H({className:Be(b.root,o),style:H({width:c,height:c},w,u),ownerState:y,ref:n,role:"progressbar"},A,v,{children:f.jsx(J9,{className:b.svg,ownerState:y,viewBox:`${Lo/2} ${Lo/2} ${Lo} ${Lo}`,children:f.jsx(q9,{className:b.circle,style:x,ownerState:y,cx:Lo,cy:Lo,r:(Lo-d)/2,fill:"none",strokeWidth:d})})}))});process.env.NODE_ENV!=="production"&&(fu.propTypes={classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","error","info","success","warning"]),m.string]),disableShrink:ao(m.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:m.oneOfType([m.number,m.string]),style:m.object,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),thickness:m.number,value:m.number,variant:m.oneOf(["determinate","indeterminate"])});function $9(e){return Lt("MuiLoadingButton",e)}const fo=Yt("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),eR=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],tR=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Ne(n)}`],endIcon:[t&&`endIconLoading${Ne(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Ne(n)}`]},i=Ut(o,$9,r);return H({},r,i)},nR=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",rR=ue(uu,{shouldForwardProp:e=>nR(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${fo.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${fo.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>H({[`& .${fo.startIconLoadingStart}, & .${fo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${fo.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${fo.startIconLoadingStart}, & .${fo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${fo.startIconLoadingStart}, & .${fo.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),oR=ue("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Ne(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>H({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),f1=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:a,loading:c=!1,loadingIndicator:u,loadingPosition:d="center",variant:p="text"}=r,g=Re(r,eR),v=Wc(a),y=u??f.jsx(fu,{"aria-labelledby":v,color:"inherit",size:16}),b=H({},r,{disabled:i,loading:c,loadingIndicator:y,loadingPosition:d,variant:p}),x=tR(b),w=c?f.jsx(oR,{className:x.loadingIndicator,ownerState:b,children:y}):null;return f.jsxs(rR,H({disabled:i||c,id:v,ref:n},g,{variant:p,classes:x,ownerState:b,children:[b.loadingPosition==="end"?o:w,b.loadingPosition==="end"?w:o]}))});process.env.NODE_ENV!=="production"&&(f1.propTypes={children:m.node,classes:m.object,disabled:m.bool,id:m.string,loading:m.bool,loadingIndicator:m.node,loadingPosition:ao(m.oneOf(["start","end","center"]),e=>e.loadingPosition==="start"&&!e.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):e.loadingPosition==="end"&&!e.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function gh({variant:e,theme:t,color:n,loadingPosition:r}){const o=nn(t,n),{lighter:i,main:a,dark:c,contrastText:u}=o,d=`${n}Button`,p=bs(t,d),g={"& .MuiLoadingButton-loadingIndicator":{color:a}},v={...r&&r!=="center"&&{color:a}},y={"&::after":{boxShadow:`0 0 6px 6px ${et(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${et(a,.9)}`},"&:focus-visible":{outline:`2px solid ${c}`,outlineOffset:2}};switch(e){case"contained":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"light":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"shadow":return{boxShadow:p,backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{boxShadow:"none",backgroundColor:c,color:u},...y};case"outlined":return{backgroundColor:"transparent",borderColor:a,...v,...g};case"dashed":return{backgroundColor:i,borderColor:a,...v,...g,...y};case"text":default:return{color:a,...g,...y}}}const iR=ue(f1,{shouldForwardProp:e=>e!=="shape"&&e!=="variant"})(({theme:e,variant:t,shape:n,color:r,loading:o,loadingPosition:i})=>({"::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...t==="text"&&{...gh({variant:t,theme:e,color:r,loadingPosition:i}),"&.MuiButton-sizeMedium":{height:36},"&.MuiButton-sizeSmall":{height:30},"&.MuiButton-sizeLarge":{height:44}},...n&&{minWidth:0,"&.MuiButton-sizeMedium":{width:36,height:36},"&.MuiButton-sizeSmall":{width:30,height:30},"&.MuiButton-sizeLarge":{width:44,height:44},...n==="rounded"&&{borderRadius:"50%"}},...t==="outlined"&&{border:"1px solid"},...t==="dashed"&&{border:"1px dashed"},...(t==="contained"||t==="shadow")&&!o&&{color:"#fff"},...t!=="text"&&{...gh({variant:t,theme:e,color:r,loadingPosition:i})},"&.Mui-disabled":{...t!=="text"&&{...gh({variant:t,theme:e,color:r,loadingPosition:i})}}})),p1=E.forwardRef(({variant:e="text",shape:t,children:n,color:r="primary",loadingPosition:o,loading:i,...a},c)=>{const u=pt();return f.jsx(iR,{ref:c,variant:e,shape:t,theme:u,loadingPosition:o,loading:i,color:r,...a,children:n})});function sR({color:e,theme:t,labelColor:n}){const r=nn(t,e),{main:o,contrastText:i}=r,a=e||"";return["primary","secondary","info","success","warning","error"].includes(a)?{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:o,color:n||i},[`& .${S.tooltipClasses.arrow}`]:{color:o}}:{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:a,color:n||i,boxShadow:t.shadows[1]},[`& .${S.tooltipClasses.arrow}`]:{color:a}}}const aR=ue(({className:e,...t})=>f.jsx(S.Tooltip,{...t,classes:{popper:e}}),{shouldForwardProp:e=>e!=="color"&&e!=="labelColor"})(({theme:e,color:t,labelColor:n})=>({...t&&sR({color:t,theme:e,labelColor:n})}));function pu({children:e,arrow:t,labelColor:n="",...r}){const o=pt();return f.jsx(S.Box,{display:"flex",children:f.jsx(aR,{arrow:t,...r,theme:o,labelColor:n,children:e})})}const Bo=E.forwardRef(({children:e,position:t="top-left",type:n="grow",direction:r="up",...o},i)=>{let a={transformOrigin:"0 0 0"};switch(t){case"top-right":a={transformOrigin:"top right"};break;case"top":a={transformOrigin:"top"};break;case"bottom-left":a={transformOrigin:"bottom left"};break;case"bottom-right":a={transformOrigin:"bottom right"};break;case"bottom":a={transformOrigin:"bottom"};break;case"top-left":default:a={transformOrigin:"0 0 0"};break}return f.jsxs(S.Box,{ref:i,children:[n==="grow"&&f.jsx(S.Grow,{...o,timeout:{appear:0,enter:150,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="collapse"&&f.jsx(S.Collapse,{...o,sx:a,children:e}),n==="fade"&&f.jsx(S.Fade,{...o,timeout:{appear:0,enter:300,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="slide"&&f.jsx(S.Slide,{...o,timeout:{appear:0,enter:150,exit:150},direction:r,children:f.jsx(S.Box,{sx:a,children:e})}),n==="zoom"&&f.jsx(S.Zoom,{...o,children:f.jsx(S.Box,{sx:a,children:e})})]})}),lR=E.forwardRef(function(t,n){return f.jsx(S.Zoom,{ref:n,timeout:200,...t})});function cR({value:e,...t}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",value:e,...t}),f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:`${Math.round(e)}%`})})]})}function uR({value:e,size:t,variant:n,thickness:r,showLabel:o,pathColor:i,sx:a,...c}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",sx:{color:i||"grey.200"},size:t,thickness:r,...c,value:100}),o?f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:e?`${Math.round(e)}%`:"0%"})}):null,f.jsx(S.CircularProgress,{variant:n,sx:{...a,position:"absolute",left:0,[`& .${S.circularProgressClasses.circle}`]:{strokeLinecap:"round"}},size:t,thickness:r,value:e,...c})]})}function dR({icon:e,value:t,...n}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:t,...n})}),f.jsx(S.Box,{sx:{minWidth:35},children:e})]})}function fR({value:e,...t}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:e,...t})}),f.jsx(S.Box,{sx:{minWidth:35},children:f.jsx(S.Typography,{variant:"body2",color:"text.secondary",children:`${Math.round(e)}%`})})]})}const h1=ue("span")(({arrow:e="top-right",theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${et(t.palette.grey[500],.12)}`,i={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};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,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...i,left:20},...e==="top-center"&&{...i,left:0,right:0,margin:"auto"},...e==="top-right"&&{...i,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function g1(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}function m1({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...i}){const{style:a,anchorOrigin:c,transformOrigin:u}=g1(n);return f.jsxs(S.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...i,children:[!r&&f.jsx(h1,{arrow:n}),t]})}const pR={width:"100%",justifyContent:"flex-start"},hR=S.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),gR=S.styled(m1,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)},[e.breakpoints.down("sm")]:{"&>.MuiSvgIcon-root, & svg":{marginRight:e.spacing(0)}}}}));function No({horizontal:e=!1,children:t}){const[n,r]=E.useState(null),o=E.useRef(null);function i(u){u.stopPropagation(),u.preventDefault(),r(u.currentTarget),o.current=u.currentTarget}const a=E.useCallback(u=>{u.stopPropagation(),u.preventDefault(),r(null)},[]),c=E.useCallback(u=>{var d;r(null),typeof((d=u.currentTarget)==null?void 0:d.onClick)=="function"&&u.currentTarget.onClick(u)},[]);return!t||E.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(u=>E.isValidElement(u)).length)===0?null:f.jsxs(hR,{children:[f.jsx(S.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:i,color:n?"inherit":"default",children:e?f.jsx(en.MoreHoriz,{}):f.jsx(en.MoreVert,{})}),f.jsx(gR,{open:n,onClose:a,arrow:"right-top",children:E.Children.map(t,(u,d)=>E.isValidElement(u)&&f.jsx(S.MenuItem,{onClick:c,children:E.cloneElement(u,{style:{...pR}})},d))})]})}function hu(){const e=Wt.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return f.jsx(S.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:f.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),f.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),f.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),f.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),f.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),f.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),f.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),f.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})}const v1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAesAAAHKCAYAAAAjA2MyAAAAxXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBbDsMgDPvnFDsCiVMex6Erk3aDHX+BhKmtZok4xGBCQv+8X+ExwCRBtlxSTSkqpErlpkmJhjYjRZlxou+e0bUens1TVoYyTCjJmFbdLyymcW87GZWnC/t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Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjVkNGE4NzAxLWYzOTItNGVhOS04YzdlLWEwNzQ4ODE5ODIyYSIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0xMS0zMFQxMjo0MTozMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5A30f8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wseCykesp/dTgAAIABJREFUeNrsvXt0XGeZ5vt8e9e9dClJtuzYupQTEkjiJDIQOw0By4EQzJCOTNMkDsyJciAzNDAdmZk1Z4awxvJMN92nV9OyaWCaQ1h2GogcBtqGhHZMQmxjQsehg0VQCISOVZKvki2rdKl71f7OH7uqVKXaVSqpLqqSnt9aWrbqsmvr27v2s9/v/d7nBQghBbN2r1y9tk/ezJEghBBCKluwzWv65Ns5EoQQQkhlC7ZpdZ9s5UgQQgghlS3YFo4CIYQQUuG4+qSJo0AIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEkGWJ4BCQ5YarTzrtQKsmMDbaI65yRAghFGtCKkekbTYFJiHhv9gjNI4IIYQQUkGs7ZO88SSEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEkKVj7V7p4CgQQgghhBBCCCGEEEIIIYtmdZ9UOAqEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQggh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AACgLvk/Afd07jclJisAAAAASUVORK5CYII=";var mh={};const mR=oo(h_);var y1;function Gr(){return y1||(y1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mR}(mh)),mh}var Xa=function(){return Xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xa.apply(this,arguments)},b1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},vh=function(e){var t=e.alignIcon,n=t===void 0?"left":t,r=e.children,o=e.className,i=e.disabled,a=e.label,c=e.color,u=c===void 0?"primary":c,d=e.size,p=d===void 0?"small":d,g=e.to,v=b1(e,["alignIcon","children","className","disabled","label","color","size","to"]),y=q.useTranslate(),b=a?y(a,{_:a}):void 0,x=bR(g),w=S.useMediaQuery(function(A){return A.breakpoints.down("sm")});return w?a&&!i?D.createElement(S.Tooltip,{title:b},D.createElement(S.IconButton,Xa({"aria-label":b,className:o,color:u,size:"large"},x,v),r)):D.createElement(S.IconButton,Xa({className:o,color:u,disabled:i,size:"large"},x,v),r):D.createElement(yR,Xa({className:o,color:u,size:p,"aria-label":b,disabled:i,startIcon:n==="left"&&r?r:void 0,endIcon:n==="right"&&r?r:void 0},x,v),b)};vh.propTypes={alignIcon:m.oneOf(["left","right"]),children:m.element,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,label:m.string,size:m.oneOf(["small","medium","large"])};var vR="RaButton",yR=ue(S.Button,{name:vR,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),bR=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=b1(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},yh={},xR=sr;Object.defineProperty(yh,"__esModule",{value:!0});var bh=yh.default=void 0,CR=xR(Gr()),wR=f;bh=yh.default=(0,CR.default)((0,wR.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function x1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=x1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Es(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=x1(e))&&(r&&(r+=" "),r+=t);return r}function SR(){this.__data__=[],this.size=0}var ER=SR;function TR(e,t){return e===t||e!==e&&t!==t}var Za=TR,AR=Za;function IR(e,t){for(var n=e.length;n--;)if(AR(e[n][0],t))return n;return-1}var gu=IR,OR=gu,PR=Array.prototype,jR=PR.splice;function kR(e){var t=this.__data__,n=OR(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jR.call(t,n,1),--this.size,!0}var MR=kR,FR=gu;function _R(e){var t=this.__data__,n=FR(t,e);return n<0?void 0:t[n][1]}var RR=_R,DR=gu;function LR(e){return DR(this.__data__,e)>-1}var BR=LR,NR=gu;function VR(e,t){var n=this.__data__,r=NR(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var WR=VR,zR=ER,UR=MR,HR=RR,GR=BR,YR=WR;function Ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ts.prototype.clear=zR,Ts.prototype.delete=UR,Ts.prototype.get=HR,Ts.prototype.has=GR,Ts.prototype.set=YR;var mu=Ts,KR=mu;function XR(){this.__data__=new KR,this.size=0}var ZR=XR;function QR(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var JR=QR;function qR(e){return this.__data__.get(e)}var $R=qR;function eD(e){return this.__data__.has(e)}var tD=eD,nD=typeof xn=="object"&&xn&&xn.Object===Object&&xn,C1=nD,rD=C1,oD=typeof self=="object"&&self&&self.Object===Object&&self,iD=rD||oD||Function("return this")(),Yr=iD,sD=Yr,aD=sD.Symbol,vu=aD,w1=vu,S1=Object.prototype,lD=S1.hasOwnProperty,cD=S1.toString,Qa=w1?w1.toStringTag:void 0;function uD(e){var t=lD.call(e,Qa),n=e[Qa];try{e[Qa]=void 0;var r=!0}catch{}var o=cD.call(e);return r&&(t?e[Qa]=n:delete e[Qa]),o}var dD=uD,fD=Object.prototype,pD=fD.toString;function hD(e){return pD.call(e)}var gD=hD,E1=vu,mD=dD,vD=gD,yD="[object Null]",bD="[object Undefined]",T1=E1?E1.toStringTag:void 0;function xD(e){return e==null?e===void 0?bD:yD:T1&&T1 in Object(e)?mD(e):vD(e)}var Ja=xD;function CD(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ci=CD,wD=Ja,SD=Ci,ED="[object AsyncFunction]",TD="[object Function]",AD="[object GeneratorFunction]",ID="[object Proxy]";function OD(e){if(!SD(e))return!1;var t=wD(e);return t==TD||t==AD||t==ED||t==ID}var xh=OD,PD=Yr,jD=PD["__core-js_shared__"],kD=jD,Ch=kD,A1=function(){var e=/[^.]+$/.exec(Ch&&Ch.keys&&Ch.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MD(e){return!!A1&&A1 in e}var FD=MD,_D=Function.prototype,RD=_D.toString;function DD(e){if(e!=null){try{return RD.call(e)}catch{}try{return e+""}catch{}}return""}var I1=DD,LD=xh,BD=FD,ND=Ci,VD=I1,WD=/[\\^$.*+?()[\]{}|]/g,zD=/^\[object .+?Constructor\]$/,UD=Function.prototype,HD=Object.prototype,GD=UD.toString,YD=HD.hasOwnProperty,KD=RegExp("^"+GD.call(YD).replace(WD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function XD(e){if(!ND(e)||BD(e))return!1;var t=LD(e)?KD:zD;return t.test(VD(e))}var ZD=XD;function QD(e,t){return e==null?void 0:e[t]}var JD=QD,qD=ZD,$D=JD;function eL(e,t){var n=$D(e,t);return qD(n)?n:void 0}var wi=eL,tL=wi,nL=Yr,rL=tL(nL,"Map"),wh=rL,oL=wi,iL=oL(Object,"create"),yu=iL,O1=yu;function sL(){this.__data__=O1?O1(null):{},this.size=0}var aL=sL;function lL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cL=lL,uL=yu,dL="__lodash_hash_undefined__",fL=Object.prototype,pL=fL.hasOwnProperty;function hL(e){var t=this.__data__;if(uL){var n=t[e];return n===dL?void 0:n}return pL.call(t,e)?t[e]:void 0}var gL=hL,mL=yu,vL=Object.prototype,yL=vL.hasOwnProperty;function bL(e){var t=this.__data__;return mL?t[e]!==void 0:yL.call(t,e)}var xL=bL,CL=yu,wL="__lodash_hash_undefined__";function SL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CL&&t===void 0?wL:t,this}var EL=SL,TL=aL,AL=cL,IL=gL,OL=xL,PL=EL;function As(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}As.prototype.clear=TL,As.prototype.delete=AL,As.prototype.get=IL,As.prototype.has=OL,As.prototype.set=PL;var jL=As,P1=jL,kL=mu,ML=wh;function FL(){this.size=0,this.__data__={hash:new P1,map:new(ML||kL),string:new P1}}var _L=FL;function RL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DL=RL,LL=DL;function BL(e,t){var n=e.__data__;return LL(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bu=BL,NL=bu;function VL(e){var t=NL(this,e).delete(e);return this.size-=t?1:0,t}var WL=VL,zL=bu;function UL(e){return zL(this,e).get(e)}var HL=UL,GL=bu;function YL(e){return GL(this,e).has(e)}var KL=YL,XL=bu;function ZL(e,t){var n=XL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var QL=ZL,JL=_L,qL=WL,$L=HL,eB=KL,tB=QL;function Is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Is.prototype.clear=JL,Is.prototype.delete=qL,Is.prototype.get=$L,Is.prototype.has=eB,Is.prototype.set=tB;var j1=Is,nB=mu,rB=wh,oB=j1,iB=200;function sB(e,t){var n=this.__data__;if(n instanceof nB){var r=n.__data__;if(!rB||r.length<iB-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oB(r)}return n.set(e,t),this.size=n.size,this}var aB=sB,lB=mu,cB=ZR,uB=JR,dB=$R,fB=tD,pB=aB;function Os(e){var t=this.__data__=new lB(e);this.size=t.size}Os.prototype.clear=cB,Os.prototype.delete=uB,Os.prototype.get=dB,Os.prototype.has=fB,Os.prototype.set=pB;var k1=Os,hB="__lodash_hash_undefined__";function gB(e){return this.__data__.set(e,hB),this}var mB=gB;function vB(e){return this.__data__.has(e)}var yB=vB,bB=j1,xB=mB,CB=yB;function xu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bB;++t<n;)this.add(e[t])}xu.prototype.add=xu.prototype.push=xB,xu.prototype.has=CB;var Sh=xu;function wB(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var SB=wB;function EB(e,t){return e.has(t)}var Eh=EB,TB=Sh,AB=SB,IB=Eh,OB=1,PB=2;function jB(e,t,n,r,o,i){var a=n&OB,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var g=-1,v=!0,y=n&PB?new TB:void 0;for(i.set(e,t),i.set(t,e);++g<c;){var b=e[g],x=t[g];if(r)var w=a?r(x,b,g,t,e,i):r(b,x,g,e,t,i);if(w!==void 0){if(w)continue;v=!1;break}if(y){if(!AB(t,function(A,j){if(!IB(y,j)&&(b===A||o(b,A,n,r,i)))return y.push(j)})){v=!1;break}}else if(!(b===x||o(b,x,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}var M1=jB,kB=Yr,MB=kB.Uint8Array,F1=MB;function FB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var _B=FB;function RB(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Th=RB,_1=vu,R1=F1,DB=Za,LB=M1,BB=_B,NB=Th,VB=1,WB=2,zB="[object Boolean]",UB="[object Date]",HB="[object Error]",GB="[object Map]",YB="[object Number]",KB="[object RegExp]",XB="[object Set]",ZB="[object String]",QB="[object Symbol]",JB="[object ArrayBuffer]",qB="[object DataView]",D1=_1?_1.prototype:void 0,Ah=D1?D1.valueOf:void 0;function $B(e,t,n,r,o,i,a){switch(n){case qB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JB:return!(e.byteLength!=t.byteLength||!i(new R1(e),new R1(t)));case zB:case UB:case YB:return DB(+e,+t);case HB:return e.name==t.name&&e.message==t.message;case KB:case ZB:return e==t+"";case GB:var c=BB;case XB:var u=r&VB;if(c||(c=NB),e.size!=t.size&&!u)return!1;var d=a.get(e);if(d)return d==t;r|=WB,a.set(e,t);var p=LB(c(e),c(t),r,o,i,a);return a.delete(e),p;case QB:if(Ah)return Ah.call(e)==Ah.call(t)}return!1}var e7=$B;function t7(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var L1=t7,n7=Array.isArray,qa=n7,r7=L1,o7=qa;function i7(e,t,n){var r=t(e);return o7(e)?r:r7(r,n(e))}var s7=i7;function a7(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var l7=a7;function c7(){return[]}var u7=c7,d7=l7,f7=u7,p7=Object.prototype,h7=p7.propertyIsEnumerable,B1=Object.getOwnPropertySymbols,g7=B1?function(e){return e==null?[]:(e=Object(e),d7(B1(e),function(t){return h7.call(e,t)}))}:f7,m7=g7;function v7(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var y7=v7;function b7(e){return e!=null&&typeof e=="object"}var Ps=b7,x7=Ja,C7=Ps,w7="[object Arguments]";function S7(e){return C7(e)&&x7(e)==w7}var E7=S7,N1=E7,T7=Ps,V1=Object.prototype,A7=V1.hasOwnProperty,I7=V1.propertyIsEnumerable,O7=N1(function(){return arguments}())?N1:function(e){return T7(e)&&A7.call(e,"callee")&&!I7.call(e,"callee")},Ih=O7,Cu={exports:{}};function P7(){return!1}var j7=P7;Cu.exports,function(e,t){var n=Yr,r=j7,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,c=a?n.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||r;e.exports=d}(Cu,Cu.exports);var Oh=Cu.exports,k7=9007199254740991,M7=/^(?:0|[1-9]\d*)$/;function F7(e,t){var n=typeof e;return t=t??k7,!!t&&(n=="number"||n!="symbol"&&M7.test(e))&&e>-1&&e%1==0&&e<t}var W1=F7,_7=9007199254740991;function R7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_7}var z1=R7,D7=Ja,L7=z1,B7=Ps,N7="[object Arguments]",V7="[object Array]",W7="[object Boolean]",z7="[object Date]",U7="[object Error]",H7="[object Function]",G7="[object Map]",Y7="[object Number]",K7="[object Object]",X7="[object RegExp]",Z7="[object Set]",Q7="[object String]",J7="[object WeakMap]",q7="[object ArrayBuffer]",$7="[object DataView]",eN="[object Float32Array]",tN="[object Float64Array]",nN="[object Int8Array]",rN="[object Int16Array]",oN="[object Int32Array]",iN="[object Uint8Array]",sN="[object Uint8ClampedArray]",aN="[object Uint16Array]",lN="[object Uint32Array]",yt={};yt[eN]=yt[tN]=yt[nN]=yt[rN]=yt[oN]=yt[iN]=yt[sN]=yt[aN]=yt[lN]=!0,yt[N7]=yt[V7]=yt[q7]=yt[W7]=yt[$7]=yt[z7]=yt[U7]=yt[H7]=yt[G7]=yt[Y7]=yt[K7]=yt[X7]=yt[Z7]=yt[Q7]=yt[J7]=!1;function cN(e){return B7(e)&&L7(e.length)&&!!yt[D7(e)]}var uN=cN;function dN(e){return function(t){return e(t)}}var U1=dN,wu={exports:{}};wu.exports,function(e,t){var n=C1,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,c=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=c}(wu,wu.exports);var fN=wu.exports,pN=uN,hN=U1,H1=fN,G1=H1&&H1.isTypedArray,gN=G1?hN(G1):pN,Ph=gN,mN=y7,vN=Ih,yN=qa,bN=Oh,xN=W1,CN=Ph,wN=Object.prototype,SN=wN.hasOwnProperty;function EN(e,t){var n=yN(e),r=!n&&vN(e),o=!n&&!r&&bN(e),i=!n&&!r&&!o&&CN(e),a=n||r||o||i,c=a?mN(e.length,String):[],u=c.length;for(var d in e)(t||SN.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||xN(d,u)))&&c.push(d);return c}var Y1=EN,TN=Object.prototype;function AN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||TN;return e===n}var jh=AN;function IN(e,t){return function(n){return e(t(n))}}var K1=IN,ON=K1,PN=ON(Object.keys,Object),jN=PN,kN=jh,MN=jN,FN=Object.prototype,_N=FN.hasOwnProperty;function RN(e){if(!kN(e))return MN(e);var t=[];for(var n in Object(e))_N.call(e,n)&&n!="constructor"&&t.push(n);return t}var DN=RN,LN=xh,BN=z1;function NN(e){return e!=null&&BN(e.length)&&!LN(e)}var Su=NN,VN=Y1,WN=DN,zN=Su;function UN(e){return zN(e)?VN(e):WN(e)}var HN=UN,GN=s7,YN=m7,KN=HN;function XN(e){return GN(e,KN,YN)}var ZN=XN,X1=ZN,QN=1,JN=Object.prototype,qN=JN.hasOwnProperty;function $N(e,t,n,r,o,i){var a=n&QN,c=X1(e),u=c.length,d=X1(t),p=d.length;if(u!=p&&!a)return!1;for(var g=u;g--;){var v=c[g];if(!(a?v in t:qN.call(t,v)))return!1}var y=i.get(e),b=i.get(t);if(y&&b)return y==t&&b==e;var x=!0;i.set(e,t),i.set(t,e);for(var w=a;++g<u;){v=c[g];var A=e[v],j=t[v];if(r)var T=a?r(j,A,v,t,e,i):r(A,j,v,e,t,i);if(!(T===void 0?A===j||o(A,j,n,r,i):T)){x=!1;break}w||(w=v=="constructor")}if(x&&!w){var P=e.constructor,O=t.constructor;P!=O&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(x=!1)}return i.delete(e),i.delete(t),x}var e2=$N,t2=wi,n2=Yr,r2=t2(n2,"DataView"),o2=r2,i2=wi,s2=Yr,a2=i2(s2,"Promise"),l2=a2,c2=wi,u2=Yr,d2=c2(u2,"Set"),Z1=d2,f2=wi,p2=Yr,h2=f2(p2,"WeakMap"),g2=h2,kh=o2,Mh=wh,Fh=l2,_h=Z1,Rh=g2,Q1=Ja,js=I1,J1="[object Map]",m2="[object Object]",q1="[object Promise]",$1="[object Set]",ew="[object WeakMap]",tw="[object DataView]",v2=js(kh),y2=js(Mh),b2=js(Fh),x2=js(_h),C2=js(Rh),Si=Q1;(kh&&Si(new kh(new ArrayBuffer(1)))!=tw||Mh&&Si(new Mh)!=J1||Fh&&Si(Fh.resolve())!=q1||_h&&Si(new _h)!=$1||Rh&&Si(new Rh)!=ew)&&(Si=function(e){var t=Q1(e),n=t==m2?e.constructor:void 0,r=n?js(n):"";if(r)switch(r){case v2:return tw;case y2:return J1;case b2:return q1;case x2:return $1;case C2:return ew}return t});var w2=Si,Dh=k1,S2=M1,E2=e7,T2=e2,nw=w2,rw=qa,ow=Oh,A2=Ph,I2=1,iw="[object Arguments]",sw="[object Array]",Eu="[object Object]",O2=Object.prototype,aw=O2.hasOwnProperty;function P2(e,t,n,r,o,i){var a=rw(e),c=rw(t),u=a?sw:nw(e),d=c?sw:nw(t);u=u==iw?Eu:u,d=d==iw?Eu:d;var p=u==Eu,g=d==Eu,v=u==d;if(v&&ow(e)){if(!ow(t))return!1;a=!0,p=!1}if(v&&!p)return i||(i=new Dh),a||A2(e)?S2(e,t,n,r,o,i):E2(e,t,u,n,r,o,i);if(!(n&I2)){var y=p&&aw.call(e,"__wrapped__"),b=g&&aw.call(t,"__wrapped__");if(y||b){var x=y?e.value():e,w=b?t.value():t;return i||(i=new Dh),o(x,w,n,r,i)}}return v?(i||(i=new Dh),T2(e,t,n,r,o,i)):!1}var j2=P2,k2=j2,lw=Ps;function cw(e,t,n,r,o){return e===t?!0:e==null||t==null||!lw(e)&&!lw(t)?e!==e&&t!==t:k2(e,t,n,r,cw,o)}var M2=cw,F2=M2;function _2(e,t){return F2(e,t)}var R2=_2;const $a=Dr(R2);var D2=wi,L2=function(){try{var e=D2(Object,"defineProperty");return e({},"",{}),e}catch{}}(),uw=L2,dw=uw;function B2(e,t,n){t=="__proto__"&&dw?dw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Lh=B2,N2=Lh,V2=Za;function W2(e,t,n){(n!==void 0&&!V2(e[t],n)||n===void 0&&!(t in e))&&N2(e,t,n)}var fw=W2;function z2(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(n(i[u],u,i)===!1)break}return t}}var U2=z2,H2=U2,G2=H2(),Y2=G2,Tu={exports:{}};Tu.exports,function(e,t){var n=Yr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;function u(d,p){if(p)return d.slice();var g=d.length,v=c?c(g):new d.constructor(g);return d.copy(v),v}e.exports=u}(Tu,Tu.exports);var K2=Tu.exports,pw=F1;function X2(e){var t=new e.constructor(e.byteLength);return new pw(t).set(new pw(e)),t}var Z2=X2,Q2=Z2;function J2(e,t){var n=t?Q2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var q2=J2;function $2(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var eV=$2,tV=Ci,hw=Object.create,nV=function(){function e(){}return function(t){if(!tV(t))return{};if(hw)return hw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),rV=nV,oV=K1,iV=oV(Object.getPrototypeOf,Object),gw=iV,sV=rV,aV=gw,lV=jh;function cV(e){return typeof e.constructor=="function"&&!lV(e)?sV(aV(e)):{}}var uV=cV,dV=Su,fV=Ps;function pV(e){return fV(e)&&dV(e)}var Bh=pV,hV=Ja,gV=gw,mV=Ps,vV="[object Object]",yV=Function.prototype,bV=Object.prototype,mw=yV.toString,xV=bV.hasOwnProperty,CV=mw.call(Object);function wV(e){if(!mV(e)||hV(e)!=vV)return!1;var t=gV(e);if(t===null)return!0;var n=xV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mw.call(n)==CV}var SV=wV;function EV(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vw=EV,TV=Lh,AV=Za,IV=Object.prototype,OV=IV.hasOwnProperty;function PV(e,t,n){var r=e[t];(!(OV.call(e,t)&&AV(r,n))||n===void 0&&!(t in e))&&TV(e,t,n)}var jV=PV,kV=jV,MV=Lh;function FV(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;u===void 0&&(u=e[c]),o?MV(n,c,u):kV(n,c,u)}return n}var _V=FV;function RV(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var DV=RV,LV=Ci,BV=jh,NV=DV,VV=Object.prototype,WV=VV.hasOwnProperty;function zV(e){if(!LV(e))return NV(e);var t=BV(e),n=[];for(var r in e)r=="constructor"&&(t||!WV.call(e,r))||n.push(r);return n}var UV=zV,HV=Y1,GV=UV,YV=Su;function KV(e){return YV(e)?HV(e,!0):GV(e)}var yw=KV,XV=_V,ZV=yw;function QV(e){return XV(e,ZV(e))}var JV=QV,bw=fw,qV=K2,$V=q2,eW=eV,tW=uV,xw=Ih,Cw=qa,nW=Bh,rW=Oh,oW=xh,iW=Ci,sW=SV,aW=Ph,ww=vw,lW=JV;function cW(e,t,n,r,o,i,a){var c=ww(e,n),u=ww(t,n),d=a.get(u);if(d){bw(e,n,d);return}var p=i?i(c,u,n+"",e,t,a):void 0,g=p===void 0;if(g){var v=Cw(u),y=!v&&rW(u),b=!v&&!y&&aW(u);p=u,v||y||b?Cw(c)?p=c:nW(c)?p=eW(c):y?(g=!1,p=qV(u,!0)):b?(g=!1,p=$V(u,!0)):p=[]:sW(u)||xw(u)?(p=c,xw(c)?p=lW(c):(!iW(c)||oW(c))&&(p=tW(u))):g=!1}g&&(a.set(u,p),o(p,u,r,i,a),a.delete(u)),bw(e,n,p)}var uW=cW,dW=k1,fW=fw,pW=Y2,hW=uW,gW=Ci,mW=yw,vW=vw;function Sw(e,t,n,r,o){e!==t&&pW(t,function(i,a){if(o||(o=new dW),gW(i))hW(e,t,a,n,Sw,r,o);else{var c=r?r(vW(e,a),i,a+"",e,t,o):void 0;c===void 0&&(c=i),fW(e,a,c)}},mW)}var yW=Sw;function bW(e){return e}var Ew=bW;function xW(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var CW=xW,wW=CW,Tw=Math.max;function SW(e,t,n){return t=Tw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Tw(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),wW(e,this,c)}}var EW=SW;function TW(e){return function(){return e}}var AW=TW,IW=AW,Aw=uw,OW=Ew,PW=Aw?function(e,t){return Aw(e,"toString",{configurable:!0,enumerable:!1,value:IW(t),writable:!0})}:OW,jW=PW,kW=800,MW=16,FW=Date.now;function _W(e){var t=0,n=0;return function(){var r=FW(),o=MW-(r-n);if(n=r,o>0){if(++t>=kW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RW=_W,DW=jW,LW=RW,BW=LW(DW),NW=BW,VW=Ew,WW=EW,zW=NW;function UW(e,t){return zW(WW(e,t,VW),e+"")}var Nh=UW,HW=Za,GW=Su,YW=W1,KW=Ci;function XW(e,t,n){if(!KW(n))return!1;var r=typeof t;return(r=="number"?GW(n)&&YW(t,n.length):r=="string"&&t in n)?HW(n[t],e):!1}var ZW=XW,QW=Nh,JW=ZW;function qW(e){return QW(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&JW(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t})}var $W=qW,ez=yW,tz=$W,nz=tz(function(e,t,n){ez(e,t,n)}),rz=nz;const Iw=Dr(rz);var Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Au.apply(this,arguments)},Ow=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Pw=function(e){var t=e.className,n=e.icon,r=n===void 0?iz:n,o=e.label,i=o===void 0?"ra.action.create":o;e.resource;var a=e.scrollToTop,c=a===void 0?!0:a,u=e.variant,d=e.to,p=e.state,g=p===void 0?{}:p,v=Ow(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),y=q.useResourceContext(e),b=q.useCreatePath(),x=q.useTranslate(),w=S.useMediaQuery(function(T){return T.breakpoints.down("md")}),A=Iw({},oz.get(String(c)),g),j=cz(d);return w?D.createElement(sz,Au({component:ut.Link,to:b({resource:y,type:"create"}),state:A,color:"primary",className:Es(Vh.floating,t),"aria-label":i&&x(i)},v,j),r):D.createElement(az,Au({component:ut.Link,to:b({resource:y,type:"create"}),state:A,className:Es(Vh.root,t),label:i,variant:u},v,j),r)},oz=new Map([["true",{_scrollToTop:!0}],["false",{}]]),iz=D.createElement(bh,null);Pw.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};var Iu="RaCreateButton",Vh={root:"".concat(Iu,"-root"),floating:"".concat(Iu,"-floating")},sz=ue(S.Fab,{name:Iu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["&.".concat(Vh.floating)]={color:n.palette.getContrastText(n.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),az=ue(vh,{name:Iu,overridesResolver:function(e,t){return t.root}})({});const lz=D.memo(Pw,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&$a(e.to,t.to)&&$a(e.state,t.state)});var cz=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=Ow(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},Wh={},uz=sr;Object.defineProperty(Wh,"__esModule",{value:!0});var zh=Wh.default=void 0,dz=uz(Gr()),fz=f;zh=Wh.default=(0,dz.default)((0,fz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var jw={exports:{}};/*!
181
181
  * inflection
182
182
  * Copyright(c) 2011 Ben Lin <ben@dreamerslab.com>
183
183
  * MIT Licensed
184
184
  *
185
185
  * @fileoverview
186
186
  * A port of inflection-js to node.js module.
187
- */(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],r={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[r.plural.men],[r.plural.people],[r.plural.children],[r.plural.tia],[r.plural.analyses],[r.plural.hives],[r.plural.curves],[r.plural.lrves],[r.plural.foves],[r.plural.aeiouyies],[r.plural.series],[r.plural.movies],[r.plural.xes],[r.plural.mice],[r.plural.buses],[r.plural.oes],[r.plural.shoes],[r.plural.crises],[r.plural.octopi],[r.plural.aliases],[r.plural.summonses],[r.plural.oxen],[r.plural.matrices],[r.plural.feet],[r.plural.teeth],[r.plural.geese],[r.plural.quizzes],[r.plural.whereases],[r.plural.criteria],[r.plural.genera],[r.singular.man,"$1en"],[r.singular.person,"$1ople"],[r.singular.child,"$1ren"],[r.singular.ox,"$1en"],[r.singular.axis,"$1es"],[r.singular.octopus,"$1i"],[r.singular.alias,"$1es"],[r.singular.summons,"$1es"],[r.singular.bus,"$1ses"],[r.singular.buffalo,"$1oes"],[r.singular.tium,"$1a"],[r.singular.sis,"ses"],[r.singular.ffe,"$1$2ves"],[r.singular.hive,"$1ves"],[r.singular.aeiouyy,"$1ies"],[r.singular.matrix,"$1ices"],[r.singular.vertex,"$1ices"],[r.singular.x,"$1es"],[r.singular.mouse,"$1ice"],[r.singular.foot,"feet"],[r.singular.tooth,"teeth"],[r.singular.goose,"geese"],[r.singular.quiz,"$1zes"],[r.singular.whereas,"$1es"],[r.singular.criterion,"$1a"],[r.singular.genus,"genera"],[r.singular.s,"s"],[r.singular.common,"s"]],i=[[r.singular.man],[r.singular.person],[r.singular.child],[r.singular.ox],[r.singular.axis],[r.singular.octopus],[r.singular.alias],[r.singular.summons],[r.singular.bus],[r.singular.buffalo],[r.singular.tium],[r.singular.sis],[r.singular.ffe],[r.singular.hive],[r.singular.aeiouyy],[r.singular.x],[r.singular.matrix],[r.singular.mouse],[r.singular.foot],[r.singular.tooth],[r.singular.goose],[r.singular.quiz],[r.singular.whereas],[r.singular.criterion],[r.singular.genus],[r.plural.men,"$1an"],[r.plural.people,"$1rson"],[r.plural.children,"$1"],[r.plural.genera,"genus"],[r.plural.criteria,"$1on"],[r.plural.tia,"$1um"],[r.plural.analyses,"$1$2sis"],[r.plural.hives,"$1ve"],[r.plural.curves,"$1"],[r.plural.lrves,"$1f"],[r.plural.aves,"$1ve"],[r.plural.foves,"$1fe"],[r.plural.movies,"$1ovie"],[r.plural.aeiouyies,"$1y"],[r.plural.series,"$1eries"],[r.plural.xes,"$1"],[r.plural.mice,"$1ouse"],[r.plural.buses,"$1"],[r.plural.oes,"$1"],[r.plural.shoes,"$1"],[r.plural.crises,"$1is"],[r.plural.octopi,"$1us"],[r.plural.aliases,"$1"],[r.plural.summonses,"$1"],[r.plural.oxen,"$1"],[r.plural.matrices,"$1ix"],[r.plural.vertices,"$1ex"],[r.plural.feet,"foot"],[r.plural.teeth,"tooth"],[r.plural.geese,"goose"],[r.plural.quizzes,"$1"],[r.plural.whereases,"$1"],[r.plural.ss,"ss"],[r.plural.s,""]],a=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],c=new RegExp("(_ids|_id)$","g"),u=new RegExp("_","g"),d=new RegExp("[ _]","g"),p=new RegExp("([A-Z])","g"),g=new RegExp("^_"),v={_apply_rules:function(y,b,x,w){if(w)y=w;else{var A=v.indexOf(x,y.toLowerCase())>-1;if(!A){for(var j=0,T=b.length;j<T;j++)if(y.match(b[j][0])){b[j][1]!==void 0&&(y=y.replace(b[j][0],b[j][1]));break}}}return y},indexOf:function(y,b,x,w){x||(x=-1);for(var A=-1,j=x,T=y.length;j<T;j++)if(y[j]===b||w&&w(y[j],b)){A=j;break}return A},pluralize:function(y,b){return v._apply_rules(y,o,n,b)},singularize:function(y,b){return v._apply_rules(y,i,n,b)},inflect:function(y,b,x,w){return b=parseInt(b,10),isNaN(b)?y:b===0||b>1?v._apply_rules(y,o,n,w):v._apply_rules(y,i,n,x)},camelize:function(y,b){for(var x=y.split("/"),w=0,A=x.length,j,T,P,O;w<A;w++){for(j=x[w].split("_"),T=0,P=j.length;T<P;T++)T!==0&&(j[T]=j[T].toLowerCase()),O=j[T].charAt(0),O=b&&w===0&&T===0?O.toLowerCase():O.toUpperCase(),j[T]=O+j[T].substring(1);x[w]=j.join("")}return x.join("::")},underscore:function(y,b){if(b&&y===y.toUpperCase())return y;for(var x=y.split("::"),w=0,A=x.length;w<A;w++)x[w]=x[w].replace(p,"_$1"),x[w]=x[w].replace(g,"");return x.join("/").toLowerCase()},humanize:function(y,b){return y=y.toLowerCase(),y=y.replace(c,""),y=y.replace(u," "),b||(y=v.capitalize(y)),y},capitalize:function(y){return y=y.toLowerCase(),y.substring(0,1).toUpperCase()+y.substring(1)},dasherize:function(y){return y.replace(d,"-")},titleize:function(y){y=y.toLowerCase().replace(u," ");for(var b=y.split(" "),x=0,w=b.length,A,j,T;x<w;x++){for(A=b[x].split("-"),j=0,T=A.length;j<T;j++)v.indexOf(a,A[j].toLowerCase())<0&&(A[j]=v.capitalize(A[j]));b[x]=A.join("-")}return y=b.join(" "),y=y.substring(0,1).toUpperCase()+y.substring(1),y},demodulize:function(y){var b=y.split("::");return b[b.length-1]},tableize:function(y){return y=v.underscore(y),y=v.pluralize(y),y},classify:function(y){return y=v.camelize(y),y=v.singularize(y),y},foreign_key:function(y,b){return y=v.demodulize(y),y=v.underscore(y)+(b?"":"_")+"id",y},ordinalize:function(y){for(var b=y.split(" "),x=0,w=b.length;x<w;x++){var A=parseInt(b[x],10);if(!isNaN(A)){var j=b[x].substring(b[x].length-2),T=b[x].substring(b[x].length-1),P="th";j!="11"&&j!="12"&&j!="13"&&(T==="1"?P="st":T==="2"?P="nd":T==="3"&&(P="rd")),b[x]+=P}}return b.join(" ")},transform:function(y,b){for(var x=0,w=b.length;x<w;x++){var A=b[x];v.hasOwnProperty(A)&&(y=v[A](y))}return y}};return v.version="1.12.0",v})})(jw);var pz=jw.exports;const Vo=Dr(pz);var Uh=function(){return Uh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Uh.apply(this,arguments)},hz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Iu,Hh,kw=function(e){var t=e.className,n=e.onClick,r=e.sx,o=hz(e,["className","onClick","sx"]),i=q.useLoading(),a=pt();return D.createElement(gz,{className:t,sx:r},D.createElement(aS,{className:"".concat(ks.loadedIcon," ").concat(i&&ks.loadedLoading),onClick:n}),i&&D.createElement(du,Uh({className:Es("app-loader",ks.loader),color:"inherit",size:a.spacing(2),thickness:6},o)))};kw.propTypes={classes:m.object,className:m.string,width:m.string};var Ou="RaLoadingIndicator",ks={loader:"".concat(Ou,"-loader"),loadedLoading:"".concat(Ou,"-loadedLoading"),loadedIcon:"".concat(Ou,"-loadedIcon")},gz=ue("div",{name:Ou,overridesResolver:function(e,t){return t.root}})((Iu={position:"relative"},Iu["& .".concat(ks.loadedIcon)]=(Hh={},Hh["&.".concat(ks.loadedLoading)]={opacity:0},Hh),Iu["& .".concat(ks.loader)]={position:"absolute",top:"30%",left:"30%"},Iu));const Mw=e=>e.scrollTop;function Pu(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function mz(e){const t=Un(e);return t.body===e?Nc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function el(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fw(e){return parseInt(Nc(e).getComputedStyle(e).paddingRight,10)||0}function vz(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function _w(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=i.indexOf(a)===-1,u=!vz(a);c&&u&&el(a,o)})}function Gh(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function yz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(mz(r)){const a=z8(Un(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Fw(r)+a}px`;const c=Un(r).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Fw(u)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Un(r).body;else{const a=r.parentElement,c=Nc(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function bz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class xz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&el(t.modalRef,!1);const o=bz(n);_w(n,t.mount,t.modalRef,o,!0);const i=Gh(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Gh(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=yz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Gh(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&el(t.modalRef,n),_w(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&el(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Cz(e){return typeof e=="function"?e():e}function wz(e){return e?e.props.hasOwnProperty("in"):!1}const Sz=new xz;function Ez(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Sz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:c,children:u,onClose:d,open:p,rootRef:g}=e,v=D.useRef({}),y=D.useRef(null),b=D.useRef(null),x=on(b,g),[w,A]=D.useState(!p),j=wz(u);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const P=()=>Un(y.current),O=()=>(v.current.modalRef=b.current,v.current.mount=y.current,v.current),_=()=>{o.mount(O(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},R=co(()=>{const V=Cz(t)||P().body;o.add(O(),V),b.current&&_()}),N=D.useCallback(()=>o.isTopModal(O()),[o]),Y=co(V=>{y.current=V,V&&(p&&N()?_():b.current&&el(b.current,T))}),X=D.useCallback(()=>{o.remove(O(),T)},[T,o]);D.useEffect(()=>()=>{X()},[X]),D.useEffect(()=>{p?R():(!j||!i)&&X()},[p,X,j,i,R]);const G=V=>$=>{var W;(W=V.onKeyDown)==null||W.call(V,$),!($.key!=="Escape"||$.which===229||!N())&&(n||($.stopPropagation(),d&&d($,"escapeKeyDown")))},re=V=>$=>{var W;(W=V.onClick)==null||W.call(V,$),$.target===$.currentTarget&&d&&d($,"backdropClick")};return{getRootProps:(V={})=>{const $=iC(e);delete $.onTransitionEnter,delete $.onTransitionExited;const W=H({},$,V);return H({role:"presentation"},W,{onKeyDown:G(W),ref:x})},getBackdropProps:(V={})=>{const $=V;return H({"aria-hidden":!0},$,{onClick:re($),open:p})},getTransitionProps:()=>{const V=()=>{A(!1),a&&a()},$=()=>{A(!0),c&&c(),i&&X()};return{onEnter:zp(V,u==null?void 0:u.props.onEnter),onExited:zp($,u==null?void 0:u.props.onExited)}},rootRef:x,portalRef:Y,isTopModal:N,exited:w,hasTransition:j}}const Tz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Az(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Iz(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Oz(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Iz(e))}function Pz(e){const t=[],n=[];return Array.from(e.querySelectorAll(Tz)).forEach((r,o)=>{const i=Az(r);i===-1||!Oz(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function jz(){return!0}function ju(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Pz,isEnabled:a=jz,open:c}=e,u=D.useRef(!1),d=D.useRef(null),p=D.useRef(null),g=D.useRef(null),v=D.useRef(null),y=D.useRef(!1),b=D.useRef(null),x=on(t.ref,b),w=D.useRef(null);D.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),D.useEffect(()=>{if(!c||!b.current)return;const T=Un(b.current);return b.current.contains(T.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
188
- `)),b.current.setAttribute("tabIndex","-1")),y.current&&b.current.focus()),()=>{o||(g.current&&g.current.focus&&(u.current=!0,g.current.focus()),g.current=null)}},[c]),D.useEffect(()=>{if(!c||!b.current)return;const T=Un(b.current),P=R=>{w.current=R,!(r||!a()||R.key!=="Tab")&&T.activeElement===b.current&&R.shiftKey&&(u.current=!0,p.current&&p.current.focus())},O=()=>{const R=b.current;if(R===null)return;if(!T.hasFocus()||!a()||u.current){u.current=!1;return}if(R.contains(T.activeElement)||r&&T.activeElement!==d.current&&T.activeElement!==p.current)return;if(T.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!y.current)return;let N=[];if((T.activeElement===d.current||T.activeElement===p.current)&&(N=i(b.current)),N.length>0){var Y,X;const G=!!((Y=w.current)!=null&&Y.shiftKey&&((X=w.current)==null?void 0:X.key)==="Tab"),re=N[0],ne=N[N.length-1];typeof re!="string"&&typeof ne!="string"&&(G?ne.focus():re.focus())}else R.focus()};T.addEventListener("focusin",O),T.addEventListener("keydown",P,!0);const _=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(_),T.removeEventListener("focusin",O),T.removeEventListener("keydown",P,!0)}},[n,r,o,a,c,i]);const A=T=>{g.current===null&&(g.current=T.relatedTarget),y.current=!0,v.current=T.target;const P=t.props.onFocus;P&&P(T)},j=T=>{g.current===null&&(g.current=T.relatedTarget),y.current=!0};return f.jsxs(D.Fragment,{children:[f.jsx("div",{tabIndex:c?0:-1,onFocus:j,ref:d,"data-testid":"sentinelStart"}),D.cloneElement(t,{ref:x,onFocus:A}),f.jsx("div",{tabIndex:c?0:-1,onFocus:j,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ju.propTypes={children:gs,disableAutoFocus:m.bool,disableEnforceFocus:m.bool,disableRestoreFocus:m.bool,getTabbable:m.func,isEnabled:m.func,open:m.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ju.propTypes=La(ju.propTypes));function kz(e){return typeof e=="function"?e():e}const tl=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Wr(()=>{i||c(kz(o)||document.body)},[o,i]),Wr(()=>{if(a&&!i)return ps(n,a),()=>{ps(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&vv.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(tl.propTypes={children:m.node,container:m.oneOfType([lo,m.func]),disablePortal:m.bool}),process.env.NODE_ENV!=="production"&&(tl.propTypes=La(tl.propTypes));const Mz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Fz={entering:{opacity:1},entered:{opacity:1}},Yh=D.forwardRef(function(t,n){const r=pt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:u,in:d,onEnter:p,onEntered:g,onEntering:v,onExit:y,onExited:b,onExiting:x,style:w,timeout:A=o,TransitionComponent:j=zr}=t,T=Re(t,Mz),P=D.useRef(null),O=on(P,c.ref,n),_=Z=>J=>{if(Z){const V=P.current;J===void 0?Z(V):Z(V,J)}},R=_(v),N=_((Z,J)=>{Mw(Z);const V=Pu({style:w,timeout:A,easing:u},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("opacity",V),Z.style.transition=r.transitions.create("opacity",V),p&&p(Z,J)}),Y=_(g),X=_(x),G=_(Z=>{const J=Pu({style:w,timeout:A,easing:u},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("opacity",J),Z.style.transition=r.transitions.create("opacity",J),y&&y(Z)}),re=_(b),ne=Z=>{i&&i(P.current,Z)};return f.jsx(j,H({appear:a,in:d,nodeRef:P,onEnter:N,onEntered:Y,onEntering:R,onExit:G,onExited:re,onExiting:X,addEndListener:ne,timeout:A},T,{children:(Z,J)=>D.cloneElement(c,H({style:H({opacity:0,visibility:Z==="exited"&&!d?"hidden":void 0},Fz[Z],w,c.props.style),ref:O},J))}))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={addEndListener:m.func,appear:m.bool,children:gs.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});function _z(e){return Lt("MuiBackdrop",e)}Yt("MuiBackdrop",["root","invisible"]);const Rz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Dz=e=>{const{classes:t,invisible:n}=e;return Ut({root:["root",n&&"invisible"]},_z,t)},Lz=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>H({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Kh=D.forwardRef(function(t,n){var r,o,i;const a=Gt({props:t,name:"MuiBackdrop"}),{children:c,className:u,component:d="div",components:p={},componentsProps:g={},invisible:v=!1,open:y,slotProps:b={},slots:x={},TransitionComponent:w=Yh,transitionDuration:A}=a,j=Re(a,Rz),T=H({},a,{component:d,invisible:v}),P=Dz(T),O=(r=b.root)!=null?r:g.root;return f.jsx(w,H({in:y,timeout:A},j,{children:f.jsx(Lz,H({"aria-hidden":!0},O,{as:(o=(i=x.root)!=null?i:p.Root)!=null?o:d,className:Be(P.root,u,O==null?void 0:O.className),ownerState:H({},T,O==null?void 0:O.ownerState),classes:P,ref:n,children:c}))}))});process.env.NODE_ENV!=="production"&&(Kh.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.object}),invisible:m.bool,open:m.bool.isRequired,slotProps:m.shape({root:m.object}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});function Bz(e){return Lt("MuiModal",e)}Yt("MuiModal",["root","hidden","backdrop"]);const Nz=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Vz=e=>{const{open:t,exited:n,classes:r}=e;return Ut({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Bz,r)},Wz=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>H({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),zz=ue(Kh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rw=D.forwardRef(function(t,n){var r,o,i,a,c,u;const d=Gt({name:"MuiModal",props:t}),{BackdropComponent:p=zz,BackdropProps:g,className:v,closeAfterTransition:y=!1,children:b,container:x,component:w,components:A={},componentsProps:j={},disableAutoFocus:T=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:O=!1,disablePortal:_=!1,disableRestoreFocus:R=!1,disableScrollLock:N=!1,hideBackdrop:Y=!1,keepMounted:X=!1,onBackdropClick:G,open:re,slotProps:ne,slots:Z}=d,J=Re(d,Nz),V=H({},d,{closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:P,disableEscapeKeyDown:O,disablePortal:_,disableRestoreFocus:R,disableScrollLock:N,hideBackdrop:Y,keepMounted:X}),{getRootProps:$,getBackdropProps:W,getTransitionProps:ie,portalRef:U,isTopModal:ee,exited:de,hasTransition:ge}=Ez(H({},V,{rootRef:n})),fe=H({},V,{exited:de}),he=Vz(fe),me={};if(b.props.tabIndex===void 0&&(me.tabIndex="-1"),ge){const{onEnter:Ke,onExited:ve}=ie();me.onEnter=Ke,me.onExited=ve}const Se=(r=(o=Z==null?void 0:Z.root)!=null?o:A.Root)!=null?r:Wz,be=(i=(a=Z==null?void 0:Z.backdrop)!=null?a:A.Backdrop)!=null?i:p,ye=(c=ne==null?void 0:ne.root)!=null?c:j.root,we=(u=ne==null?void 0:ne.backdrop)!=null?u:j.backdrop,Ie=Uc({elementType:Se,externalSlotProps:ye,externalForwardedProps:J,getSlotProps:$,additionalProps:{ref:n,as:w},ownerState:fe,className:Be(v,ye==null?void 0:ye.className,he==null?void 0:he.root,!fe.open&&fe.exited&&(he==null?void 0:he.hidden))}),pe=Uc({elementType:be,externalSlotProps:we,additionalProps:g,getSlotProps:Ke=>W(H({},Ke,{onClick:ve=>{G&&G(ve),Ke!=null&&Ke.onClick&&Ke.onClick(ve)}})),className:Be(we==null?void 0:we.className,g==null?void 0:g.className,he==null?void 0:he.backdrop),ownerState:fe});return!X&&!re&&(!ge||de)?null:f.jsx(tl,{ref:U,container:x,disablePortal:_,children:f.jsxs(Se,H({},Ie,{children:[!Y&&p?f.jsx(be,H({},pe)):null,f.jsx(ju,{disableEnforceFocus:P,disableAutoFocus:T,disableRestoreFocus:R,isEnabled:ee,open:re,children:D.cloneElement(b,me)})]}))})});process.env.NODE_ENV!=="production"&&(Rw.propTypes={BackdropComponent:m.elementType,BackdropProps:m.object,children:gs.isRequired,classes:m.object,className:m.string,closeAfterTransition:m.bool,component:m.elementType,components:m.shape({Backdrop:m.elementType,Root:m.elementType}),componentsProps:m.shape({backdrop:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([lo,m.func]),disableAutoFocus:m.bool,disableEnforceFocus:m.bool,disableEscapeKeyDown:m.bool,disablePortal:m.bool,disableRestoreFocus:m.bool,disableScrollLock:m.bool,hideBackdrop:m.bool,keepMounted:m.bool,onBackdropClick:m.func,onClose:m.func,onTransitionEnter:m.func,onTransitionExited:m.func,open:m.bool.isRequired,slotProps:m.shape({backdrop:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object])}),slots:m.shape({backdrop:m.elementType,root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function Uz(e){return Lt("MuiPaper",e)}Yt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hz=["className","component","elevation","square","variant"],Gz=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ut(i,Uz,o)},Yz=ue("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return H({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&H({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Vr("#fff",IC(t.elevation))}, ${Vr("#fff",IC(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Xh=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,d=Re(r,Hz),p=H({},r,{component:i,elevation:a,square:c,variant:u}),g=Gz(p);return process.env.NODE_ENV!=="production"&&pt().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
189
- `)),f.jsx(Yz,H({as:i,ownerState:p,className:Be(g.root,o),ref:n},d))});process.env.NODE_ENV!=="production"&&(Xh.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,elevation:ao(zc,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["elevation","outlined"]),m.string])});function Kz(e){return Lt("MuiDialog",e)}const Zh=Yt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Qh=D.createContext({});process.env.NODE_ENV!=="production"&&(Qh.displayName="DialogContext");const Xz=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Zz=ue(Kh,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qz=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ut(a,Kz,t)},Jz=ue(Rw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),qz=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ne(n.scroll)}`]]}})(({ownerState:e})=>H({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$z=ue(Xh,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ne(n.scroll)}`],t[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>H({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Zh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Zh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Zh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialog"}),o=pt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,BackdropComponent:u,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:v=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:x="sm",onBackdropClick:w,onClick:A,onClose:j,open:T,PaperComponent:P=Xh,PaperProps:O={},scroll:_="paper",TransitionComponent:R=Yh,transitionDuration:N=i,TransitionProps:Y}=r,X=Re(r,Xz),G=H({},r,{disableEscapeKeyDown:v,fullScreen:y,fullWidth:b,maxWidth:x,scroll:_}),re=Qz(G),ne=D.useRef(),Z=W=>{ne.current=W.target===W.currentTarget},J=W=>{A&&A(W),ne.current&&(ne.current=null,w&&w(W),j&&j(W,"backdropClick"))},V=Vc(c),$=D.useMemo(()=>({titleId:V}),[V]);return f.jsx(Jz,H({className:Be(re.root,g),closeAfterTransition:!0,components:{Backdrop:Zz},componentsProps:{backdrop:H({transitionDuration:N,as:u},d)},disableEscapeKeyDown:v,onClose:j,open:T,ref:n,onClick:J,ownerState:G},X,{children:f.jsx(R,H({appear:!0,in:T,timeout:N,role:"presentation"},Y,{children:f.jsx(qz,{className:Be(re.container),onMouseDown:Z,ownerState:G,children:f.jsx($z,H({as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":V},O,{className:Be(re.paper,O.className),ownerState:G,children:f.jsx(Qh.Provider,{value:$,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(Dw.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,BackdropComponent:m.elementType,BackdropProps:m.object,children:m.node,classes:m.object,className:m.string,disableEscapeKeyDown:m.bool,fullScreen:m.bool,fullWidth:m.bool,maxWidth:m.oneOfType([m.oneOf(["xs","sm","md","lg","xl",!1]),m.string]),onBackdropClick:m.func,onClick:m.func,onClose:m.func,open:m.bool.isRequired,PaperComponent:m.elementType,PaperProps:m.object,scroll:m.oneOf(["body","paper"]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})]),TransitionProps:m.object});function eU(e){return Lt("MuiDialogActions",e)}Yt("MuiDialogActions",["root","spacing"]);const tU=["className","disableSpacing"],nU=e=>{const{classes:t,disableSpacing:n}=e;return Ut({root:["root",!n&&"spacing"]},eU,t)},rU=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>H({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Lw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=Re(r,tU),c=H({},r,{disableSpacing:i}),u=nU(c);return f.jsx(rU,H({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&(Lw.propTypes={children:m.node,classes:m.object,className:m.string,disableSpacing:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function oU(e){return Lt("MuiDialogContent",e)}Yt("MuiDialogContent",["root","dividers"]);function iU(e){return Lt("MuiDialogTitle",e)}const sU=Yt("MuiDialogTitle",["root"]),aU=["className","dividers"],lU=e=>{const{classes:t,dividers:n}=e;return Ut({root:["root",n&&"dividers"]},oU,t)},cU=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>H({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${sU.root} + &`]:{paddingTop:0}})),Bw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=Re(r,aU),c=H({},r,{dividers:i}),u=lU(c);return f.jsx(cU,H({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&(Bw.propTypes={children:m.node,classes:m.object,className:m.string,dividers:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function uU(e){return Lt("MuiDialogContentText",e)}Yt("MuiDialogContentText",["root"]);const dU=["children","className"],fU=e=>{const{classes:t}=e,r=Ut({root:["root"]},uU,t);return H({},t,r)},pU=ue(Zc,{shouldForwardProp:e=>Vp(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=Re(r,dU),a=fU(i);return f.jsx(pU,H({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:Be(a.root,o)},r,{classes:a}))});process.env.NODE_ENV!=="production"&&(Nw.propTypes={children:m.node,classes:m.object,className:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});const hU=["className","id"],gU=e=>{const{classes:t}=e;return Ut({root:["root"]},iU,t)},mU=ue(Zc,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Vw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=Re(r,hU),c=r,u=gU(c),{titleId:d=i}=D.useContext(Qh);return f.jsx(mU,H({component:"h2",className:Be(u.root,o),ownerState:c,ref:n,variant:"h6",id:i??d},a))});process.env.NODE_ENV!=="production"&&(Vw.propTypes={children:m.node,classes:m.object,className:m.string,id:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});var Jh={},vU=sr;Object.defineProperty(Jh,"__esModule",{value:!0});var Ww=Jh.default=void 0,yU=vU(Gr()),bU=f;Ww=Jh.default=(0,yU.default)((0,bU.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var qh={},xU=sr;Object.defineProperty(qh,"__esModule",{value:!0});var zw=qh.default=void 0,CU=xU(Gr()),wU=f;zw=qh.default=(0,CU.default)((0,wU.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var nl=function(){return nl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nl.apply(this,arguments)},SU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Uw=function(e){var t,n=e.className,r=e.isOpen,o=r===void 0?!1:r,i=e.loading,a=e.title,c=e.content,u=e.cancel,d=u===void 0?"ra.action.cancel":u,p=e.confirm,g=p===void 0?"ra.action.confirm":p,v=e.confirmColor,y=v===void 0?"primary":v,b=e.ConfirmIcon,x=b===void 0?Ww:b,w=e.CancelIcon,A=w===void 0?zw:w,j=e.onClose,T=e.onConfirm,P=e.translateOptions,O=P===void 0?{}:P,_=SU(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),R=q.useTranslate(),N=E.useCallback(function(X){X.stopPropagation(),T(X)},[T]),Y=E.useCallback(function(X){X.stopPropagation()},[]);return D.createElement(EU,nl({className:n,open:o,onClose:j,onClick:Y,"aria-labelledby":"alert-dialog-title"},_),D.createElement(Vw,{id:"alert-dialog-title"},typeof a=="string"?R(a,nl({_:a},O)):a),D.createElement(Bw,null,typeof c=="string"?D.createElement(Nw,null,R(c,nl({_:c},O))):c),D.createElement(Lw,null,D.createElement(cu,{disabled:i,onClick:j,startIcon:D.createElement(A,null)},R(d,{_:d})),D.createElement(cu,{disabled:i,onClick:N,className:Es("ra-confirm",(t={},t[ku.confirmWarning]=y==="warning",t[ku.confirmPrimary]=y==="primary",t)),autoFocus:!0,startIcon:D.createElement(x,null)},R(g,{_:g}))))};Uw.propTypes={cancel:m.string,className:m.string,confirm:m.string,confirmColor:m.string,ConfirmIcon:m.elementType,CancelIcon:m.elementType,content:m.node.isRequired,isOpen:m.bool,loading:m.bool,onClose:m.func.isRequired,onConfirm:m.func.isRequired,title:m.node.isRequired,sx:m.any};var $h="RaConfirm",ku={confirmPrimary:"".concat($h,"-confirmPrimary"),confirmWarning:"".concat($h,"-confirmWarning")},EU=ue(Dw,{name:$h,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["& .".concat(ku.confirmPrimary)]={color:n.palette.primary.main},t["& .".concat(ku.confirmWarning)]={color:n.palette.error.main,"&:hover":{backgroundColor:et(n.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),eg={},TU=sr;Object.defineProperty(eg,"__esModule",{value:!0});var Hw=eg.default=void 0,AU=TU(Gr()),IU=f;Hw=eg.default=(0,AU.default)((0,IU.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var tg={},OU=sr;Object.defineProperty(tg,"__esModule",{value:!0});var Gw=tg.default=void 0,PU=OU(Gr()),jU=f;Gw=tg.default=(0,PU.default)((0,jU.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var kU=function(e){var t=e.children,n=e.editor,r=e.preferenceKey,o=e.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,a=e.sx,c="preferences.".concat(r),u=q.usePreferencesEditor(),d=!!u,p=q.useTranslate(),g=u||{},v=g.isEnabled,y=g.setEditor,b=g.preferenceKey,x=g.setPreferenceKey,w=c===b,A=E.useRef(w),j=E.useRef(null),T=E.useState(!1),P=T[0],O=T[1];if(E.useEffect(function(){A.current=w},[w]),E.useEffect(function(){return function(){A.current&&(x&&x(null),y&&y(null))}},[y,x]),!d)return t;var _=function(){y(E.cloneElement(n,{preferenceKey:c,key:c})),x(c)},R=function(){O(!0)},N=function(){O(!1)};return D.createElement(q.PreferenceKeyContextProvider,{value:c},D.createElement(MU,{className:Es(po.root,v&&po.editMode,w&&po.editorActive),sx:a,ref:j,onMouseEnter:v?R:void 0,onMouseLeave:v?N:void 0},t),D.createElement(S.Popover,{open:v&&(P||w),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:N,PaperProps:{elevation:1,onMouseEnter:R,onMouseLeave:N,title:p(i),onClick:_},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},D.createElement(Gw,{fontSize:"12px"})))},Mu="RaConfigurable",po={root:"".concat(Mu,"-root"),editMode:"".concat(Mu,"-editMode"),editorActive:"".concat(Mu,"-editorActive")},MU=ue("span",{name:Mu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(po.editMode)]={transition:n.transitions.create("outline"),outline:"".concat(S.alpha(n.palette.warning.main,.3)," solid 2px")},t["&.".concat(po.editMode,":hover ")]={outline:"".concat(S.alpha(n.palette.warning.main,.5)," solid 2px")},t["&.".concat(po.editMode,".").concat(po.editorActive," , &.").concat(po.editMode,".").concat(po.editorActive,":hover ")]={outline:"".concat(n.palette.warning.main," solid 2px")},t}),Ei=function(){return Ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ei.apply(this,arguments)},FU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},_U=function(e){var t=e.title,n=e.defaultTitle,r=e.className,o=FU(e,["title","defaultTitle","className"]),i=q.usePreference()[0],a=q.useTranslate(),c=q.useRecordContext();return i?D.createElement("span",Ei({className:r},o),a(i,Ei(Ei({},c),{_:i}))):D.createElement("span",{className:r},t?typeof t=="string"?D.createElement("span",Ei({},o),a(t,{_:t})):t:D.createElement("span",Ei({},o),n))},Fu=function(){return Fu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fu.apply(this,arguments)},RU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},DU=function(){var e=q.usePreferenceInput();return D.createElement("form",null,D.createElement(S.TextField,Fu({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},LU=function(e){var t=e.preferenceKey,n=RU(e,["preferenceKey"]),r=ut.useLocation().pathname;return D.createElement(kU,{editor:D.createElement(DU,null),preferenceKey:t||"".concat(r,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},D.createElement(_U,Fu({},n)))},ng=function(){return ng=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ng.apply(this,arguments)},BU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Yw=function(e){var t=e.defaultTitle,n=e.title,r=e.preferenceKey,o=BU(e,["defaultTitle","title","preferenceKey"]),i=E.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),a=i[0],c=i[1];return E.useEffect(function(){c(function(u){var d=typeof document<"u"&&document.body.contains(u);return u&&d?u:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),a?(q.warning(!t&&!n,"Missing title prop in <Title> element"),Zi.createPortal(D.createElement(LU,ng({title:n,defaultTitle:t,preferenceKey:r},o)),a)):null},NU=m.oneOfType([m.string,m.element]);Yw.propTypes={defaultTitle:m.string,className:m.string,record:m.any,title:NU};var VU=function(e){var t=ai.useLocation().pathname,n=E.useRef(t);E.useEffect(function(){t!==n.current&&e()},[t,e])},WU=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},Kw={error:null},zU=function(e){qp(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=Kw,r.resetErrorBoundary=function(){for(var c,u=arguments.length,d=new Array(u),p=0;p<u;p++)d[p]=arguments[p];r.props.onReset==null||(c=r.props).onReset.apply(c,d),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(Kw)},n.componentDidCatch=function(o,i){var a,c;(a=(c=this.props).onError)==null||a.call(c,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,c=this.props.resetKeys;if(a!==null&&i.error!==null&&WU(o.resetKeys,c)){var u,d;(u=(d=this.props).onResetKeysChange)==null||u.call(d,o.resetKeys,c),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,c=i.FallbackComponent,u=i.fallback;if(o!==null){var d={error:o,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(u))return u;if(typeof a=="function")return a(d);if(c)return D.createElement(c,d);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(D.Component);function UU(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var HU=UU,rg=function(){return rg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rg.apply(this,arguments)},GU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Xw=function(e){var t=e.className,n=e.loadingPrimary,r=n===void 0?"ra.page.loading":n,o=e.loadingSecondary,i=o===void 0?"ra.message.loading":o,a=GU(e,["className","loadingPrimary","loadingSecondary"]),c=q.useTimeout(1e3),u=q.useTranslate();return c?D.createElement(YU,rg({className:t},a),D.createElement("div",{className:Ru.message},D.createElement(du,{className:Ru.icon}),D.createElement(S.Typography,{variant:"h5",mt:3,color:"text.secondary"},u(r,{_:r})),D.createElement(S.Typography,{variant:"body2"},u(i,{_:i})))):null};Xw.propTypes={className:m.string,loadingPrimary:m.string,loadingSecondary:m.string};var _u="RaLoading",Ru={root:"".concat(_u,"-root"),icon:"".concat(_u,"-icon"),message:"".concat(_u,"-message")},YU=ue("div",{name:_u,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t["& .".concat(Ru.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:n.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(Ru.icon)]={width:"9em",height:"9em"},t}),og={},KU=sr;Object.defineProperty(og,"__esModule",{value:!0});var Zw=og.default=void 0,XU=KU(Gr()),ZU=f;Zw=og.default=(0,XU.default)((0,ZU.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var ig=function(){return ig=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ig.apply(this,arguments)},QU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Qw=function(e){var t=e.icon,n=t===void 0?qU:t,r=e.label,o=r===void 0?"ra.action.edit":r,i=e.scrollToTop,a=i===void 0?!0:i,c=e.className,u=QU(e,["icon","label","scrollToTop","className"]),d=q.useResourceContext(e),p=q.useRecordContext(e),g=q.useCreatePath();return p?D.createElement(tH,ig({component:ut.Link,to:g({type:"edit",resource:d,id:p.id}),state:JU[String(a)],label:o,onClick:$U,className:Es(eH.root,c)},u),n):null},JU={true:{_scrollToTop:!0},false:{}},qU=D.createElement(Zw,null),$U=function(e){return e.stopPropagation()};Qw.propTypes={icon:m.element,label:m.string,record:m.any,scrollToTop:m.bool};var Jw="RaEditButton",eH={root:"".concat(Jw,"-root")},tH=ue(vh,{name:Jw,overridesResolver:function(e,t){return t.root}})({}),sg={},nH=sr;Object.defineProperty(sg,"__esModule",{value:!0});var qw=sg.default=void 0,rH=nH(Gr()),oH=f;qw=sg.default=(0,rH.default)((0,oH.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const iH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ag(e){return`scale(${e}, ${e**2})`}const sH={entering:{opacity:1,transform:ag(1)},entered:{opacity:1,transform:"none"}},lg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Du=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:v,onExiting:y,style:b,timeout:x="auto",TransitionComponent:w=zr}=t,A=Re(t,iH),j=ms(),T=D.useRef(),P=pt(),O=D.useRef(null),_=on(O,i.ref,n),R=J=>V=>{if(J){const $=O.current;V===void 0?J($):J($,V)}},N=R(p),Y=R((J,V)=>{Mw(J);const{duration:$,delay:W,easing:ie}=Pu({style:b,timeout:x,easing:a},{mode:"enter"});let U;x==="auto"?(U=P.transitions.getAutoHeightDuration(J.clientHeight),T.current=U):U=$,J.style.transition=[P.transitions.create("opacity",{duration:U,delay:W}),P.transitions.create("transform",{duration:lg?U:U*.666,delay:W,easing:ie})].join(","),u&&u(J,V)}),X=R(d),G=R(y),re=R(J=>{const{duration:V,delay:$,easing:W}=Pu({style:b,timeout:x,easing:a},{mode:"exit"});let ie;x==="auto"?(ie=P.transitions.getAutoHeightDuration(J.clientHeight),T.current=ie):ie=V,J.style.transition=[P.transitions.create("opacity",{duration:ie,delay:$}),P.transitions.create("transform",{duration:lg?ie:ie*.666,delay:lg?$:$||ie*.333,easing:W})].join(","),J.style.opacity=0,J.style.transform=ag(.75),g&&g(J)}),ne=R(v),Z=J=>{x==="auto"&&j.start(T.current||0,J),r&&r(O.current,J)};return f.jsx(w,H({appear:o,in:c,nodeRef:O,onEnter:Y,onEntered:X,onEntering:N,onExit:re,onExited:ne,onExiting:G,addEndListener:Z,timeout:x==="auto"?null:x},A,{children:(J,V)=>D.cloneElement(i,H({style:H({opacity:0,transform:ag(.75),visibility:J==="exited"&&!c?"hidden":void 0},sH[J],b,i.props.style),ref:_},V))}))});process.env.NODE_ENV!=="production"&&(Du.propTypes={addEndListener:m.func,appear:m.bool,children:gs.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.oneOf(["auto"]),m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])}),Du.muiSupportAuto=!0;const $w="base";function aH(e){return`${$w}--${e}`}function lH(e,t){return`${$w}-${e}-${t}`}function eS(e,t){const n=Px[t];return n?aH(n):lH(e,t)}function cH(e,t){const n={};return t.forEach(r=>{n[r]=eS(e,r)}),n}const tS="Popper";function uH(e){return eS(tS,e)}cH(tS,["root"]);const dH=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],fH=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pH(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Lu(e){return typeof e=="function"?e():e}function Bu(e){return e.nodeType!==void 0}function hH(e){return!Bu(e)}const gH=()=>Ut({root:["root"]},x8(uH)),mH={},vH=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=Re(t,dH),A=D.useRef(null),j=on(A,n),T=D.useRef(null),P=on(T,v),O=D.useRef(P);Wr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>T.current,[]);const _=pH(p,a),[R,N]=D.useState(_),[Y,X]=D.useState(Lu(o));D.useEffect(()=>{T.current&&T.current.forceUpdate()}),D.useEffect(()=>{o&&X(Lu(o))},[o]),Wr(()=>{if(!Y||!d)return;const J=W=>{N(W.placement)};if(process.env.NODE_ENV!=="production"&&Y&&Bu(Y)&&Y.nodeType===1){const W=Y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
190
- `))}let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{J(W)}}];u!=null&&(V=V.concat(u)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const $=o1(Y,A.current,H({placement:_},g,{modifiers:V}));return O.current($),()=>{$.destroy(),O.current(null)}},[Y,c,u,d,g,_]);const G={placement:R};x!==null&&(G.TransitionProps=x);const re=gH(),ne=(r=b.root)!=null?r:"div",Z=Uc({elementType:ne,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:j},ownerState:t,className:re.root});return f.jsx(ne,H({},Z,{children:typeof i=="function"?i(G):i}))}),nS=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:v=mH,popperRef:y,style:b,transition:x=!1,slotProps:w={},slots:A={}}=t,j=Re(t,fH),[T,P]=D.useState(!0),O=()=>{P(!1)},_=()=>{P(!0)};if(!u&&!p&&(!x||T))return null;let R;if(i)R=i;else if(r){const X=Lu(r);R=X&&Bu(X)?Un(X).body:Un(null).body}const N=!p&&u&&(!x||T)?"none":void 0,Y=x?{in:p,onEnter:O,onExited:_}:void 0;return f.jsx(tl,{disablePortal:c,container:R,children:f.jsx(vH,H({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:x?!T:p,placement:g,popperOptions:v,popperRef:y,slotProps:w,slots:A},j,{style:H({position:"fixed",top:0,left:0,display:N},b),TransitionProps:Y,children:o}))})});process.env.NODE_ENV!=="production"&&(nS.propTypes={anchorEl:ao(m.oneOfType([lo,m.object,m.func]),e=>{if(e.open){const t=Lu(e.anchorEl);if(t&&Bu(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
187
+ */(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],r={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[r.plural.men],[r.plural.people],[r.plural.children],[r.plural.tia],[r.plural.analyses],[r.plural.hives],[r.plural.curves],[r.plural.lrves],[r.plural.foves],[r.plural.aeiouyies],[r.plural.series],[r.plural.movies],[r.plural.xes],[r.plural.mice],[r.plural.buses],[r.plural.oes],[r.plural.shoes],[r.plural.crises],[r.plural.octopi],[r.plural.aliases],[r.plural.summonses],[r.plural.oxen],[r.plural.matrices],[r.plural.feet],[r.plural.teeth],[r.plural.geese],[r.plural.quizzes],[r.plural.whereases],[r.plural.criteria],[r.plural.genera],[r.singular.man,"$1en"],[r.singular.person,"$1ople"],[r.singular.child,"$1ren"],[r.singular.ox,"$1en"],[r.singular.axis,"$1es"],[r.singular.octopus,"$1i"],[r.singular.alias,"$1es"],[r.singular.summons,"$1es"],[r.singular.bus,"$1ses"],[r.singular.buffalo,"$1oes"],[r.singular.tium,"$1a"],[r.singular.sis,"ses"],[r.singular.ffe,"$1$2ves"],[r.singular.hive,"$1ves"],[r.singular.aeiouyy,"$1ies"],[r.singular.matrix,"$1ices"],[r.singular.vertex,"$1ices"],[r.singular.x,"$1es"],[r.singular.mouse,"$1ice"],[r.singular.foot,"feet"],[r.singular.tooth,"teeth"],[r.singular.goose,"geese"],[r.singular.quiz,"$1zes"],[r.singular.whereas,"$1es"],[r.singular.criterion,"$1a"],[r.singular.genus,"genera"],[r.singular.s,"s"],[r.singular.common,"s"]],i=[[r.singular.man],[r.singular.person],[r.singular.child],[r.singular.ox],[r.singular.axis],[r.singular.octopus],[r.singular.alias],[r.singular.summons],[r.singular.bus],[r.singular.buffalo],[r.singular.tium],[r.singular.sis],[r.singular.ffe],[r.singular.hive],[r.singular.aeiouyy],[r.singular.x],[r.singular.matrix],[r.singular.mouse],[r.singular.foot],[r.singular.tooth],[r.singular.goose],[r.singular.quiz],[r.singular.whereas],[r.singular.criterion],[r.singular.genus],[r.plural.men,"$1an"],[r.plural.people,"$1rson"],[r.plural.children,"$1"],[r.plural.genera,"genus"],[r.plural.criteria,"$1on"],[r.plural.tia,"$1um"],[r.plural.analyses,"$1$2sis"],[r.plural.hives,"$1ve"],[r.plural.curves,"$1"],[r.plural.lrves,"$1f"],[r.plural.aves,"$1ve"],[r.plural.foves,"$1fe"],[r.plural.movies,"$1ovie"],[r.plural.aeiouyies,"$1y"],[r.plural.series,"$1eries"],[r.plural.xes,"$1"],[r.plural.mice,"$1ouse"],[r.plural.buses,"$1"],[r.plural.oes,"$1"],[r.plural.shoes,"$1"],[r.plural.crises,"$1is"],[r.plural.octopi,"$1us"],[r.plural.aliases,"$1"],[r.plural.summonses,"$1"],[r.plural.oxen,"$1"],[r.plural.matrices,"$1ix"],[r.plural.vertices,"$1ex"],[r.plural.feet,"foot"],[r.plural.teeth,"tooth"],[r.plural.geese,"goose"],[r.plural.quizzes,"$1"],[r.plural.whereases,"$1"],[r.plural.ss,"ss"],[r.plural.s,""]],a=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],c=new RegExp("(_ids|_id)$","g"),u=new RegExp("_","g"),d=new RegExp("[ _]","g"),p=new RegExp("([A-Z])","g"),g=new RegExp("^_"),v={_apply_rules:function(y,b,x,w){if(w)y=w;else{var A=v.indexOf(x,y.toLowerCase())>-1;if(!A){for(var j=0,T=b.length;j<T;j++)if(y.match(b[j][0])){b[j][1]!==void 0&&(y=y.replace(b[j][0],b[j][1]));break}}}return y},indexOf:function(y,b,x,w){x||(x=-1);for(var A=-1,j=x,T=y.length;j<T;j++)if(y[j]===b||w&&w(y[j],b)){A=j;break}return A},pluralize:function(y,b){return v._apply_rules(y,o,n,b)},singularize:function(y,b){return v._apply_rules(y,i,n,b)},inflect:function(y,b,x,w){return b=parseInt(b,10),isNaN(b)?y:b===0||b>1?v._apply_rules(y,o,n,w):v._apply_rules(y,i,n,x)},camelize:function(y,b){for(var x=y.split("/"),w=0,A=x.length,j,T,P,O;w<A;w++){for(j=x[w].split("_"),T=0,P=j.length;T<P;T++)T!==0&&(j[T]=j[T].toLowerCase()),O=j[T].charAt(0),O=b&&w===0&&T===0?O.toLowerCase():O.toUpperCase(),j[T]=O+j[T].substring(1);x[w]=j.join("")}return x.join("::")},underscore:function(y,b){if(b&&y===y.toUpperCase())return y;for(var x=y.split("::"),w=0,A=x.length;w<A;w++)x[w]=x[w].replace(p,"_$1"),x[w]=x[w].replace(g,"");return x.join("/").toLowerCase()},humanize:function(y,b){return y=y.toLowerCase(),y=y.replace(c,""),y=y.replace(u," "),b||(y=v.capitalize(y)),y},capitalize:function(y){return y=y.toLowerCase(),y.substring(0,1).toUpperCase()+y.substring(1)},dasherize:function(y){return y.replace(d,"-")},titleize:function(y){y=y.toLowerCase().replace(u," ");for(var b=y.split(" "),x=0,w=b.length,A,j,T;x<w;x++){for(A=b[x].split("-"),j=0,T=A.length;j<T;j++)v.indexOf(a,A[j].toLowerCase())<0&&(A[j]=v.capitalize(A[j]));b[x]=A.join("-")}return y=b.join(" "),y=y.substring(0,1).toUpperCase()+y.substring(1),y},demodulize:function(y){var b=y.split("::");return b[b.length-1]},tableize:function(y){return y=v.underscore(y),y=v.pluralize(y),y},classify:function(y){return y=v.camelize(y),y=v.singularize(y),y},foreign_key:function(y,b){return y=v.demodulize(y),y=v.underscore(y)+(b?"":"_")+"id",y},ordinalize:function(y){for(var b=y.split(" "),x=0,w=b.length;x<w;x++){var A=parseInt(b[x],10);if(!isNaN(A)){var j=b[x].substring(b[x].length-2),T=b[x].substring(b[x].length-1),P="th";j!="11"&&j!="12"&&j!="13"&&(T==="1"?P="st":T==="2"?P="nd":T==="3"&&(P="rd")),b[x]+=P}}return b.join(" ")},transform:function(y,b){for(var x=0,w=b.length;x<w;x++){var A=b[x];v.hasOwnProperty(A)&&(y=v[A](y))}return y}};return v.version="1.12.0",v})})(jw);var pz=jw.exports;const Vo=Dr(pz);var Uh=function(){return Uh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Uh.apply(this,arguments)},hz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Ou,Hh,kw=function(e){var t=e.className,n=e.onClick,r=e.sx,o=hz(e,["className","onClick","sx"]),i=q.useLoading(),a=pt();return D.createElement(gz,{className:t,sx:r},D.createElement(aS,{className:"".concat(ks.loadedIcon," ").concat(i&&ks.loadedLoading),onClick:n}),i&&D.createElement(fu,Uh({className:Es("app-loader",ks.loader),color:"inherit",size:a.spacing(2),thickness:6},o)))};kw.propTypes={classes:m.object,className:m.string,width:m.string};var Pu="RaLoadingIndicator",ks={loader:"".concat(Pu,"-loader"),loadedLoading:"".concat(Pu,"-loadedLoading"),loadedIcon:"".concat(Pu,"-loadedIcon")},gz=ue("div",{name:Pu,overridesResolver:function(e,t){return t.root}})((Ou={position:"relative"},Ou["& .".concat(ks.loadedIcon)]=(Hh={},Hh["&.".concat(ks.loadedLoading)]={opacity:0},Hh),Ou["& .".concat(ks.loader)]={position:"absolute",top:"30%",left:"30%"},Ou));const Mw=e=>e.scrollTop;function ju(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function mz(e){const t=Un(e);return t.body===e?Vc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function el(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fw(e){return parseInt(Vc(e).getComputedStyle(e).paddingRight,10)||0}function vz(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function _w(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=i.indexOf(a)===-1,u=!vz(a);c&&u&&el(a,o)})}function Gh(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function yz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(mz(r)){const a=z8(Un(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Fw(r)+a}px`;const c=Un(r).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Fw(u)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Un(r).body;else{const a=r.parentElement,c=Vc(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function bz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class xz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&el(t.modalRef,!1);const o=bz(n);_w(n,t.mount,t.modalRef,o,!0);const i=Gh(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Gh(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=yz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Gh(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&el(t.modalRef,n),_w(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&el(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Cz(e){return typeof e=="function"?e():e}function wz(e){return e?e.props.hasOwnProperty("in"):!1}const Sz=new xz;function Ez(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Sz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:c,children:u,onClose:d,open:p,rootRef:g}=e,v=D.useRef({}),y=D.useRef(null),b=D.useRef(null),x=on(b,g),[w,A]=D.useState(!p),j=wz(u);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const P=()=>Un(y.current),O=()=>(v.current.modalRef=b.current,v.current.mount=y.current,v.current),_=()=>{o.mount(O(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},R=co(()=>{const V=Cz(t)||P().body;o.add(O(),V),b.current&&_()}),N=D.useCallback(()=>o.isTopModal(O()),[o]),Y=co(V=>{y.current=V,V&&(p&&N()?_():b.current&&el(b.current,T))}),X=D.useCallback(()=>{o.remove(O(),T)},[T,o]);D.useEffect(()=>()=>{X()},[X]),D.useEffect(()=>{p?R():(!j||!i)&&X()},[p,X,j,i,R]);const G=V=>$=>{var W;(W=V.onKeyDown)==null||W.call(V,$),!($.key!=="Escape"||$.which===229||!N())&&(n||($.stopPropagation(),d&&d($,"escapeKeyDown")))},re=V=>$=>{var W;(W=V.onClick)==null||W.call(V,$),$.target===$.currentTarget&&d&&d($,"backdropClick")};return{getRootProps:(V={})=>{const $=iC(e);delete $.onTransitionEnter,delete $.onTransitionExited;const W=H({},$,V);return H({role:"presentation"},W,{onKeyDown:G(W),ref:x})},getBackdropProps:(V={})=>{const $=V;return H({"aria-hidden":!0},$,{onClick:re($),open:p})},getTransitionProps:()=>{const V=()=>{A(!1),a&&a()},$=()=>{A(!0),c&&c(),i&&X()};return{onEnter:zp(V,u==null?void 0:u.props.onEnter),onExited:zp($,u==null?void 0:u.props.onExited)}},rootRef:x,portalRef:Y,isTopModal:N,exited:w,hasTransition:j}}const Tz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Az(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Iz(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Oz(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Iz(e))}function Pz(e){const t=[],n=[];return Array.from(e.querySelectorAll(Tz)).forEach((r,o)=>{const i=Az(r);i===-1||!Oz(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function jz(){return!0}function ku(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Pz,isEnabled:a=jz,open:c}=e,u=D.useRef(!1),d=D.useRef(null),p=D.useRef(null),g=D.useRef(null),v=D.useRef(null),y=D.useRef(!1),b=D.useRef(null),x=on(t.ref,b),w=D.useRef(null);D.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),D.useEffect(()=>{if(!c||!b.current)return;const T=Un(b.current);return b.current.contains(T.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
188
+ `)),b.current.setAttribute("tabIndex","-1")),y.current&&b.current.focus()),()=>{o||(g.current&&g.current.focus&&(u.current=!0,g.current.focus()),g.current=null)}},[c]),D.useEffect(()=>{if(!c||!b.current)return;const T=Un(b.current),P=R=>{w.current=R,!(r||!a()||R.key!=="Tab")&&T.activeElement===b.current&&R.shiftKey&&(u.current=!0,p.current&&p.current.focus())},O=()=>{const R=b.current;if(R===null)return;if(!T.hasFocus()||!a()||u.current){u.current=!1;return}if(R.contains(T.activeElement)||r&&T.activeElement!==d.current&&T.activeElement!==p.current)return;if(T.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!y.current)return;let N=[];if((T.activeElement===d.current||T.activeElement===p.current)&&(N=i(b.current)),N.length>0){var Y,X;const G=!!((Y=w.current)!=null&&Y.shiftKey&&((X=w.current)==null?void 0:X.key)==="Tab"),re=N[0],ne=N[N.length-1];typeof re!="string"&&typeof ne!="string"&&(G?ne.focus():re.focus())}else R.focus()};T.addEventListener("focusin",O),T.addEventListener("keydown",P,!0);const _=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(_),T.removeEventListener("focusin",O),T.removeEventListener("keydown",P,!0)}},[n,r,o,a,c,i]);const A=T=>{g.current===null&&(g.current=T.relatedTarget),y.current=!0,v.current=T.target;const P=t.props.onFocus;P&&P(T)},j=T=>{g.current===null&&(g.current=T.relatedTarget),y.current=!0};return f.jsxs(D.Fragment,{children:[f.jsx("div",{tabIndex:c?0:-1,onFocus:j,ref:d,"data-testid":"sentinelStart"}),D.cloneElement(t,{ref:x,onFocus:A}),f.jsx("div",{tabIndex:c?0:-1,onFocus:j,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ku.propTypes={children:gs,disableAutoFocus:m.bool,disableEnforceFocus:m.bool,disableRestoreFocus:m.bool,getTabbable:m.func,isEnabled:m.func,open:m.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ku.propTypes=La(ku.propTypes));function kz(e){return typeof e=="function"?e():e}const tl=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Wr(()=>{i||c(kz(o)||document.body)},[o,i]),Wr(()=>{if(a&&!i)return ps(n,a),()=>{ps(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&vv.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(tl.propTypes={children:m.node,container:m.oneOfType([lo,m.func]),disablePortal:m.bool}),process.env.NODE_ENV!=="production"&&(tl.propTypes=La(tl.propTypes));const Mz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Fz={entering:{opacity:1},entered:{opacity:1}},Yh=D.forwardRef(function(t,n){const r=pt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:u,in:d,onEnter:p,onEntered:g,onEntering:v,onExit:y,onExited:b,onExiting:x,style:w,timeout:A=o,TransitionComponent:j=zr}=t,T=Re(t,Mz),P=D.useRef(null),O=on(P,c.ref,n),_=Z=>J=>{if(Z){const V=P.current;J===void 0?Z(V):Z(V,J)}},R=_(v),N=_((Z,J)=>{Mw(Z);const V=ju({style:w,timeout:A,easing:u},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("opacity",V),Z.style.transition=r.transitions.create("opacity",V),p&&p(Z,J)}),Y=_(g),X=_(x),G=_(Z=>{const J=ju({style:w,timeout:A,easing:u},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("opacity",J),Z.style.transition=r.transitions.create("opacity",J),y&&y(Z)}),re=_(b),ne=Z=>{i&&i(P.current,Z)};return f.jsx(j,H({appear:a,in:d,nodeRef:P,onEnter:N,onEntered:Y,onEntering:R,onExit:G,onExited:re,onExiting:X,addEndListener:ne,timeout:A},T,{children:(Z,J)=>D.cloneElement(c,H({style:H({opacity:0,visibility:Z==="exited"&&!d?"hidden":void 0},Fz[Z],w,c.props.style),ref:O},J))}))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={addEndListener:m.func,appear:m.bool,children:gs.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});function _z(e){return Lt("MuiBackdrop",e)}Yt("MuiBackdrop",["root","invisible"]);const Rz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Dz=e=>{const{classes:t,invisible:n}=e;return Ut({root:["root",n&&"invisible"]},_z,t)},Lz=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>H({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Kh=D.forwardRef(function(t,n){var r,o,i;const a=Gt({props:t,name:"MuiBackdrop"}),{children:c,className:u,component:d="div",components:p={},componentsProps:g={},invisible:v=!1,open:y,slotProps:b={},slots:x={},TransitionComponent:w=Yh,transitionDuration:A}=a,j=Re(a,Rz),T=H({},a,{component:d,invisible:v}),P=Dz(T),O=(r=b.root)!=null?r:g.root;return f.jsx(w,H({in:y,timeout:A},j,{children:f.jsx(Lz,H({"aria-hidden":!0},O,{as:(o=(i=x.root)!=null?i:p.Root)!=null?o:d,className:Be(P.root,u,O==null?void 0:O.className),ownerState:H({},T,O==null?void 0:O.ownerState),classes:P,ref:n,children:c}))}))});process.env.NODE_ENV!=="production"&&(Kh.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.object}),invisible:m.bool,open:m.bool.isRequired,slotProps:m.shape({root:m.object}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});function Bz(e){return Lt("MuiModal",e)}Yt("MuiModal",["root","hidden","backdrop"]);const Nz=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Vz=e=>{const{open:t,exited:n,classes:r}=e;return Ut({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Bz,r)},Wz=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>H({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),zz=ue(Kh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rw=D.forwardRef(function(t,n){var r,o,i,a,c,u;const d=Gt({name:"MuiModal",props:t}),{BackdropComponent:p=zz,BackdropProps:g,className:v,closeAfterTransition:y=!1,children:b,container:x,component:w,components:A={},componentsProps:j={},disableAutoFocus:T=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:O=!1,disablePortal:_=!1,disableRestoreFocus:R=!1,disableScrollLock:N=!1,hideBackdrop:Y=!1,keepMounted:X=!1,onBackdropClick:G,open:re,slotProps:ne,slots:Z}=d,J=Re(d,Nz),V=H({},d,{closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:P,disableEscapeKeyDown:O,disablePortal:_,disableRestoreFocus:R,disableScrollLock:N,hideBackdrop:Y,keepMounted:X}),{getRootProps:$,getBackdropProps:W,getTransitionProps:ie,portalRef:U,isTopModal:ee,exited:de,hasTransition:ge}=Ez(H({},V,{rootRef:n})),fe=H({},V,{exited:de}),he=Vz(fe),me={};if(b.props.tabIndex===void 0&&(me.tabIndex="-1"),ge){const{onEnter:Ke,onExited:ve}=ie();me.onEnter=Ke,me.onExited=ve}const Se=(r=(o=Z==null?void 0:Z.root)!=null?o:A.Root)!=null?r:Wz,be=(i=(a=Z==null?void 0:Z.backdrop)!=null?a:A.Backdrop)!=null?i:p,ye=(c=ne==null?void 0:ne.root)!=null?c:j.root,we=(u=ne==null?void 0:ne.backdrop)!=null?u:j.backdrop,Ie=Hc({elementType:Se,externalSlotProps:ye,externalForwardedProps:J,getSlotProps:$,additionalProps:{ref:n,as:w},ownerState:fe,className:Be(v,ye==null?void 0:ye.className,he==null?void 0:he.root,!fe.open&&fe.exited&&(he==null?void 0:he.hidden))}),pe=Hc({elementType:be,externalSlotProps:we,additionalProps:g,getSlotProps:Ke=>W(H({},Ke,{onClick:ve=>{G&&G(ve),Ke!=null&&Ke.onClick&&Ke.onClick(ve)}})),className:Be(we==null?void 0:we.className,g==null?void 0:g.className,he==null?void 0:he.backdrop),ownerState:fe});return!X&&!re&&(!ge||de)?null:f.jsx(tl,{ref:U,container:x,disablePortal:_,children:f.jsxs(Se,H({},Ie,{children:[!Y&&p?f.jsx(be,H({},pe)):null,f.jsx(ku,{disableEnforceFocus:P,disableAutoFocus:T,disableRestoreFocus:R,isEnabled:ee,open:re,children:D.cloneElement(b,me)})]}))})});process.env.NODE_ENV!=="production"&&(Rw.propTypes={BackdropComponent:m.elementType,BackdropProps:m.object,children:gs.isRequired,classes:m.object,className:m.string,closeAfterTransition:m.bool,component:m.elementType,components:m.shape({Backdrop:m.elementType,Root:m.elementType}),componentsProps:m.shape({backdrop:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([lo,m.func]),disableAutoFocus:m.bool,disableEnforceFocus:m.bool,disableEscapeKeyDown:m.bool,disablePortal:m.bool,disableRestoreFocus:m.bool,disableScrollLock:m.bool,hideBackdrop:m.bool,keepMounted:m.bool,onBackdropClick:m.func,onClose:m.func,onTransitionEnter:m.func,onTransitionExited:m.func,open:m.bool.isRequired,slotProps:m.shape({backdrop:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object])}),slots:m.shape({backdrop:m.elementType,root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function Uz(e){return Lt("MuiPaper",e)}Yt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hz=["className","component","elevation","square","variant"],Gz=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ut(i,Uz,o)},Yz=ue("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return H({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&H({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Vr("#fff",IC(t.elevation))}, ${Vr("#fff",IC(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Xh=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,d=Re(r,Hz),p=H({},r,{component:i,elevation:a,square:c,variant:u}),g=Gz(p);return process.env.NODE_ENV!=="production"&&pt().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
189
+ `)),f.jsx(Yz,H({as:i,ownerState:p,className:Be(g.root,o),ref:n},d))});process.env.NODE_ENV!=="production"&&(Xh.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,elevation:ao(Uc,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["elevation","outlined"]),m.string])});function Kz(e){return Lt("MuiDialog",e)}const Zh=Yt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Qh=D.createContext({});process.env.NODE_ENV!=="production"&&(Qh.displayName="DialogContext");const Xz=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Zz=ue(Kh,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qz=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ut(a,Kz,t)},Jz=ue(Rw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),qz=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ne(n.scroll)}`]]}})(({ownerState:e})=>H({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$z=ue(Xh,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ne(n.scroll)}`],t[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>H({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Zh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Zh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Zh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialog"}),o=pt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,BackdropComponent:u,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:v=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:x="sm",onBackdropClick:w,onClick:A,onClose:j,open:T,PaperComponent:P=Xh,PaperProps:O={},scroll:_="paper",TransitionComponent:R=Yh,transitionDuration:N=i,TransitionProps:Y}=r,X=Re(r,Xz),G=H({},r,{disableEscapeKeyDown:v,fullScreen:y,fullWidth:b,maxWidth:x,scroll:_}),re=Qz(G),ne=D.useRef(),Z=W=>{ne.current=W.target===W.currentTarget},J=W=>{A&&A(W),ne.current&&(ne.current=null,w&&w(W),j&&j(W,"backdropClick"))},V=Wc(c),$=D.useMemo(()=>({titleId:V}),[V]);return f.jsx(Jz,H({className:Be(re.root,g),closeAfterTransition:!0,components:{Backdrop:Zz},componentsProps:{backdrop:H({transitionDuration:N,as:u},d)},disableEscapeKeyDown:v,onClose:j,open:T,ref:n,onClick:J,ownerState:G},X,{children:f.jsx(R,H({appear:!0,in:T,timeout:N,role:"presentation"},Y,{children:f.jsx(qz,{className:Be(re.container),onMouseDown:Z,ownerState:G,children:f.jsx($z,H({as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":V},O,{className:Be(re.paper,O.className),ownerState:G,children:f.jsx(Qh.Provider,{value:$,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(Dw.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,BackdropComponent:m.elementType,BackdropProps:m.object,children:m.node,classes:m.object,className:m.string,disableEscapeKeyDown:m.bool,fullScreen:m.bool,fullWidth:m.bool,maxWidth:m.oneOfType([m.oneOf(["xs","sm","md","lg","xl",!1]),m.string]),onBackdropClick:m.func,onClick:m.func,onClose:m.func,open:m.bool.isRequired,PaperComponent:m.elementType,PaperProps:m.object,scroll:m.oneOf(["body","paper"]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})]),TransitionProps:m.object});function eU(e){return Lt("MuiDialogActions",e)}Yt("MuiDialogActions",["root","spacing"]);const tU=["className","disableSpacing"],nU=e=>{const{classes:t,disableSpacing:n}=e;return Ut({root:["root",!n&&"spacing"]},eU,t)},rU=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>H({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Lw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=Re(r,tU),c=H({},r,{disableSpacing:i}),u=nU(c);return f.jsx(rU,H({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&(Lw.propTypes={children:m.node,classes:m.object,className:m.string,disableSpacing:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function oU(e){return Lt("MuiDialogContent",e)}Yt("MuiDialogContent",["root","dividers"]);function iU(e){return Lt("MuiDialogTitle",e)}const sU=Yt("MuiDialogTitle",["root"]),aU=["className","dividers"],lU=e=>{const{classes:t,dividers:n}=e;return Ut({root:["root",n&&"dividers"]},oU,t)},cU=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>H({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${sU.root} + &`]:{paddingTop:0}})),Bw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=Re(r,aU),c=H({},r,{dividers:i}),u=lU(c);return f.jsx(cU,H({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&(Bw.propTypes={children:m.node,classes:m.object,className:m.string,dividers:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function uU(e){return Lt("MuiDialogContentText",e)}Yt("MuiDialogContentText",["root"]);const dU=["children","className"],fU=e=>{const{classes:t}=e,r=Ut({root:["root"]},uU,t);return H({},t,r)},pU=ue(Qc,{shouldForwardProp:e=>Vp(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=Re(r,dU),a=fU(i);return f.jsx(pU,H({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:Be(a.root,o)},r,{classes:a}))});process.env.NODE_ENV!=="production"&&(Nw.propTypes={children:m.node,classes:m.object,className:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});const hU=["className","id"],gU=e=>{const{classes:t}=e;return Ut({root:["root"]},iU,t)},mU=ue(Qc,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Vw=D.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=Re(r,hU),c=r,u=gU(c),{titleId:d=i}=D.useContext(Qh);return f.jsx(mU,H({component:"h2",className:Be(u.root,o),ownerState:c,ref:n,variant:"h6",id:i??d},a))});process.env.NODE_ENV!=="production"&&(Vw.propTypes={children:m.node,classes:m.object,className:m.string,id:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});var Jh={},vU=sr;Object.defineProperty(Jh,"__esModule",{value:!0});var Ww=Jh.default=void 0,yU=vU(Gr()),bU=f;Ww=Jh.default=(0,yU.default)((0,bU.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var qh={},xU=sr;Object.defineProperty(qh,"__esModule",{value:!0});var zw=qh.default=void 0,CU=xU(Gr()),wU=f;zw=qh.default=(0,CU.default)((0,wU.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var nl=function(){return nl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nl.apply(this,arguments)},SU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Uw=function(e){var t,n=e.className,r=e.isOpen,o=r===void 0?!1:r,i=e.loading,a=e.title,c=e.content,u=e.cancel,d=u===void 0?"ra.action.cancel":u,p=e.confirm,g=p===void 0?"ra.action.confirm":p,v=e.confirmColor,y=v===void 0?"primary":v,b=e.ConfirmIcon,x=b===void 0?Ww:b,w=e.CancelIcon,A=w===void 0?zw:w,j=e.onClose,T=e.onConfirm,P=e.translateOptions,O=P===void 0?{}:P,_=SU(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),R=q.useTranslate(),N=E.useCallback(function(X){X.stopPropagation(),T(X)},[T]),Y=E.useCallback(function(X){X.stopPropagation()},[]);return D.createElement(EU,nl({className:n,open:o,onClose:j,onClick:Y,"aria-labelledby":"alert-dialog-title"},_),D.createElement(Vw,{id:"alert-dialog-title"},typeof a=="string"?R(a,nl({_:a},O)):a),D.createElement(Bw,null,typeof c=="string"?D.createElement(Nw,null,R(c,nl({_:c},O))):c),D.createElement(Lw,null,D.createElement(uu,{disabled:i,onClick:j,startIcon:D.createElement(A,null)},R(d,{_:d})),D.createElement(uu,{disabled:i,onClick:N,className:Es("ra-confirm",(t={},t[Mu.confirmWarning]=y==="warning",t[Mu.confirmPrimary]=y==="primary",t)),autoFocus:!0,startIcon:D.createElement(x,null)},R(g,{_:g}))))};Uw.propTypes={cancel:m.string,className:m.string,confirm:m.string,confirmColor:m.string,ConfirmIcon:m.elementType,CancelIcon:m.elementType,content:m.node.isRequired,isOpen:m.bool,loading:m.bool,onClose:m.func.isRequired,onConfirm:m.func.isRequired,title:m.node.isRequired,sx:m.any};var $h="RaConfirm",Mu={confirmPrimary:"".concat($h,"-confirmPrimary"),confirmWarning:"".concat($h,"-confirmWarning")},EU=ue(Dw,{name:$h,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["& .".concat(Mu.confirmPrimary)]={color:n.palette.primary.main},t["& .".concat(Mu.confirmWarning)]={color:n.palette.error.main,"&:hover":{backgroundColor:et(n.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),eg={},TU=sr;Object.defineProperty(eg,"__esModule",{value:!0});var Hw=eg.default=void 0,AU=TU(Gr()),IU=f;Hw=eg.default=(0,AU.default)((0,IU.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var tg={},OU=sr;Object.defineProperty(tg,"__esModule",{value:!0});var Gw=tg.default=void 0,PU=OU(Gr()),jU=f;Gw=tg.default=(0,PU.default)((0,jU.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var kU=function(e){var t=e.children,n=e.editor,r=e.preferenceKey,o=e.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,a=e.sx,c="preferences.".concat(r),u=q.usePreferencesEditor(),d=!!u,p=q.useTranslate(),g=u||{},v=g.isEnabled,y=g.setEditor,b=g.preferenceKey,x=g.setPreferenceKey,w=c===b,A=E.useRef(w),j=E.useRef(null),T=E.useState(!1),P=T[0],O=T[1];if(E.useEffect(function(){A.current=w},[w]),E.useEffect(function(){return function(){A.current&&(x&&x(null),y&&y(null))}},[y,x]),!d)return t;var _=function(){y(E.cloneElement(n,{preferenceKey:c,key:c})),x(c)},R=function(){O(!0)},N=function(){O(!1)};return D.createElement(q.PreferenceKeyContextProvider,{value:c},D.createElement(MU,{className:Es(po.root,v&&po.editMode,w&&po.editorActive),sx:a,ref:j,onMouseEnter:v?R:void 0,onMouseLeave:v?N:void 0},t),D.createElement(S.Popover,{open:v&&(P||w),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:N,PaperProps:{elevation:1,onMouseEnter:R,onMouseLeave:N,title:p(i),onClick:_},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},D.createElement(Gw,{fontSize:"12px"})))},Fu="RaConfigurable",po={root:"".concat(Fu,"-root"),editMode:"".concat(Fu,"-editMode"),editorActive:"".concat(Fu,"-editorActive")},MU=ue("span",{name:Fu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(po.editMode)]={transition:n.transitions.create("outline"),outline:"".concat(S.alpha(n.palette.warning.main,.3)," solid 2px")},t["&.".concat(po.editMode,":hover ")]={outline:"".concat(S.alpha(n.palette.warning.main,.5)," solid 2px")},t["&.".concat(po.editMode,".").concat(po.editorActive," , &.").concat(po.editMode,".").concat(po.editorActive,":hover ")]={outline:"".concat(n.palette.warning.main," solid 2px")},t}),Ei=function(){return Ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ei.apply(this,arguments)},FU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},_U=function(e){var t=e.title,n=e.defaultTitle,r=e.className,o=FU(e,["title","defaultTitle","className"]),i=q.usePreference()[0],a=q.useTranslate(),c=q.useRecordContext();return i?D.createElement("span",Ei({className:r},o),a(i,Ei(Ei({},c),{_:i}))):D.createElement("span",{className:r},t?typeof t=="string"?D.createElement("span",Ei({},o),a(t,{_:t})):t:D.createElement("span",Ei({},o),n))},_u=function(){return _u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_u.apply(this,arguments)},RU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},DU=function(){var e=q.usePreferenceInput();return D.createElement("form",null,D.createElement(S.TextField,_u({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},LU=function(e){var t=e.preferenceKey,n=RU(e,["preferenceKey"]),r=ut.useLocation().pathname;return D.createElement(kU,{editor:D.createElement(DU,null),preferenceKey:t||"".concat(r,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},D.createElement(_U,_u({},n)))},ng=function(){return ng=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ng.apply(this,arguments)},BU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Yw=function(e){var t=e.defaultTitle,n=e.title,r=e.preferenceKey,o=BU(e,["defaultTitle","title","preferenceKey"]),i=E.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),a=i[0],c=i[1];return E.useEffect(function(){c(function(u){var d=typeof document<"u"&&document.body.contains(u);return u&&d?u:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),a?(q.warning(!t&&!n,"Missing title prop in <Title> element"),Zi.createPortal(D.createElement(LU,ng({title:n,defaultTitle:t,preferenceKey:r},o)),a)):null},NU=m.oneOfType([m.string,m.element]);Yw.propTypes={defaultTitle:m.string,className:m.string,record:m.any,title:NU};var VU=function(e){var t=ai.useLocation().pathname,n=E.useRef(t);E.useEffect(function(){t!==n.current&&e()},[t,e])},WU=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},Kw={error:null},zU=function(e){qp(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=Kw,r.resetErrorBoundary=function(){for(var c,u=arguments.length,d=new Array(u),p=0;p<u;p++)d[p]=arguments[p];r.props.onReset==null||(c=r.props).onReset.apply(c,d),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(Kw)},n.componentDidCatch=function(o,i){var a,c;(a=(c=this.props).onError)==null||a.call(c,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,c=this.props.resetKeys;if(a!==null&&i.error!==null&&WU(o.resetKeys,c)){var u,d;(u=(d=this.props).onResetKeysChange)==null||u.call(d,o.resetKeys,c),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,c=i.FallbackComponent,u=i.fallback;if(o!==null){var d={error:o,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(u))return u;if(typeof a=="function")return a(d);if(c)return D.createElement(c,d);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(D.Component);function UU(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var HU=UU,rg=function(){return rg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rg.apply(this,arguments)},GU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Xw=function(e){var t=e.className,n=e.loadingPrimary,r=n===void 0?"ra.page.loading":n,o=e.loadingSecondary,i=o===void 0?"ra.message.loading":o,a=GU(e,["className","loadingPrimary","loadingSecondary"]),c=q.useTimeout(1e3),u=q.useTranslate();return c?D.createElement(YU,rg({className:t},a),D.createElement("div",{className:Du.message},D.createElement(fu,{className:Du.icon}),D.createElement(S.Typography,{variant:"h5",mt:3,color:"text.secondary"},u(r,{_:r})),D.createElement(S.Typography,{variant:"body2"},u(i,{_:i})))):null};Xw.propTypes={className:m.string,loadingPrimary:m.string,loadingSecondary:m.string};var Ru="RaLoading",Du={root:"".concat(Ru,"-root"),icon:"".concat(Ru,"-icon"),message:"".concat(Ru,"-message")},YU=ue("div",{name:Ru,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t["& .".concat(Du.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:n.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(Du.icon)]={width:"9em",height:"9em"},t}),og={},KU=sr;Object.defineProperty(og,"__esModule",{value:!0});var Zw=og.default=void 0,XU=KU(Gr()),ZU=f;Zw=og.default=(0,XU.default)((0,ZU.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var ig=function(){return ig=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ig.apply(this,arguments)},QU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Qw=function(e){var t=e.icon,n=t===void 0?qU:t,r=e.label,o=r===void 0?"ra.action.edit":r,i=e.scrollToTop,a=i===void 0?!0:i,c=e.className,u=QU(e,["icon","label","scrollToTop","className"]),d=q.useResourceContext(e),p=q.useRecordContext(e),g=q.useCreatePath();return p?D.createElement(tH,ig({component:ut.Link,to:g({type:"edit",resource:d,id:p.id}),state:JU[String(a)],label:o,onClick:$U,className:Es(eH.root,c)},u),n):null},JU={true:{_scrollToTop:!0},false:{}},qU=D.createElement(Zw,null),$U=function(e){return e.stopPropagation()};Qw.propTypes={icon:m.element,label:m.string,record:m.any,scrollToTop:m.bool};var Jw="RaEditButton",eH={root:"".concat(Jw,"-root")},tH=ue(vh,{name:Jw,overridesResolver:function(e,t){return t.root}})({}),sg={},nH=sr;Object.defineProperty(sg,"__esModule",{value:!0});var qw=sg.default=void 0,rH=nH(Gr()),oH=f;qw=sg.default=(0,rH.default)((0,oH.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const iH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ag(e){return`scale(${e}, ${e**2})`}const sH={entering:{opacity:1,transform:ag(1)},entered:{opacity:1,transform:"none"}},lg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Lu=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:v,onExiting:y,style:b,timeout:x="auto",TransitionComponent:w=zr}=t,A=Re(t,iH),j=ms(),T=D.useRef(),P=pt(),O=D.useRef(null),_=on(O,i.ref,n),R=J=>V=>{if(J){const $=O.current;V===void 0?J($):J($,V)}},N=R(p),Y=R((J,V)=>{Mw(J);const{duration:$,delay:W,easing:ie}=ju({style:b,timeout:x,easing:a},{mode:"enter"});let U;x==="auto"?(U=P.transitions.getAutoHeightDuration(J.clientHeight),T.current=U):U=$,J.style.transition=[P.transitions.create("opacity",{duration:U,delay:W}),P.transitions.create("transform",{duration:lg?U:U*.666,delay:W,easing:ie})].join(","),u&&u(J,V)}),X=R(d),G=R(y),re=R(J=>{const{duration:V,delay:$,easing:W}=ju({style:b,timeout:x,easing:a},{mode:"exit"});let ie;x==="auto"?(ie=P.transitions.getAutoHeightDuration(J.clientHeight),T.current=ie):ie=V,J.style.transition=[P.transitions.create("opacity",{duration:ie,delay:$}),P.transitions.create("transform",{duration:lg?ie:ie*.666,delay:lg?$:$||ie*.333,easing:W})].join(","),J.style.opacity=0,J.style.transform=ag(.75),g&&g(J)}),ne=R(v),Z=J=>{x==="auto"&&j.start(T.current||0,J),r&&r(O.current,J)};return f.jsx(w,H({appear:o,in:c,nodeRef:O,onEnter:Y,onEntered:X,onEntering:N,onExit:re,onExited:ne,onExiting:G,addEndListener:Z,timeout:x==="auto"?null:x},A,{children:(J,V)=>D.cloneElement(i,H({style:H({opacity:0,transform:ag(.75),visibility:J==="exited"&&!c?"hidden":void 0},sH[J],b,i.props.style),ref:_},V))}))});process.env.NODE_ENV!=="production"&&(Lu.propTypes={addEndListener:m.func,appear:m.bool,children:gs.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.oneOf(["auto"]),m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])}),Lu.muiSupportAuto=!0;const $w="base";function aH(e){return`${$w}--${e}`}function lH(e,t){return`${$w}-${e}-${t}`}function eS(e,t){const n=Px[t];return n?aH(n):lH(e,t)}function cH(e,t){const n={};return t.forEach(r=>{n[r]=eS(e,r)}),n}const tS="Popper";function uH(e){return eS(tS,e)}cH(tS,["root"]);const dH=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],fH=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pH(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Bu(e){return typeof e=="function"?e():e}function Nu(e){return e.nodeType!==void 0}function hH(e){return!Nu(e)}const gH=()=>Ut({root:["root"]},x8(uH)),mH={},vH=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=Re(t,dH),A=D.useRef(null),j=on(A,n),T=D.useRef(null),P=on(T,v),O=D.useRef(P);Wr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>T.current,[]);const _=pH(p,a),[R,N]=D.useState(_),[Y,X]=D.useState(Bu(o));D.useEffect(()=>{T.current&&T.current.forceUpdate()}),D.useEffect(()=>{o&&X(Bu(o))},[o]),Wr(()=>{if(!Y||!d)return;const J=W=>{N(W.placement)};if(process.env.NODE_ENV!=="production"&&Y&&Nu(Y)&&Y.nodeType===1){const W=Y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
190
+ `))}let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{J(W)}}];u!=null&&(V=V.concat(u)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const $=o1(Y,A.current,H({placement:_},g,{modifiers:V}));return O.current($),()=>{$.destroy(),O.current(null)}},[Y,c,u,d,g,_]);const G={placement:R};x!==null&&(G.TransitionProps=x);const re=gH(),ne=(r=b.root)!=null?r:"div",Z=Hc({elementType:ne,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:j},ownerState:t,className:re.root});return f.jsx(ne,H({},Z,{children:typeof i=="function"?i(G):i}))}),nS=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:v=mH,popperRef:y,style:b,transition:x=!1,slotProps:w={},slots:A={}}=t,j=Re(t,fH),[T,P]=D.useState(!0),O=()=>{P(!1)},_=()=>{P(!0)};if(!u&&!p&&(!x||T))return null;let R;if(i)R=i;else if(r){const X=Bu(r);R=X&&Nu(X)?Un(X).body:Un(null).body}const N=!p&&u&&(!x||T)?"none":void 0,Y=x?{in:p,onEnter:O,onExited:_}:void 0;return f.jsx(tl,{disablePortal:c,container:R,children:f.jsx(vH,H({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:x?!T:p,placement:g,popperOptions:v,popperRef:y,slotProps:w,slots:A},j,{style:H({position:"fixed",top:0,left:0,display:N},b),TransitionProps:Y,children:o}))})});process.env.NODE_ENV!=="production"&&(nS.propTypes={anchorEl:ao(m.oneOfType([lo,m.object,m.func]),e=>{if(e.open){const t=Bu(e.anchorEl);if(t&&Nu(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
191
191
  `))}else if(!t||typeof t.getBoundingClientRect!="function"||hH(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
192
- `))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([lo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bc,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});var cg={};Object.defineProperty(cg,"__esModule",{value:!0});var rS=cg.default=void 0,yH=xH(E),bH=Xx;function oS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oS=function(r){return r?n:t})(e)}function xH(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function CH(e){return Object.keys(e).length===0}function wH(e=null){const t=yH.useContext(bH.ThemeContext);return!t||CH(t)?e:t}rS=cg.default=wH;const SH=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],EH=ue(nS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ug=D.forwardRef(function(t,n){var r;const o=rS(),i=Gt({props:t,name:"MuiPopper"}),{anchorEl:a,component:c,components:u,componentsProps:d,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:A,transition:j,slots:T,slotProps:P}=i,O=Re(i,SH),_=(r=T==null?void 0:T.root)!=null?r:u==null?void 0:u.Root,R=H({anchorEl:a,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:A,transition:j},O);return f.jsx(EH,H({as:c,direction:o==null?void 0:o.direction,slots:{root:_},slotProps:P??d},R,{ref:n}))});process.env.NODE_ENV!=="production"&&(ug.propTypes={anchorEl:m.oneOfType([lo,m.object,m.func]),children:m.oneOfType([m.node,m.func]),component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([lo,m.func]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bc,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),transition:m.bool});function TH(e){return Lt("MuiTooltip",e)}const Wo=Yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),AH=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function IH(e){return Math.round(e*1e5)/1e5}const OH=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(i.split("-")[0])}`],arrow:["arrow"]};return Ut(a,TH,t)},PH=ue(ug,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>H({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Wo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Wo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Wo.arrow}`]:H({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Wo.arrow}`]:H({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),jH=ue("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ne(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>H({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${IH(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Wo.popper}[data-popper-placement*="left"] &`]:H({transformOrigin:"right center"},t.isRtl?H({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):H({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Wo.popper}[data-popper-placement*="right"] &`]:H({transformOrigin:"left center"},t.isRtl?H({marginRight:"14px"},t.touch&&{marginRight:"24px"}):H({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Wo.popper}[data-popper-placement*="top"] &`]:H({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Wo.popper}[data-popper-placement*="bottom"] &`]:H({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kH=ue("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Nu=!1;const iS=new Ba;let rl={x:0,y:0};function Vu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const sS=D.forwardRef(function(t,n){var r,o,i,a,c,u,d,p,g,v,y,b,x,w,A,j,T,P,O;const _=Gt({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:N,components:Y={},componentsProps:X={},describeChild:G=!1,disableFocusListener:re=!1,disableHoverListener:ne=!1,disableInteractive:Z=!1,disableTouchListener:J=!1,enterDelay:V=100,enterNextDelay:$=0,enterTouchDelay:W=700,followCursor:ie=!1,id:U,leaveDelay:ee=0,leaveTouchDelay:de=1500,onClose:ge,onOpen:fe,open:he,placement:me="bottom",PopperComponent:Se,PopperProps:be={},slotProps:ye={},slots:we={},title:Ie,TransitionComponent:pe=Du,TransitionProps:Ke}=_,ve=Re(_,AH),$e=D.isValidElement(N)?N:f.jsx("span",{children:N}),gn=pt(),It=mF(),[bt,Zn]=D.useState(),[Ot,xt]=D.useState(null),qt=D.useRef(!1),Ct=Z||ie,Kt=ms(),Pt=ms(),_e=ms(),Le=ms(),[Oe,Ce]=uC({controlled:he,default:!1,name:"Tooltip",state:"open"});let gt=Oe;if(process.env.NODE_ENV!=="production"){const{current:He}=D.useRef(he!==void 0);D.useEffect(()=>{bt&&bt.disabled&&!He&&Ie!==""&&bt.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
193
- `))},[Ie,bt,He])}const Xt=Vc(U),We=D.useRef(),Pe=co(()=>{We.current!==void 0&&(document.body.style.WebkitUserSelect=We.current,We.current=void 0),Le.clear()});D.useEffect(()=>Pe,[Pe]);const sn=He=>{iS.clear(),Nu=!0,Ce(!0),fe&&!gt&&fe(He)},vr=co(He=>{iS.start(800+ee,()=>{Nu=!1}),Ce(!1),ge&&gt&&ge(He),Kt.start(gn.transitions.duration.shortest,()=>{qt.current=!1})}),jr=He=>{qt.current&&He.type!=="touchstart"||(bt&&bt.removeAttribute("title"),Pt.clear(),_e.clear(),V||Nu&&$?Pt.start(Nu?$:V,()=>{sn(He)}):sn(He))},Li=He=>{Pt.clear(),_e.start(ee,()=>{vr(He)})},{isFocusVisibleRef:bd,onBlur:Zm,onFocus:Qm,ref:xd}=Gp(),[,Sl]=D.useState(!1),Cd=He=>{Zm(He),bd.current===!1&&(Sl(!1),Li(He))},wd=He=>{bt||Zn(He.currentTarget),Qm(He),bd.current===!0&&(Sl(!0),jr(He))},Sd=He=>{qt.current=!0;const wn=$e.props;wn.onTouchStart&&wn.onTouchStart(He)},Jm=He=>{Sd(He),_e.clear(),Kt.clear(),Pe(),We.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(W,()=>{document.body.style.WebkitUserSelect=We.current,jr(He)})},Ed=He=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(He),Pe(),_e.start(de,()=>{vr(He)})};D.useEffect(()=>{if(!gt)return;function He(wn){(wn.key==="Escape"||wn.key==="Esc")&&vr(wn)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[vr,gt]);const qm=on($e.ref,xd,Zn,n);!Ie&&Ie!==0&&(gt=!1);const El=D.useRef(),$m=He=>{const wn=$e.props;wn.onMouseMove&&wn.onMouseMove(He),rl={x:He.clientX,y:He.clientY},El.current&&El.current.update()},vo={},Tl=typeof Ie=="string";G?(vo.title=!gt&&Tl&&!ne?Ie:null,vo["aria-describedby"]=gt?Xt:null):(vo["aria-label"]=Tl?Ie:null,vo["aria-labelledby"]=gt&&!Tl?Xt:null);const mn=H({},vo,ve,$e.props,{className:Be(ve.className,$e.props.className),onTouchStart:Sd,ref:qm},ie?{onMouseMove:$m}:{});process.env.NODE_ENV!=="production"&&(mn["data-mui-internal-clone-element"]=!0,D.useEffect(()=>{bt&&!bt.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
194
- `))},[bt]));const Bi={};J||(mn.onTouchStart=Jm,mn.onTouchEnd=Ed),ne||(mn.onMouseOver=Vu(jr,mn.onMouseOver),mn.onMouseLeave=Vu(Li,mn.onMouseLeave),Ct||(Bi.onMouseOver=jr,Bi.onMouseLeave=Li)),re||(mn.onFocus=Vu(wd,mn.onFocus),mn.onBlur=Vu(Cd,mn.onBlur),Ct||(Bi.onFocus=wd,Bi.onBlur=Cd)),process.env.NODE_ENV!=="production"&&$e.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${$e.props.title}\` or the Tooltip component.`].join(`
195
- `));const e0=D.useMemo(()=>{var He;let wn=[{name:"arrow",enabled:!!Ot,options:{element:Ot,padding:4}}];return(He=be.popperOptions)!=null&&He.modifiers&&(wn=wn.concat(be.popperOptions.modifiers)),H({},be.popperOptions,{modifiers:wn})},[Ot,be]),Ni=H({},_,{isRtl:It,arrow:R,disableInteractive:Ct,placement:me,PopperComponentProp:Se,touch:qt.current}),Al=OH(Ni),Td=(r=(o=we.popper)!=null?o:Y.Popper)!=null?r:PH,Ad=(i=(a=(c=we.transition)!=null?c:Y.Transition)!=null?a:pe)!=null?i:Du,Id=(u=(d=we.tooltip)!=null?d:Y.Tooltip)!=null?u:jH,Od=(p=(g=we.arrow)!=null?g:Y.Arrow)!=null?p:kH,Pd=hs(Td,H({},be,(v=ye.popper)!=null?v:X.popper,{className:Be(Al.popper,be==null?void 0:be.className,(y=(b=ye.popper)!=null?b:X.popper)==null?void 0:y.className)}),Ni),t0=hs(Ad,H({},Ke,(x=ye.transition)!=null?x:X.transition),Ni),n0=hs(Id,H({},(w=ye.tooltip)!=null?w:X.tooltip,{className:Be(Al.tooltip,(A=(j=ye.tooltip)!=null?j:X.tooltip)==null?void 0:A.className)}),Ni),r0=hs(Od,H({},(T=ye.arrow)!=null?T:X.arrow,{className:Be(Al.arrow,(P=(O=ye.arrow)!=null?O:X.arrow)==null?void 0:P.className)}),Ni);return f.jsxs(D.Fragment,{children:[D.cloneElement($e,mn),f.jsx(Td,H({as:Se??ug,placement:me,anchorEl:ie?{getBoundingClientRect:()=>({top:rl.y,left:rl.x,right:rl.x,bottom:rl.y,width:0,height:0})}:bt,popperRef:El,open:bt?gt:!1,id:Xt,transition:!0},Bi,Pd,{popperOptions:e0,children:({TransitionProps:He})=>f.jsx(Ad,H({timeout:gn.transitions.duration.shorter},He,t0,{children:f.jsxs(Id,H({},n0,{children:[Ie,R?f.jsx(Od,H({},r0,{ref:xt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(sS.propTypes={arrow:m.bool,children:gs.isRequired,classes:m.object,className:m.string,components:m.shape({Arrow:m.elementType,Popper:m.elementType,Tooltip:m.elementType,Transition:m.elementType}),componentsProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),describeChild:m.bool,disableFocusListener:m.bool,disableHoverListener:m.bool,disableInteractive:m.bool,disableTouchListener:m.bool,enterDelay:m.number,enterNextDelay:m.number,enterTouchDelay:m.number,followCursor:m.bool,id:m.string,leaveDelay:m.number,leaveTouchDelay:m.number,onClose:m.func,onOpen:m.func,open:m.bool,placement:m.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:m.elementType,PopperProps:m.object,slotProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),slots:m.shape({arrow:m.elementType,popper:m.elementType,tooltip:m.elementType,transition:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),title:m.node,TransitionComponent:m.elementType,TransitionProps:m.object});var dg=function(){return dg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dg.apply(this,arguments)},MH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},aS=function(e){var t=e.label,n=t===void 0?"ra.action.refresh":t,r=e.icon,o=r===void 0?FH:r,i=e.onClick,a=e.className,c=MH(e,["label","icon","onClick","className"]),u=q.useRefresh(),d=q.useTranslate(),p=E.useCallback(function(g){g.preventDefault(),u(),typeof i=="function"&&i(g)},[u,i]);return D.createElement(sS,{title:n&&d(n,{_:"Refresh"})},D.createElement(oh,dg({"aria-label":n&&d(n,{_:"Refresh"}),className:a,color:"inherit",onClick:p},c),o))},FH=D.createElement(qw,null);aS.propTypes={className:m.string,label:m.string,icon:m.element};var fg={},_H=sr;Object.defineProperty(fg,"__esModule",{value:!0});var lS=fg.default=void 0,RH=_H(Gr()),DH=f;lS=fg.default=(0,RH.default)((0,DH.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");var ol=function(){return ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ol.apply(this,arguments)},cS=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function c(p){try{d(r.next(p))}catch(g){a(g)}}function u(p){try{d(r.throw(p))}catch(g){a(g)}}function d(p){p.done?i(p.value):o(p.value).then(c,u)}d((r=r.apply(e,t||[])).next())})},uS=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(p){return u([d,p])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){n.label=d[1];break}if(d[0]===6&&n.label<i[1]){n.label=i[1],i=d;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(d);break}i[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],o=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},LH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},pg=function(e){var t=e.color,n=t===void 0?"primary":t,r=e.icon,o=r===void 0?NH:r;e.invalid;var i=e.label,a=i===void 0?"ra.action.save":i,c=e.onClick,u=e.mutationOptions,d=e.disabled,p=e.type,g=p===void 0?"submit":p,v=e.transform,y=e.variant,b=y===void 0?"contained":y,x=e.alwaysEnable,w=x===void 0?!1:x,A=LH(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),j=q.useTranslate(),T=tn.useFormContext(),P=q.useSaveContext(),O=tn.useFormState(),_=O.dirtyFields,R=O.isValidating,N=O.isSubmitting,Y=Object.keys(_).length>0,X=zH(w===!1||w===void 0?void 0:!w,d||!Y||R||N);q.warning(g==="submit"&&(u&&(u.onSuccess||u.onError)||v),'Cannot use <SaveButton mutationOptions> props on a button of type "submit". To override the default mutation options on a particular save button, set the <SaveButton type="button"> prop, or set mutationOptions in the main view component (<Create> or <Edit>).');var G=E.useCallback(function(Z){return cS(void 0,void 0,void 0,function(){var J;return uS(this,function(V){switch(V.label){case 0:return P!=null&&P.save?[4,P.save(Z,ol(ol({},u),{transform:v}))]:[3,2];case 1:J=V.sent(),V.label=2;case 2:return J!=null&&q.setSubmissionErrors(J,T.setError),[2]}})})},[T.setError,P,u,v]),re=E.useCallback(function(Z){return cS(void 0,void 0,void 0,function(){return uS(this,function(J){switch(J.label){case 0:return c&&c(Z),Z.defaultPrevented?[2]:g!=="button"?[3,2]:(Z.stopPropagation(),[4,T.handleSubmit(G)(Z)]);case 1:J.sent(),J.label=2;case 2:return[2]}})})},[c,g,T,G]),ne=a&&j(a,{_:a});return D.createElement(WH,ol({variant:b,type:g,color:n,"aria-label":ne,disabled:X,onClick:re},A),N?D.createElement(S.CircularProgress,{sx:BH,size:14,thickness:3,color:"inherit"}):o,ne)},BH={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},NH=D.createElement(lS,null);pg.propTypes={className:m.string,invalid:m.bool,label:m.string,variant:m.oneOf(["text","outlined","contained"]),icon:m.element,alwaysEnable:m.bool};var VH="RaSaveButton",WH=ue(S.Button,{name:VH,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:n.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),zH=function(e,t){return typeof e>"u"?t:e},dS=mu,UH=Ih,HH=qa,fS=dS?dS.isConcatSpreadable:void 0;function GH(e){return HH(e)||UH(e)||!!(fS&&e&&e[fS])}var YH=GH,KH=L1,XH=YH;function pS(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=XH),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?pS(c,t-1,n,r,o):KH(o,c):r||(o[o.length]=c)}return o}var hS=pS;function ZH(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var QH=ZH;function JH(e){return e!==e}var qH=JH;function $H(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var eG=$H,tG=QH,nG=qH,rG=eG;function oG(e,t,n){return t===t?rG(e,t,n):tG(e,nG,n)}var iG=oG,sG=iG;function aG(e,t){var n=e==null?0:e.length;return!!n&&sG(e,t,0)>-1}var gS=aG;function lG(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var mS=lG;function cG(){}var uG=cG,hg=Z1,dG=uG,fG=Th,pG=1/0,hG=hg&&1/fG(new hg([,-0]))[1]==pG?function(e){return new hg(e)}:dG,gG=hG,mG=Sh,vG=gS,yG=mS,bG=Eh,xG=gG,CG=Th,wG=200;function SG(e,t,n){var r=-1,o=vG,i=e.length,a=!0,c=[],u=c;if(n)a=!1,o=yG;else if(i>=wG){var d=t?null:xG(e);if(d)return CG(d);a=!1,o=bG,u=new mG}else u=t?[]:c;e:for(;++r<i;){var p=e[r],g=t?t(p):p;if(p=n||p!==0?p:0,a&&g===g){for(var v=u.length;v--;)if(u[v]===g)continue e;t&&u.push(g),c.push(p)}else o(u,g,n)||(u!==c&&u.push(g),c.push(p))}return c}var EG=SG,TG=hS,AG=Nh,IG=EG,OG=Bh,PG=AG(function(e){return IG(TG(e,1,OG,!0))}),jG=PG;const kG=Dr(jG);var MG=Sh,FG=gS,_G=mS,RG=HU,DG=U1,LG=Eh,BG=200;function NG(e,t,n,r){var o=-1,i=FG,a=!0,c=e.length,u=[],d=t.length;if(!c)return u;n&&(t=RG(t,DG(n))),r?(i=_G,a=!1):t.length>=BG&&(i=LG,a=!1,t=new MG(t));e:for(;++o<c;){var p=e[o],g=n==null?p:n(p);if(p=r||p!==0?p:0,a&&g===g){for(var v=d;v--;)if(t[v]===g)continue e;u.push(p)}else i(t,g,r)||u.push(p)}return u}var VG=NG,WG=VG,zG=hS,UG=Nh,vS=Bh,HG=UG(function(e,t){return vS(e)?WG(e,zG(t,1,vS,!0)):[]}),GG=HG;const YG=Dr(GG);var gg={},KG=sr;Object.defineProperty(gg,"__esModule",{value:!0});var mg=gg.default=void 0,XG=KG(Gr()),ZG=f;mg=gg.default=(0,XG.default)((0,ZG.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var yS=function(e){return q.useStore("".concat(e,".savedQueries"),[])},bS=function(e){return Array.isArray(e)?e.filter(function(t){return QG(t)}):[]},QG=function(e){var t,n;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((n=e.value.sort)===null||n===void 0?void 0:n.order)=="string"&&typeof e.value.filter=="object")};function JG(){window.history.go(-1)}function vg(e){var p;const{error:t,errorComponent:n,errorInfo:r,resetErrorBoundary:o,title:i}=e,a=q.useTranslate(),c=S.useTheme(),u=process.env.NODE_ENV==="production";VU(o);const d=E.useCallback(()=>{JG()},[]);return n?f.jsx(n,{error:t,errorInfo:r,title:i}):f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[i?f.jsx(Yw,{title:i}):null,f.jsx("img",{src:v1,style:{width:"100%",maxWidth:450,marginTop:c.spacing(4)},alt:"oops!"}),f.jsx(S.Typography,{variant:"h2",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:a(u?"ra.page.error":t.message,{_:t.message})}),!u&&f.jsx(S.Typography,{variant:"caption",children:a("ra.message.error_more_info")}),r?f.jsx(S.Typography,{variant:"body1",component:"pre",textAlign:u?"center":"start",fontFamily:u?"inherit":"monospace",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:u?a("ra.message.error"):((p=r==null?void 0:r.componentStack)==null?void 0:p.substring(0,250))+"..."}):null,f.jsx(S.Button,{variant:"contained",startIcon:f.jsx(en.History,{}),onClick:d,children:a("ra.action.back")})]})})}var Wu={exports:{}};/**
192
+ `))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([lo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Nc,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});var cg={};Object.defineProperty(cg,"__esModule",{value:!0});var rS=cg.default=void 0,yH=xH(E),bH=Xx;function oS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oS=function(r){return r?n:t})(e)}function xH(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function CH(e){return Object.keys(e).length===0}function wH(e=null){const t=yH.useContext(bH.ThemeContext);return!t||CH(t)?e:t}rS=cg.default=wH;const SH=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],EH=ue(nS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ug=D.forwardRef(function(t,n){var r;const o=rS(),i=Gt({props:t,name:"MuiPopper"}),{anchorEl:a,component:c,components:u,componentsProps:d,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:A,transition:j,slots:T,slotProps:P}=i,O=Re(i,SH),_=(r=T==null?void 0:T.root)!=null?r:u==null?void 0:u.Root,R=H({anchorEl:a,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:A,transition:j},O);return f.jsx(EH,H({as:c,direction:o==null?void 0:o.direction,slots:{root:_},slotProps:P??d},R,{ref:n}))});process.env.NODE_ENV!=="production"&&(ug.propTypes={anchorEl:m.oneOfType([lo,m.object,m.func]),children:m.oneOfType([m.node,m.func]),component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([lo,m.func]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Nc,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),transition:m.bool});function TH(e){return Lt("MuiTooltip",e)}const Wo=Yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),AH=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function IH(e){return Math.round(e*1e5)/1e5}const OH=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(i.split("-")[0])}`],arrow:["arrow"]};return Ut(a,TH,t)},PH=ue(ug,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>H({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Wo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Wo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Wo.arrow}`]:H({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Wo.arrow}`]:H({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),jH=ue("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ne(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>H({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${IH(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Wo.popper}[data-popper-placement*="left"] &`]:H({transformOrigin:"right center"},t.isRtl?H({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):H({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Wo.popper}[data-popper-placement*="right"] &`]:H({transformOrigin:"left center"},t.isRtl?H({marginRight:"14px"},t.touch&&{marginRight:"24px"}):H({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Wo.popper}[data-popper-placement*="top"] &`]:H({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Wo.popper}[data-popper-placement*="bottom"] &`]:H({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kH=ue("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Vu=!1;const iS=new Ba;let rl={x:0,y:0};function Wu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const sS=D.forwardRef(function(t,n){var r,o,i,a,c,u,d,p,g,v,y,b,x,w,A,j,T,P,O;const _=Gt({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:N,components:Y={},componentsProps:X={},describeChild:G=!1,disableFocusListener:re=!1,disableHoverListener:ne=!1,disableInteractive:Z=!1,disableTouchListener:J=!1,enterDelay:V=100,enterNextDelay:$=0,enterTouchDelay:W=700,followCursor:ie=!1,id:U,leaveDelay:ee=0,leaveTouchDelay:de=1500,onClose:ge,onOpen:fe,open:he,placement:me="bottom",PopperComponent:Se,PopperProps:be={},slotProps:ye={},slots:we={},title:Ie,TransitionComponent:pe=Lu,TransitionProps:Ke}=_,ve=Re(_,AH),$e=D.isValidElement(N)?N:f.jsx("span",{children:N}),gn=pt(),It=mF(),[bt,Zn]=D.useState(),[Ot,xt]=D.useState(null),qt=D.useRef(!1),Ct=Z||ie,Kt=ms(),Pt=ms(),_e=ms(),Le=ms(),[Oe,Ce]=uC({controlled:he,default:!1,name:"Tooltip",state:"open"});let gt=Oe;if(process.env.NODE_ENV!=="production"){const{current:He}=D.useRef(he!==void 0);D.useEffect(()=>{bt&&bt.disabled&&!He&&Ie!==""&&bt.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
193
+ `))},[Ie,bt,He])}const Xt=Wc(U),We=D.useRef(),Pe=co(()=>{We.current!==void 0&&(document.body.style.WebkitUserSelect=We.current,We.current=void 0),Le.clear()});D.useEffect(()=>Pe,[Pe]);const sn=He=>{iS.clear(),Vu=!0,Ce(!0),fe&&!gt&&fe(He)},vr=co(He=>{iS.start(800+ee,()=>{Vu=!1}),Ce(!1),ge&&gt&&ge(He),Kt.start(gn.transitions.duration.shortest,()=>{qt.current=!1})}),jr=He=>{qt.current&&He.type!=="touchstart"||(bt&&bt.removeAttribute("title"),Pt.clear(),_e.clear(),V||Vu&&$?Pt.start(Vu?$:V,()=>{sn(He)}):sn(He))},Li=He=>{Pt.clear(),_e.start(ee,()=>{vr(He)})},{isFocusVisibleRef:bd,onBlur:Zm,onFocus:Qm,ref:xd}=Gp(),[,El]=D.useState(!1),Cd=He=>{Zm(He),bd.current===!1&&(El(!1),Li(He))},wd=He=>{bt||Zn(He.currentTarget),Qm(He),bd.current===!0&&(El(!0),jr(He))},Sd=He=>{qt.current=!0;const wn=$e.props;wn.onTouchStart&&wn.onTouchStart(He)},Jm=He=>{Sd(He),_e.clear(),Kt.clear(),Pe(),We.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(W,()=>{document.body.style.WebkitUserSelect=We.current,jr(He)})},Ed=He=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(He),Pe(),_e.start(de,()=>{vr(He)})};D.useEffect(()=>{if(!gt)return;function He(wn){(wn.key==="Escape"||wn.key==="Esc")&&vr(wn)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[vr,gt]);const qm=on($e.ref,xd,Zn,n);!Ie&&Ie!==0&&(gt=!1);const Tl=D.useRef(),$m=He=>{const wn=$e.props;wn.onMouseMove&&wn.onMouseMove(He),rl={x:He.clientX,y:He.clientY},Tl.current&&Tl.current.update()},vo={},Al=typeof Ie=="string";G?(vo.title=!gt&&Al&&!ne?Ie:null,vo["aria-describedby"]=gt?Xt:null):(vo["aria-label"]=Al?Ie:null,vo["aria-labelledby"]=gt&&!Al?Xt:null);const mn=H({},vo,ve,$e.props,{className:Be(ve.className,$e.props.className),onTouchStart:Sd,ref:qm},ie?{onMouseMove:$m}:{});process.env.NODE_ENV!=="production"&&(mn["data-mui-internal-clone-element"]=!0,D.useEffect(()=>{bt&&!bt.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
194
+ `))},[bt]));const Bi={};J||(mn.onTouchStart=Jm,mn.onTouchEnd=Ed),ne||(mn.onMouseOver=Wu(jr,mn.onMouseOver),mn.onMouseLeave=Wu(Li,mn.onMouseLeave),Ct||(Bi.onMouseOver=jr,Bi.onMouseLeave=Li)),re||(mn.onFocus=Wu(wd,mn.onFocus),mn.onBlur=Wu(Cd,mn.onBlur),Ct||(Bi.onFocus=wd,Bi.onBlur=Cd)),process.env.NODE_ENV!=="production"&&$e.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${$e.props.title}\` or the Tooltip component.`].join(`
195
+ `));const e0=D.useMemo(()=>{var He;let wn=[{name:"arrow",enabled:!!Ot,options:{element:Ot,padding:4}}];return(He=be.popperOptions)!=null&&He.modifiers&&(wn=wn.concat(be.popperOptions.modifiers)),H({},be.popperOptions,{modifiers:wn})},[Ot,be]),Ni=H({},_,{isRtl:It,arrow:R,disableInteractive:Ct,placement:me,PopperComponentProp:Se,touch:qt.current}),Il=OH(Ni),Td=(r=(o=we.popper)!=null?o:Y.Popper)!=null?r:PH,Ad=(i=(a=(c=we.transition)!=null?c:Y.Transition)!=null?a:pe)!=null?i:Lu,Id=(u=(d=we.tooltip)!=null?d:Y.Tooltip)!=null?u:jH,Od=(p=(g=we.arrow)!=null?g:Y.Arrow)!=null?p:kH,Pd=hs(Td,H({},be,(v=ye.popper)!=null?v:X.popper,{className:Be(Il.popper,be==null?void 0:be.className,(y=(b=ye.popper)!=null?b:X.popper)==null?void 0:y.className)}),Ni),t0=hs(Ad,H({},Ke,(x=ye.transition)!=null?x:X.transition),Ni),n0=hs(Id,H({},(w=ye.tooltip)!=null?w:X.tooltip,{className:Be(Il.tooltip,(A=(j=ye.tooltip)!=null?j:X.tooltip)==null?void 0:A.className)}),Ni),r0=hs(Od,H({},(T=ye.arrow)!=null?T:X.arrow,{className:Be(Il.arrow,(P=(O=ye.arrow)!=null?O:X.arrow)==null?void 0:P.className)}),Ni);return f.jsxs(D.Fragment,{children:[D.cloneElement($e,mn),f.jsx(Td,H({as:Se??ug,placement:me,anchorEl:ie?{getBoundingClientRect:()=>({top:rl.y,left:rl.x,right:rl.x,bottom:rl.y,width:0,height:0})}:bt,popperRef:Tl,open:bt?gt:!1,id:Xt,transition:!0},Bi,Pd,{popperOptions:e0,children:({TransitionProps:He})=>f.jsx(Ad,H({timeout:gn.transitions.duration.shorter},He,t0,{children:f.jsxs(Id,H({},n0,{children:[Ie,R?f.jsx(Od,H({},r0,{ref:xt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(sS.propTypes={arrow:m.bool,children:gs.isRequired,classes:m.object,className:m.string,components:m.shape({Arrow:m.elementType,Popper:m.elementType,Tooltip:m.elementType,Transition:m.elementType}),componentsProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),describeChild:m.bool,disableFocusListener:m.bool,disableHoverListener:m.bool,disableInteractive:m.bool,disableTouchListener:m.bool,enterDelay:m.number,enterNextDelay:m.number,enterTouchDelay:m.number,followCursor:m.bool,id:m.string,leaveDelay:m.number,leaveTouchDelay:m.number,onClose:m.func,onOpen:m.func,open:m.bool,placement:m.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:m.elementType,PopperProps:m.object,slotProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),slots:m.shape({arrow:m.elementType,popper:m.elementType,tooltip:m.elementType,transition:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),title:m.node,TransitionComponent:m.elementType,TransitionProps:m.object});var dg=function(){return dg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dg.apply(this,arguments)},MH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},aS=function(e){var t=e.label,n=t===void 0?"ra.action.refresh":t,r=e.icon,o=r===void 0?FH:r,i=e.onClick,a=e.className,c=MH(e,["label","icon","onClick","className"]),u=q.useRefresh(),d=q.useTranslate(),p=E.useCallback(function(g){g.preventDefault(),u(),typeof i=="function"&&i(g)},[u,i]);return D.createElement(sS,{title:n&&d(n,{_:"Refresh"})},D.createElement(oh,dg({"aria-label":n&&d(n,{_:"Refresh"}),className:a,color:"inherit",onClick:p},c),o))},FH=D.createElement(qw,null);aS.propTypes={className:m.string,label:m.string,icon:m.element};var fg={},_H=sr;Object.defineProperty(fg,"__esModule",{value:!0});var lS=fg.default=void 0,RH=_H(Gr()),DH=f;lS=fg.default=(0,RH.default)((0,DH.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");var ol=function(){return ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ol.apply(this,arguments)},cS=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function c(p){try{d(r.next(p))}catch(g){a(g)}}function u(p){try{d(r.throw(p))}catch(g){a(g)}}function d(p){p.done?i(p.value):o(p.value).then(c,u)}d((r=r.apply(e,t||[])).next())})},uS=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(p){return u([d,p])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){n.label=d[1];break}if(d[0]===6&&n.label<i[1]){n.label=i[1],i=d;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(d);break}i[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],o=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},LH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},pg=function(e){var t=e.color,n=t===void 0?"primary":t,r=e.icon,o=r===void 0?NH:r;e.invalid;var i=e.label,a=i===void 0?"ra.action.save":i,c=e.onClick,u=e.mutationOptions,d=e.disabled,p=e.type,g=p===void 0?"submit":p,v=e.transform,y=e.variant,b=y===void 0?"contained":y,x=e.alwaysEnable,w=x===void 0?!1:x,A=LH(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),j=q.useTranslate(),T=tn.useFormContext(),P=q.useSaveContext(),O=tn.useFormState(),_=O.dirtyFields,R=O.isValidating,N=O.isSubmitting,Y=Object.keys(_).length>0,X=zH(w===!1||w===void 0?void 0:!w,d||!Y||R||N);q.warning(g==="submit"&&(u&&(u.onSuccess||u.onError)||v),'Cannot use <SaveButton mutationOptions> props on a button of type "submit". To override the default mutation options on a particular save button, set the <SaveButton type="button"> prop, or set mutationOptions in the main view component (<Create> or <Edit>).');var G=E.useCallback(function(Z){return cS(void 0,void 0,void 0,function(){var J;return uS(this,function(V){switch(V.label){case 0:return P!=null&&P.save?[4,P.save(Z,ol(ol({},u),{transform:v}))]:[3,2];case 1:J=V.sent(),V.label=2;case 2:return J!=null&&q.setSubmissionErrors(J,T.setError),[2]}})})},[T.setError,P,u,v]),re=E.useCallback(function(Z){return cS(void 0,void 0,void 0,function(){return uS(this,function(J){switch(J.label){case 0:return c&&c(Z),Z.defaultPrevented?[2]:g!=="button"?[3,2]:(Z.stopPropagation(),[4,T.handleSubmit(G)(Z)]);case 1:J.sent(),J.label=2;case 2:return[2]}})})},[c,g,T,G]),ne=a&&j(a,{_:a});return D.createElement(WH,ol({variant:b,type:g,color:n,"aria-label":ne,disabled:X,onClick:re},A),N?D.createElement(S.CircularProgress,{sx:BH,size:14,thickness:3,color:"inherit"}):o,ne)},BH={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},NH=D.createElement(lS,null);pg.propTypes={className:m.string,invalid:m.bool,label:m.string,variant:m.oneOf(["text","outlined","contained"]),icon:m.element,alwaysEnable:m.bool};var VH="RaSaveButton",WH=ue(S.Button,{name:VH,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:n.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),zH=function(e,t){return typeof e>"u"?t:e},dS=vu,UH=Ih,HH=qa,fS=dS?dS.isConcatSpreadable:void 0;function GH(e){return HH(e)||UH(e)||!!(fS&&e&&e[fS])}var YH=GH,KH=L1,XH=YH;function pS(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=XH),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?pS(c,t-1,n,r,o):KH(o,c):r||(o[o.length]=c)}return o}var hS=pS;function ZH(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var QH=ZH;function JH(e){return e!==e}var qH=JH;function $H(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var eG=$H,tG=QH,nG=qH,rG=eG;function oG(e,t,n){return t===t?rG(e,t,n):tG(e,nG,n)}var iG=oG,sG=iG;function aG(e,t){var n=e==null?0:e.length;return!!n&&sG(e,t,0)>-1}var gS=aG;function lG(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var mS=lG;function cG(){}var uG=cG,hg=Z1,dG=uG,fG=Th,pG=1/0,hG=hg&&1/fG(new hg([,-0]))[1]==pG?function(e){return new hg(e)}:dG,gG=hG,mG=Sh,vG=gS,yG=mS,bG=Eh,xG=gG,CG=Th,wG=200;function SG(e,t,n){var r=-1,o=vG,i=e.length,a=!0,c=[],u=c;if(n)a=!1,o=yG;else if(i>=wG){var d=t?null:xG(e);if(d)return CG(d);a=!1,o=bG,u=new mG}else u=t?[]:c;e:for(;++r<i;){var p=e[r],g=t?t(p):p;if(p=n||p!==0?p:0,a&&g===g){for(var v=u.length;v--;)if(u[v]===g)continue e;t&&u.push(g),c.push(p)}else o(u,g,n)||(u!==c&&u.push(g),c.push(p))}return c}var EG=SG,TG=hS,AG=Nh,IG=EG,OG=Bh,PG=AG(function(e){return IG(TG(e,1,OG,!0))}),jG=PG;const kG=Dr(jG);var MG=Sh,FG=gS,_G=mS,RG=HU,DG=U1,LG=Eh,BG=200;function NG(e,t,n,r){var o=-1,i=FG,a=!0,c=e.length,u=[],d=t.length;if(!c)return u;n&&(t=RG(t,DG(n))),r?(i=_G,a=!1):t.length>=BG&&(i=LG,a=!1,t=new MG(t));e:for(;++o<c;){var p=e[o],g=n==null?p:n(p);if(p=r||p!==0?p:0,a&&g===g){for(var v=d;v--;)if(t[v]===g)continue e;u.push(p)}else i(t,g,r)||u.push(p)}return u}var VG=NG,WG=VG,zG=hS,UG=Nh,vS=Bh,HG=UG(function(e,t){return vS(e)?WG(e,zG(t,1,vS,!0)):[]}),GG=HG;const YG=Dr(GG);var gg={},KG=sr;Object.defineProperty(gg,"__esModule",{value:!0});var mg=gg.default=void 0,XG=KG(Gr()),ZG=f;mg=gg.default=(0,XG.default)((0,ZG.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var yS=function(e){return q.useStore("".concat(e,".savedQueries"),[])},bS=function(e){return Array.isArray(e)?e.filter(function(t){return QG(t)}):[]},QG=function(e){var t,n;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((n=e.value.sort)===null||n===void 0?void 0:n.order)=="string"&&typeof e.value.filter=="object")};function JG(){window.history.go(-1)}function vg(e){var p;const{error:t,errorComponent:n,errorInfo:r,resetErrorBoundary:o,title:i}=e,a=q.useTranslate(),c=S.useTheme(),u=process.env.NODE_ENV==="production";VU(o);const d=E.useCallback(()=>{JG()},[]);return n?f.jsx(n,{error:t,errorInfo:r,title:i}):f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[i?f.jsx(Yw,{title:i}):null,f.jsx("img",{src:v1,style:{width:"100%",maxWidth:450,marginTop:c.spacing(4)},alt:"oops!"}),f.jsx(S.Typography,{variant:"h2",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:a(u?"ra.page.error":t.message,{_:t.message})}),!u&&f.jsx(S.Typography,{variant:"caption",children:a("ra.message.error_more_info")}),r?f.jsx(S.Typography,{variant:"body1",component:"pre",textAlign:u?"center":"start",fontFamily:u?"inherit":"monospace",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:u?a("ra.message.error"):((p=r==null?void 0:r.componentStack)==null?void 0:p.substring(0,250))+"..."}):null,f.jsx(S.Button,{variant:"contained",startIcon:f.jsx(en.History,{}),onClick:d,children:a("ra.action.back")})]})})}var zu={exports:{}};/**
196
196
  * @license
197
197
  * Lodash <https://lodash.com/>
198
198
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
199
199
  * Released under MIT license <https://lodash.com/license>
200
200
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
201
201
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
202
- */Wu.exports,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,v=2,y=4,b=1,x=2,w=1,A=2,j=4,T=8,P=16,O=32,_=64,R=128,N=256,Y=512,X=30,G="...",re=800,ne=16,Z=1,J=2,V=3,$=1/0,W=9007199254740991,ie=17976931348623157e292,U=NaN,ee=4294967295,de=ee-1,ge=ee>>>1,fe=[["ary",R],["bind",w],["bindKey",A],["curry",T],["curryRight",P],["flip",Y],["partial",O],["partialRight",_],["rearg",N]],he="[object Arguments]",me="[object Array]",Se="[object AsyncFunction]",be="[object Boolean]",ye="[object Date]",we="[object DOMException]",Ie="[object Error]",pe="[object Function]",Ke="[object GeneratorFunction]",ve="[object Map]",$e="[object Number]",gn="[object Null]",It="[object Object]",bt="[object Promise]",Zn="[object Proxy]",Ot="[object RegExp]",xt="[object Set]",qt="[object String]",Ct="[object Symbol]",Kt="[object Undefined]",Pt="[object WeakMap]",_e="[object WeakSet]",Le="[object ArrayBuffer]",Oe="[object DataView]",Ce="[object Float32Array]",gt="[object Float64Array]",Xt="[object Int8Array]",We="[object Int16Array]",Pe="[object Int32Array]",sn="[object Uint8Array]",vr="[object Uint8ClampedArray]",jr="[object Uint16Array]",Li="[object Uint32Array]",bd=/\b__p \+= '';/g,Zm=/\b(__p \+=) '' \+/g,Qm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xd=/&(?:amp|lt|gt|quot|#39);/g,Sl=/[&<>"']/g,Cd=RegExp(xd.source),wd=RegExp(Sl.source),Sd=/<%-([\s\S]+?)%>/g,Jm=/<%([\s\S]+?)%>/g,Ed=/<%=([\s\S]+?)%>/g,qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,$m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vo=/[\\^$.*+?()[\]{}|]/g,Tl=RegExp(vo.source),mn=/^\s+/,Bi=/\s/,e0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ni=/\{\n\/\* \[wrapped with (.+)\] \*/,Al=/,? & /,Td=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ad=/[()=,{}\[\]\/\s]/,Id=/\\(\\)?/g,Od=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pd=/\w*$/,t0=/^[-+]0x[0-9a-f]+$/i,n0=/^0b[01]+$/i,r0=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,aee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jd=/($^)/,lee=/['\n\r\u2028\u2029\\]/g,kd="\\ud800-\\udfff",cee="\\u0300-\\u036f",uee="\\ufe20-\\ufe2f",dee="\\u20d0-\\u20ff",kI=cee+uee+dee,MI="\\u2700-\\u27bf",FI="a-z\\xdf-\\xf6\\xf8-\\xff",fee="\\xac\\xb1\\xd7\\xf7",pee="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hee="\\u2000-\\u206f",gee=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_I="A-Z\\xc0-\\xd6\\xd8-\\xde",RI="\\ufe0e\\ufe0f",DI=fee+pee+hee+gee,o0="['’]",mee="["+kd+"]",LI="["+DI+"]",Md="["+kI+"]",BI="\\d+",vee="["+MI+"]",NI="["+FI+"]",VI="[^"+kd+DI+BI+MI+FI+_I+"]",i0="\\ud83c[\\udffb-\\udfff]",yee="(?:"+Md+"|"+i0+")",WI="[^"+kd+"]",s0="(?:\\ud83c[\\udde6-\\uddff]){2}",a0="[\\ud800-\\udbff][\\udc00-\\udfff]",Zs="["+_I+"]",zI="\\u200d",UI="(?:"+NI+"|"+VI+")",bee="(?:"+Zs+"|"+VI+")",HI="(?:"+o0+"(?:d|ll|m|re|s|t|ve))?",GI="(?:"+o0+"(?:D|LL|M|RE|S|T|VE))?",YI=yee+"?",KI="["+RI+"]?",xee="(?:"+zI+"(?:"+[WI,s0,a0].join("|")+")"+KI+YI+")*",Cee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",XI=KI+YI+xee,See="(?:"+[vee,s0,a0].join("|")+")"+XI,Eee="(?:"+[WI+Md+"?",Md,s0,a0,mee].join("|")+")",Tee=RegExp(o0,"g"),Aee=RegExp(Md,"g"),l0=RegExp(i0+"(?="+i0+")|"+Eee+XI,"g"),Iee=RegExp([Zs+"?"+NI+"+"+HI+"(?="+[LI,Zs,"$"].join("|")+")",bee+"+"+GI+"(?="+[LI,Zs+UI,"$"].join("|")+")",Zs+"?"+UI+"+"+HI,Zs+"+"+GI,wee,Cee,BI,See].join("|"),"g"),Oee=RegExp("["+zI+kd+kI+RI+"]"),Pee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kee=-1,wt={};wt[Ce]=wt[gt]=wt[Xt]=wt[We]=wt[Pe]=wt[sn]=wt[vr]=wt[jr]=wt[Li]=!0,wt[he]=wt[me]=wt[Le]=wt[be]=wt[Oe]=wt[ye]=wt[Ie]=wt[pe]=wt[ve]=wt[$e]=wt[It]=wt[Ot]=wt[xt]=wt[qt]=wt[Pt]=!1;var mt={};mt[he]=mt[me]=mt[Le]=mt[Oe]=mt[be]=mt[ye]=mt[Ce]=mt[gt]=mt[Xt]=mt[We]=mt[Pe]=mt[ve]=mt[$e]=mt[It]=mt[Ot]=mt[xt]=mt[qt]=mt[Ct]=mt[sn]=mt[vr]=mt[jr]=mt[Li]=!0,mt[Ie]=mt[pe]=mt[Pt]=!1;var Mee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",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<","&gt;":">","&quot;":'"',"&#39;":"'"},Ree={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dee=parseFloat,Lee=parseInt,ZI=typeof xn=="object"&&xn&&xn.Object===Object&&xn,Bee=typeof self=="object"&&self&&self.Object===Object&&self,an=ZI||Bee||Function("return this")(),c0=t&&!t.nodeType&&t,Vi=c0&&!0&&e&&!e.nodeType&&e,QI=Vi&&Vi.exports===c0,u0=QI&&ZI.process,yr=function(){try{var K=Vi&&Vi.require&&Vi.require("util").types;return K||u0&&u0.binding&&u0.binding("util")}catch{}}(),JI=yr&&yr.isArrayBuffer,qI=yr&&yr.isDate,$I=yr&&yr.isMap,eO=yr&&yr.isRegExp,tO=yr&&yr.isSet,nO=yr&&yr.isTypedArray;function Qn(K,se,oe){switch(oe.length){case 0:return K.call(se);case 1:return K.call(se,oe[0]);case 2:return K.call(se,oe[0],oe[1]);case 3:return K.call(se,oe[0],oe[1],oe[2])}return K.apply(se,oe)}function Nee(K,se,oe,Ee){for(var Ve=-1,ot=K==null?0:K.length;++Ve<ot;){var Qt=K[Ve];se(Ee,Qt,oe(Qt),K)}return Ee}function br(K,se){for(var oe=-1,Ee=K==null?0:K.length;++oe<Ee&&se(K[oe],oe,K)!==!1;);return K}function Vee(K,se){for(var oe=K==null?0:K.length;oe--&&se(K[oe],oe,K)!==!1;);return K}function rO(K,se){for(var oe=-1,Ee=K==null?0:K.length;++oe<Ee;)if(!se(K[oe],oe,K))return!1;return!0}function Jo(K,se){for(var oe=-1,Ee=K==null?0:K.length,Ve=0,ot=[];++oe<Ee;){var Qt=K[oe];se(Qt,oe,K)&&(ot[Ve++]=Qt)}return ot}function Fd(K,se){var oe=K==null?0:K.length;return!!oe&&Qs(K,se,0)>-1}function d0(K,se,oe){for(var Ee=-1,Ve=K==null?0:K.length;++Ee<Ve;)if(oe(se,K[Ee]))return!0;return!1}function Tt(K,se){for(var oe=-1,Ee=K==null?0:K.length,Ve=Array(Ee);++oe<Ee;)Ve[oe]=se(K[oe],oe,K);return Ve}function qo(K,se){for(var oe=-1,Ee=se.length,Ve=K.length;++oe<Ee;)K[Ve+oe]=se[oe];return K}function f0(K,se,oe,Ee){var Ve=-1,ot=K==null?0:K.length;for(Ee&&ot&&(oe=K[++Ve]);++Ve<ot;)oe=se(oe,K[Ve],Ve,K);return oe}function Wee(K,se,oe,Ee){var Ve=K==null?0:K.length;for(Ee&&Ve&&(oe=K[--Ve]);Ve--;)oe=se(oe,K[Ve],Ve,K);return oe}function p0(K,se){for(var oe=-1,Ee=K==null?0:K.length;++oe<Ee;)if(se(K[oe],oe,K))return!0;return!1}var zee=h0("length");function Uee(K){return K.split("")}function Hee(K){return K.match(Td)||[]}function oO(K,se,oe){var Ee;return oe(K,function(Ve,ot,Qt){if(se(Ve,ot,Qt))return Ee=ot,!1}),Ee}function _d(K,se,oe,Ee){for(var Ve=K.length,ot=oe+(Ee?1:-1);Ee?ot--:++ot<Ve;)if(se(K[ot],ot,K))return ot;return-1}function Qs(K,se,oe){return se===se?nte(K,se,oe):_d(K,iO,oe)}function Gee(K,se,oe,Ee){for(var Ve=oe-1,ot=K.length;++Ve<ot;)if(Ee(K[Ve],se))return Ve;return-1}function iO(K){return K!==K}function sO(K,se){var oe=K==null?0:K.length;return oe?m0(K,se)/oe:U}function h0(K){return function(se){return se==null?n:se[K]}}function g0(K){return function(se){return K==null?n:K[se]}}function aO(K,se,oe,Ee,Ve){return Ve(K,function(ot,Qt,ft){oe=Ee?(Ee=!1,ot):se(oe,ot,Qt,ft)}),oe}function Yee(K,se){var oe=K.length;for(K.sort(se);oe--;)K[oe]=K[oe].value;return K}function m0(K,se){for(var oe,Ee=-1,Ve=K.length;++Ee<Ve;){var ot=se(K[Ee]);ot!==n&&(oe=oe===n?ot:oe+ot)}return oe}function v0(K,se){for(var oe=-1,Ee=Array(K);++oe<K;)Ee[oe]=se(oe);return Ee}function Kee(K,se){return Tt(se,function(oe){return[oe,K[oe]]})}function lO(K){return K&&K.slice(0,fO(K)+1).replace(mn,"")}function Jn(K){return function(se){return K(se)}}function y0(K,se){return Tt(se,function(oe){return K[oe]})}function Il(K,se){return K.has(se)}function cO(K,se){for(var oe=-1,Ee=K.length;++oe<Ee&&Qs(se,K[oe],0)>-1;);return oe}function uO(K,se){for(var oe=K.length;oe--&&Qs(se,K[oe],0)>-1;);return oe}function Xee(K,se){for(var oe=K.length,Ee=0;oe--;)K[oe]===se&&++Ee;return Ee}var Zee=g0(Mee),Qee=g0(Fee);function Jee(K){return"\\"+Ree[K]}function qee(K,se){return K==null?n:K[se]}function Js(K){return Oee.test(K)}function $ee(K){return Pee.test(K)}function ete(K){for(var se,oe=[];!(se=K.next()).done;)oe.push(se.value);return oe}function b0(K){var se=-1,oe=Array(K.size);return K.forEach(function(Ee,Ve){oe[++se]=[Ve,Ee]}),oe}function dO(K,se){return function(oe){return K(se(oe))}}function $o(K,se){for(var oe=-1,Ee=K.length,Ve=0,ot=[];++oe<Ee;){var Qt=K[oe];(Qt===se||Qt===p)&&(K[oe]=p,ot[Ve++]=oe)}return ot}function Rd(K){var se=-1,oe=Array(K.size);return K.forEach(function(Ee){oe[++se]=Ee}),oe}function tte(K){var se=-1,oe=Array(K.size);return K.forEach(function(Ee){oe[++se]=[Ee,Ee]}),oe}function nte(K,se,oe){for(var Ee=oe-1,Ve=K.length;++Ee<Ve;)if(K[Ee]===se)return Ee;return-1}function rte(K,se,oe){for(var Ee=oe+1;Ee--;)if(K[Ee]===se)return Ee;return Ee}function qs(K){return Js(K)?ite(K):zee(K)}function kr(K){return Js(K)?ste(K):Uee(K)}function fO(K){for(var se=K.length;se--&&Bi.test(K.charAt(se)););return se}var ote=g0(_ee);function ite(K){for(var se=l0.lastIndex=0;l0.test(K);)++se;return se}function ste(K){return K.match(l0)||[]}function ate(K){return K.match(Iee)||[]}var lte=function K(se){se=se==null?an:$s.defaults(an.Object(),se,$s.pick(an,jee));var oe=se.Array,Ee=se.Date,Ve=se.Error,ot=se.Function,Qt=se.Math,ft=se.Object,x0=se.RegExp,cte=se.String,xr=se.TypeError,Dd=oe.prototype,ute=ot.prototype,ea=ft.prototype,Ld=se["__core-js_shared__"],Bd=ute.toString,dt=ea.hasOwnProperty,dte=0,pO=function(){var s=/[^.]+$/.exec(Ld&&Ld.keys&&Ld.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Nd=ea.toString,fte=Bd.call(ft),pte=an._,hte=x0("^"+Bd.call(dt).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vd=QI?se.Buffer:n,ei=se.Symbol,Wd=se.Uint8Array,hO=Vd?Vd.allocUnsafe:n,zd=dO(ft.getPrototypeOf,ft),gO=ft.create,mO=ea.propertyIsEnumerable,Ud=Dd.splice,vO=ei?ei.isConcatSpreadable:n,Ol=ei?ei.iterator:n,Wi=ei?ei.toStringTag:n,Hd=function(){try{var s=Yi(ft,"defineProperty");return s({},"",{}),s}catch{}}(),gte=se.clearTimeout!==an.clearTimeout&&se.clearTimeout,mte=Ee&&Ee.now!==an.Date.now&&Ee.now,vte=se.setTimeout!==an.setTimeout&&se.setTimeout,Gd=Qt.ceil,Yd=Qt.floor,C0=ft.getOwnPropertySymbols,yte=Vd?Vd.isBuffer:n,yO=se.isFinite,bte=Dd.join,xte=dO(ft.keys,ft),Jt=Qt.max,vn=Qt.min,Cte=Ee.now,wte=se.parseInt,bO=Qt.random,Ste=Dd.reverse,w0=Yi(se,"DataView"),Pl=Yi(se,"Map"),S0=Yi(se,"Promise"),ta=Yi(se,"Set"),jl=Yi(se,"WeakMap"),kl=Yi(ft,"create"),Kd=jl&&new jl,na={},Ete=Ki(w0),Tte=Ki(Pl),Ate=Ki(S0),Ite=Ki(ta),Ote=Ki(jl),Xd=ei?ei.prototype:n,Ml=Xd?Xd.valueOf:n,xO=Xd?Xd.toString:n;function M(s){if(Rt(s)&&!ze(s)&&!(s instanceof Je)){if(s instanceof Cr)return s;if(dt.call(s,"__wrapped__"))return CP(s)}return new Cr(s)}var ra=function(){function s(){}return function(l){if(!jt(l))return{};if(gO)return gO(l);s.prototype=l;var h=new s;return s.prototype=n,h}}();function Zd(){}function Cr(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}M.templateSettings={escape:Sd,evaluate:Jm,interpolate:Ed,variable:"",imports:{_:M}},M.prototype=Zd.prototype,M.prototype.constructor=M,Cr.prototype=ra(Zd.prototype),Cr.prototype.constructor=Cr;function Je(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function Pte(){var s=new Je(this.__wrapped__);return s.__actions__=Rn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Rn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Rn(this.__views__),s}function jte(){if(this.__filtered__){var s=new Je(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function kte(){var s=this.__wrapped__.value(),l=this.__dir__,h=ze(s),C=l<0,I=h?s.length:0,F=Une(0,I,this.__views__),B=F.start,z=F.end,Q=z-B,ae=C?z:B-1,le=this.__iteratees__,ce=le.length,xe=0,Ae=vn(Q,this.__takeCount__);if(!h||!C&&I==Q&&Ae==Q)return HO(s,this.__actions__);var ke=[];e:for(;Q--&&xe<Ae;){ae+=l;for(var Ye=-1,Me=s[ae];++Ye<ce;){var Qe=le[Ye],qe=Qe.iteratee,er=Qe.type,Tn=qe(Me);if(er==J)Me=Tn;else if(!Tn){if(er==Z)continue e;break e}}ke[xe++]=Me}return ke}Je.prototype=ra(Zd.prototype),Je.prototype.constructor=Je;function zi(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Mte(){this.__data__=kl?kl(null):{},this.size=0}function Fte(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function _te(s){var l=this.__data__;if(kl){var h=l[s];return h===u?n:h}return dt.call(l,s)?l[s]:n}function Rte(s){var l=this.__data__;return kl?l[s]!==n:dt.call(l,s)}function Dte(s,l){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=kl&&l===n?u:l,this}zi.prototype.clear=Mte,zi.prototype.delete=Fte,zi.prototype.get=_te,zi.prototype.has=Rte,zi.prototype.set=Dte;function yo(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Lte(){this.__data__=[],this.size=0}function Bte(s){var l=this.__data__,h=Qd(l,s);if(h<0)return!1;var C=l.length-1;return h==C?l.pop():Ud.call(l,h,1),--this.size,!0}function Nte(s){var l=this.__data__,h=Qd(l,s);return h<0?n:l[h][1]}function Vte(s){return Qd(this.__data__,s)>-1}function Wte(s,l){var h=this.__data__,C=Qd(h,s);return C<0?(++this.size,h.push([s,l])):h[C][1]=l,this}yo.prototype.clear=Lte,yo.prototype.delete=Bte,yo.prototype.get=Nte,yo.prototype.has=Vte,yo.prototype.set=Wte;function bo(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function zte(){this.size=0,this.__data__={hash:new zi,map:new(Pl||yo),string:new zi}}function Ute(s){var l=cf(this,s).delete(s);return this.size-=l?1:0,l}function Hte(s){return cf(this,s).get(s)}function Gte(s){return cf(this,s).has(s)}function Yte(s,l){var h=cf(this,s),C=h.size;return h.set(s,l),this.size+=h.size==C?0:1,this}bo.prototype.clear=zte,bo.prototype.delete=Ute,bo.prototype.get=Hte,bo.prototype.has=Gte,bo.prototype.set=Yte;function Ui(s){var l=-1,h=s==null?0:s.length;for(this.__data__=new bo;++l<h;)this.add(s[l])}function Kte(s){return this.__data__.set(s,u),this}function Xte(s){return this.__data__.has(s)}Ui.prototype.add=Ui.prototype.push=Kte,Ui.prototype.has=Xte;function Mr(s){var l=this.__data__=new yo(s);this.size=l.size}function Zte(){this.__data__=new yo,this.size=0}function Qte(s){var l=this.__data__,h=l.delete(s);return this.size=l.size,h}function Jte(s){return this.__data__.get(s)}function qte(s){return this.__data__.has(s)}function $te(s,l){var h=this.__data__;if(h instanceof yo){var C=h.__data__;if(!Pl||C.length<o-1)return C.push([s,l]),this.size=++h.size,this;h=this.__data__=new bo(C)}return h.set(s,l),this.size=h.size,this}Mr.prototype.clear=Zte,Mr.prototype.delete=Qte,Mr.prototype.get=Jte,Mr.prototype.has=qte,Mr.prototype.set=$te;function CO(s,l){var h=ze(s),C=!h&&Xi(s),I=!h&&!C&&ii(s),F=!h&&!C&&!I&&aa(s),B=h||C||I||F,z=B?v0(s.length,cte):[],Q=z.length;for(var ae in s)(l||dt.call(s,ae))&&!(B&&(ae=="length"||I&&(ae=="offset"||ae=="parent")||F&&(ae=="buffer"||ae=="byteLength"||ae=="byteOffset")||So(ae,Q)))&&z.push(ae);return z}function wO(s){var l=s.length;return l?s[_0(0,l-1)]:n}function ene(s,l){return uf(Rn(s),Hi(l,0,s.length))}function tne(s){return uf(Rn(s))}function E0(s,l,h){(h!==n&&!Fr(s[l],h)||h===n&&!(l in s))&&xo(s,l,h)}function Fl(s,l,h){var C=s[l];(!(dt.call(s,l)&&Fr(C,h))||h===n&&!(l in s))&&xo(s,l,h)}function Qd(s,l){for(var h=s.length;h--;)if(Fr(s[h][0],l))return h;return-1}function nne(s,l,h,C){return ti(s,function(I,F,B){l(C,I,h(I),B)}),C}function SO(s,l){return s&&qr(l,$t(l),s)}function rne(s,l){return s&&qr(l,Ln(l),s)}function xo(s,l,h){l=="__proto__"&&Hd?Hd(s,l,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[l]=h}function T0(s,l){for(var h=-1,C=l.length,I=oe(C),F=s==null;++h<C;)I[h]=F?n:iv(s,l[h]);return I}function Hi(s,l,h){return s===s&&(h!==n&&(s=s<=h?s:h),l!==n&&(s=s>=l?s:l)),s}function wr(s,l,h,C,I,F){var B,z=l&g,Q=l&v,ae=l&y;if(h&&(B=I?h(s,C,I,F):h(s)),B!==n)return B;if(!jt(s))return s;var le=ze(s);if(le){if(B=Gne(s),!z)return Rn(s,B)}else{var ce=yn(s),xe=ce==pe||ce==Ke;if(ii(s))return KO(s,z);if(ce==It||ce==he||xe&&!I){if(B=Q||xe?{}:fP(s),!z)return Q?_ne(s,rne(B,s)):Fne(s,SO(B,s))}else{if(!mt[ce])return I?s:{};B=Yne(s,ce,z)}}F||(F=new Mr);var Ae=F.get(s);if(Ae)return Ae;F.set(s,B),WP(s)?s.forEach(function(Me){B.add(wr(Me,l,h,Me,s,F))}):NP(s)&&s.forEach(function(Me,Qe){B.set(Qe,wr(Me,l,h,Qe,s,F))});var ke=ae?Q?G0:H0:Q?Ln:$t,Ye=le?n:ke(s);return br(Ye||s,function(Me,Qe){Ye&&(Qe=Me,Me=s[Qe]),Fl(B,Qe,wr(Me,l,h,Qe,s,F))}),B}function one(s){var l=$t(s);return function(h){return EO(h,s,l)}}function EO(s,l,h){var C=h.length;if(s==null)return!C;for(s=ft(s);C--;){var I=h[C],F=l[I],B=s[I];if(B===n&&!(I in s)||!F(B))return!1}return!0}function TO(s,l,h){if(typeof s!="function")throw new xr(a);return Vl(function(){s.apply(n,h)},l)}function _l(s,l,h,C){var I=-1,F=Fd,B=!0,z=s.length,Q=[],ae=l.length;if(!z)return Q;h&&(l=Tt(l,Jn(h))),C?(F=d0,B=!1):l.length>=o&&(F=Il,B=!1,l=new Ui(l));e:for(;++I<z;){var le=s[I],ce=h==null?le:h(le);if(le=C||le!==0?le:0,B&&ce===ce){for(var xe=ae;xe--;)if(l[xe]===ce)continue e;Q.push(le)}else F(l,ce,C)||Q.push(le)}return Q}var ti=qO(Jr),AO=qO(I0,!0);function ine(s,l){var h=!0;return ti(s,function(C,I,F){return h=!!l(C,I,F),h}),h}function Jd(s,l,h){for(var C=-1,I=s.length;++C<I;){var F=s[C],B=l(F);if(B!=null&&(z===n?B===B&&!$n(B):h(B,z)))var z=B,Q=F}return Q}function sne(s,l,h,C){var I=s.length;for(h=Ge(h),h<0&&(h=-h>I?0:I+h),C=C===n||C>I?I:Ge(C),C<0&&(C+=I),C=h>C?0:UP(C);h<C;)s[h++]=l;return s}function IO(s,l){var h=[];return ti(s,function(C,I,F){l(C,I,F)&&h.push(C)}),h}function ln(s,l,h,C,I){var F=-1,B=s.length;for(h||(h=Xne),I||(I=[]);++F<B;){var z=s[F];l>0&&h(z)?l>1?ln(z,l-1,h,C,I):qo(I,z):C||(I[I.length]=z)}return I}var A0=$O(),OO=$O(!0);function Jr(s,l){return s&&A0(s,l,$t)}function I0(s,l){return s&&OO(s,l,$t)}function qd(s,l){return Jo(l,function(h){return Eo(s[h])})}function Gi(s,l){l=ri(l,s);for(var h=0,C=l.length;s!=null&&h<C;)s=s[$r(l[h++])];return h&&h==C?s:n}function PO(s,l,h){var C=l(s);return ze(s)?C:qo(C,h(s))}function Sn(s){return s==null?s===n?Kt:gn:Wi&&Wi in ft(s)?zne(s):tre(s)}function O0(s,l){return s>l}function ane(s,l){return s!=null&&dt.call(s,l)}function lne(s,l){return s!=null&&l in ft(s)}function cne(s,l,h){return s>=vn(l,h)&&s<Jt(l,h)}function P0(s,l,h){for(var C=h?d0:Fd,I=s[0].length,F=s.length,B=F,z=oe(F),Q=1/0,ae=[];B--;){var le=s[B];B&&l&&(le=Tt(le,Jn(l))),Q=vn(le.length,Q),z[B]=!h&&(l||I>=120&&le.length>=120)?new Ui(B&&le):n}le=s[0];var ce=-1,xe=z[0];e:for(;++ce<I&&ae.length<Q;){var Ae=le[ce],ke=l?l(Ae):Ae;if(Ae=h||Ae!==0?Ae:0,!(xe?Il(xe,ke):C(ae,ke,h))){for(B=F;--B;){var Ye=z[B];if(!(Ye?Il(Ye,ke):C(s[B],ke,h)))continue e}xe&&xe.push(ke),ae.push(Ae)}}return ae}function une(s,l,h,C){return Jr(s,function(I,F,B){l(C,h(I),F,B)}),C}function Rl(s,l,h){l=ri(l,s),s=mP(s,l);var C=s==null?s:s[$r(Er(l))];return C==null?n:Qn(C,s,h)}function jO(s){return Rt(s)&&Sn(s)==he}function dne(s){return Rt(s)&&Sn(s)==Le}function fne(s){return Rt(s)&&Sn(s)==ye}function Dl(s,l,h,C,I){return s===l?!0:s==null||l==null||!Rt(s)&&!Rt(l)?s!==s&&l!==l:pne(s,l,h,C,Dl,I)}function pne(s,l,h,C,I,F){var B=ze(s),z=ze(l),Q=B?me:yn(s),ae=z?me:yn(l);Q=Q==he?It:Q,ae=ae==he?It:ae;var le=Q==It,ce=ae==It,xe=Q==ae;if(xe&&ii(s)){if(!ii(l))return!1;B=!0,le=!1}if(xe&&!le)return F||(F=new Mr),B||aa(s)?cP(s,l,h,C,I,F):Vne(s,l,Q,h,C,I,F);if(!(h&b)){var Ae=le&&dt.call(s,"__wrapped__"),ke=ce&&dt.call(l,"__wrapped__");if(Ae||ke){var Ye=Ae?s.value():s,Me=ke?l.value():l;return F||(F=new Mr),I(Ye,Me,h,C,F)}}return xe?(F||(F=new Mr),Wne(s,l,h,C,I,F)):!1}function hne(s){return Rt(s)&&yn(s)==ve}function j0(s,l,h,C){var I=h.length,F=I,B=!C;if(s==null)return!F;for(s=ft(s);I--;){var z=h[I];if(B&&z[2]?z[1]!==s[z[0]]:!(z[0]in s))return!1}for(;++I<F;){z=h[I];var Q=z[0],ae=s[Q],le=z[1];if(B&&z[2]){if(ae===n&&!(Q in s))return!1}else{var ce=new Mr;if(C)var xe=C(ae,le,Q,s,l,ce);if(!(xe===n?Dl(le,ae,b|x,C,ce):xe))return!1}}return!0}function kO(s){if(!jt(s)||Qne(s))return!1;var l=Eo(s)?hte:r0;return l.test(Ki(s))}function gne(s){return Rt(s)&&Sn(s)==Ot}function mne(s){return Rt(s)&&yn(s)==xt}function vne(s){return Rt(s)&&mf(s.length)&&!!wt[Sn(s)]}function MO(s){return typeof s=="function"?s:s==null?Bn:typeof s=="object"?ze(s)?RO(s[0],s[1]):_O(s):ej(s)}function k0(s){if(!Nl(s))return xte(s);var l=[];for(var h in ft(s))dt.call(s,h)&&h!="constructor"&&l.push(h);return l}function yne(s){if(!jt(s))return ere(s);var l=Nl(s),h=[];for(var C in s)C=="constructor"&&(l||!dt.call(s,C))||h.push(C);return h}function M0(s,l){return s<l}function FO(s,l){var h=-1,C=Dn(s)?oe(s.length):[];return ti(s,function(I,F,B){C[++h]=l(I,F,B)}),C}function _O(s){var l=K0(s);return l.length==1&&l[0][2]?hP(l[0][0],l[0][1]):function(h){return h===s||j0(h,s,l)}}function RO(s,l){return Z0(s)&&pP(l)?hP($r(s),l):function(h){var C=iv(h,s);return C===n&&C===l?sv(h,s):Dl(l,C,b|x)}}function $d(s,l,h,C,I){s!==l&&A0(l,function(F,B){if(I||(I=new Mr),jt(F))bne(s,l,B,h,$d,C,I);else{var z=C?C(J0(s,B),F,B+"",s,l,I):n;z===n&&(z=F),E0(s,B,z)}},Ln)}function bne(s,l,h,C,I,F,B){var z=J0(s,h),Q=J0(l,h),ae=B.get(Q);if(ae){E0(s,h,ae);return}var le=F?F(z,Q,h+"",s,l,B):n,ce=le===n;if(ce){var xe=ze(Q),Ae=!xe&&ii(Q),ke=!xe&&!Ae&&aa(Q);le=Q,xe||Ae||ke?ze(z)?le=z:Nt(z)?le=Rn(z):Ae?(ce=!1,le=KO(Q,!0)):ke?(ce=!1,le=XO(Q,!0)):le=[]:Wl(Q)||Xi(Q)?(le=z,Xi(z)?le=HP(z):(!jt(z)||Eo(z))&&(le=fP(Q))):ce=!1}ce&&(B.set(Q,le),I(le,Q,C,F,B),B.delete(Q)),E0(s,h,le)}function DO(s,l){var h=s.length;if(h)return l+=l<0?h:0,So(l,h)?s[l]:n}function LO(s,l,h){l.length?l=Tt(l,function(F){return ze(F)?function(B){return Gi(B,F.length===1?F[0]:F)}:F}):l=[Bn];var C=-1;l=Tt(l,Jn(je()));var I=FO(s,function(F,B,z){var Q=Tt(l,function(ae){return ae(F)});return{criteria:Q,index:++C,value:F}});return Yee(I,function(F,B){return Mne(F,B,h)})}function xne(s,l){return BO(s,l,function(h,C){return sv(s,C)})}function BO(s,l,h){for(var C=-1,I=l.length,F={};++C<I;){var B=l[C],z=Gi(s,B);h(z,B)&&Ll(F,ri(B,s),z)}return F}function Cne(s){return function(l){return Gi(l,s)}}function F0(s,l,h,C){var I=C?Gee:Qs,F=-1,B=l.length,z=s;for(s===l&&(l=Rn(l)),h&&(z=Tt(s,Jn(h)));++F<B;)for(var Q=0,ae=l[F],le=h?h(ae):ae;(Q=I(z,le,Q,C))>-1;)z!==s&&Ud.call(z,Q,1),Ud.call(s,Q,1);return s}function NO(s,l){for(var h=s?l.length:0,C=h-1;h--;){var I=l[h];if(h==C||I!==F){var F=I;So(I)?Ud.call(s,I,1):L0(s,I)}}return s}function _0(s,l){return s+Yd(bO()*(l-s+1))}function wne(s,l,h,C){for(var I=-1,F=Jt(Gd((l-s)/(h||1)),0),B=oe(F);F--;)B[C?F:++I]=s,s+=h;return B}function R0(s,l){var h="";if(!s||l<1||l>W)return h;do l%2&&(h+=s),l=Yd(l/2),l&&(s+=s);while(l);return h}function Xe(s,l){return q0(gP(s,l,Bn),s+"")}function Sne(s){return wO(la(s))}function Ene(s,l){var h=la(s);return uf(h,Hi(l,0,h.length))}function Ll(s,l,h,C){if(!jt(s))return s;l=ri(l,s);for(var I=-1,F=l.length,B=F-1,z=s;z!=null&&++I<F;){var Q=$r(l[I]),ae=h;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return s;if(I!=B){var le=z[Q];ae=C?C(le,Q,z):n,ae===n&&(ae=jt(le)?le:So(l[I+1])?[]:{})}Fl(z,Q,ae),z=z[Q]}return s}var VO=Kd?function(s,l){return Kd.set(s,l),s}:Bn,Tne=Hd?function(s,l){return Hd(s,"toString",{configurable:!0,enumerable:!1,value:lv(l),writable:!0})}:Bn;function Ane(s){return uf(la(s))}function Sr(s,l,h){var C=-1,I=s.length;l<0&&(l=-l>I?0:I+l),h=h>I?I:h,h<0&&(h+=I),I=l>h?0:h-l>>>0,l>>>=0;for(var F=oe(I);++C<I;)F[C]=s[C+l];return F}function Ine(s,l){var h;return ti(s,function(C,I,F){return h=l(C,I,F),!h}),!!h}function ef(s,l,h){var C=0,I=s==null?C:s.length;if(typeof l=="number"&&l===l&&I<=ge){for(;C<I;){var F=C+I>>>1,B=s[F];B!==null&&!$n(B)&&(h?B<=l:B<l)?C=F+1:I=F}return I}return D0(s,l,Bn,h)}function D0(s,l,h,C){var I=0,F=s==null?0:s.length;if(F===0)return 0;l=h(l);for(var B=l!==l,z=l===null,Q=$n(l),ae=l===n;I<F;){var le=Yd((I+F)/2),ce=h(s[le]),xe=ce!==n,Ae=ce===null,ke=ce===ce,Ye=$n(ce);if(B)var Me=C||ke;else ae?Me=ke&&(C||xe):z?Me=ke&&xe&&(C||!Ae):Q?Me=ke&&xe&&!Ae&&(C||!Ye):Ae||Ye?Me=!1:Me=C?ce<=l:ce<l;Me?I=le+1:F=le}return vn(F,de)}function WO(s,l){for(var h=-1,C=s.length,I=0,F=[];++h<C;){var B=s[h],z=l?l(B):B;if(!h||!Fr(z,Q)){var Q=z;F[I++]=B===0?0:B}}return F}function zO(s){return typeof s=="number"?s:$n(s)?U:+s}function qn(s){if(typeof s=="string")return s;if(ze(s))return Tt(s,qn)+"";if($n(s))return xO?xO.call(s):"";var l=s+"";return l=="0"&&1/s==-$?"-0":l}function ni(s,l,h){var C=-1,I=Fd,F=s.length,B=!0,z=[],Q=z;if(h)B=!1,I=d0;else if(F>=o){var ae=l?null:Bne(s);if(ae)return Rd(ae);B=!1,I=Il,Q=new Ui}else Q=l?[]:z;e:for(;++C<F;){var le=s[C],ce=l?l(le):le;if(le=h||le!==0?le:0,B&&ce===ce){for(var xe=Q.length;xe--;)if(Q[xe]===ce)continue e;l&&Q.push(ce),z.push(le)}else I(Q,ce,h)||(Q!==z&&Q.push(ce),z.push(le))}return z}function L0(s,l){return l=ri(l,s),s=mP(s,l),s==null||delete s[$r(Er(l))]}function UO(s,l,h,C){return Ll(s,l,h(Gi(s,l)),C)}function tf(s,l,h,C){for(var I=s.length,F=C?I:-1;(C?F--:++F<I)&&l(s[F],F,s););return h?Sr(s,C?0:F,C?F+1:I):Sr(s,C?F+1:0,C?I:F)}function HO(s,l){var h=s;return h instanceof Je&&(h=h.value()),f0(l,function(C,I){return I.func.apply(I.thisArg,qo([C],I.args))},h)}function B0(s,l,h){var C=s.length;if(C<2)return C?ni(s[0]):[];for(var I=-1,F=oe(C);++I<C;)for(var B=s[I],z=-1;++z<C;)z!=I&&(F[I]=_l(F[I]||B,s[z],l,h));return ni(ln(F,1),l,h)}function GO(s,l,h){for(var C=-1,I=s.length,F=l.length,B={};++C<I;){var z=C<F?l[C]:n;h(B,s[C],z)}return B}function N0(s){return Nt(s)?s:[]}function V0(s){return typeof s=="function"?s:Bn}function ri(s,l){return ze(s)?s:Z0(s,l)?[s]:xP(ct(s))}var One=Xe;function oi(s,l,h){var C=s.length;return h=h===n?C:h,!l&&h>=C?s:Sr(s,l,h)}var YO=gte||function(s){return an.clearTimeout(s)};function KO(s,l){if(l)return s.slice();var h=s.length,C=hO?hO(h):new s.constructor(h);return s.copy(C),C}function W0(s){var l=new s.constructor(s.byteLength);return new Wd(l).set(new Wd(s)),l}function Pne(s,l){var h=l?W0(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function jne(s){var l=new s.constructor(s.source,Pd.exec(s));return l.lastIndex=s.lastIndex,l}function kne(s){return Ml?ft(Ml.call(s)):{}}function XO(s,l){var h=l?W0(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function ZO(s,l){if(s!==l){var h=s!==n,C=s===null,I=s===s,F=$n(s),B=l!==n,z=l===null,Q=l===l,ae=$n(l);if(!z&&!ae&&!F&&s>l||F&&B&&Q&&!z&&!ae||C&&B&&Q||!h&&Q||!I)return 1;if(!C&&!F&&!ae&&s<l||ae&&h&&I&&!C&&!F||z&&h&&I||!B&&I||!Q)return-1}return 0}function Mne(s,l,h){for(var C=-1,I=s.criteria,F=l.criteria,B=I.length,z=h.length;++C<B;){var Q=ZO(I[C],F[C]);if(Q){if(C>=z)return Q;var ae=h[C];return Q*(ae=="desc"?-1:1)}}return s.index-l.index}function QO(s,l,h,C){for(var I=-1,F=s.length,B=h.length,z=-1,Q=l.length,ae=Jt(F-B,0),le=oe(Q+ae),ce=!C;++z<Q;)le[z]=l[z];for(;++I<B;)(ce||I<F)&&(le[h[I]]=s[I]);for(;ae--;)le[z++]=s[I++];return le}function JO(s,l,h,C){for(var I=-1,F=s.length,B=-1,z=h.length,Q=-1,ae=l.length,le=Jt(F-z,0),ce=oe(le+ae),xe=!C;++I<le;)ce[I]=s[I];for(var Ae=I;++Q<ae;)ce[Ae+Q]=l[Q];for(;++B<z;)(xe||I<F)&&(ce[Ae+h[B]]=s[I++]);return ce}function Rn(s,l){var h=-1,C=s.length;for(l||(l=oe(C));++h<C;)l[h]=s[h];return l}function qr(s,l,h,C){var I=!h;h||(h={});for(var F=-1,B=l.length;++F<B;){var z=l[F],Q=C?C(h[z],s[z],z,h,s):n;Q===n&&(Q=s[z]),I?xo(h,z,Q):Fl(h,z,Q)}return h}function Fne(s,l){return qr(s,X0(s),l)}function _ne(s,l){return qr(s,uP(s),l)}function nf(s,l){return function(h,C){var I=ze(h)?Nee:nne,F=l?l():{};return I(h,s,je(C,2),F)}}function oa(s){return Xe(function(l,h){var C=-1,I=h.length,F=I>1?h[I-1]:n,B=I>2?h[2]:n;for(F=s.length>3&&typeof F=="function"?(I--,F):n,B&&En(h[0],h[1],B)&&(F=I<3?n:F,I=1),l=ft(l);++C<I;){var z=h[C];z&&s(l,z,C,F)}return l})}function qO(s,l){return function(h,C){if(h==null)return h;if(!Dn(h))return s(h,C);for(var I=h.length,F=l?I:-1,B=ft(h);(l?F--:++F<I)&&C(B[F],F,B)!==!1;);return h}}function $O(s){return function(l,h,C){for(var I=-1,F=ft(l),B=C(l),z=B.length;z--;){var Q=B[s?z:++I];if(h(F[Q],Q,F)===!1)break}return l}}function Rne(s,l,h){var C=l&w,I=Bl(s);function F(){var B=this&&this!==an&&this instanceof F?I:s;return B.apply(C?h:this,arguments)}return F}function eP(s){return function(l){l=ct(l);var h=Js(l)?kr(l):n,C=h?h[0]:l.charAt(0),I=h?oi(h,1).join(""):l.slice(1);return C[s]()+I}}function ia(s){return function(l){return f0(qP(JP(l).replace(Tee,"")),s,"")}}function Bl(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var h=ra(s.prototype),C=s.apply(h,l);return jt(C)?C:h}}function Dne(s,l,h){var C=Bl(s);function I(){for(var F=arguments.length,B=oe(F),z=F,Q=sa(I);z--;)B[z]=arguments[z];var ae=F<3&&B[0]!==Q&&B[F-1]!==Q?[]:$o(B,Q);if(F-=ae.length,F<h)return iP(s,l,rf,I.placeholder,n,B,ae,n,n,h-F);var le=this&&this!==an&&this instanceof I?C:s;return Qn(le,this,B)}return I}function tP(s){return function(l,h,C){var I=ft(l);if(!Dn(l)){var F=je(h,3);l=$t(l),h=function(z){return F(I[z],z,I)}}var B=s(l,h,C);return B>-1?I[F?l[B]:B]:n}}function nP(s){return wo(function(l){var h=l.length,C=h,I=Cr.prototype.thru;for(s&&l.reverse();C--;){var F=l[C];if(typeof F!="function")throw new xr(a);if(I&&!B&&lf(F)=="wrapper")var B=new Cr([],!0)}for(C=B?C:h;++C<h;){F=l[C];var z=lf(F),Q=z=="wrapper"?Y0(F):n;Q&&Q0(Q[0])&&Q[1]==(R|T|O|N)&&!Q[4].length&&Q[9]==1?B=B[lf(Q[0])].apply(B,Q[3]):B=F.length==1&&Q0(F)?B[z]():B.thru(F)}return function(){var ae=arguments,le=ae[0];if(B&&ae.length==1&&ze(le))return B.plant(le).value();for(var ce=0,xe=h?l[ce].apply(this,ae):le;++ce<h;)xe=l[ce].call(this,xe);return xe}})}function rf(s,l,h,C,I,F,B,z,Q,ae){var le=l&R,ce=l&w,xe=l&A,Ae=l&(T|P),ke=l&Y,Ye=xe?n:Bl(s);function Me(){for(var Qe=arguments.length,qe=oe(Qe),er=Qe;er--;)qe[er]=arguments[er];if(Ae)var Tn=sa(Me),tr=Xee(qe,Tn);if(C&&(qe=QO(qe,C,I,Ae)),F&&(qe=JO(qe,F,B,Ae)),Qe-=tr,Ae&&Qe<ae){var Vt=$o(qe,Tn);return iP(s,l,rf,Me.placeholder,h,qe,Vt,z,Q,ae-Qe)}var _r=ce?h:this,Ao=xe?_r[s]:s;return Qe=qe.length,z?qe=nre(qe,z):ke&&Qe>1&&qe.reverse(),le&&Q<Qe&&(qe.length=Q),this&&this!==an&&this instanceof Me&&(Ao=Ye||Bl(Ao)),Ao.apply(_r,qe)}return Me}function rP(s,l){return function(h,C){return une(h,s,l(C),{})}}function of(s,l){return function(h,C){var I;if(h===n&&C===n)return l;if(h!==n&&(I=h),C!==n){if(I===n)return C;typeof h=="string"||typeof C=="string"?(h=qn(h),C=qn(C)):(h=zO(h),C=zO(C)),I=s(h,C)}return I}}function z0(s){return wo(function(l){return l=Tt(l,Jn(je())),Xe(function(h){var C=this;return s(l,function(I){return Qn(I,C,h)})})})}function sf(s,l){l=l===n?" ":qn(l);var h=l.length;if(h<2)return h?R0(l,s):l;var C=R0(l,Gd(s/qs(l)));return Js(l)?oi(kr(C),0,s).join(""):C.slice(0,s)}function Lne(s,l,h,C){var I=l&w,F=Bl(s);function B(){for(var z=-1,Q=arguments.length,ae=-1,le=C.length,ce=oe(le+Q),xe=this&&this!==an&&this instanceof B?F:s;++ae<le;)ce[ae]=C[ae];for(;Q--;)ce[ae++]=arguments[++z];return Qn(xe,I?h:this,ce)}return B}function oP(s){return function(l,h,C){return C&&typeof C!="number"&&En(l,h,C)&&(h=C=n),l=To(l),h===n?(h=l,l=0):h=To(h),C=C===n?l<h?1:-1:To(C),wne(l,h,C,s)}}function af(s){return function(l,h){return typeof l=="string"&&typeof h=="string"||(l=Tr(l),h=Tr(h)),s(l,h)}}function iP(s,l,h,C,I,F,B,z,Q,ae){var le=l&T,ce=le?B:n,xe=le?n:B,Ae=le?F:n,ke=le?n:F;l|=le?O:_,l&=~(le?_:O),l&j||(l&=~(w|A));var Ye=[s,l,I,Ae,ce,ke,xe,z,Q,ae],Me=h.apply(n,Ye);return Q0(s)&&vP(Me,Ye),Me.placeholder=C,yP(Me,s,l)}function U0(s){var l=Qt[s];return function(h,C){if(h=Tr(h),C=C==null?0:vn(Ge(C),292),C&&yO(h)){var I=(ct(h)+"e").split("e"),F=l(I[0]+"e"+(+I[1]+C));return I=(ct(F)+"e").split("e"),+(I[0]+"e"+(+I[1]-C))}return l(h)}}var Bne=ta&&1/Rd(new ta([,-0]))[1]==$?function(s){return new ta(s)}:dv;function sP(s){return function(l){var h=yn(l);return h==ve?b0(l):h==xt?tte(l):Kee(l,s(l))}}function Co(s,l,h,C,I,F,B,z){var Q=l&A;if(!Q&&typeof s!="function")throw new xr(a);var ae=C?C.length:0;if(ae||(l&=~(O|_),C=I=n),B=B===n?B:Jt(Ge(B),0),z=z===n?z:Ge(z),ae-=I?I.length:0,l&_){var le=C,ce=I;C=I=n}var xe=Q?n:Y0(s),Ae=[s,l,h,C,I,le,ce,F,B,z];if(xe&&$ne(Ae,xe),s=Ae[0],l=Ae[1],h=Ae[2],C=Ae[3],I=Ae[4],z=Ae[9]=Ae[9]===n?Q?0:s.length:Jt(Ae[9]-ae,0),!z&&l&(T|P)&&(l&=~(T|P)),!l||l==w)var ke=Rne(s,l,h);else l==T||l==P?ke=Dne(s,l,z):(l==O||l==(w|O))&&!I.length?ke=Lne(s,l,h,C):ke=rf.apply(n,Ae);var Ye=xe?VO:vP;return yP(Ye(ke,Ae),s,l)}function aP(s,l,h,C){return s===n||Fr(s,ea[h])&&!dt.call(C,h)?l:s}function lP(s,l,h,C,I,F){return jt(s)&&jt(l)&&(F.set(l,s),$d(s,l,n,lP,F),F.delete(l)),s}function Nne(s){return Wl(s)?n:s}function cP(s,l,h,C,I,F){var B=h&b,z=s.length,Q=l.length;if(z!=Q&&!(B&&Q>z))return!1;var ae=F.get(s),le=F.get(l);if(ae&&le)return ae==l&&le==s;var ce=-1,xe=!0,Ae=h&x?new Ui:n;for(F.set(s,l),F.set(l,s);++ce<z;){var ke=s[ce],Ye=l[ce];if(C)var Me=B?C(Ye,ke,ce,l,s,F):C(ke,Ye,ce,s,l,F);if(Me!==n){if(Me)continue;xe=!1;break}if(Ae){if(!p0(l,function(Qe,qe){if(!Il(Ae,qe)&&(ke===Qe||I(ke,Qe,h,C,F)))return Ae.push(qe)})){xe=!1;break}}else if(!(ke===Ye||I(ke,Ye,h,C,F))){xe=!1;break}}return F.delete(s),F.delete(l),xe}function Vne(s,l,h,C,I,F,B){switch(h){case Oe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case Le:return!(s.byteLength!=l.byteLength||!F(new Wd(s),new Wd(l)));case be:case ye:case $e:return Fr(+s,+l);case Ie:return s.name==l.name&&s.message==l.message;case Ot:case qt:return s==l+"";case ve:var z=b0;case xt:var Q=C&b;if(z||(z=Rd),s.size!=l.size&&!Q)return!1;var ae=B.get(s);if(ae)return ae==l;C|=x,B.set(s,l);var le=cP(z(s),z(l),C,I,F,B);return B.delete(s),le;case Ct:if(Ml)return Ml.call(s)==Ml.call(l)}return!1}function Wne(s,l,h,C,I,F){var B=h&b,z=H0(s),Q=z.length,ae=H0(l),le=ae.length;if(Q!=le&&!B)return!1;for(var ce=Q;ce--;){var xe=z[ce];if(!(B?xe in l:dt.call(l,xe)))return!1}var Ae=F.get(s),ke=F.get(l);if(Ae&&ke)return Ae==l&&ke==s;var Ye=!0;F.set(s,l),F.set(l,s);for(var Me=B;++ce<Q;){xe=z[ce];var Qe=s[xe],qe=l[xe];if(C)var er=B?C(qe,Qe,xe,l,s,F):C(Qe,qe,xe,s,l,F);if(!(er===n?Qe===qe||I(Qe,qe,h,C,F):er)){Ye=!1;break}Me||(Me=xe=="constructor")}if(Ye&&!Me){var Tn=s.constructor,tr=l.constructor;Tn!=tr&&"constructor"in s&&"constructor"in l&&!(typeof Tn=="function"&&Tn instanceof Tn&&typeof tr=="function"&&tr instanceof tr)&&(Ye=!1)}return F.delete(s),F.delete(l),Ye}function wo(s){return q0(gP(s,n,EP),s+"")}function H0(s){return PO(s,$t,X0)}function G0(s){return PO(s,Ln,uP)}var Y0=Kd?function(s){return Kd.get(s)}:dv;function lf(s){for(var l=s.name+"",h=na[l],C=dt.call(na,l)?h.length:0;C--;){var I=h[C],F=I.func;if(F==null||F==s)return I.name}return l}function sa(s){var l=dt.call(M,"placeholder")?M:s;return l.placeholder}function je(){var s=M.iteratee||cv;return s=s===cv?MO:s,arguments.length?s(arguments[0],arguments[1]):s}function cf(s,l){var h=s.__data__;return Zne(l)?h[typeof l=="string"?"string":"hash"]:h.map}function K0(s){for(var l=$t(s),h=l.length;h--;){var C=l[h],I=s[C];l[h]=[C,I,pP(I)]}return l}function Yi(s,l){var h=qee(s,l);return kO(h)?h:n}function zne(s){var l=dt.call(s,Wi),h=s[Wi];try{s[Wi]=n;var C=!0}catch{}var I=Nd.call(s);return C&&(l?s[Wi]=h:delete s[Wi]),I}var X0=C0?function(s){return s==null?[]:(s=ft(s),Jo(C0(s),function(l){return mO.call(s,l)}))}:fv,uP=C0?function(s){for(var l=[];s;)qo(l,X0(s)),s=zd(s);return l}:fv,yn=Sn;(w0&&yn(new w0(new ArrayBuffer(1)))!=Oe||Pl&&yn(new Pl)!=ve||S0&&yn(S0.resolve())!=bt||ta&&yn(new ta)!=xt||jl&&yn(new jl)!=Pt)&&(yn=function(s){var l=Sn(s),h=l==It?s.constructor:n,C=h?Ki(h):"";if(C)switch(C){case Ete:return Oe;case Tte:return ve;case Ate:return bt;case Ite:return xt;case Ote:return Pt}return l});function Une(s,l,h){for(var C=-1,I=h.length;++C<I;){var F=h[C],B=F.size;switch(F.type){case"drop":s+=B;break;case"dropRight":l-=B;break;case"take":l=vn(l,s+B);break;case"takeRight":s=Jt(s,l-B);break}}return{start:s,end:l}}function Hne(s){var l=s.match(Ni);return l?l[1].split(Al):[]}function dP(s,l,h){l=ri(l,s);for(var C=-1,I=l.length,F=!1;++C<I;){var B=$r(l[C]);if(!(F=s!=null&&h(s,B)))break;s=s[B]}return F||++C!=I?F:(I=s==null?0:s.length,!!I&&mf(I)&&So(B,I)&&(ze(s)||Xi(s)))}function Gne(s){var l=s.length,h=new s.constructor(l);return l&&typeof s[0]=="string"&&dt.call(s,"index")&&(h.index=s.index,h.input=s.input),h}function fP(s){return typeof s.constructor=="function"&&!Nl(s)?ra(zd(s)):{}}function Yne(s,l,h){var C=s.constructor;switch(l){case Le:return W0(s);case be:case ye:return new C(+s);case Oe:return Pne(s,h);case Ce:case gt:case Xt:case We:case Pe:case sn:case vr:case jr:case Li:return XO(s,h);case ve:return new C;case $e:case qt:return new C(s);case Ot:return jne(s);case xt:return new C;case Ct:return kne(s)}}function Kne(s,l){var h=l.length;if(!h)return s;var C=h-1;return l[C]=(h>1?"& ":"")+l[C],l=l.join(h>2?", ":" "),s.replace(e0,`{
202
+ */zu.exports,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,v=2,y=4,b=1,x=2,w=1,A=2,j=4,T=8,P=16,O=32,_=64,R=128,N=256,Y=512,X=30,G="...",re=800,ne=16,Z=1,J=2,V=3,$=1/0,W=9007199254740991,ie=17976931348623157e292,U=NaN,ee=4294967295,de=ee-1,ge=ee>>>1,fe=[["ary",R],["bind",w],["bindKey",A],["curry",T],["curryRight",P],["flip",Y],["partial",O],["partialRight",_],["rearg",N]],he="[object Arguments]",me="[object Array]",Se="[object AsyncFunction]",be="[object Boolean]",ye="[object Date]",we="[object DOMException]",Ie="[object Error]",pe="[object Function]",Ke="[object GeneratorFunction]",ve="[object Map]",$e="[object Number]",gn="[object Null]",It="[object Object]",bt="[object Promise]",Zn="[object Proxy]",Ot="[object RegExp]",xt="[object Set]",qt="[object String]",Ct="[object Symbol]",Kt="[object Undefined]",Pt="[object WeakMap]",_e="[object WeakSet]",Le="[object ArrayBuffer]",Oe="[object DataView]",Ce="[object Float32Array]",gt="[object Float64Array]",Xt="[object Int8Array]",We="[object Int16Array]",Pe="[object Int32Array]",sn="[object Uint8Array]",vr="[object Uint8ClampedArray]",jr="[object Uint16Array]",Li="[object Uint32Array]",bd=/\b__p \+= '';/g,Zm=/\b(__p \+=) '' \+/g,Qm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xd=/&(?:amp|lt|gt|quot|#39);/g,El=/[&<>"']/g,Cd=RegExp(xd.source),wd=RegExp(El.source),Sd=/<%-([\s\S]+?)%>/g,Jm=/<%([\s\S]+?)%>/g,Ed=/<%=([\s\S]+?)%>/g,qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tl=/^\w*$/,$m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vo=/[\\^$.*+?()[\]{}|]/g,Al=RegExp(vo.source),mn=/^\s+/,Bi=/\s/,e0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ni=/\{\n\/\* \[wrapped with (.+)\] \*/,Il=/,? & /,Td=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ad=/[()=,{}\[\]\/\s]/,Id=/\\(\\)?/g,Od=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pd=/\w*$/,t0=/^[-+]0x[0-9a-f]+$/i,n0=/^0b[01]+$/i,r0=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,aee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jd=/($^)/,lee=/['\n\r\u2028\u2029\\]/g,kd="\\ud800-\\udfff",cee="\\u0300-\\u036f",uee="\\ufe20-\\ufe2f",dee="\\u20d0-\\u20ff",kI=cee+uee+dee,MI="\\u2700-\\u27bf",FI="a-z\\xdf-\\xf6\\xf8-\\xff",fee="\\xac\\xb1\\xd7\\xf7",pee="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hee="\\u2000-\\u206f",gee=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_I="A-Z\\xc0-\\xd6\\xd8-\\xde",RI="\\ufe0e\\ufe0f",DI=fee+pee+hee+gee,o0="['’]",mee="["+kd+"]",LI="["+DI+"]",Md="["+kI+"]",BI="\\d+",vee="["+MI+"]",NI="["+FI+"]",VI="[^"+kd+DI+BI+MI+FI+_I+"]",i0="\\ud83c[\\udffb-\\udfff]",yee="(?:"+Md+"|"+i0+")",WI="[^"+kd+"]",s0="(?:\\ud83c[\\udde6-\\uddff]){2}",a0="[\\ud800-\\udbff][\\udc00-\\udfff]",Zs="["+_I+"]",zI="\\u200d",UI="(?:"+NI+"|"+VI+")",bee="(?:"+Zs+"|"+VI+")",HI="(?:"+o0+"(?:d|ll|m|re|s|t|ve))?",GI="(?:"+o0+"(?:D|LL|M|RE|S|T|VE))?",YI=yee+"?",KI="["+RI+"]?",xee="(?:"+zI+"(?:"+[WI,s0,a0].join("|")+")"+KI+YI+")*",Cee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",XI=KI+YI+xee,See="(?:"+[vee,s0,a0].join("|")+")"+XI,Eee="(?:"+[WI+Md+"?",Md,s0,a0,mee].join("|")+")",Tee=RegExp(o0,"g"),Aee=RegExp(Md,"g"),l0=RegExp(i0+"(?="+i0+")|"+Eee+XI,"g"),Iee=RegExp([Zs+"?"+NI+"+"+HI+"(?="+[LI,Zs,"$"].join("|")+")",bee+"+"+GI+"(?="+[LI,Zs+UI,"$"].join("|")+")",Zs+"?"+UI+"+"+HI,Zs+"+"+GI,wee,Cee,BI,See].join("|"),"g"),Oee=RegExp("["+zI+kd+kI+RI+"]"),Pee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kee=-1,wt={};wt[Ce]=wt[gt]=wt[Xt]=wt[We]=wt[Pe]=wt[sn]=wt[vr]=wt[jr]=wt[Li]=!0,wt[he]=wt[me]=wt[Le]=wt[be]=wt[Oe]=wt[ye]=wt[Ie]=wt[pe]=wt[ve]=wt[$e]=wt[It]=wt[Ot]=wt[xt]=wt[qt]=wt[Pt]=!1;var mt={};mt[he]=mt[me]=mt[Le]=mt[Oe]=mt[be]=mt[ye]=mt[Ce]=mt[gt]=mt[Xt]=mt[We]=mt[Pe]=mt[ve]=mt[$e]=mt[It]=mt[Ot]=mt[xt]=mt[qt]=mt[Ct]=mt[sn]=mt[vr]=mt[jr]=mt[Li]=!0,mt[Ie]=mt[pe]=mt[Pt]=!1;var Mee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",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u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_ee={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ree={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dee=parseFloat,Lee=parseInt,ZI=typeof xn=="object"&&xn&&xn.Object===Object&&xn,Bee=typeof self=="object"&&self&&self.Object===Object&&self,an=ZI||Bee||Function("return this")(),c0=t&&!t.nodeType&&t,Vi=c0&&!0&&e&&!e.nodeType&&e,QI=Vi&&Vi.exports===c0,u0=QI&&ZI.process,yr=function(){try{var K=Vi&&Vi.require&&Vi.require("util").types;return K||u0&&u0.binding&&u0.binding("util")}catch{}}(),JI=yr&&yr.isArrayBuffer,qI=yr&&yr.isDate,$I=yr&&yr.isMap,eO=yr&&yr.isRegExp,tO=yr&&yr.isSet,nO=yr&&yr.isTypedArray;function Qn(K,se,oe){switch(oe.length){case 0:return K.call(se);case 1:return K.call(se,oe[0]);case 2:return K.call(se,oe[0],oe[1]);case 3:return K.call(se,oe[0],oe[1],oe[2])}return K.apply(se,oe)}function Nee(K,se,oe,Ee){for(var Ve=-1,ot=K==null?0:K.length;++Ve<ot;){var Qt=K[Ve];se(Ee,Qt,oe(Qt),K)}return Ee}function br(K,se){for(var oe=-1,Ee=K==null?0:K.length;++oe<Ee&&se(K[oe],oe,K)!==!1;);return K}function Vee(K,se){for(var oe=K==null?0:K.length;oe--&&se(K[oe],oe,K)!==!1;);return K}function rO(K,se){for(var oe=-1,Ee=K==null?0:K.length;++oe<Ee;)if(!se(K[oe],oe,K))return!1;return!0}function Jo(K,se){for(var oe=-1,Ee=K==null?0:K.length,Ve=0,ot=[];++oe<Ee;){var Qt=K[oe];se(Qt,oe,K)&&(ot[Ve++]=Qt)}return ot}function Fd(K,se){var oe=K==null?0:K.length;return!!oe&&Qs(K,se,0)>-1}function d0(K,se,oe){for(var Ee=-1,Ve=K==null?0:K.length;++Ee<Ve;)if(oe(se,K[Ee]))return!0;return!1}function Tt(K,se){for(var oe=-1,Ee=K==null?0:K.length,Ve=Array(Ee);++oe<Ee;)Ve[oe]=se(K[oe],oe,K);return Ve}function qo(K,se){for(var oe=-1,Ee=se.length,Ve=K.length;++oe<Ee;)K[Ve+oe]=se[oe];return K}function f0(K,se,oe,Ee){var Ve=-1,ot=K==null?0:K.length;for(Ee&&ot&&(oe=K[++Ve]);++Ve<ot;)oe=se(oe,K[Ve],Ve,K);return oe}function Wee(K,se,oe,Ee){var Ve=K==null?0:K.length;for(Ee&&Ve&&(oe=K[--Ve]);Ve--;)oe=se(oe,K[Ve],Ve,K);return oe}function p0(K,se){for(var oe=-1,Ee=K==null?0:K.length;++oe<Ee;)if(se(K[oe],oe,K))return!0;return!1}var zee=h0("length");function Uee(K){return K.split("")}function Hee(K){return K.match(Td)||[]}function oO(K,se,oe){var Ee;return oe(K,function(Ve,ot,Qt){if(se(Ve,ot,Qt))return Ee=ot,!1}),Ee}function _d(K,se,oe,Ee){for(var Ve=K.length,ot=oe+(Ee?1:-1);Ee?ot--:++ot<Ve;)if(se(K[ot],ot,K))return ot;return-1}function Qs(K,se,oe){return se===se?nte(K,se,oe):_d(K,iO,oe)}function Gee(K,se,oe,Ee){for(var Ve=oe-1,ot=K.length;++Ve<ot;)if(Ee(K[Ve],se))return Ve;return-1}function iO(K){return K!==K}function sO(K,se){var oe=K==null?0:K.length;return oe?m0(K,se)/oe:U}function h0(K){return function(se){return se==null?n:se[K]}}function g0(K){return function(se){return K==null?n:K[se]}}function aO(K,se,oe,Ee,Ve){return Ve(K,function(ot,Qt,ft){oe=Ee?(Ee=!1,ot):se(oe,ot,Qt,ft)}),oe}function Yee(K,se){var oe=K.length;for(K.sort(se);oe--;)K[oe]=K[oe].value;return K}function m0(K,se){for(var oe,Ee=-1,Ve=K.length;++Ee<Ve;){var ot=se(K[Ee]);ot!==n&&(oe=oe===n?ot:oe+ot)}return oe}function v0(K,se){for(var oe=-1,Ee=Array(K);++oe<K;)Ee[oe]=se(oe);return Ee}function Kee(K,se){return Tt(se,function(oe){return[oe,K[oe]]})}function lO(K){return K&&K.slice(0,fO(K)+1).replace(mn,"")}function Jn(K){return function(se){return K(se)}}function y0(K,se){return Tt(se,function(oe){return K[oe]})}function Ol(K,se){return K.has(se)}function cO(K,se){for(var oe=-1,Ee=K.length;++oe<Ee&&Qs(se,K[oe],0)>-1;);return oe}function uO(K,se){for(var oe=K.length;oe--&&Qs(se,K[oe],0)>-1;);return oe}function Xee(K,se){for(var oe=K.length,Ee=0;oe--;)K[oe]===se&&++Ee;return Ee}var Zee=g0(Mee),Qee=g0(Fee);function Jee(K){return"\\"+Ree[K]}function qee(K,se){return K==null?n:K[se]}function Js(K){return Oee.test(K)}function $ee(K){return Pee.test(K)}function ete(K){for(var se,oe=[];!(se=K.next()).done;)oe.push(se.value);return oe}function b0(K){var se=-1,oe=Array(K.size);return K.forEach(function(Ee,Ve){oe[++se]=[Ve,Ee]}),oe}function dO(K,se){return function(oe){return K(se(oe))}}function $o(K,se){for(var oe=-1,Ee=K.length,Ve=0,ot=[];++oe<Ee;){var Qt=K[oe];(Qt===se||Qt===p)&&(K[oe]=p,ot[Ve++]=oe)}return ot}function Rd(K){var se=-1,oe=Array(K.size);return K.forEach(function(Ee){oe[++se]=Ee}),oe}function tte(K){var se=-1,oe=Array(K.size);return K.forEach(function(Ee){oe[++se]=[Ee,Ee]}),oe}function nte(K,se,oe){for(var Ee=oe-1,Ve=K.length;++Ee<Ve;)if(K[Ee]===se)return Ee;return-1}function rte(K,se,oe){for(var Ee=oe+1;Ee--;)if(K[Ee]===se)return Ee;return Ee}function qs(K){return Js(K)?ite(K):zee(K)}function kr(K){return Js(K)?ste(K):Uee(K)}function fO(K){for(var se=K.length;se--&&Bi.test(K.charAt(se)););return se}var ote=g0(_ee);function ite(K){for(var se=l0.lastIndex=0;l0.test(K);)++se;return se}function ste(K){return K.match(l0)||[]}function ate(K){return K.match(Iee)||[]}var lte=function K(se){se=se==null?an:$s.defaults(an.Object(),se,$s.pick(an,jee));var oe=se.Array,Ee=se.Date,Ve=se.Error,ot=se.Function,Qt=se.Math,ft=se.Object,x0=se.RegExp,cte=se.String,xr=se.TypeError,Dd=oe.prototype,ute=ot.prototype,ea=ft.prototype,Ld=se["__core-js_shared__"],Bd=ute.toString,dt=ea.hasOwnProperty,dte=0,pO=function(){var s=/[^.]+$/.exec(Ld&&Ld.keys&&Ld.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Nd=ea.toString,fte=Bd.call(ft),pte=an._,hte=x0("^"+Bd.call(dt).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vd=QI?se.Buffer:n,ei=se.Symbol,Wd=se.Uint8Array,hO=Vd?Vd.allocUnsafe:n,zd=dO(ft.getPrototypeOf,ft),gO=ft.create,mO=ea.propertyIsEnumerable,Ud=Dd.splice,vO=ei?ei.isConcatSpreadable:n,Pl=ei?ei.iterator:n,Wi=ei?ei.toStringTag:n,Hd=function(){try{var s=Yi(ft,"defineProperty");return s({},"",{}),s}catch{}}(),gte=se.clearTimeout!==an.clearTimeout&&se.clearTimeout,mte=Ee&&Ee.now!==an.Date.now&&Ee.now,vte=se.setTimeout!==an.setTimeout&&se.setTimeout,Gd=Qt.ceil,Yd=Qt.floor,C0=ft.getOwnPropertySymbols,yte=Vd?Vd.isBuffer:n,yO=se.isFinite,bte=Dd.join,xte=dO(ft.keys,ft),Jt=Qt.max,vn=Qt.min,Cte=Ee.now,wte=se.parseInt,bO=Qt.random,Ste=Dd.reverse,w0=Yi(se,"DataView"),jl=Yi(se,"Map"),S0=Yi(se,"Promise"),ta=Yi(se,"Set"),kl=Yi(se,"WeakMap"),Ml=Yi(ft,"create"),Kd=kl&&new kl,na={},Ete=Ki(w0),Tte=Ki(jl),Ate=Ki(S0),Ite=Ki(ta),Ote=Ki(kl),Xd=ei?ei.prototype:n,Fl=Xd?Xd.valueOf:n,xO=Xd?Xd.toString:n;function M(s){if(Rt(s)&&!ze(s)&&!(s instanceof Je)){if(s instanceof Cr)return s;if(dt.call(s,"__wrapped__"))return CP(s)}return new Cr(s)}var ra=function(){function s(){}return function(l){if(!jt(l))return{};if(gO)return gO(l);s.prototype=l;var h=new s;return s.prototype=n,h}}();function Zd(){}function Cr(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}M.templateSettings={escape:Sd,evaluate:Jm,interpolate:Ed,variable:"",imports:{_:M}},M.prototype=Zd.prototype,M.prototype.constructor=M,Cr.prototype=ra(Zd.prototype),Cr.prototype.constructor=Cr;function Je(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function Pte(){var s=new Je(this.__wrapped__);return s.__actions__=Rn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Rn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Rn(this.__views__),s}function jte(){if(this.__filtered__){var s=new Je(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function kte(){var s=this.__wrapped__.value(),l=this.__dir__,h=ze(s),C=l<0,I=h?s.length:0,F=Une(0,I,this.__views__),B=F.start,z=F.end,Q=z-B,ae=C?z:B-1,le=this.__iteratees__,ce=le.length,xe=0,Ae=vn(Q,this.__takeCount__);if(!h||!C&&I==Q&&Ae==Q)return HO(s,this.__actions__);var ke=[];e:for(;Q--&&xe<Ae;){ae+=l;for(var Ye=-1,Me=s[ae];++Ye<ce;){var Qe=le[Ye],qe=Qe.iteratee,er=Qe.type,Tn=qe(Me);if(er==J)Me=Tn;else if(!Tn){if(er==Z)continue e;break e}}ke[xe++]=Me}return ke}Je.prototype=ra(Zd.prototype),Je.prototype.constructor=Je;function zi(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Mte(){this.__data__=Ml?Ml(null):{},this.size=0}function Fte(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function _te(s){var l=this.__data__;if(Ml){var h=l[s];return h===u?n:h}return dt.call(l,s)?l[s]:n}function Rte(s){var l=this.__data__;return Ml?l[s]!==n:dt.call(l,s)}function Dte(s,l){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=Ml&&l===n?u:l,this}zi.prototype.clear=Mte,zi.prototype.delete=Fte,zi.prototype.get=_te,zi.prototype.has=Rte,zi.prototype.set=Dte;function yo(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Lte(){this.__data__=[],this.size=0}function Bte(s){var l=this.__data__,h=Qd(l,s);if(h<0)return!1;var C=l.length-1;return h==C?l.pop():Ud.call(l,h,1),--this.size,!0}function Nte(s){var l=this.__data__,h=Qd(l,s);return h<0?n:l[h][1]}function Vte(s){return Qd(this.__data__,s)>-1}function Wte(s,l){var h=this.__data__,C=Qd(h,s);return C<0?(++this.size,h.push([s,l])):h[C][1]=l,this}yo.prototype.clear=Lte,yo.prototype.delete=Bte,yo.prototype.get=Nte,yo.prototype.has=Vte,yo.prototype.set=Wte;function bo(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function zte(){this.size=0,this.__data__={hash:new zi,map:new(jl||yo),string:new zi}}function Ute(s){var l=cf(this,s).delete(s);return this.size-=l?1:0,l}function Hte(s){return cf(this,s).get(s)}function Gte(s){return cf(this,s).has(s)}function Yte(s,l){var h=cf(this,s),C=h.size;return h.set(s,l),this.size+=h.size==C?0:1,this}bo.prototype.clear=zte,bo.prototype.delete=Ute,bo.prototype.get=Hte,bo.prototype.has=Gte,bo.prototype.set=Yte;function Ui(s){var l=-1,h=s==null?0:s.length;for(this.__data__=new bo;++l<h;)this.add(s[l])}function Kte(s){return this.__data__.set(s,u),this}function Xte(s){return this.__data__.has(s)}Ui.prototype.add=Ui.prototype.push=Kte,Ui.prototype.has=Xte;function Mr(s){var l=this.__data__=new yo(s);this.size=l.size}function Zte(){this.__data__=new yo,this.size=0}function Qte(s){var l=this.__data__,h=l.delete(s);return this.size=l.size,h}function Jte(s){return this.__data__.get(s)}function qte(s){return this.__data__.has(s)}function $te(s,l){var h=this.__data__;if(h instanceof yo){var C=h.__data__;if(!jl||C.length<o-1)return C.push([s,l]),this.size=++h.size,this;h=this.__data__=new bo(C)}return h.set(s,l),this.size=h.size,this}Mr.prototype.clear=Zte,Mr.prototype.delete=Qte,Mr.prototype.get=Jte,Mr.prototype.has=qte,Mr.prototype.set=$te;function CO(s,l){var h=ze(s),C=!h&&Xi(s),I=!h&&!C&&ii(s),F=!h&&!C&&!I&&aa(s),B=h||C||I||F,z=B?v0(s.length,cte):[],Q=z.length;for(var ae in s)(l||dt.call(s,ae))&&!(B&&(ae=="length"||I&&(ae=="offset"||ae=="parent")||F&&(ae=="buffer"||ae=="byteLength"||ae=="byteOffset")||So(ae,Q)))&&z.push(ae);return z}function wO(s){var l=s.length;return l?s[_0(0,l-1)]:n}function ene(s,l){return uf(Rn(s),Hi(l,0,s.length))}function tne(s){return uf(Rn(s))}function E0(s,l,h){(h!==n&&!Fr(s[l],h)||h===n&&!(l in s))&&xo(s,l,h)}function _l(s,l,h){var C=s[l];(!(dt.call(s,l)&&Fr(C,h))||h===n&&!(l in s))&&xo(s,l,h)}function Qd(s,l){for(var h=s.length;h--;)if(Fr(s[h][0],l))return h;return-1}function nne(s,l,h,C){return ti(s,function(I,F,B){l(C,I,h(I),B)}),C}function SO(s,l){return s&&qr(l,$t(l),s)}function rne(s,l){return s&&qr(l,Ln(l),s)}function xo(s,l,h){l=="__proto__"&&Hd?Hd(s,l,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[l]=h}function T0(s,l){for(var h=-1,C=l.length,I=oe(C),F=s==null;++h<C;)I[h]=F?n:iv(s,l[h]);return I}function Hi(s,l,h){return s===s&&(h!==n&&(s=s<=h?s:h),l!==n&&(s=s>=l?s:l)),s}function wr(s,l,h,C,I,F){var B,z=l&g,Q=l&v,ae=l&y;if(h&&(B=I?h(s,C,I,F):h(s)),B!==n)return B;if(!jt(s))return s;var le=ze(s);if(le){if(B=Gne(s),!z)return Rn(s,B)}else{var ce=yn(s),xe=ce==pe||ce==Ke;if(ii(s))return KO(s,z);if(ce==It||ce==he||xe&&!I){if(B=Q||xe?{}:fP(s),!z)return Q?_ne(s,rne(B,s)):Fne(s,SO(B,s))}else{if(!mt[ce])return I?s:{};B=Yne(s,ce,z)}}F||(F=new Mr);var Ae=F.get(s);if(Ae)return Ae;F.set(s,B),WP(s)?s.forEach(function(Me){B.add(wr(Me,l,h,Me,s,F))}):NP(s)&&s.forEach(function(Me,Qe){B.set(Qe,wr(Me,l,h,Qe,s,F))});var ke=ae?Q?G0:H0:Q?Ln:$t,Ye=le?n:ke(s);return br(Ye||s,function(Me,Qe){Ye&&(Qe=Me,Me=s[Qe]),_l(B,Qe,wr(Me,l,h,Qe,s,F))}),B}function one(s){var l=$t(s);return function(h){return EO(h,s,l)}}function EO(s,l,h){var C=h.length;if(s==null)return!C;for(s=ft(s);C--;){var I=h[C],F=l[I],B=s[I];if(B===n&&!(I in s)||!F(B))return!1}return!0}function TO(s,l,h){if(typeof s!="function")throw new xr(a);return Wl(function(){s.apply(n,h)},l)}function Rl(s,l,h,C){var I=-1,F=Fd,B=!0,z=s.length,Q=[],ae=l.length;if(!z)return Q;h&&(l=Tt(l,Jn(h))),C?(F=d0,B=!1):l.length>=o&&(F=Ol,B=!1,l=new Ui(l));e:for(;++I<z;){var le=s[I],ce=h==null?le:h(le);if(le=C||le!==0?le:0,B&&ce===ce){for(var xe=ae;xe--;)if(l[xe]===ce)continue e;Q.push(le)}else F(l,ce,C)||Q.push(le)}return Q}var ti=qO(Jr),AO=qO(I0,!0);function ine(s,l){var h=!0;return ti(s,function(C,I,F){return h=!!l(C,I,F),h}),h}function Jd(s,l,h){for(var C=-1,I=s.length;++C<I;){var F=s[C],B=l(F);if(B!=null&&(z===n?B===B&&!$n(B):h(B,z)))var z=B,Q=F}return Q}function sne(s,l,h,C){var I=s.length;for(h=Ge(h),h<0&&(h=-h>I?0:I+h),C=C===n||C>I?I:Ge(C),C<0&&(C+=I),C=h>C?0:UP(C);h<C;)s[h++]=l;return s}function IO(s,l){var h=[];return ti(s,function(C,I,F){l(C,I,F)&&h.push(C)}),h}function ln(s,l,h,C,I){var F=-1,B=s.length;for(h||(h=Xne),I||(I=[]);++F<B;){var z=s[F];l>0&&h(z)?l>1?ln(z,l-1,h,C,I):qo(I,z):C||(I[I.length]=z)}return I}var A0=$O(),OO=$O(!0);function Jr(s,l){return s&&A0(s,l,$t)}function I0(s,l){return s&&OO(s,l,$t)}function qd(s,l){return Jo(l,function(h){return Eo(s[h])})}function Gi(s,l){l=ri(l,s);for(var h=0,C=l.length;s!=null&&h<C;)s=s[$r(l[h++])];return h&&h==C?s:n}function PO(s,l,h){var C=l(s);return ze(s)?C:qo(C,h(s))}function Sn(s){return s==null?s===n?Kt:gn:Wi&&Wi in ft(s)?zne(s):tre(s)}function O0(s,l){return s>l}function ane(s,l){return s!=null&&dt.call(s,l)}function lne(s,l){return s!=null&&l in ft(s)}function cne(s,l,h){return s>=vn(l,h)&&s<Jt(l,h)}function P0(s,l,h){for(var C=h?d0:Fd,I=s[0].length,F=s.length,B=F,z=oe(F),Q=1/0,ae=[];B--;){var le=s[B];B&&l&&(le=Tt(le,Jn(l))),Q=vn(le.length,Q),z[B]=!h&&(l||I>=120&&le.length>=120)?new Ui(B&&le):n}le=s[0];var ce=-1,xe=z[0];e:for(;++ce<I&&ae.length<Q;){var Ae=le[ce],ke=l?l(Ae):Ae;if(Ae=h||Ae!==0?Ae:0,!(xe?Ol(xe,ke):C(ae,ke,h))){for(B=F;--B;){var Ye=z[B];if(!(Ye?Ol(Ye,ke):C(s[B],ke,h)))continue e}xe&&xe.push(ke),ae.push(Ae)}}return ae}function une(s,l,h,C){return Jr(s,function(I,F,B){l(C,h(I),F,B)}),C}function Dl(s,l,h){l=ri(l,s),s=mP(s,l);var C=s==null?s:s[$r(Er(l))];return C==null?n:Qn(C,s,h)}function jO(s){return Rt(s)&&Sn(s)==he}function dne(s){return Rt(s)&&Sn(s)==Le}function fne(s){return Rt(s)&&Sn(s)==ye}function Ll(s,l,h,C,I){return s===l?!0:s==null||l==null||!Rt(s)&&!Rt(l)?s!==s&&l!==l:pne(s,l,h,C,Ll,I)}function pne(s,l,h,C,I,F){var B=ze(s),z=ze(l),Q=B?me:yn(s),ae=z?me:yn(l);Q=Q==he?It:Q,ae=ae==he?It:ae;var le=Q==It,ce=ae==It,xe=Q==ae;if(xe&&ii(s)){if(!ii(l))return!1;B=!0,le=!1}if(xe&&!le)return F||(F=new Mr),B||aa(s)?cP(s,l,h,C,I,F):Vne(s,l,Q,h,C,I,F);if(!(h&b)){var Ae=le&&dt.call(s,"__wrapped__"),ke=ce&&dt.call(l,"__wrapped__");if(Ae||ke){var Ye=Ae?s.value():s,Me=ke?l.value():l;return F||(F=new Mr),I(Ye,Me,h,C,F)}}return xe?(F||(F=new Mr),Wne(s,l,h,C,I,F)):!1}function hne(s){return Rt(s)&&yn(s)==ve}function j0(s,l,h,C){var I=h.length,F=I,B=!C;if(s==null)return!F;for(s=ft(s);I--;){var z=h[I];if(B&&z[2]?z[1]!==s[z[0]]:!(z[0]in s))return!1}for(;++I<F;){z=h[I];var Q=z[0],ae=s[Q],le=z[1];if(B&&z[2]){if(ae===n&&!(Q in s))return!1}else{var ce=new Mr;if(C)var xe=C(ae,le,Q,s,l,ce);if(!(xe===n?Ll(le,ae,b|x,C,ce):xe))return!1}}return!0}function kO(s){if(!jt(s)||Qne(s))return!1;var l=Eo(s)?hte:r0;return l.test(Ki(s))}function gne(s){return Rt(s)&&Sn(s)==Ot}function mne(s){return Rt(s)&&yn(s)==xt}function vne(s){return Rt(s)&&mf(s.length)&&!!wt[Sn(s)]}function MO(s){return typeof s=="function"?s:s==null?Bn:typeof s=="object"?ze(s)?RO(s[0],s[1]):_O(s):ej(s)}function k0(s){if(!Vl(s))return xte(s);var l=[];for(var h in ft(s))dt.call(s,h)&&h!="constructor"&&l.push(h);return l}function yne(s){if(!jt(s))return ere(s);var l=Vl(s),h=[];for(var C in s)C=="constructor"&&(l||!dt.call(s,C))||h.push(C);return h}function M0(s,l){return s<l}function FO(s,l){var h=-1,C=Dn(s)?oe(s.length):[];return ti(s,function(I,F,B){C[++h]=l(I,F,B)}),C}function _O(s){var l=K0(s);return l.length==1&&l[0][2]?hP(l[0][0],l[0][1]):function(h){return h===s||j0(h,s,l)}}function RO(s,l){return Z0(s)&&pP(l)?hP($r(s),l):function(h){var C=iv(h,s);return C===n&&C===l?sv(h,s):Ll(l,C,b|x)}}function $d(s,l,h,C,I){s!==l&&A0(l,function(F,B){if(I||(I=new Mr),jt(F))bne(s,l,B,h,$d,C,I);else{var z=C?C(J0(s,B),F,B+"",s,l,I):n;z===n&&(z=F),E0(s,B,z)}},Ln)}function bne(s,l,h,C,I,F,B){var z=J0(s,h),Q=J0(l,h),ae=B.get(Q);if(ae){E0(s,h,ae);return}var le=F?F(z,Q,h+"",s,l,B):n,ce=le===n;if(ce){var xe=ze(Q),Ae=!xe&&ii(Q),ke=!xe&&!Ae&&aa(Q);le=Q,xe||Ae||ke?ze(z)?le=z:Nt(z)?le=Rn(z):Ae?(ce=!1,le=KO(Q,!0)):ke?(ce=!1,le=XO(Q,!0)):le=[]:zl(Q)||Xi(Q)?(le=z,Xi(z)?le=HP(z):(!jt(z)||Eo(z))&&(le=fP(Q))):ce=!1}ce&&(B.set(Q,le),I(le,Q,C,F,B),B.delete(Q)),E0(s,h,le)}function DO(s,l){var h=s.length;if(h)return l+=l<0?h:0,So(l,h)?s[l]:n}function LO(s,l,h){l.length?l=Tt(l,function(F){return ze(F)?function(B){return Gi(B,F.length===1?F[0]:F)}:F}):l=[Bn];var C=-1;l=Tt(l,Jn(je()));var I=FO(s,function(F,B,z){var Q=Tt(l,function(ae){return ae(F)});return{criteria:Q,index:++C,value:F}});return Yee(I,function(F,B){return Mne(F,B,h)})}function xne(s,l){return BO(s,l,function(h,C){return sv(s,C)})}function BO(s,l,h){for(var C=-1,I=l.length,F={};++C<I;){var B=l[C],z=Gi(s,B);h(z,B)&&Bl(F,ri(B,s),z)}return F}function Cne(s){return function(l){return Gi(l,s)}}function F0(s,l,h,C){var I=C?Gee:Qs,F=-1,B=l.length,z=s;for(s===l&&(l=Rn(l)),h&&(z=Tt(s,Jn(h)));++F<B;)for(var Q=0,ae=l[F],le=h?h(ae):ae;(Q=I(z,le,Q,C))>-1;)z!==s&&Ud.call(z,Q,1),Ud.call(s,Q,1);return s}function NO(s,l){for(var h=s?l.length:0,C=h-1;h--;){var I=l[h];if(h==C||I!==F){var F=I;So(I)?Ud.call(s,I,1):L0(s,I)}}return s}function _0(s,l){return s+Yd(bO()*(l-s+1))}function wne(s,l,h,C){for(var I=-1,F=Jt(Gd((l-s)/(h||1)),0),B=oe(F);F--;)B[C?F:++I]=s,s+=h;return B}function R0(s,l){var h="";if(!s||l<1||l>W)return h;do l%2&&(h+=s),l=Yd(l/2),l&&(s+=s);while(l);return h}function Xe(s,l){return q0(gP(s,l,Bn),s+"")}function Sne(s){return wO(la(s))}function Ene(s,l){var h=la(s);return uf(h,Hi(l,0,h.length))}function Bl(s,l,h,C){if(!jt(s))return s;l=ri(l,s);for(var I=-1,F=l.length,B=F-1,z=s;z!=null&&++I<F;){var Q=$r(l[I]),ae=h;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return s;if(I!=B){var le=z[Q];ae=C?C(le,Q,z):n,ae===n&&(ae=jt(le)?le:So(l[I+1])?[]:{})}_l(z,Q,ae),z=z[Q]}return s}var VO=Kd?function(s,l){return Kd.set(s,l),s}:Bn,Tne=Hd?function(s,l){return Hd(s,"toString",{configurable:!0,enumerable:!1,value:lv(l),writable:!0})}:Bn;function Ane(s){return uf(la(s))}function Sr(s,l,h){var C=-1,I=s.length;l<0&&(l=-l>I?0:I+l),h=h>I?I:h,h<0&&(h+=I),I=l>h?0:h-l>>>0,l>>>=0;for(var F=oe(I);++C<I;)F[C]=s[C+l];return F}function Ine(s,l){var h;return ti(s,function(C,I,F){return h=l(C,I,F),!h}),!!h}function ef(s,l,h){var C=0,I=s==null?C:s.length;if(typeof l=="number"&&l===l&&I<=ge){for(;C<I;){var F=C+I>>>1,B=s[F];B!==null&&!$n(B)&&(h?B<=l:B<l)?C=F+1:I=F}return I}return D0(s,l,Bn,h)}function D0(s,l,h,C){var I=0,F=s==null?0:s.length;if(F===0)return 0;l=h(l);for(var B=l!==l,z=l===null,Q=$n(l),ae=l===n;I<F;){var le=Yd((I+F)/2),ce=h(s[le]),xe=ce!==n,Ae=ce===null,ke=ce===ce,Ye=$n(ce);if(B)var Me=C||ke;else ae?Me=ke&&(C||xe):z?Me=ke&&xe&&(C||!Ae):Q?Me=ke&&xe&&!Ae&&(C||!Ye):Ae||Ye?Me=!1:Me=C?ce<=l:ce<l;Me?I=le+1:F=le}return vn(F,de)}function WO(s,l){for(var h=-1,C=s.length,I=0,F=[];++h<C;){var B=s[h],z=l?l(B):B;if(!h||!Fr(z,Q)){var Q=z;F[I++]=B===0?0:B}}return F}function zO(s){return typeof s=="number"?s:$n(s)?U:+s}function qn(s){if(typeof s=="string")return s;if(ze(s))return Tt(s,qn)+"";if($n(s))return xO?xO.call(s):"";var l=s+"";return l=="0"&&1/s==-$?"-0":l}function ni(s,l,h){var C=-1,I=Fd,F=s.length,B=!0,z=[],Q=z;if(h)B=!1,I=d0;else if(F>=o){var ae=l?null:Bne(s);if(ae)return Rd(ae);B=!1,I=Ol,Q=new Ui}else Q=l?[]:z;e:for(;++C<F;){var le=s[C],ce=l?l(le):le;if(le=h||le!==0?le:0,B&&ce===ce){for(var xe=Q.length;xe--;)if(Q[xe]===ce)continue e;l&&Q.push(ce),z.push(le)}else I(Q,ce,h)||(Q!==z&&Q.push(ce),z.push(le))}return z}function L0(s,l){return l=ri(l,s),s=mP(s,l),s==null||delete s[$r(Er(l))]}function UO(s,l,h,C){return Bl(s,l,h(Gi(s,l)),C)}function tf(s,l,h,C){for(var I=s.length,F=C?I:-1;(C?F--:++F<I)&&l(s[F],F,s););return h?Sr(s,C?0:F,C?F+1:I):Sr(s,C?F+1:0,C?I:F)}function HO(s,l){var h=s;return h instanceof Je&&(h=h.value()),f0(l,function(C,I){return I.func.apply(I.thisArg,qo([C],I.args))},h)}function B0(s,l,h){var C=s.length;if(C<2)return C?ni(s[0]):[];for(var I=-1,F=oe(C);++I<C;)for(var B=s[I],z=-1;++z<C;)z!=I&&(F[I]=Rl(F[I]||B,s[z],l,h));return ni(ln(F,1),l,h)}function GO(s,l,h){for(var C=-1,I=s.length,F=l.length,B={};++C<I;){var z=C<F?l[C]:n;h(B,s[C],z)}return B}function N0(s){return Nt(s)?s:[]}function V0(s){return typeof s=="function"?s:Bn}function ri(s,l){return ze(s)?s:Z0(s,l)?[s]:xP(ct(s))}var One=Xe;function oi(s,l,h){var C=s.length;return h=h===n?C:h,!l&&h>=C?s:Sr(s,l,h)}var YO=gte||function(s){return an.clearTimeout(s)};function KO(s,l){if(l)return s.slice();var h=s.length,C=hO?hO(h):new s.constructor(h);return s.copy(C),C}function W0(s){var l=new s.constructor(s.byteLength);return new Wd(l).set(new Wd(s)),l}function Pne(s,l){var h=l?W0(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function jne(s){var l=new s.constructor(s.source,Pd.exec(s));return l.lastIndex=s.lastIndex,l}function kne(s){return Fl?ft(Fl.call(s)):{}}function XO(s,l){var h=l?W0(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function ZO(s,l){if(s!==l){var h=s!==n,C=s===null,I=s===s,F=$n(s),B=l!==n,z=l===null,Q=l===l,ae=$n(l);if(!z&&!ae&&!F&&s>l||F&&B&&Q&&!z&&!ae||C&&B&&Q||!h&&Q||!I)return 1;if(!C&&!F&&!ae&&s<l||ae&&h&&I&&!C&&!F||z&&h&&I||!B&&I||!Q)return-1}return 0}function Mne(s,l,h){for(var C=-1,I=s.criteria,F=l.criteria,B=I.length,z=h.length;++C<B;){var Q=ZO(I[C],F[C]);if(Q){if(C>=z)return Q;var ae=h[C];return Q*(ae=="desc"?-1:1)}}return s.index-l.index}function QO(s,l,h,C){for(var I=-1,F=s.length,B=h.length,z=-1,Q=l.length,ae=Jt(F-B,0),le=oe(Q+ae),ce=!C;++z<Q;)le[z]=l[z];for(;++I<B;)(ce||I<F)&&(le[h[I]]=s[I]);for(;ae--;)le[z++]=s[I++];return le}function JO(s,l,h,C){for(var I=-1,F=s.length,B=-1,z=h.length,Q=-1,ae=l.length,le=Jt(F-z,0),ce=oe(le+ae),xe=!C;++I<le;)ce[I]=s[I];for(var Ae=I;++Q<ae;)ce[Ae+Q]=l[Q];for(;++B<z;)(xe||I<F)&&(ce[Ae+h[B]]=s[I++]);return ce}function Rn(s,l){var h=-1,C=s.length;for(l||(l=oe(C));++h<C;)l[h]=s[h];return l}function qr(s,l,h,C){var I=!h;h||(h={});for(var F=-1,B=l.length;++F<B;){var z=l[F],Q=C?C(h[z],s[z],z,h,s):n;Q===n&&(Q=s[z]),I?xo(h,z,Q):_l(h,z,Q)}return h}function Fne(s,l){return qr(s,X0(s),l)}function _ne(s,l){return qr(s,uP(s),l)}function nf(s,l){return function(h,C){var I=ze(h)?Nee:nne,F=l?l():{};return I(h,s,je(C,2),F)}}function oa(s){return Xe(function(l,h){var C=-1,I=h.length,F=I>1?h[I-1]:n,B=I>2?h[2]:n;for(F=s.length>3&&typeof F=="function"?(I--,F):n,B&&En(h[0],h[1],B)&&(F=I<3?n:F,I=1),l=ft(l);++C<I;){var z=h[C];z&&s(l,z,C,F)}return l})}function qO(s,l){return function(h,C){if(h==null)return h;if(!Dn(h))return s(h,C);for(var I=h.length,F=l?I:-1,B=ft(h);(l?F--:++F<I)&&C(B[F],F,B)!==!1;);return h}}function $O(s){return function(l,h,C){for(var I=-1,F=ft(l),B=C(l),z=B.length;z--;){var Q=B[s?z:++I];if(h(F[Q],Q,F)===!1)break}return l}}function Rne(s,l,h){var C=l&w,I=Nl(s);function F(){var B=this&&this!==an&&this instanceof F?I:s;return B.apply(C?h:this,arguments)}return F}function eP(s){return function(l){l=ct(l);var h=Js(l)?kr(l):n,C=h?h[0]:l.charAt(0),I=h?oi(h,1).join(""):l.slice(1);return C[s]()+I}}function ia(s){return function(l){return f0(qP(JP(l).replace(Tee,"")),s,"")}}function Nl(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var h=ra(s.prototype),C=s.apply(h,l);return jt(C)?C:h}}function Dne(s,l,h){var C=Nl(s);function I(){for(var F=arguments.length,B=oe(F),z=F,Q=sa(I);z--;)B[z]=arguments[z];var ae=F<3&&B[0]!==Q&&B[F-1]!==Q?[]:$o(B,Q);if(F-=ae.length,F<h)return iP(s,l,rf,I.placeholder,n,B,ae,n,n,h-F);var le=this&&this!==an&&this instanceof I?C:s;return Qn(le,this,B)}return I}function tP(s){return function(l,h,C){var I=ft(l);if(!Dn(l)){var F=je(h,3);l=$t(l),h=function(z){return F(I[z],z,I)}}var B=s(l,h,C);return B>-1?I[F?l[B]:B]:n}}function nP(s){return wo(function(l){var h=l.length,C=h,I=Cr.prototype.thru;for(s&&l.reverse();C--;){var F=l[C];if(typeof F!="function")throw new xr(a);if(I&&!B&&lf(F)=="wrapper")var B=new Cr([],!0)}for(C=B?C:h;++C<h;){F=l[C];var z=lf(F),Q=z=="wrapper"?Y0(F):n;Q&&Q0(Q[0])&&Q[1]==(R|T|O|N)&&!Q[4].length&&Q[9]==1?B=B[lf(Q[0])].apply(B,Q[3]):B=F.length==1&&Q0(F)?B[z]():B.thru(F)}return function(){var ae=arguments,le=ae[0];if(B&&ae.length==1&&ze(le))return B.plant(le).value();for(var ce=0,xe=h?l[ce].apply(this,ae):le;++ce<h;)xe=l[ce].call(this,xe);return xe}})}function rf(s,l,h,C,I,F,B,z,Q,ae){var le=l&R,ce=l&w,xe=l&A,Ae=l&(T|P),ke=l&Y,Ye=xe?n:Nl(s);function Me(){for(var Qe=arguments.length,qe=oe(Qe),er=Qe;er--;)qe[er]=arguments[er];if(Ae)var Tn=sa(Me),tr=Xee(qe,Tn);if(C&&(qe=QO(qe,C,I,Ae)),F&&(qe=JO(qe,F,B,Ae)),Qe-=tr,Ae&&Qe<ae){var Vt=$o(qe,Tn);return iP(s,l,rf,Me.placeholder,h,qe,Vt,z,Q,ae-Qe)}var _r=ce?h:this,Ao=xe?_r[s]:s;return Qe=qe.length,z?qe=nre(qe,z):ke&&Qe>1&&qe.reverse(),le&&Q<Qe&&(qe.length=Q),this&&this!==an&&this instanceof Me&&(Ao=Ye||Nl(Ao)),Ao.apply(_r,qe)}return Me}function rP(s,l){return function(h,C){return une(h,s,l(C),{})}}function of(s,l){return function(h,C){var I;if(h===n&&C===n)return l;if(h!==n&&(I=h),C!==n){if(I===n)return C;typeof h=="string"||typeof C=="string"?(h=qn(h),C=qn(C)):(h=zO(h),C=zO(C)),I=s(h,C)}return I}}function z0(s){return wo(function(l){return l=Tt(l,Jn(je())),Xe(function(h){var C=this;return s(l,function(I){return Qn(I,C,h)})})})}function sf(s,l){l=l===n?" ":qn(l);var h=l.length;if(h<2)return h?R0(l,s):l;var C=R0(l,Gd(s/qs(l)));return Js(l)?oi(kr(C),0,s).join(""):C.slice(0,s)}function Lne(s,l,h,C){var I=l&w,F=Nl(s);function B(){for(var z=-1,Q=arguments.length,ae=-1,le=C.length,ce=oe(le+Q),xe=this&&this!==an&&this instanceof B?F:s;++ae<le;)ce[ae]=C[ae];for(;Q--;)ce[ae++]=arguments[++z];return Qn(xe,I?h:this,ce)}return B}function oP(s){return function(l,h,C){return C&&typeof C!="number"&&En(l,h,C)&&(h=C=n),l=To(l),h===n?(h=l,l=0):h=To(h),C=C===n?l<h?1:-1:To(C),wne(l,h,C,s)}}function af(s){return function(l,h){return typeof l=="string"&&typeof h=="string"||(l=Tr(l),h=Tr(h)),s(l,h)}}function iP(s,l,h,C,I,F,B,z,Q,ae){var le=l&T,ce=le?B:n,xe=le?n:B,Ae=le?F:n,ke=le?n:F;l|=le?O:_,l&=~(le?_:O),l&j||(l&=~(w|A));var Ye=[s,l,I,Ae,ce,ke,xe,z,Q,ae],Me=h.apply(n,Ye);return Q0(s)&&vP(Me,Ye),Me.placeholder=C,yP(Me,s,l)}function U0(s){var l=Qt[s];return function(h,C){if(h=Tr(h),C=C==null?0:vn(Ge(C),292),C&&yO(h)){var I=(ct(h)+"e").split("e"),F=l(I[0]+"e"+(+I[1]+C));return I=(ct(F)+"e").split("e"),+(I[0]+"e"+(+I[1]-C))}return l(h)}}var Bne=ta&&1/Rd(new ta([,-0]))[1]==$?function(s){return new ta(s)}:dv;function sP(s){return function(l){var h=yn(l);return h==ve?b0(l):h==xt?tte(l):Kee(l,s(l))}}function Co(s,l,h,C,I,F,B,z){var Q=l&A;if(!Q&&typeof s!="function")throw new xr(a);var ae=C?C.length:0;if(ae||(l&=~(O|_),C=I=n),B=B===n?B:Jt(Ge(B),0),z=z===n?z:Ge(z),ae-=I?I.length:0,l&_){var le=C,ce=I;C=I=n}var xe=Q?n:Y0(s),Ae=[s,l,h,C,I,le,ce,F,B,z];if(xe&&$ne(Ae,xe),s=Ae[0],l=Ae[1],h=Ae[2],C=Ae[3],I=Ae[4],z=Ae[9]=Ae[9]===n?Q?0:s.length:Jt(Ae[9]-ae,0),!z&&l&(T|P)&&(l&=~(T|P)),!l||l==w)var ke=Rne(s,l,h);else l==T||l==P?ke=Dne(s,l,z):(l==O||l==(w|O))&&!I.length?ke=Lne(s,l,h,C):ke=rf.apply(n,Ae);var Ye=xe?VO:vP;return yP(Ye(ke,Ae),s,l)}function aP(s,l,h,C){return s===n||Fr(s,ea[h])&&!dt.call(C,h)?l:s}function lP(s,l,h,C,I,F){return jt(s)&&jt(l)&&(F.set(l,s),$d(s,l,n,lP,F),F.delete(l)),s}function Nne(s){return zl(s)?n:s}function cP(s,l,h,C,I,F){var B=h&b,z=s.length,Q=l.length;if(z!=Q&&!(B&&Q>z))return!1;var ae=F.get(s),le=F.get(l);if(ae&&le)return ae==l&&le==s;var ce=-1,xe=!0,Ae=h&x?new Ui:n;for(F.set(s,l),F.set(l,s);++ce<z;){var ke=s[ce],Ye=l[ce];if(C)var Me=B?C(Ye,ke,ce,l,s,F):C(ke,Ye,ce,s,l,F);if(Me!==n){if(Me)continue;xe=!1;break}if(Ae){if(!p0(l,function(Qe,qe){if(!Ol(Ae,qe)&&(ke===Qe||I(ke,Qe,h,C,F)))return Ae.push(qe)})){xe=!1;break}}else if(!(ke===Ye||I(ke,Ye,h,C,F))){xe=!1;break}}return F.delete(s),F.delete(l),xe}function Vne(s,l,h,C,I,F,B){switch(h){case Oe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case Le:return!(s.byteLength!=l.byteLength||!F(new Wd(s),new Wd(l)));case be:case ye:case $e:return Fr(+s,+l);case Ie:return s.name==l.name&&s.message==l.message;case Ot:case qt:return s==l+"";case ve:var z=b0;case xt:var Q=C&b;if(z||(z=Rd),s.size!=l.size&&!Q)return!1;var ae=B.get(s);if(ae)return ae==l;C|=x,B.set(s,l);var le=cP(z(s),z(l),C,I,F,B);return B.delete(s),le;case Ct:if(Fl)return Fl.call(s)==Fl.call(l)}return!1}function Wne(s,l,h,C,I,F){var B=h&b,z=H0(s),Q=z.length,ae=H0(l),le=ae.length;if(Q!=le&&!B)return!1;for(var ce=Q;ce--;){var xe=z[ce];if(!(B?xe in l:dt.call(l,xe)))return!1}var Ae=F.get(s),ke=F.get(l);if(Ae&&ke)return Ae==l&&ke==s;var Ye=!0;F.set(s,l),F.set(l,s);for(var Me=B;++ce<Q;){xe=z[ce];var Qe=s[xe],qe=l[xe];if(C)var er=B?C(qe,Qe,xe,l,s,F):C(Qe,qe,xe,s,l,F);if(!(er===n?Qe===qe||I(Qe,qe,h,C,F):er)){Ye=!1;break}Me||(Me=xe=="constructor")}if(Ye&&!Me){var Tn=s.constructor,tr=l.constructor;Tn!=tr&&"constructor"in s&&"constructor"in l&&!(typeof Tn=="function"&&Tn instanceof Tn&&typeof tr=="function"&&tr instanceof tr)&&(Ye=!1)}return F.delete(s),F.delete(l),Ye}function wo(s){return q0(gP(s,n,EP),s+"")}function H0(s){return PO(s,$t,X0)}function G0(s){return PO(s,Ln,uP)}var Y0=Kd?function(s){return Kd.get(s)}:dv;function lf(s){for(var l=s.name+"",h=na[l],C=dt.call(na,l)?h.length:0;C--;){var I=h[C],F=I.func;if(F==null||F==s)return I.name}return l}function sa(s){var l=dt.call(M,"placeholder")?M:s;return l.placeholder}function je(){var s=M.iteratee||cv;return s=s===cv?MO:s,arguments.length?s(arguments[0],arguments[1]):s}function cf(s,l){var h=s.__data__;return Zne(l)?h[typeof l=="string"?"string":"hash"]:h.map}function K0(s){for(var l=$t(s),h=l.length;h--;){var C=l[h],I=s[C];l[h]=[C,I,pP(I)]}return l}function Yi(s,l){var h=qee(s,l);return kO(h)?h:n}function zne(s){var l=dt.call(s,Wi),h=s[Wi];try{s[Wi]=n;var C=!0}catch{}var I=Nd.call(s);return C&&(l?s[Wi]=h:delete s[Wi]),I}var X0=C0?function(s){return s==null?[]:(s=ft(s),Jo(C0(s),function(l){return mO.call(s,l)}))}:fv,uP=C0?function(s){for(var l=[];s;)qo(l,X0(s)),s=zd(s);return l}:fv,yn=Sn;(w0&&yn(new w0(new ArrayBuffer(1)))!=Oe||jl&&yn(new jl)!=ve||S0&&yn(S0.resolve())!=bt||ta&&yn(new ta)!=xt||kl&&yn(new kl)!=Pt)&&(yn=function(s){var l=Sn(s),h=l==It?s.constructor:n,C=h?Ki(h):"";if(C)switch(C){case Ete:return Oe;case Tte:return ve;case Ate:return bt;case Ite:return xt;case Ote:return Pt}return l});function Une(s,l,h){for(var C=-1,I=h.length;++C<I;){var F=h[C],B=F.size;switch(F.type){case"drop":s+=B;break;case"dropRight":l-=B;break;case"take":l=vn(l,s+B);break;case"takeRight":s=Jt(s,l-B);break}}return{start:s,end:l}}function Hne(s){var l=s.match(Ni);return l?l[1].split(Il):[]}function dP(s,l,h){l=ri(l,s);for(var C=-1,I=l.length,F=!1;++C<I;){var B=$r(l[C]);if(!(F=s!=null&&h(s,B)))break;s=s[B]}return F||++C!=I?F:(I=s==null?0:s.length,!!I&&mf(I)&&So(B,I)&&(ze(s)||Xi(s)))}function Gne(s){var l=s.length,h=new s.constructor(l);return l&&typeof s[0]=="string"&&dt.call(s,"index")&&(h.index=s.index,h.input=s.input),h}function fP(s){return typeof s.constructor=="function"&&!Vl(s)?ra(zd(s)):{}}function Yne(s,l,h){var C=s.constructor;switch(l){case Le:return W0(s);case be:case ye:return new C(+s);case Oe:return Pne(s,h);case Ce:case gt:case Xt:case We:case Pe:case sn:case vr:case jr:case Li:return XO(s,h);case ve:return new C;case $e:case qt:return new C(s);case Ot:return jne(s);case xt:return new C;case Ct:return kne(s)}}function Kne(s,l){var h=l.length;if(!h)return s;var C=h-1;return l[C]=(h>1?"& ":"")+l[C],l=l.join(h>2?", ":" "),s.replace(e0,`{
203
203
  /* [wrapped with `+l+`] */
204
- `)}function Xne(s){return ze(s)||Xi(s)||!!(vO&&s&&s[vO])}function So(s,l){var h=typeof s;return l=l??W,!!l&&(h=="number"||h!="symbol"&&wn.test(s))&&s>-1&&s%1==0&&s<l}function En(s,l,h){if(!jt(h))return!1;var C=typeof l;return(C=="number"?Dn(h)&&So(l,h.length):C=="string"&&l in h)?Fr(h[l],s):!1}function Z0(s,l){if(ze(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||$n(s)?!0:El.test(s)||!qm.test(s)||l!=null&&s in ft(l)}function Zne(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function Q0(s){var l=lf(s),h=M[l];if(typeof h!="function"||!(l in Je.prototype))return!1;if(s===h)return!0;var C=Y0(h);return!!C&&s===C[0]}function Qne(s){return!!pO&&pO in s}var Jne=Ld?Eo:pv;function Nl(s){var l=s&&s.constructor,h=typeof l=="function"&&l.prototype||ea;return s===h}function pP(s){return s===s&&!jt(s)}function hP(s,l){return function(h){return h==null?!1:h[s]===l&&(l!==n||s in ft(h))}}function qne(s){var l=hf(s,function(C){return h.size===d&&h.clear(),C}),h=l.cache;return l}function $ne(s,l){var h=s[1],C=l[1],I=h|C,F=I<(w|A|R),B=C==R&&h==T||C==R&&h==N&&s[7].length<=l[8]||C==(R|N)&&l[7].length<=l[8]&&h==T;if(!(F||B))return s;C&w&&(s[2]=l[2],I|=h&w?0:j);var z=l[3];if(z){var Q=s[3];s[3]=Q?QO(Q,z,l[4]):z,s[4]=Q?$o(s[3],p):l[4]}return z=l[5],z&&(Q=s[5],s[5]=Q?JO(Q,z,l[6]):z,s[6]=Q?$o(s[5],p):l[6]),z=l[7],z&&(s[7]=z),C&R&&(s[8]=s[8]==null?l[8]:vn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=I,s}function ere(s){var l=[];if(s!=null)for(var h in ft(s))l.push(h);return l}function tre(s){return Nd.call(s)}function gP(s,l,h){return l=Jt(l===n?s.length-1:l,0),function(){for(var C=arguments,I=-1,F=Jt(C.length-l,0),B=oe(F);++I<F;)B[I]=C[l+I];I=-1;for(var z=oe(l+1);++I<l;)z[I]=C[I];return z[l]=h(B),Qn(s,this,z)}}function mP(s,l){return l.length<2?s:Gi(s,Sr(l,0,-1))}function nre(s,l){for(var h=s.length,C=vn(l.length,h),I=Rn(s);C--;){var F=l[C];s[C]=So(F,h)?I[F]:n}return s}function J0(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var vP=bP(VO),Vl=vte||function(s,l){return an.setTimeout(s,l)},q0=bP(Tne);function yP(s,l,h){var C=l+"";return q0(s,Kne(C,rre(Hne(C),h)))}function bP(s){var l=0,h=0;return function(){var C=Cte(),I=ne-(C-h);if(h=C,I>0){if(++l>=re)return arguments[0]}else l=0;return s.apply(n,arguments)}}function uf(s,l){var h=-1,C=s.length,I=C-1;for(l=l===n?C:l;++h<l;){var F=_0(h,I),B=s[F];s[F]=s[h],s[h]=B}return s.length=l,s}var xP=qne(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace($m,function(h,C,I,F){l.push(I?F.replace(Id,"$1"):C||h)}),l});function $r(s){if(typeof s=="string"||$n(s))return s;var l=s+"";return l=="0"&&1/s==-$?"-0":l}function Ki(s){if(s!=null){try{return Bd.call(s)}catch{}try{return s+""}catch{}}return""}function rre(s,l){return br(fe,function(h){var C="_."+h[0];l&h[1]&&!Fd(s,C)&&s.push(C)}),s.sort()}function CP(s){if(s instanceof Je)return s.clone();var l=new Cr(s.__wrapped__,s.__chain__);return l.__actions__=Rn(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function ore(s,l,h){(h?En(s,l,h):l===n)?l=1:l=Jt(Ge(l),0);var C=s==null?0:s.length;if(!C||l<1)return[];for(var I=0,F=0,B=oe(Gd(C/l));I<C;)B[F++]=Sr(s,I,I+=l);return B}function ire(s){for(var l=-1,h=s==null?0:s.length,C=0,I=[];++l<h;){var F=s[l];F&&(I[C++]=F)}return I}function sre(){var s=arguments.length;if(!s)return[];for(var l=oe(s-1),h=arguments[0],C=s;C--;)l[C-1]=arguments[C];return qo(ze(h)?Rn(h):[h],ln(l,1))}var are=Xe(function(s,l){return Nt(s)?_l(s,ln(l,1,Nt,!0)):[]}),lre=Xe(function(s,l){var h=Er(l);return Nt(h)&&(h=n),Nt(s)?_l(s,ln(l,1,Nt,!0),je(h,2)):[]}),cre=Xe(function(s,l){var h=Er(l);return Nt(h)&&(h=n),Nt(s)?_l(s,ln(l,1,Nt,!0),n,h):[]});function ure(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ge(l),Sr(s,l<0?0:l,C)):[]}function dre(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ge(l),l=C-l,Sr(s,0,l<0?0:l)):[]}function fre(s,l){return s&&s.length?tf(s,je(l,3),!0,!0):[]}function pre(s,l){return s&&s.length?tf(s,je(l,3),!0):[]}function hre(s,l,h,C){var I=s==null?0:s.length;return I?(h&&typeof h!="number"&&En(s,l,h)&&(h=0,C=I),sne(s,l,h,C)):[]}function wP(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ge(h);return I<0&&(I=Jt(C+I,0)),_d(s,je(l,3),I)}function SP(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C-1;return h!==n&&(I=Ge(h),I=h<0?Jt(C+I,0):vn(I,C-1)),_d(s,je(l,3),I,!0)}function EP(s){var l=s==null?0:s.length;return l?ln(s,1):[]}function gre(s){var l=s==null?0:s.length;return l?ln(s,$):[]}function mre(s,l){var h=s==null?0:s.length;return h?(l=l===n?1:Ge(l),ln(s,l)):[]}function vre(s){for(var l=-1,h=s==null?0:s.length,C={};++l<h;){var I=s[l];C[I[0]]=I[1]}return C}function TP(s){return s&&s.length?s[0]:n}function yre(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ge(h);return I<0&&(I=Jt(C+I,0)),Qs(s,l,I)}function bre(s){var l=s==null?0:s.length;return l?Sr(s,0,-1):[]}var xre=Xe(function(s){var l=Tt(s,N0);return l.length&&l[0]===s[0]?P0(l):[]}),Cre=Xe(function(s){var l=Er(s),h=Tt(s,N0);return l===Er(h)?l=n:h.pop(),h.length&&h[0]===s[0]?P0(h,je(l,2)):[]}),wre=Xe(function(s){var l=Er(s),h=Tt(s,N0);return l=typeof l=="function"?l:n,l&&h.pop(),h.length&&h[0]===s[0]?P0(h,n,l):[]});function Sre(s,l){return s==null?"":bte.call(s,l)}function Er(s){var l=s==null?0:s.length;return l?s[l-1]:n}function Ere(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C;return h!==n&&(I=Ge(h),I=I<0?Jt(C+I,0):vn(I,C-1)),l===l?rte(s,l,I):_d(s,iO,I,!0)}function Tre(s,l){return s&&s.length?DO(s,Ge(l)):n}var Are=Xe(AP);function AP(s,l){return s&&s.length&&l&&l.length?F0(s,l):s}function Ire(s,l,h){return s&&s.length&&l&&l.length?F0(s,l,je(h,2)):s}function Ore(s,l,h){return s&&s.length&&l&&l.length?F0(s,l,n,h):s}var Pre=wo(function(s,l){var h=s==null?0:s.length,C=T0(s,l);return NO(s,Tt(l,function(I){return So(I,h)?+I:I}).sort(ZO)),C});function jre(s,l){var h=[];if(!(s&&s.length))return h;var C=-1,I=[],F=s.length;for(l=je(l,3);++C<F;){var B=s[C];l(B,C,s)&&(h.push(B),I.push(C))}return NO(s,I),h}function $0(s){return s==null?s:Ste.call(s)}function kre(s,l,h){var C=s==null?0:s.length;return C?(h&&typeof h!="number"&&En(s,l,h)?(l=0,h=C):(l=l==null?0:Ge(l),h=h===n?C:Ge(h)),Sr(s,l,h)):[]}function Mre(s,l){return ef(s,l)}function Fre(s,l,h){return D0(s,l,je(h,2))}function _re(s,l){var h=s==null?0:s.length;if(h){var C=ef(s,l);if(C<h&&Fr(s[C],l))return C}return-1}function Rre(s,l){return ef(s,l,!0)}function Dre(s,l,h){return D0(s,l,je(h,2),!0)}function Lre(s,l){var h=s==null?0:s.length;if(h){var C=ef(s,l,!0)-1;if(Fr(s[C],l))return C}return-1}function Bre(s){return s&&s.length?WO(s):[]}function Nre(s,l){return s&&s.length?WO(s,je(l,2)):[]}function Vre(s){var l=s==null?0:s.length;return l?Sr(s,1,l):[]}function Wre(s,l,h){return s&&s.length?(l=h||l===n?1:Ge(l),Sr(s,0,l<0?0:l)):[]}function zre(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ge(l),l=C-l,Sr(s,l<0?0:l,C)):[]}function Ure(s,l){return s&&s.length?tf(s,je(l,3),!1,!0):[]}function Hre(s,l){return s&&s.length?tf(s,je(l,3)):[]}var Gre=Xe(function(s){return ni(ln(s,1,Nt,!0))}),Yre=Xe(function(s){var l=Er(s);return Nt(l)&&(l=n),ni(ln(s,1,Nt,!0),je(l,2))}),Kre=Xe(function(s){var l=Er(s);return l=typeof l=="function"?l:n,ni(ln(s,1,Nt,!0),n,l)});function Xre(s){return s&&s.length?ni(s):[]}function Zre(s,l){return s&&s.length?ni(s,je(l,2)):[]}function Qre(s,l){return l=typeof l=="function"?l:n,s&&s.length?ni(s,n,l):[]}function ev(s){if(!(s&&s.length))return[];var l=0;return s=Jo(s,function(h){if(Nt(h))return l=Jt(h.length,l),!0}),v0(l,function(h){return Tt(s,h0(h))})}function IP(s,l){if(!(s&&s.length))return[];var h=ev(s);return l==null?h:Tt(h,function(C){return Qn(l,n,C)})}var Jre=Xe(function(s,l){return Nt(s)?_l(s,l):[]}),qre=Xe(function(s){return B0(Jo(s,Nt))}),$re=Xe(function(s){var l=Er(s);return Nt(l)&&(l=n),B0(Jo(s,Nt),je(l,2))}),eoe=Xe(function(s){var l=Er(s);return l=typeof l=="function"?l:n,B0(Jo(s,Nt),n,l)}),toe=Xe(ev);function noe(s,l){return GO(s||[],l||[],Fl)}function roe(s,l){return GO(s||[],l||[],Ll)}var ooe=Xe(function(s){var l=s.length,h=l>1?s[l-1]:n;return h=typeof h=="function"?(s.pop(),h):n,IP(s,h)});function OP(s){var l=M(s);return l.__chain__=!0,l}function ioe(s,l){return l(s),s}function df(s,l){return l(s)}var soe=wo(function(s){var l=s.length,h=l?s[0]:0,C=this.__wrapped__,I=function(F){return T0(F,s)};return l>1||this.__actions__.length||!(C instanceof Je)||!So(h)?this.thru(I):(C=C.slice(h,+h+(l?1:0)),C.__actions__.push({func:df,args:[I],thisArg:n}),new Cr(C,this.__chain__).thru(function(F){return l&&!F.length&&F.push(n),F}))});function aoe(){return OP(this)}function loe(){return new Cr(this.value(),this.__chain__)}function coe(){this.__values__===n&&(this.__values__=zP(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function uoe(){return this}function doe(s){for(var l,h=this;h instanceof Zd;){var C=CP(h);C.__index__=0,C.__values__=n,l?I.__wrapped__=C:l=C;var I=C;h=h.__wrapped__}return I.__wrapped__=s,l}function foe(){var s=this.__wrapped__;if(s instanceof Je){var l=s;return this.__actions__.length&&(l=new Je(this)),l=l.reverse(),l.__actions__.push({func:df,args:[$0],thisArg:n}),new Cr(l,this.__chain__)}return this.thru($0)}function poe(){return HO(this.__wrapped__,this.__actions__)}var hoe=nf(function(s,l,h){dt.call(s,h)?++s[h]:xo(s,h,1)});function goe(s,l,h){var C=ze(s)?rO:ine;return h&&En(s,l,h)&&(l=n),C(s,je(l,3))}function moe(s,l){var h=ze(s)?Jo:IO;return h(s,je(l,3))}var voe=tP(wP),yoe=tP(SP);function boe(s,l){return ln(ff(s,l),1)}function xoe(s,l){return ln(ff(s,l),$)}function Coe(s,l,h){return h=h===n?1:Ge(h),ln(ff(s,l),h)}function PP(s,l){var h=ze(s)?br:ti;return h(s,je(l,3))}function jP(s,l){var h=ze(s)?Vee:AO;return h(s,je(l,3))}var woe=nf(function(s,l,h){dt.call(s,h)?s[h].push(l):xo(s,h,[l])});function Soe(s,l,h,C){s=Dn(s)?s:la(s),h=h&&!C?Ge(h):0;var I=s.length;return h<0&&(h=Jt(I+h,0)),vf(s)?h<=I&&s.indexOf(l,h)>-1:!!I&&Qs(s,l,h)>-1}var Eoe=Xe(function(s,l,h){var C=-1,I=typeof l=="function",F=Dn(s)?oe(s.length):[];return ti(s,function(B){F[++C]=I?Qn(l,B,h):Rl(B,l,h)}),F}),Toe=nf(function(s,l,h){xo(s,h,l)});function ff(s,l){var h=ze(s)?Tt:FO;return h(s,je(l,3))}function Aoe(s,l,h,C){return s==null?[]:(ze(l)||(l=l==null?[]:[l]),h=C?n:h,ze(h)||(h=h==null?[]:[h]),LO(s,l,h))}var Ioe=nf(function(s,l,h){s[h?0:1].push(l)},function(){return[[],[]]});function Ooe(s,l,h){var C=ze(s)?f0:aO,I=arguments.length<3;return C(s,je(l,4),h,I,ti)}function Poe(s,l,h){var C=ze(s)?Wee:aO,I=arguments.length<3;return C(s,je(l,4),h,I,AO)}function joe(s,l){var h=ze(s)?Jo:IO;return h(s,gf(je(l,3)))}function koe(s){var l=ze(s)?wO:Sne;return l(s)}function Moe(s,l,h){(h?En(s,l,h):l===n)?l=1:l=Ge(l);var C=ze(s)?ene:Ene;return C(s,l)}function Foe(s){var l=ze(s)?tne:Ane;return l(s)}function _oe(s){if(s==null)return 0;if(Dn(s))return vf(s)?qs(s):s.length;var l=yn(s);return l==ve||l==xt?s.size:k0(s).length}function Roe(s,l,h){var C=ze(s)?p0:Ine;return h&&En(s,l,h)&&(l=n),C(s,je(l,3))}var Doe=Xe(function(s,l){if(s==null)return[];var h=l.length;return h>1&&En(s,l[0],l[1])?l=[]:h>2&&En(l[0],l[1],l[2])&&(l=[l[0]]),LO(s,ln(l,1),[])}),pf=mte||function(){return an.Date.now()};function Loe(s,l){if(typeof l!="function")throw new xr(a);return s=Ge(s),function(){if(--s<1)return l.apply(this,arguments)}}function kP(s,l,h){return l=h?n:l,l=s&&l==null?s.length:l,Co(s,R,n,n,n,n,l)}function MP(s,l){var h;if(typeof l!="function")throw new xr(a);return s=Ge(s),function(){return--s>0&&(h=l.apply(this,arguments)),s<=1&&(l=n),h}}var tv=Xe(function(s,l,h){var C=w;if(h.length){var I=$o(h,sa(tv));C|=O}return Co(s,C,l,h,I)}),FP=Xe(function(s,l,h){var C=w|A;if(h.length){var I=$o(h,sa(FP));C|=O}return Co(l,C,s,h,I)});function _P(s,l,h){l=h?n:l;var C=Co(s,T,n,n,n,n,n,l);return C.placeholder=_P.placeholder,C}function RP(s,l,h){l=h?n:l;var C=Co(s,P,n,n,n,n,n,l);return C.placeholder=RP.placeholder,C}function DP(s,l,h){var C,I,F,B,z,Q,ae=0,le=!1,ce=!1,xe=!0;if(typeof s!="function")throw new xr(a);l=Tr(l)||0,jt(h)&&(le=!!h.leading,ce="maxWait"in h,F=ce?Jt(Tr(h.maxWait)||0,l):F,xe="trailing"in h?!!h.trailing:xe);function Ae(Vt){var _r=C,Ao=I;return C=I=n,ae=Vt,B=s.apply(Ao,_r),B}function ke(Vt){return ae=Vt,z=Vl(Qe,l),le?Ae(Vt):B}function Ye(Vt){var _r=Vt-Q,Ao=Vt-ae,tj=l-_r;return ce?vn(tj,F-Ao):tj}function Me(Vt){var _r=Vt-Q,Ao=Vt-ae;return Q===n||_r>=l||_r<0||ce&&Ao>=F}function Qe(){var Vt=pf();if(Me(Vt))return qe(Vt);z=Vl(Qe,Ye(Vt))}function qe(Vt){return z=n,xe&&C?Ae(Vt):(C=I=n,B)}function er(){z!==n&&YO(z),ae=0,C=Q=I=z=n}function Tn(){return z===n?B:qe(pf())}function tr(){var Vt=pf(),_r=Me(Vt);if(C=arguments,I=this,Q=Vt,_r){if(z===n)return ke(Q);if(ce)return YO(z),z=Vl(Qe,l),Ae(Q)}return z===n&&(z=Vl(Qe,l)),B}return tr.cancel=er,tr.flush=Tn,tr}var Boe=Xe(function(s,l){return TO(s,1,l)}),Noe=Xe(function(s,l,h){return TO(s,Tr(l)||0,h)});function Voe(s){return Co(s,Y)}function hf(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new xr(a);var h=function(){var C=arguments,I=l?l.apply(this,C):C[0],F=h.cache;if(F.has(I))return F.get(I);var B=s.apply(this,C);return h.cache=F.set(I,B)||F,B};return h.cache=new(hf.Cache||bo),h}hf.Cache=bo;function gf(s){if(typeof s!="function")throw new xr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function Woe(s){return MP(2,s)}var zoe=One(function(s,l){l=l.length==1&&ze(l[0])?Tt(l[0],Jn(je())):Tt(ln(l,1),Jn(je()));var h=l.length;return Xe(function(C){for(var I=-1,F=vn(C.length,h);++I<F;)C[I]=l[I].call(this,C[I]);return Qn(s,this,C)})}),nv=Xe(function(s,l){var h=$o(l,sa(nv));return Co(s,O,n,l,h)}),LP=Xe(function(s,l){var h=$o(l,sa(LP));return Co(s,_,n,l,h)}),Uoe=wo(function(s,l){return Co(s,N,n,n,n,l)});function Hoe(s,l){if(typeof s!="function")throw new xr(a);return l=l===n?l:Ge(l),Xe(s,l)}function Goe(s,l){if(typeof s!="function")throw new xr(a);return l=l==null?0:Jt(Ge(l),0),Xe(function(h){var C=h[l],I=oi(h,0,l);return C&&qo(I,C),Qn(s,this,I)})}function Yoe(s,l,h){var C=!0,I=!0;if(typeof s!="function")throw new xr(a);return jt(h)&&(C="leading"in h?!!h.leading:C,I="trailing"in h?!!h.trailing:I),DP(s,l,{leading:C,maxWait:l,trailing:I})}function Koe(s){return kP(s,1)}function Xoe(s,l){return nv(V0(l),s)}function Zoe(){if(!arguments.length)return[];var s=arguments[0];return ze(s)?s:[s]}function Qoe(s){return wr(s,y)}function Joe(s,l){return l=typeof l=="function"?l:n,wr(s,y,l)}function qoe(s){return wr(s,g|y)}function $oe(s,l){return l=typeof l=="function"?l:n,wr(s,g|y,l)}function eie(s,l){return l==null||EO(s,l,$t(l))}function Fr(s,l){return s===l||s!==s&&l!==l}var tie=af(O0),nie=af(function(s,l){return s>=l}),Xi=jO(function(){return arguments}())?jO:function(s){return Rt(s)&&dt.call(s,"callee")&&!mO.call(s,"callee")},ze=oe.isArray,rie=JI?Jn(JI):dne;function Dn(s){return s!=null&&mf(s.length)&&!Eo(s)}function Nt(s){return Rt(s)&&Dn(s)}function oie(s){return s===!0||s===!1||Rt(s)&&Sn(s)==be}var ii=yte||pv,iie=qI?Jn(qI):fne;function sie(s){return Rt(s)&&s.nodeType===1&&!Wl(s)}function aie(s){if(s==null)return!0;if(Dn(s)&&(ze(s)||typeof s=="string"||typeof s.splice=="function"||ii(s)||aa(s)||Xi(s)))return!s.length;var l=yn(s);if(l==ve||l==xt)return!s.size;if(Nl(s))return!k0(s).length;for(var h in s)if(dt.call(s,h))return!1;return!0}function lie(s,l){return Dl(s,l)}function cie(s,l,h){h=typeof h=="function"?h:n;var C=h?h(s,l):n;return C===n?Dl(s,l,n,h):!!C}function rv(s){if(!Rt(s))return!1;var l=Sn(s);return l==Ie||l==we||typeof s.message=="string"&&typeof s.name=="string"&&!Wl(s)}function uie(s){return typeof s=="number"&&yO(s)}function Eo(s){if(!jt(s))return!1;var l=Sn(s);return l==pe||l==Ke||l==Se||l==Zn}function BP(s){return typeof s=="number"&&s==Ge(s)}function mf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=W}function jt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function Rt(s){return s!=null&&typeof s=="object"}var NP=$I?Jn($I):hne;function die(s,l){return s===l||j0(s,l,K0(l))}function fie(s,l,h){return h=typeof h=="function"?h:n,j0(s,l,K0(l),h)}function pie(s){return VP(s)&&s!=+s}function hie(s){if(Jne(s))throw new Ve(i);return kO(s)}function gie(s){return s===null}function mie(s){return s==null}function VP(s){return typeof s=="number"||Rt(s)&&Sn(s)==$e}function Wl(s){if(!Rt(s)||Sn(s)!=It)return!1;var l=zd(s);if(l===null)return!0;var h=dt.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&Bd.call(h)==fte}var ov=eO?Jn(eO):gne;function vie(s){return BP(s)&&s>=-W&&s<=W}var WP=tO?Jn(tO):mne;function vf(s){return typeof s=="string"||!ze(s)&&Rt(s)&&Sn(s)==qt}function $n(s){return typeof s=="symbol"||Rt(s)&&Sn(s)==Ct}var aa=nO?Jn(nO):vne;function yie(s){return s===n}function bie(s){return Rt(s)&&yn(s)==Pt}function xie(s){return Rt(s)&&Sn(s)==_e}var Cie=af(M0),wie=af(function(s,l){return s<=l});function zP(s){if(!s)return[];if(Dn(s))return vf(s)?kr(s):Rn(s);if(Ol&&s[Ol])return ete(s[Ol]());var l=yn(s),h=l==ve?b0:l==xt?Rd:la;return h(s)}function To(s){if(!s)return s===0?s:0;if(s=Tr(s),s===$||s===-$){var l=s<0?-1:1;return l*ie}return s===s?s:0}function Ge(s){var l=To(s),h=l%1;return l===l?h?l-h:l:0}function UP(s){return s?Hi(Ge(s),0,ee):0}function Tr(s){if(typeof s=="number")return s;if($n(s))return U;if(jt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=jt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=lO(s);var h=n0.test(s);return h||He.test(s)?Lee(s.slice(2),h?2:8):t0.test(s)?U:+s}function HP(s){return qr(s,Ln(s))}function Sie(s){return s?Hi(Ge(s),-W,W):s===0?s:0}function ct(s){return s==null?"":qn(s)}var Eie=oa(function(s,l){if(Nl(l)||Dn(l)){qr(l,$t(l),s);return}for(var h in l)dt.call(l,h)&&Fl(s,h,l[h])}),GP=oa(function(s,l){qr(l,Ln(l),s)}),yf=oa(function(s,l,h,C){qr(l,Ln(l),s,C)}),Tie=oa(function(s,l,h,C){qr(l,$t(l),s,C)}),Aie=wo(T0);function Iie(s,l){var h=ra(s);return l==null?h:SO(h,l)}var Oie=Xe(function(s,l){s=ft(s);var h=-1,C=l.length,I=C>2?l[2]:n;for(I&&En(l[0],l[1],I)&&(C=1);++h<C;)for(var F=l[h],B=Ln(F),z=-1,Q=B.length;++z<Q;){var ae=B[z],le=s[ae];(le===n||Fr(le,ea[ae])&&!dt.call(s,ae))&&(s[ae]=F[ae])}return s}),Pie=Xe(function(s){return s.push(n,lP),Qn(YP,n,s)});function jie(s,l){return oO(s,je(l,3),Jr)}function kie(s,l){return oO(s,je(l,3),I0)}function Mie(s,l){return s==null?s:A0(s,je(l,3),Ln)}function Fie(s,l){return s==null?s:OO(s,je(l,3),Ln)}function _ie(s,l){return s&&Jr(s,je(l,3))}function Rie(s,l){return s&&I0(s,je(l,3))}function Die(s){return s==null?[]:qd(s,$t(s))}function Lie(s){return s==null?[]:qd(s,Ln(s))}function iv(s,l,h){var C=s==null?n:Gi(s,l);return C===n?h:C}function Bie(s,l){return s!=null&&dP(s,l,ane)}function sv(s,l){return s!=null&&dP(s,l,lne)}var Nie=rP(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=Nd.call(l)),s[l]=h},lv(Bn)),Vie=rP(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=Nd.call(l)),dt.call(s,l)?s[l].push(h):s[l]=[h]},je),Wie=Xe(Rl);function $t(s){return Dn(s)?CO(s):k0(s)}function Ln(s){return Dn(s)?CO(s,!0):yne(s)}function zie(s,l){var h={};return l=je(l,3),Jr(s,function(C,I,F){xo(h,l(C,I,F),C)}),h}function Uie(s,l){var h={};return l=je(l,3),Jr(s,function(C,I,F){xo(h,I,l(C,I,F))}),h}var Hie=oa(function(s,l,h){$d(s,l,h)}),YP=oa(function(s,l,h,C){$d(s,l,h,C)}),Gie=wo(function(s,l){var h={};if(s==null)return h;var C=!1;l=Tt(l,function(F){return F=ri(F,s),C||(C=F.length>1),F}),qr(s,G0(s),h),C&&(h=wr(h,g|v|y,Nne));for(var I=l.length;I--;)L0(h,l[I]);return h});function Yie(s,l){return KP(s,gf(je(l)))}var Kie=wo(function(s,l){return s==null?{}:xne(s,l)});function KP(s,l){if(s==null)return{};var h=Tt(G0(s),function(C){return[C]});return l=je(l),BO(s,h,function(C,I){return l(C,I[0])})}function Xie(s,l,h){l=ri(l,s);var C=-1,I=l.length;for(I||(I=1,s=n);++C<I;){var F=s==null?n:s[$r(l[C])];F===n&&(C=I,F=h),s=Eo(F)?F.call(s):F}return s}function Zie(s,l,h){return s==null?s:Ll(s,l,h)}function Qie(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:Ll(s,l,h,C)}var XP=sP($t),ZP=sP(Ln);function Jie(s,l,h){var C=ze(s),I=C||ii(s)||aa(s);if(l=je(l,4),h==null){var F=s&&s.constructor;I?h=C?new F:[]:jt(s)?h=Eo(F)?ra(zd(s)):{}:h={}}return(I?br:Jr)(s,function(B,z,Q){return l(h,B,z,Q)}),h}function qie(s,l){return s==null?!0:L0(s,l)}function $ie(s,l,h){return s==null?s:UO(s,l,V0(h))}function ese(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:UO(s,l,V0(h),C)}function la(s){return s==null?[]:y0(s,$t(s))}function tse(s){return s==null?[]:y0(s,Ln(s))}function nse(s,l,h){return h===n&&(h=l,l=n),h!==n&&(h=Tr(h),h=h===h?h:0),l!==n&&(l=Tr(l),l=l===l?l:0),Hi(Tr(s),l,h)}function rse(s,l,h){return l=To(l),h===n?(h=l,l=0):h=To(h),s=Tr(s),cne(s,l,h)}function ose(s,l,h){if(h&&typeof h!="boolean"&&En(s,l,h)&&(l=h=n),h===n&&(typeof l=="boolean"?(h=l,l=n):typeof s=="boolean"&&(h=s,s=n)),s===n&&l===n?(s=0,l=1):(s=To(s),l===n?(l=s,s=0):l=To(l)),s>l){var C=s;s=l,l=C}if(h||s%1||l%1){var I=bO();return vn(s+I*(l-s+Dee("1e-"+((I+"").length-1))),l)}return _0(s,l)}var ise=ia(function(s,l,h){return l=l.toLowerCase(),s+(h?QP(l):l)});function QP(s){return av(ct(s).toLowerCase())}function JP(s){return s=ct(s),s&&s.replace(aee,Zee).replace(Aee,"")}function sse(s,l,h){s=ct(s),l=qn(l);var C=s.length;h=h===n?C:Hi(Ge(h),0,C);var I=h;return h-=l.length,h>=0&&s.slice(h,I)==l}function ase(s){return s=ct(s),s&&wd.test(s)?s.replace(Sl,Qee):s}function lse(s){return s=ct(s),s&&Tl.test(s)?s.replace(vo,"\\$&"):s}var cse=ia(function(s,l,h){return s+(h?"-":"")+l.toLowerCase()}),use=ia(function(s,l,h){return s+(h?" ":"")+l.toLowerCase()}),dse=eP("toLowerCase");function fse(s,l,h){s=ct(s),l=Ge(l);var C=l?qs(s):0;if(!l||C>=l)return s;var I=(l-C)/2;return sf(Yd(I),h)+s+sf(Gd(I),h)}function pse(s,l,h){s=ct(s),l=Ge(l);var C=l?qs(s):0;return l&&C<l?s+sf(l-C,h):s}function hse(s,l,h){s=ct(s),l=Ge(l);var C=l?qs(s):0;return l&&C<l?sf(l-C,h)+s:s}function gse(s,l,h){return h||l==null?l=0:l&&(l=+l),wte(ct(s).replace(mn,""),l||0)}function mse(s,l,h){return(h?En(s,l,h):l===n)?l=1:l=Ge(l),R0(ct(s),l)}function vse(){var s=arguments,l=ct(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var yse=ia(function(s,l,h){return s+(h?"_":"")+l.toLowerCase()});function bse(s,l,h){return h&&typeof h!="number"&&En(s,l,h)&&(l=h=n),h=h===n?ee:h>>>0,h?(s=ct(s),s&&(typeof l=="string"||l!=null&&!ov(l))&&(l=qn(l),!l&&Js(s))?oi(kr(s),0,h):s.split(l,h)):[]}var xse=ia(function(s,l,h){return s+(h?" ":"")+av(l)});function Cse(s,l,h){return s=ct(s),h=h==null?0:Hi(Ge(h),0,s.length),l=qn(l),s.slice(h,h+l.length)==l}function wse(s,l,h){var C=M.templateSettings;h&&En(s,l,h)&&(l=n),s=ct(s),l=yf({},l,C,aP);var I=yf({},l.imports,C.imports,aP),F=$t(I),B=y0(I,F),z,Q,ae=0,le=l.interpolate||jd,ce="__p += '",xe=x0((l.escape||jd).source+"|"+le.source+"|"+(le===Ed?Od:jd).source+"|"+(l.evaluate||jd).source+"|$","g"),Ae="//# sourceURL="+(dt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kee+"]")+`
204
+ `)}function Xne(s){return ze(s)||Xi(s)||!!(vO&&s&&s[vO])}function So(s,l){var h=typeof s;return l=l??W,!!l&&(h=="number"||h!="symbol"&&wn.test(s))&&s>-1&&s%1==0&&s<l}function En(s,l,h){if(!jt(h))return!1;var C=typeof l;return(C=="number"?Dn(h)&&So(l,h.length):C=="string"&&l in h)?Fr(h[l],s):!1}function Z0(s,l){if(ze(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||$n(s)?!0:Tl.test(s)||!qm.test(s)||l!=null&&s in ft(l)}function Zne(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function Q0(s){var l=lf(s),h=M[l];if(typeof h!="function"||!(l in Je.prototype))return!1;if(s===h)return!0;var C=Y0(h);return!!C&&s===C[0]}function Qne(s){return!!pO&&pO in s}var Jne=Ld?Eo:pv;function Vl(s){var l=s&&s.constructor,h=typeof l=="function"&&l.prototype||ea;return s===h}function pP(s){return s===s&&!jt(s)}function hP(s,l){return function(h){return h==null?!1:h[s]===l&&(l!==n||s in ft(h))}}function qne(s){var l=hf(s,function(C){return h.size===d&&h.clear(),C}),h=l.cache;return l}function $ne(s,l){var h=s[1],C=l[1],I=h|C,F=I<(w|A|R),B=C==R&&h==T||C==R&&h==N&&s[7].length<=l[8]||C==(R|N)&&l[7].length<=l[8]&&h==T;if(!(F||B))return s;C&w&&(s[2]=l[2],I|=h&w?0:j);var z=l[3];if(z){var Q=s[3];s[3]=Q?QO(Q,z,l[4]):z,s[4]=Q?$o(s[3],p):l[4]}return z=l[5],z&&(Q=s[5],s[5]=Q?JO(Q,z,l[6]):z,s[6]=Q?$o(s[5],p):l[6]),z=l[7],z&&(s[7]=z),C&R&&(s[8]=s[8]==null?l[8]:vn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=I,s}function ere(s){var l=[];if(s!=null)for(var h in ft(s))l.push(h);return l}function tre(s){return Nd.call(s)}function gP(s,l,h){return l=Jt(l===n?s.length-1:l,0),function(){for(var C=arguments,I=-1,F=Jt(C.length-l,0),B=oe(F);++I<F;)B[I]=C[l+I];I=-1;for(var z=oe(l+1);++I<l;)z[I]=C[I];return z[l]=h(B),Qn(s,this,z)}}function mP(s,l){return l.length<2?s:Gi(s,Sr(l,0,-1))}function nre(s,l){for(var h=s.length,C=vn(l.length,h),I=Rn(s);C--;){var F=l[C];s[C]=So(F,h)?I[F]:n}return s}function J0(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var vP=bP(VO),Wl=vte||function(s,l){return an.setTimeout(s,l)},q0=bP(Tne);function yP(s,l,h){var C=l+"";return q0(s,Kne(C,rre(Hne(C),h)))}function bP(s){var l=0,h=0;return function(){var C=Cte(),I=ne-(C-h);if(h=C,I>0){if(++l>=re)return arguments[0]}else l=0;return s.apply(n,arguments)}}function uf(s,l){var h=-1,C=s.length,I=C-1;for(l=l===n?C:l;++h<l;){var F=_0(h,I),B=s[F];s[F]=s[h],s[h]=B}return s.length=l,s}var xP=qne(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace($m,function(h,C,I,F){l.push(I?F.replace(Id,"$1"):C||h)}),l});function $r(s){if(typeof s=="string"||$n(s))return s;var l=s+"";return l=="0"&&1/s==-$?"-0":l}function Ki(s){if(s!=null){try{return Bd.call(s)}catch{}try{return s+""}catch{}}return""}function rre(s,l){return br(fe,function(h){var C="_."+h[0];l&h[1]&&!Fd(s,C)&&s.push(C)}),s.sort()}function CP(s){if(s instanceof Je)return s.clone();var l=new Cr(s.__wrapped__,s.__chain__);return l.__actions__=Rn(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function ore(s,l,h){(h?En(s,l,h):l===n)?l=1:l=Jt(Ge(l),0);var C=s==null?0:s.length;if(!C||l<1)return[];for(var I=0,F=0,B=oe(Gd(C/l));I<C;)B[F++]=Sr(s,I,I+=l);return B}function ire(s){for(var l=-1,h=s==null?0:s.length,C=0,I=[];++l<h;){var F=s[l];F&&(I[C++]=F)}return I}function sre(){var s=arguments.length;if(!s)return[];for(var l=oe(s-1),h=arguments[0],C=s;C--;)l[C-1]=arguments[C];return qo(ze(h)?Rn(h):[h],ln(l,1))}var are=Xe(function(s,l){return Nt(s)?Rl(s,ln(l,1,Nt,!0)):[]}),lre=Xe(function(s,l){var h=Er(l);return Nt(h)&&(h=n),Nt(s)?Rl(s,ln(l,1,Nt,!0),je(h,2)):[]}),cre=Xe(function(s,l){var h=Er(l);return Nt(h)&&(h=n),Nt(s)?Rl(s,ln(l,1,Nt,!0),n,h):[]});function ure(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ge(l),Sr(s,l<0?0:l,C)):[]}function dre(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ge(l),l=C-l,Sr(s,0,l<0?0:l)):[]}function fre(s,l){return s&&s.length?tf(s,je(l,3),!0,!0):[]}function pre(s,l){return s&&s.length?tf(s,je(l,3),!0):[]}function hre(s,l,h,C){var I=s==null?0:s.length;return I?(h&&typeof h!="number"&&En(s,l,h)&&(h=0,C=I),sne(s,l,h,C)):[]}function wP(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ge(h);return I<0&&(I=Jt(C+I,0)),_d(s,je(l,3),I)}function SP(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C-1;return h!==n&&(I=Ge(h),I=h<0?Jt(C+I,0):vn(I,C-1)),_d(s,je(l,3),I,!0)}function EP(s){var l=s==null?0:s.length;return l?ln(s,1):[]}function gre(s){var l=s==null?0:s.length;return l?ln(s,$):[]}function mre(s,l){var h=s==null?0:s.length;return h?(l=l===n?1:Ge(l),ln(s,l)):[]}function vre(s){for(var l=-1,h=s==null?0:s.length,C={};++l<h;){var I=s[l];C[I[0]]=I[1]}return C}function TP(s){return s&&s.length?s[0]:n}function yre(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ge(h);return I<0&&(I=Jt(C+I,0)),Qs(s,l,I)}function bre(s){var l=s==null?0:s.length;return l?Sr(s,0,-1):[]}var xre=Xe(function(s){var l=Tt(s,N0);return l.length&&l[0]===s[0]?P0(l):[]}),Cre=Xe(function(s){var l=Er(s),h=Tt(s,N0);return l===Er(h)?l=n:h.pop(),h.length&&h[0]===s[0]?P0(h,je(l,2)):[]}),wre=Xe(function(s){var l=Er(s),h=Tt(s,N0);return l=typeof l=="function"?l:n,l&&h.pop(),h.length&&h[0]===s[0]?P0(h,n,l):[]});function Sre(s,l){return s==null?"":bte.call(s,l)}function Er(s){var l=s==null?0:s.length;return l?s[l-1]:n}function Ere(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C;return h!==n&&(I=Ge(h),I=I<0?Jt(C+I,0):vn(I,C-1)),l===l?rte(s,l,I):_d(s,iO,I,!0)}function Tre(s,l){return s&&s.length?DO(s,Ge(l)):n}var Are=Xe(AP);function AP(s,l){return s&&s.length&&l&&l.length?F0(s,l):s}function Ire(s,l,h){return s&&s.length&&l&&l.length?F0(s,l,je(h,2)):s}function Ore(s,l,h){return s&&s.length&&l&&l.length?F0(s,l,n,h):s}var Pre=wo(function(s,l){var h=s==null?0:s.length,C=T0(s,l);return NO(s,Tt(l,function(I){return So(I,h)?+I:I}).sort(ZO)),C});function jre(s,l){var h=[];if(!(s&&s.length))return h;var C=-1,I=[],F=s.length;for(l=je(l,3);++C<F;){var B=s[C];l(B,C,s)&&(h.push(B),I.push(C))}return NO(s,I),h}function $0(s){return s==null?s:Ste.call(s)}function kre(s,l,h){var C=s==null?0:s.length;return C?(h&&typeof h!="number"&&En(s,l,h)?(l=0,h=C):(l=l==null?0:Ge(l),h=h===n?C:Ge(h)),Sr(s,l,h)):[]}function Mre(s,l){return ef(s,l)}function Fre(s,l,h){return D0(s,l,je(h,2))}function _re(s,l){var h=s==null?0:s.length;if(h){var C=ef(s,l);if(C<h&&Fr(s[C],l))return C}return-1}function Rre(s,l){return ef(s,l,!0)}function Dre(s,l,h){return D0(s,l,je(h,2),!0)}function Lre(s,l){var h=s==null?0:s.length;if(h){var C=ef(s,l,!0)-1;if(Fr(s[C],l))return C}return-1}function Bre(s){return s&&s.length?WO(s):[]}function Nre(s,l){return s&&s.length?WO(s,je(l,2)):[]}function Vre(s){var l=s==null?0:s.length;return l?Sr(s,1,l):[]}function Wre(s,l,h){return s&&s.length?(l=h||l===n?1:Ge(l),Sr(s,0,l<0?0:l)):[]}function zre(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ge(l),l=C-l,Sr(s,l<0?0:l,C)):[]}function Ure(s,l){return s&&s.length?tf(s,je(l,3),!1,!0):[]}function Hre(s,l){return s&&s.length?tf(s,je(l,3)):[]}var Gre=Xe(function(s){return ni(ln(s,1,Nt,!0))}),Yre=Xe(function(s){var l=Er(s);return Nt(l)&&(l=n),ni(ln(s,1,Nt,!0),je(l,2))}),Kre=Xe(function(s){var l=Er(s);return l=typeof l=="function"?l:n,ni(ln(s,1,Nt,!0),n,l)});function Xre(s){return s&&s.length?ni(s):[]}function Zre(s,l){return s&&s.length?ni(s,je(l,2)):[]}function Qre(s,l){return l=typeof l=="function"?l:n,s&&s.length?ni(s,n,l):[]}function ev(s){if(!(s&&s.length))return[];var l=0;return s=Jo(s,function(h){if(Nt(h))return l=Jt(h.length,l),!0}),v0(l,function(h){return Tt(s,h0(h))})}function IP(s,l){if(!(s&&s.length))return[];var h=ev(s);return l==null?h:Tt(h,function(C){return Qn(l,n,C)})}var Jre=Xe(function(s,l){return Nt(s)?Rl(s,l):[]}),qre=Xe(function(s){return B0(Jo(s,Nt))}),$re=Xe(function(s){var l=Er(s);return Nt(l)&&(l=n),B0(Jo(s,Nt),je(l,2))}),eoe=Xe(function(s){var l=Er(s);return l=typeof l=="function"?l:n,B0(Jo(s,Nt),n,l)}),toe=Xe(ev);function noe(s,l){return GO(s||[],l||[],_l)}function roe(s,l){return GO(s||[],l||[],Bl)}var ooe=Xe(function(s){var l=s.length,h=l>1?s[l-1]:n;return h=typeof h=="function"?(s.pop(),h):n,IP(s,h)});function OP(s){var l=M(s);return l.__chain__=!0,l}function ioe(s,l){return l(s),s}function df(s,l){return l(s)}var soe=wo(function(s){var l=s.length,h=l?s[0]:0,C=this.__wrapped__,I=function(F){return T0(F,s)};return l>1||this.__actions__.length||!(C instanceof Je)||!So(h)?this.thru(I):(C=C.slice(h,+h+(l?1:0)),C.__actions__.push({func:df,args:[I],thisArg:n}),new Cr(C,this.__chain__).thru(function(F){return l&&!F.length&&F.push(n),F}))});function aoe(){return OP(this)}function loe(){return new Cr(this.value(),this.__chain__)}function coe(){this.__values__===n&&(this.__values__=zP(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function uoe(){return this}function doe(s){for(var l,h=this;h instanceof Zd;){var C=CP(h);C.__index__=0,C.__values__=n,l?I.__wrapped__=C:l=C;var I=C;h=h.__wrapped__}return I.__wrapped__=s,l}function foe(){var s=this.__wrapped__;if(s instanceof Je){var l=s;return this.__actions__.length&&(l=new Je(this)),l=l.reverse(),l.__actions__.push({func:df,args:[$0],thisArg:n}),new Cr(l,this.__chain__)}return this.thru($0)}function poe(){return HO(this.__wrapped__,this.__actions__)}var hoe=nf(function(s,l,h){dt.call(s,h)?++s[h]:xo(s,h,1)});function goe(s,l,h){var C=ze(s)?rO:ine;return h&&En(s,l,h)&&(l=n),C(s,je(l,3))}function moe(s,l){var h=ze(s)?Jo:IO;return h(s,je(l,3))}var voe=tP(wP),yoe=tP(SP);function boe(s,l){return ln(ff(s,l),1)}function xoe(s,l){return ln(ff(s,l),$)}function Coe(s,l,h){return h=h===n?1:Ge(h),ln(ff(s,l),h)}function PP(s,l){var h=ze(s)?br:ti;return h(s,je(l,3))}function jP(s,l){var h=ze(s)?Vee:AO;return h(s,je(l,3))}var woe=nf(function(s,l,h){dt.call(s,h)?s[h].push(l):xo(s,h,[l])});function Soe(s,l,h,C){s=Dn(s)?s:la(s),h=h&&!C?Ge(h):0;var I=s.length;return h<0&&(h=Jt(I+h,0)),vf(s)?h<=I&&s.indexOf(l,h)>-1:!!I&&Qs(s,l,h)>-1}var Eoe=Xe(function(s,l,h){var C=-1,I=typeof l=="function",F=Dn(s)?oe(s.length):[];return ti(s,function(B){F[++C]=I?Qn(l,B,h):Dl(B,l,h)}),F}),Toe=nf(function(s,l,h){xo(s,h,l)});function ff(s,l){var h=ze(s)?Tt:FO;return h(s,je(l,3))}function Aoe(s,l,h,C){return s==null?[]:(ze(l)||(l=l==null?[]:[l]),h=C?n:h,ze(h)||(h=h==null?[]:[h]),LO(s,l,h))}var Ioe=nf(function(s,l,h){s[h?0:1].push(l)},function(){return[[],[]]});function Ooe(s,l,h){var C=ze(s)?f0:aO,I=arguments.length<3;return C(s,je(l,4),h,I,ti)}function Poe(s,l,h){var C=ze(s)?Wee:aO,I=arguments.length<3;return C(s,je(l,4),h,I,AO)}function joe(s,l){var h=ze(s)?Jo:IO;return h(s,gf(je(l,3)))}function koe(s){var l=ze(s)?wO:Sne;return l(s)}function Moe(s,l,h){(h?En(s,l,h):l===n)?l=1:l=Ge(l);var C=ze(s)?ene:Ene;return C(s,l)}function Foe(s){var l=ze(s)?tne:Ane;return l(s)}function _oe(s){if(s==null)return 0;if(Dn(s))return vf(s)?qs(s):s.length;var l=yn(s);return l==ve||l==xt?s.size:k0(s).length}function Roe(s,l,h){var C=ze(s)?p0:Ine;return h&&En(s,l,h)&&(l=n),C(s,je(l,3))}var Doe=Xe(function(s,l){if(s==null)return[];var h=l.length;return h>1&&En(s,l[0],l[1])?l=[]:h>2&&En(l[0],l[1],l[2])&&(l=[l[0]]),LO(s,ln(l,1),[])}),pf=mte||function(){return an.Date.now()};function Loe(s,l){if(typeof l!="function")throw new xr(a);return s=Ge(s),function(){if(--s<1)return l.apply(this,arguments)}}function kP(s,l,h){return l=h?n:l,l=s&&l==null?s.length:l,Co(s,R,n,n,n,n,l)}function MP(s,l){var h;if(typeof l!="function")throw new xr(a);return s=Ge(s),function(){return--s>0&&(h=l.apply(this,arguments)),s<=1&&(l=n),h}}var tv=Xe(function(s,l,h){var C=w;if(h.length){var I=$o(h,sa(tv));C|=O}return Co(s,C,l,h,I)}),FP=Xe(function(s,l,h){var C=w|A;if(h.length){var I=$o(h,sa(FP));C|=O}return Co(l,C,s,h,I)});function _P(s,l,h){l=h?n:l;var C=Co(s,T,n,n,n,n,n,l);return C.placeholder=_P.placeholder,C}function RP(s,l,h){l=h?n:l;var C=Co(s,P,n,n,n,n,n,l);return C.placeholder=RP.placeholder,C}function DP(s,l,h){var C,I,F,B,z,Q,ae=0,le=!1,ce=!1,xe=!0;if(typeof s!="function")throw new xr(a);l=Tr(l)||0,jt(h)&&(le=!!h.leading,ce="maxWait"in h,F=ce?Jt(Tr(h.maxWait)||0,l):F,xe="trailing"in h?!!h.trailing:xe);function Ae(Vt){var _r=C,Ao=I;return C=I=n,ae=Vt,B=s.apply(Ao,_r),B}function ke(Vt){return ae=Vt,z=Wl(Qe,l),le?Ae(Vt):B}function Ye(Vt){var _r=Vt-Q,Ao=Vt-ae,tj=l-_r;return ce?vn(tj,F-Ao):tj}function Me(Vt){var _r=Vt-Q,Ao=Vt-ae;return Q===n||_r>=l||_r<0||ce&&Ao>=F}function Qe(){var Vt=pf();if(Me(Vt))return qe(Vt);z=Wl(Qe,Ye(Vt))}function qe(Vt){return z=n,xe&&C?Ae(Vt):(C=I=n,B)}function er(){z!==n&&YO(z),ae=0,C=Q=I=z=n}function Tn(){return z===n?B:qe(pf())}function tr(){var Vt=pf(),_r=Me(Vt);if(C=arguments,I=this,Q=Vt,_r){if(z===n)return ke(Q);if(ce)return YO(z),z=Wl(Qe,l),Ae(Q)}return z===n&&(z=Wl(Qe,l)),B}return tr.cancel=er,tr.flush=Tn,tr}var Boe=Xe(function(s,l){return TO(s,1,l)}),Noe=Xe(function(s,l,h){return TO(s,Tr(l)||0,h)});function Voe(s){return Co(s,Y)}function hf(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new xr(a);var h=function(){var C=arguments,I=l?l.apply(this,C):C[0],F=h.cache;if(F.has(I))return F.get(I);var B=s.apply(this,C);return h.cache=F.set(I,B)||F,B};return h.cache=new(hf.Cache||bo),h}hf.Cache=bo;function gf(s){if(typeof s!="function")throw new xr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function Woe(s){return MP(2,s)}var zoe=One(function(s,l){l=l.length==1&&ze(l[0])?Tt(l[0],Jn(je())):Tt(ln(l,1),Jn(je()));var h=l.length;return Xe(function(C){for(var I=-1,F=vn(C.length,h);++I<F;)C[I]=l[I].call(this,C[I]);return Qn(s,this,C)})}),nv=Xe(function(s,l){var h=$o(l,sa(nv));return Co(s,O,n,l,h)}),LP=Xe(function(s,l){var h=$o(l,sa(LP));return Co(s,_,n,l,h)}),Uoe=wo(function(s,l){return Co(s,N,n,n,n,l)});function Hoe(s,l){if(typeof s!="function")throw new xr(a);return l=l===n?l:Ge(l),Xe(s,l)}function Goe(s,l){if(typeof s!="function")throw new xr(a);return l=l==null?0:Jt(Ge(l),0),Xe(function(h){var C=h[l],I=oi(h,0,l);return C&&qo(I,C),Qn(s,this,I)})}function Yoe(s,l,h){var C=!0,I=!0;if(typeof s!="function")throw new xr(a);return jt(h)&&(C="leading"in h?!!h.leading:C,I="trailing"in h?!!h.trailing:I),DP(s,l,{leading:C,maxWait:l,trailing:I})}function Koe(s){return kP(s,1)}function Xoe(s,l){return nv(V0(l),s)}function Zoe(){if(!arguments.length)return[];var s=arguments[0];return ze(s)?s:[s]}function Qoe(s){return wr(s,y)}function Joe(s,l){return l=typeof l=="function"?l:n,wr(s,y,l)}function qoe(s){return wr(s,g|y)}function $oe(s,l){return l=typeof l=="function"?l:n,wr(s,g|y,l)}function eie(s,l){return l==null||EO(s,l,$t(l))}function Fr(s,l){return s===l||s!==s&&l!==l}var tie=af(O0),nie=af(function(s,l){return s>=l}),Xi=jO(function(){return arguments}())?jO:function(s){return Rt(s)&&dt.call(s,"callee")&&!mO.call(s,"callee")},ze=oe.isArray,rie=JI?Jn(JI):dne;function Dn(s){return s!=null&&mf(s.length)&&!Eo(s)}function Nt(s){return Rt(s)&&Dn(s)}function oie(s){return s===!0||s===!1||Rt(s)&&Sn(s)==be}var ii=yte||pv,iie=qI?Jn(qI):fne;function sie(s){return Rt(s)&&s.nodeType===1&&!zl(s)}function aie(s){if(s==null)return!0;if(Dn(s)&&(ze(s)||typeof s=="string"||typeof s.splice=="function"||ii(s)||aa(s)||Xi(s)))return!s.length;var l=yn(s);if(l==ve||l==xt)return!s.size;if(Vl(s))return!k0(s).length;for(var h in s)if(dt.call(s,h))return!1;return!0}function lie(s,l){return Ll(s,l)}function cie(s,l,h){h=typeof h=="function"?h:n;var C=h?h(s,l):n;return C===n?Ll(s,l,n,h):!!C}function rv(s){if(!Rt(s))return!1;var l=Sn(s);return l==Ie||l==we||typeof s.message=="string"&&typeof s.name=="string"&&!zl(s)}function uie(s){return typeof s=="number"&&yO(s)}function Eo(s){if(!jt(s))return!1;var l=Sn(s);return l==pe||l==Ke||l==Se||l==Zn}function BP(s){return typeof s=="number"&&s==Ge(s)}function mf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=W}function jt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function Rt(s){return s!=null&&typeof s=="object"}var NP=$I?Jn($I):hne;function die(s,l){return s===l||j0(s,l,K0(l))}function fie(s,l,h){return h=typeof h=="function"?h:n,j0(s,l,K0(l),h)}function pie(s){return VP(s)&&s!=+s}function hie(s){if(Jne(s))throw new Ve(i);return kO(s)}function gie(s){return s===null}function mie(s){return s==null}function VP(s){return typeof s=="number"||Rt(s)&&Sn(s)==$e}function zl(s){if(!Rt(s)||Sn(s)!=It)return!1;var l=zd(s);if(l===null)return!0;var h=dt.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&Bd.call(h)==fte}var ov=eO?Jn(eO):gne;function vie(s){return BP(s)&&s>=-W&&s<=W}var WP=tO?Jn(tO):mne;function vf(s){return typeof s=="string"||!ze(s)&&Rt(s)&&Sn(s)==qt}function $n(s){return typeof s=="symbol"||Rt(s)&&Sn(s)==Ct}var aa=nO?Jn(nO):vne;function yie(s){return s===n}function bie(s){return Rt(s)&&yn(s)==Pt}function xie(s){return Rt(s)&&Sn(s)==_e}var Cie=af(M0),wie=af(function(s,l){return s<=l});function zP(s){if(!s)return[];if(Dn(s))return vf(s)?kr(s):Rn(s);if(Pl&&s[Pl])return ete(s[Pl]());var l=yn(s),h=l==ve?b0:l==xt?Rd:la;return h(s)}function To(s){if(!s)return s===0?s:0;if(s=Tr(s),s===$||s===-$){var l=s<0?-1:1;return l*ie}return s===s?s:0}function Ge(s){var l=To(s),h=l%1;return l===l?h?l-h:l:0}function UP(s){return s?Hi(Ge(s),0,ee):0}function Tr(s){if(typeof s=="number")return s;if($n(s))return U;if(jt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=jt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=lO(s);var h=n0.test(s);return h||He.test(s)?Lee(s.slice(2),h?2:8):t0.test(s)?U:+s}function HP(s){return qr(s,Ln(s))}function Sie(s){return s?Hi(Ge(s),-W,W):s===0?s:0}function ct(s){return s==null?"":qn(s)}var Eie=oa(function(s,l){if(Vl(l)||Dn(l)){qr(l,$t(l),s);return}for(var h in l)dt.call(l,h)&&_l(s,h,l[h])}),GP=oa(function(s,l){qr(l,Ln(l),s)}),yf=oa(function(s,l,h,C){qr(l,Ln(l),s,C)}),Tie=oa(function(s,l,h,C){qr(l,$t(l),s,C)}),Aie=wo(T0);function Iie(s,l){var h=ra(s);return l==null?h:SO(h,l)}var Oie=Xe(function(s,l){s=ft(s);var h=-1,C=l.length,I=C>2?l[2]:n;for(I&&En(l[0],l[1],I)&&(C=1);++h<C;)for(var F=l[h],B=Ln(F),z=-1,Q=B.length;++z<Q;){var ae=B[z],le=s[ae];(le===n||Fr(le,ea[ae])&&!dt.call(s,ae))&&(s[ae]=F[ae])}return s}),Pie=Xe(function(s){return s.push(n,lP),Qn(YP,n,s)});function jie(s,l){return oO(s,je(l,3),Jr)}function kie(s,l){return oO(s,je(l,3),I0)}function Mie(s,l){return s==null?s:A0(s,je(l,3),Ln)}function Fie(s,l){return s==null?s:OO(s,je(l,3),Ln)}function _ie(s,l){return s&&Jr(s,je(l,3))}function Rie(s,l){return s&&I0(s,je(l,3))}function Die(s){return s==null?[]:qd(s,$t(s))}function Lie(s){return s==null?[]:qd(s,Ln(s))}function iv(s,l,h){var C=s==null?n:Gi(s,l);return C===n?h:C}function Bie(s,l){return s!=null&&dP(s,l,ane)}function sv(s,l){return s!=null&&dP(s,l,lne)}var Nie=rP(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=Nd.call(l)),s[l]=h},lv(Bn)),Vie=rP(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=Nd.call(l)),dt.call(s,l)?s[l].push(h):s[l]=[h]},je),Wie=Xe(Dl);function $t(s){return Dn(s)?CO(s):k0(s)}function Ln(s){return Dn(s)?CO(s,!0):yne(s)}function zie(s,l){var h={};return l=je(l,3),Jr(s,function(C,I,F){xo(h,l(C,I,F),C)}),h}function Uie(s,l){var h={};return l=je(l,3),Jr(s,function(C,I,F){xo(h,I,l(C,I,F))}),h}var Hie=oa(function(s,l,h){$d(s,l,h)}),YP=oa(function(s,l,h,C){$d(s,l,h,C)}),Gie=wo(function(s,l){var h={};if(s==null)return h;var C=!1;l=Tt(l,function(F){return F=ri(F,s),C||(C=F.length>1),F}),qr(s,G0(s),h),C&&(h=wr(h,g|v|y,Nne));for(var I=l.length;I--;)L0(h,l[I]);return h});function Yie(s,l){return KP(s,gf(je(l)))}var Kie=wo(function(s,l){return s==null?{}:xne(s,l)});function KP(s,l){if(s==null)return{};var h=Tt(G0(s),function(C){return[C]});return l=je(l),BO(s,h,function(C,I){return l(C,I[0])})}function Xie(s,l,h){l=ri(l,s);var C=-1,I=l.length;for(I||(I=1,s=n);++C<I;){var F=s==null?n:s[$r(l[C])];F===n&&(C=I,F=h),s=Eo(F)?F.call(s):F}return s}function Zie(s,l,h){return s==null?s:Bl(s,l,h)}function Qie(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:Bl(s,l,h,C)}var XP=sP($t),ZP=sP(Ln);function Jie(s,l,h){var C=ze(s),I=C||ii(s)||aa(s);if(l=je(l,4),h==null){var F=s&&s.constructor;I?h=C?new F:[]:jt(s)?h=Eo(F)?ra(zd(s)):{}:h={}}return(I?br:Jr)(s,function(B,z,Q){return l(h,B,z,Q)}),h}function qie(s,l){return s==null?!0:L0(s,l)}function $ie(s,l,h){return s==null?s:UO(s,l,V0(h))}function ese(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:UO(s,l,V0(h),C)}function la(s){return s==null?[]:y0(s,$t(s))}function tse(s){return s==null?[]:y0(s,Ln(s))}function nse(s,l,h){return h===n&&(h=l,l=n),h!==n&&(h=Tr(h),h=h===h?h:0),l!==n&&(l=Tr(l),l=l===l?l:0),Hi(Tr(s),l,h)}function rse(s,l,h){return l=To(l),h===n?(h=l,l=0):h=To(h),s=Tr(s),cne(s,l,h)}function ose(s,l,h){if(h&&typeof h!="boolean"&&En(s,l,h)&&(l=h=n),h===n&&(typeof l=="boolean"?(h=l,l=n):typeof s=="boolean"&&(h=s,s=n)),s===n&&l===n?(s=0,l=1):(s=To(s),l===n?(l=s,s=0):l=To(l)),s>l){var C=s;s=l,l=C}if(h||s%1||l%1){var I=bO();return vn(s+I*(l-s+Dee("1e-"+((I+"").length-1))),l)}return _0(s,l)}var ise=ia(function(s,l,h){return l=l.toLowerCase(),s+(h?QP(l):l)});function QP(s){return av(ct(s).toLowerCase())}function JP(s){return s=ct(s),s&&s.replace(aee,Zee).replace(Aee,"")}function sse(s,l,h){s=ct(s),l=qn(l);var C=s.length;h=h===n?C:Hi(Ge(h),0,C);var I=h;return h-=l.length,h>=0&&s.slice(h,I)==l}function ase(s){return s=ct(s),s&&wd.test(s)?s.replace(El,Qee):s}function lse(s){return s=ct(s),s&&Al.test(s)?s.replace(vo,"\\$&"):s}var cse=ia(function(s,l,h){return s+(h?"-":"")+l.toLowerCase()}),use=ia(function(s,l,h){return s+(h?" ":"")+l.toLowerCase()}),dse=eP("toLowerCase");function fse(s,l,h){s=ct(s),l=Ge(l);var C=l?qs(s):0;if(!l||C>=l)return s;var I=(l-C)/2;return sf(Yd(I),h)+s+sf(Gd(I),h)}function pse(s,l,h){s=ct(s),l=Ge(l);var C=l?qs(s):0;return l&&C<l?s+sf(l-C,h):s}function hse(s,l,h){s=ct(s),l=Ge(l);var C=l?qs(s):0;return l&&C<l?sf(l-C,h)+s:s}function gse(s,l,h){return h||l==null?l=0:l&&(l=+l),wte(ct(s).replace(mn,""),l||0)}function mse(s,l,h){return(h?En(s,l,h):l===n)?l=1:l=Ge(l),R0(ct(s),l)}function vse(){var s=arguments,l=ct(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var yse=ia(function(s,l,h){return s+(h?"_":"")+l.toLowerCase()});function bse(s,l,h){return h&&typeof h!="number"&&En(s,l,h)&&(l=h=n),h=h===n?ee:h>>>0,h?(s=ct(s),s&&(typeof l=="string"||l!=null&&!ov(l))&&(l=qn(l),!l&&Js(s))?oi(kr(s),0,h):s.split(l,h)):[]}var xse=ia(function(s,l,h){return s+(h?" ":"")+av(l)});function Cse(s,l,h){return s=ct(s),h=h==null?0:Hi(Ge(h),0,s.length),l=qn(l),s.slice(h,h+l.length)==l}function wse(s,l,h){var C=M.templateSettings;h&&En(s,l,h)&&(l=n),s=ct(s),l=yf({},l,C,aP);var I=yf({},l.imports,C.imports,aP),F=$t(I),B=y0(I,F),z,Q,ae=0,le=l.interpolate||jd,ce="__p += '",xe=x0((l.escape||jd).source+"|"+le.source+"|"+(le===Ed?Od:jd).source+"|"+(l.evaluate||jd).source+"|$","g"),Ae="//# sourceURL="+(dt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kee+"]")+`
205
205
  `;s.replace(xe,function(Me,Qe,qe,er,Tn,tr){return qe||(qe=er),ce+=s.slice(ae,tr).replace(lee,Jee),Qe&&(z=!0,ce+=`' +
206
206
  __e(`+Qe+`) +
207
207
  '`),Tn&&(Q=!0,ce+=`';
@@ -218,9 +218,9 @@ __p += '`),qe&&(ce+=`' +
218
218
  function print() { __p += __j.call(arguments, '') }
219
219
  `:`;
220
220
  `)+ce+`return __p
221
- }`;var Ye=$P(function(){return ot(F,Ae+"return "+ce).apply(n,B)});if(Ye.source=ce,rv(Ye))throw Ye;return Ye}function Sse(s){return ct(s).toLowerCase()}function Ese(s){return ct(s).toUpperCase()}function Tse(s,l,h){if(s=ct(s),s&&(h||l===n))return lO(s);if(!s||!(l=qn(l)))return s;var C=kr(s),I=kr(l),F=cO(C,I),B=uO(C,I)+1;return oi(C,F,B).join("")}function Ase(s,l,h){if(s=ct(s),s&&(h||l===n))return s.slice(0,fO(s)+1);if(!s||!(l=qn(l)))return s;var C=kr(s),I=uO(C,kr(l))+1;return oi(C,0,I).join("")}function Ise(s,l,h){if(s=ct(s),s&&(h||l===n))return s.replace(mn,"");if(!s||!(l=qn(l)))return s;var C=kr(s),I=cO(C,kr(l));return oi(C,I).join("")}function Ose(s,l){var h=X,C=G;if(jt(l)){var I="separator"in l?l.separator:I;h="length"in l?Ge(l.length):h,C="omission"in l?qn(l.omission):C}s=ct(s);var F=s.length;if(Js(s)){var B=kr(s);F=B.length}if(h>=F)return s;var z=h-qs(C);if(z<1)return C;var Q=B?oi(B,0,z).join(""):s.slice(0,z);if(I===n)return Q+C;if(B&&(z+=Q.length-z),ov(I)){if(s.slice(z).search(I)){var ae,le=Q;for(I.global||(I=x0(I.source,ct(Pd.exec(I))+"g")),I.lastIndex=0;ae=I.exec(le);)var ce=ae.index;Q=Q.slice(0,ce===n?z:ce)}}else if(s.indexOf(qn(I),z)!=z){var xe=Q.lastIndexOf(I);xe>-1&&(Q=Q.slice(0,xe))}return Q+C}function Pse(s){return s=ct(s),s&&Cd.test(s)?s.replace(xd,ote):s}var jse=ia(function(s,l,h){return s+(h?" ":"")+l.toUpperCase()}),av=eP("toUpperCase");function qP(s,l,h){return s=ct(s),l=h?n:l,l===n?$ee(s)?ate(s):Hee(s):s.match(l)||[]}var $P=Xe(function(s,l){try{return Qn(s,n,l)}catch(h){return rv(h)?h:new Ve(h)}}),kse=wo(function(s,l){return br(l,function(h){h=$r(h),xo(s,h,tv(s[h],s))}),s});function Mse(s){var l=s==null?0:s.length,h=je();return s=l?Tt(s,function(C){if(typeof C[1]!="function")throw new xr(a);return[h(C[0]),C[1]]}):[],Xe(function(C){for(var I=-1;++I<l;){var F=s[I];if(Qn(F[0],this,C))return Qn(F[1],this,C)}})}function Fse(s){return one(wr(s,g))}function lv(s){return function(){return s}}function _se(s,l){return s==null||s!==s?l:s}var Rse=nP(),Dse=nP(!0);function Bn(s){return s}function cv(s){return MO(typeof s=="function"?s:wr(s,g))}function Lse(s){return _O(wr(s,g))}function Bse(s,l){return RO(s,wr(l,g))}var Nse=Xe(function(s,l){return function(h){return Rl(h,s,l)}}),Vse=Xe(function(s,l){return function(h){return Rl(s,h,l)}});function uv(s,l,h){var C=$t(l),I=qd(l,C);h==null&&!(jt(l)&&(I.length||!C.length))&&(h=l,l=s,s=this,I=qd(l,$t(l)));var F=!(jt(h)&&"chain"in h)||!!h.chain,B=Eo(s);return br(I,function(z){var Q=l[z];s[z]=Q,B&&(s.prototype[z]=function(){var ae=this.__chain__;if(F||ae){var le=s(this.__wrapped__),ce=le.__actions__=Rn(this.__actions__);return ce.push({func:Q,args:arguments,thisArg:s}),le.__chain__=ae,le}return Q.apply(s,qo([this.value()],arguments))})}),s}function Wse(){return an._===this&&(an._=pte),this}function dv(){}function zse(s){return s=Ge(s),Xe(function(l){return DO(l,s)})}var Use=z0(Tt),Hse=z0(rO),Gse=z0(p0);function ej(s){return Z0(s)?h0($r(s)):Cne(s)}function Yse(s){return function(l){return s==null?n:Gi(s,l)}}var Kse=oP(),Xse=oP(!0);function fv(){return[]}function pv(){return!1}function Zse(){return{}}function Qse(){return""}function Jse(){return!0}function qse(s,l){if(s=Ge(s),s<1||s>W)return[];var h=ee,C=vn(s,ee);l=je(l),s-=ee;for(var I=v0(C,l);++h<s;)l(h);return I}function $se(s){return ze(s)?Tt(s,$r):$n(s)?[s]:Rn(xP(ct(s)))}function eae(s){var l=++dte;return ct(s)+l}var tae=of(function(s,l){return s+l},0),nae=U0("ceil"),rae=of(function(s,l){return s/l},1),oae=U0("floor");function iae(s){return s&&s.length?Jd(s,Bn,O0):n}function sae(s,l){return s&&s.length?Jd(s,je(l,2),O0):n}function aae(s){return sO(s,Bn)}function lae(s,l){return sO(s,je(l,2))}function cae(s){return s&&s.length?Jd(s,Bn,M0):n}function uae(s,l){return s&&s.length?Jd(s,je(l,2),M0):n}var dae=of(function(s,l){return s*l},1),fae=U0("round"),pae=of(function(s,l){return s-l},0);function hae(s){return s&&s.length?m0(s,Bn):0}function gae(s,l){return s&&s.length?m0(s,je(l,2)):0}return M.after=Loe,M.ary=kP,M.assign=Eie,M.assignIn=GP,M.assignInWith=yf,M.assignWith=Tie,M.at=Aie,M.before=MP,M.bind=tv,M.bindAll=kse,M.bindKey=FP,M.castArray=Zoe,M.chain=OP,M.chunk=ore,M.compact=ire,M.concat=sre,M.cond=Mse,M.conforms=Fse,M.constant=lv,M.countBy=hoe,M.create=Iie,M.curry=_P,M.curryRight=RP,M.debounce=DP,M.defaults=Oie,M.defaultsDeep=Pie,M.defer=Boe,M.delay=Noe,M.difference=are,M.differenceBy=lre,M.differenceWith=cre,M.drop=ure,M.dropRight=dre,M.dropRightWhile=fre,M.dropWhile=pre,M.fill=hre,M.filter=moe,M.flatMap=boe,M.flatMapDeep=xoe,M.flatMapDepth=Coe,M.flatten=EP,M.flattenDeep=gre,M.flattenDepth=mre,M.flip=Voe,M.flow=Rse,M.flowRight=Dse,M.fromPairs=vre,M.functions=Die,M.functionsIn=Lie,M.groupBy=woe,M.initial=bre,M.intersection=xre,M.intersectionBy=Cre,M.intersectionWith=wre,M.invert=Nie,M.invertBy=Vie,M.invokeMap=Eoe,M.iteratee=cv,M.keyBy=Toe,M.keys=$t,M.keysIn=Ln,M.map=ff,M.mapKeys=zie,M.mapValues=Uie,M.matches=Lse,M.matchesProperty=Bse,M.memoize=hf,M.merge=Hie,M.mergeWith=YP,M.method=Nse,M.methodOf=Vse,M.mixin=uv,M.negate=gf,M.nthArg=zse,M.omit=Gie,M.omitBy=Yie,M.once=Woe,M.orderBy=Aoe,M.over=Use,M.overArgs=zoe,M.overEvery=Hse,M.overSome=Gse,M.partial=nv,M.partialRight=LP,M.partition=Ioe,M.pick=Kie,M.pickBy=KP,M.property=ej,M.propertyOf=Yse,M.pull=Are,M.pullAll=AP,M.pullAllBy=Ire,M.pullAllWith=Ore,M.pullAt=Pre,M.range=Kse,M.rangeRight=Xse,M.rearg=Uoe,M.reject=joe,M.remove=jre,M.rest=Hoe,M.reverse=$0,M.sampleSize=Moe,M.set=Zie,M.setWith=Qie,M.shuffle=Foe,M.slice=kre,M.sortBy=Doe,M.sortedUniq=Bre,M.sortedUniqBy=Nre,M.split=bse,M.spread=Goe,M.tail=Vre,M.take=Wre,M.takeRight=zre,M.takeRightWhile=Ure,M.takeWhile=Hre,M.tap=ioe,M.throttle=Yoe,M.thru=df,M.toArray=zP,M.toPairs=XP,M.toPairsIn=ZP,M.toPath=$se,M.toPlainObject=HP,M.transform=Jie,M.unary=Koe,M.union=Gre,M.unionBy=Yre,M.unionWith=Kre,M.uniq=Xre,M.uniqBy=Zre,M.uniqWith=Qre,M.unset=qie,M.unzip=ev,M.unzipWith=IP,M.update=$ie,M.updateWith=ese,M.values=la,M.valuesIn=tse,M.without=Jre,M.words=qP,M.wrap=Xoe,M.xor=qre,M.xorBy=$re,M.xorWith=eoe,M.zip=toe,M.zipObject=noe,M.zipObjectDeep=roe,M.zipWith=ooe,M.entries=XP,M.entriesIn=ZP,M.extend=GP,M.extendWith=yf,uv(M,M),M.add=tae,M.attempt=$P,M.camelCase=ise,M.capitalize=QP,M.ceil=nae,M.clamp=nse,M.clone=Qoe,M.cloneDeep=qoe,M.cloneDeepWith=$oe,M.cloneWith=Joe,M.conformsTo=eie,M.deburr=JP,M.defaultTo=_se,M.divide=rae,M.endsWith=sse,M.eq=Fr,M.escape=ase,M.escapeRegExp=lse,M.every=goe,M.find=voe,M.findIndex=wP,M.findKey=jie,M.findLast=yoe,M.findLastIndex=SP,M.findLastKey=kie,M.floor=oae,M.forEach=PP,M.forEachRight=jP,M.forIn=Mie,M.forInRight=Fie,M.forOwn=_ie,M.forOwnRight=Rie,M.get=iv,M.gt=tie,M.gte=nie,M.has=Bie,M.hasIn=sv,M.head=TP,M.identity=Bn,M.includes=Soe,M.indexOf=yre,M.inRange=rse,M.invoke=Wie,M.isArguments=Xi,M.isArray=ze,M.isArrayBuffer=rie,M.isArrayLike=Dn,M.isArrayLikeObject=Nt,M.isBoolean=oie,M.isBuffer=ii,M.isDate=iie,M.isElement=sie,M.isEmpty=aie,M.isEqual=lie,M.isEqualWith=cie,M.isError=rv,M.isFinite=uie,M.isFunction=Eo,M.isInteger=BP,M.isLength=mf,M.isMap=NP,M.isMatch=die,M.isMatchWith=fie,M.isNaN=pie,M.isNative=hie,M.isNil=mie,M.isNull=gie,M.isNumber=VP,M.isObject=jt,M.isObjectLike=Rt,M.isPlainObject=Wl,M.isRegExp=ov,M.isSafeInteger=vie,M.isSet=WP,M.isString=vf,M.isSymbol=$n,M.isTypedArray=aa,M.isUndefined=yie,M.isWeakMap=bie,M.isWeakSet=xie,M.join=Sre,M.kebabCase=cse,M.last=Er,M.lastIndexOf=Ere,M.lowerCase=use,M.lowerFirst=dse,M.lt=Cie,M.lte=wie,M.max=iae,M.maxBy=sae,M.mean=aae,M.meanBy=lae,M.min=cae,M.minBy=uae,M.stubArray=fv,M.stubFalse=pv,M.stubObject=Zse,M.stubString=Qse,M.stubTrue=Jse,M.multiply=dae,M.nth=Tre,M.noConflict=Wse,M.noop=dv,M.now=pf,M.pad=fse,M.padEnd=pse,M.padStart=hse,M.parseInt=gse,M.random=ose,M.reduce=Ooe,M.reduceRight=Poe,M.repeat=mse,M.replace=vse,M.result=Xie,M.round=fae,M.runInContext=K,M.sample=koe,M.size=_oe,M.snakeCase=yse,M.some=Roe,M.sortedIndex=Mre,M.sortedIndexBy=Fre,M.sortedIndexOf=_re,M.sortedLastIndex=Rre,M.sortedLastIndexBy=Dre,M.sortedLastIndexOf=Lre,M.startCase=xse,M.startsWith=Cse,M.subtract=pae,M.sum=hae,M.sumBy=gae,M.template=wse,M.times=qse,M.toFinite=To,M.toInteger=Ge,M.toLength=UP,M.toLower=Sse,M.toNumber=Tr,M.toSafeInteger=Sie,M.toString=ct,M.toUpper=Ese,M.trim=Tse,M.trimEnd=Ase,M.trimStart=Ise,M.truncate=Ose,M.unescape=Pse,M.uniqueId=eae,M.upperCase=jse,M.upperFirst=av,M.each=PP,M.eachRight=jP,M.first=TP,uv(M,function(){var s={};return Jr(M,function(l,h){dt.call(M.prototype,h)||(s[h]=l)}),s}(),{chain:!1}),M.VERSION=r,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){M[s].placeholder=M}),br(["drop","take"],function(s,l){Je.prototype[s]=function(h){h=h===n?1:Jt(Ge(h),0);var C=this.__filtered__&&!l?new Je(this):this.clone();return C.__filtered__?C.__takeCount__=vn(h,C.__takeCount__):C.__views__.push({size:vn(h,ee),type:s+(C.__dir__<0?"Right":"")}),C},Je.prototype[s+"Right"]=function(h){return this.reverse()[s](h).reverse()}}),br(["filter","map","takeWhile"],function(s,l){var h=l+1,C=h==Z||h==V;Je.prototype[s]=function(I){var F=this.clone();return F.__iteratees__.push({iteratee:je(I,3),type:h}),F.__filtered__=F.__filtered__||C,F}}),br(["head","last"],function(s,l){var h="take"+(l?"Right":"");Je.prototype[s]=function(){return this[h](1).value()[0]}}),br(["initial","tail"],function(s,l){var h="drop"+(l?"":"Right");Je.prototype[s]=function(){return this.__filtered__?new Je(this):this[h](1)}}),Je.prototype.compact=function(){return this.filter(Bn)},Je.prototype.find=function(s){return this.filter(s).head()},Je.prototype.findLast=function(s){return this.reverse().find(s)},Je.prototype.invokeMap=Xe(function(s,l){return typeof s=="function"?new Je(this):this.map(function(h){return Rl(h,s,l)})}),Je.prototype.reject=function(s){return this.filter(gf(je(s)))},Je.prototype.slice=function(s,l){s=Ge(s);var h=this;return h.__filtered__&&(s>0||l<0)?new Je(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),l!==n&&(l=Ge(l),h=l<0?h.dropRight(-l):h.take(l-s)),h)},Je.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Je.prototype.toArray=function(){return this.take(ee)},Jr(Je.prototype,function(s,l){var h=/^(?:filter|find|map|reject)|While$/.test(l),C=/^(?:head|last)$/.test(l),I=M[C?"take"+(l=="last"?"Right":""):l],F=C||/^find/.test(l);I&&(M.prototype[l]=function(){var B=this.__wrapped__,z=C?[1]:arguments,Q=B instanceof Je,ae=z[0],le=Q||ze(B),ce=function(Qe){var qe=I.apply(M,qo([Qe],z));return C&&xe?qe[0]:qe};le&&h&&typeof ae=="function"&&ae.length!=1&&(Q=le=!1);var xe=this.__chain__,Ae=!!this.__actions__.length,ke=F&&!xe,Ye=Q&&!Ae;if(!F&&le){B=Ye?B:new Je(this);var Me=s.apply(B,z);return Me.__actions__.push({func:df,args:[ce],thisArg:n}),new Cr(Me,xe)}return ke&&Ye?s.apply(this,z):(Me=this.thru(ce),ke?C?Me.value()[0]:Me.value():Me)})}),br(["pop","push","shift","sort","splice","unshift"],function(s){var l=Dd[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",C=/^(?:pop|shift)$/.test(s);M.prototype[s]=function(){var I=arguments;if(C&&!this.__chain__){var F=this.value();return l.apply(ze(F)?F:[],I)}return this[h](function(B){return l.apply(ze(B)?B:[],I)})}}),Jr(Je.prototype,function(s,l){var h=M[l];if(h){var C=h.name+"";dt.call(na,C)||(na[C]=[]),na[C].push({name:l,func:h})}}),na[rf(n,A).name]=[{name:"wrapper",func:n}],Je.prototype.clone=Pte,Je.prototype.reverse=jte,Je.prototype.value=kte,M.prototype.at=soe,M.prototype.chain=aoe,M.prototype.commit=loe,M.prototype.next=coe,M.prototype.plant=doe,M.prototype.reverse=foe,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=poe,M.prototype.first=M.prototype.head,Ol&&(M.prototype[Ol]=uoe),M},$s=lte();Vi?((Vi.exports=$s)._=$s,c0._=$s):an._=$s}).call(xn)}(Wu,Wu.exports);var Ze=Wu.exports;const te=Dr(Ze),qG=["e-","entities/"];function $G(e){let t=e;return qG.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function eY(e,t){var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"}function tY(e,t){const n=$G(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function yg(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=yg(o.children,t),n))return n}return n}function xS(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&eY(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=xS(i.children,t),r))return r}return r}function CS(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=CS(o.children,t),n))return n}return n}function wS(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(wS)),e.children&&e.children.length>0):!1}function SS(e){return e.children&&e.children.forEach(t=>{t.parent=e,SS(t)}),e}function nY(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(v=>i(v)),g}const a=Object.keys(t);function c(g,v){return g.children&&(g.children=g.children.filter(y=>{if(y.resource===!1){const b=y.roles||[];return!!(b.length===0||b.some(x=>o.includes(x)))}return y.type==="item"?v.includes(y.id):(c(y,v),y.children&&y.children.length>0)})),g}const u=te.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>c(g,a)),d=Object.values(t).map(g=>{var v;return((v=g.options)==null?void 0:v.group)||"admin"}).filter((g,v,y)=>y.indexOf(g)===v).filter(g=>g!==void 0&&CS(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:Ue.AntDesignOutlined,children:[]})),p=[...u,...d];return Object.values(t).forEach(g=>{var j,T,P,O;const v=xS(p,g),y=(j=v==null?void 0:v.children)==null?void 0:j.find(_=>_.id===g.name),b=(T=v==null?void 0:v.children)==null?void 0:T.some(_=>_.id===g.name),x=(y==null?void 0:y.roles)||((P=g.options)==null?void 0:P.roles)||[],w=!x||x.length===0||x.some(_=>o.includes(_));if(!tY(g,n)||g.list||!w){b&&v&&v.children&&((O=v==null?void 0:v.children)==null?void 0:O.length)>0&&(v.children=v.children.filter(_=>_.id!==g.name));return}v&&(v.children||(v.children=[]))}),p.filter(wS).map(SS)}function il(){throw new Error("Not implemented")}const ES={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:il,openDrawer:il,activeID:il,hasError:il,setMenu:il},TS=E.createContext(ES);function AS({menu:e,children:t}){const[n,r]=E.useState({...ES,menu:e});function o(d){r(p=>({...p,menu:d}))}function i(d){r(p=>({...p,openItem:d}))}function a(d){r(p=>({...p,selectedID:d}))}function c(d){r(p=>({...p,drawerOpen:d}))}function u(d){r(p=>({...p,error:d}))}return E.useEffect(()=>{o(e)},[e]),f.jsx(TS.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:c,activeID:a,hasError:u},children:t})}function zu(){return E.useContext(TS)}function bg(){const e=q.useResourceDefinitions(),{isLoading:t,data:n}=q.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=q.usePermissions(r),{menu:i}=zu(),a=q.useTranslate(),c=E.useMemo(()=>{if(t||!n)return null;const p=((n==null?void 0:n.roles)||[]).map(v=>v.id);return nY(i,e,o,a,p)},[t,n,e,o,a,i]),u=E.useMemo(()=>t,[t]);function d(p){if(c)return yg(c,p)}return{menu:c,isLoading:u,getItem:d,findInMenu:u?()=>{}:yg}}function IS(){const e=q.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=bg(),{pathname:o}=ai.useLocation();return E.useMemo(()=>{var v;const i=o.split("/").filter(y=>y),a=te.cloneDeep(n);let c=o,u=r(a,o);if((!u||u.type==="collapse"||u.type==="group")&&(u=r(a,i[i.length-1]),c=u?u.id:c),!u||u.type==="collapse"||u.type==="group")for(let y=i.length;y>=0;y--){const b=i.slice(0,y).join("/");if(u=r(a,b),u){c=u.id;break}}const d=(v=u==null?void 0:u.url)==null?void 0:v.split("/"),p=(d==null?void 0:d.length)||0;if(i.length>=p){const y=i[i.length-1];if(u){const b=y==="create"||o===u.url?"create":"edit",x=`resources.${c}.breadcrumbs.${b}`,w={id:`${c}-${b}`,type:"item",title:e(x,{_:e(x,{_:x})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(w),u=w}}let g=[];if(u){let y={...u,last:!0};for(;y;)g.push(y),y=y.parent;g=g.reverse()}return{isLoading:t,navigation:{items:a},breadcrumbs:g}},[t,o,n,r,e])}function sl(){return zu()}function Ir(e,t,n){const r=te.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(a=>te.isFunction(a)?a:void 0).value();n!=null&&n.defaults?te.defaultsDeep(r,t):te.merge(r,t);const[o,i]=E.useState(r);return E.useEffect(()=>{te.isEqual(o,r)||i(r)},[o,r]),o}function rY(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function Ti(e){this._maxSize=e,this.clear()}Ti.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Ti.prototype.get=function(e){return this._values[e]},Ti.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var oY=/[^.^\]^[]+|(?=\[\]|\.\.)/g,OS=/^\d+$/,iY=/^\d/,sY=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,aY=/^\s*(['"]?)(.*?)(\1)\s*$/,xg=512,PS=new Ti(xg),jS=new Ti(xg),kS=new Ti(xg),Ai={Cache:Ti,split:wg,normalizePath:Cg,setter:function(e){var t=Cg(e);return jS.get(e)||jS.set(e,function(r,o){for(var i=0,a=t.length,c=r;i<a-1;){var u=t[i];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;c=c[t[i++]]}c[t[i]]=o})},getter:function(e,t){var n=Cg(e);return kS.get(e)||kS.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(Sg(n)||OS.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){lY(Array.isArray(e)?e:wg(e),t,n)}};function Cg(e){return PS.get(e)||PS.set(e,wg(e).map(function(t){return t.replace(aY,"$2")}))}function wg(e){return e.match(oY)||[""]}function lY(e,t,n){var r=e.length,o,i,a,c;for(i=0;i<r;i++)o=e[i],o&&(dY(o)&&(o='"'+o+'"'),c=Sg(o),a=!c&&/^\d+$/.test(o),t.call(n,o,c,a,i,e))}function Sg(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function cY(e){return e.match(iY)&&!e.match(OS)}function uY(e){return sY.test(e)}function dY(e){return!Sg(e)&&(cY(e)||uY(e))}const fY=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Uu=e=>e.match(fY)||[],Hu=e=>e[0].toUpperCase()+e.slice(1),Eg=(e,t)=>Uu(e).join(t).toLowerCase(),MS=e=>Uu(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var Tg={words:Uu,upperFirst:Hu,camelCase:MS,pascalCase:e=>Hu(MS(e)),snakeCase:e=>Eg(e,"_"),kebabCase:e=>Eg(e,"-"),sentenceCase:e=>Hu(Eg(e," ")),titleCase:e=>Uu(e).map(Hu).join(" ")},Ag={exports:{}};Ag.exports=function(e){return FS(pY(e),e)},Ag.exports.array=FS;function FS(e,t){var n=e.length,r=new Array(n),o={},i=n,a=hY(t),c=gY(e);for(t.forEach(function(d){if(!c.has(d[0])||!c.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||u(e[i],i,new Set);return r;function u(d,p,g){if(g.has(d)){var v;try{v=", node was:"+JSON.stringify(d)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!c.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!o[p]){o[p]=!0;var y=a.get(d)||new Set;if(y=Array.from(y),p=y.length){g.add(d);do{var b=y[--p];u(b,c.get(b),g)}while(p);g.delete(d)}r[--n]=d}}}function pY(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function hY(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function gY(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var mY=Ag.exports;const vY=Dr(mY),yY=Object.prototype.toString,bY=Error.prototype.toString,xY=RegExp.prototype.toString,CY=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",wY=/^Symbol\((.*)\)(.*)$/;function SY(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function _S(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return SY(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return CY.call(e).replace(wY,"Symbol($1)");const r=yY.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+bY.call(e)+"]":r==="RegExp"?xY.call(e):null}function zo(e,t){let n=_S(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=_S(this[r],t);return i!==null?i:o},2)}function RS(e){return e==null?[]:[].concat(e)}let DS,LS,BS,EY=/\$\{\s*(\w+)\s*\}/g;DS=Symbol.toStringTag;class NS{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[DS]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],RS(t).forEach(i=>{if(kn.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}LS=Symbol.hasInstance,BS=Symbol.toStringTag;class kn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(EY,(o,i)=>zo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new NS(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[BS]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,kn)}static[LS](t){return NS[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Kr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${zo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${zo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${zo(n,!0)}\``+o}},Mn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Uo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ig={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},TY={isValue:"${path} field must be ${value}"},Gu={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Kr,string:Mn,number:Uo,date:Ig,object:Gu,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:TY,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${zo(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${zo(n,!0)}\``}return kn.formatError(Kr.notType,e)}}});const Og=e=>e&&e.__isYupSchema__;class Yu{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new Yu(t,(c,u)=>{var d;let p=a(...c)?o:i;return(d=p==null?void 0:p(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Og(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Ku={context:"$",value:"."};class Ii{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ku.context,this.isValue=this.key[0]===Ku.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Ku.context:this.isValue?Ku.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ai.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ii.prototype.__isYupRef=!0;const ho=e=>e==null;function Ms(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},c,u){const{name:d,test:p,params:g,message:v,skipAbsent:y}=e;let{parent:b,context:x,abortEarly:w=a.spec.abortEarly,disableStackTrace:A=a.spec.disableStackTrace}=o;function j(G){return Ii.isRef(G)?G.getValue(n,b,x):G}function T(G={}){const re=Object.assign({value:n,originalValue:i,label:a.spec.label,path:G.path||r,spec:a.spec,disableStackTrace:G.disableStackTrace||A},g,G.params);for(const Z of Object.keys(re))re[Z]=j(re[Z]);const ne=new kn(kn.formatError(G.message||v,re),n,re.path,G.type||d,re.disableStackTrace);return ne.params=re,ne}const P=w?c:u;let O={path:r,parent:b,type:d,from:o.from,createError:T,resolve:j,options:o,originalValue:i,schema:a};const _=G=>{kn.isError(G)?P(G):G?u(null):P(T())},R=G=>{kn.isError(G)?P(G):c(G)};if(y&&ho(n))return _(!0);let Y;try{var X;if(Y=p.call(O,n,O),typeof((X=Y)==null?void 0:X.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Y).then(_,R)}}catch(G){R(G);return}_(Y)}return t.OPTIONS=e,t}function AY(e,t,n,r=n){let o,i,a;return t?(Ai.forEach(t,(c,u,d)=>{let p=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",v=d?parseInt(p,10):0;if(e.innerType||g){if(g&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[v],e=g?e.spec.types[v]:e.innerType}if(!d){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}i=p,a=u?"["+c+"]":"."+c}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Xu extends Set{describe(){const t=[];for(const n of this.values())t.push(Ii.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Xu(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Fs(e,t=new Map){if(Og(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Fs(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Fs(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Fs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Fs(o,t)}else throw Error(`Unable to clone ${e}`);return n}class pr{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Xu,this._blacklist=new Xu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Kr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Fs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&ho(i))return i;let a=zo(t),c=zo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
221
+ }`;var Ye=$P(function(){return ot(F,Ae+"return "+ce).apply(n,B)});if(Ye.source=ce,rv(Ye))throw Ye;return Ye}function Sse(s){return ct(s).toLowerCase()}function Ese(s){return ct(s).toUpperCase()}function Tse(s,l,h){if(s=ct(s),s&&(h||l===n))return lO(s);if(!s||!(l=qn(l)))return s;var C=kr(s),I=kr(l),F=cO(C,I),B=uO(C,I)+1;return oi(C,F,B).join("")}function Ase(s,l,h){if(s=ct(s),s&&(h||l===n))return s.slice(0,fO(s)+1);if(!s||!(l=qn(l)))return s;var C=kr(s),I=uO(C,kr(l))+1;return oi(C,0,I).join("")}function Ise(s,l,h){if(s=ct(s),s&&(h||l===n))return s.replace(mn,"");if(!s||!(l=qn(l)))return s;var C=kr(s),I=cO(C,kr(l));return oi(C,I).join("")}function Ose(s,l){var h=X,C=G;if(jt(l)){var I="separator"in l?l.separator:I;h="length"in l?Ge(l.length):h,C="omission"in l?qn(l.omission):C}s=ct(s);var F=s.length;if(Js(s)){var B=kr(s);F=B.length}if(h>=F)return s;var z=h-qs(C);if(z<1)return C;var Q=B?oi(B,0,z).join(""):s.slice(0,z);if(I===n)return Q+C;if(B&&(z+=Q.length-z),ov(I)){if(s.slice(z).search(I)){var ae,le=Q;for(I.global||(I=x0(I.source,ct(Pd.exec(I))+"g")),I.lastIndex=0;ae=I.exec(le);)var ce=ae.index;Q=Q.slice(0,ce===n?z:ce)}}else if(s.indexOf(qn(I),z)!=z){var xe=Q.lastIndexOf(I);xe>-1&&(Q=Q.slice(0,xe))}return Q+C}function Pse(s){return s=ct(s),s&&Cd.test(s)?s.replace(xd,ote):s}var jse=ia(function(s,l,h){return s+(h?" ":"")+l.toUpperCase()}),av=eP("toUpperCase");function qP(s,l,h){return s=ct(s),l=h?n:l,l===n?$ee(s)?ate(s):Hee(s):s.match(l)||[]}var $P=Xe(function(s,l){try{return Qn(s,n,l)}catch(h){return rv(h)?h:new Ve(h)}}),kse=wo(function(s,l){return br(l,function(h){h=$r(h),xo(s,h,tv(s[h],s))}),s});function Mse(s){var l=s==null?0:s.length,h=je();return s=l?Tt(s,function(C){if(typeof C[1]!="function")throw new xr(a);return[h(C[0]),C[1]]}):[],Xe(function(C){for(var I=-1;++I<l;){var F=s[I];if(Qn(F[0],this,C))return Qn(F[1],this,C)}})}function Fse(s){return one(wr(s,g))}function lv(s){return function(){return s}}function _se(s,l){return s==null||s!==s?l:s}var Rse=nP(),Dse=nP(!0);function Bn(s){return s}function cv(s){return MO(typeof s=="function"?s:wr(s,g))}function Lse(s){return _O(wr(s,g))}function Bse(s,l){return RO(s,wr(l,g))}var Nse=Xe(function(s,l){return function(h){return Dl(h,s,l)}}),Vse=Xe(function(s,l){return function(h){return Dl(s,h,l)}});function uv(s,l,h){var C=$t(l),I=qd(l,C);h==null&&!(jt(l)&&(I.length||!C.length))&&(h=l,l=s,s=this,I=qd(l,$t(l)));var F=!(jt(h)&&"chain"in h)||!!h.chain,B=Eo(s);return br(I,function(z){var Q=l[z];s[z]=Q,B&&(s.prototype[z]=function(){var ae=this.__chain__;if(F||ae){var le=s(this.__wrapped__),ce=le.__actions__=Rn(this.__actions__);return ce.push({func:Q,args:arguments,thisArg:s}),le.__chain__=ae,le}return Q.apply(s,qo([this.value()],arguments))})}),s}function Wse(){return an._===this&&(an._=pte),this}function dv(){}function zse(s){return s=Ge(s),Xe(function(l){return DO(l,s)})}var Use=z0(Tt),Hse=z0(rO),Gse=z0(p0);function ej(s){return Z0(s)?h0($r(s)):Cne(s)}function Yse(s){return function(l){return s==null?n:Gi(s,l)}}var Kse=oP(),Xse=oP(!0);function fv(){return[]}function pv(){return!1}function Zse(){return{}}function Qse(){return""}function Jse(){return!0}function qse(s,l){if(s=Ge(s),s<1||s>W)return[];var h=ee,C=vn(s,ee);l=je(l),s-=ee;for(var I=v0(C,l);++h<s;)l(h);return I}function $se(s){return ze(s)?Tt(s,$r):$n(s)?[s]:Rn(xP(ct(s)))}function eae(s){var l=++dte;return ct(s)+l}var tae=of(function(s,l){return s+l},0),nae=U0("ceil"),rae=of(function(s,l){return s/l},1),oae=U0("floor");function iae(s){return s&&s.length?Jd(s,Bn,O0):n}function sae(s,l){return s&&s.length?Jd(s,je(l,2),O0):n}function aae(s){return sO(s,Bn)}function lae(s,l){return sO(s,je(l,2))}function cae(s){return s&&s.length?Jd(s,Bn,M0):n}function uae(s,l){return s&&s.length?Jd(s,je(l,2),M0):n}var dae=of(function(s,l){return s*l},1),fae=U0("round"),pae=of(function(s,l){return s-l},0);function hae(s){return s&&s.length?m0(s,Bn):0}function gae(s,l){return s&&s.length?m0(s,je(l,2)):0}return M.after=Loe,M.ary=kP,M.assign=Eie,M.assignIn=GP,M.assignInWith=yf,M.assignWith=Tie,M.at=Aie,M.before=MP,M.bind=tv,M.bindAll=kse,M.bindKey=FP,M.castArray=Zoe,M.chain=OP,M.chunk=ore,M.compact=ire,M.concat=sre,M.cond=Mse,M.conforms=Fse,M.constant=lv,M.countBy=hoe,M.create=Iie,M.curry=_P,M.curryRight=RP,M.debounce=DP,M.defaults=Oie,M.defaultsDeep=Pie,M.defer=Boe,M.delay=Noe,M.difference=are,M.differenceBy=lre,M.differenceWith=cre,M.drop=ure,M.dropRight=dre,M.dropRightWhile=fre,M.dropWhile=pre,M.fill=hre,M.filter=moe,M.flatMap=boe,M.flatMapDeep=xoe,M.flatMapDepth=Coe,M.flatten=EP,M.flattenDeep=gre,M.flattenDepth=mre,M.flip=Voe,M.flow=Rse,M.flowRight=Dse,M.fromPairs=vre,M.functions=Die,M.functionsIn=Lie,M.groupBy=woe,M.initial=bre,M.intersection=xre,M.intersectionBy=Cre,M.intersectionWith=wre,M.invert=Nie,M.invertBy=Vie,M.invokeMap=Eoe,M.iteratee=cv,M.keyBy=Toe,M.keys=$t,M.keysIn=Ln,M.map=ff,M.mapKeys=zie,M.mapValues=Uie,M.matches=Lse,M.matchesProperty=Bse,M.memoize=hf,M.merge=Hie,M.mergeWith=YP,M.method=Nse,M.methodOf=Vse,M.mixin=uv,M.negate=gf,M.nthArg=zse,M.omit=Gie,M.omitBy=Yie,M.once=Woe,M.orderBy=Aoe,M.over=Use,M.overArgs=zoe,M.overEvery=Hse,M.overSome=Gse,M.partial=nv,M.partialRight=LP,M.partition=Ioe,M.pick=Kie,M.pickBy=KP,M.property=ej,M.propertyOf=Yse,M.pull=Are,M.pullAll=AP,M.pullAllBy=Ire,M.pullAllWith=Ore,M.pullAt=Pre,M.range=Kse,M.rangeRight=Xse,M.rearg=Uoe,M.reject=joe,M.remove=jre,M.rest=Hoe,M.reverse=$0,M.sampleSize=Moe,M.set=Zie,M.setWith=Qie,M.shuffle=Foe,M.slice=kre,M.sortBy=Doe,M.sortedUniq=Bre,M.sortedUniqBy=Nre,M.split=bse,M.spread=Goe,M.tail=Vre,M.take=Wre,M.takeRight=zre,M.takeRightWhile=Ure,M.takeWhile=Hre,M.tap=ioe,M.throttle=Yoe,M.thru=df,M.toArray=zP,M.toPairs=XP,M.toPairsIn=ZP,M.toPath=$se,M.toPlainObject=HP,M.transform=Jie,M.unary=Koe,M.union=Gre,M.unionBy=Yre,M.unionWith=Kre,M.uniq=Xre,M.uniqBy=Zre,M.uniqWith=Qre,M.unset=qie,M.unzip=ev,M.unzipWith=IP,M.update=$ie,M.updateWith=ese,M.values=la,M.valuesIn=tse,M.without=Jre,M.words=qP,M.wrap=Xoe,M.xor=qre,M.xorBy=$re,M.xorWith=eoe,M.zip=toe,M.zipObject=noe,M.zipObjectDeep=roe,M.zipWith=ooe,M.entries=XP,M.entriesIn=ZP,M.extend=GP,M.extendWith=yf,uv(M,M),M.add=tae,M.attempt=$P,M.camelCase=ise,M.capitalize=QP,M.ceil=nae,M.clamp=nse,M.clone=Qoe,M.cloneDeep=qoe,M.cloneDeepWith=$oe,M.cloneWith=Joe,M.conformsTo=eie,M.deburr=JP,M.defaultTo=_se,M.divide=rae,M.endsWith=sse,M.eq=Fr,M.escape=ase,M.escapeRegExp=lse,M.every=goe,M.find=voe,M.findIndex=wP,M.findKey=jie,M.findLast=yoe,M.findLastIndex=SP,M.findLastKey=kie,M.floor=oae,M.forEach=PP,M.forEachRight=jP,M.forIn=Mie,M.forInRight=Fie,M.forOwn=_ie,M.forOwnRight=Rie,M.get=iv,M.gt=tie,M.gte=nie,M.has=Bie,M.hasIn=sv,M.head=TP,M.identity=Bn,M.includes=Soe,M.indexOf=yre,M.inRange=rse,M.invoke=Wie,M.isArguments=Xi,M.isArray=ze,M.isArrayBuffer=rie,M.isArrayLike=Dn,M.isArrayLikeObject=Nt,M.isBoolean=oie,M.isBuffer=ii,M.isDate=iie,M.isElement=sie,M.isEmpty=aie,M.isEqual=lie,M.isEqualWith=cie,M.isError=rv,M.isFinite=uie,M.isFunction=Eo,M.isInteger=BP,M.isLength=mf,M.isMap=NP,M.isMatch=die,M.isMatchWith=fie,M.isNaN=pie,M.isNative=hie,M.isNil=mie,M.isNull=gie,M.isNumber=VP,M.isObject=jt,M.isObjectLike=Rt,M.isPlainObject=zl,M.isRegExp=ov,M.isSafeInteger=vie,M.isSet=WP,M.isString=vf,M.isSymbol=$n,M.isTypedArray=aa,M.isUndefined=yie,M.isWeakMap=bie,M.isWeakSet=xie,M.join=Sre,M.kebabCase=cse,M.last=Er,M.lastIndexOf=Ere,M.lowerCase=use,M.lowerFirst=dse,M.lt=Cie,M.lte=wie,M.max=iae,M.maxBy=sae,M.mean=aae,M.meanBy=lae,M.min=cae,M.minBy=uae,M.stubArray=fv,M.stubFalse=pv,M.stubObject=Zse,M.stubString=Qse,M.stubTrue=Jse,M.multiply=dae,M.nth=Tre,M.noConflict=Wse,M.noop=dv,M.now=pf,M.pad=fse,M.padEnd=pse,M.padStart=hse,M.parseInt=gse,M.random=ose,M.reduce=Ooe,M.reduceRight=Poe,M.repeat=mse,M.replace=vse,M.result=Xie,M.round=fae,M.runInContext=K,M.sample=koe,M.size=_oe,M.snakeCase=yse,M.some=Roe,M.sortedIndex=Mre,M.sortedIndexBy=Fre,M.sortedIndexOf=_re,M.sortedLastIndex=Rre,M.sortedLastIndexBy=Dre,M.sortedLastIndexOf=Lre,M.startCase=xse,M.startsWith=Cse,M.subtract=pae,M.sum=hae,M.sumBy=gae,M.template=wse,M.times=qse,M.toFinite=To,M.toInteger=Ge,M.toLength=UP,M.toLower=Sse,M.toNumber=Tr,M.toSafeInteger=Sie,M.toString=ct,M.toUpper=Ese,M.trim=Tse,M.trimEnd=Ase,M.trimStart=Ise,M.truncate=Ose,M.unescape=Pse,M.uniqueId=eae,M.upperCase=jse,M.upperFirst=av,M.each=PP,M.eachRight=jP,M.first=TP,uv(M,function(){var s={};return Jr(M,function(l,h){dt.call(M.prototype,h)||(s[h]=l)}),s}(),{chain:!1}),M.VERSION=r,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){M[s].placeholder=M}),br(["drop","take"],function(s,l){Je.prototype[s]=function(h){h=h===n?1:Jt(Ge(h),0);var C=this.__filtered__&&!l?new Je(this):this.clone();return C.__filtered__?C.__takeCount__=vn(h,C.__takeCount__):C.__views__.push({size:vn(h,ee),type:s+(C.__dir__<0?"Right":"")}),C},Je.prototype[s+"Right"]=function(h){return this.reverse()[s](h).reverse()}}),br(["filter","map","takeWhile"],function(s,l){var h=l+1,C=h==Z||h==V;Je.prototype[s]=function(I){var F=this.clone();return F.__iteratees__.push({iteratee:je(I,3),type:h}),F.__filtered__=F.__filtered__||C,F}}),br(["head","last"],function(s,l){var h="take"+(l?"Right":"");Je.prototype[s]=function(){return this[h](1).value()[0]}}),br(["initial","tail"],function(s,l){var h="drop"+(l?"":"Right");Je.prototype[s]=function(){return this.__filtered__?new Je(this):this[h](1)}}),Je.prototype.compact=function(){return this.filter(Bn)},Je.prototype.find=function(s){return this.filter(s).head()},Je.prototype.findLast=function(s){return this.reverse().find(s)},Je.prototype.invokeMap=Xe(function(s,l){return typeof s=="function"?new Je(this):this.map(function(h){return Dl(h,s,l)})}),Je.prototype.reject=function(s){return this.filter(gf(je(s)))},Je.prototype.slice=function(s,l){s=Ge(s);var h=this;return h.__filtered__&&(s>0||l<0)?new Je(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),l!==n&&(l=Ge(l),h=l<0?h.dropRight(-l):h.take(l-s)),h)},Je.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Je.prototype.toArray=function(){return this.take(ee)},Jr(Je.prototype,function(s,l){var h=/^(?:filter|find|map|reject)|While$/.test(l),C=/^(?:head|last)$/.test(l),I=M[C?"take"+(l=="last"?"Right":""):l],F=C||/^find/.test(l);I&&(M.prototype[l]=function(){var B=this.__wrapped__,z=C?[1]:arguments,Q=B instanceof Je,ae=z[0],le=Q||ze(B),ce=function(Qe){var qe=I.apply(M,qo([Qe],z));return C&&xe?qe[0]:qe};le&&h&&typeof ae=="function"&&ae.length!=1&&(Q=le=!1);var xe=this.__chain__,Ae=!!this.__actions__.length,ke=F&&!xe,Ye=Q&&!Ae;if(!F&&le){B=Ye?B:new Je(this);var Me=s.apply(B,z);return Me.__actions__.push({func:df,args:[ce],thisArg:n}),new Cr(Me,xe)}return ke&&Ye?s.apply(this,z):(Me=this.thru(ce),ke?C?Me.value()[0]:Me.value():Me)})}),br(["pop","push","shift","sort","splice","unshift"],function(s){var l=Dd[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",C=/^(?:pop|shift)$/.test(s);M.prototype[s]=function(){var I=arguments;if(C&&!this.__chain__){var F=this.value();return l.apply(ze(F)?F:[],I)}return this[h](function(B){return l.apply(ze(B)?B:[],I)})}}),Jr(Je.prototype,function(s,l){var h=M[l];if(h){var C=h.name+"";dt.call(na,C)||(na[C]=[]),na[C].push({name:l,func:h})}}),na[rf(n,A).name]=[{name:"wrapper",func:n}],Je.prototype.clone=Pte,Je.prototype.reverse=jte,Je.prototype.value=kte,M.prototype.at=soe,M.prototype.chain=aoe,M.prototype.commit=loe,M.prototype.next=coe,M.prototype.plant=doe,M.prototype.reverse=foe,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=poe,M.prototype.first=M.prototype.head,Pl&&(M.prototype[Pl]=uoe),M},$s=lte();Vi?((Vi.exports=$s)._=$s,c0._=$s):an._=$s}).call(xn)}(zu,zu.exports);var Ze=zu.exports;const te=Dr(Ze),qG=["e-","entities/"];function $G(e){let t=e;return qG.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function eY(e,t){var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"}function tY(e,t){const n=$G(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function yg(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=yg(o.children,t),n))return n}return n}function xS(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&eY(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=xS(i.children,t),r))return r}return r}function CS(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=CS(o.children,t),n))return n}return n}function wS(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(wS)),e.children&&e.children.length>0):!1}function SS(e){return e.children&&e.children.forEach(t=>{t.parent=e,SS(t)}),e}function nY(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(v=>i(v)),g}const a=Object.keys(t);function c(g,v){return g.children&&(g.children=g.children.filter(y=>{if(y.resource===!1){const b=y.roles||[];return!!(b.length===0||b.some(x=>o.includes(x)))}return y.type==="item"?v.includes(y.id):(c(y,v),y.children&&y.children.length>0)})),g}const u=te.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>c(g,a)),d=Object.values(t).map(g=>{var v;return((v=g.options)==null?void 0:v.group)||"admin"}).filter((g,v,y)=>y.indexOf(g)===v).filter(g=>g!==void 0&&CS(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:Ue.AntDesignOutlined,children:[]})),p=[...u,...d];return Object.values(t).forEach(g=>{var j,T,P,O;const v=xS(p,g),y=(j=v==null?void 0:v.children)==null?void 0:j.find(_=>_.id===g.name),b=(T=v==null?void 0:v.children)==null?void 0:T.some(_=>_.id===g.name),x=(y==null?void 0:y.roles)||((P=g.options)==null?void 0:P.roles)||[],w=!x||x.length===0||x.some(_=>o.includes(_));if(!tY(g,n)||g.list||!w){b&&v&&v.children&&((O=v==null?void 0:v.children)==null?void 0:O.length)>0&&(v.children=v.children.filter(_=>_.id!==g.name));return}v&&(v.children||(v.children=[]))}),p.filter(wS).map(SS)}function il(){throw new Error("Not implemented")}const ES={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:il,openDrawer:il,activeID:il,hasError:il,setMenu:il},TS=E.createContext(ES);function AS({menu:e,children:t}){const[n,r]=E.useState({...ES,menu:e});function o(d){r(p=>({...p,menu:d}))}function i(d){r(p=>({...p,openItem:d}))}function a(d){r(p=>({...p,selectedID:d}))}function c(d){r(p=>({...p,drawerOpen:d}))}function u(d){r(p=>({...p,error:d}))}return E.useEffect(()=>{o(e)},[e]),f.jsx(TS.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:c,activeID:a,hasError:u},children:t})}function Uu(){return E.useContext(TS)}function bg(){const e=q.useResourceDefinitions(),{isLoading:t,data:n}=q.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=q.usePermissions(r),{menu:i}=Uu(),a=q.useTranslate(),c=E.useMemo(()=>{if(t||!n)return null;const p=((n==null?void 0:n.roles)||[]).map(v=>v.id);return nY(i,e,o,a,p)},[t,n,e,o,a,i]),u=E.useMemo(()=>t,[t]);function d(p){if(c)return yg(c,p)}return{menu:c,isLoading:u,getItem:d,findInMenu:u?()=>{}:yg}}function IS(){const e=q.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=bg(),{pathname:o}=ai.useLocation();return E.useMemo(()=>{var v;const i=o.split("/").filter(y=>y),a=te.cloneDeep(n);let c=o,u=r(a,o);if((!u||u.type==="collapse"||u.type==="group")&&(u=r(a,i[i.length-1]),c=u?u.id:c),!u||u.type==="collapse"||u.type==="group")for(let y=i.length;y>=0;y--){const b=i.slice(0,y).join("/");if(u=r(a,b),u){c=u.id;break}}const d=(v=u==null?void 0:u.url)==null?void 0:v.split("/"),p=(d==null?void 0:d.length)||0;if(i.length>=p){const y=i[i.length-1];if(u){const b=y==="create"||o===u.url?"create":"edit",x=`resources.${c}.breadcrumbs.${b}`,w={id:`${c}-${b}`,type:"item",title:e(x,{_:e(x,{_:x})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(w),u=w}}let g=[];if(u){let y={...u,last:!0};for(;y;)g.push(y),y=y.parent;g=g.reverse()}return{isLoading:t,navigation:{items:a},breadcrumbs:g}},[t,o,n,r,e])}function sl(){return Uu()}function Ir(e,t,n){const r=te.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(a=>te.isFunction(a)?a:void 0).value();n!=null&&n.defaults?te.defaultsDeep(r,t):te.merge(r,t);const[o,i]=E.useState(r);return E.useEffect(()=>{te.isEqual(o,r)||i(r)},[o,r]),o}function rY(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function Ti(e){this._maxSize=e,this.clear()}Ti.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Ti.prototype.get=function(e){return this._values[e]},Ti.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var oY=/[^.^\]^[]+|(?=\[\]|\.\.)/g,OS=/^\d+$/,iY=/^\d/,sY=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,aY=/^\s*(['"]?)(.*?)(\1)\s*$/,xg=512,PS=new Ti(xg),jS=new Ti(xg),kS=new Ti(xg),Ai={Cache:Ti,split:wg,normalizePath:Cg,setter:function(e){var t=Cg(e);return jS.get(e)||jS.set(e,function(r,o){for(var i=0,a=t.length,c=r;i<a-1;){var u=t[i];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;c=c[t[i++]]}c[t[i]]=o})},getter:function(e,t){var n=Cg(e);return kS.get(e)||kS.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(Sg(n)||OS.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){lY(Array.isArray(e)?e:wg(e),t,n)}};function Cg(e){return PS.get(e)||PS.set(e,wg(e).map(function(t){return t.replace(aY,"$2")}))}function wg(e){return e.match(oY)||[""]}function lY(e,t,n){var r=e.length,o,i,a,c;for(i=0;i<r;i++)o=e[i],o&&(dY(o)&&(o='"'+o+'"'),c=Sg(o),a=!c&&/^\d+$/.test(o),t.call(n,o,c,a,i,e))}function Sg(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function cY(e){return e.match(iY)&&!e.match(OS)}function uY(e){return sY.test(e)}function dY(e){return!Sg(e)&&(cY(e)||uY(e))}const fY=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Hu=e=>e.match(fY)||[],Gu=e=>e[0].toUpperCase()+e.slice(1),Eg=(e,t)=>Hu(e).join(t).toLowerCase(),MS=e=>Hu(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var Tg={words:Hu,upperFirst:Gu,camelCase:MS,pascalCase:e=>Gu(MS(e)),snakeCase:e=>Eg(e,"_"),kebabCase:e=>Eg(e,"-"),sentenceCase:e=>Gu(Eg(e," ")),titleCase:e=>Hu(e).map(Gu).join(" ")},Ag={exports:{}};Ag.exports=function(e){return FS(pY(e),e)},Ag.exports.array=FS;function FS(e,t){var n=e.length,r=new Array(n),o={},i=n,a=hY(t),c=gY(e);for(t.forEach(function(d){if(!c.has(d[0])||!c.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||u(e[i],i,new Set);return r;function u(d,p,g){if(g.has(d)){var v;try{v=", node was:"+JSON.stringify(d)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!c.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!o[p]){o[p]=!0;var y=a.get(d)||new Set;if(y=Array.from(y),p=y.length){g.add(d);do{var b=y[--p];u(b,c.get(b),g)}while(p);g.delete(d)}r[--n]=d}}}function pY(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function hY(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function gY(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var mY=Ag.exports;const vY=Dr(mY),yY=Object.prototype.toString,bY=Error.prototype.toString,xY=RegExp.prototype.toString,CY=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",wY=/^Symbol\((.*)\)(.*)$/;function SY(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function _S(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return SY(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return CY.call(e).replace(wY,"Symbol($1)");const r=yY.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+bY.call(e)+"]":r==="RegExp"?xY.call(e):null}function zo(e,t){let n=_S(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=_S(this[r],t);return i!==null?i:o},2)}function RS(e){return e==null?[]:[].concat(e)}let DS,LS,BS,EY=/\$\{\s*(\w+)\s*\}/g;DS=Symbol.toStringTag;class NS{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[DS]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],RS(t).forEach(i=>{if(kn.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}LS=Symbol.hasInstance,BS=Symbol.toStringTag;class kn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(EY,(o,i)=>zo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new NS(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[BS]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,kn)}static[LS](t){return NS[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Kr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${zo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${zo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${zo(n,!0)}\``+o}},Mn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Uo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ig={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},TY={isValue:"${path} field must be ${value}"},Yu={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Kr,string:Mn,number:Uo,date:Ig,object:Yu,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:TY,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${zo(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${zo(n,!0)}\``}return kn.formatError(Kr.notType,e)}}});const Og=e=>e&&e.__isYupSchema__;class Ku{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new Ku(t,(c,u)=>{var d;let p=a(...c)?o:i;return(d=p==null?void 0:p(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Og(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Xu={context:"$",value:"."};class Ii{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Xu.context,this.isValue=this.key[0]===Xu.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Xu.context:this.isValue?Xu.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ai.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ii.prototype.__isYupRef=!0;const ho=e=>e==null;function Ms(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},c,u){const{name:d,test:p,params:g,message:v,skipAbsent:y}=e;let{parent:b,context:x,abortEarly:w=a.spec.abortEarly,disableStackTrace:A=a.spec.disableStackTrace}=o;function j(G){return Ii.isRef(G)?G.getValue(n,b,x):G}function T(G={}){const re=Object.assign({value:n,originalValue:i,label:a.spec.label,path:G.path||r,spec:a.spec,disableStackTrace:G.disableStackTrace||A},g,G.params);for(const Z of Object.keys(re))re[Z]=j(re[Z]);const ne=new kn(kn.formatError(G.message||v,re),n,re.path,G.type||d,re.disableStackTrace);return ne.params=re,ne}const P=w?c:u;let O={path:r,parent:b,type:d,from:o.from,createError:T,resolve:j,options:o,originalValue:i,schema:a};const _=G=>{kn.isError(G)?P(G):G?u(null):P(T())},R=G=>{kn.isError(G)?P(G):c(G)};if(y&&ho(n))return _(!0);let Y;try{var X;if(Y=p.call(O,n,O),typeof((X=Y)==null?void 0:X.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Y).then(_,R)}}catch(G){R(G);return}_(Y)}return t.OPTIONS=e,t}function AY(e,t,n,r=n){let o,i,a;return t?(Ai.forEach(t,(c,u,d)=>{let p=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",v=d?parseInt(p,10):0;if(e.innerType||g){if(g&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[v],e=g?e.spec.types[v]:e.innerType}if(!d){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}i=p,a=u?"["+c+"]":"."+c}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Zu extends Set{describe(){const t=[];for(const n of this.values())t.push(Ii.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Zu(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Fs(e,t=new Map){if(Og(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Fs(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Fs(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Fs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Fs(o,t)}else throw Error(`Unable to clone ${e}`);return n}class pr{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Zu,this._blacklist=new Zu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Kr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Fs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&ho(i))return i;let a=zo(t),c=zo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
222
222
 
223
223
  attempted value: ${a}
224
- `+(c!==a?`result of cast: ${c}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let p of Object.values(this.internalTests))p&&d.push(p);this.runTests({path:i,value:u,originalValue:a,options:n,tests:d},r,p=>{if(p.length)return o(p,u);this.runTests({path:i,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:c,path:u,options:d}=t,p=x=>{o||(o=!0,n(x,a))},g=x=>{o||(o=!0,r(x,a))},v=i.length,y=[];if(!v)return g([]);let b={value:a,originalValue:c,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const w=i[x];w(b,p,function(j){j&&(Array.isArray(j)?y.push(...j):y.push(j)),--v<=0&&g(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const p=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${o||""}[${u?c:`"${c}"`}]`:(o?`${o}.`:"")+t});return(g,v,y)=>this.resolve(p)._validate(d,p,v,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,c)=>o._validate(t,n,(u,d)=>{kn.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new kn(u,d,void 0,void 0,i)):a(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw kn.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new kn(c,t,void 0,void 0,a);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(kn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(kn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Fs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ms({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ms({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Kr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Kr.notNull){return this.nullability(!1,t)}required(t=Kr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Kr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Ms(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=RS(t).map(i=>new Ii(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Yu(o,n):Yu.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ms({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Kr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Ms({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Kr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Ms({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,p)=>p.findIndex(g=>g.name===u.name)===d)}}}pr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])pr.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=AY(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])pr.prototype[e]=pr.prototype.oneOf;for(const e of["not","nope"])pr.prototype[e]=pr.prototype.notOneOf;const IY=()=>!0;function VS(e){return new WS(e)}class WS extends pr{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:IY},t))}}VS.prototype=WS.prototype;const OY=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function PY(e){const t=Pg(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Pg(e){var t,n;const r=OY.exec(e);return r?{year:go(r[1]),month:go(r[2],1)-1,day:go(r[3],1),hour:go(r[4]),minute:go(r[5]),second:go(r[6]),millisecond:r[7]?go(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:go(r[10]),minuteOffset:go(r[11])}:null}function go(e,t=0){return Number(e)||t}let jY=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kY=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\u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|\/|\?)*)?$/i,MY=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,FY="^\\d{4}-\\d{2}-\\d{2}",_Y="\\d{2}:\\d{2}:\\d{2}",RY="(([+-]\\d{2}(:?\\d{2})?)|Z)",DY=new RegExp(`${FY}T${_Y}(\\.\\d+)?${RY}$`),LY=e=>ho(e)||e===e.trim(),BY={}.toString();function mo(){return new zS}class zS extends pr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===BY?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Kr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Mn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Mn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Mn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||Mn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Mn.email){return this.matches(jY,{name:"email",message:t,excludeEmptyString:!0})}url(t=Mn.url){return this.matches(kY,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Mn.uuid){return this.matches(MY,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(DY,{name:"datetime",message:n||Mn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Mn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=Pg(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Mn.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=Pg(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Mn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:LY})}lowercase(t=Mn.lowercase){return this.transform(n=>ho(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ho(n)||n===n.toLowerCase()})}uppercase(t=Mn.uppercase){return this.transform(n=>ho(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ho(n)||n===n.toUpperCase()})}}mo.prototype=zS.prototype;let NY=e=>e!=+e;function US(){return new HS}class HS extends pr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!NY(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Uo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Uo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Uo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Uo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Uo.positive){return this.moreThan(0,t)}negative(t=Uo.negative){return this.lessThan(0,t)}integer(t=Uo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>ho(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>ho(o)?o:Math[t](o))}}US.prototype=HS.prototype;let VY=new Date(""),WY=e=>Object.prototype.toString.call(e)==="[object Date]";class Zu extends pr{constructor(){super({type:"date",check(t){return WY(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=PY(t),isNaN(t)?Zu.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ii.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Ig.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Ig.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}Zu.INVALID_DATE=VY,Zu.prototype;function zY(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,c])=>`${a}-${c}`));function i(a,c){let u=Ai.split(a)[0];r.add(u),o.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),Ii.isRef(c)&&c.isSibling?i(c.path,a):Og(c)&&"deps"in c&&c.deps.forEach(u=>i(u,a))}return vY.array(Array.from(r),n).reverse()}function GS(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function YS(e){return(t,n)=>GS(e,t)-GS(e,n)}const UY=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Qu(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Qu(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Qu(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Qu)}):"optional"in e?e.optional():e}const HY=(e,t)=>{const n=[...Ai.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ai.getter(Ai.join(n),!0)(e);return!!(o&&r in o)};let KS=e=>Object.prototype.toString.call(e)==="[object Object]";function XS(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const GY=YS([]);function jg(e){return new ZS(e)}class ZS extends pr{constructor(t){super({type:"object",check(n){return KS(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=GY,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),p=!1;for(const g of c){let v=i[g],y=g in o;if(v){let b,x=o[g];d.path=(n.path?`${n.path}.`:"")+g,v=v.resolve({value:x,context:n.context,parent:u});let w=v instanceof pr?v.spec:void 0,A=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||g in o;continue}b=!n.__validating||!A?v.cast(o[g],d):o[g],b!==void 0&&(u[g]=b)}else y&&!a&&(u[g]=o[g]);(y!==g in u||u[g]!==o[g])&&(p=!0)}return p?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!KS(d)){o(u,d);return}a=a||d;let p=[];for(let g of this._nodes){let v=this.fields[g];!v||Ii.isRef(v)||p.push(v.asNestedTest({options:n,key:g,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:p,value:d,originalValue:a,options:n},r,g=>{o(g.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=zY(t,n),r._sortErrors=YS(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Qu(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ai.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return HY(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(UY)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Gu.exact,test(n){if(n==null)return!0;const r=XS(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Gu.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=XS(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Gu.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Tg.camelCase)}snakeCase(){return this.transformKeys(Tg.snakeCase)}constantCase(){return this.transformKeys(t=>Tg.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let c=t;(o=c)!=null&&o.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[i]})),r.fields[i]=a.describe(c)}return r}}jg.prototype=ZS.prototype;const QS=VS().test("function","Invalid function",e=>te.isFunction(e));class JS{constructor(){Io(this,Ri);Io(this,Qo,[])}get(t){if(mo().required().validateSync(t),Ul(this,Ri,Hl).call(this)){const n=localStorage.getItem(t);return te.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return mo().required().validateSync(t),Ul(this,Ri,Hl).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){mo().required().validateSync(t),QS.validateSync(n),Ul(this,Ri,Hl).call(this)&&(Nn(this,Qo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){mo().required().validateSync(t),QS.optional().default(te.identity).validateSync(n),Ul(this,Ri,Hl).call(this)&&(n!==void 0?si(this,Qo,te.reject(Nn(this,Qo),r=>r.key===t&&r.callback===n)):si(this,Qo,te.reject(Nn(this,Qo),r=>r.key===t)))}}Qo=new WeakMap,Ri=new WeakSet,Hl=function(){return typeof window<"u"};function Ju(e={},t=[],n={}){const{isEmpty:r=te.isEmpty}=n;return!te.some(t,o=>r((e??{})[o.locale]))}function qS(e={},t=[],n={}){const{isEmpty:r=te.isEmpty}=n;return te.some(t,o=>!r((e??{})[o.locale]))}function kg(e,t,n){if(!te.isPlainObject(e)||t===void 0)return;const r=te.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const a=te.isArray(r.fallbackLocales)&&!te.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=te.chain(a).map(c=>e[String(c)]).reject(te.isUndefined).first().value(),i===void 0&&(i=te.chain(e).values().first().value())}return i}function qu(e=[],t){const n=te.isArray(e)?e:[e],r=te.filter(n,o=>E.isValidElement(o));te.each(r,o=>{var i;t(o),qu(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}var $S={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",c="minute",u="hour",d="day",p="week",g="month",v="quarter",y="year",b="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var J=["th","st","nd","rd"],V=Z%100;return"["+Z+(J[(V-20)%10]||J[V]||J[0])+"]"}},T=function(Z,J,V){var $=String(Z);return!$||$.length>=J?Z:""+Array(J+1-$.length).join(V)+Z},P={s:T,z:function(Z){var J=-Z.utcOffset(),V=Math.abs(J),$=Math.floor(V/60),W=V%60;return(J<=0?"+":"-")+T($,2,"0")+":"+T(W,2,"0")},m:function Z(J,V){if(J.date()<V.date())return-Z(V,J);var $=12*(V.year()-J.year())+(V.month()-J.month()),W=J.clone().add($,g),ie=V-W<0,U=J.clone().add($+(ie?-1:1),g);return+(-($+(V-W)/(ie?W-U:U-W))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:g,y,w:p,d,D:b,h:u,m:c,s:a,ms:i,Q:v}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},O="en",_={};_[O]=j;var R="$isDayjsObject",N=function(Z){return Z instanceof re||!(!Z||!Z[R])},Y=function Z(J,V,$){var W;if(!J)return O;if(typeof J=="string"){var ie=J.toLowerCase();_[ie]&&(W=ie),V&&(_[ie]=V,W=ie);var U=J.split("-");if(!W&&U.length>1)return Z(U[0])}else{var ee=J.name;_[ee]=J,W=ee}return!$&&W&&(O=W),W||!$&&O},X=function(Z,J){if(N(Z))return Z.clone();var V=typeof J=="object"?J:{};return V.date=Z,V.args=arguments,new re(V)},G=P;G.l=Y,G.i=N,G.w=function(Z,J){return X(Z,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var re=function(){function Z(V){this.$L=Y(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[R]=!0}var J=Z.prototype;return J.parse=function(V){this.$d=function($){var W=$.date,ie=$.utc;if(W===null)return new Date(NaN);if(G.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var U=W.match(w);if(U){var ee=U[2]-1||0,de=(U[7]||"0").substring(0,3);return ie?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,de)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,de)}}return new Date(W)}(V),this.init()},J.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},J.$utils=function(){return G},J.isValid=function(){return this.$d.toString()!==x},J.isSame=function(V,$){var W=X(V);return this.startOf($)<=W&&W<=this.endOf($)},J.isAfter=function(V,$){return X(V)<this.startOf($)},J.isBefore=function(V,$){return this.endOf($)<X(V)},J.$g=function(V,$,W){return G.u(V)?this[$]:this.set(W,V)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(V,$){var W=this,ie=!!G.u($)||$,U=G.p(V),ee=function(ye,we){var Ie=G.w(W.$u?Date.UTC(W.$y,we,ye):new Date(W.$y,we,ye),W);return ie?Ie:Ie.endOf(d)},de=function(ye,we){return G.w(W.toDate()[ye].apply(W.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(we)),W)},ge=this.$W,fe=this.$M,he=this.$D,me="set"+(this.$u?"UTC":"");switch(U){case y:return ie?ee(1,0):ee(31,11);case g:return ie?ee(1,fe):ee(0,fe+1);case p:var Se=this.$locale().weekStart||0,be=(ge<Se?ge+7:ge)-Se;return ee(ie?he-be:he+(6-be),fe);case d:case b:return de(me+"Hours",0);case u:return de(me+"Minutes",1);case c:return de(me+"Seconds",2);case a:return de(me+"Milliseconds",3);default:return this.clone()}},J.endOf=function(V){return this.startOf(V,!1)},J.$set=function(V,$){var W,ie=G.p(V),U="set"+(this.$u?"UTC":""),ee=(W={},W[d]=U+"Date",W[b]=U+"Date",W[g]=U+"Month",W[y]=U+"FullYear",W[u]=U+"Hours",W[c]=U+"Minutes",W[a]=U+"Seconds",W[i]=U+"Milliseconds",W)[ie],de=ie===d?this.$D+($-this.$W):$;if(ie===g||ie===y){var ge=this.clone().set(b,1);ge.$d[ee](de),ge.init(),this.$d=ge.set(b,Math.min(this.$D,ge.daysInMonth())).$d}else ee&&this.$d[ee](de);return this.init(),this},J.set=function(V,$){return this.clone().$set(V,$)},J.get=function(V){return this[G.p(V)]()},J.add=function(V,$){var W,ie=this;V=Number(V);var U=G.p($),ee=function(fe){var he=X(ie);return G.w(he.date(he.date()+Math.round(fe*V)),ie)};if(U===g)return this.set(g,this.$M+V);if(U===y)return this.set(y,this.$y+V);if(U===d)return ee(1);if(U===p)return ee(7);var de=(W={},W[c]=r,W[u]=o,W[a]=n,W)[U]||1,ge=this.$d.getTime()+V*de;return G.w(ge,this)},J.subtract=function(V,$){return this.add(-1*V,$)},J.format=function(V){var $=this,W=this.$locale();if(!this.isValid())return W.invalidDate||x;var ie=V||"YYYY-MM-DDTHH:mm:ssZ",U=G.z(this),ee=this.$H,de=this.$m,ge=this.$M,fe=W.weekdays,he=W.months,me=W.meridiem,Se=function(we,Ie,pe,Ke){return we&&(we[Ie]||we($,ie))||pe[Ie].slice(0,Ke)},be=function(we){return G.s(ee%12||12,we,"0")},ye=me||function(we,Ie,pe){var Ke=we<12?"AM":"PM";return pe?Ke.toLowerCase():Ke};return ie.replace(A,function(we,Ie){return Ie||function(pe){switch(pe){case"YY":return String($.$y).slice(-2);case"YYYY":return G.s($.$y,4,"0");case"M":return ge+1;case"MM":return G.s(ge+1,2,"0");case"MMM":return Se(W.monthsShort,ge,he,3);case"MMMM":return Se(he,ge);case"D":return $.$D;case"DD":return G.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Se(W.weekdaysMin,$.$W,fe,2);case"ddd":return Se(W.weekdaysShort,$.$W,fe,3);case"dddd":return fe[$.$W];case"H":return String(ee);case"HH":return G.s(ee,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return ye(ee,de,!0);case"A":return ye(ee,de,!1);case"m":return String(de);case"mm":return G.s(de,2,"0");case"s":return String($.$s);case"ss":return G.s($.$s,2,"0");case"SSS":return G.s($.$ms,3,"0");case"Z":return U}return null}(we)||U.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(V,$,W){var ie,U=this,ee=G.p($),de=X(V),ge=(de.utcOffset()-this.utcOffset())*r,fe=this-de,he=function(){return G.m(U,de)};switch(ee){case y:ie=he()/12;break;case g:ie=he();break;case v:ie=he()/3;break;case p:ie=(fe-ge)/6048e5;break;case d:ie=(fe-ge)/864e5;break;case u:ie=fe/o;break;case c:ie=fe/r;break;case a:ie=fe/n;break;default:ie=fe}return W?ie:G.a(ie)},J.daysInMonth=function(){return this.endOf(g).$D},J.$locale=function(){return _[this.$L]},J.locale=function(V,$){if(!V)return this.$L;var W=this.clone(),ie=Y(V,$,!0);return ie&&(W.$L=ie),W},J.clone=function(){return G.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},Z}(),ne=re.prototype;return X.prototype=ne,[["$ms",i],["$s",a],["$m",c],["$H",u],["$W",d],["$M",g],["$y",y],["$D",b]].forEach(function(Z){ne[Z[1]]=function(J){return this.$g(J,Z[0],Z[1])}}),X.extend=function(Z,J){return Z.$i||(Z(J,re,X),Z.$i=!0),X},X.locale=Y,X.isDayjs=N,X.unix=function(Z){return X(1e3*Z)},X.en=_[O],X.Ls=_,X.p={},X})})($S);var eE=$S.exports;const Or=Dr(eE);function tE(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Or().hour(n).minute(r)}const al=new JS;function YY(e,t,n){return function(r){const o=te.isFunction(r)?r(t):r;return al.set(e,o),n(o),o}}function Mg(e,t){var u;mo().required().validateSync(e);const[n,r]=E.useState(al.get(e)??t),o=E.useRef(t),i=te.isEqual(o.current,t)?o.current:t,a=E.useRef(),c=a.current;return E.useEffect(()=>{r(al.get(e)??i)},[e,i,r]),E.useEffect(()=>{function d(p){r(p)}return al.watch(e,d),()=>{al.unwatch(e,d)}},[e,r]),(e!==(c==null?void 0:c.key)||!te.isEqual(n,c==null?void 0:c.value))&&(a.current={key:e,value:n,setter:YY(e,n,r)}),[n,((u=a.current)==null?void 0:u.setter)??te.noop]}function nE(e){const[t]=q.useLocaleState();return e!==void 0?String(e):t}function KY(e,t){const n=nE(t==null?void 0:t.locale);return kg(e,n,t)}function XY(e){const t=nE(e==null?void 0:e.locale);return E.useCallback(r=>kg(r,t,e),[t,e])}function rE(e){if(!te.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=E.useState(e);return E.useEffect(()=>{te.isEqual(e,t)||n(e)},[e,t]),t}function _s(){const[e,t]=E.useState(null),n=!!e,r=E.useCallback(a=>t((a==null?void 0:a.currentTarget)??null),[t]),o=E.useCallback(()=>t(null),[t]),i=E.useCallback(a=>{n?o():r(a)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function ZY(e,t){const[n,r]=E.useState({width:1,height:1}),o=e.current;return E.useEffect(()=>{function i(){var d;let c=0,u=0;switch(t){case"client":c=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":c=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":c=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((d=e.current)==null?void 0:d.getBoundingClientRect())??{width:0,height:0};c=p.width,u=p.height;break}}r({width:c,height:u})}const a=new ResizeObserver(i);return te.isEmpty(e==null?void 0:e.current)||(a.observe(e==null?void 0:e.current),i()),()=>{a.disconnect()}},[o,t,e]),n}function Fg(e){const t=L.useRecordContext(),n=L.useTranslate(),r=L.useResourceContext(),o=t!=null&&t.id?"edit":"create";return E.useMemo(()=>{if(e===!1)return;const a=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(a,{_:a}),...t})},[o,t,r,n,e])}function oE(){const{mode:e}=Cn(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=E.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=E.useRef(n);return E.useEffect(()=>{function i(){const c=t.matches?"dark":"light";c!==o.current&&(r(c),o.current=c)}i();const a=t;return a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[t]),n}function Xr(){throw new Error("Method must be implemented")}const iE={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:Xr,setMenuOrientation:Xr,setMiniDrawer:Xr,setContainer:Xr,setMode:Xr,setPresetColor:Xr,setThemeDirection:Xr,setAppDefaultPath:Xr,setDrawerWidth:Xr,setHorizontalMaxItems:Xr,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function QY(e){return e==="vertical"}function JY(e){return e==="horizontal"}const _g=E.createContext(iE);function Rg({initialConfig:e,children:t}){const[n,r]=Mg("theme-config",{...iE,...e});function o(b){r(x=>({...x,fontFamily:b}))}function i(b){r(x=>({...x,menuOrientation:b}))}function a(b){r(x=>({...x,miniDrawer:b}))}function c(b){r(x=>({...x,container:b}))}function u(b){r(x=>({...x,mode:b}))}function d(b){r(x=>({...x,presetColor:b}))}function p(b){r(x=>({...x,themeDirection:b}))}function g(b){r(x=>({...x,appDefaultPath:b}))}function v(b){r(x=>({...x,drawerWidth:b}))}function y(b){r(x=>({...x,horizontalMaxItems:b}))}return f.jsx(_g.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:a,setContainer:c,setMode:u,setPresetColor:d,setThemeDirection:p,setAppDefaultPath:g,setDrawerWidth:v,setHorizontalMaxItems:y,isVerticalLayout:QY,isHorizontalLayout:JY},children:t})}function Dg(){return E.useContext(_g)}function Cn(){return Dg()}const qY=Na(L.Toolbar,{slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end",position:"initial !important","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}}));function Ho(e){return f.jsx(qY,{...e})}function sE({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=Cn();return f.jsx(eK,{defaultValues:n,spacing:t||o,children:f.jsx(S.Grid,{container:!0,...r,spacing:t||o,children:e})})}function $Y({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:a=12,md:c=12,sm:u=12,xs:d=12,...p}){const g=L.useTranslate(),v=L.useResourceContext(),{cardTitle:y,cardSubheader:b}=E.useMemo(()=>{const x=n||`resources.${v}.title`;return{cardTitle:g(x,{_:x}),cardSubheader:r!==null?g(r,{_:r}):null}},[v,r,n,g]);return f.jsx(S.Grid,{item:!0,...p,lg:a,md:c,sm:u,xs:d,children:f.jsx(On,{content:t,title:y,subheader:b,secondary:o,divider:!0,children:f.jsxs(f.Fragment,{children:[e,i===!0?f.jsx(Ho,{children:f.jsx(L.SaveButton,{})}):i]})})})}const eK=ue(L.Form,{slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*1.25),padding:0,minHeight:"unset"},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingRight:"0 !important",paddingLeft:"0 !important",paddingBottom:"0 !important"}}));sE.Section=$Y;function aE(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=rK,label:a="ra.action.delete",mutationMode:c="pessimistic",mutationOptions:u={},onClick:d,onSuccess:p,onError:g,...v}=e,{meta:y,...b}=u,{selectedIds:x,onUnselectItems:w}=q.useListContext(e),[A,j]=q.useSafeSetState(!1),T=q.useNotify(),P=q.useResourceContext(e),O=q.useRefresh(),_=q.useTranslate(),R=pt(),[N,{isLoading:Y}]=q.useDeleteMany(P,{ids:x,meta:y},{onSuccess:()=>{O(),T("ra.notification.deleted",{type:"info",messageArgs:{smart_count:x.length},undoable:c==="undoable"}),w(),j(!1),p&&te.isFunction(p)&&p()},onError:ne=>{T(typeof ne=="string"?ne:ne.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ne=="string"?ne:ne&&ne.message?ne.message:void 0}}),j(!1),g&&te.isFunction(g)&&g()},mutationMode:c,...b});function X(ne){j(!0),ne.stopPropagation()}function G(){j(!1)}function re(ne){N(),typeof d=="function"&&d(ne)}return f.jsxs(f.Fragment,{children:[f.jsx(nK,{onClick:X,label:a,...tK(v),children:i}),f.jsx(L.Confirm,{isOpen:A,loading:Y,sx:o||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:R.palette.primary.main,color:R.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:R.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${R.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:t?typeof t=="string"?_(t):t:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(Ue.DeleteFilled,{})})}),content:n||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:_("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:x.length,name:_(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Vo.humanize(_(`resources.${P}.name`,{smart_count:x.length,_:Vo.inflect(P,x.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:x.length,name:_(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Vo.humanize(_(`resources.${P}.name`,{smart_count:x.length,_:Vo.inflect(P,x.length)}),!0)})},onConfirm:re,onClose:G})]})}function tK({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const nK=ue(L.Button,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:et(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),rK=f.jsx(zh,{});aE.propTypes={confirmTitle:m.node,confirmContent:m.node,confirmColor:m.string,dialogSx:m.object,icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),resource:m.string,selectedIds:m.arrayOf(m.any),onSuccess:m.func,onError:m.func};const oK="RaButton";function iK(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}const sK=ue(S.Button,{name:oK,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function Oi(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:a,disabled:c,alignIcon:u,to:d,...p}=e,g=L.useTranslate(),v=iK(d);if(t){const y=n?g(n,{_:n}):void 0;return f.jsx(sK,{className:o,color:i,size:a,"aria-label":y,disabled:c,startIcon:u==="left"&&r?r:void 0,endIcon:u==="right"&&r?r:void 0,...v,...p,children:y})}return f.jsx(L.Button,{...e})}function lE(e){const{className:t,icon:n=aK,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:a,to:c,state:u={},disableFloatingButton:d=!1,...p}=e,g=q.useResourceContext(e),v=q.useCreatePath(),y=q.useTranslate(),b=S.useMediaQuery(A=>A.breakpoints.down("md")),x=Iw({},lK.get(String(i)),u),w=fK(c);return!d&&b?f.jsx(cK,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,color:"primary",className:Be(ed.floating,t),"aria-label":r?y(r):"ra.action.create",...p,...w,children:n}):f.jsx(uK,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,className:Be(ed.root,t),label:r,variant:a,...p,...w,children:n})}const aK=f.jsx(bh,{}),lK=new Map([["true",{_scrollToTop:!0}],["false",{}]]);lE.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};const $u="RaCreateButton",ed={root:`${$u}-root`,floating:`${$u}-floating`},cK=ue(S.Fab,{name:$u,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${ed.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),uK=ue(Oi,{name:$u,overridesResolver:(e,t)=>t.root})({});function dK(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&$a(e.to,t.to)&&$a(e.state,t.state)}const cE=D.memo(lE,dK);function fK(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}function Lg(e,t){const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]}function pK(e,t){return e&&e.data?{data:Lg(e.data,t),total:e.total+1}:e}function hK(e,t){return e&&e.length>0?Lg(e,t):e}function gK(e,t){return e&&e.data?{...e,data:Lg(e.data,t),total:e.total+1}:e}function mK(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=f.jsx(Ue.PlusCircleOutlined,{}),...o}=e,i=E.useCallback(a=>{var c;a.preventDefault(),(c=e==null?void 0:e.onClick)==null||c.call(e)},[e]);return t?f.jsx(Oi,{...o,onClick:i,label:n,children:r}):f.jsx(lz,{...e,onClick:i,label:n,children:r})}function vK(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=tn.useFormContext(),o=q.useTranslate(),i=E.useCallback(a=>{a.preventDefault(),a.stopPropagation(),r(c=>t(c,n))()},[r,t,n]);return f.jsx(S.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function yK(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:a,scroll:c="body",...u}=e,d=li.useQueryClient(),p=q.useResourceContext(),g=q.useTranslate(),v=E.Children.only(t),[y,b]=E.useState(!1),x=q.useNotify(),w=E.useCallback(()=>b(!0),[]),A=E.useCallback(()=>b(!1),[]),j=E.useCallback((T,P,O)=>{var N,Y;const R=Date.now();d.setQueryData([p,"getOne",{id:T.id}],T),d.setQueriesData([p,"getList"],X=>gK(X,T),{updatedAt:R}),d.setQueriesData([p,"getMany"],X=>hK(X,T),{updatedAt:R}),d.setQueriesData([p,"getManyReference"],X=>pK(X,T),{updatedAt:R}),A(),x("ra.notification.created",{messageArgs:{smart_count:1}}),(Y=(N=e==null?void 0:e.mutationOptions)==null?void 0:N.onSuccess)==null||Y.call(N,T,P,O)},[A,x,e.mutationOptions,d,p]);return f.jsxs(f.Fragment,{children:[f.jsx(mK,{...u,onClick:w}),f.jsx(S.Dialog,{open:y,scroll:c,onClose:A,maxWidth:n,fullWidth:r,fullScreen:o,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(q.CreateBase,{...e,mutationOptions:{...a,onSuccess:j},children:E.isValidElement(v)?E.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(Ho,{children:[f.jsx(S.Button,{variant:"text",size:"medium",onClick:A,children:g("ra.action.cancel")}),i?f.jsx(vK,{onSubmit:i,closeDialog:A}):f.jsx(pg,{type:"button"})]})}):null})})})]})}function ll(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:a,icon:c=f.jsx(zh,{}),label:u="ra.action.delete",mutationMode:d="pessimistic",mutationOptions:p,onClick:g,redirect:v="list",translateOptions:y={},...b}=e,x=q.useTranslate(),w=q.useRecordContext(e),A=q.useResourceContext(e),j=S.useTheme(),{open:T,isLoading:P,handleDialogOpen:O,handleDialogClose:_,handleDelete:R}=q.useDeleteWithConfirmController({record:w,redirect:v,mutationMode:d,onClick:g,mutationOptions:p,resource:A});return f.jsxs(f.Fragment,{children:[f.jsx(Oi,{onClick:O,label:u,className:Be("ra-delete-button",t),color:i,...b,children:c},"button"),f.jsx(Uw,{isOpen:T,loading:P,sx:a||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:j.palette.primary.main,color:j.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:j.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${j.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?x(n):n:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(Ue.DeleteFilled,{})})}),content:r||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:x("ra.message.delete_content",{_:"ra.message.delete_content",name:x(`resources.${A}.forcedCaseName`,{smart_count:1,_:Vo.humanize(x(`resources.${A}.name`,{smart_count:1,_:Vo.singularize(A)}),!0)}),id:w==null?void 0:w.id})}),confirmColor:o,translateOptions:{name:x(`resources.${A}.forcedCaseName`,{smart_count:1,_:Vo.humanize(x(`resources.${A}.name`,{smart_count:1,_:Vo.singularize(A)}),!0)}),id:w==null?void 0:w.id,...y},onConfirm:R,onClose:_})]})}ll.propTypes={basePath:m.string,className:m.string,confirmColor:m.string,confirmContent:m.oneOfType([m.string,m.element]),confirmTitle:m.oneOfType([m.string,m.element]),icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),onClick:m.func,record:m.any,redirect:m.oneOfType([m.string,m.bool,m.func]),resource:m.string,translateOptions:m.object};function bK(e){const t=E.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return f.jsx(Qw,{...e,onClick:t})}function xK(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=tn.useFormContext(),o=E.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(a=>t(a,n))()},[r,t,n]);return f.jsx(Oi,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function CK(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:a,scroll:c="body",...u}=e,d=q.useNotify(),[p,g]=E.useState(!1),v=E.Children.only(t),y=E.useCallback(()=>g(!0),[]),b=E.useCallback(()=>g(!1),[]),x=E.useCallback((A,j,T)=>{var P,O;b(),d("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(O=(P=e==null?void 0:e.mutationOptions)==null?void 0:P.onSuccess)==null||O.call(P,A,j,T)},[b,d,e.mutationOptions,e.mutationMode]),w=q.useRecordContext();return f.jsxs(f.Fragment,{children:[f.jsx(bK,{...u,onClick:y}),f.jsx(S.Dialog,{open:p,scroll:c,onClose:b,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(q.EditBase,{...e,id:w.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:x},children:E.isValidElement(v)?E.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(Ho,{children:[f.jsx(Oi,{disableIconOnly:!0,variant:"text",size:"medium",onClick:b,label:"ra.action.cancel"}),a?f.jsx(xK,{onSubmit:a,closeDialog:b}):f.jsx(pg,{type:"button"})]})}):null})})})]})}function wK({label:e="ra.auth.sign_in",...t}){const n=L.useRecordContext(),[r,o]=E.useState(!1),i=L.useAuthProvider(),a=E.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),i.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[i,n==null?void 0:n.id]);return f.jsx(L.Button,{disabled:r||i.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(en.VpnKey,{})})}const SK=Na(L.SimpleForm,{slot:"Root"})(({theme:e})=>({[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}}));function Bg({title:e,modal:t=!1,content:n=!1,subheader:r=null,toolbar:o=f.jsx(Ho,{children:f.jsx(L.SaveButton,{type:"button"})}),secondary:i=f.jsx(No,{children:f.jsx(ll,{})}),sx:a,...c}){const u=Fg(e),d=L.useRecordContext(),p=Op();return f.jsx(On,{content:n,title:u,subheader:r,secondary:d!=null&&d.id?i:null,sx:{...a,"& .MuiToolbar-root":{paddingLeft:p.spacing(2.5),paddingRight:p.spacing(2.5),paddingBottom:p.spacing(2.5),paddingTop:t?p.spacing(2.5):0,borderTop:t?`1px solid ${p.palette.divider}`:void 0}},border:!t,divider:!0,children:f.jsx(SK,{toolbar:o,...c})})}const uE={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},dE=E.createContext(uE);function EK(e){const[t,n]=E.useState(uE);function r(a,c){n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()}function o(a,c){n(u=>({...u,openDialogs:u.openDialogs.filter(d=>d!==a)})),c&&c()}function i(){return t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null}return f.jsx(dE.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:i},children:e.children})}function fE(){const e=E.useContext(dE);if(e===void 0)throw new Error("useAppState must be used within an AppStateProvider");return e}function Ng(){return fE()}function pE({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,fullWidth:c,...u}){const d=Wt.useTheme(),{getCurrentDialog:p}=Ng(),{source:g,resource:v,isRequired:y}=u,{getFieldState:b,formState:x}=tn.useFormContext(),{error:w}=b(g,x),A=p();return f.jsxs(S.Stack,{spacing:1,sx:{"& .MuiFormHelperText-root":{color:w?d.palette.error.main:d.palette.text.secondary,"& span":{display:"none"}},width:c?"100%":"auto",...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:!!w,sx:{borderBottom:a?`1px solid ${d.palette.divider}`:"none",pb:a?1:0,mt:a?1:0,pt:1},children:f.jsx(L.FieldTitle,{label:e,source:g,resource:A||v,isRequired:y})}),E.isValidElement(t)?E.cloneElement(t,{...t.props,...u,label:n==="legend"?e:!1}):t,n==="label"&&r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:!!w,children:r}):null]})}const TK=ue(L.ArrayInput,{slot:"root"})(({theme:e})=>({"& .MuiStack-root > label":{marginTop:e.spacing(2)},"& .MuiInputLabel-shrink":{paddingBottom:0},marginTop:"0 !important","& .RaSimpleFormIterator-line > .RaSimpleFormIterator-form":{paddingBottom:e.spacing(.5),"& > div":{width:"100%"}}}));function AK({label:e,addLabel:t,source:n,helperText:r,divider:o=!0,...i}){return f.jsx(pE,{label:e,addLabel:t,source:n,helperText:r,divider:o,fullWidth:i==null?void 0:i.fullWidth,children:f.jsx(TK,{source:n,label:!1,...i})})}function IK({canEdit:e=!0,canDelete:t=!0,canClone:n=!1}){return!e&&!t&&!n?null:f.jsxs(No,{children:[e?f.jsx(L.EditButton,{}):null,t?f.jsx(ll,{}):null,n?f.jsx(L.CloneButton,{}):null]})}const hE=ue("div",{overridesResolver:(e,t)=>t.root})({display:"inline-block"}),OK=ue("ul")({display:"inline-block"});function PK(e){var p;const{className:t,emptyText:n,source:r,title:o,...i}=e,a=q.useRecordContext(e),c=Ze.get(a,r),u=q.useTranslate();if(!c)return n?f.jsx(S.Typography,{component:"span",variant:"body2",className:t,...i,children:n?u(n,{_:n}):null}):f.jsx(hE,{className:t,...i});if(Array.isArray(c))return f.jsx(OK,{className:t,...i,children:c.map((g,v)=>{var b;const y=o instanceof String?(b=Ze.get(g,o))==null?void 0:b.toString():o;return f.jsx("li",{children:y},v)})});const d=o instanceof String?(p=Ze.get(a,o))==null?void 0:p.toString():o;return f.jsx(hE,{className:t,...i,children:d})}function gE({entityId:e,property:t,disabled:n,showUser:r=!1,userResource:o="entities/user",resource:i,...a}){const[c,u]=E.useState(null),d=L.useRecordContext(a),p=L.useDataProvider(),g=L.useResourceContext(),v=L.useNotify(),y=E.useCallback(async w=>{w.preventDefault(),w.stopPropagation(),v("ra.notification.download",{type:"info"});const A=Ze.get(d,a==null?void 0:a.source),j=(i||g).replace("entities/",""),T=e||(d==null?void 0:d.id),P=await p.getFile(`/attachments/${j}/${T}/${t||(a==null?void 0:a.source)}/${(A==null?void 0:A.id)||(d==null?void 0:d.id)}`),O=document.createElement("a");O.href=P,O.download=Ze.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source)),O.click()},[p,d,e,g,i,t,a==null?void 0:a.source,a==null?void 0:a.title,v]),b=E.useMemo(()=>({...d,[a==null?void 0:a.source]:(d==null?void 0:d.src)||Ze.get(d,a==null?void 0:a.source),[a==null?void 0:a.title]:(d==null?void 0:d.title)||Ze.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),[d,a==null?void 0:a.source,a==null?void 0:a.title]),x=L.useTranslate();return E.useEffect(()=>{!d||!(d!=null&&d.userId)||r===!1||p.getOne(o,{id:d==null?void 0:d.userId}).then(({data:w})=>u(w)).catch(()=>u(null))},[d,p,o,r]),f.jsx(PK,{...a,disabled:n,record:b,onClick:y,title:f.jsxs(S.Box,{sx:{cursor:"pointer"},children:[f.jsx(S.Typography,{variant:"subtitle1",children:Ze.get(b,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),f.jsxs(S.Typography,{variant:"caption",color:"secondary",children:[Ze.get(b,"sizeDescription"),r&&c?" | ":null,r&&c?x("ra.attachment.info",{user:c==null?void 0:c.name,created:Or(b==null?void 0:b.createdAt).format("DD/MM/YYYY HH:mm")}):null]})]})})}const jK=ue(L.ImageField,{slot:"root"})(()=>({}));function mE(e){const t=`_${e==null?void 0:e.source}`;return f.jsx(jK,{...e,source:t})}function vE({width:e=150,height:t=150,circle:n=!1,justify:r="flex-start",record:o,sx:i,...a}){const c=E.useMemo(()=>({width:typeof e=="number"?`${e}px !important`:`${e} !important`,height:typeof t=="number"?`${t}px !important`:`${t} !important`,borderRadius:n?"50%":1.5,...i}),[e,t,n,i]),u=L.useRecordContext(),d=o||u;return f.jsx(mE,{sx:p=>({margin:0,display:"flex",justifyContent:r,"& img":{margin:"0px !important",border:`1px solid ${p.palette.divider}`,objectFit:"cover !important",...c,minWidth:c.width,minHeight:c.height}}),...a,record:d})}var kK={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],o=n%100;return"["+n+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(kK);var MK={exports:{}};(function(e,t){(function(n,r){e.exports=r(eE)})(xn,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(n),i={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return o.default.locale(i,null,!0),i})})(MK);var yE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){return function(n,r,o){n=n||{};var i=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(d,p,g,v){return i.fromToBase(d,p,g,v)}o.en.relativeTime=a,i.fromToBase=function(d,p,g,v,y){for(var b,x,w,A=g.$locale().relativeTime||a,j=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=j.length,P=0;P<T;P+=1){var O=j[P];O.d&&(b=v?o(d).diff(g,O.d,!0):g.diff(d,O.d,!0));var _=(n.rounding||Math.round)(Math.abs(b));if(w=b>0,_<=O.r||!O.r){_<=1&&P>0&&(O=j[P-1]);var R=A[O.l];y&&(_=y(""+_)),x=typeof R=="string"?R.replace("%d",_):R(_,p,O.l,w);break}}if(p)return x;var N=w?A.future:A.past;return typeof N=="function"?N(x):N.replace("%s",x)},i.to=function(d,p){return c(d,p,this,!0)},i.from=function(d,p){return c(d,p,this)};var u=function(d){return d.$u?o.utc():o()};i.toNow=function(d){return this.to(u(this),d)},i.fromNow=function(d){return this.from(u(this),d)}}})})(yE);var FK=yE.exports;const _K=Dr(FK);Or.extend(_K);function bE(e){const t=L.useRecordContext(e),[n]=L.useLocaleState(),r=E.useMemo(()=>Or(Ze.get(t,e==null?void 0:e.source)).locale(n).fromNow(),[t,e==null?void 0:e.source,n]);return f.jsxs(f.Fragment,{children:[f.jsx(L.DateField,{record:t,source:e.source,showTime:!0}),f.jsx("br",{}),f.jsx(S.Typography,{variant:"caption",color:"textSecondary",children:r})]})}const RK=ue(L.DateField,{slot:"Root"})(()=>({}));function DK({variant:e="body1",...t}){return f.jsx(RK,{...t,variant:e})}const LK=ue(L.EmailField,{slot:"Root"})(()=>({}));function BK({variant:e="body1",...t}){return f.jsx(LK,{...t,variant:e})}const NK=ue(L.FileField,{slot:"root"})(()=>({}));function xE({...e}){const t=L.useRecordContext(e),n=E.useCallback(r=>{r.preventDefault(),r.stopPropagation();const o=Ze.get(t,`_${e==null?void 0:e.source}`,Ze.get(t,e==null?void 0:e.source)),i=Ze.get(t,(e==null?void 0:e.title)||(e==null?void 0:e.source))||(e==null?void 0:e.title),a=document.createElement("a");a.href=o,a.download=i,a.click()},[e==null?void 0:e.source,t,e==null?void 0:e.title]);return f.jsx(NK,{...e,record:t,onClick:n})}function VK({variant:e="body1",...t}){return f.jsx(L.FunctionField,{...t,variant:e})}const WK=ue(L.TextField,{slot:"Root"})(()=>({}));function CE({variant:e="body1",...t}){return f.jsx(WK,{...t,variant:e})}function zK(e){const t=S.useTheme(),n=q.useLocales(),{source:r=""}=e,i=q.useRecordContext(e)[r],a=!Ju(i,n),c=Ir(e,{flex:1}),[u]=q.useLocaleState(),d=E.useMemo(()=>a?f.jsx(Ue.FlagFilled,{style:{color:t.palette.warning.main}}):f.jsx(Ue.FlagOutlined,{}),[a,t.palette.warning.main]),p=E.useMemo(()=>f.jsx(S.Stack,{children:te.map(n,(g,v)=>f.jsx(S.Typography,{children:`${g.locale.toUpperCase()}: ${(i??{})[g.locale]??""}`},v))}),[i,n]);return f.jsx(fu,{title:p,arrow:!1,children:f.jsxs(S.Stack,{alignItems:"center",direction:"row",gap:1,children:[d,f.jsx(CE,{...e,source:`${r}.${u}`,sx:c})]})})}const UK=ue("div")(({theme:e,fullWidth:t})=>({borderBottom:`1px solid ${e.palette.divider}`,paddingTop:e.spacing(1),paddingBottom:e.spacing(1),marginBottom:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:t?"100%":"auto",[e.breakpoints.down("sm")]:{whiteSpace:"normal",overflow:"visible",textOverflow:"inherit"}}));function HK({source:e,defaultValue:t="&nbsp;",...n}){const r=L.useRecordContext(n),o=Ze.get(r,e,t);return f.jsx(S.Typography,{...n,dangerouslySetInnerHTML:{__html:o&&o!==null?o:t}})}function GK({title:e,children:t}){return t==null?null:typeof e=="string"||e===!0?f.jsx(S.Tooltip,{title:e,placement:"top",children:t}):t}function YK({label:e,source:t,defaultValue:n="&nbsp;",children:r=f.jsx(HK,{source:"",defaultValue:void 0,record:void 0}),tooltip:o,...i}){const a=E.Children.only(r),{getCurrentDialog:c}=fE(),u=L.useRecordContext(i),d=L.useResourceContext(i),p=c(),g=E.useMemo(()=>o===!1?!1:typeof o=="function"?o(u):typeof o=="string"?Ze.get(u,o,o):o,[u,o]),v=Ir(i,{width:i!=null&&i.fullWidth?"100%":"auto"});return f.jsx(GK,{title:g,children:f.jsxs(f.Fragment,{children:[f.jsx(S.InputLabel,{sx:{pt:1},children:f.jsx(L.FieldTitle,{label:e,source:t,resource:p||d})}),f.jsx(UK,{...i,children:E.isValidElement(a)?E.cloneElement(a,{...a.props,source:t,record:u,defaultValue:n,resource:p||d,sx:v}):null})]})})}function KK({children:e=null,className:t=""}){return f.jsx("div",{className:t,children:e})}const XK=Na(KK,{slot:"root"})(({theme:e,bulkActionButtons:t})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,"&>div:first-of-type":{alignItems:"center","& form":{padding:e.spacing(2.5)},"& .MuiToolbar-root":{alignItems:"center",padding:"0 !important",marginTop:e.spacing(1),[e.breakpoints.up("sm")]:{marginLeft:e.spacing(2),marginRight:e.spacing(2),width:`calc(100% - ${e.spacing(4)})`},[e.breakpoints.down("md")]:{marginTop:0,display:"contents"}}},"& .RaDatagrid-root":{overflowX:"auto",paddingTop:t===!1?0:48,[e.breakpoints.down("sm")]:{width:"calc(100vw - 26px)"},"& .RaBulkActionsToolbar-toolbar":{borderRadius:0,"& > .RaBulkActionsToolbar-title":{alignItems:"center"},[e.breakpoints.down("sm")]:{paddingLeft:e.spacing(3)}},"& .RaDatagrid-table":{borderBottom:`1px solid ${e.palette.divider}`}},"& .MuiTablePagination-toolbar":{marginTop:"0 !important",marginBottom:"0 !important"},"& .RaBulkActionsToolbar-collapsed.RaBulkActionsToolbar-toolbar":{minHeight:0}}));function wE(e){return f.jsx(XK,{...e,children:f.jsx(L.ReferenceManyField,{pagination:f.jsx(L.Pagination,{}),...e})})}function ZK({source:e,...t}){const n=L.useRecordContext(t),r=Ze.get(n,e,0),o=r/1024,i=o/1024,a=i/1024,c=a>1?`${a.toFixed(2)} GB`:i>1?`${i.toFixed(2)} MB`:o>1?`${o.toFixed(2)} KB`:`${r.toFixed(2)} B`;return f.jsx(S.Typography,{component:"span",variant:"body1",...t,children:c})}function dn({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,...c}){const u=pt(),{getCurrentDialog:d}=Ng(),{source:p,resource:g,isRequired:v,chip:y}=c,{fieldState:{invalid:b}}=L.useInput(c),x=d();return f.jsxs(S.Stack,{spacing:1,sx:{width:c!=null&&c.fullWidth?"100%":"auto","& .MuiFormHelperText-root":{pb:0,color:b?u.palette.error.main:u.palette.text.secondary,"& span":{display:"none"}},...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:b===!0,sx:{borderBottom:a?`1px solid ${u.palette.divider}`:"none",pt:.5,pb:a?1:0,mt:a?1:0},children:f.jsx(L.FieldTitle,{label:e,source:p,resource:x||g,isRequired:v})}),E.isValidElement(t)?E.cloneElement(t,{...t.props,...c,chip:y&&typeof y=="function"?E.createElement(y):y,label:n==="legend"?e:!1}):t,r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:b===!0,children:r}):null]})}function QK(e){return e?{"& .RaFileInput-removeButton > .RaFileInputPreview-removeButton":{display:"none",visiblity:"hidden"},"& .RaFileInput-dropZone":{display:"none",visiblity:"hidden"}}:{}}const JK=ue(L.FileInput,{slot:"root"})(({disabled:e,theme:t})=>({"& .previews":{},"& .previews>div":{marginTop:t.spacing(1),padding:t.spacing(1.5),border:`1px solid ${t.palette.divider}`,borderRadius:t.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:t.palette.action.hover},"& .MuiLink-root":{fontSize:t.typography.body1.fontSize}},...QK(e)}));function qK({children:e=f.jsx(gE,{title:"name",source:"path"}),multiple:t=!1,disabled:n=!1,type:r="attachment",...o}){const i=L.useRecordContext(o),a=o==null?void 0:o.source,c=i==null?void 0:i.id;return L.useInput({source:`__${r}__${o==null?void 0:o.source}`,defaultValue:o==null?void 0:o.source}),f.jsx(dn,{...o,disabled:n,children:f.jsx(JK,{type:r,multiple:t,disabled:n,children:E.cloneElement(e,{entityId:c,property:a,...e.props})})})}const $K=ue(L.AutocompleteArrayInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall:has(.MuiChip-root)":{paddingBottom:"4px"},"& .MuiAutocomplete-tag":{margin:"0px 4px 4px 0px"}}));function eX({size:e="small",...t}){return f.jsx(dn,{...t,children:f.jsx($K,{size:e})})}const tX=ue(L.AutocompleteInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"}}));function nX({size:e="small",...t}){const{perPage:n,...r}=t;return f.jsx(dn,{...r,children:f.jsx(tX,{size:e})})}const rX=ue(L.BooleanInput,{slot:"Root"})(()=>({marginTop:"0 !important"}));function oX({...e}){const t=Wt.useTheme();return f.jsx(dn,{...e,children:f.jsx(rX,{sx:{"& .MuiFormControlLabel-root":{marginLeft:"0 !important",marginRight:"0 !important"},"& .MuiSwitch-root":{margin:"0 !important",marginTop:e.display==="legend"?0:`${t.spacing(1)} !important`}}})})}const iX=4,sX=ue(L.DateInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function aX(e){const[t,n]=E.useState(""),r=E.useCallback(o=>{const i=o.target.value;Or(i).year().toString().length>iX?o.target.value=t:n(i)},[t]);return f.jsx(dn,{...e,children:f.jsx(sX,{...e,onInput:r})})}const lX=ue(L.DateTimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function cX(e){return f.jsx(dn,{...e,children:f.jsx(lX,{})})}const uX=ue(L.FileInput,{slot:"root"})(({theme:e})=>({"& .previews":{},"& .previews>div":{marginTop:e.spacing(1),padding:e.spacing(1.5),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:e.palette.action.hover},"& .MuiLink-root":{fontSize:e.typography.body1.fontSize}}}));function dX({children:e=f.jsx(xE,{source:"",title:""}),title:t,...n}){const r=tn.useWatch({name:n.source}),o=L.useRecordContext(n),{source:i}=n,a=E.useMemo(()=>{if(r&&(r!=null&&r.title))return r==null?void 0:r.title;const c=Ze.get(o,i);if(c){const u=c.split("__");return u.length>0?u[u.length-1]:c}return c},[o,i,r]);return f.jsx(dn,{...n,children:f.jsx(uX,{children:E.cloneElement(e,{...e.props,title:t||i,source:i,record:{...o,[i]:(r==null?void 0:r.title)||Ze.get(o,i),[`_${i}`]:(r==null?void 0:r.src)||Ze.get(o,`_${i}`),[t||i]:a}})})})}function fX({children:e=f.jsx(vE,{}),title:t,multiple:n=!1,...r}){const o=tn.useWatch({name:r.source}),i=L.useRecordContext(r),{source:a}=r;return L.useInput({source:`__image__${r==null?void 0:r.source}`,defaultValue:r==null?void 0:r.source}),f.jsx(dn,{...r,multiple:n,children:f.jsx(L.ImageInput,{accept:"image/*",children:E.cloneElement(e,{...e.props,title:t,source:a,record:{...i,[a]:(o==null?void 0:o.title)||Ze.get(i,a),[`_${a}`]:(o==null?void 0:o.src)||Ze.get(i,`_${a}`)}})})})}function hr(e){return f.jsx(dn,{...e,children:f.jsx(L.TextInput,{})})}const pX={vertical:"bottom",horizontal:"right"},hX={vertical:"top",horizontal:"right"};function gX({requiredAtLeastOneLocale:e,requiredLocale:t,validate:n,required:r,...o}){const{source:i}=o,a=q.useLocales(),c=E.useCallback((_="ra.validation.required",R="ra.validation.required_locale")=>N=>{if(e&&!t&&!qS(N,a))return _;if(t&&(!te.has(N,t)||te.isEmpty(te.get(N,t))))return{message:R,args:{locale:t}};if(!e&&r&&!Ju(N,a))return _},[e,t,a,r]),u=E.useMemo(()=>q.composeValidators(n,c()),[n,c]),{fieldState:d}=q.useInput({...o,validate:u}),{error:p}=d,g=tn.useWatch({name:i}),v=!Ju(g,a),[y]=q.useLocaleState(),[b,x]=E.useState(y),[w,A]=E.useState(null),j=!!w,T=E.useCallback(_=>A(j?null:_.currentTarget),[j,A]),P=E.useCallback(()=>A(null),[A]),O=E.useMemo(()=>te.map(a,(_,R)=>f.jsx(S.MenuItem,{onClick:()=>{x(_.locale),P()},children:f.jsx(S.ListItemText,{primary:`${_.locale.toUpperCase()}: ${(g??{})[_.locale]??""}`})},R)),[a,x,P,g]);return f.jsx(dn,{...o,validate:u,helperText:p!=null&&p.message?f.jsx(q.ValidationError,{error:p==null?void 0:p.message}):o==null?void 0:o.helperText,children:f.jsx(f.Fragment,{children:f.jsxs(S.Box,{flex:1,children:[te.map(a,(_,R)=>f.jsx(hr,{...o,source:`${i}.${_.locale}`,sx:{width:"100%",display:_.locale===b?"inline-flex":"none"},label:!1,helperText:!1,required:!1,InputProps:{endAdornment:f.jsx(S.Chip,{label:f.jsx(S.Typography,{variant:"button",children:b}),size:"small",onClick:T,color:v?"warning":void 0})}},R)),f.jsx(S.Menu,{anchorEl:w,open:j,anchorOrigin:pX,transformOrigin:hX,onClose:P,children:O})]})})})}const mX=ue(L.NumberInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function vX(e){return f.jsx(dn,{...e,children:f.jsx(mX,{})})}const yX=ue(L.RadioButtonGroupInput,{slot:"root"})(()=>({marginTop:"0 !important","& .MuiFormControlLabel-root":{marginLeft:-8}}));function bX(e){return f.jsx(dn,{...e,children:f.jsx(yX,{})})}function xX({source:e,minWidth:t=300,children:n}){const r=L.useResourceContext(),o=L.useRecordContext(),[i,a]=E.useState(Ze.get(o,e,"")),[c,u]=E.useState(!1),d=E.useCallback(b=>a(b.target.value),[]),p=L.useDataProvider(),g=E.useCallback(b=>{b.key==="Enter"&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,o,e]),v=E.useCallback(()=>{Ze.get(o,e)!==i&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,e,o]),y=E.useCallback(b=>{u(!0),p.update(r,{id:o.id,data:{...o,[e]:b,_changed:e},previousData:o}).then(()=>u(!1))},[p,r,e,o]);return E.useEffect(()=>a(Ze.get(o,e)),[o,e]),n?E.cloneElement(n,{...n.props,source:e,value:i,onChange:y}):f.jsx(S.TextField,{value:i,disabled:c,onChange:d,onKeyPress:g,onBlur:v,style:{minWidth:t,width:"100%"},multiline:!0,InputProps:{"arial-label":"naked"},size:"small"})}function CX({children:e,...t}){const n=E.Children.only(e);return f.jsx(L.ReferenceArrayInput,{...t,children:E.cloneElement(n,{...t,source:n.props.source||t.source})})}function wX({children:e,...t}){const n=E.Children.only(e);return f.jsx(L.ReferenceInput,{...t,children:E.cloneElement(n,{...t,source:n.props.source||t.source})})}function SX({reference:e,target:t,children:n,filters:r,actions:o,...i}){return f.jsx(L.ResourceContextProvider,{value:e,children:f.jsx(wE,{perPage:5,pagination:f.jsx(L.Pagination,{}),...i,reference:e,target:t,children:f.jsxs(f.Fragment,{children:[f.jsx(L.ListToolbar,{filters:r,actions:o}),n]})})})}const EX=ue(L.SearchInput,{slot:"root"})(()=>({}));function TX(e){return f.jsx(EX,{...e})}const AX=ue(L.SelectArrayInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiFormLabel-root.MuiInputLabel-root":{marginTop:"-3px"},"& .MuiInputLabel-root.MuiInputLabel-shrink":{marginTop:0},"& .MuiOutlinedInput-input:has(.MuiChip-root)":{paddingTop:"4px",paddingBottom:"6px",paddingLeft:"6px"}}));function IX({optionText:e="name",optionValue:t="id",...n}){return f.jsx(dn,{...n,children:f.jsx(AX,{optionText:e,optionValue:t,options:{autoWidth:!1}})})}const OX=ue(L.SelectInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1||e===null?0:"auto"}}));function PX(e){return f.jsx(dn,{...e,children:f.jsx(OX,{})})}function jX({multiline:e=!1,...t}){var u,d;const n=L.useTranslate(),r=L.maxLength(t==null?void 0:t.maxLength,"app.input.max_length_error"),o=(d=(u=tn.useController({name:t==null?void 0:t.source}))==null?void 0:u.field)==null?void 0:d.value;let i=t.helperText,a=t.validate;a?Array.isArray(a)&&a.indexOf(r)===-1&&a.push(r):a=[r];const c=n("app.input.max_length_info",{count:(o==null?void 0:o.length)||0,max:t==null?void 0:t.maxLength});return t!=null&&t.maxLength&&(i=i&&i.length>0?`${c} - ${n(i)}`:c),f.jsx(hr,{...t,validate:a,helperText:i,multiline:e,inputProps:{maxLength:t==null?void 0:t.maxLength}})}function kX(e){if(!e)return"";const t=tE(e);return t?t.format("HH:mm"):""}function MX(e){return e}const FX=ue(L.TimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function _X({parse:e=MX,format:t=kX,...n}){return f.jsx(dn,{...n,children:f.jsx(FX,{parse:e,format:t,...n})})}function Vg({onSuccess:e,firstAccess:t}){const{spacing:n}=Cn(),[r,o]=E.useState(!1),i=q.useAuthProvider(),a=q.useTranslate(),c=q.useNotify(),u=li.useQueryClient(),d=E.useCallback(p=>{const{oldPassword:g,newPassword:v}=p;o(!0),i==null||i.changePassword(g,v).then(()=>{c("ra.auth.password_changed"),u.invalidateQueries(["auth","getIdentity"]),e()}).catch(y=>{c((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>o(!1))},[i,e,c,u]);return f.jsx(q.ResourceContextProvider,{value:"user/change-password",children:f.jsx(q.EditContextProvider,{value:{record:{},resource:"user/change-password",save:d},children:f.jsx(Bg,{onSubmit:d,toolbar:f.jsx(Ho,{children:f.jsx(L.SaveButton,{disabled:r})}),children:f.jsxs(S.Grid,{container:!0,spacing:n,children:[t===!0&&f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Alert,{severity:"warning",children:[f.jsx(S.AlertTitle,{children:a("ra.auth.first_access.change_password")}),a("ra.auth.first_access.change_password_helper")]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(hr,{source:"oldPassword",type:"password",validate:q.required()})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(hr,{source:"newPassword",type:"password",validate:q.required()})})]})})})})}const SE=E.createContext({});function RX(e){const{useDefaults:t=!1,queryOptions:n={}}=e,r=L.useResourceContext(),o=L.useDataProvider(),{search:i}=ai.useLocation(),a=`${r}/new`,c=E.useCallback(()=>{if(!t||!te.isFunction(o.get))return Promise.resolve({});const v={};return new URLSearchParams(i??"").forEach((y,b)=>{v[b]=y}),o.get(a,v).then(y=>y.data).then(y=>{const{responseCode:b,value:x}=y;return b==="ok"?x:Promise.reject(y)})},[t,i,o,a]),u=E.useMemo(()=>te.chain(n).extend({queryKey:[r,i],queryFn:c}).value(),[r,i,c,n]),{data:d,isLoading:p}=li.useQuery(u),g=te.omit(e,["useDefaults"]);return p?f.jsx(S.Stack,{alignItems:"center",justifyContent:"center",flex:1,p:2,children:f.jsx(S.CircularProgress,{})}):f.jsx(SE.Provider,{value:d??{},children:f.jsx(L.Create,{...g,children:e.children})})}const DX=ue(RX,{slot:"root"})(({theme:e})=>({"& .RaCreate-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaCreate-main":{marginTop:0},"& .RaCreate-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaCreate-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaCreate-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function LX(){return E.useContext(SE)}const BX=ue(L.Edit,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-card":{[e.breakpoints.down("sm")]:{marginBottom:e.spacing(6)}},"& .RaEdi-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaEdit-main":{marginTop:0},"& .RaEdit-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaEdit-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function NX(e){return f.jsx(BX,{...e})}const VX=ue(S.CardHeader)(({theme:e})=>({marginTop:e.spacing(2.5),marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0})),WX=ue(S.Divider)(({theme:e})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,marginBottom:e.spacing(2),width:`calc(100% + ${e.spacing(5)})`}));function zX({title:e,divider:t=!0,variant:n="h5"}){const r=L.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(VX,{title:r(e,{_:e}),titleTypographyProps:{variant:n}}),t?f.jsx(WX,{}):null]})}function Wg(e){return e.id??e.label}function EE(e,t){const n=`^${e}.`.replaceAll(".","\\."),r=new RegExp(n,"g");return t.match(r)!==null}function UX(e){return te.map(e,"id")}function td(e){const t=e.match(new RegExp("[^.]+","g"));return t===null?0:t.length}function TE(e,t){const n=e!==void 0?td(e):0;return te.chain(t).filter(o=>e!==void 0?EE(e,o.id):!0).filter(o=>td(o.id)===n+1).value()}function HX(e,t){var i;const n=te.clone(e),{type:r,payload:o}=t;switch(r){case"setFormRootPath":return te.extend(n,{formRootPath:o});case"setSyncWithLocation":return te.extend(n,{syncWithLocation:o});case"setErrorCount":return te.extend(n,{errorCount:o});case"setActiveItem":return te.includes(UX(e.items),o)?te.extend(n,{activeItem:o}):n;case"addItem":{const{id:a}=o;return te.extend(n,{items:te.chain(n.items).clone().reject(c=>c.id===a).concat([o]).orderBy(c=>c.index).value()})}case"removeItem":{const a=te.isString(o)?o:o.id,c=te.chain(n.items).clone().reject(u=>u.id===a).value();return te.extend(n,{items:c}),n.activeItem===a&&te.extend(n,{activeItem:((i=te.first(c))==null?void 0:i.id)??void 0}),n}default:return n}}const GX={syncWithLocation:!0,errorCount:!0,items:[],activeItem:void 0},AE=E.createContext(void 0);function IE(e){const t=!!(e.syncWithLocation??!0),n=!!(e.errorCount??!0),{rootMatchString:r}=e,{pathname:o}=ai.useLocation(),[i,a]=E.useReducer(HX,te.cloneDeep(GX)),{formRootPath:c,items:u}=i,d=E.useMemo(()=>({state:i,dispatch:a}),[i,a]);return E.useEffect(()=>{const p=["entities/:resource/create/*",":resource/create/*","entities/:resource/:id/show/*",":resource/:id/show/*","entities/:resource/:id/*",":resource/:id/*"];r!==void 0&&p.push(r);const g=te.chain(p).map(y=>ai.matchPath(y,o)).reject(y=>y===null).first().value(),v=g==null?void 0:g.pathnameBase;v!==void 0&&v!==c&&a({type:"setFormRootPath",payload:v})},[o,c,r]),E.useEffect(()=>{a({type:"setSyncWithLocation",payload:!!t})},[t,a]),E.useEffect(()=>{a({type:"setErrorCount",payload:!!n})},[n,a]),E.useEffect(()=>{var p;if(t&&c!==void 0){let g=o.replace(c,"").replace(new RegExp(/^\/?/),"");te.isEmpty(g)&&(g=((p=te.chain(u).filter(v=>TE(v.id,u).length===0).orderBy([v=>td(v.id),v=>v.index]).first().value())==null?void 0:p.id)??void 0),a({type:"setActiveItem",payload:g})}},[a,c,o,u,t]),f.jsx(AE.Provider,{value:d,children:e.children})}function OE(){const e=E.useContext(AE);if(e===void 0)throw new Error("[LongForm] useFormContext: context undefined. Please provide a valid Context using LongForm.Provider");return e}function cl(){return OE().state}function zg(){return OE().dispatch}function PE(){return cl().formRootPath}function jE(){return cl().activeItem}function kE(){return cl().items}function ME(){return cl().syncWithLocation}function FE(){return cl().errorCount}function _E(){const e=zg();return E.useCallback(n=>{e({type:"setActiveItem",payload:n})},[e])}function RE(){const e=zg();return E.useCallback(n=>{e({type:"addItem",payload:n})},[e])}function DE(){const e=zg();return E.useCallback(n=>{e({type:"removeItem",payload:n})},[e])}const YX=ue(S.Grid,{name:"LongFormView",slot:"Root"})(({theme:e})=>({"& .MuiToolbar-root.RaToolbar-desktopToolbar":{marginLeft:`-${e.spacing(3)}`,marginRight:`-${e.spacing(3)}`,marginBottom:`-${e.spacing(2)}`,paddingTop:e.spacing(2.5),paddingBottom:e.spacing(2.5),[e.breakpoints.down("sm")]:{width:"auto !important",marginRight:0}},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingLeft:"0 !important",paddingRight:"0 !important",paddingBottom:"0 !important"},"& form > .MuiToolbar-root":{margin:0,marginRight:`-${e.spacing(.5)}`,[e.breakpoints.down("sm")]:{marginRight:e.spacing(.5)}}}));function LE(e){const{spacing:t}=Cn(),{spacing:n=t}=e,r=te.omit(e,["spacing"]);return f.jsx(L.Form,{...r,className:"LongFormView",children:f.jsx(YX,{container:!0,spacing:n*2,children:e.children})})}function BE(e){const{disposition:t={xl:9,lg:9,md:8,sm:8,xs:12}}=e,n=te.omit(e,["disposition"]);return f.jsx(S.Grid,{...n,item:!0,...t,children:e.children})}function NE(e){const t=jE();return t===void 0?!1:e===t||EE(e,t)}function VE(e){const t=kE();return E.useMemo(()=>TE(e,t),[t,e])}function KX(){const e=PE(),{search:t}=ai.useLocation(),n=ai.useNavigate();return E.useCallback(o=>{n(`${e}/${o}${t}`)},[e,n,t])}function WE(){const e=VE();return f.jsx(S.Card,{variant:"outlined",children:f.jsx(S.List,{sx:{"& .MuiListItemButton-root.Mui-selected":{borderColor:"palette.primary.main",borderRightStyle:"solid",borderRightWidth:2},"& .MuiListItemAvatar-root":{minWidth:24}},children:te.map(e,(t,n)=>f.jsx(Ug,{...t},n))})})}function Ug(e){const t=q.useTranslate()??te.identity,n=zE(e),{selected:r,label:o,icon:i,onClick:a,badge:c,items:u,isGroup:d,level:p,errors:g=0}=n,{spacing:v}=Cn(),[y,b]=E.useState(r),x=E.useCallback(j=>{b(!y),a(j)},[a,y]),w=i!==void 0,A=te.omit(e,["label","icon","selected","badge"]);return E.useEffect(()=>{r&&!y&&b(r)},[r,y,b]),f.jsxs(f.Fragment,{children:[f.jsx(S.ListItem,{...A,disablePadding:!0,children:f.jsxs(S.ListItemButton,{selected:r?!d:null,onClick:x,sx:{pl:v*p},children:[w?f.jsx(S.ListItemIcon,{children:i}):null,f.jsx(S.ListItemText,{inset:!w,primary:g===0?t(o):f.jsx(S.Badge,{variant:"dot",color:"error",sx:{"& > .MuiBadge-badge":{transform:"scale(1) translate(125%, 0)"}},children:t(o)})}),c?f.jsx(S.ListItemAvatar,{children:f.jsx(Xc,{type:"filled",size:"xs",color:c.color??"default",children:c.content})}):null,d?y?f.jsx(en.ExpandLess,{}):f.jsx(en.ExpandMore,{}):null]})}),d?f.jsx(S.Collapse,{in:y,timeout:"auto",children:f.jsx(S.List,{children:te.map(u,(j,T)=>f.jsx(Ug,{...j},T))})}):null]})}function zE(e){const{id:t}=e,n=NE(t),r=td(t),o=KX(),i=ME(),a=_E(),c=VE(t),u=!te.isEmpty(c),d=E.useCallback(g=>{u||(i?o(e.id):a(e.id)),te.isFunction(e.onClick)&&e.onClick(g)},[a,o,e,i,u]);return E.useMemo(()=>({...e,selected:n,onClick:d,items:c,isGroup:u,level:r}),[e,n,d,c,u,r])}var XX=e=>{let t=e;for(;t=t.parentElement;){const n=getComputedStyle(t,null).getPropertyValue("overflow-y");if(t===document.body)return window;if(n==="auto"||n==="scroll"||n==="overlay")return t}return window},UE=e=>e.firstChild?e.firstChild.offsetParent===e:!0,ZX=(e,t)=>{let n=e,r=0;UE(t)||(r+=e.offsetTop-t.offsetTop,t=e.offsetParent,r+=-e.offsetTop);do r+=n.offsetTop,n=n.offsetParent;while(n&&n!==t);return r},QX=e=>{let t=e.parentElement;for(;t&&getComputedStyle(t,null).getPropertyValue("display")==="contents";)t=t.parentElement;return t||window},ul=null;typeof CSS<"u"&&CSS.supports&&(CSS.supports("position","sticky")?ul="sticky":CSS.supports("position","-webkit-sticky")&&(ul="-webkit-sticky"));var nd=!1;try{const e=Object.defineProperty({},"passive",{get(){nd={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch{}var Hg=e=>{const{el:t,onChange:n,unsubs:r,measure:o}=e;if(t===window){const i=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),a=o(i()),c=()=>{Object.assign(a,o(i())),n()};return window.addEventListener("resize",c,nd),r.push(()=>window.removeEventListener("resize",c)),a}else{const i=o(t.getBoundingClientRect()),a=()=>{Object.assign(i,o(t.getBoundingClientRect())),n()},c=new ResizeObserver(a);return c.observe(t),r.push(()=>c.disconnect()),i}},JX=e=>{const t=getComputedStyle(e,null),n=parseInt(t.getPropertyValue("padding-top"),10),r=parseInt(t.getPropertyValue("padding-bottom"),10);return{top:n,bottom:r}},qX=(e,t,n)=>{const{bottom:r,offsetBottom:o,offsetTop:i}=n,a=XX(e);let c=!1;const u=()=>{c||requestAnimationFrame(()=>{const R=g();R!==T&&P(R),c=!1}),c=!0};let d=a===window?window.scrollY:a.scrollTop;const p=R=>{const{offsetTop:N,height:Y}=y,{naturalTop:X}=w,{height:G}=A;return R+N+Y>=X+G+j+o},g=()=>{const{height:R}=y,{height:N}=A;return N+i+o<=R?3:p(d)?1:2},v=a!==window&&UE(a),y=Hg({el:a,onChange:u,unsubs:t,measure:({height:R,top:N})=>({height:R,offsetTop:v?N:0})}),b=QX(e),x=b===window?{top:0,bottom:0}:JX(b),w=Hg({el:b,onChange:u,unsubs:t,measure:({height:R})=>({height:R-x.top-x.bottom,naturalTop:b===window?0:ZX(b,a)+x.top+y.offsetTop})}),A=Hg({el:e,onChange:u,unsubs:t,measure:({height:R})=>({height:R})});let j=0,T=g();const P=R=>{const N=T;if(T=R,N===2&&(j=-1),R===3){e.style.position=ul,r?e.style.bottom=`${o}px`:e.style.top=`${i}px`;return}const{height:Y,offsetTop:X}=y,{height:G,naturalTop:re}=w,{height:ne}=A;if(R===2)if(e.style.position="relative",j=N===0?Math.max(0,X+d-re+i):Math.max(0,X+d+Y-(re+ne+o)),r){const Z=Math.max(0,G-ne-j);e.style.bottom=`${Z}px`}else e.style.top=`${j}px`;else e.style.position=ul,R===1?r?e.style.bottom=`${o}px`:e.style.top=`${Y-ne-o}px`:r?e.style.bottom=`${Y-ne-o}px`:e.style.top=`${i}px`};P(T);const O=R=>{if(R===d)return;const N=R-d;if(d=R,T===3)return;const{offsetTop:Y,height:X}=y,{naturalTop:G,height:re}=w,{height:ne}=A;if(N>0)if(T===0){if(R+Y+i>G){const Z=Math.max(0,Y+d-G+i);R+Y+X<=G+ne+Z+o?P(2):P(1)}}else T===2&&p(R)&&P(1);else if(T===1){if(Y+R+X<G+re+o){const Z=Math.max(0,Y+d+X-(G+ne+o));Y+R+i>=G+Z?P(2):P(0)}}else T===2&&Y+R+i<G+j&&P(0)},_=a===window?()=>O(window.scrollY):()=>O(a.scrollTop);a.addEventListener("scroll",_,nd),a.addEventListener("mousewheel",_,nd),t.push(()=>a.removeEventListener("scroll",_),()=>a.removeEventListener("mousewheel",_))},$X=({offsetTop:e=0,offsetBottom:t=0,bottom:n=!1}={})=>{const[r,o]=E.useState(null);return E.useEffect(()=>{if(!r||!ul)return;const i=[];return qX(r,i,{offsetBottom:t,offsetTop:e,bottom:n}),()=>{i.forEach(a=>a())}},[r,t,e,n]),o},eZ=e=>{const{offsetTop:t,offsetBottom:n,bottom:r,children:o,className:i,style:a}=e,c=$X({offsetTop:t,offsetBottom:n,bottom:r});return f.jsx("div",{className:i,style:a,ref:c,children:o})},tZ=eZ,HE=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(HE||{});function GE(e){const{sticky:t=!0,disposition:n={xl:3,lg:3,md:4,sm:4,xs:12},spacing:r=2}=e,o=te.omit(e,["sticky","disposition","spacing"]),i=t?tZ:S.Box,a=E.useMemo(()=>t?{offsetTop:74,offsetBottom:r*2}:{},[t,r]);return f.jsx(S.Grid,{...o,item:!0,...n,children:f.jsx(i,{...a,children:f.jsx(S.Stack,{spacing:r,children:e.children})})})}function YE(e){return f.jsx(f.Fragment,{children:e.children})}function KE(e){const{children:t}=e;return E.useMemo(()=>{const r={top:[],bottom:[]};return E.Children.forEach(t,o=>{if(E.isValidElement(o)&&(o==null?void 0:o.type)===YE){const{position:i}=o.props;switch(i){case"top":r.top.push(o);break;case"bottom":r.bottom.push(o);break}}}),r},[t])}function XE(e){const{errors:t}=tn.useFormState(),n=FE(),{label:r,icon:o,badge:i,index:a=0,children:c}=e,u=Wg(e),d=RE(),p=DE(),g=NE(u),v=[];n&&(e.sources!==void 0?v.push(...e.sources):qu(c,b=>{var x;((x=b==null?void 0:b.props)==null?void 0:x.source)!==void 0&&v.push(b.props.source)}));const y=te.chain(v).uniq().map(b=>te.get(t,b)).reject(b=>b===void 0).value().length;return E.useEffect(()=>{d({id:u,index:a,label:r,icon:o,badge:i,errors:y})},[d,p,r,o,u,i,a,y]),E.useEffect(()=>()=>{p(u)},[u,p]),f.jsx(S.Box,{display:g?"unset":"none",children:e.children})}function ZE(e){const t=Gg(e),n=Wg(e);return f.jsx(XE,{...e,id:n,children:E.Children.map(t,r=>{const o=Wg(r.props);return E.cloneElement(r,{id:`${n}.${o}`})})})}function QE(e){return f.jsx(XE,{...e})}function Gg(e){const{children:t}=e;return E.useMemo(()=>te.chain(E.Children.toArray(t)).filter(r=>E.isValidElement(r)&&((r==null?void 0:r.type)===QE||(r==null?void 0:r.type)===ZE)).map((r,o)=>E.cloneElement(r,{index:o})).value(),[t])}function nZ(e){const{tabsDisposition:t,contentDisposition:n,spacing:r=2}=e,o=te.pick(e,["syncWithLocation","errorCount"]),i=te.omit(e,["tabsDisposition","contentDisposition","syncWithLocation"]),{top:a,bottom:c}=KE(e),u=Gg(e);return f.jsx(IE,{...o,children:f.jsxs(LE,{...i,spacing:r,children:[f.jsxs(GE,{disposition:t,spacing:r,children:[a,f.jsx(WE,{}),c]}),f.jsx(BE,{disposition:n,children:u})]})})}const _t=nZ;_t.BaseForm=LE,_t.Content=BE,_t.Provider=IE,_t.useItems=kE,_t.useSyncWithLocation=ME,_t.useErrorCount=FE,_t.useFormRootPath=PE,_t.useActiveItem=jE,_t.useSetActiveItem=_E,_t.useAddItem=RE,_t.useRemoveItem=DE,_t.Sidebar=GE,_t.SidebarSection=YE,_t.SidebarSectionPosition=HE,_t.useSidebarChildren=KE,_t.NavMenu=WE,_t.NavMenuItem=Ug,_t.useNavMenuItem=zE,_t.Tab=QE,_t.Group=ZE,_t.useBaseItemChildren=Gg;const rZ=ue(L.Show,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaShow-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaShow-main>.MuiPaper-root:first-of-type":{overflow:"visible"}}));function oZ(e){return f.jsx(rZ,{...e})}const iZ=ue(L.SimpleFormIterator,{root:"root"})(({theme:e})=>({"& .RaSimpleFormIterator-line":{paddingTop:e.spacing(1),paddingBottom:e.spacing(.5)},"& .RaSimpleFormIterator-action":{display:"flex",flexDirection:"row",alignItems:"center",mb:1.5},"& section":{width:"100%","& label":{position:"relative",overflow:"visible",transform:"none",marginLeft:0}}}));function sZ(e){return f.jsx(iZ,{...e})}const aZ=Na(L.TabbedForm,{slot:"Root"})(({theme:e})=>({"& .MuiGrid-root.MuiGrid-container":{paddingBottom:0},[e.breakpoints.down("sm")]:{paddingBottom:0,"& .MuiTableContainer-root":{paddingBottom:e.spacing(1)}}}));function lZ({children:e}){return f.jsx(f.Fragment,{children:e})}function Yg(e){const{title:t,modal:n,content:r,subheader:o,secondary:i=f.jsx(No,{children:f.jsx(ll,{})}),sx:a,noPadding:c,toolbar:u=f.jsx(Ho,{children:f.jsx(L.SaveButton,{type:"button"})}),...d}=e,p=Fg(t),g=S.useTheme();return f.jsx(On,{title:p,modal:n,content:r,subheader:o,secondary:i,sx:{...a,"& .MuiTabs-root":{m:2.5,mb:0},"& .tabbed-form > .MuiDivider-root":{ml:2.5,mr:2.5},"& .MuiToolbar-root.RaToolbar-desktopToolbar":{paddingTop:n?g.spacing(2.5):0},"& .MuiToolbar-root":{padding:g.spacing(2.5),borderTop:n?`1px solid ${g.palette.divider}`:void 0}},border:!n,divider:!0,children:f.jsx(aZ,{toolbar:u,component:c?lZ:void 0,...d})})}function cZ({children:e,...t}){return f.jsx(L.TabbedForm.Tab,{...t,children:f.jsx(S.Box,{sx:{width:"100%",p:2.5},children:e})})}Yg.Tab=L.TabbedForm.Tab,Yg.TabStack=cZ;function Kg(e){const{label:t,disableAdd:n,onClick:r,inset:o}=e,i=S.useTheme(),a=i.palette.mode==="dark"?i.palette.grey.A400:i.palette.grey.A800,c=i.palette.mode==="light"?"#000000":"#FFFFFF";return f.jsxs(S.Stack,{justifyContent:"space-between",alignItems:"center",flexDirection:"row",sx:o?{p:2.5}:{pt:2},children:[t!==!1&&f.jsx(S.Typography,{children:t}),!n&&(E.isValidElement(e==null?void 0:e.customButton)?E.cloneElement(e==null?void 0:e.customButton,{onClick:r}):f.jsx(S.IconButton,{color:"secondary",sx:{border:`1px solid ${a}`},onClick:r,children:f.jsx(Ue.PlusCircleOutlined,{style:{color:c}})}))]})}const Xg=E.createContext(void 0);function JE(){return E.useContext(Xg)}function rd(e){const{children:t}=e,{item:n,index:r}=JE(),[o,i]=E.useState(!1),{update:a}=L.useArrayInput(),c=L.useTranslate(),u=E.useCallback(d=>(i(!1),a(r,d),Promise.resolve()),[r,a]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{color:"primary",onClick:()=>i(!0),sx:{justifyContent:"flex-start"},children:c("ra.action.edit")}),f.jsx(S.Dialog,{open:o,onClose:()=>i(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(L.EditContextProvider,{value:{record:n,save:u},children:t})})]})}function qE({source:e,children:t}){const n=E.Children.only(t),{getValues:r}=tn.useFormContext(),o=L.useRecordContext({record:r()});return E.isValidElement(n)?E.cloneElement(n,{source:e,record:o}):null}function Zg(e){const{label:t,disableAdd:n,inset:r,source:o,template:i}=e,[a,c]=E.useState(!1),{append:u}=L.useArrayInput(),d=E.useCallback(()=>{c(g=>!g)},[c]),p=E.useCallback(g=>(c(!1),u(g),Promise.resolve()),[c,u]);return f.jsxs(f.Fragment,{children:[E.cloneElement(f.jsx(Kg,{}),{label:t,source:o,disableAdd:n,template:i,onClick:d,inset:r}),f.jsx(S.Dialog,{open:a,onClose:d,maxWidth:"xs",children:f.jsx(q.CreateContextProvider,{value:{save:p},children:e.children})})]})}const Qg=E.createContext(void 0);function $E(){return E.useContext(Qg)}const eT=D.forwardRef((e,t)=>{const{children:n,disabled:r,disableRemove:o=!1,index:i,member:a,resource:c,record:u}=e,d=L.useTranslate(),[p,g]=D.useState(!1),{total:v,remove:y}=$E(),b=D.useCallback(()=>{g(!1),y(i)},[i,y]),x=E.useMemo(()=>({index:i,total:v,item:u,remove:()=>y(i)}),[i,v,y,u]),w=E.useMemo(()=>E.Children.map(n,A=>E.isValidElement(A)&&(A==null?void 0:A.type)===rd&&D.isValidElement(A)?A:null),[n]);return f.jsxs(Xg.Provider,{value:x,children:[E.Children.map(n,(A,j)=>{if(A.type===rd||!E.isValidElement(A))return null;const{source:T,...P}=A.props;return f.jsx(S.TableCell,{children:E.cloneElement(A,{source:T?`${a}.${T}`:a,index:T?void 0:j,resource:c,disabled:r,...P,label:""})})}),!o&&f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsxs(No,{horizontal:!0,children:[f.jsx(S.Button,{onClick:()=>g(!0),color:"error",sx:{justifyContent:"flex-start"},children:d("ra.action.delete")}),w]})})}),o&&w?f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsx(No,{horizontal:!0,children:w})})}):null,n.length>0&&f.jsx(L.Confirm,{isOpen:p,title:d("ra.action.remove_item"),content:d("ra.message.remove_item"),onConfirm:b,onClose:()=>g(!1)})]})});function uZ(e){var $,W;const{children:t,resource:n,source:r,label:o,disableAdd:i=!1,disableRemove:a=!1,enableClearAll:c=!1,className:u,empty:d,template:p={},addButton:g=f.jsx(Kg,{}),inset:v,sx:y}=e,[b,x]=E.useState(!1),{fields:w,remove:A,replace:j,append:T}=L.useArrayInput(e),{resetField:P}=tn.useFormContext(),O=pt(),_=q.useTranslate(),R=E.useRef(p||{}),N=q.useTranslateLabel(),Y=E.useCallback(ie=>{A(ie)},[A]);if(w.length>0){const{...ie}=w[0];R.current=ie;for(const U in R.current)R.current[U]=null}const X=E.useCallback((ie=void 0)=>{let U=ie;ie==null&&(U=R.current,E.Children.count(t)===1&&D.isValidElement(E.Children.only(t))&&!E.Children.only(t).props.source&&E.Children.map(t,de=>D.isValidElement(de)&&de.type!==q.FormDataConsumer).some(Boolean)?U="":(U=U||{},E.Children.forEach(t,de=>{D.isValidElement(de)&&de.type!==q.FormDataConsumer&&de.props.source&&(U[de.props.source]=de.props.defaultValue??null)})));const ee={...U,...p};T(ee),P(`${r}.${w.length}`,{defaultValue:U})},[T,t,P,r,w.length,p]);function G(ie){return U=>{X(),ie&&ie(U)}}const re=E.useCallback(()=>{j([]),x(!1)},[j]),ne=E.useMemo(()=>({total:w.length,remove:Y,source:r}),[w.length,Y,r]),Z=O.palette.mode==="dark"?O.palette.grey.A400:O.palette.grey.A800,J=w.length>0&&c,V=v===!0?{borderRadius:0,borderBottom:`1px solid ${O.palette.divider}`}:{mt:2,border:`1px solid ${Z}`,boxShadow:O.customShadows.z0};return w?f.jsx(Qg.Provider,{value:ne,children:f.jsxs("div",{className:u,children:[D.cloneElement(g,{label:o,source:r,disableAdd:i,template:p,onClick:(g==null?void 0:g.type)!==Zg?G((W=($=e==null?void 0:e.addButton)==null?void 0:$.props)==null?void 0:W.onClick):void 0,inset:v}),f.jsx(S.TableContainer,{component:S.Paper,sx:{...V,boxShadow:O.customShadows.z0,...y},children:f.jsxs(S.Table,{size:"small",children:[f.jsx(S.TableHead,{sx:v===!0?{}:{borderTop:0,borderBottom:`1px solid ${Z}`},children:f.jsxs(S.TableRow,{children:[E.Children.map(t,(ie,U)=>{if(ie.type===rd||!D.isValidElement(ie))return null;const ee=f.jsx(S.Typography,{display:"flex",variant:"subtitle1",color:"text.primary",textTransform:"none",children:N({...ie.props,resource:n})});return f.jsx(S.TableCell,{children:ie.props.title?f.jsx(fu,{title:ie.props.title,arrow:!0,children:ee}):ee},U)}),!a&&J?f.jsx(S.TableCell,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(No,{horizontal:!0,children:f.jsx(S.Typography,{color:"error",onClick:()=>x(!0),children:_("ra.action.delete")})})},"actions"):f.jsx(S.TableCell,{},"empty_actions")]})}),f.jsxs(S.TableBody,{children:[w.length===0&&f.jsx(S.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:f.jsx(S.TableCell,{colSpan:4+(a?0:1),align:"center",children:d||f.jsx(S.Typography,{variant:"body1",color:"text.secondary",children:"-"})})}),w.length>0&&w.map((ie,U)=>f.jsx(S.TableRow,{sx:{borderBottom:0},children:f.jsx(eT,{disableRemove:a,index:U,member:`${r}.${U}`,onRemoveField:Y,record:w&&w[U]||{},resource:n,source:r,children:t})},ie.id))]})]})}),w.length>0&&f.jsx(L.Confirm,{isOpen:b,title:_("ra.action.clear_array_input"),content:_("ra.message.clear_array_input"),onConfirm:re,onClose:()=>x(!1)})]})}):null}const od=ue(uZ,{slot:"Root"})(({theme:e})=>({"& > div.MuiPaper-root":{overflowX:"auto",[e.breakpoints.down("sm")]:{width:`calc(100vw - ${e.spacing(8.25)})`}},[e.breakpoints.down("sm")]:{"& .MuiTableRow-root:last-child":{borderBottom:0}}}));od.CreateButton=Zg,od.EditButton=rd,od.Field=qE;const tT=E.createContext(void 0);function id(){const e=E.useContext(tT);if(!e)throw new Error("useWizardFormContext must be used within a WizardFormProvider");return e}function dZ({value:e,children:t}){return f.jsx(tT.Provider,{value:e,children:t})}function fZ({cancelButton:e,...t}){const{hasNextStep:n,hasPreviousStep:r,goToNextStep:o,goToPreviousStep:i}=id(),a=q.useTranslate(),{handleSubmit:c}=tn.useFormContext(),u=E.useCallback(()=>{o()},[o]);return f.jsxs(Ho,{...t,children:[f.jsx(S.Box,{sx:{"& .MuiButtonBase-root":{ml:0}},children:e?E.cloneElement(e):null}),f.jsx(S.Box,{sx:{flex:"1 1 auto"}}),r()&&f.jsx(S.Button,{variant:"text",color:"primary",onClick:i,children:a("ra.action.back")}),n()?f.jsx(S.Button,{variant:"contained",color:"primary",onClick:c(u),children:a("ra.action.next")}):f.jsx(L.SaveButton,{})]})}const pZ=S.styled(S.Stepper,{shouldForwardProp:e=>e!=="isHorizontal"})(({theme:e,isHorizontal:t})=>({paddingBottom:e.spacing(2),display:"flex",justifyContent:t?"space-between":"flex-start",".MuiStep-root":{flex:t?1:"none",maxWidth:t?"none":"100%",display:"flex",justifyContent:t?"center":"flex-start"},".MuiStepConnector-line.MuiStepConnector-lineVertical":{minHeight:12},".MuiStepConnector-vertical":{marginLeft:14.5},".MuiStepConnector-horizontal":{marginLeft:-10}})),hZ=S.styled(S.Box)(({theme:e,ownerState:t})=>({backgroundColor:t.error?e.palette.error.main:t.completed||t.active?e.palette.primary.main:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[400],zIndex:1,color:e.palette.common.white,width:30,height:30,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center"}));function gZ({completed:e,active:t,error:n,icon:r,className:o}){return f.jsx(hZ,{ownerState:{completed:e,active:t,error:n},className:o,children:n?"!":r})}function mZ({isHorizontal:e,setCurrentStep:t,stepFields:n}){const{currentStep:r,steps:o}=id(),{errors:i}=tn.useFormState();function a(c){c<=r&&t(c)}return f.jsx(pZ,{activeStep:r,orientation:e?"horizontal":"vertical",isHorizontal:e,sx:{p:3,mt:1},children:o.map((c,u)=>{const d=n[u].some(v=>te.get(i,v)),{label:p,icon:g}=c.props;return f.jsx(S.Step,{children:f.jsx(S.StepLabel,{StepIconComponent:gZ,error:d,icon:g,onClick:()=>a(u),style:{cursor:u<=r?"pointer":"default"},children:e?null:p})},u)})})}function vZ({title:e,subheader:t,secondary:n,toolbar:r,progress:o,isSmall:i,modal:a,sx:c,setCurrentStep:u}){const{currentStep:d,steps:p}=id(),g=L.useTranslate(),v=S.useTheme(),y=i||a,b=E.useMemo(()=>r?E.Children.toArray(r.props.children).find(w=>{var A;return E.isValidElement(w)&&w.type===S.Button&&((A=w.props)==null?void 0:A.children)===g("ra.action.cancel")}):null,[r,g]),x=p.map(w=>{const A=[],{sources:j}=w.props;return j!==void 0?A.push(...j):qu(w,T=>{var P;((P=T==null?void 0:T.props)==null?void 0:P.source)!==void 0&&A.push(T.props.source)}),A});return f.jsxs(S.Grid,{container:!0,spacing:2,sx:c,children:[f.jsx(S.Grid,{item:!0,xl:a?12:2,lg:a?12:3,md:a?12:3,sm:a?12:4,xs:12,children:o||f.jsx(mZ,{isHorizontal:y,setCurrentStep:u,stepFields:x})}),a?f.jsx(S.Divider,{sx:{width:"100%"}}):null,f.jsx(S.Grid,{item:!0,xl:a?12:10,lg:a?12:9,md:a?12:9,sm:a?12:8,xs:12,sx:{paddingTop:a?"0 !important":null},children:f.jsxs(On,{title:e||p[d].props.label,subheader:t,secondary:n,border:!a,divider:!0,children:[f.jsx(S.Box,{children:p[d]}),f.jsx(S.Box,{sx:{"& .MuiToolbar-root":{paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:v.spacing(2)}},children:r&&!b?r:f.jsx(fZ,{cancelButton:b})})]})})]})}const yZ=S.styled(L.Form,{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({[e.breakpoints.down("sm")]:t?{}:{paddingBottom:`${e.spacing(2.5)}`}}));function nT({children:e,toolbar:t,progress:n,title:r,subheader:o=null,secondary:i=null,sx:a,modal:c=!1,...u}){const[d,p]=E.useState(0),g=E.Children.toArray(e),v=S.useMediaQuery(j=>j.breakpoints.down("sm"));function y(){return d<g.length-1}function b(){return d>0}function x(){p(j=>Math.min(j+1,g.length-1))}function w(){p(j=>Math.max(j-1,0))}const A={currentStep:d,steps:g,hasNextStep:y,hasPreviousStep:b,goToNextStep:x,goToPreviousStep:w};return f.jsx(dZ,{value:A,children:f.jsx(yZ,{...u,modal:c,children:f.jsx(vZ,{title:r,subheader:o,secondary:i,modal:c,sx:a,toolbar:t,progress:n,isSmall:v,setCurrentStep:p})})})}function bZ({children:e}){return f.jsx(f.Fragment,{children:e})}nT.Step=bZ;function xZ(e,t){const n=te.clone(e),{type:r,payload:o}=t;switch(r){case"updateMedia":{const i=te.chain(n.media).clone().extend(o).value();return te.extend(n,{media:i})}case"updateDrawer":{const i=te.chain(n.drawer).clone().extend(o).value();return te.extend(n,{drawer:i})}case"updateLogo":{const i=te.chain(n.logo).clone().extend(o).value();return te.extend(n,{logo:i})}case"updateNotifications":{const i=te.chain(n.notifications).clone().extend(o).value();return te.extend(n,{notifications:i})}case"updateTheme":{const i=te.chain(n.theme).clone().extend(o).value();return te.extend(n,{theme:i})}default:return n}}const CZ={drawer:{open:!0,width:260,handleDrawerToggle:()=>{}},media:{downMd:!1,downLg:!1,downXl:!1,horizontal:!1},logo:{},notifications:{enable:!0,resource:"entities/notification"},theme:{iconColor:"grey.300",iconColorOpen:"grey.100"}},rT=E.createContext(void 0);function oT(e){var X;const t=q.useAuthProvider(),n=q.useGetIdentity(),r=S.useTheme(),o=S.useMediaQuery(r.breakpoints.down("md")),i=S.useMediaQuery(r.breakpoints.down("lg")),a=S.useMediaQuery(r.breakpoints.down("xl")),{miniDrawer:c,isHorizontalLayout:u,themeDirection:d,drawerWidth:p}=Dg(),g=u(d)&&!i,{drawerOpen:v,openDrawer:y}=zu(),b=E.useCallback(()=>{y(!v)},[v,y]),[x,w]=E.useState(!1),[A,j]=E.useReducer(xZ,te.chain(CZ).clone().merge({drawer:{open:!c||v}}).value()),T=E.useCallback(()=>w(!1),[]),P=E.useMemo(()=>({state:A,dispatch:j}),[A,j]),{logoIcon:O,logoMain:_,enableNotification:R,notification:N}=e,Y=L.useLoading();return E.useEffect(()=>{j({type:"updateMedia",payload:{downMd:o,downLg:i,downXl:a,horizontal:g}})},[o,i,a,g]),E.useEffect(()=>{j({type:"updateDrawer",payload:{open:v,width:p,handleDrawerToggle:b}})},[v,p,b]),E.useEffect(()=>{c||y(!a)},[a,c]),E.useEffect(()=>{j({type:"updateLogo",payload:{main:_,icon:O}})},[O,_]),E.useEffect(()=>{j({type:"updateNotifications",payload:{enable:R,resource:N??"entities/notification"}})},[R,N]),E.useEffect(()=>{j({type:"updateTheme",payload:{iconColorOpen:r.palette.mode==="dark"?"grey.200":"grey.300",iconColor:r.palette.mode==="dark"?"background.default":"grey.100"}})},[r.palette.mode]),E.useEffect(()=>{if(!Y){if(!t.isImpersonating){console.warn("authProvider does not contain a method called isImpersonating",t);return}t==null||t.isImpersonating().then(G=>{var re;w(!G&&((re=n==null?void 0:n.data)==null?void 0:re.needToChangePassword)===!0)})}},[(X=n==null?void 0:n.data)==null?void 0:X.needToChangePassword,t,Y]),f.jsxs(rT.Provider,{value:P,children:[f.jsx(S.Dialog,{open:x,maxWidth:"xs",fullWidth:!0,children:f.jsx(Vg,{onSuccess:T,firstAccess:!0})}),e.children]})}function iT(e){return E.forwardRef((t,n)=>{const{logoIcon:r,logoMain:o,enableNotification:i,notification:a}=t;return f.jsx(oT,{logoIcon:r,logoMain:o,enableNotification:i,notification:a,children:f.jsx(e,{ref:n,...t})})})}function Jg(){const e=E.useContext(rT);if(e===void 0)throw new Error("[Layout] useLayoutContext: context undefined. Please provide a valid LayoutContext using LayoutProvider");return e}function wZ(){return Jg().dispatch}function Rs(){return Jg().state}function Gn(){return Rs().media}function Pi(){return Rs().drawer}function sT(){return Rs().logo}function sd(){return Rs().notifications}function SZ(){return Rs().theme}function aT(e){const{width:t}=Pi(),{horizontal:n}=Gn(),{container:r}=Cn(),[o,i]=E.useState(null);function a(u,d){i(d)}const c=pt();return f.jsx(zU,{onError:a,fallbackRender:({error:u,resetErrorBoundary:d})=>f.jsx(vg,{error:u,errorComponent:e.error,errorInfo:o,resetErrorBoundary:d}),children:f.jsx(E.Suspense,{fallback:f.jsx(Xw,{}),children:f.jsxs(S.Box,{component:"main",sx:{width:`calc(100% - ${t}px)`,flexGrow:1,p:{xs:0,sm:2,lg:1},pt:{lg:2}},children:[f.jsx(S.Toolbar,{sx:{mt:n?8:"inherit"}})," ",f.jsx(S.Container,{maxWidth:r?"xl":!1,sx:{...r&&{px:{xs:0,sm:2}},position:"relative",minHeight:"calc(100vh - 110px)",display:"flex",flexDirection:"column",[c.breakpoints.down("sm")]:{px:"12px"}},children:e.children})]})})})}const lT=ue(S.Box,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({...e.mixins.toolbar,display:"flex",alignItems:"center",justifyContent:t?"flex-start":"center",paddingLeft:e.spacing(t?3:0)}));function cT({isIcon:e,sx:t,to:n,logoIcon:r,logoMain:o}){const{appDefaultPath:i}=Cn();return f.jsx(S.ButtonBase,{disableRipple:!0,component:ut.Link,to:n||i,sx:t,children:e?r:o})}function uT(e){const t=S.useTheme(),{horizontal:n}=Gn(),{open:r}=Pi(),{icon:o,main:i}=sT(),a=Ir(e,{minHeight:n?"unset":"60px",width:n?{xs:"100%",lg:"424px"}:"inherit",paddingTop:n?{xs:"10px",lg:"0"}:"8px",paddingBottom:n?{xs:"18px",lg:"0"}:"8px",paddingLeft:n?{xs:"24px",lg:"0"}:r?"24px":0});return f.jsx(lT,{theme:t,open:r,sx:a,children:f.jsx(cT,{to:"/",isIcon:!r,sx:{width:r?"auto":35,height:35},logoMain:i,logoIcon:o})})}function dT(e,t){return{width:t,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",boxShadow:e.palette.mode==="dark"?e.customShadows.z1:"none"}}function fT(e){return{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:e.spacing(7.5),borderRight:"none",boxShadow:e.customShadows.z1}}const EZ=ue(S.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Cn();return{width:n,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...dT(e,n),"& .MuiDrawer-paper":dT(e,n)},...!t&&{...fT(e),"& .MuiDrawer-paper":fT(e)}}});var Te={},qg={exports:{}};(function(e,t){(function(n,r){var o="1.0.39",i="",a="?",c="function",u="undefined",d="object",p="string",g="major",v="model",y="name",b="type",x="vendor",w="version",A="architecture",j="console",T="mobile",P="tablet",O="smarttv",_="wearable",R="embedded",N=500,Y="Amazon",X="Apple",G="ASUS",re="BlackBerry",ne="Browser",Z="Chrome",J="Edge",V="Firefox",$="Google",W="Huawei",ie="LG",U="Microsoft",ee="Motorola",de="Opera",ge="Samsung",fe="Sharp",he="Sony",me="Xiaomi",Se="Zebra",be="Facebook",ye="Chromium OS",we="Mac OS",Ie=" Browser",pe=function(_e,Le){var Oe={};for(var Ce in _e)Le[Ce]&&Le[Ce].length%2===0?Oe[Ce]=Le[Ce].concat(_e[Ce]):Oe[Ce]=_e[Ce];return Oe},Ke=function(_e){for(var Le={},Oe=0;Oe<_e.length;Oe++)Le[_e[Oe].toUpperCase()]=_e[Oe];return Le},ve=function(_e,Le){return typeof _e===p?$e(Le).indexOf($e(_e))!==-1:!1},$e=function(_e){return _e.toLowerCase()},gn=function(_e){return typeof _e===p?_e.replace(/[^\d\.]/g,i).split(".")[0]:r},It=function(_e,Le){if(typeof _e===p)return _e=_e.replace(/^\s\s*/,i),typeof Le===u?_e:_e.substring(0,N)},bt=function(_e,Le){for(var Oe=0,Ce,gt,Xt,We,Pe,sn;Oe<Le.length&&!Pe;){var vr=Le[Oe],jr=Le[Oe+1];for(Ce=gt=0;Ce<vr.length&&!Pe&&vr[Ce];)if(Pe=vr[Ce++].exec(_e),Pe)for(Xt=0;Xt<jr.length;Xt++)sn=Pe[++gt],We=jr[Xt],typeof We===d&&We.length>0?We.length===2?typeof We[1]==c?this[We[0]]=We[1].call(this,sn):this[We[0]]=We[1]:We.length===3?typeof We[1]===c&&!(We[1].exec&&We[1].test)?this[We[0]]=sn?We[1].call(this,sn,We[2]):r:this[We[0]]=sn?sn.replace(We[1],We[2]):r:We.length===4&&(this[We[0]]=sn?We[3].call(this,sn.replace(We[1],We[2])):r):this[We]=sn||r;Oe+=2}},Zn=function(_e,Le){for(var Oe in Le)if(typeof Le[Oe]===d&&Le[Oe].length>0){for(var Ce=0;Ce<Le[Oe].length;Ce++)if(ve(Le[Oe][Ce],_e))return Oe===a?r:Oe}else if(ve(Le[Oe],_e))return Oe===a?r:Oe;return Le.hasOwnProperty("*")?Le["*"]:_e},Ot={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},xt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},qt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,w],[/opios[\/ ]+([\w\.]+)/i],[w,[y,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[y,de+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[y,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[y,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[y,"UC"+ne]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[y,"Smart Lenovo "+ne]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+ne],w],[/\bfocus\/([\w\.]+)/i],[w,[y,V+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[y,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[y,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[y,"MIUI "+ne]],[/fxios\/([-\w\.]+)/i],[w,[y,V]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360"+Ie]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+Ie],w],[/samsungbrowser\/([\w\.]+)/i],[w,[y,ge+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],w],[/metasr[\/ ]?([\d\.]+)/i],[w,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[y,w],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,be],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[y,Z+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,Z+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[y,"Android "+ne]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[w,Zn,Ot]],[/(webkit|khtml)\/([\w\.]+)/i],[y,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],w],[/(wolvic)\/([\w\.]+)/i],[y,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[y,V+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[y,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,$e]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,i,$e]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,$e]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[x,ge],[b,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[x,ge],[b,T]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[x,X],[b,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[x,X],[b,P]],[/(macintosh);/i],[v,[x,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[x,fe],[b,T]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[x,W],[b,P]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[x,W],[b,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[v,/_/g," "],[x,me],[b,T]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[x,me],[b,P]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[x,"OPPO"],[b,T]],[/\b(opd2\d{3}a?) bui/i],[v,[x,"OPPO"],[b,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[x,"Vivo"],[b,T]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[x,"Realme"],[b,T]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[x,ee],[b,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[x,ee],[b,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[x,ie],[b,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[x,ie],[b,T]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[x,"Lenovo"],[b,P]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[x,"Nokia"],[b,T]],[/(pixel c)\b/i],[v,[x,$],[b,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[x,$],[b,T]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[x,he],[b,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[x,he],[b,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[x,"OnePlus"],[b,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[x,Y],[b,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[x,Y],[b,T]],[/(playbook);[-\w\),; ]+(rim)/i],[v,x,[b,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[x,re],[b,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[x,G],[b,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[x,G],[b,T]],[/(nexus 9)/i],[v,[x,"HTC"],[b,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[v,/_/g," "],[b,T]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[v,[x,"TCL"],[b,P]],[/(itel) ((\w+))/i],[[x,$e],v,[b,Zn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[x,"Acer"],[b,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[x,"Meizu"],[b,T]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[x,"Ulefone"],[b,T]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[x,"Nothing"],[b,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[x,v,[b,T]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[x,v,[b,P]],[/(surface duo)/i],[v,[x,U],[b,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[x,"Fairphone"],[b,T]],[/(u304aa)/i],[v,[x,"AT&T"],[b,T]],[/\bsie-(\w*)/i],[v,[x,"Siemens"],[b,T]],[/\b(rct\w+) b/i],[v,[x,"RCA"],[b,P]],[/\b(venue[\d ]{2,7}) b/i],[v,[x,"Dell"],[b,P]],[/\b(q(?:mv|ta)\w+) b/i],[v,[x,"Verizon"],[b,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[x,"Barnes & Noble"],[b,P]],[/\b(tm\d{3}\w+) b/i],[v,[x,"NuVision"],[b,P]],[/\b(k88) b/i],[v,[x,"ZTE"],[b,P]],[/\b(nx\d{3}j) b/i],[v,[x,"ZTE"],[b,T]],[/\b(gen\d{3}) b.+49h/i],[v,[x,"Swiss"],[b,T]],[/\b(zur\d{3}) b/i],[v,[x,"Swiss"],[b,P]],[/\b((zeki)?tb.*\b) b/i],[v,[x,"Zeki"],[b,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[x,"Dragon Touch"],v,[b,P]],[/\b(ns-?\w{0,9}) b/i],[v,[x,"Insignia"],[b,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[x,"NextBook"],[b,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[x,"Voice"],v,[b,T]],[/\b(lvtel\-)?(v1[12]) b/i],[[x,"LvTel"],v,[b,T]],[/\b(ph-1) /i],[v,[x,"Essential"],[b,T]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[x,"Envizen"],[b,P]],[/\b(trio[-\w\. ]+) b/i],[v,[x,"MachSpeed"],[b,P]],[/\btu_(1491) b/i],[v,[x,"Rotor"],[b,P]],[/(shield[\w ]+) b/i],[v,[x,"Nvidia"],[b,P]],[/(sprint) (\w+)/i],[x,v,[b,T]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[x,U],[b,T]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[x,Se],[b,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[x,Se],[b,T]],[/smart-tv.+(samsung)/i],[x,[b,O]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[x,ge],[b,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,ie],[b,O]],[/(apple) ?tv/i],[x,[v,X+" TV"],[b,O]],[/crkey/i],[[v,Z+"cast"],[x,$],[b,O]],[/droid.+aft(\w+)( bui|\))/i],[v,[x,Y],[b,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[x,fe],[b,O]],[/(bravia[\w ]+)( bui|\))/i],[v,[x,he],[b,O]],[/(mitv-\w{5}) bui/i],[v,[x,me],[b,O]],[/Hbbtv.*(technisat) (.*);/i],[x,v,[b,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,It],[v,It],[b,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[x,v,[b,j]],[/droid.+; (shield) bui/i],[v,[x,"Nvidia"],[b,j]],[/(playstation [345portablevi]+)/i],[v,[x,he],[b,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[x,U],[b,j]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[x,ge],[b,_]],[/((pebble))app/i],[x,v,[b,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[x,X],[b,_]],[/droid.+; (glass) \d/i],[v,[x,$],[b,_]],[/droid.+; (wt63?0{2,3})\)/i],[v,[x,Se],[b,_]],[/(quest( \d| pro)?)/i],[v,[x,be],[b,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[b,R]],[/(aeobc)\b/i],[v,[x,Y],[b,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[b,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[b,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,T]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[y,J+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,w],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[y,[w,Zn,xt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Zn,xt],[y,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,we],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,w],[/\(bb(10);/i],[w,[y,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[y,V+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[y,Z+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,ye],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,w],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,w]]},Ct=function(_e,Le){if(typeof _e===d&&(Le=_e,_e=r),!(this instanceof Ct))return new Ct(_e,Le).getResult();var Oe=typeof n!==u&&n.navigator?n.navigator:r,Ce=_e||(Oe&&Oe.userAgent?Oe.userAgent:i),gt=Oe&&Oe.userAgentData?Oe.userAgentData:r,Xt=Le?pe(qt,Le):qt,We=Oe&&Oe.userAgent==Ce;return this.getBrowser=function(){var Pe={};return Pe[y]=r,Pe[w]=r,bt.call(Pe,Ce,Xt.browser),Pe[g]=gn(Pe[w]),We&&Oe&&Oe.brave&&typeof Oe.brave.isBrave==c&&(Pe[y]="Brave"),Pe},this.getCPU=function(){var Pe={};return Pe[A]=r,bt.call(Pe,Ce,Xt.cpu),Pe},this.getDevice=function(){var Pe={};return Pe[x]=r,Pe[v]=r,Pe[b]=r,bt.call(Pe,Ce,Xt.device),We&&!Pe[b]&&gt&&gt.mobile&&(Pe[b]=T),We&&Pe[v]=="Macintosh"&&Oe&&typeof Oe.standalone!==u&&Oe.maxTouchPoints&&Oe.maxTouchPoints>2&&(Pe[v]="iPad",Pe[b]=P),Pe},this.getEngine=function(){var Pe={};return Pe[y]=r,Pe[w]=r,bt.call(Pe,Ce,Xt.engine),Pe},this.getOS=function(){var Pe={};return Pe[y]=r,Pe[w]=r,bt.call(Pe,Ce,Xt.os),We&&!Pe[y]&&gt&&gt.platform&&gt.platform!="Unknown"&&(Pe[y]=gt.platform.replace(/chrome os/i,ye).replace(/macos/i,we)),Pe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ce},this.setUA=function(Pe){return Ce=typeof Pe===p&&Pe.length>N?It(Pe,N):Pe,this},this.setUA(Ce),this};Ct.VERSION=o,Ct.BROWSER=Ke([y,w,g]),Ct.CPU=Ke([A]),Ct.DEVICE=Ke([v,x,b,j,T,O,P,_,R]),Ct.ENGINE=Ct.OS=Ke([y,w]),e.exports&&(t=e.exports=Ct),t.UAParser=Ct;var Kt=typeof n!==u&&(n.jQuery||n.Zepto);if(Kt&&!Kt.ua){var Pt=new Ct;Kt.ua=Pt.getResult(),Kt.ua.get=function(){return Pt.getUA()},Kt.ua.set=function(_e){Pt.setUA(_e);var Le=Pt.getResult();for(var Oe in Le)Kt.ua[Oe]=Le[Oe]}}})(typeof window=="object"?window:xn)})(qg,qg.exports);var TZ=qg.exports;Object.defineProperty(Te,"__esModule",{value:!0});function AZ(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var fn=E,ht=AZ(fn),pT=TZ,Go=new pT,pn=Go.getBrowser(),IZ=Go.getCPU(),Yn=Go.getDevice(),$g=Go.getEngine(),Yo=Go.getOS(),dl=Go.getUA(),hT=function(t){return Go.setUA(t)},fl=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new pT(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},gT=Object.freeze({ClientUAInstance:Go,browser:pn,cpu:IZ,device:Yn,engine:$g,os:Yo,ua:dl,setUa:hT,parseUserAgent:fl});function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(n),!0).forEach(function(r){MZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pl(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pl=function(t){return typeof t}:pl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function PZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kZ(e,t,n){return t&&jZ(e.prototype,t),e}function MZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function em(){return em=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(this,arguments)}function FZ(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}}),t&&nm(e,t)}function tm(e){return tm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tm(e)}function nm(e,t){return nm=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},nm(e,t)}function _Z(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function gr(e,t){if(e==null)return{};var n=_Z(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ad(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RZ(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ad(e)}function DZ(e,t){return LZ(e)||BZ(e,t)||NZ(e,t)||VZ()}function LZ(e){if(Array.isArray(e))return e}function BZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,c=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw c}}return r}}function NZ(e,t){if(e){if(typeof e=="string")return vT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vT(e,t)}}function vT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hn={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Fn={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Ds={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},WZ={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},zZ=function(t){switch(t){case hn.Mobile:return{isMobile:!0};case hn.Tablet:return{isTablet:!0};case hn.SmartTv:return{isSmartTV:!0};case hn.Console:return{isConsole:!0};case hn.Wearable:return{isWearable:!0};case hn.Browser:return{isBrowser:!0};case hn.Embedded:return{isEmbedded:!0};default:return WZ}},UZ=function(t){return hT(t)},De=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},rm=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},om=function(t){var n=rm();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},HZ=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:De(n.major),browserFullVersion:De(n.version),browserName:De(n.name),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}},yT=function(t,n,r,o){return OZ({},t,{vendor:De(n.vendor),model:De(n.model),os:De(r.name),osVersion:De(r.version),ua:De(o)})},GZ=function(t,n,r,o){return{isSmartTV:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},YZ=function(t,n,r,o){return{isConsole:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},KZ=function(t,n,r,o){return{isWearable:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},XZ=function(t,n,r,o,i){return{isEmbedded:t,vendor:De(n.vendor),model:De(n.model),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}};function ZZ(e){var t=e?fl(e):gT,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,c=zZ(n.type),u=c.isBrowser,d=c.isMobile,p=c.isTablet,g=c.isSmartTV,v=c.isConsole,y=c.isWearable,b=c.isEmbedded;if(u)return HZ(u,r,o,i,a);if(g)return GZ(g,o,i,a);if(v)return YZ(v,o,i,a);if(d||p)return yT(c,n,i,a);if(y)return KZ(y,o,i,a);if(b)return XZ(b,n,o,i,a)}var bT=function(t){var n=t.type;return n===hn.Mobile},xT=function(t){var n=t.type;return n===hn.Tablet},CT=function(t){var n=t.type;return n===hn.Mobile||n===hn.Tablet},wT=function(t){var n=t.type;return n===hn.SmartTv},ld=function(t){var n=t.type;return n===hn.Browser},ST=function(t){var n=t.type;return n===hn.Wearable},ET=function(t){var n=t.type;return n===hn.Console},TT=function(t){var n=t.type;return n===hn.Embedded},AT=function(t){var n=t.vendor;return De(n)},IT=function(t){var n=t.model;return De(n)},OT=function(t){var n=t.type;return De(n,"browser")},PT=function(t){var n=t.name;return n===Ds.Android},jT=function(t){var n=t.name;return n===Ds.Windows},kT=function(t){var n=t.name;return n===Ds.MAC_OS},MT=function(t){var n=t.name;return n===Ds.WindowsPhone},FT=function(t){var n=t.name;return n===Ds.IOS},_T=function(t){var n=t.version;return De(n)},RT=function(t){var n=t.name;return De(n)},DT=function(t){var n=t.name;return n===Fn.Chrome},LT=function(t){var n=t.name;return n===Fn.Firefox},BT=function(t){var n=t.name;return n===Fn.Chromium},cd=function(t){var n=t.name;return n===Fn.Edge},NT=function(t){var n=t.name;return n===Fn.Yandex},VT=function(t){var n=t.name;return n===Fn.Safari||n===Fn.MobileSafari},WT=function(t){var n=t.name;return n===Fn.MobileSafari},zT=function(t){var n=t.name;return n===Fn.Opera},UT=function(t){var n=t.name;return n===Fn.InternetExplorer||n===Fn.Ie},HT=function(t){var n=t.name;return n===Fn.MIUI},GT=function(t){var n=t.name;return n===Fn.SamsungBrowser},YT=function(t){var n=t.version;return De(n)},KT=function(t){var n=t.major;return De(n)},XT=function(t){var n=t.name;return De(n)},ZT=function(t){var n=t.name;return De(n)},QT=function(t){var n=t.version;return De(n)},JT=function(){var t=rm(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Ls=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},qT=function(){var t=rm();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Zr=function(){return om("iPad")},$T=function(){return om("iPhone")},eA=function(){return om("iPod")},tA=function(t){return De(t)};function nA(e){var t=e||gT,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:wT(n),isConsole:ET(n),isWearable:ST(n),isEmbedded:TT(n),isMobileSafari:WT(r)||Zr(),isChromium:BT(r),isMobile:CT(n)||Zr(),isMobileOnly:bT(n),isTablet:xT(n)||Zr(),isBrowser:ld(n),isDesktop:ld(n),isAndroid:PT(o),isWinPhone:MT(o),isIOS:FT(o)||Zr(),isChrome:DT(r),isFirefox:LT(r),isSafari:VT(r),isOpera:zT(r),isIE:UT(r),osVersion:_T(o),osName:RT(o),fullBrowserVersion:YT(r),browserVersion:KT(r),browserName:XT(r),mobileVendor:AT(n),mobileModel:IT(n),engineName:ZT(i),engineVersion:QT(i),getUA:tA(a),isEdge:cd(r)||Ls(a),isYandex:NT(r),deviceType:OT(n),isIOS13:qT(),isIPad13:Zr(),isIPhone13:$T(),isIPod13:eA(),isElectron:JT(),isEdgeChromium:Ls(a),isLegacyEdge:cd(r)&&!Ls(a),isWindows:jT(o),isMacOs:kT(o),isMIUI:HT(r),isSamsungBrowser:GT(r)}}var rA=wT(Yn),oA=ET(Yn),iA=ST(Yn),QZ=TT(Yn),JZ=WT(pn)||Zr(),qZ=BT(pn),ud=CT(Yn)||Zr(),sA=bT(Yn),aA=xT(Yn)||Zr(),lA=ld(Yn),$Z=ld(Yn),cA=PT(Yo),uA=MT(Yo),dA=FT(Yo)||Zr(),eQ=DT(pn),tQ=LT(pn),nQ=VT(pn),rQ=zT(pn),fA=UT(pn),oQ=_T(Yo),iQ=RT(Yo),sQ=YT(pn),aQ=KT(pn),lQ=XT(pn),cQ=AT(Yn),uQ=IT(Yn),dQ=ZT($g),fQ=QT($g),pQ=tA(dl),hQ=cd(pn)||Ls(dl),gQ=NT(pn),mQ=OT(Yn),vQ=qT(),yQ=Zr(),bQ=$T(),xQ=eA(),CQ=JT(),wQ=Ls(dl),SQ=cd(pn)&&!Ls(dl),EQ=jT(Yo),TQ=kT(Yo),AQ=HT(pn),IQ=GT(pn),OQ=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=fl(t),r=n.device,o=n.browser,i=n.os,a=n.engine,c=n.ua;return nA({device:r,browser:o,os:i,engine:a,ua:c})},PQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return cA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},jQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return lA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},kQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return fA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},MQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return dA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},FQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return ud?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},_Q=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return aA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},RQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return uA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},DQ=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=gr(t,["renderWithFragment","children","viewClassName","style"]);return sA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},LQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return rA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},BQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return oA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},NQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return iA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},VQ=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=gr(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",i,r):null};function WQ(e){return function(t){FZ(n,t);function n(r){var o;return PZ(this,n),o=RZ(this,tm(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(ad(o)),o.onOrientationChange=o.onOrientationChange.bind(ad(o)),o.onPageLoad=o.onPageLoad.bind(ad(o)),o.state={isLandscape:!1,isPortrait:!1},o}return kZ(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":pl(window))!==void 0&&ud&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ht.createElement(e,em({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ht.Component)}function zQ(){var e=fn.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=DZ(e,2),n=t[0],r=t[1],o=fn.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return fn.useEffect(function(){return(typeof window>"u"?"undefined":pl(window))!==void 0&&ud&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function pA(e){var t=e||window.navigator.userAgent;return fl(t)}function UQ(e){var t=e||window.navigator.userAgent,n=pA(t),r=nA(n);return[r,n]}Te.AndroidView=PQ,Te.BrowserTypes=Fn;var HQ=Te.BrowserView=jQ;Te.ConsoleView=BQ,Te.CustomView=VQ,Te.IEView=kQ,Te.IOSView=MQ,Te.MobileOnlyView=DQ;var GQ=Te.MobileView=FQ;Te.OsTypes=Ds,Te.SmartTVView=LQ,Te.TabletView=_Q,Te.WearableView=NQ,Te.WinPhoneView=RQ,Te.browserName=lQ,Te.browserVersion=aQ,Te.deviceDetect=ZZ,Te.deviceType=mQ,Te.engineName=dQ,Te.engineVersion=fQ,Te.fullBrowserVersion=sQ,Te.getSelectorsByUserAgent=OQ,Te.getUA=pQ,Te.isAndroid=cA,Te.isBrowser=lA,Te.isChrome=eQ,Te.isChromium=qZ,Te.isConsole=oA,Te.isDesktop=$Z,Te.isEdge=hQ,Te.isEdgeChromium=wQ,Te.isElectron=CQ,Te.isEmbedded=QZ,Te.isFirefox=tQ,Te.isIE=fA,Te.isIOS=dA,Te.isIOS13=vQ,Te.isIPad13=yQ,Te.isIPhone13=bQ,Te.isIPod13=xQ,Te.isLegacyEdge=SQ,Te.isMIUI=AQ,Te.isMacOs=TQ,Te.isMobile=ud,Te.isMobileOnly=sA,Te.isMobileSafari=JZ,Te.isOpera=rQ,Te.isSafari=nQ,Te.isSamsungBrowser=IQ,Te.isSmartTV=rA,Te.isTablet=aA,Te.isWearable=iA,Te.isWinPhone=uA,Te.isWindows=EQ,Te.isYandex=gQ,Te.mobileModel=uQ,Te.mobileVendor=cQ,Te.osName=iQ,Te.osVersion=oQ,Te.parseUserAgent=fl,Te.setUserAgent=UZ,Te.useDeviceData=pA,Te.useDeviceSelectors=UQ,Te.useMobileOrientation=zQ,Te.withOrientationChange=WQ;var YQ=typeof global=="object"&&global&&global.Object===Object&&global,KQ=typeof self=="object"&&self&&self.Object===Object&&self,hA=YQ||KQ||Function("return this")(),dd=hA.Symbol,gA=Object.prototype,XQ=gA.hasOwnProperty,ZQ=gA.toString,hl=dd?dd.toStringTag:void 0;function QQ(e){var t=XQ.call(e,hl),n=e[hl];try{e[hl]=void 0;var r=!0}catch{}var o=ZQ.call(e);return r&&(t?e[hl]=n:delete e[hl]),o}var JQ=Object.prototype,qQ=JQ.toString;function $Q(e){return qQ.call(e)}var eJ="[object Null]",tJ="[object Undefined]",mA=dd?dd.toStringTag:void 0;function nJ(e){return e==null?e===void 0?tJ:eJ:mA&&mA in Object(e)?QQ(e):$Q(e)}function rJ(e){return e!=null&&typeof e=="object"}var oJ="[object Symbol]";function iJ(e){return typeof e=="symbol"||rJ(e)&&nJ(e)==oJ}var sJ=/\s/;function aJ(e){for(var t=e.length;t--&&sJ.test(e.charAt(t)););return t}var lJ=/^\s+/;function cJ(e){return e&&e.slice(0,aJ(e)+1).replace(lJ,"")}function fd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vA=NaN,uJ=/^[-+]0x[0-9a-f]+$/i,dJ=/^0b[01]+$/i,fJ=/^0o[0-7]+$/i,pJ=parseInt;function yA(e){if(typeof e=="number")return e;if(iJ(e))return vA;if(fd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cJ(e);var n=dJ.test(e);return n||fJ.test(e)?pJ(e.slice(2),n?2:8):uJ.test(e)?vA:+e}var im=function(){return hA.Date.now()},hJ="Expected a function",gJ=Math.max,mJ=Math.min;function pd(e,t,n){var r,o,i,a,c,u,d=0,p=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(hJ);t=yA(t)||0,fd(n)&&(p=!!n.leading,g="maxWait"in n,i=g?gJ(yA(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function y(_){var R=r,N=o;return r=o=void 0,d=_,a=e.apply(N,R),a}function b(_){return d=_,c=setTimeout(A,t),p?y(_):a}function x(_){var R=_-u,N=_-d,Y=t-R;return g?mJ(Y,i-N):Y}function w(_){var R=_-u,N=_-d;return u===void 0||R>=t||R<0||g&&N>=i}function A(){var _=im();if(w(_))return j(_);c=setTimeout(A,x(_))}function j(_){return c=void 0,v&&r?y(_):(r=o=void 0,a)}function T(){c!==void 0&&clearTimeout(c),d=0,r=u=o=c=void 0}function P(){return c===void 0?a:j(im())}function O(){var _=im(),R=w(_);if(r=arguments,o=this,u=_,R){if(c===void 0)return b(u);if(g)return clearTimeout(c),c=setTimeout(A,t),y(u)}return c===void 0&&(c=setTimeout(A,t)),a}return O.cancel=T,O.flush=P,O}var vJ="Expected a function";function yJ(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(vJ);return fd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),pd(e,t,{leading:r,maxWait:t,trailing:o})}var Bs=function(){return Bs=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Bs.apply(this,arguments)};function bA(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function xA(e){return!e||!e.ownerDocument?document:e.ownerDocument}var CA=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var a=i[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=o.value}}return r},t);return n};function wA(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function SA(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function EA(e){return".".concat(e.split(" ").join("."))}var sm=!!(typeof window<"u"&&window.document&&window.document.createElement),bJ=Object.freeze({__proto__:null,addClasses:wA,canUseDOM:sm,classNamesToQuery:EA,getElementDocument:xA,getElementWindow:bA,getOptions:CA,removeClasses:SA}),Ns=null,TA=null;sm&&window.addEventListener("resize",function(){TA!==window.devicePixelRatio&&(TA=window.devicePixelRatio,Ns=null)});function AA(){if(Ns===null){if(typeof document>"u")return Ns=0,Ns;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),Ns=n}return Ns}var Ko=bA,am=xA,xJ=CA,Xo=wA,Zo=SA,_n=EA,hd=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!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 o=Ko(r.el);r.scrollXTicking||(o.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(o.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Xo(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Zo(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Xo(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Zo(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(o){r.mouseX=o.clientX,r.mouseY=o.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var i,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(i||a)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(i&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(o,"x"):r.onTrackClick(o,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(o,"y"):r.onTrackClick(o,"y"))))}},this.drag=function(o){var i,a,c,u,d,p,g,v,y,b,x;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,A=r.axis[r.draggedAxis].track,j=(a=(i=A.rect)===null||i===void 0?void 0:i[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,T=r.axis[r.draggedAxis].scrollbar,P=(u=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,O=parseInt((p=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?w=o.pageY:w=o.pageX;var _=w-((v=(g=A.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;_=r.draggedAxis==="x"&&r.isRtl?((b=(y=A.rect)===null||y===void 0?void 0:y[r.axis[r.draggedAxis].sizeAttr])!==null&&b!==void 0?b:0)-T.size-_:_;var R=_/(j-T.size),N=R*(P-O);r.draggedAxis==="x"&&r.isRtl&&(N=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-N:N),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=N}},this.onEndDrag=function(o){r.isDragging=!1;var i=am(r.el),a=Ko(r.el);o.preventDefault(),o.stopPropagation(),Zo(r.el,r.classNames.dragging),r.onStopScrolling(),i.removeEventListener("mousemove",r.drag,!0),i.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){i.removeEventListener("click",r.preventClick,!0),i.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=Bs(Bs({},e.defaultOptions),n),this.classNames=Bs(Bs({},e.defaultOptions.classNames),n.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=yJ(this._onMouseMove,64),this.onWindowResize=pd(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=pd(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=pd(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 n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==a.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:AA()}catch{return AA()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=am(t),o=Ko(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){sm&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(_n(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_n(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_n(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_n(this.classNames.offset)),this.maskEl=this.el.querySelector(_n(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_n(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_n(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_n(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_n(this.classNames.track)).concat(_n(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_n(this.classNames.track)).concat(_n(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(_n(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_n(this.classNames.scrollbar)))||null,this.options.autoHide||(Xo(this.axis.x.scrollbar.el,this.classNames.visible),Xo(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Ko(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),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,i=r.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){o&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new r.MutationObserver(function(){r.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=Ko(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,i=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=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,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="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 g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>i-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-g,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 n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],i=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,a=i/o,c;return c=Math.max(~~(a*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,o;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(a-u),g=~~((c-i.size)*p);g=t==="x"&&this.isRtl?-g+(c-i.size):g,i.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.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?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Xo(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.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Zo(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 n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Xo(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Xo(n.scrollbar.el,this.classNames.hover):Zo(n.scrollbar.el,this.classNames.hover)):(Zo(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Zo(this.axis[t].track.el,this.classNames.hover),Zo(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var o=am(this.el),i=Ko(this.el),a=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Xo(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,o,i,a,c;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Ko(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[n].scrollbar,g=(i=(o=p.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&i!==void 0?i:0,v=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),y=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],b=n==="y"?this.mouseY-g:this.mouseX-g,x=b<0?-1:1,w=x===-1?y-v:y+v,A=40,j=function(){r.contentWrapperEl&&(x===-1?y>w&&(y-=A,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)):y<w&&(y+=A,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)))};j()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Ko(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,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return r.call(o,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,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=xJ,e.helpers=bJ,e}(),Kn=function(){return Kn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Kn.apply(this,arguments)};function CJ(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var IA=D.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,i=CJ(e,["children","scrollableNodeProps"]),a=D.useRef(),c=D.useRef(),u=D.useRef(),d={},p={};Object.keys(i).forEach(function(y){Object.prototype.hasOwnProperty.call(hd.defaultOptions,y)?d[y]=i[y]:p[y]=i[y]});var g=Kn(Kn({},hd.defaultOptions.classNames),d.classNames),v=Kn(Kn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||hd.defaultOptions.ariaLabel});return D.useEffect(function(){var y;return c.current=v.ref?v.ref.current:c.current,a.current&&(y=new hd(a.current,Kn(Kn(Kn({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),D.createElement("div",Kn({"data-simplebar":"init",ref:a},p),D.createElement("div",{className:g.wrapper},D.createElement("div",{className:g.heightAutoObserverWrapperEl},D.createElement("div",{className:g.heightAutoObserverEl})),D.createElement("div",{className:g.mask},D.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Kn(Kn({},v),{ref:c}),contentNodeRef:u,contentNodeProps:{className:g.contentEl,ref:u}}):D.createElement("div",Kn({},v),D.createElement("div",{className:g.contentEl},n)))),D.createElement("div",{className:g.placeholder})),D.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},D.createElement("div",{className:g.scrollbar})),D.createElement("div",{className:"".concat(g.track," simplebar-vertical")},D.createElement("div",{className:g.scrollbar})))});IA.displayName="SimpleBar";const wJ=ue(HQ)({flexGrow:1,height:"100%",overflow:"hidden"}),SJ=ue(IA)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:et(e.palette.grey[500],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}));function OA({children:e,sx:t,...n}){return f.jsxs(f.Fragment,{children:[f.jsx(wJ,{children:f.jsx(SJ,{timeout:500,clickOnTrack:!1,sx:t,...n,children:e})}),f.jsx(GQ,{children:f.jsx(S.Box,{sx:{overflowX:"auto",...t},...n,children:e})})]})}function PA(e){const t=S.useTheme(),n=Ir(e,{flexShrink:{md:0},zIndex:1200}),{downLg:r}=Gn(),{open:o,handleDrawerToggle:i,width:a}=Pi(),c=r?S.Drawer:EZ,u=document.body,d=E.useMemo(()=>r?{container:u,variant:"temporary",onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",lg:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:a,borderRight:`1px solid ${t.palette.divider}`,backgroundImage:"none",boxShadow:"inherit",overflow:"auto"}}}:{variant:"permanent"},[r,u,i,a,t.palette.divider]);return f.jsx(S.Box,{component:"nav",sx:n,"aria-label":"mailbox folders",children:f.jsxs(c,{...d,open:o,children:[f.jsx(uT,{}),f.jsx(OA,{sx:{"& .simplebar-content":{display:"flex",flexDirection:"column"}},children:e.children})]})})}function lm(e){const{name:t,version:n,copy:r="&copy; Applica Software Guru for"}=e;return f.jsx(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",flexGrow:1,height:"auto",sx:{pt:1},children:f.jsxs(S.Typography,{variant:"caption",children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:r||""}})," ",t," - ",n]})})}const jA=ue(S.AppBar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Cn();return{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...!t&&{width:`calc(100% - ${e.spacing(7.5)})`},...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}}}),kA=E.forwardRef(function(t,n){const r=Ir(t,{color:"text.primary"},{defaults:!0});return f.jsx(S.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),EJ=E.forwardRef(function(t,n){const r=Ir(t,{color:"text.primary"},{defaults:!0});return f.jsx(eu,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),Vs=E.forwardRef(function(t,n){const r=Ir(t,{color:"text.primary",borderStyle:"none",padding:1,fontSize:"1.5rem",width:36,height:36},{defaults:!0});return f.jsx(S.ToggleButton,{ref:n,...t,color:"secondary",sx:r})});function MA({onClick:e=void 0}){const{open:t,anchorEl:n,handleClose:r,handleToggle:o}=_s(),[i,a]=q.useLocaleState(),c=q.useLocales();if(c.length===0)return null;function u(d){if(e){e(d,r);return}a(d),r()}return f.jsxs(f.Fragment,{children:[f.jsx(kA,{value:"locale",onClick:o,sx:{minWidth:"auto"},children:f.jsxs(S.Stack,{direction:"row",spacing:.5,children:[f.jsx(S.Typography,{variant:"body1",children:i.toUpperCase()}),t?f.jsx(Ue.CaretUpOutlined,{}):f.jsx(Ue.CaretDownOutlined,{})]})}),f.jsx(S.Menu,{id:"menu-appbar",anchorEl:n,keepMounted:!0,open:t,onClose:r,children:c.map((d,p)=>f.jsx(S.MenuItem,{onClick:()=>u(d.locale),children:d.name},p))})]})}const TJ={ml:{xs:0,lg:-2}};function FA(){const{open:e,handleDrawerToggle:t}=Pi();return f.jsx(Vs,{value:"drawer","aria-label":"open drawer",sx:TJ,onChange:t,selected:e,children:e?f.jsx(Ue.MenuFoldOutlined,{}):f.jsx(Ue.MenuUnfoldOutlined,{})})}function _A(e){const t=E.useRef(),n=S.useTheme(),{downLg:r,horizontal:o}=Gn(),{open:i,width:a}=Pi(),c=r?S.AppBar:jA,d={position:"fixed",color:"inherit",elevation:0,sx:Ir(e,{borderBottom:`1px solid ${n.palette.divider}`,zIndex:1200,width:o?"100%":i?`calc(100% - ${a}px)`:{xs:"100%",lg:"calc(100% - 60px)"}})};return r||te.extend(d,{open:i}),f.jsx(c,{ref:t,...d,children:f.jsxs(S.Toolbar,{sx:{"& > *":{marginX:n.spacing(.325)}},children:[!o&&f.jsx(FA,{}),e.children]})})}function AJ(e){const t=S.useTheme(),{notification:n,onClick:r,selected:o,divider:i}=e,{resource:a}=sd(),c=q.useNotify(),u=q.useRedirect(),[d]=q.useUpdate(a,{id:n==null?void 0:n.id,data:{...n,readed:Or().toISOString()}},{onSuccess:()=>{n!=null&&n.resource?n!=null&&n.resource.startsWith("/")?(u(n==null?void 0:n.resource),r()):(r(),document.location.href=n==null?void 0:n.resource):r()},onFailure:()=>{c("resources.notifications.messages.readed.error","warning")}}),p=E.useCallback(()=>d(),[d]),[g]=q.useLocaleState(),v=E.useMemo(()=>Or(n.created).locale(g).fromNow(),[n,g]);return f.jsx(S.ListItem,{disablePadding:!0,divider:i,children:f.jsxs(S.ListItemButton,{selected:o,onClick:p,children:[f.jsx(S.ListItemAvatar,{children:f.jsx(S.Avatar,{sx:{color:"primary.main",bgcolor:"primary.lighter"},children:f.jsx(Ue.MessageOutlined,{})})}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",wordBreak:"break-word",width:"90%"},primary:n.title,secondary:n.content}),f.jsx(S.Box,{flexGrow:1,flexShrink:1,minWidth:t.spacing(2)}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},primary:v,primaryTypographyProps:{variant:"caption"}})]})})}const IJ={width:36,height:36,fontSize:"1rem"},OJ={mt:"6px",ml:1,top:"auto",right:"auto",alignSelf:"flex-start",transform:"none"};function RA(){const{enable:e}=sd();return e?f.jsx(PJ,{}):null}function PJ(){const e=q.useTranslate(),t=S.useTheme(),n=q.useRefresh(),r=q.useNotify(),{downMd:o}=Gn(),{resource:i}=sd(),[a,c]=E.useState([]),{data:u,isLoading:d}=q.useGetList(i,{pagination:{page:1,perPage:25},sort:{field:"created",order:"DESC"},filter:{readed:!1}}),p=a.filter(j=>j.readed===null).length,{open:g,anchorEl:v,handleClose:y,handleToggle:b}=_s();E.useEffect(()=>{!d&&u&&c(u??[])},[u,d]);const x=a.filter(j=>!j.readed).map(j=>j.id),[w]=q.useUpdateMany(i,{ids:x,data:{readed:Or().toISOString()}},{onSuccess:()=>{n(),r("resources.notifications.messages.readed.done")},onError:()=>r("ra.notification.readed_error")}),A=E.useCallback(()=>{w()},[w]);return f.jsxs(f.Fragment,{children:[f.jsx(Vs,{value:"notifications",selected:g,onChange:b,children:f.jsx(S.Badge,{badgeContent:p,color:"primary",children:f.jsx(Ue.BellOutlined,{})})}),f.jsx(S.Popper,{placement:o?"bottom":"bottom-end",open:g,anchorEl:v,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:j})=>f.jsx(Bo,{type:"grow",position:o?"top":"top-right",in:g,...j,children:f.jsx(S.Paper,{sx:{marginTop:1,boxShadow:t.customShadows.z1,width:"100%",minWidth:285,maxWidth:420,[t.breakpoints.down("md")]:{maxWidth:285}},children:f.jsx(S.ClickAwayListener,{onClickAway:y,children:f.jsxs(On,{title:e("ra.notification.title"),elevation:0,border:!1,content:!1,secondary:f.jsx(f.Fragment,{children:p>0&&f.jsx(S.Tooltip,{title:e("ra.notification.mark-as-read"),onClick:A,children:f.jsx(eu,{color:"success",size:"small",children:f.jsx(Ue.CheckCircleOutlined,{style:{fontSize:"1.15rem"}})})})}),children:[f.jsx(S.List,{component:"nav",sx:{p:0,"& .MuiListItemButton-root":{py:.5,"&.Mui-selected":{bgcolor:"grey.50",color:"text.primary"},"& .MuiAvatar-root":IJ,"& .MuiListItemSecondaryAction-root":{...OJ,position:"relative"}},maxHeight:"calc(100vh - 240px)",overflow:"auto"},children:a.map((T,P)=>f.jsx(AJ,{selected:p>0,notification:T,onClick:y,divider:P<a.length-1},T.id))}),f.jsx(S.ListItemButton,{sx:{textAlign:"center",py:"12px !important"},to:`/${i}`,LinkComponent:ut.Link,onClick:y,children:f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"primary",children:e("ra.notification.view_all")})})}),f.jsx(S.Divider,{})]})})})})})]})}function DA(){const[e,t]=E.useState(!1),n=E.useCallback(()=>t(!1),[t]),r=E.useCallback(()=>t(!0),[t]),o=q.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{onClick:r,children:[f.jsx(S.ListItemIcon,{children:f.jsx(en.Key,{})}),f.jsx(S.ListItemText,{primary:o("ra.auth.change_password")})]}),f.jsx(S.Dialog,{open:e,onClose:()=>t(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(Vg,{onSuccess:n})})]})}function LA(){const e=q.useLogout(),t=q.useTranslate();return f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:e,children:[f.jsx(S.ListItemIcon,{children:f.jsx(en.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:t("ra.auth.logout")})]})})}function BA(){const e=q.useTranslate(),t=q.useAuthProvider(),n=E.useCallback(()=>t.stopImpersonate().then(()=>document.location.href="/"),[t]),[r,o]=E.useState(!1);return E.useEffect(()=>{if(!t.isImpersonating){console.warn("The authProvider does not support the isImpersonating feature",t);return}t.isImpersonating().then(i=>o(i))},[t,o]),r?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:n,children:[f.jsx(S.ListItemIcon,{children:f.jsx(en.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:e("ra.auth.stop_impersonate")})]})}):null}function NA(e){var x;const{roles:t}=e,n=S.useTheme(),r=q.useDataProvider(),{identity:o}=q.useGetIdentity(),i=o!==void 0&&o.image&&o.image!==null&&o.image!=="",[a,c]=E.useState(null),{open:u,anchorEl:d,handleToggle:p,handleClose:g}=_s(),v=q.useLogout(),y=E.useCallback(()=>{v()},[v]);E.useEffect(()=>{i&&r.getFile("/profile/me/image").then(w=>c(w))},[r,i]);const b=E.useMemo(()=>{var w;return E.isValidElement(t)?t:t?f.jsx(f.Fragment,{children:t}):(w=o==null?void 0:o.roles)==null?void 0:w.map(A=>A.name.replace("ROLE_","")).join(",")},[t,o]);return f.jsxs(f.Fragment,{children:[f.jsx(Vs,{sx:{p:.25,width:"auto"},onClick:p,value:"profile",selected:u,children:f.jsxs(S.Stack,{direction:"row",spacing:2,alignItems:"center",sx:{p:.5},children:[f.jsx(Xc,{alt:(x=o==null?void 0:o.name)==null?void 0:x.toUpperCase(),src:a,size:"xs"}),f.jsx(S.Typography,{variant:"subtitle1",children:o==null?void 0:o.name})]})}),f.jsx(hh,{placement:"bottom-end",open:u,anchorEl:d,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:w})=>f.jsx(Bo,{type:"grow",position:"top-right",in:u,...w,children:f.jsx(S.Paper,{sx:{boxShadow:n.customShadows.z1,width:290,minWidth:240,maxWidth:290,[n.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:g,children:f.jsxs(On,{elevation:0,border:!1,content:!1,children:[f.jsx(S.CardContent,{sx:{px:2.5,pt:3},children:f.jsxs(S.Grid,{container:!0,justifyContent:"space-between",alignItems:"center",children:[f.jsx(S.Grid,{item:!0,children:f.jsxs(S.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[f.jsx(Xc,{alt:"profile user",src:a,sx:{width:32,height:32}}),f.jsxs(S.Stack,{children:[f.jsx(S.Typography,{variant:"h6",children:o==null?void 0:o.name}),f.jsx(S.Typography,{variant:"body2",color:"textSecondary",children:b})]})]})}),f.jsx(S.Grid,{item:!0,children:f.jsx(S.Tooltip,{title:"Logout",children:f.jsx(eu,{size:"large",sx:{color:"text.primary"},onClick:y,children:f.jsx(Ue.LogoutOutlined,{})})})})]})}),f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.List,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32}},children:[f.jsx(DA,{}),f.jsx(LA,{}),f.jsx(BA,{})]})})})]})})})})})]})}function VA(e){const t=pt(),{downMd:n}=Gn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=_s();return n?f.jsxs(f.Fragment,{children:[f.jsx(Vs,{value:"drawer","aria-label":"open more menu","aria-controls":r?"menu-list-grow":void 0,"aria-haspopup":"true",onClick:i,selected:r,children:f.jsx(Ue.MoreOutlined,{})}),f.jsx(S.Popper,{placement:"bottom-end",open:r,anchorEl:o,role:void 0,transition:!0,disablePortal:!0,style:{width:"100%"},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,9]}}]},children:({TransitionProps:c})=>f.jsx(Bo,{type:"fade",in:r,...c,children:f.jsx(S.Paper,{sx:{boxShadow:t.customShadows.z1},children:f.jsx(S.ClickAwayListener,{onClickAway:a,children:f.jsx(S.AppBar,{color:"inherit",children:f.jsx(S.Toolbar,{children:e.children})})})})})})]}):f.jsx(f.Fragment,{children:e.children})}function WA(e){return f.jsx(S.Box,{...e,flex:1})}function zA(e){const t=S.useTheme(),n=S.useScrollTrigger({disableHysteresis:!0,threshold:0}),{container:r}=Cn();return t.shadows[4]=t.customShadows.z1,f.jsx(S.AppBar,{elevation:n?4:0,sx:{top:60,bgcolor:t.palette.background.paper,width:"100%",height:62,justifyContent:"center",borderTop:`1px solid ${t.palette.divider}`,borderBottom:`1px solid ${t.palette.divider}`,zIndex:1098,color:t.palette.grey[500]},children:f.jsx(S.Container,{maxWidth:r?"xl":!1,children:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center"},children:e.children})})})}function UA(e){const{horizontal:t}=Gn();return t?f.jsx(zA,{children:e.children}):f.jsx(PA,{children:e.children})}function gl({item:e,level:t}){const n=pt(),{horizontal:r,downLg:o}=Gn(),{drawerOpen:i,openItem:a,activeItem:c,openDrawer:u}=sl();let d="_self";e.target&&(d="_blank");const p=(e==null?void 0:e.external)!==!1?{component:E.forwardRef((A,j)=>f.jsx(ut.Link,{...A,to:e.url,target:d,ref:j}))}:{component:"a",href:e.url,target:d},g=e.icon,v=e.icon?f.jsx(g,{style:{fontSize:i?"1rem":"1.25rem"}}):!1,y=a.findIndex(A=>A===e.id)>-1,{pathname:b}=ut.useLocation();E.useEffect(()=>{b.endsWith(e.url)&&c([e.id])},[b]);const x=n.palette.mode==="dark"?"grey.400":"text.primary",w=n.palette.mode==="dark"&&i?"text.primary":"primary.main";return f.jsx(f.Fragment,{children:r?f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,...i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{bgcolor:"transparent",color:w,"&:hover":{color:w,bgcolor:"transparent"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:36,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:v}):null,!v&&f.jsx(S.ListItemIcon,{sx:{color:y?"primary.main":"secondary.main",...!i&&{borderRadius:1.5,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:f.jsx(rh,{size:4,color:y?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"inherit",children:e.title})}),(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]}):f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,pl:i?`${t*28}px`:1.5,py:!i&&t===1?1.25:1,...i&&{"&:hover":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter",borderRight:`2px solid ${n.palette.primary.main}`,color:w,"&:hover":{color:w,bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},...o&&{onClick:()=>u(!1)},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:28,color:y?w:x,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:n.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!i&&y&&{bgcolor:n.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:n.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:v}):null,i||!i&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",sx:{color:y?w:x},children:e.title})}):null,(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]})})}const HA=ue(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:38,left:-5,width:10,height:10,backgroundColor:e.palette.background.paper,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderLeft:`1px solid ${e.palette.grey.A800}`,borderBottom:`1px solid ${e.palette.grey.A800}`}}));function ml({menu:e,level:t,parentId:n,setSelectedItems:r,selectedItems:o,setSelectedLevel:i,selectedLevel:a}){var W;const c=pt(),{activeItem:u}=sl(),{horizontal:d}=Gn(),{drawerOpen:p}=sl(),g=ut.useNavigate(),[v,y]=E.useState(!1),[b,x]=E.useState(null),[w,A]=E.useState(null);function j(ie){A(null),i(t),p?(y(!v),x(b?null:e.id),r(b?"":e.id),e.url&&g(`${e.url}`)):A(ie==null?void 0:ie.currentTarget)}function T(){p||e.url&&g(`${e.url}`)}function P(ie){A(ie==null?void 0:ie.currentTarget)}function O(){y(!1),x(null),A(null)}E.useMemo(()=>{b===o?t===1&&y(!0):t===a&&(y(!1),x(null))},[o,t,b,a]);const{pathname:_}=ut.useLocation(),R=!!w;function N(ie,U){ie.forEach(ee=>{ee.url===_&&(y(!0),x(U))})}E.useEffect(()=>{y(!1),x(null),R&&A(null),e.children&&e.children.forEach(ie=>{var U;(U=ie.children)!=null&&U.length&&N(ie.children,e.id),ie.url===_&&(x(e.id),y(!0)),_.includes(ie.url)&&(x(e.id),y(!0))})},[_,e.children]),E.useEffect(()=>{e.url===_&&b!==e.id&&(u([e.id]),x(e.id),A(null),y(!0))},[_,e,b,u]);const Y=(W=e.children)==null?void 0:W.map(ie=>{switch(ie.type){case"collapse":return f.jsx(ml,{setSelectedItems:r,setSelectedLevel:i,selectedLevel:a,selectedItems:o,menu:ie,level:t+1,parentId:n},ie.id);case"item":return f.jsx(gl,{item:ie,level:t+1},ie.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Collapse or Item"},ie.id)}}),X=b===e.id,G=t===1?f.jsx(Ue.BorderOutlined,{style:{fontSize:"1rem"}}):!1,re=e.icon,ne=e.icon?f.jsx(re,{style:{fontSize:p?"1rem":"1.25rem"}}):G,Z=c.palette.mode==="dark"?"grey.400":"text.primary",J=c.palette.mode==="dark"&&p?c.palette.text.primary:c.palette.primary.main,V=R?`collapse-pop-${e.id}`:void 0,$={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"};return f.jsx(f.Fragment,{children:d?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{id:`boundary-${V}`,disableRipple:!0,selected:X,onMouseEnter:P,onMouseLeave:O,onClick:P,"aria-describedby":V,sx:{"&.Mui-selected":{bgcolor:"transparent"}},children:[f.jsxs(S.Box,{onClick:T,sx:$,children:[ne?f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,color:c.palette.secondary.dark},children:ne}):null,!ne&&t!==1&&f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,bgcolor:"transparent","&:hover":{bgcolor:"transparent"}},children:f.jsx(rh,{size:4,color:X?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"body1",color:"inherit",sx:{my:"auto"},children:e.title})}),R?f.jsx(Ue.RightOutlined,{}):f.jsx(Ue.DownOutlined,{})]}),w?f.jsx(HA,{id:V,open:R,anchorEl:w,placement:"right-start",style:{zIndex:2001},modifiers:[{name:"offset",options:{offset:[-10,0]}}],children:({TransitionProps:ie})=>f.jsx(Bo,{in:R,...ie,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,py:.5,boxShadow:c.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:Y})})})})}):null]})}):f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{disableRipple:!0,selected:b===e.id,...!p&&{onMouseEnter:j,onMouseLeave:O},onClick:j,sx:{pl:p?`${t*28}px`:1.5,py:!p&&t===1?1.25:1,...p&&{"&:hover":{bgcolor:c.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:"transparent",color:J,"&:hover":{color:J,bgcolor:c.palette.mode==="dark"?"divider":"transparent"}}},...!p&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[ne?f.jsx(S.ListItemIcon,{onClick:T,sx:{minWidth:28,color:b===e.id?"primary.main":Z,...!p&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:c.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!p&&b===e.id&&{bgcolor:c.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:c.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:ne}):null,p||!p&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:b===e.id?"primary":Z,children:e.title}),secondary:e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null}):null,p||!p&&t!==1?R||v?f.jsx(Ue.UpOutlined,{style:{fontSize:"0.625rem",marginLeft:1,color:c.palette.primary.main}}):f.jsx(Ue.DownOutlined,{style:{fontSize:"0.625rem",marginLeft:1}}):null,!p&&f.jsx(HA,{open:R,anchorEl:w,placement:"right-start",style:{zIndex:2001},popperOptions:{modifiers:[{name:"offset",options:{offset:[-12,1]}}]},children:({TransitionProps:ie})=>f.jsx(Bo,{in:R,...ie,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,boxShadow:c.customShadows.z1,backgroundImage:"none",border:`1px solid ${c.palette.divider}`},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:Y})})})})})]}),p?f.jsx(S.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:f.jsx(S.List,{sx:{p:0},children:Y})}):null]})})}const jJ=ue(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:5,left:32,width:12,height:12,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderWidth:"6px",borderStyle:"solid",borderColor:`${e.palette.background.paper} transparent transparent ${e.palette.background.paper}`}}));function GA({item:e,lastItem:t,remItems:n,lastItemId:r,setSelectedItems:o,selectedItems:i,setSelectedLevel:a,selectedLevel:c}){var V,$;const u=pt(),d=L.useTranslate(),{pathname:p}={pathname:""},{horizontal:g,downLg:v}=Gn(),y=sl(),{drawerOpen:b,selectedID:x,activeID:w}=y,[A,j]=E.useState(null),[T,P]=E.useState(e),O=!!A;E.useEffect(()=>{if(t)if(e.id===r){const W={...e},ie=n.map(U=>U.elements);W.children=ie.flat(1),P(W)}else P(e)},[e,t,v]);function _(W,ie){W.forEach(U=>{var ee;(ee=U.children)!=null&&ee.length&&_(U.children,T.id),U.url===p&&w(ie)})}function R(W){(W.children?W.children:[]).forEach(U=>{var ee;(ee=U.children)!=null&&ee.length&&_(U.children,T.id),U.url===p&&w(T.id)})}E.useEffect(()=>{R(T),O&&j(null)},[p,T]);function N(W){O||j(W==null?void 0:W.currentTarget)}function Y(){j(null)}const X=T==null?void 0:T.icon,G=T!=null&&T.icon?f.jsx(X,{style:{fontSize:20,stroke:"1.5",color:x===T.id?u.palette.primary.main:u.palette.secondary.dark}}):null,re=(V=e.children)==null?void 0:V.map(W=>{switch(W.type){case"collapse":return f.jsx(ml,{menu:W,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i,level:1,parentId:T.id},W.id);case"item":return f.jsx(gl,{item:W,level:1},W.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),ne=n.map((W,ie)=>{var U;return f.jsxs(E.Fragment,{children:[W.title?f.jsx(S.Typography,{variant:"caption",sx:{pl:2},children:W.title}):null,(U=W==null?void 0:W.elements)==null?void 0:U.map(ee=>{switch(ee.type){case"collapse":return f.jsx(ml,{menu:ee,level:1,parentId:T.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},ee.id);case"item":return f.jsx(gl,{item:ee,level:1},ee.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},ee.id)}})]},ie)}),Z=($=T.children)==null?void 0:$.map(W=>{switch(W.type){case"collapse":return f.jsx(ml,{menu:W,level:1,parentId:T.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},W.id);case"item":return f.jsx(gl,{item:W,level:1},W.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),J=O?`group-pop-${e.id}`:void 0;return f.jsx(f.Fragment,{children:g?f.jsx(S.List,{children:f.jsxs(S.ListItemButton,{selected:x===T.id,sx:{p:1,my:.5,mr:1,display:"flex",alignItems:"center",backgroundColor:"inherit","&.Mui-selected":{bgcolor:"transparent"}},onMouseEnter:N,onClick:N,onMouseLeave:Y,"aria-describedby":J,children:[G?f.jsx(S.ListItemIcon,{sx:{minWidth:28},children:T.id===r?f.jsx(Ue.DownOutlined,{style:{fontSize:20,stroke:"1.5"}}):G}):null,f.jsx(S.ListItemText,{sx:{mr:1},primary:f.jsx(S.Typography,{variant:"body1",color:x===T.id?u.palette.primary.main:u.palette.secondary.dark,children:T.id===r?d("ra.actions.more"):T.title})}),O?f.jsx(Ue.DownOutlined,{style:{fontSize:16,stroke:"1.5"}}):f.jsx(Ue.RightOutlined,{style:{fontSize:16,stroke:"1.5"}}),A?f.jsx(jJ,{id:J,open:O,anchorEl:A,placement:"bottom-start",style:{zIndex:2001},children:({TransitionProps:W})=>f.jsx(Bo,{in:O,...W,children:f.jsx(S.Paper,{sx:{mt:.5,py:1.25,boxShadow:u.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:Y,children:f.jsx(S.Box,{sx:{maxHeight:"calc(100vh - 170px)",overflowY:"auto","&::-webkit-scrollbar":{opacity:0,width:4,"&:hover":{opacity:.7}},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:u.palette.divider,borderRadius:4}},children:T.id!==r?Z:ne})})})})}):null]})}):f.jsx(S.List,{subheader:e.title&&b?f.jsxs(S.Box,{sx:{pl:3,mb:1.5},children:[f.jsx(S.Typography,{variant:"subtitle2",color:u.palette.mode==="dark"?"textSecondary":"text.secondary",children:e.title}),e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null]}):null,sx:{mt:b&&e.title?1.5:0,py:0,zIndex:0},children:re})})}function YA(e){const{horizontal:t}=Gn(),{open:n}=Pi(),r=Ir(e,{pt:n?t?0:2:0,"& > ul:first-of-type":{mt:0},display:t?{xs:"block",lg:"flex"}:"block"});return f.jsx(S.Box,{sx:r,children:e.children})}function KA(e){const{horizontal:t}=Gn(),{menu:n,isLoading:r}=bg(),[o,i]=E.useState(""),[a,c]=E.useState(0),{horizontalMaxItems:u}=Cn(),d=t?u:void 0;let p=r?0:(n??[]).length-1,g=[],v;return!r&&d&&d<(n??[]).length&&(v=(n??[])[d-1].id,p=d-1,g=(n??[]).slice(d-1,(n??[]).length).map(y=>({title:y.title,elements:y.children,icon:y.icon}))),f.jsx(YA,{...e,children:!r&&te.map((n??[]).slice(0,p+1),y=>{const{type:b}=y;switch(b){case"group":return f.jsx(GA,{item:y,setSelectedItems:i,setSelectedLevel:c,selectedLevel:a,selectedItems:o,lastItem:d,remItems:g,lastItemId:v},y.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Navigation Group"},y.id)}})})}function kJ({open:e,anchorEl:t,handleClose:n,theme:r,mode:o,toggleThemeMode:i}){const a=q.useTranslate();return f.jsx(hh,{placement:"bottom-end",open:e,anchorEl:t,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:c})=>f.jsx(Bo,{type:"grow",position:"top-right",in:e,...c,children:f.jsx(S.Paper,{sx:{boxShadow:r.customShadows.z1,minWidth:200,[r.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:n,children:f.jsx(On,{elevation:0,border:!1,content:!1,children:f.jsxs(S.List,{children:[f.jsxs(S.ListItemButton,{selected:o==="light",onClick:()=>i("light"),children:[f.jsx(Ue.SunOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.light")})]}),f.jsxs(S.ListItemButton,{selected:o==="dark",onClick:()=>i("dark"),children:[f.jsx(Ue.MoonOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.dark")})]}),f.jsxs(S.ListItemButton,{selected:o==="auto",onClick:()=>i("auto"),children:[f.jsx(en.Brightness6,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,textTransform:"none",children:a("ra.preferences.theme.auto")})]})]})})})})})})}function XA(){const e=S.useTheme(),{mode:t,setMode:n}=Cn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=_s(),c=E.useCallback(d=>{n(d)},[n]),u=E.useCallback(()=>{switch(t){case"light":return f.jsx(Ue.SunOutlined,{});case"dark":return f.jsx(Ue.MoonOutlined,{});default:return f.jsx(en.Brightness6,{})}},[t]);return f.jsxs(Vs,{value:"theme-mode","aria-label":"toggle mode",onClick:i,selected:!1,children:[f.jsx(u,{}),r?f.jsx(kJ,{open:r,anchorEl:o,handleClose:a,theme:e,mode:t,toggleThemeMode:c}):null]})}const ZA=E.forwardRef((e,t)=>{const n=Ir(e,{display:"flex",width:"100%"});return f.jsx(S.Box,{ref:t,...e,sx:n,children:e.children})});function cm({source:e="paper"}){const{mode:t}=Cn(),n=S.useTheme();return E.useEffect(()=>{var o;const r=te.get(n.palette.background,e);(o=document.querySelector('meta[name="theme-color"]'))==null||o.setAttribute("content",r)},[t,n,e]),null}const QA=iT(function(t){const{name:n,version:r,enableThemeToggler:o,enableNotification:i,enableLocaleSwitcher:a}=t,{isLoading:c,navigation:u,breadcrumbs:d}=IS();return f.jsxs(ZA,{children:[f.jsxs(_A,{children:[f.jsx(WA,{}),a?f.jsx(MA,{}):null,o?f.jsx(XA,{}):null,f.jsx(cm,{}),f.jsx(kw,{}),i?f.jsx(RA,{}):null,f.jsx(VA,{children:f.jsx(NA,{})})]}),f.jsx(UA,{children:f.jsx(KA,{})}),f.jsxs(aT,{error:t.error,children:[!c&&f.jsx(BC,{titleBottom:!0,mode:"breadcrumbs",navigation:u,breadcrumbs:d,card:!1,divider:!1,icon:!0,icons:!0}),t.children,f.jsx(ut.Outlet,{}),f.jsx(lm,{name:n,version:r,copy:t==null?void 0:t.copy})]})]})});function MJ(e){const{sx:t}=e;return f.jsx(S.Box,{sx:{...t,flex:"1 1 auto",backgroundColor:"background.paper",overflowY:"auto"},children:e.children})}const FJ=444;function _J(e){const{sx:t,anchor:n="right",variant:r="temporary",open:o=!1,onClose:i}=e,a=S.useTheme(),u=S.useMediaQuery(a.breakpoints.down("sm"))?"bottom":n,d=E.useCallback(()=>{Ze.isFunction(i)&&i()},[i]),p={backgroundImage:"none",boxShadow:"-10px 4px 42px 0px rgba(0, 0, 0, 0.25)",width:{sm:"30%"},maxWidth:{sm:FJ},[a.breakpoints.down("sm")]:{width:"100% !important",maxWidth:"100% !important"}};return f.jsx(S.Drawer,{...e,anchor:u,onClose:d,open:o,PaperProps:{sx:{...p,...t}},variant:r,children:e.children})}function RJ(e){return f.jsxs(S.Box,{children:[f.jsx(S.Divider,{}),f.jsx(S.Box,{bgcolor:"background.paper",px:2,py:2.5,children:e.children})]})}function DJ(e){const{sx:t}=e;return f.jsxs(S.Box,{children:[f.jsx(S.Stack,{alignItems:"center",bgcolor:"background.paper",direction:"row",px:2.5,py:2,spacing:2,minHeight:"64px",sx:t,children:e.children}),f.jsx(S.Divider,{sx:{opacity:.6}})]})}function LJ(e){const{primary:t,secondary:n}=e;return f.jsxs(S.Box,{display:"inline-flex",flexGrow:1,flexShrink:1,flexDirection:"column",children:[t?f.jsx(S.Typography,{variant:"h5",children:t}):null,n?f.jsx(S.Typography,{variant:"h6",children:n}):null]})}function BJ(e){return f.jsx(S.Box,{display:"inline-flex",flexGrow:0,flexShrink:0,children:e.children})}const mr=_J;mr.Content=MJ,mr.Footer=RJ,mr.Header=DJ,mr.HeaderText=LJ,mr.HeaderAction=BJ;function JA(e){const t=S.useMediaQuery(n=>n.breakpoints.down("sm"));return f.jsx(NJ,{disableGutters:!0,variant:t?"regular":"dense",...VJ(e)})}JA.propTypes={children:m.node,className:m.string};const NJ=S.styled(S.Toolbar,{name:"RaTopToolbar",overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:e.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingInline:e.spacing(2),[e.breakpoints.down("md")]:{flex:"0 1 100%"},[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,justifyContent:"space-between",alignItems:"center"}}));function VJ({hasCreate:e,...t}){return t}const WJ=ue("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}}));function qA(){return f.jsx(WJ,{children:f.jsx(S.LinearProgress,{color:"primary"})})}function zJ(e){return t=>f.jsx(E.Suspense,{fallback:f.jsx(qA,{}),children:f.jsx(e,{...t})})}function um({title:e}){return f.jsxs(S.Stack,{direction:"row",children:[f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]})}const UJ=ue(L.Notification,{})(({theme:e})=>({zIndex:2e3,"& *":{fontSize:e.typography.body1.fontSize}}));function $A(e){return f.jsx(UJ,{...e})}var vl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(vl||{});const eI=mo().required(),tI=mo().oneOf(Object.values(vl));function HJ(e){var A;const t=li.useQueryClient(),[n,r]=E.useState(!1),[o,i]=E.useState(()=>()=>Promise.resolve()),a=q.useGetIdentity(),c=(A=a==null?void 0:a.data)==null?void 0:A.email,u=q.useDataProvider(),d=E.useCallback(()=>c?u.get("onboarding").then(j=>{var T;return(T=j==null?void 0:j.data)==null?void 0:T.value}):Promise.reject(),[u,c]),{data:p,isLoading:g,isError:v}=li.useQuery({queryKey:["GET","onboarding",c],queryFn:d,staleTime:24*60*60*1e3,retry:c!==void 0}),[y,b]=E.useState(()=>()=>Promise.resolve()),w=li.useMutation({mutationFn:y}).mutateAsync;return E.useEffect(()=>{function j(){const T=te.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",T).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}b(()=>j)},[u,p,e,t,c]),E.useEffect(()=>{r(te.isNil((p??{})[e]))},[p,e,r]),E.useEffect(()=>{i(()=>()=>w())},[w]),{loading:g,error:v,onboardingRequired:n,acknowledgeOnboarding:o}}function GJ(e){const[t,n]=Mg("onboarding",{}),[r,o]=E.useState(!1),[i,a]=E.useState(()=>()=>Promise.resolve());return E.useEffect(()=>{o(te.isNil((t??{})[e]))},[t,e,o]),E.useEffect(()=>{a(()=>()=>(n(c=>te.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:i}}function YJ(){return{onboardingRequired:!1,acknowledgeOnboarding:E.useRef(()=>Promise.resolve()).current}}function nI(e,t){jg({mode:tI,topic:eI}).validateSync({mode:e,topic:t});const n=HJ(t),r=GJ(t),o=YJ();switch(e){case vl.USER:return n.loading?o:n.error?r:te.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case vl.BROWSER:return r;default:return o}}var Ws=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Ws||{});function KJ(e,t){var o;const n=te.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:i}=t;return te.extend(n,{show:i})}case"REGISTER_TIP":{const{payload:i}=t,{id:a}=i,c=te.chain(n.tips).clone().reject(p=>p.id===a).value(),u=te.find(n.tips,{id:a}),d=te.chain(u??{}).clone().extend(i).value();return c.push(d),te.extend(n,{tips:te.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:i}=t,a=te.isString(i)?i:i.id,c=te.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return te.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:i}=t,a=te.isString(i)?i:i.id,c=te.chain(n.tips).reject(v=>v.id===a).value(),u=te.find(n.tips,{id:a});if(te.isNil(u))return n;const d=te.chain(u).clone().extend({dismissed:!0}).value();c.push(d);const p=((o=te.chain(c).reject(v=>v.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(d==null?void 0:d.completeOnboarding)&&te.chain(c).reject(v=>v.step<p).reject(v=>v.dismissed??!1).isEmpty().value()&&e.onComplete(),te.extend(n,{tips:te.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:i}=t;return te.extend(n,{onComplete:i})}case"RESTART":{const i=te.chain(n.tips).clone().map(a=>te.omit(a,"dismissed")).value();return te.extend(n,{tips:i,currentStep:0})}default:return n}}const dm=E.createContext(void 0);function XJ(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=nI(t,n),[i,a]=E.useReducer(KJ,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=E.useMemo(()=>({state:i,dispatch:a}),[i,a]);return E.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),E.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(dm.Provider,{value:c,children:e.children})}function rI(){const e=E.useContext(dm);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function ZJ(){return rI().state}function oI(){return rI().dispatch}function iI(e){jg({id:mo().required(),step:US().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:i,currentStep:a}=ZJ(),c=te.find(i,{id:t}),{dismissed:u}=c??{},d=oI(),p=E.useCallback(()=>{d({type:Ws.DISMISS_TIP,payload:t})},[d,t]);return E.useEffect(()=>{(te.isNil(c)||n!==(c==null?void 0:c.step))&&d({type:Ws.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c,d]),E.useEffect(()=>()=>{d({type:Ws.UNREGISTER_TIP,payload:t})},[t,d]),{tip:te.chain(c??e).clone().extend({open:o&&!te.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function QJ(){const e=oI();return E.useCallback(()=>{e({type:Ws.RESTART})},[e])}function JJ(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:i,dismiss:a}=iI({id:t,step:n,completeOnboarding:o}),{open:c}=i,u=te.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(fu,{...u,arrow:!0,open:c,title:f.jsxs(S.Stack,{gap:1,children:[f.jsx(S.Typography,{children:r}),f.jsx(S.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const qJ=S.styled(JJ)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${S.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${S.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${S.tooltipClasses.arrow}`]:{color:r.main}}}),fm=E.memo(e=>{const{page:t,rowsPerPage:n,count:r,onPageChange:o,size:i="small",className:a,...c}=e,u=q.useTranslate(),d=Math.ceil(r/n)||1;if(d===1)return f.jsx(sI,{className:a});function p(g,v,y){return g==="page"?y?u("ra.navigation.current_page",{page:v,_:`page ${v}`}):u("ra.navigation.page",{page:v,_:`Go to page ${v}`}):u(`ra.navigation.${g}`,{_:`Go to ${g} page`})}return f.jsx(sI,{className:a,children:f.jsx(S.Pagination,{size:i,count:d,page:t+1,onChange:(g,v)=>o(g,v-1),...$J(c),getItemAriaLabel:p})})});fm.propTypes={count:m.number.isRequired,onPageChange:m.func.isRequired,page:m.number.isRequired,rowsPerPage:m.number.isRequired,color:m.oneOf(["primary","secondary","standard"]),size:m.oneOf(["small","medium","large"])};const sI=ue("div",{name:"RaPaginationActions",overridesResolver:e=>e.root})(()=>({flexShrink:0,ml:4}));function $J({nextIconButtonProps:e,backIconButtonProps:t,slotProps:n,...r}){return r}const pm=E.memo(e=>{const{rowsPerPageOptions:t=eq,actions:n,limit:r=null,...o}=e,{isLoading:i,hasNextPage:a,page:c,perPage:u,total:d,setPage:p,setPerPage:g}=q.useListPaginationContext(e),v=q.useTranslate(),y=S.useMediaQuery(N=>N.breakpoints.down("md")),[b,x]=E.useState(c-1),{hasCreate:w}=q.useResourceDefinition(e),A=E.useMemo(()=>d!=null?Math.ceil(d/u):void 0,[u,d]),j=E.useCallback(Ze.debounce(N=>{p(N+1)},500),[p]),T=E.useCallback((N,Y)=>{var re,ne;if(!N)return;if(N.preventDefault(),Y<0||A!==void 0&&Y>A-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:Y+1}));const X=(((re=N.target.dataset)==null?void 0:re.testid)||((ne=N.target.classList)==null?void 0:ne.value))??"",G=X.includes("MuiPaginationItem-previousNext")||X.includes("NavigateBeforeIcon")||X.includes("NavigateNextIcon")||X.includes("KeyboardArrowLeftIcon")||X.includes("KeyboardArrowRightIcon");x(Y),G?j(Y):p(Y+1)},[j,p,v,A]),P=E.useCallback(N=>{g(Number(N.target.value))},[g]),O=E.useCallback(({from:N,to:Y,count:X})=>X===-1&&a?v("ra.navigation.partial_page_range_info",{offsetBegin:N,offsetEnd:Y,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:N,offsetEnd:Y,total:X===-1?Y:X,_:"%{from}-%{to} of %{count === -1 ? to : count}"}),[v,a]),_=E.useCallback(N=>v(`ra.navigation.${N}`,{_:`Go to ${N} page`}),[v]);if(i)return f.jsx(S.Toolbar,{variant:"dense"});if(d===0||c<1||A!==void 0&&c>A)return r!=null&&process.env.NODE_ENV==="development"&&console.warn("The Pagination limit prop is deprecated. Empty state should be handled by the component displaying data (Datagrid, SimpleList)."),null;if(y)return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:T,rowsPerPageOptions:tq,component:"span",labelDisplayedRows:O,sx:{justifyContent:w?"flex-start":"flex-end",display:w?"flex":"block"},...q.sanitizeListRestProps(o)});const R=n||(!i&&d!=null?fm:void 0);return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:T,onRowsPerPageChange:P,ActionsComponent:R,nextIconButtonProps:{disabled:!a},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:O,getItemAriaLabel:_,rowsPerPageOptions:t,...q.sanitizeListRestProps(o)})});pm.propTypes={actions:q.ComponentPropType,limit:m.element,rowsPerPageOptions:m.arrayOf(m.oneOfType([m.number,m.shape({label:m.string.isRequired,value:m.number.isRequired})]))};const eq=[5,10,25,50],tq=[];function aI({children:e}){const t=ut.useLocation(),{pathname:n}=t;return E.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),f.jsx(f.Fragment,{children:e})}const nq=ue("div")({width:"100%",overflowX:"auto",display:"block"});function rq({shadow:e,children:t,...n}){return f.jsx(On,{content:!1,border:!1,shadow:e,boxShadow:!0,...n,children:t})}function lI({title:e}){return f.jsx(S.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substring(0,1).toUpperCase()})}function oq({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:i,component:a,leftIcon:c,rightIcon:u,button:d,buttonProps:p,...g}){const{getCurrentDialog:v}=Ng(),y=q.useResourceContext(g),b=v(),x=q.useRecordContext(),w=r||x,A=Ze.get(w,e||"");return f.jsxs(S.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:j=>({pt:1,pb:1,borderBottom:`1px solid ${j.palette.divider}`,...o&&{mb:2},...i&&{mt:2}}),children:[f.jsxs(S.Stack,{direction:"row",alignItems:"start",children:[c?E.isValidElement(c)?E.cloneElement(c,{style:gd}):E.createElement(c,{style:gd}):null,f.jsx(q.FieldTitle,{label:t,source:e,resource:b||y})]}),f.jsxs(S.Stack,{direction:"row",alignItems:"center",children:[a?E.isValidElement(a)?E.cloneElement(a,{record:w,resource:y,value:A}):E.createElement(a,{source:e,record:w,resource:y,value:A}):f.jsx(S.Typography,{variant:n,children:A}),u?E.isValidElement(u)?E.cloneElement(u,{style:gd}):E.createElement(u,{style:gd}):null,d?f.jsx(S.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:d}):null]})]})}const gd={width:"1.5rem",alignSelf:"center"};function cI(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:i,resource:a,selectedIds:c=[],onUnselectItems:u}=q.useListContext(e),d=q.useTranslate(),p=E.useCallback(()=>{u()},[u]);return f.jsx(iq,{className:r,children:f.jsxs(S.Toolbar,{"data-test":"bulk-actions-toolbar",className:Be(Pr.toolbar,{[Pr.collapsed]:c.length===0}),...q.sanitizeListRestProps(o),children:[f.jsxs("div",{className:Pr.title,children:[f.jsx(S.IconButton,{className:Pr.icon,"aria-label":d("ra.action.unselect"),title:d("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(en.Close,{fontSize:"small"})}),f.jsx(S.Typography,{color:"inherit",variant:"subtitle1",children:d(t,{_:t,smart_count:c.length})})]}),f.jsx(L.TopToolbar,{className:Pr.topToolbar,children:E.Children.map(n,g=>E.isValidElement(g)?E.cloneElement(g,{filterValues:i,resource:a,selectedIds:c}):null)})]})})}const ji="RaBulkActionsToolbar",Pr={toolbar:`${ji}-toolbar`,topToolbar:`${ji}-topToolbar`,buttons:`${ji}-buttons`,collapsed:`${ji}-collapsed`,title:`${ji}-title`,icon:`${ji}-icon`},iq=ue("div",{name:ji,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${Pr.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Zp(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${Pr.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${Pr.buttons}`]:{},[`& .${Pr.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${Pr.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${Pr.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),hm={p:0,m:0},uI={p:2,m:0,borderRadius:0,width:"100%"};function sq(e){const{children:t}=e,[n,r]=D.useState(null);function o(b){r(b.currentTarget)}function i(){r(null)}const a=S.useMediaQuery(b=>b.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:d=[],onUnselectItems:p}=L.useListContext(e),g=!!n&&d!==void 0&&d.length>0,v=g?"simple-popover":void 0,y=D.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(S.Fade,{in:d!==void 0&&d.length>0,children:f.jsxs(S.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(S.Fab,{color:"primary","aria-label":"manage",onClick:o,children:d==null?void 0:d.length}),f.jsx(S.Popover,{id:v,open:g,anchorEl:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(S.List,{sx:hm,children:[f.jsx(S.ListItem,{sx:hm,children:f.jsx(L.Button,{onClick:y,sx:uI,label:"ra.action.unselect",startIcon:f.jsx(mg,{}),children:f.jsx(mg,{})})}),D.Children.map(t,b=>{var x;return f.jsx(S.ListItem,{sx:hm,children:D.isValidElement(b)?D.cloneElement(b,{filterValues:c,resource:u,selectedIds:d,sx:uI,...(x=b.props)!=null&&x.popover?{closePopover:i}:{}}):null})})]})})]})})}const dI=E.createContext({});dI.displayName="DatagridContext";function aq({children:e,value:t}){return f.jsx(dI.Provider,{value:t,children:e})}const lq=S.styled("div")(({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center",gap:e.spacing(2)})),yl="ApplicaEmpty",ki={message:`${yl}-message`,icon:`${yl}-icon`,toolbar:`${yl}-toolbar`},cq=S.styled("span",{name:yl,slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,height:"calc(100vh - 200px)",[`& .${ki.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${ki.icon}`]:{fontSize:"9em",marginTop:"16px",marginBottom:"16px"},[`& .${ki.toolbar}`]:{textAlign:"center"}}));function md({actions:e,className:t,hasCreate:n,icon:r=f.jsx(Ue.DropboxOutlined,{className:ki.icon}),title:o,subtitle:i,sx:a,...c}){const{hasCreate:u}=q.useResourceDefinition(c),d=n??u,p=q.useResourceContext(c),g=q.useTranslate(),v=q.useGetResourceLabel(),y=g(`resources.${p}.forcedCaseName`,{smart_count:0,_:v(p,0)}),b=g("ra.page.empty",{name:y}),x=g("ra.page.invite");return f.jsxs(cq,{className:Be(`${yl}-root`,t),sx:a,children:[f.jsxs(S.Box,{className:ki.message,children:[r,f.jsx(S.Typography,{variant:"h4",paragraph:!0,children:o||g(`resources.${p}.empty`,{_:b})}),i||(d?f.jsx(S.Typography,{variant:"body1",children:g(`resources.${p}.invite`,{_:x})}):null)]}),f.jsx(lq,{className:ki.toolbar,children:e||(d?f.jsx(cE,{disableFloatingButton:!0}):null)})]})}const fI=f.jsx(L.BulkDeleteButton,{}),pI=D.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?L.PureDatagridBody:L.DatagridBody,header:o=L.DatagridHeader,children:i,className:a,empty:c,expand:u,bulkActionsToolbar:d=!1,bulkActionButtons:p=fI,hover:g,isRowSelectable:v,isRowExpandable:y,resource:b,rowClick:x,rowSx:w,rowStyle:A,size:j="small",sx:T,expandSingle:P=!1,...O}=e,_=q.useTranslate(),{sort:R,data:N,isLoading:Y,onSelect:X,onToggleItem:G,selectedIds:re,setSort:ne,total:Z}=q.useListContext(e),J=!!p,V=E.useMemo(()=>({isRowExpandable:y,expandSingle:P}),[y,P]),$=E.useRef(null);E.useEffect(()=>{(!re||re.length===0)&&($.current=null)},[JSON.stringify(re)]);const W=E.useCallback((U,ee)=>{const de=N.map(fe=>fe.id),ge=de.indexOf($.current);if($.current=ee.target.checked?U:null,ee.shiftKey&&ge!==-1){const fe=de.indexOf(U),he=de.slice(Math.min(ge,fe),Math.max(ge,fe)+1),me=ee.target.checked?kG(re,he):YG(re,he);X(v?me.filter(Se=>v(N.find(be=>be.id===Se))):me)}else G(U)},[N,v,X,G,re]),ie=f.jsx(md,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:_("ra.navigation.no_results")})});return Y===!0?f.jsx(L.DatagridLoading,{className:a,expand:u,hasBulkActions:J,nbChildren:D.Children.count(i),size:j}):N==null||N.length===0||Z===0?c||ie:f.jsx(aq,{value:V,children:f.jsxs(L.DatagridRoot,{sx:T,className:Be(L.DatagridClasses.root,a),children:[d!=null&&E.isValidElement(d)?E.cloneElement(d,{selectedIds:re,total:Z}):p!==!1?f.jsx(cI,{children:E.isValidElement(p)?p:fI}):null,f.jsx("div",{className:L.DatagridClasses.tableWrapper,children:f.jsxs(S.Table,{ref:t,className:L.DatagridClasses.table,size:j,...dq(O),children:[hI(o,{children:i,sort:R,data:N,hasExpand:!!u,hasBulkActions:J,isRowSelectable:v,onSelect:X,resource:b,selectedIds:re,setSort:ne},i),hI(r,{expand:u,rowClick:x,data:N,hasBulkActions:J,hover:g,onToggleItem:W,resource:b,rowSx:w,rowStyle:A,selectedIds:re,isRowSelectable:v},i)]})})]})})});function hI(e,t,n){return E.isValidElement(e)?E.cloneElement(e,t,n):E.createElement(e,t,n)}const uq=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"];function dq(e){return Object.keys(q.sanitizeListRestProps(e)).filter(t=>!uq.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{})}pI.displayName="Datagrid";const fq=ue(pI,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function pq(e){return f.jsx(fq,{...e})}const gm=E.createContext({hasFilterSidebar:!1});function gI(){var e;return((e=E.useContext(gm))==null?void 0:e.hasFilterSidebar)??!1}function mm({source:e,value:t}){const n=E.useContext(L.FilterContext),r=L.useResourceContext(),o=E.useMemo(()=>n.find(u=>{var d;return E.isValidElement(u)&&((d=u.props)==null?void 0:d.source)===e}),[n,e]),i=E.useMemo(()=>E.isValidElement(o)?o.props:{},[o]);if(!(i!=null&&i.chip))throw new Error(`No chip component found for filter source "${e}". Ensure your filter components define a 'chip' prop.`);const a={...i,record:{[e]:t},value:t,resource:r};return E.isValidElement(i.chip)?E.cloneElement(i.chip,a):Ze.isFunction(i.chip)?E.createElement(i.chip,a):null}function hq(e){const{value:t,source:n,lastItem:r}=e,o=mm({source:n,value:t});return f.jsxs(S.Stack,{children:[f.jsx(S.ListItem,{alignItems:"flex-start",sx:{pl:0},children:f.jsx(S.ListItemText,{primary:o,sx:{my:0}})}),r===n?null:f.jsx(S.Divider,{})]})}function gq(){const{filterValues:e}=q.useListContext(),t=q.useTranslate();return f.jsxs(S.Stack,{mt:4,width:"100%",children:[f.jsx(S.Typography,{variant:"h6",fontWeight:"bold",color:"secondary",children:t("ra.title.selected_filters")}),f.jsx(S.List,{sx:{bgcolor:"background.paper",pt:0},children:e?Object.entries(e).map(([n,r])=>{const o=Object.entries(e).pop(),i=o?o[0]:"";return f.jsx(hq,{lastItem:i,value:r,source:n},n)}):null})]})}function mq(e){const{onClose:t,addQuery:n}=e,r=q.useTranslate(),{handleSubmit:o}=tn.useFormContext(),i=E.useCallback(a=>{n(a.queryName)},[n]);return f.jsxs(S.Toolbar,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{variant:"contained",onClick:o(i),children:r("ra.action.save")})]})}function mI(e){const{open:t,onClose:n}=e,{filterValues:r,sort:o,perPage:i,displayedFilters:a,resource:c}=q.useListContext(),[u,d]=yS(c),p=q.useTranslate(),g=E.useCallback(y=>{const b={label:y.trim(),value:{filter:r,sort:o,perPage:i,displayedFilters:a}},x=bS(u);d(x.concat(b)),n()},[r,o,i,a,u,d,n]),v=E.useCallback(()=>y=>{if(u.some(b=>b.label===(y==null?void 0:y.trim())))return"ra.validation.already_exists"},[u]);return f.jsx(S.Dialog,{open:t,onClose:n,maxWidth:"xs",fullWidth:!0,children:f.jsxs(Bg,{toolbar:f.jsx(mq,{addQuery:g,onClose:n}),title:p("ra.title.save_favorite_filter"),modal:!0,children:[f.jsx(hr,{fullWidth:!0,source:"queryName",label:p("ra.input.query_name"),placeholder:p("ra.input.query_name_placeholder"),validate:[q.required(),v()]}),f.jsx(gq,{})]})})}function vI(){const[e,t]=E.useState(!1),n=q.useTranslate(),r=E.useCallback(()=>{t(!1)},[]),o=E.useCallback(()=>{t(!0)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{sx:{height:"36px"},variant:"contained",onClick:o,children:n("ra.action.save_filter")}),f.jsx(mI,{open:e,onClose:r})]})}function vq(e){const{onDelete:t,value:n,source:r}=e,o=mm({source:r,value:n});return o&&f.jsx(S.Chip,{label:o,variant:"combined",color:"primary",sx:{height:"36px","& .MuiChip-deleteIcon":{fontSize:"1rem !important",mr:1}},deleteIcon:f.jsx(en.Close,{}),onDelete:t})}function yq(){const{filterValues:e,setFilters:t}=q.useListContext(),n=S.useTheme(),r=S.useMediaQuery(n.breakpoints.down("sm")),o=q.useTranslate(),i=E.useCallback(()=>{t({})},[t]),a=E.useCallback(u=>{const d={...e};delete d[u],t(d)},[e,t]),c=E.useCallback(()=>f.jsxs(S.Stack,{flexDirection:"row",gap:2,children:[f.jsx(vI,{}),f.jsx(S.Button,{variant:"outlined",onClick:i,children:o("ra.action.reset_filters")})]}),[i,o]);return f.jsxs(S.Stack,{gap:2,flexDirection:r?"column":"row",children:[f.jsxs(S.Stack,{flexDirection:"row",flexWrap:r?"nowrap":"wrap",gap:2,py:.5,overflow:"auto",width:r?window.innerWidth-58:"auto",children:[Object.entries(e).map(([u,d])=>f.jsx(vq,{source:u,value:d,onDelete:()=>a(u)},u)),r?null:f.jsx(c,{})]}),r?f.jsx(c,{}):null]})}function vm(){const{filterValues:e}=q.useListContext(),t=S.useTheme(),n=S.useMediaQuery(t.breakpoints.down("sm")),r=q.useTranslate();return e&&!Ze.isEmpty(e)?f.jsxs(S.Stack,{flexDirection:n?"column":"row",alignItems:"baseline",gap:2,m:n?2:0,children:[f.jsx(S.Typography,{variant:"h6",color:"secondary",whiteSpace:"nowrap",children:r("ra.title.active_filters")}),f.jsx(yq,{})]}):null}function yI({open:e,onClose:t,filterToRemove:n}){var b;const r=q.useTranslate(),{resource:o,filterValues:i,sort:a,perPage:c,displayedFilters:u}=q.useListContext(),d=((b=n==null?void 0:n.value)==null?void 0:b.filter)||i,p=(n==null?void 0:n.label)??"",[g,v]=L.useSavedQueries(o);function y(){const x={filter:d,sort:a,perPage:c,displayedFilters:u},w=L.extractValidSavedQueries(g),A=w.findIndex(j=>$a(j.value,x));v([...w.slice(0,A),...w.slice(A+1)]),t()}return f.jsxs(S.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[f.jsx(S.DialogTitle,{id:"alert-dialog-title",children:r("ra.saved_queries.remove_dialog_title",{label:p,_:"Remove saved query?"})}),f.jsx(S.DialogContent,{children:f.jsx(S.DialogContentText,{children:r("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"})})}),f.jsxs(S.DialogActions,{children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{onClick:y,color:"primary",autoFocus:!0,children:r("ra.action.confirm")})]})]})}function bq(e){const{query:t}=e,[n,r]=E.useState(!1),o=E.useCallback(()=>{r(a=>!a)},[]),i=q.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{size:"small",color:"primary",onClick:o,children:i("ra.action.delete")}),f.jsx(yI,{open:n,onClose:o,filterToRemove:t})]})}function bI(e){const{closeSidebar:t}=e,{resource:n,setFilters:r,setSort:o,setPage:i,setPerPage:a}=q.useListContext(),[c,u]=E.useState(!1),d=pt(),[p]=yS(n),g=bS(p),v=q.useTranslate(),y=E.useCallback(()=>{u(x=>!x)},[]),b=E.useCallback(x=>{const{value:w}=x;r(w.filter),o({field:w.sort.field,order:w.sort.order}),i(1),a(w.perPage),t()},[r,o,i,a,t]);return p&&p.length>0?f.jsx(S.Box,{sx:{mt:"-1px",mb:2,"& .MuiAccordion-root":{borderColor:d.palette.divider,"& .Mui-expanded:last-of-type":{marginBottom:"inherit"},"& .MuiAccordionSummary-root":{bgcolor:"transparent",flexDirection:"row"},"& .MuiAccordionSummary-content":{justifyContent:"space-between",marginLeft:0},"& .MuiAccordionDetails-root":{borderColor:d.palette.divider},"& .MuiAccordionSummary-expandIconWrapper":{color:d.palette.text.primary,"&.Mui-expanded":{transform:"rotate(180deg)"}}}},children:f.jsxs(S.Accordion,{expanded:c,onChange:y,children:[f.jsx(S.AccordionSummary,{sx:{px:"20px"},expandIcon:f.jsx(Hw,{fontSize:"small"}),children:f.jsxs(S.Typography,{variant:"h5",fontWeight:"bold",children:[v("ra.action.saved_filters")," (",g.length,")"]})}),g==null?void 0:g.map((x,w)=>f.jsxs(S.AccordionDetails,{sx:{display:"flex",justifyContent:"space-between",px:"20px",alignItems:"center"},children:[f.jsx(S.Typography,{variant:"body1",children:x.label}),f.jsxs(S.Stack,{flexDirection:"row",alignItems:"center",children:[f.jsx(bq,{query:x}),f.jsx(S.Button,{size:"small",color:"primary",onClick:()=>b({value:x.value}),children:v("ra.action.apply")})]})]},w))]})}):f.jsx(S.Box,{height:16})}function xq(e){const{form:t,filters:n}=e,r=q.useResourceContext();return f.jsx(L.FilterContext.Provider,{value:Array.isArray(n)?n:[n],children:f.jsx(tn.FormProvider,{...t,children:f.jsx(S.Box,{px:"20px",children:n?(Array.isArray(n)?n:[n]).map((o,i)=>{const a={...o.props,display:"label"};return E.isValidElement(o)?f.jsx(S.Box,{mb:1,children:E.cloneElement(o,{...a,resource:r})},i):null}):null})})})}function vd(e){const{filters:t}=e,[n,r]=E.useState(!1),{setSidebarOpen:o,sidebarOpen:i}=ym(),{filterValues:a,setFilters:c}=q.useListContext(),u=q.useTranslate(),d=tn.useForm({defaultValues:a}),{handleSubmit:p,getValues:g,reset:v,watch:y}=d,b=y(),x=E.useMemo(()=>{const O={};return t&&(Array.isArray(t)?t:[t]).forEach(_=>{O[_.props.source]=(a==null?void 0:a[_.props.source])??""}),O},[t,a]);E.useEffect(()=>{const O=L.getFilterFormValues(g(),a),_=g();Ze.isEqual(O,_)||v(O)},[JSON.stringify(a),a,g,v]);const w=E.useCallback(()=>{Ze.isFunction(o)&&o(!1)},[o]),A=E.useCallback(O=>{c(O),w()},[c,w]),j=E.useCallback(()=>{v({}),c({})},[v,c]),T=E.useCallback(()=>{r(O=>!O),j(),setTimeout(()=>{r(!1)},1e3)},[j]),P=E.useMemo(()=>{const O=g();return Ze.isEmpty(x)||Ze.isEqual(O,x)},[x,g,b]);return f.jsxs(mr,{sx:{height:"100%"},open:i,onClose:w,children:[f.jsxs(mr.Header,{children:[f.jsx(mr.HeaderText,{primary:u("ra.action.add_filter")}),f.jsx(mr.HeaderAction,{children:f.jsx(p1,{variant:"text",loading:n,loadingPosition:"start",startIcon:f.jsx(Ue.ReloadOutlined,{}),onClick:T,children:u("ra.action.reset_filters")})})]}),f.jsxs(mr.Content,{children:[f.jsx(bI,{closeSidebar:w}),f.jsx(xq,{form:d,filters:t})]}),f.jsx(mr.Footer,{children:f.jsxs(S.Stack,{direction:"row",spacing:2,children:[f.jsx(S.Button,{fullWidth:!0,onClick:()=>{v({}),w()},children:u("ra.action.close")}),f.jsx(S.Button,{fullWidth:!0,disabled:P,variant:"contained",color:"primary",onClick:p(A),children:u("ra.action.apply_filters")})]})})]})}function Cq(){const{setSidebarOpen:e}=ym(),t=E.useContext(L.FilterContext),n=gI(),r=L.useTranslate(),o=S.useTheme(),i=S.useMediaQuery(o.breakpoints.down("sm"));if(!n)throw new Error("The <FilterSidebarButton> component requires the <List aside={<FilterSidebar />}> prop to be set");if(t===void 0)throw new Error("The <FilterSidebarButton> component requires the <List filters> prop to be set");const a=E.useCallback(()=>{Ze.isFunction(e)&&e(!0)},[e]);return i?f.jsxs(S.Button,{className:"add-filter",onClick:a,children:[f.jsx(en.FilterList,{sx:{fontSize:"1rem",mr:.5}}),f.jsx(S.Typography,{variant:"h6",children:r("ra.action.add_filter")})]}):f.jsx(Oi,{label:"ra.action.add_filter",onClick:a,children:f.jsx(en.FilterList,{})})}function xI(e){const{filters:t,actions:n,className:r,hasFilterSidebar:o,...i}=e,a=pt(),c=S.useMediaQuery(a.breakpoints.down("sm")),u=n?E.cloneElement(n,{...i,...n.props}):null,{filterValues:d}=q.useListContext();return Array.isArray(t)?f.jsx(gm.Provider,{value:{hasFilterSidebar:o},children:f.jsx(L.FilterContext.Provider,{value:t,children:c&&o?f.jsxs("div",{children:[u,Ze.isEmpty(d)?null:f.jsxs("div",{children:[f.jsx(S.Divider,{}),f.jsx(vm,{})]})]}):f.jsxs(CI,{className:r,children:[o?f.jsx(vm,{}):f.jsx(L.FilterForm,{}),f.jsx("span",{}),u]})})}):f.jsxs(CI,{className:r,children:[t?E.cloneElement(t,{...i,context:"form"}):null,f.jsx("span",{}),n?E.cloneElement(n,{...i,filters:t,...n.props}):null]})}xI.propTypes={filters:m.oneOfType([m.element,m.arrayOf(m.element)]),actions:m.oneOfType([m.bool,m.element]),exporter:m.oneOfType([m.func,m.bool])};const CI=ue("div",{name:"RaListToolbar",overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%",[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"}})),wI=E.memo(xI),wq=f.jsx(L.ListActions,{}),Sq=f.jsx(L.Pagination,{}),Eq=f.jsx(md,{}),Tq=S.Card;function Aq(e){const{actions:t=wq,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:i,hasCreate:a,pagination:c=Sq,children:u,className:d,component:p=Tq,title:g,empty:v=Eq,...y}=e,{defaultTitle:b,data:x,error:w,isLoading:A,filterValues:j,resource:T}=q.useListContext(e),P=pt(),O=D.isValidElement(n)&&(n==null?void 0:n.type)!==vd,_=D.isValidElement(n)&&(n==null?void 0:n.type)===vd;if(!u||!x&&A&&i)return null;function R(J){return f.jsxs("div",{className:Qr.main,style:{border:O?"1px solid":"none",borderRadius:O?4:0,borderColor:O?P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800:"transparent",backgroundColor:O?P.palette.background.paper:"transparent"},children:[r||t?f.jsx(wI,{className:Qr.actions,filters:r,actions:t,hasCreate:a,hasFilterSidebar:_}):null,!w&&f.jsx(p,{className:Qr.content,sx:J?{background:"transparent"}:{},children:o&&u&&D.isValidElement(u)?E.cloneElement(u,{bulkActionButtons:o}):u}),w?f.jsx(vg,{error:w,resetErrorBoundary:null}):c!==!1&&c]})}function N(){return v!==!1&&E.cloneElement(v,{className:Qr.noResults,hasCreate:a})}const Y=!A&&(x==null?void 0:x.length)===0,X=!A&&(x==null?void 0:x.length)===0&&!Object.keys(j).length&&v!==!1,G=D.isValidElement(n),re=G&&(n==null?void 0:n.type)===vd,ne=A||X||G&&!re?D.Fragment:On,Z=!A&&!X&&(!n||re)?{content:!1}:void 0;return f.jsxs(Oq,{className:Be("list-page",d),...y,sx:Y?{"& .MuiPaper-root":{backgroundColor:"transparent",border:"none"},"& .RaList-actions":{border:"1px solid",borderRadius:`${P.shape.borderRadius}px`,borderColor:P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800,backgroundColor:P.palette.background.paper}}:{},children:[f.jsx(L.Title,{title:g,defaultTitle:b,preferenceKey:`${T}.list.title`}),f.jsx(ne,{...Z,children:A?f.jsx(S.CircularProgress,{sx:{position:"absolute",top:"50%",left:"50%",marginTop:"-20px",marginLeft:"-20px"}}):X?N():R(Y)}),O?f.jsx(Iq,{aside:n}):null,_?D.cloneElement(n,{filters:r}):null]})}function Iq({aside:e}){var r;const t=((r=e==null?void 0:e.props)==null?void 0:r.order)??-1,n=pt();return f.jsx(S.Card,{className:Qr.asideCard,sx:{order:t,mr:t===-1?2:0,ml:t!==-1?2:0,width:200,border:"1px solid",borderRadius:1,borderColor:n.palette.mode==="dark"?n.palette.divider:n.palette.grey.A800,backgroundColor:n.palette.background.paper,backgroundImage:"none"},children:f.jsx(S.CardContent,{sx:{pt:1},children:E.cloneElement(e,{})})})}const zs="RaList",Qr={main:`${zs}-main`,content:`${zs}-content`,actions:`${zs}-actions`,noResults:`${zs}-noResults`,asideCard:`${zs}-asideCard`},Oq=ue("div",{name:zs,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex","& >.MuiPaper-root":{flex:1},[`& .${Qr.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${Qr.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${Qr.actions}`]:{},[`& .${Qr.noResults}`]:{alignContent:"center"},[`& .${Qr.asideCard}`]:{[e.breakpoints.down("md")]:{display:"none"},[`& .${L.SavedQueriesListClasses.floatingIcon}`]:{fontSize:"1.125rem"},[`& .${L.SavedQueriesListClasses.floatingTooltip}`]:{top:"-1.2em"},"& form":{marginTop:e.spacing(2)}}})),SI=E.createContext({sidebarOpen:!1,setSidebarOpen:()=>{}});function EI(e){const[t,n]=E.useState(!1);return f.jsx(SI.Provider,{value:{sidebarOpen:t,setSidebarOpen:n},children:e.children})}function ym(){return E.useContext(SI)}function Pq({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=jq,filterDefaultValues:i,perPage:a=10,queryOptions:c,resource:u,sort:d,storeKey:p,...g}){return f.jsx(q.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:i,perPage:a,queryOptions:c,resource:u,sort:d,storeKey:p,children:f.jsx(EI,{children:f.jsx(Aq,{...g})})})}const jq={},kq=Na(Pq,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),[e.breakpoints.down("sm")]:{flexDirection:"row"},"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiInputLabel-root":{paddingTop:0},"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}},"& .ApplicaEmpty-root":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"calc(100vh - 260px)"}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function Mq(e){return f.jsx(kq,{...e,pagination:f.jsx(pm,{})})}function Fq(){const e=L.useRefresh(),t=L.useNotify(),n=L.useResourceContext(),r=L.useUnselectAll(n),{selectedIds:o,data:i}=L.useListContext(),a=L.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)),[u,{isLoading:d}]=L.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Or().toISOString()},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=E.useCallback(()=>{u()},[u]);return f.jsx(L.Button,{label:"ra.notification.mark_as_readed",disabled:d||(a==null?void 0:a.readed)!==null,onClick:p,children:f.jsx(en.Email,{})})}function _q(){const e=L.useRefresh(),t=L.useNotify(),n=L.useResourceContext(),r=L.useUnselectAll(n),{selectedIds:o,data:i}=L.useListContext(),a=L.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)).concat([a]),[u,{isLoading:d}]=L.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=E.useCallback(()=>{u()},[u]);return f.jsx(L.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:d||a&&!(a!=null&&a.readed),onClick:p,children:f.jsx(en.Drafts,{})})}function Rq(e){const t=L.useRecordContext(e),n=L.useResourceContext(e),r=L.useRedirect(),o=L.useNotify(),i=L.useTranslate(),[a]=L.useLocaleState(),c=E.useMemo(()=>t!=null&&t.readed?Or(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=L.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Or().toISOString()}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),d=E.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:d,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(S.Typography,{variant:"subtitle1",children:f.jsxs(S.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(S.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c?f.jsx(S.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:i("ra.notification.readed",{readed:c})}):null]})}function Dq({...e}){const t=S.useTheme(),{mode:n,colorize:r,density:o}=E.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?S.darken:S.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]);function i(a){return{backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)}}return f.jsxs(L.Datagrid,{...e,rowSx:i,children:[f.jsx(Rq,{source:"notification",sortable:!1}),f.jsx(bE,{source:"created"}),f.jsxs(No,{children:[f.jsx(Fq,{}),f.jsx(_q,{})]})]})}function Lq({empty:e,...t}){const n=L.useTranslate(),r=f.jsx(md,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:n("ra.navigation.no_results")})});return f.jsx(L.SimpleList,{...t,empty:e||r})}function Bq({children:e}){const t=pt();return f.jsx(On,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,border:!1,boxShadow:!0,shadow:t.customShadows.z1,children:f.jsx(S.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})}function yd({version:e,name:t,copy:n,children:r,logo:o,background:i=pu,footer:a=!0}){return f.jsxs(S.Box,{children:[f.jsx(cm,{source:"default"}),E.isValidElement(i)?i:E.createElement(i),f.jsxs(S.Grid,{container:!0,direction:"column",justifyContent:"flex-end",children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(um,{title:t})}),f.jsxs(S.Grid,{item:!0,xs:12,children:[f.jsx(S.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(S.Grid,{item:!0,children:f.jsx(Bq,{children:r})})}),a?f.jsx(S.Grid,{item:!0,sx:{pb:1,position:"absolute",bottom:0,ml:2},children:f.jsx(lm,{name:t,copy:n,version:e})}):null]})]})]})}function Nq({name:e,copy:t,logo:n,version:r,background:o}){const i=q.useTranslate(),a=q.useAuthProvider(),c=q.useNotify(),u=ut.useNavigate(),{token:d}=ut.useParams();return E.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(d).then(()=>{c("ra.auth.activate_success",{type:"info"}),te.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),te.delay(()=>u("/login"),1e3)})},[d,a,c,u]),f.jsx(yd,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:i("ra.auth.activate")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})}function TI(){const e=E.useCallback(()=>location.reload(),[]);return f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{alt:"Error",src:v1,style:{width:"100%",maxWidth:450}}),f.jsx(S.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(S.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(S.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}function AI({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:i=!1,redirectTo:a,background:c=f.jsx(pu,{})}){const[u,d]=q.useSafeSetState(!1),p=q.useLogin(),g=q.useTranslate(),v=q.useNotify(),y=q.useCheckAuth(),b=ut.useNavigate();E.useEffect(()=>{y({},!1).then(()=>{b("/")}).catch(()=>{})},[y,b]);function x(w){d(!0),p(w,a).then(()=>{d(!1)}).catch(A=>{d(!1),v(typeof A=="string"?A:typeof A>"u"||!A.message?"ra.auth.sign_in_error":A.message,{type:"error",messageArgs:{_:typeof A=="string"?A:A&&A.message?A.message:void 0}})})}return f.jsx(yd,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:"Login"}),i?f.jsx(S.Typography,{component:ut.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:g("ra.auth.register")}):null]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(q.Form,{onSubmit:x,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(hr,{autoFocus:!0,source:"username",label:g("ra.auth.username"),autoComplete:"username",validate:q.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(hr,{source:"password",label:g("ra.auth.password"),type:"password",autoComplete:"current-password",validate:q.required(),placeholder:g("ra.auth.password_placeholder"),fullWidth:!0})})]}),o?f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(S.Link,{variant:"h6",component:ut.Link,to:"/recover",color:"text.primary",children:g("ra.auth.forgot_password")})})}):null,f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(S.CircularProgress,{size:19,thickness:3}):g("ra.auth.sign_in")})})]})})]})})}function Vq({name:e,copy:t,logo:n,version:r,background:o}){const[i,a]=E.useState(!1),c=q.useTranslate(),u=q.useRedirect(),d=q.useNotify(),p=q.useAuthProvider();function g({email:v}){a(!0),p.recover(v).then(y=>{const b=`ra.auth.recover_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>a(!1))}return f.jsx(yd,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(L.Form,{onSubmit:g,children:[f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"email",validate:[q.required(),q.email()]})})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(S.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})}function Wq({name:e,copy:t,version:n,logo:r,background:o}){const[i,a]=E.useState(!1),c=q.useTranslate(),u=q.useRedirect(),d=q.useNotify(),p=q.useAuthProvider();function g(v){a(!0),p.register(v).then(y=>{const b=`ra.auth.register_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d(y,{type:"error"})}).finally(()=>a(!1))}return f.jsx(yd,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(L.Form,{onSubmit:g,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"name",label:c("ra.register.name"),validate:q.required()})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"email",type:"email",validate:[q.required(),q.email()]})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"password",type:"password",validate:q.required()})})]}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})}function zq(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function Uq(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Hq(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(Ue.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function Mi({color:e,theme:t}){const n=nn(t,e),{lighter:r,light:o,main:i}=n;return{borderColor:et(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:i}}}function Gq(e){const t=Mi({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":Mi({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":Mi({color:"secondary",theme:e}),"&.MuiAlert-borderError":Mi({color:"error",theme:e}),"&.MuiAlert-borderSuccess":Mi({color:"success",theme:e}),"&.MuiAlert-borderInfo":Mi({color:"info",theme:e}),"&.MuiAlert-borderWarning":Mi({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function Yq(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Kq(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function Fi({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function Xq(e){const t=Fi({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Fi({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Fi({color:"secondary",theme:e}),"&.MuiBadge-colorError":Fi({color:"error",theme:e}),"&.MuiBadge-colorInfo":Fi({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Fi({color:"success",theme:e}),"&.MuiBadge-colorWarning":Fi({color:"warning",theme:e})}}}}}function tt({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:o,main:i,dark:a,contrastText:c}=r,u=`${t}Button`,d=bs(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${et(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${et(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:i,boxShadow:d,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function Zq(e){const t=tt({variant:"dashed",color:"primary",theme:e}),n=tt({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":tt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":tt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":tt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":tt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":tt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":tt({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":tt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":tt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":tt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":tt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":tt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":tt({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:tt({variant:"contained",color:"primary",theme:e}),containedSecondary:tt({variant:"contained",color:"secondary",theme:e}),containedError:tt({variant:"contained",color:"error",theme:e}),containedSuccess:tt({variant:"contained",color:"success",theme:e}),containedInfo:tt({variant:"contained",color:"info",theme:e}),containedWarning:tt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:tt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:tt({variant:"outlined",color:"secondary",theme:e}),outlinedError:tt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:tt({variant:"outlined",color:"success",theme:e}),outlinedInfo:tt({variant:"outlined",color:"info",theme:e}),outlinedWarning:tt({variant:"outlined",color:"warning",theme:e}),textPrimary:tt({variant:"text",color:"primary",theme:e}),textSecondary:tt({variant:"text",color:"secondary",theme:e}),textError:tt({variant:"text",color:"error",theme:e}),textSuccess:tt({variant:"text",color:"success",theme:e}),textInfo:tt({variant:"text",color:"info",theme:e}),textWarning:tt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Qq(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Jq(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function qq(){return{MuiCard:{styleOverrides:{root:{boxShadow:"none"}}}}}function $q(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Us({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:o,dark:i}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function e$(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function bm(e){const t=e$(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function t$(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(Ue.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(Ue.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...bm("small")},"&.size-medium":{...bm("medium")},"&.size-large":{...bm("large")}},colorPrimary:Us({color:"primary",theme:e}),colorSecondary:Us({color:"secondary",theme:e}),colorSuccess:Us({color:"success",theme:e}),colorWarning:Us({color:"warning",theme:e}),colorInfo:Us({color:"info",theme:e}),colorError:Us({color:"error",theme:e})}}}}function Hs({color:e,theme:t}){const n=nn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Xn({color:e,theme:t}){const n=nn(t,e),{light:r,lighter:o,main:i}=n;return{color:i,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:i,"&:hover":{color:r}}}}function n$(e){const t=Xn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Hs({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Hs({color:"secondary",theme:e}),"&.MuiChip-colorError":Hs({color:"error",theme:e}),"&.MuiChip-colorInfo":Hs({color:"info",theme:e}),"&.MuiChip-colorSuccess":Hs({color:"success",theme:e}),"&.MuiChip-colorWarning":Hs({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Xn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Xn({color:"secondary",theme:e}),"&.MuiChip-lightError":Xn({color:"error",theme:e}),"&.MuiChip-lightInfo":Xn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Xn({color:"success",theme:e}),"&.MuiChip-lightWarning":Xn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Xn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Xn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Xn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Xn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Xn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Xn({color:"warning",theme:e})}}}}}function r$(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:et("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function o$(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function i$(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Gs({color:e,theme:t}){const n=nn(t,e),{main:r,dark:o,contrastText:i}=n,a=`${e}Button`,c=bs(t,a);return{color:i,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${et(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${et(r,.9)}`}}}function s$(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Gs({color:"primary",theme:e}),"&.MuiFab-secondary":Gs({color:"secondary",theme:e}),"&.Mui-error":Gs({color:"error",theme:e}),"&.MuiFab-success":Gs({color:"success",theme:e}),"&.MuiFab-info":Gs({color:"info",theme:e}),"&.MuiFab-warning":Gs({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function a$(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function l$(e){return{MuiInputBase:{styleOverrides:{}}}}function c$(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1.3em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function u$(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function d$(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function f$(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function p$(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function h$(e){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function g$(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function _i({variant:e,theme:t}){const n=nn(t,e),{light:r}=n,o=bs(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function m$(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{..._i({variant:"primary",theme:e}),"&.Mui-error":{..._i({variant:"error",theme:e})}},inputSizeSmall:{padding:"9px 8px 9px 12px"},inputMultiline:{padding:0},colorSecondary:_i({variant:"secondary",theme:e}),colorError:_i({variant:"error",theme:e}),colorWarning:_i({variant:"warning",theme:e}),colorInfo:_i({variant:"info",theme:e}),colorSuccess:_i({variant:"success",theme:e})}}}}function v$(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function Et({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:i},...d};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:i},...d};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...d}}}function y$(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":Et({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":Et({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":Et({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":Et({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":Et({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":Et({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":Et({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":Et({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":Et({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":Et({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":Et({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":Et({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":Et({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":Et({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":Et({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":Et({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":Et({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":Et({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":Et({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":Et({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":Et({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":Et({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":Et({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":Et({variant:"outlined",color:"warning",theme:e})}}}}}}function b$(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Ys({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:o,dark:i}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function x$(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function xm(e){const t=x$(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function C$(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(S.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...xm("small")},"&.size-medium":{...xm("medium")},"&.size-large":{...xm("large")}},colorPrimary:Ys({color:"primary",theme:e}),colorSecondary:Ys({color:"secondary",theme:e}),colorSuccess:Ys({color:"success",theme:e}),colorWarning:Ys({color:"warning",theme:e}),colorInfo:Ys({color:"info",theme:e}),colorError:Ys({color:"error",theme:e})}}}}function Ks({color:e,theme:t}){const n=nn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function w$(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":Ks({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":Ks({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":Ks({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":Ks({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":Ks({color:"info",theme:e}),"&.MuiSlider-thumbColorError":Ks({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function S$(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function Cm(e,t){const n=S$(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function E$(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...Cm(e,"medium")},sizeLarge:{...Cm(e,"large")},sizeSmall:{...Cm(e,"small")}}}}}function T$(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function A$(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function I$(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function O$(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function P$(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function j$(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function k$(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function M$(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function F$(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function _$(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function R$(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function D$(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function L$(e){return Ze.merge(zq(e),Uq(e),Hq(e),Gq(e),Yq(),Kq(e),Xq(e),Zq(e),Qq(),Jq(),qq(),$q(),t$(e),n$(e),r$(e),o$(e),i$(),s$(e),a$(e),l$(),c$(e),u$(),d$(),f$(e),p$(e),h$(),g$(),m$(e),v$(),y$(e),b$(e),C$(e),w$(e),E$(e),T$(e),A$(e),I$(e),O$(e),P$(e),j$(),k$(),M$(),F$(e),_$(e),R$(),D$())}function B$(e){const{blue:t,red:n,gold:r,cyan:o,green:i,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:u},grey:c}}function N$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],d=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(i=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],d=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function V$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function W$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function z$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function U$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function H$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function G$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Y$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function K$(e,t,n){switch(t){case"theme1":return N$(e,n);case"theme2":return V$(e,n);case"theme3":return W$(e,n);case"theme4":return z$(e,n);case"theme5":return U$(e,n);case"theme6":return H$(e,n);case"theme7":return G$(e,n);case"theme8":return Y$(e,n);default:return B$(e)}}var wm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];wm.primary=wm[5];var Sm=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sm.primary=Sm[5];var Em=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Em.primary=Em[5];var Tm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Tm.primary=Tm[5];var Am=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Am.primary=Am[5];var Im=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Im.primary=Im[5];var Om=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Om.primary=Om[5];var Pm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Pm.primary=Pm[5];var jm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jm.primary=jm[5];var km=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];km.primary=km[5];var Mm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mm.primary=Mm[5];var Fm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Fm.primary=Fm[5];var _m=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_m.primary=_m[5];var X$={red:wm,volcano:Sm,orange:Em,gold:Tm,yellow:Am,lime:Im,green:Om,cyan:Pm,blue:jm,geekblue:km,purple:Mm,magenta:Fm,grey:_m},Rm=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rm.primary=Rm[5];var Dm=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Dm.primary=Dm[5];var Lm=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Lm.primary=Lm[5];var Bm=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Bm.primary=Bm[5];var Nm=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Nm.primary=Nm[5];var Vm=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Vm.primary=Vm[5];var Wm=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Wm.primary=Wm[5];var zm=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];zm.primary=zm[5];var Um=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Um.primary=Um[5];var Hm=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Hm.primary=Hm[5];var Gm=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Gm.primary=Gm[5];var Ym=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ym.primary=Ym[5];var Km=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Km.primary=Km[5];var Z$={red:Rm,volcano:Dm,orange:Lm,gold:Bm,yellow:Nm,lime:Vm,green:Wm,cyan:zm,blue:Um,geekblue:Hm,purple:Gm,magenta:Ym,grey:Km};function Q$(e,t){const n=e==="dark"?Z$:X$;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#121212","#d3d8db"]),n.grey=[...r,...o,...i];const a=K$(n,t,e);return Fp({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?et(a.grey[900],.87):a.grey[700],secondary:e==="dark"?et(a.grey[900],.45):a.grey[500],disabled:e==="dark"?et(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?et(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})}function J$(e){return{button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z0:"none",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${et(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${et(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${et(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${et(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${et(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${et(e.palette.info.main,.2)}`,success:`0 0 0 2px ${et(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${et(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${et(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${et(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${et(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${et(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${et(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${et(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${et(e.palette.grey[500],.2)}`}}function q$(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}}}function Xm({themeOverrides:e,children:t}){const n=Cn(),{themeDirection:r,mode:o,presetColor:i,fontFamily:a}=n,c=oE(),u=E.useMemo(()=>o==="auto"?c:o,[o,c]),d=E.useMemo(()=>Q$(u,i),[u,i]),p=E.useMemo(()=>q$(a),[a]),g=E.useMemo(()=>J$(d),[d]),v=E.useMemo(()=>te.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:d.palette,customShadows:g,typography:p,components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:d.spacing(2.6875),height:d.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(d):e),[r,d,p,g,e]),y=Fp(v),b=te.cloneDeep(y.components??{});return y.components=te.merge(L$(y),b),f.jsx(S.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(AC,{theme:y,children:[f.jsx(S.CssBaseline,{enableColorScheme:!0}),t]})})}function $$({children:e,theme:t,...n}){return f.jsx(L.CoreAdminContext,{...n,children:f.jsx(Xm,{themeOverrides:t,children:f.jsx(aI,{children:e})})})}function II(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:i,disableTelemetry:a,history:c,i18nProvider:u,layout:d,loading:p,loginPage:g,authCallbackPage:v,menu:y,notification:b,queryClient:x,requireAuth:w,store:A=L.localStorageStore(),ready:j,theme:T,title:P="React Admin"}=e;return f.jsx($$,{authProvider:t,dataProvider:i,i18nProvider:u,store:A,history:c,queryClient:x,theme:T,children:f.jsx(L.AdminUI,{layout:d,dashboard:o,disableTelemetry:a,menu:y,catchAll:n,title:P,loading:p,loginPage:g,authCallbackPage:v,notification:b,requireAuth:w,ready:j,children:r})})}class OI{constructor({catch:t,display:n,log:r,error:o}){zl(this,"catch");zl(this,"display");zl(this,"log");zl(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}class eee{constructor(t){Io(this,bl);Io(this,xl);Io(this,Xs,new Set);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");si(this,xl,n),si(this,bl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:i}=t,a=`${n}${r}${o}${i}`;Nn(this,Xs).has(a)||(Nn(this,Xs).add(a),fetch(`${Nn(this,xl)}/ui/error-log`,{method:"PUT",headers:Nn(this,bl),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(u=>{console.warn("Unable to send error to server",u),Nn(this,Xs).delete(a)}))}}bl=new WeakMap,xl=new WeakMap,Xs=new WeakMap;function tee({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=i=>new OI({catch:i!=null,display:!1,log:i!=null,error:i}),...o}){const i=D.useMemo(()=>o.errorHandler?o.errorHandler:new eee({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=D.useCallback(function(u,...d){var g;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(g=u==null?void 0:u.toString())==null?void 0:g.replace(/%s/g,()=>d.shift()));return p.isCatched()||(p.logError()&&(u instanceof ErrorEvent?i.handle(u):i.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)),!1},[r,i,a]);return D.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c,a]),!0}class nee{constructor(t){Io(this,Cl);Io(this,wl);Io(this,Di,[]);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");si(this,wl,n),si(this,Cl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!te.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!te.isString(r)||te.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!te.some(Nn(this,Di),o=>te.isEqual(o,{code:n,lang:r}))){Nn(this,Di).push({code:n,lang:r}),fetch(`${Nn(this,wl)}/i18n/message`,{method:"put",headers:Nn(this,Cl),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),si(this,Di,te.reject(Nn(this,Di),i=>te.isEqual(i,{code:n,lang:r})))});return}}}Cl=new WeakMap,wl=new WeakMap,Di=new WeakMap;function PI(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,i=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new nee({apiUrl:t});function u(){return fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(g=>g.json()).catch(()=>Promise.resolve(i))}function d(){return fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(g=>g.json()).then(g=>g.reduce((v,y)=>({...v,[y.lang]:{...v[y.lang]||{},[y.code]:y.text}}),{}))}function p(g,v,y){return r||console.error(`Warning: Missing translation for key: "${g}"`),o&&(te.isString(g)?g.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${g}`):c.handleMessage({code:g,lang:y}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),g}return Promise.all([u(),d()]).then(g=>{const[v,y]=g;function b(x){return te.get(y,x,{})}return gv(b,n,v,{allowMissing:r||o,onMissingKey:p})})}function ree(e){const{defaultLocale:t,path:n}=e,r=[{locale:t,name:t}],o=new Headers({Accept:"application/json","Content-Type":"application/json"});function i(){return fetch(`${n}/languages.json`,{headers:o,method:"get"}).then(c=>c.json()).catch(()=>Promise.resolve(r))}function a(){return fetch(`${n}/messages.json`,{headers:o,method:"get"}).then(c=>c.json()).then(c=>c.reduce((u,d)=>({...u,[d.lang]:{...u[d.lang]||{},[d.code]:d.text}}),{}))}return Promise.all([i(),a()]).then(c=>{const[u,d]=c;function p(g){return te.get(d,g,{})}return gv(p,t,u,{allowMissing:!0})})}function oee({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})}){const[r,o]=E.useState({loading:!0,languages:null});return E.useEffect(()=>{const i=new Headers;i.append("Accept","application/json"),i.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:i}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r}function jI(e){const[t,n]=E.useState(),r=rE(e);return E.useEffect(()=>{if(e.customProvider!==void 0){e.customProvider.then(n);return}PI(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r,e==null?void 0:e.customProvider]),t}const iee=new li.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function see({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:i,logoIcon:a,loginPage:c=f.jsx(AI,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(pu,{})}),menu:u,name:d,copy:p,version:g="0.0.0",dataProvider:v,authProvider:y,i18nProvider:b,errorHandler:x,error:w,enableNotification:A=!1,enableRegistration:j=!1,enablePasswordRecover:T=!1,enableThemeToggler:P=!1,enableLocaleSwitcher:O=!1,queryClient:_=iee,background:R,notificationAPI:N="entities/notification",...Y}){tee({apiUrl:n,errorHandler:x,catcherFn:ne=>{const Z=ne==null?void 0:ne.toString(),V=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(W=>Z==null?void 0:Z.includes(W));return new OI({catch:V,display:!V,log:!V&&o===!0,error:Z})}});const X=E.useMemo(()=>E.isValidElement(c)?E.cloneElement(c,{name:d,copy:p,logo:i,version:g,background:R,enableRegistration:j,enablePasswordRecover:T}):c,[c,d,g,p,R,i,j,T]),G=E.useMemo(()=>ne=>{const Z=d?f.jsx(um,{title:d}):i,J=d?f.jsx(lI,{title:d}):a;return f.jsx(QA,{...ne,name:d,copy:p,version:g,logoMain:Z,logoIcon:J,notification:N,enableThemeToggler:P,enableNotification:A,enableLocaleSwitcher:O,error:w})},[i,a,d,p,g,w,N,A,P,O]),re=jI({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o,customProvider:b});return re===void 0?f.jsx(f.Fragment,{}):re.error?f.jsx(Rg,{initialConfig:t,children:f.jsx(Xm,{themeOverrides:e,children:f.jsx(TI,{})})}):f.jsx(EK,{children:f.jsx(AS,{menu:u,children:f.jsx(Rg,{initialConfig:t,children:f.jsx(II,{theme:e,layout:G,notification:$A,queryClient:_,dataProvider:v,authProvider:y,i18nProvider:re,loginPage:X,...Y})})})})}Object.defineProperty(k,"ArrayField",{enumerable:!0,get:()=>L.ArrayField}),Object.defineProperty(k,"ArrayInputContext",{enumerable:!0,get:()=>L.ArrayInputContext}),Object.defineProperty(k,"BooleanField",{enumerable:!0,get:()=>L.BooleanField}),Object.defineProperty(k,"ChipField",{enumerable:!0,get:()=>L.ChipField}),Object.defineProperty(k,"Confirm",{enumerable:!0,get:()=>L.Confirm}),Object.defineProperty(k,"CreateContextProvider",{enumerable:!0,get:()=>L.CreateContextProvider}),Object.defineProperty(k,"CustomRoutes",{enumerable:!0,get:()=>L.CustomRoutes}),Object.defineProperty(k,"DeleteWithUndoButton",{enumerable:!0,get:()=>L.DeleteWithUndoButton}),Object.defineProperty(k,"EditButton",{enumerable:!0,get:()=>L.EditButton}),Object.defineProperty(k,"EditContextProvider",{enumerable:!0,get:()=>L.EditContextProvider}),Object.defineProperty(k,"FieldTitle",{enumerable:!0,get:()=>L.FieldTitle}),Object.defineProperty(k,"FilterButton",{enumerable:!0,get:()=>L.FilterButton}),Object.defineProperty(k,"FilterList",{enumerable:!0,get:()=>L.FilterList}),Object.defineProperty(k,"FilterListItem",{enumerable:!0,get:()=>L.FilterListItem}),Object.defineProperty(k,"FilterLiveSearch",{enumerable:!0,get:()=>L.FilterLiveSearch}),Object.defineProperty(k,"Form",{enumerable:!0,get:()=>L.Form}),Object.defineProperty(k,"FormDataConsumer",{enumerable:!0,get:()=>L.FormDataConsumer}),Object.defineProperty(k,"HttpError",{enumerable:!0,get:()=>L.HttpError}),Object.defineProperty(k,"I18nContextProvider",{enumerable:!0,get:()=>L.I18nContextProvider}),Object.defineProperty(k,"ListBase",{enumerable:!0,get:()=>L.ListBase}),Object.defineProperty(k,"LoadingIndicator",{enumerable:!0,get:()=>L.LoadingIndicator}),Object.defineProperty(k,"RaSimpleFormIterator",{enumerable:!0,get:()=>L.SimpleFormIterator}),Object.defineProperty(k,"RecordContextProvider",{enumerable:!0,get:()=>L.RecordContextProvider}),Object.defineProperty(k,"ReferenceArrayField",{enumerable:!0,get:()=>L.ReferenceArrayField}),Object.defineProperty(k,"ReferenceField",{enumerable:!0,get:()=>L.ReferenceField}),Object.defineProperty(k,"Resource",{enumerable:!0,get:()=>L.Resource}),Object.defineProperty(k,"ResourceContextProvider",{enumerable:!0,get:()=>L.ResourceContextProvider}),Object.defineProperty(k,"SaveButton",{enumerable:!0,get:()=>L.SaveButton}),Object.defineProperty(k,"SavedQueriesList",{enumerable:!0,get:()=>L.SavedQueriesList}),Object.defineProperty(k,"SimpleFormIteratorContext",{enumerable:!0,get:()=>L.SimpleFormIteratorContext}),Object.defineProperty(k,"SimpleShowLayout",{enumerable:!0,get:()=>L.SimpleShowLayout}),Object.defineProperty(k,"SingleFieldList",{enumerable:!0,get:()=>L.SingleFieldList}),Object.defineProperty(k,"TabbedFormTabs",{enumerable:!0,get:()=>L.TabbedFormTabs}),Object.defineProperty(k,"UrlField",{enumerable:!0,get:()=>L.UrlField}),Object.defineProperty(k,"ValidationError",{enumerable:!0,get:()=>L.ValidationError}),Object.defineProperty(k,"WithListContext",{enumerable:!0,get:()=>L.WithListContext}),Object.defineProperty(k,"choices",{enumerable:!0,get:()=>L.choices}),Object.defineProperty(k,"email",{enumerable:!0,get:()=>L.email}),Object.defineProperty(k,"maxLength",{enumerable:!0,get:()=>L.maxLength}),Object.defineProperty(k,"maxValue",{enumerable:!0,get:()=>L.maxValue}),Object.defineProperty(k,"minLength",{enumerable:!0,get:()=>L.minLength}),Object.defineProperty(k,"minValue",{enumerable:!0,get:()=>L.minValue}),Object.defineProperty(k,"number",{enumerable:!0,get:()=>L.number}),Object.defineProperty(k,"regex",{enumerable:!0,get:()=>L.regex}),Object.defineProperty(k,"required",{enumerable:!0,get:()=>L.required}),Object.defineProperty(k,"useArrayInput",{enumerable:!0,get:()=>L.useArrayInput}),Object.defineProperty(k,"useAuthProvider",{enumerable:!0,get:()=>L.useAuthProvider}),Object.defineProperty(k,"useCheckAuth",{enumerable:!0,get:()=>L.useCheckAuth}),Object.defineProperty(k,"useChoices",{enumerable:!0,get:()=>L.useChoices}),Object.defineProperty(k,"useChoicesContext",{enumerable:!0,get:()=>L.useChoicesContext}),Object.defineProperty(k,"useCreate",{enumerable:!0,get:()=>L.useCreate}),Object.defineProperty(k,"useCreateContext",{enumerable:!0,get:()=>L.useCreateContext}),Object.defineProperty(k,"useCreateController",{enumerable:!0,get:()=>L.useCreateController}),Object.defineProperty(k,"useCreateSuggestionContext",{enumerable:!0,get:()=>L.useCreateSuggestionContext}),Object.defineProperty(k,"useDataProvider",{enumerable:!0,get:()=>L.useDataProvider}),Object.defineProperty(k,"useDeleteMany",{enumerable:!0,get:()=>L.useDeleteMany}),Object.defineProperty(k,"useEditContext",{enumerable:!0,get:()=>L.useEditContext}),Object.defineProperty(k,"useEditController",{enumerable:!0,get:()=>L.useEditController}),Object.defineProperty(k,"useGetIdentity",{enumerable:!0,get:()=>L.useGetIdentity}),Object.defineProperty(k,"useGetList",{enumerable:!0,get:()=>L.useGetList}),Object.defineProperty(k,"useGetMany",{enumerable:!0,get:()=>L.useGetMany}),Object.defineProperty(k,"useGetManyReference",{enumerable:!0,get:()=>L.useGetManyReference}),Object.defineProperty(k,"useGetOne",{enumerable:!0,get:()=>L.useGetOne}),Object.defineProperty(k,"useInput",{enumerable:!0,get:()=>L.useInput}),Object.defineProperty(k,"useListContext",{enumerable:!0,get:()=>L.useListContext}),Object.defineProperty(k,"useListController",{enumerable:!0,get:()=>L.useListController}),Object.defineProperty(k,"useLocaleState",{enumerable:!0,get:()=>L.useLocaleState}),Object.defineProperty(k,"useLocales",{enumerable:!0,get:()=>L.useLocales}),Object.defineProperty(k,"useLogin",{enumerable:!0,get:()=>L.useLogin}),Object.defineProperty(k,"useLogout",{enumerable:!0,get:()=>L.useLogout}),Object.defineProperty(k,"useNotify",{enumerable:!0,get:()=>L.useNotify}),Object.defineProperty(k,"usePermissions",{enumerable:!0,get:()=>L.usePermissions}),Object.defineProperty(k,"useRecordContext",{enumerable:!0,get:()=>L.useRecordContext}),Object.defineProperty(k,"useReferenceArrayFieldController",{enumerable:!0,get:()=>L.useReferenceArrayFieldController}),Object.defineProperty(k,"useRefresh",{enumerable:!0,get:()=>L.useRefresh}),Object.defineProperty(k,"useRemoveFromStore",{enumerable:!0,get:()=>L.useRemoveFromStore}),Object.defineProperty(k,"useResetStore",{enumerable:!0,get:()=>L.useResetStore}),Object.defineProperty(k,"useResourceContext",{enumerable:!0,get:()=>L.useResourceContext}),Object.defineProperty(k,"useResourceDefinition",{enumerable:!0,get:()=>L.useResourceDefinition}),Object.defineProperty(k,"useResourceDefinitions",{enumerable:!0,get:()=>L.useResourceDefinitions}),Object.defineProperty(k,"useSafeSetState",{enumerable:!0,get:()=>L.useSafeSetState}),Object.defineProperty(k,"useShowContext",{enumerable:!0,get:()=>L.useShowContext}),Object.defineProperty(k,"useShowController",{enumerable:!0,get:()=>L.useShowController}),Object.defineProperty(k,"useSimpleFormIterator",{enumerable:!0,get:()=>L.useSimpleFormIterator}),Object.defineProperty(k,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>L.useSimpleFormIteratorItem}),Object.defineProperty(k,"useStore",{enumerable:!0,get:()=>L.useStore}),Object.defineProperty(k,"useStoreContext",{enumerable:!0,get:()=>L.useStoreContext}),Object.defineProperty(k,"useTranslate",{enumerable:!0,get:()=>L.useTranslate}),Object.defineProperty(k,"useTranslateLabel",{enumerable:!0,get:()=>L.useTranslateLabel}),Object.defineProperty(k,"useUnselect",{enumerable:!0,get:()=>L.useUnselect}),Object.defineProperty(k,"useUnselectAll",{enumerable:!0,get:()=>L.useUnselectAll}),Object.defineProperty(k,"useUpdate",{enumerable:!0,get:()=>L.useUpdate}),Object.defineProperty(k,"useUpdateMany",{enumerable:!0,get:()=>L.useUpdateMany}),Object.defineProperty(k,"withLifecycleCallbacks",{enumerable:!0,get:()=>L.withLifecycleCallbacks}),k.ActionsField=IK,k.ActionsMenu=No,k.ActivatePage=Nq,k.ActiveFiltersChips=vm,k.AddTableRow=Kg,k.Admin=II,k.AnimateButton=uk,k.AppBarStyled=jA,k.ApplicaAdmin=see,k.ArrayInput=AK,k.AttachmentField=gE,k.AttachmentInput=qK,k.AuthBackground=pu,k.AutocompleteArrayInput=eX,k.AutocompleteInput=nX,k.Avatar=Xc,k.BooleanInput=oX,k.Breadcrumbs=BC,k.BulkActionsToolbar=cI,k.BulkDeleteWithConfirmButton=aE,k.BulkFloatingActionsToolbar=sq,k.Button=Oi,k.CardForm=sE,k.ChangePasswordButton=DA,k.ChangePasswordForm=Vg,k.CircularWithLabel=cR,k.CircularWithPath=uR,k.CoverField=vE,k.Create=DX,k.CreateButton=cE,k.CreateButtonClasses=ed,k.CreateInDialogButton=yK,k.Datagrid=pq,k.DateAgoField=bE,k.DateField=DK,k.DateInput=aX,k.DateTimeInput=cX,k.DeleteWithConfirmButton=ll,k.Dot=rh,k.Drawer=PA,k.DrawerHeader=uT,k.DrawerHeaderStyled=lT,k.DrawerToggle=FA,k.Edit=NX,k.EditInDialogButton=CK,k.EmailField=BK,k.Empty=md,k.EmptyClasses=ki,k.Error=vg,k.Field=qE,k.FileField=xE,k.FileInput=dX,k.FilterSidebar=vd,k.FilterSidebarButton=Cq,k.FilterSidebarContext=gm,k.Footer=lm,k.FormHeader=zX,k.FunctionField=VK,k.GenericErrorPage=TI,k.Header=_A,k.HeaderButton=kA,k.HeaderIconButton=EJ,k.HeaderNotification=RA,k.HeaderProfile=NA,k.HeaderSpacer=WA,k.HeaderToggleButton=Vs,k.HorizontalBar=zA,k.IconButton=eu,k.ImageField=mE,k.ImageInput=fX,k.ImpersonateUserButton=wK,k.LabeledArrayInput=pE,k.LabeledInput=dn,k.Layout=QA,k.LayoutContent=aT,k.LayoutProvider=oT,k.LayoutWrapper=ZA,k.LinearWithIcon=dR,k.LinearWithLabel=fR,k.List=Mq,k.ListItem=oq,k.ListToolbar=wI,k.ListViewProvider=EI,k.Loadable=zJ,k.Loader=qA,k.LoadingButton=p1,k.LocalStorage=JS,k.LocaleButton=MA,k.LocalizedTextField=zK,k.LocalizedTextInput=gX,k.LoginPage=AI,k.Logo=cT,k.LogoutButton=LA,k.LongForm=_t,k.MainCard=On,k.MainIcon=um,k.MenuConfigProvider=AS,k.MenuPopover=m1,k.NavCollapse=ml,k.NavGroup=GA,k.NavItem=gl,k.NavList=YA,k.NavMenu=UA,k.Navigation=KA,k.Notification=$A,k.NotificationList=Dq,k.NumberInput=vX,k.OnboardingActionType=Ws,k.OnboardingContext=dm,k.OnboardingModes=vl,k.OnboardingProvider=XJ,k.OnboardingTip=qJ,k.Pagination=pm,k.PaginationActions=fm,k.PopupTransition=lR,k.RadioButtonGroupInput=bX,k.ReadonlyField=YK,k.RecordInput=xX,k.RecoverPage=Vq,k.ReferenceArrayInput=CX,k.ReferenceInput=wX,k.ReferenceManyField=wE,k.ReferenceManyInput=SX,k.RegisterPage=Wq,k.RemoveSavedQueryDialog=yI,k.ResponsiveSection=VA,k.SaveFiltersButton=vI,k.SaveFiltersDialog=mI,k.SavedFiltersList=bI,k.ScrollTop=aI,k.ScrollX=nq,k.SearchInput=TX,k.SelectArrayInput=IX,k.SelectInput=PX,k.ShadowBox=rq,k.Show=oZ,k.Sidebar=mr,k.SimpleBar=OA,k.SimpleForm=Bg,k.SimpleFormIterator=sZ,k.SimpleList=Lq,k.SizeField=ZK,k.SmallIcon=lI,k.SmartTextInput=jX,k.StopImpersonateButton=BA,k.StyledArrow=h1,k.TabbedForm=Yg,k.TableCreateButton=Zg,k.TableFormIterator=od,k.TableFormIteratorContext=Qg,k.TableFormIteratorItem=eT,k.TableFormIteratorItemContext=Xg,k.TextField=CE,k.TextInput=hr,k.ThemeColor=cm,k.ThemeContext=_g,k.ThemeCustomizationProvider=Xm,k.ThemeProvider=Rg,k.ThemeToggler=XA,k.TimeInput=_X,k.Toolbar=Ho,k.Tooltip=fu,k.TopToolbar=JA,k.Transitions=Bo,k.WizardForm=nT,k.createI18nProvider=PI,k.createJsonI18nProvider=ree,k.getLocalizedValue=kg,k.getPosition=g1,k.getThemeColor=nn,k.getThemeShadow=bs,k.localizedValueHasAllLocales=Ju,k.localizedValueHasAtLeastOneLocale=qS,k.onboardingModesSchema=tI,k.onboardingTopicSchema=eI,k.parseTime=tE,k.useBreadcrumbs=IS,k.useGetChipValue=mm,k.useGetLocalizedValue=XY,k.useI18nLanguages=oee,k.useI18nProvider=jI,k.useIsEnabledSidebarFilter=gI,k.useLayoutContext=Jg,k.useLayoutDispatch=wZ,k.useLayoutDrawerState=Pi,k.useLayoutLogoState=sT,k.useLayoutMediaState=Gn,k.useLayoutNotificationsState=sd,k.useLayoutState=Rs,k.useLayoutThemeState=SZ,k.useListViewContext=ym,k.useLocalStorage=Mg,k.useLocalizedValue=KY,k.useMemoizedObject=rE,k.useMenu=bg,k.useMenuConfig=sl,k.useMenuContext=zu,k.useOnboardingDataProvider=nI,k.useOnboardingTip=iI,k.usePopoverState=_s,k.useRefDimensions=ZY,k.useResourceDefaultValues=LX,k.useResourceTitle=Fg,k.useRestartOnboarding=QJ,k.useSx=Ir,k.useSystemTheme=oE,k.useTableFormIterator=$E,k.useTableFormIteratorItem=JE,k.useThemeConfig=Cn,k.useThemeContext=Dg,k.useWizardFormContext=id,k.uuid=rY,k.walkChildren=qu,k.withLayoutProvider=iT,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
224
+ `+(c!==a?`result of cast: ${c}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let p of Object.values(this.internalTests))p&&d.push(p);this.runTests({path:i,value:u,originalValue:a,options:n,tests:d},r,p=>{if(p.length)return o(p,u);this.runTests({path:i,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:c,path:u,options:d}=t,p=x=>{o||(o=!0,n(x,a))},g=x=>{o||(o=!0,r(x,a))},v=i.length,y=[];if(!v)return g([]);let b={value:a,originalValue:c,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const w=i[x];w(b,p,function(j){j&&(Array.isArray(j)?y.push(...j):y.push(j)),--v<=0&&g(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const p=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${o||""}[${u?c:`"${c}"`}]`:(o?`${o}.`:"")+t});return(g,v,y)=>this.resolve(p)._validate(d,p,v,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,c)=>o._validate(t,n,(u,d)=>{kn.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new kn(u,d,void 0,void 0,i)):a(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw kn.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new kn(c,t,void 0,void 0,a);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(kn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(kn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Fs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ms({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ms({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Kr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Kr.notNull){return this.nullability(!1,t)}required(t=Kr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Kr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Ms(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=RS(t).map(i=>new Ii(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Ku(o,n):Ku.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ms({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Kr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Ms({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Kr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Ms({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,p)=>p.findIndex(g=>g.name===u.name)===d)}}}pr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])pr.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=AY(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])pr.prototype[e]=pr.prototype.oneOf;for(const e of["not","nope"])pr.prototype[e]=pr.prototype.notOneOf;const IY=()=>!0;function VS(e){return new WS(e)}class WS extends pr{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:IY},t))}}VS.prototype=WS.prototype;const OY=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function PY(e){const t=Pg(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Pg(e){var t,n;const r=OY.exec(e);return r?{year:go(r[1]),month:go(r[2],1)-1,day:go(r[3],1),hour:go(r[4]),minute:go(r[5]),second:go(r[6]),millisecond:r[7]?go(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:go(r[10]),minuteOffset:go(r[11])}:null}function go(e,t=0){return Number(e)||t}let jY=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kY=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,MY=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,FY="^\\d{4}-\\d{2}-\\d{2}",_Y="\\d{2}:\\d{2}:\\d{2}",RY="(([+-]\\d{2}(:?\\d{2})?)|Z)",DY=new RegExp(`${FY}T${_Y}(\\.\\d+)?${RY}$`),LY=e=>ho(e)||e===e.trim(),BY={}.toString();function mo(){return new zS}class zS extends pr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===BY?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Kr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Mn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Mn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Mn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||Mn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Mn.email){return this.matches(jY,{name:"email",message:t,excludeEmptyString:!0})}url(t=Mn.url){return this.matches(kY,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Mn.uuid){return this.matches(MY,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(DY,{name:"datetime",message:n||Mn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Mn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=Pg(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Mn.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=Pg(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Mn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:LY})}lowercase(t=Mn.lowercase){return this.transform(n=>ho(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ho(n)||n===n.toLowerCase()})}uppercase(t=Mn.uppercase){return this.transform(n=>ho(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ho(n)||n===n.toUpperCase()})}}mo.prototype=zS.prototype;let NY=e=>e!=+e;function US(){return new HS}class HS extends pr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!NY(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Uo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Uo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Uo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Uo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Uo.positive){return this.moreThan(0,t)}negative(t=Uo.negative){return this.lessThan(0,t)}integer(t=Uo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>ho(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>ho(o)?o:Math[t](o))}}US.prototype=HS.prototype;let VY=new Date(""),WY=e=>Object.prototype.toString.call(e)==="[object Date]";class Qu extends pr{constructor(){super({type:"date",check(t){return WY(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=PY(t),isNaN(t)?Qu.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ii.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Ig.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Ig.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}Qu.INVALID_DATE=VY,Qu.prototype;function zY(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,c])=>`${a}-${c}`));function i(a,c){let u=Ai.split(a)[0];r.add(u),o.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),Ii.isRef(c)&&c.isSibling?i(c.path,a):Og(c)&&"deps"in c&&c.deps.forEach(u=>i(u,a))}return vY.array(Array.from(r),n).reverse()}function GS(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function YS(e){return(t,n)=>GS(e,t)-GS(e,n)}const UY=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Ju(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ju(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ju(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ju)}):"optional"in e?e.optional():e}const HY=(e,t)=>{const n=[...Ai.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Ai.getter(Ai.join(n),!0)(e);return!!(o&&r in o)};let KS=e=>Object.prototype.toString.call(e)==="[object Object]";function XS(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const GY=YS([]);function jg(e){return new ZS(e)}class ZS extends pr{constructor(t){super({type:"object",check(n){return KS(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=GY,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),p=!1;for(const g of c){let v=i[g],y=g in o;if(v){let b,x=o[g];d.path=(n.path?`${n.path}.`:"")+g,v=v.resolve({value:x,context:n.context,parent:u});let w=v instanceof pr?v.spec:void 0,A=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||g in o;continue}b=!n.__validating||!A?v.cast(o[g],d):o[g],b!==void 0&&(u[g]=b)}else y&&!a&&(u[g]=o[g]);(y!==g in u||u[g]!==o[g])&&(p=!0)}return p?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!KS(d)){o(u,d);return}a=a||d;let p=[];for(let g of this._nodes){let v=this.fields[g];!v||Ii.isRef(v)||p.push(v.asNestedTest({options:n,key:g,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:p,value:d,originalValue:a,options:n},r,g=>{o(g.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=zY(t,n),r._sortErrors=YS(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ju(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Ai.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return HY(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(UY)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Yu.exact,test(n){if(n==null)return!0;const r=XS(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Yu.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=XS(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Yu.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Tg.camelCase)}snakeCase(){return this.transformKeys(Tg.snakeCase)}constantCase(){return this.transformKeys(t=>Tg.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let c=t;(o=c)!=null&&o.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[i]})),r.fields[i]=a.describe(c)}return r}}jg.prototype=ZS.prototype;const QS=VS().test("function","Invalid function",e=>te.isFunction(e));class JS{constructor(){Io(this,Ri);Io(this,Qo,[])}get(t){if(mo().required().validateSync(t),Hl(this,Ri,Gl).call(this)){const n=localStorage.getItem(t);return te.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return mo().required().validateSync(t),Hl(this,Ri,Gl).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){mo().required().validateSync(t),QS.validateSync(n),Hl(this,Ri,Gl).call(this)&&(Nn(this,Qo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){mo().required().validateSync(t),QS.optional().default(te.identity).validateSync(n),Hl(this,Ri,Gl).call(this)&&(n!==void 0?si(this,Qo,te.reject(Nn(this,Qo),r=>r.key===t&&r.callback===n)):si(this,Qo,te.reject(Nn(this,Qo),r=>r.key===t)))}}Qo=new WeakMap,Ri=new WeakSet,Gl=function(){return typeof window<"u"};function qu(e={},t=[],n={}){const{isEmpty:r=te.isEmpty}=n;return!te.some(t,o=>r((e??{})[o.locale]))}function qS(e={},t=[],n={}){const{isEmpty:r=te.isEmpty}=n;return te.some(t,o=>!r((e??{})[o.locale]))}function kg(e,t,n){if(!te.isPlainObject(e)||t===void 0)return;const r=te.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const a=te.isArray(r.fallbackLocales)&&!te.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=te.chain(a).map(c=>e[String(c)]).reject(te.isUndefined).first().value(),i===void 0&&(i=te.chain(e).values().first().value())}return i}function $u(e=[],t){const n=te.isArray(e)?e:[e],r=te.filter(n,o=>E.isValidElement(o));te.each(r,o=>{var i;t(o),$u(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}var $S={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",c="minute",u="hour",d="day",p="week",g="month",v="quarter",y="year",b="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var J=["th","st","nd","rd"],V=Z%100;return"["+Z+(J[(V-20)%10]||J[V]||J[0])+"]"}},T=function(Z,J,V){var $=String(Z);return!$||$.length>=J?Z:""+Array(J+1-$.length).join(V)+Z},P={s:T,z:function(Z){var J=-Z.utcOffset(),V=Math.abs(J),$=Math.floor(V/60),W=V%60;return(J<=0?"+":"-")+T($,2,"0")+":"+T(W,2,"0")},m:function Z(J,V){if(J.date()<V.date())return-Z(V,J);var $=12*(V.year()-J.year())+(V.month()-J.month()),W=J.clone().add($,g),ie=V-W<0,U=J.clone().add($+(ie?-1:1),g);return+(-($+(V-W)/(ie?W-U:U-W))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:g,y,w:p,d,D:b,h:u,m:c,s:a,ms:i,Q:v}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},O="en",_={};_[O]=j;var R="$isDayjsObject",N=function(Z){return Z instanceof re||!(!Z||!Z[R])},Y=function Z(J,V,$){var W;if(!J)return O;if(typeof J=="string"){var ie=J.toLowerCase();_[ie]&&(W=ie),V&&(_[ie]=V,W=ie);var U=J.split("-");if(!W&&U.length>1)return Z(U[0])}else{var ee=J.name;_[ee]=J,W=ee}return!$&&W&&(O=W),W||!$&&O},X=function(Z,J){if(N(Z))return Z.clone();var V=typeof J=="object"?J:{};return V.date=Z,V.args=arguments,new re(V)},G=P;G.l=Y,G.i=N,G.w=function(Z,J){return X(Z,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var re=function(){function Z(V){this.$L=Y(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[R]=!0}var J=Z.prototype;return J.parse=function(V){this.$d=function($){var W=$.date,ie=$.utc;if(W===null)return new Date(NaN);if(G.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var U=W.match(w);if(U){var ee=U[2]-1||0,de=(U[7]||"0").substring(0,3);return ie?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,de)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,de)}}return new Date(W)}(V),this.init()},J.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},J.$utils=function(){return G},J.isValid=function(){return this.$d.toString()!==x},J.isSame=function(V,$){var W=X(V);return this.startOf($)<=W&&W<=this.endOf($)},J.isAfter=function(V,$){return X(V)<this.startOf($)},J.isBefore=function(V,$){return this.endOf($)<X(V)},J.$g=function(V,$,W){return G.u(V)?this[$]:this.set(W,V)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(V,$){var W=this,ie=!!G.u($)||$,U=G.p(V),ee=function(ye,we){var Ie=G.w(W.$u?Date.UTC(W.$y,we,ye):new Date(W.$y,we,ye),W);return ie?Ie:Ie.endOf(d)},de=function(ye,we){return G.w(W.toDate()[ye].apply(W.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(we)),W)},ge=this.$W,fe=this.$M,he=this.$D,me="set"+(this.$u?"UTC":"");switch(U){case y:return ie?ee(1,0):ee(31,11);case g:return ie?ee(1,fe):ee(0,fe+1);case p:var Se=this.$locale().weekStart||0,be=(ge<Se?ge+7:ge)-Se;return ee(ie?he-be:he+(6-be),fe);case d:case b:return de(me+"Hours",0);case u:return de(me+"Minutes",1);case c:return de(me+"Seconds",2);case a:return de(me+"Milliseconds",3);default:return this.clone()}},J.endOf=function(V){return this.startOf(V,!1)},J.$set=function(V,$){var W,ie=G.p(V),U="set"+(this.$u?"UTC":""),ee=(W={},W[d]=U+"Date",W[b]=U+"Date",W[g]=U+"Month",W[y]=U+"FullYear",W[u]=U+"Hours",W[c]=U+"Minutes",W[a]=U+"Seconds",W[i]=U+"Milliseconds",W)[ie],de=ie===d?this.$D+($-this.$W):$;if(ie===g||ie===y){var ge=this.clone().set(b,1);ge.$d[ee](de),ge.init(),this.$d=ge.set(b,Math.min(this.$D,ge.daysInMonth())).$d}else ee&&this.$d[ee](de);return this.init(),this},J.set=function(V,$){return this.clone().$set(V,$)},J.get=function(V){return this[G.p(V)]()},J.add=function(V,$){var W,ie=this;V=Number(V);var U=G.p($),ee=function(fe){var he=X(ie);return G.w(he.date(he.date()+Math.round(fe*V)),ie)};if(U===g)return this.set(g,this.$M+V);if(U===y)return this.set(y,this.$y+V);if(U===d)return ee(1);if(U===p)return ee(7);var de=(W={},W[c]=r,W[u]=o,W[a]=n,W)[U]||1,ge=this.$d.getTime()+V*de;return G.w(ge,this)},J.subtract=function(V,$){return this.add(-1*V,$)},J.format=function(V){var $=this,W=this.$locale();if(!this.isValid())return W.invalidDate||x;var ie=V||"YYYY-MM-DDTHH:mm:ssZ",U=G.z(this),ee=this.$H,de=this.$m,ge=this.$M,fe=W.weekdays,he=W.months,me=W.meridiem,Se=function(we,Ie,pe,Ke){return we&&(we[Ie]||we($,ie))||pe[Ie].slice(0,Ke)},be=function(we){return G.s(ee%12||12,we,"0")},ye=me||function(we,Ie,pe){var Ke=we<12?"AM":"PM";return pe?Ke.toLowerCase():Ke};return ie.replace(A,function(we,Ie){return Ie||function(pe){switch(pe){case"YY":return String($.$y).slice(-2);case"YYYY":return G.s($.$y,4,"0");case"M":return ge+1;case"MM":return G.s(ge+1,2,"0");case"MMM":return Se(W.monthsShort,ge,he,3);case"MMMM":return Se(he,ge);case"D":return $.$D;case"DD":return G.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Se(W.weekdaysMin,$.$W,fe,2);case"ddd":return Se(W.weekdaysShort,$.$W,fe,3);case"dddd":return fe[$.$W];case"H":return String(ee);case"HH":return G.s(ee,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return ye(ee,de,!0);case"A":return ye(ee,de,!1);case"m":return String(de);case"mm":return G.s(de,2,"0");case"s":return String($.$s);case"ss":return G.s($.$s,2,"0");case"SSS":return G.s($.$ms,3,"0");case"Z":return U}return null}(we)||U.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(V,$,W){var ie,U=this,ee=G.p($),de=X(V),ge=(de.utcOffset()-this.utcOffset())*r,fe=this-de,he=function(){return G.m(U,de)};switch(ee){case y:ie=he()/12;break;case g:ie=he();break;case v:ie=he()/3;break;case p:ie=(fe-ge)/6048e5;break;case d:ie=(fe-ge)/864e5;break;case u:ie=fe/o;break;case c:ie=fe/r;break;case a:ie=fe/n;break;default:ie=fe}return W?ie:G.a(ie)},J.daysInMonth=function(){return this.endOf(g).$D},J.$locale=function(){return _[this.$L]},J.locale=function(V,$){if(!V)return this.$L;var W=this.clone(),ie=Y(V,$,!0);return ie&&(W.$L=ie),W},J.clone=function(){return G.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},Z}(),ne=re.prototype;return X.prototype=ne,[["$ms",i],["$s",a],["$m",c],["$H",u],["$W",d],["$M",g],["$y",y],["$D",b]].forEach(function(Z){ne[Z[1]]=function(J){return this.$g(J,Z[0],Z[1])}}),X.extend=function(Z,J){return Z.$i||(Z(J,re,X),Z.$i=!0),X},X.locale=Y,X.isDayjs=N,X.unix=function(Z){return X(1e3*Z)},X.en=_[O],X.Ls=_,X.p={},X})})($S);var eE=$S.exports;const Or=Dr(eE);function tE(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Or().hour(n).minute(r)}const al=new JS;function YY(e,t,n){return function(r){const o=te.isFunction(r)?r(t):r;return al.set(e,o),n(o),o}}function Mg(e,t){var u;mo().required().validateSync(e);const[n,r]=E.useState(al.get(e)??t),o=E.useRef(t),i=te.isEqual(o.current,t)?o.current:t,a=E.useRef(),c=a.current;return E.useEffect(()=>{r(al.get(e)??i)},[e,i,r]),E.useEffect(()=>{function d(p){r(p)}return al.watch(e,d),()=>{al.unwatch(e,d)}},[e,r]),(e!==(c==null?void 0:c.key)||!te.isEqual(n,c==null?void 0:c.value))&&(a.current={key:e,value:n,setter:YY(e,n,r)}),[n,((u=a.current)==null?void 0:u.setter)??te.noop]}function nE(e){const[t]=q.useLocaleState();return e!==void 0?String(e):t}function KY(e,t){const n=nE(t==null?void 0:t.locale);return kg(e,n,t)}function XY(e){const t=nE(e==null?void 0:e.locale);return E.useCallback(r=>kg(r,t,e),[t,e])}function rE(e){if(!te.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=E.useState(e);return E.useEffect(()=>{te.isEqual(e,t)||n(e)},[e,t]),t}function _s(){const[e,t]=E.useState(null),n=!!e,r=E.useCallback(a=>t((a==null?void 0:a.currentTarget)??null),[t]),o=E.useCallback(()=>t(null),[t]),i=E.useCallback(a=>{n?o():r(a)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function ZY(e,t){const[n,r]=E.useState({width:1,height:1}),o=e.current;return E.useEffect(()=>{function i(){var d;let c=0,u=0;switch(t){case"client":c=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":c=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":c=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((d=e.current)==null?void 0:d.getBoundingClientRect())??{width:0,height:0};c=p.width,u=p.height;break}}r({width:c,height:u})}const a=new ResizeObserver(i);return te.isEmpty(e==null?void 0:e.current)||(a.observe(e==null?void 0:e.current),i()),()=>{a.disconnect()}},[o,t,e]),n}function Fg(e){const t=L.useRecordContext(),n=L.useTranslate(),r=L.useResourceContext(),o=t!=null&&t.id?"edit":"create";return E.useMemo(()=>{if(e===!1)return;const a=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(a,{_:a}),...t})},[o,t,r,n,e])}function oE(){const{mode:e}=Cn(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=E.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=E.useRef(n);return E.useEffect(()=>{function i(){const c=t.matches?"dark":"light";c!==o.current&&(r(c),o.current=c)}i();const a=t;return a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[t]),n}function Xr(){throw new Error("Method must be implemented")}const iE={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:Xr,setMenuOrientation:Xr,setMiniDrawer:Xr,setContainer:Xr,setMode:Xr,setPresetColor:Xr,setThemeDirection:Xr,setAppDefaultPath:Xr,setDrawerWidth:Xr,setHorizontalMaxItems:Xr,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function QY(e){return e==="vertical"}function JY(e){return e==="horizontal"}const _g=E.createContext(iE);function Rg({initialConfig:e,children:t}){const[n,r]=Mg("theme-config",{...iE,...e});function o(b){r(x=>({...x,fontFamily:b}))}function i(b){r(x=>({...x,menuOrientation:b}))}function a(b){r(x=>({...x,miniDrawer:b}))}function c(b){r(x=>({...x,container:b}))}function u(b){r(x=>({...x,mode:b}))}function d(b){r(x=>({...x,presetColor:b}))}function p(b){r(x=>({...x,themeDirection:b}))}function g(b){r(x=>({...x,appDefaultPath:b}))}function v(b){r(x=>({...x,drawerWidth:b}))}function y(b){r(x=>({...x,horizontalMaxItems:b}))}return f.jsx(_g.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:a,setContainer:c,setMode:u,setPresetColor:d,setThemeDirection:p,setAppDefaultPath:g,setDrawerWidth:v,setHorizontalMaxItems:y,isVerticalLayout:QY,isHorizontalLayout:JY},children:t})}function Dg(){return E.useContext(_g)}function Cn(){return Dg()}const qY=Na(L.Toolbar,{slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end",position:"initial !important","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}}));function Ho(e){return f.jsx(qY,{...e})}function sE({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=Cn();return f.jsx(eK,{defaultValues:n,spacing:t||o,children:f.jsx(S.Grid,{container:!0,...r,spacing:t||o,children:e})})}function $Y({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:a=12,md:c=12,sm:u=12,xs:d=12,...p}){const g=L.useTranslate(),v=L.useResourceContext(),{cardTitle:y,cardSubheader:b}=E.useMemo(()=>{const x=n||`resources.${v}.title`;return{cardTitle:g(x,{_:x}),cardSubheader:r!==null?g(r,{_:r}):null}},[v,r,n,g]);return f.jsx(S.Grid,{item:!0,...p,lg:a,md:c,sm:u,xs:d,children:f.jsx(On,{content:t,title:y,subheader:b,secondary:o,divider:!0,children:f.jsxs(f.Fragment,{children:[e,i===!0?f.jsx(Ho,{children:f.jsx(L.SaveButton,{})}):i]})})})}const eK=ue(L.Form,{slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*1.25),padding:0,minHeight:"unset"},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingRight:"0 !important",paddingLeft:"0 !important",paddingBottom:"0 !important"}}));sE.Section=$Y;function aE(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=rK,label:a="ra.action.delete",mutationMode:c="pessimistic",mutationOptions:u={},onClick:d,onSuccess:p,onError:g,...v}=e,{meta:y,...b}=u,{selectedIds:x,onUnselectItems:w}=q.useListContext(e),[A,j]=q.useSafeSetState(!1),T=q.useNotify(),P=q.useResourceContext(e),O=q.useRefresh(),_=q.useTranslate(),R=pt(),[N,{isLoading:Y}]=q.useDeleteMany(P,{ids:x,meta:y},{onSuccess:()=>{O(),T("ra.notification.deleted",{type:"info",messageArgs:{smart_count:x.length},undoable:c==="undoable"}),w(),j(!1),p&&te.isFunction(p)&&p()},onError:ne=>{T(typeof ne=="string"?ne:ne.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ne=="string"?ne:ne&&ne.message?ne.message:void 0}}),j(!1),g&&te.isFunction(g)&&g()},mutationMode:c,...b});function X(ne){j(!0),ne.stopPropagation()}function G(){j(!1)}function re(ne){N(),typeof d=="function"&&d(ne)}return f.jsxs(f.Fragment,{children:[f.jsx(nK,{onClick:X,label:a,...tK(v),children:i}),f.jsx(L.Confirm,{isOpen:A,loading:Y,sx:o||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:R.palette.primary.main,color:R.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:R.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${R.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:t?typeof t=="string"?_(t):t:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(Ue.DeleteFilled,{})})}),content:n||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:_("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:x.length,name:_(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Vo.humanize(_(`resources.${P}.name`,{smart_count:x.length,_:Vo.inflect(P,x.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:x.length,name:_(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Vo.humanize(_(`resources.${P}.name`,{smart_count:x.length,_:Vo.inflect(P,x.length)}),!0)})},onConfirm:re,onClose:G})]})}function tK({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const nK=ue(L.Button,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:et(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),rK=f.jsx(zh,{});aE.propTypes={confirmTitle:m.node,confirmContent:m.node,confirmColor:m.string,dialogSx:m.object,icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),resource:m.string,selectedIds:m.arrayOf(m.any),onSuccess:m.func,onError:m.func};const oK="RaButton";function iK(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}const sK=ue(S.Button,{name:oK,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function Oi(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:a,disabled:c,alignIcon:u,to:d,...p}=e,g=L.useTranslate(),v=iK(d);if(t){const y=n?g(n,{_:n}):void 0;return f.jsx(sK,{className:o,color:i,size:a,"aria-label":y,disabled:c,startIcon:u==="left"&&r?r:void 0,endIcon:u==="right"&&r?r:void 0,...v,...p,children:y})}return f.jsx(L.Button,{...e})}function lE(e){const{className:t,icon:n=aK,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:a,to:c,state:u={},disableFloatingButton:d=!1,...p}=e,g=q.useResourceContext(e),v=q.useCreatePath(),y=q.useTranslate(),b=S.useMediaQuery(A=>A.breakpoints.down("md")),x=Iw({},lK.get(String(i)),u),w=fK(c);return!d&&b?f.jsx(cK,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,color:"primary",className:Be(td.floating,t),"aria-label":r?y(r):"ra.action.create",...p,...w,children:n}):f.jsx(uK,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,className:Be(td.root,t),label:r,variant:a,...p,...w,children:n})}const aK=f.jsx(bh,{}),lK=new Map([["true",{_scrollToTop:!0}],["false",{}]]);lE.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};const ed="RaCreateButton",td={root:`${ed}-root`,floating:`${ed}-floating`},cK=ue(S.Fab,{name:ed,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${td.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),uK=ue(Oi,{name:ed,overridesResolver:(e,t)=>t.root})({});function dK(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&$a(e.to,t.to)&&$a(e.state,t.state)}const cE=D.memo(lE,dK);function fK(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}function Lg(e,t){const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]}function pK(e,t){return e&&e.data?{data:Lg(e.data,t),total:e.total+1}:e}function hK(e,t){return e&&e.length>0?Lg(e,t):e}function gK(e,t){return e&&e.data?{...e,data:Lg(e.data,t),total:e.total+1}:e}function mK(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=f.jsx(Ue.PlusCircleOutlined,{}),...o}=e,i=E.useCallback(a=>{var c;a.preventDefault(),(c=e==null?void 0:e.onClick)==null||c.call(e)},[e]);return t?f.jsx(Oi,{...o,onClick:i,label:n,children:r}):f.jsx(lz,{...e,onClick:i,label:n,children:r})}function vK(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=tn.useFormContext(),o=q.useTranslate(),i=E.useCallback(a=>{a.preventDefault(),a.stopPropagation(),r(c=>t(c,n))()},[r,t,n]);return f.jsx(S.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function yK(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:a,scroll:c="body",...u}=e,d=li.useQueryClient(),p=q.useResourceContext(),g=q.useTranslate(),v=E.Children.only(t),[y,b]=E.useState(!1),x=q.useNotify(),w=E.useCallback(()=>b(!0),[]),A=E.useCallback(()=>b(!1),[]),j=E.useCallback((T,P,O)=>{var N,Y;const R=Date.now();d.setQueryData([p,"getOne",{id:T.id}],T),d.setQueriesData([p,"getList"],X=>gK(X,T),{updatedAt:R}),d.setQueriesData([p,"getMany"],X=>hK(X,T),{updatedAt:R}),d.setQueriesData([p,"getManyReference"],X=>pK(X,T),{updatedAt:R}),A(),x("ra.notification.created",{messageArgs:{smart_count:1}}),(Y=(N=e==null?void 0:e.mutationOptions)==null?void 0:N.onSuccess)==null||Y.call(N,T,P,O)},[A,x,e.mutationOptions,d,p]);return f.jsxs(f.Fragment,{children:[f.jsx(mK,{...u,onClick:w}),f.jsx(S.Dialog,{open:y,scroll:c,onClose:A,maxWidth:n,fullWidth:r,fullScreen:o,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(q.CreateBase,{...e,mutationOptions:{...a,onSuccess:j},children:E.isValidElement(v)?E.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(Ho,{children:[f.jsx(S.Button,{variant:"text",size:"medium",onClick:A,children:g("ra.action.cancel")}),i?f.jsx(vK,{onSubmit:i,closeDialog:A}):f.jsx(pg,{type:"button"})]})}):null})})})]})}function ll(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:a,icon:c=f.jsx(zh,{}),label:u="ra.action.delete",mutationMode:d="pessimistic",mutationOptions:p,onClick:g,redirect:v="list",translateOptions:y={},...b}=e,x=q.useTranslate(),w=q.useRecordContext(e),A=q.useResourceContext(e),j=S.useTheme(),{open:T,isLoading:P,handleDialogOpen:O,handleDialogClose:_,handleDelete:R}=q.useDeleteWithConfirmController({record:w,redirect:v,mutationMode:d,onClick:g,mutationOptions:p,resource:A});return f.jsxs(f.Fragment,{children:[f.jsx(Oi,{onClick:O,label:u,className:Be("ra-delete-button",t),color:i,...b,children:c},"button"),f.jsx(Uw,{isOpen:T,loading:P,sx:a||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:j.palette.primary.main,color:j.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:j.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${j.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?x(n):n:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(Ue.DeleteFilled,{})})}),content:r||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:x("ra.message.delete_content",{_:"ra.message.delete_content",name:x(`resources.${A}.forcedCaseName`,{smart_count:1,_:Vo.humanize(x(`resources.${A}.name`,{smart_count:1,_:Vo.singularize(A)}),!0)}),id:w==null?void 0:w.id})}),confirmColor:o,translateOptions:{name:x(`resources.${A}.forcedCaseName`,{smart_count:1,_:Vo.humanize(x(`resources.${A}.name`,{smart_count:1,_:Vo.singularize(A)}),!0)}),id:w==null?void 0:w.id,...y},onConfirm:R,onClose:_})]})}ll.propTypes={basePath:m.string,className:m.string,confirmColor:m.string,confirmContent:m.oneOfType([m.string,m.element]),confirmTitle:m.oneOfType([m.string,m.element]),icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),onClick:m.func,record:m.any,redirect:m.oneOfType([m.string,m.bool,m.func]),resource:m.string,translateOptions:m.object};function bK(e){const t=E.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return f.jsx(Qw,{...e,onClick:t})}function xK(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=tn.useFormContext(),o=E.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(a=>t(a,n))()},[r,t,n]);return f.jsx(Oi,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function CK(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:a,scroll:c="body",...u}=e,d=q.useNotify(),[p,g]=E.useState(!1),v=E.Children.only(t),y=E.useCallback(()=>g(!0),[]),b=E.useCallback(()=>g(!1),[]),x=E.useCallback((A,j,T)=>{var P,O;b(),d("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(O=(P=e==null?void 0:e.mutationOptions)==null?void 0:P.onSuccess)==null||O.call(P,A,j,T)},[b,d,e.mutationOptions,e.mutationMode]),w=q.useRecordContext();return f.jsxs(f.Fragment,{children:[f.jsx(bK,{...u,onClick:y}),f.jsx(S.Dialog,{open:p,scroll:c,onClose:b,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(q.EditBase,{...e,id:w.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:x},children:E.isValidElement(v)?E.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(Ho,{children:[f.jsx(Oi,{disableIconOnly:!0,variant:"text",size:"medium",onClick:b,label:"ra.action.cancel"}),a?f.jsx(xK,{onSubmit:a,closeDialog:b}):f.jsx(pg,{type:"button"})]})}):null})})})]})}function wK({label:e="ra.auth.sign_in",...t}){const n=L.useRecordContext(),[r,o]=E.useState(!1),i=L.useAuthProvider(),a=E.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),i.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[i,n==null?void 0:n.id]);return f.jsx(L.Button,{disabled:r||i.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(en.VpnKey,{})})}const SK=Na(L.SimpleForm,{slot:"Root"})(({theme:e})=>({[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}}));function Bg({title:e,modal:t=!1,content:n=!1,subheader:r=null,toolbar:o=f.jsx(Ho,{children:f.jsx(L.SaveButton,{type:"button"})}),secondary:i=f.jsx(No,{children:f.jsx(ll,{})}),sx:a,...c}){const u=Fg(e),d=L.useRecordContext(),p=Op();return f.jsx(On,{content:n,title:u,subheader:r,secondary:d!=null&&d.id?i:null,sx:{...a,"& .MuiToolbar-root":{paddingLeft:p.spacing(2.5),paddingRight:p.spacing(2.5),paddingBottom:p.spacing(2.5),paddingTop:t?p.spacing(2.5):0,borderTop:t?`1px solid ${p.palette.divider}`:void 0}},border:!t,divider:!0,children:f.jsx(SK,{toolbar:o,...c})})}const uE={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},dE=E.createContext(uE);function EK(e){const[t,n]=E.useState(uE);function r(a,c){n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()}function o(a,c){n(u=>({...u,openDialogs:u.openDialogs.filter(d=>d!==a)})),c&&c()}function i(){return t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null}return f.jsx(dE.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:i},children:e.children})}function fE(){const e=E.useContext(dE);if(e===void 0)throw new Error("useAppState must be used within an AppStateProvider");return e}function Ng(){return fE()}function pE({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,fullWidth:c,...u}){const d=Wt.useTheme(),{getCurrentDialog:p}=Ng(),{source:g,resource:v,isRequired:y}=u,{getFieldState:b,formState:x}=tn.useFormContext(),{error:w}=b(g,x),A=p();return f.jsxs(S.Stack,{spacing:1,sx:{"& .MuiFormHelperText-root":{color:w?d.palette.error.main:d.palette.text.secondary,"& span":{display:"none"}},width:c?"100%":"auto",...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:!!w,sx:{borderBottom:a?`1px solid ${d.palette.divider}`:"none",pb:a?1:0,mt:a?1:0,pt:1},children:f.jsx(L.FieldTitle,{label:e,source:g,resource:A||v,isRequired:y})}),E.isValidElement(t)?E.cloneElement(t,{...t.props,...u,label:n==="legend"?e:!1}):t,n==="label"&&r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:!!w,children:r}):null]})}const TK=ue(L.ArrayInput,{slot:"root"})(({theme:e})=>({"& .MuiStack-root > label":{marginTop:e.spacing(2)},"& .MuiInputLabel-shrink":{paddingBottom:0},marginTop:"0 !important","& .RaSimpleFormIterator-line > .RaSimpleFormIterator-form":{paddingBottom:e.spacing(.5),"& > div":{width:"100%"}}}));function AK({label:e,addLabel:t,source:n,helperText:r,divider:o=!0,...i}){return f.jsx(pE,{label:e,addLabel:t,source:n,helperText:r,divider:o,fullWidth:i==null?void 0:i.fullWidth,children:f.jsx(TK,{source:n,label:!1,...i})})}function IK({canEdit:e=!0,canDelete:t=!0,canClone:n=!1}){return!e&&!t&&!n?null:f.jsxs(No,{children:[e?f.jsx(L.EditButton,{}):null,t?f.jsx(ll,{}):null,n?f.jsx(L.CloneButton,{}):null]})}const hE=ue("div",{overridesResolver:(e,t)=>t.root})({display:"inline-block"}),OK=ue("ul")({display:"inline-block"});function PK(e){var p;const{className:t,emptyText:n,source:r,title:o,...i}=e,a=q.useRecordContext(e),c=Ze.get(a,r),u=q.useTranslate();if(!c)return n?f.jsx(S.Typography,{component:"span",variant:"body2",className:t,...i,children:n?u(n,{_:n}):null}):f.jsx(hE,{className:t,...i});if(Array.isArray(c))return f.jsx(OK,{className:t,...i,children:c.map((g,v)=>{var b;const y=o instanceof String?(b=Ze.get(g,o))==null?void 0:b.toString():o;return f.jsx("li",{children:y},v)})});const d=o instanceof String?(p=Ze.get(a,o))==null?void 0:p.toString():o;return f.jsx(hE,{className:t,...i,children:d})}function gE({entityId:e,property:t,disabled:n,showUser:r=!1,userResource:o="entities/user",resource:i,...a}){const[c,u]=E.useState(null),d=L.useRecordContext(a),p=L.useDataProvider(),g=L.useResourceContext(),v=L.useNotify(),y=E.useCallback(async w=>{w.preventDefault(),w.stopPropagation(),v("ra.notification.download",{type:"info"});const A=Ze.get(d,a==null?void 0:a.source),j=(i||g).replace("entities/",""),T=e||(d==null?void 0:d.id),P=await p.getFile(`/attachments/${j}/${T}/${t||(a==null?void 0:a.source)}/${(A==null?void 0:A.id)||(d==null?void 0:d.id)}`),O=document.createElement("a");O.href=P,O.download=Ze.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source)),O.click()},[p,d,e,g,i,t,a==null?void 0:a.source,a==null?void 0:a.title,v]),b=E.useMemo(()=>({...d,[a==null?void 0:a.source]:(d==null?void 0:d.src)||Ze.get(d,a==null?void 0:a.source),[a==null?void 0:a.title]:(d==null?void 0:d.title)||Ze.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),[d,a==null?void 0:a.source,a==null?void 0:a.title]),x=L.useTranslate();return E.useEffect(()=>{!d||!(d!=null&&d.userId)||r===!1||p.getOne(o,{id:d==null?void 0:d.userId}).then(({data:w})=>u(w)).catch(()=>u(null))},[d,p,o,r]),f.jsx(PK,{...a,disabled:n,record:b,onClick:y,title:f.jsxs(S.Box,{sx:{cursor:"pointer"},children:[f.jsx(S.Typography,{variant:"subtitle1",children:Ze.get(b,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),f.jsxs(S.Typography,{variant:"caption",color:"secondary",children:[Ze.get(b,"sizeDescription"),r&&c?" | ":null,r&&c?x("ra.attachment.info",{user:c==null?void 0:c.name,created:Or(b==null?void 0:b.createdAt).format("DD/MM/YYYY HH:mm")}):null]})]})})}const jK=ue(L.ImageField,{slot:"root"})(()=>({}));function mE(e){const t=`_${e==null?void 0:e.source}`;return f.jsx(jK,{...e,source:t})}function vE({width:e=150,height:t=150,circle:n=!1,justify:r="flex-start",record:o,sx:i,...a}){const c=E.useMemo(()=>({width:typeof e=="number"?`${e}px !important`:`${e} !important`,height:typeof t=="number"?`${t}px !important`:`${t} !important`,borderRadius:n?"50%":1.5,...i}),[e,t,n,i]),u=L.useRecordContext(),d=o||u;return f.jsx(mE,{sx:p=>({margin:0,display:"flex",justifyContent:r,"& img":{margin:"0px !important",border:`1px solid ${p.palette.divider}`,objectFit:"cover !important",...c,minWidth:c.width,minHeight:c.height}}),...a,record:d})}var kK={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],o=n%100;return"["+n+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(kK);var MK={exports:{}};(function(e,t){(function(n,r){e.exports=r(eE)})(xn,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(n),i={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return o.default.locale(i,null,!0),i})})(MK);var yE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xn,function(){return function(n,r,o){n=n||{};var i=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(d,p,g,v){return i.fromToBase(d,p,g,v)}o.en.relativeTime=a,i.fromToBase=function(d,p,g,v,y){for(var b,x,w,A=g.$locale().relativeTime||a,j=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=j.length,P=0;P<T;P+=1){var O=j[P];O.d&&(b=v?o(d).diff(g,O.d,!0):g.diff(d,O.d,!0));var _=(n.rounding||Math.round)(Math.abs(b));if(w=b>0,_<=O.r||!O.r){_<=1&&P>0&&(O=j[P-1]);var R=A[O.l];y&&(_=y(""+_)),x=typeof R=="string"?R.replace("%d",_):R(_,p,O.l,w);break}}if(p)return x;var N=w?A.future:A.past;return typeof N=="function"?N(x):N.replace("%s",x)},i.to=function(d,p){return c(d,p,this,!0)},i.from=function(d,p){return c(d,p,this)};var u=function(d){return d.$u?o.utc():o()};i.toNow=function(d){return this.to(u(this),d)},i.fromNow=function(d){return this.from(u(this),d)}}})})(yE);var FK=yE.exports;const _K=Dr(FK);Or.extend(_K);function bE(e){const t=L.useRecordContext(e),[n]=L.useLocaleState(),r=E.useMemo(()=>Or(Ze.get(t,e==null?void 0:e.source)).locale(n).fromNow(),[t,e==null?void 0:e.source,n]);return f.jsxs(f.Fragment,{children:[f.jsx(L.DateField,{record:t,source:e.source,showTime:!0}),f.jsx("br",{}),f.jsx(S.Typography,{variant:"caption",color:"textSecondary",children:r})]})}const RK=ue(L.DateField,{slot:"Root"})(()=>({}));function DK({variant:e="body1",...t}){return f.jsx(RK,{...t,variant:e})}const LK=ue(L.EmailField,{slot:"Root"})(()=>({}));function BK({variant:e="body1",...t}){return f.jsx(LK,{...t,variant:e})}const NK=ue(L.FileField,{slot:"root"})(()=>({}));function xE({...e}){const t=L.useRecordContext(e),n=E.useCallback(r=>{r.preventDefault(),r.stopPropagation();const o=Ze.get(t,`_${e==null?void 0:e.source}`,Ze.get(t,e==null?void 0:e.source)),i=Ze.get(t,(e==null?void 0:e.title)||(e==null?void 0:e.source))||(e==null?void 0:e.title),a=document.createElement("a");a.href=o,a.download=i,a.click()},[e==null?void 0:e.source,t,e==null?void 0:e.title]);return f.jsx(NK,{...e,record:t,onClick:n})}function VK({variant:e="body1",...t}){return f.jsx(L.FunctionField,{...t,variant:e})}const WK=ue(L.TextField,{slot:"Root"})(()=>({}));function CE({variant:e="body1",...t}){return f.jsx(WK,{...t,variant:e})}function zK(e){const t=S.useTheme(),n=q.useLocales(),{source:r=""}=e,i=q.useRecordContext(e)[r],a=!qu(i,n),c=Ir(e,{flex:1}),[u]=q.useLocaleState(),d=E.useMemo(()=>a?f.jsx(Ue.FlagFilled,{style:{color:t.palette.warning.main}}):f.jsx(Ue.FlagOutlined,{}),[a,t.palette.warning.main]),p=E.useMemo(()=>f.jsx(S.Stack,{children:te.map(n,(g,v)=>f.jsx(S.Typography,{children:`${g.locale.toUpperCase()}: ${(i??{})[g.locale]??""}`},v))}),[i,n]);return f.jsx(pu,{title:p,arrow:!1,children:f.jsxs(S.Stack,{alignItems:"center",direction:"row",gap:1,children:[d,f.jsx(CE,{...e,source:`${r}.${u}`,sx:c})]})})}const UK=ue("div")(({theme:e,fullWidth:t})=>({borderBottom:`1px solid ${e.palette.divider}`,paddingTop:e.spacing(1),paddingBottom:e.spacing(1),marginBottom:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:t?"100%":"auto",[e.breakpoints.down("sm")]:{whiteSpace:"normal",overflow:"visible",textOverflow:"inherit"}}));function HK({source:e,defaultValue:t="&nbsp;",...n}){const r=L.useRecordContext(n),o=Ze.get(r,e,t);return f.jsx(S.Typography,{...n,dangerouslySetInnerHTML:{__html:o&&o!==null?o:t}})}function GK({title:e,children:t}){return t==null?null:typeof e=="string"||e===!0?f.jsx(S.Tooltip,{title:e,placement:"top",children:t}):t}function YK({label:e,source:t,defaultValue:n="&nbsp;",children:r=f.jsx(HK,{source:"",defaultValue:void 0,record:void 0}),tooltip:o,...i}){const a=E.Children.only(r),{getCurrentDialog:c}=fE(),u=L.useRecordContext(i),d=L.useResourceContext(i),p=c(),g=E.useMemo(()=>o===!1?!1:typeof o=="function"?o(u):typeof o=="string"?Ze.get(u,o,o):o,[u,o]),v=Ir(i,{width:i!=null&&i.fullWidth?"100%":"auto"});return f.jsx(GK,{title:g,children:f.jsxs(f.Fragment,{children:[f.jsx(S.InputLabel,{sx:{pt:1},children:f.jsx(L.FieldTitle,{label:e,source:t,resource:p||d})}),f.jsx(UK,{...i,children:E.isValidElement(a)?E.cloneElement(a,{...a.props,source:t,record:u,defaultValue:n,resource:p||d,sx:v}):null})]})})}function KK({children:e=null,className:t=""}){return f.jsx("div",{className:t,children:e})}const XK=Na(KK,{slot:"root"})(({theme:e,bulkActionButtons:t})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,"&>div:first-of-type":{alignItems:"center","& form":{padding:e.spacing(2.5)},"& .MuiToolbar-root":{alignItems:"center",padding:"0 !important",marginTop:e.spacing(1),[e.breakpoints.up("sm")]:{marginLeft:e.spacing(2),marginRight:e.spacing(2),width:`calc(100% - ${e.spacing(4)})`},[e.breakpoints.down("md")]:{marginTop:0,display:"contents"}}},"& .RaDatagrid-root":{overflowX:"auto",paddingTop:t===!1?0:48,[e.breakpoints.down("sm")]:{width:"calc(100vw - 26px)"},"& .RaBulkActionsToolbar-toolbar":{borderRadius:0,"& > .RaBulkActionsToolbar-title":{alignItems:"center"},[e.breakpoints.down("sm")]:{paddingLeft:e.spacing(3)}},"& .RaDatagrid-table":{borderBottom:`1px solid ${e.palette.divider}`}},"& .MuiTablePagination-toolbar":{marginTop:"0 !important",marginBottom:"0 !important"},"& .RaBulkActionsToolbar-collapsed.RaBulkActionsToolbar-toolbar":{minHeight:0}}));function wE(e){return f.jsx(XK,{...e,children:f.jsx(L.ReferenceManyField,{pagination:f.jsx(L.Pagination,{}),...e})})}function ZK({source:e,...t}){const n=L.useRecordContext(t),r=Ze.get(n,e,0),o=r/1024,i=o/1024,a=i/1024,c=a>1?`${a.toFixed(2)} GB`:i>1?`${i.toFixed(2)} MB`:o>1?`${o.toFixed(2)} KB`:`${r.toFixed(2)} B`;return f.jsx(S.Typography,{component:"span",variant:"body1",...t,children:c})}function dn({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,...c}){const u=pt(),{getCurrentDialog:d}=Ng(),{source:p,resource:g,isRequired:v,chip:y}=c,{fieldState:{invalid:b}}=L.useInput(c),x=d();return f.jsxs(S.Stack,{spacing:1,sx:{width:c!=null&&c.fullWidth?"100%":"auto","& .MuiFormHelperText-root":{pb:0,color:b?u.palette.error.main:u.palette.text.secondary,"& span":{display:"none"}},...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:b===!0,sx:{borderBottom:a?`1px solid ${u.palette.divider}`:"none",pt:.5,pb:a?1:0,mt:a?1:0},children:f.jsx(L.FieldTitle,{label:e,source:p,resource:x||g,isRequired:v})}),E.isValidElement(t)?E.cloneElement(t,{...t.props,...c,chip:y&&typeof y=="function"?E.createElement(y):y,label:n==="legend"?e:!1}):t,r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:b===!0,children:r}):null]})}function QK(e){return e?{"& .RaFileInput-removeButton > .RaFileInputPreview-removeButton":{display:"none",visiblity:"hidden"},"& .RaFileInput-dropZone":{display:"none",visiblity:"hidden"}}:{}}const JK=ue(L.FileInput,{slot:"root"})(({disabled:e,theme:t})=>({"& .previews":{},"& .previews>div":{marginTop:t.spacing(1),padding:t.spacing(1.5),border:`1px solid ${t.palette.divider}`,borderRadius:t.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:t.palette.action.hover},"& .MuiLink-root":{fontSize:t.typography.body1.fontSize}},...QK(e)}));function qK({children:e=f.jsx(gE,{title:"name",source:"path"}),multiple:t=!1,disabled:n=!1,type:r="attachment",...o}){const i=L.useRecordContext(o),a=o==null?void 0:o.source,c=i==null?void 0:i.id;return L.useInput({source:`__${r}__${o==null?void 0:o.source}`,defaultValue:o==null?void 0:o.source}),f.jsx(dn,{...o,disabled:n,children:f.jsx(JK,{type:r,multiple:t,disabled:n,children:E.cloneElement(e,{entityId:c,property:a,...e.props})})})}const $K=ue(L.AutocompleteArrayInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall:has(.MuiChip-root)":{paddingBottom:"4px"},"& .MuiAutocomplete-tag":{margin:"0px 4px 4px 0px"}}));function eX({size:e="small",...t}){return f.jsx(dn,{...t,children:f.jsx($K,{size:e})})}const tX=ue(L.AutocompleteInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"}}));function nX({size:e="small",...t}){const{perPage:n,...r}=t;return f.jsx(dn,{...r,children:f.jsx(tX,{size:e})})}const rX=ue(L.BooleanInput,{slot:"Root"})(()=>({marginTop:"0 !important"}));function oX({...e}){const t=Wt.useTheme();return f.jsx(dn,{...e,children:f.jsx(rX,{sx:{"& .MuiFormControlLabel-root":{marginLeft:"0 !important",marginRight:"0 !important"},"& .MuiSwitch-root":{margin:"0 !important",marginTop:e.display==="legend"?0:`${t.spacing(1)} !important`}}})})}const iX=4,sX=ue(L.DateInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function aX(e){const[t,n]=E.useState(""),r=E.useCallback(o=>{const i=o.target.value;Or(i).year().toString().length>iX?o.target.value=t:n(i)},[t]);return f.jsx(dn,{...e,children:f.jsx(sX,{...e,onInput:r})})}const lX=ue(L.DateTimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function cX(e){return f.jsx(dn,{...e,children:f.jsx(lX,{})})}const uX=ue(L.FileInput,{slot:"root"})(({theme:e})=>({"& .previews":{},"& .previews>div":{marginTop:e.spacing(1),padding:e.spacing(1.5),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:e.palette.action.hover},"& .MuiLink-root":{fontSize:e.typography.body1.fontSize}}}));function dX({children:e=f.jsx(xE,{source:"",title:""}),title:t,...n}){const r=tn.useWatch({name:n.source}),o=L.useRecordContext(n),{source:i}=n,a=E.useMemo(()=>{if(r&&(r!=null&&r.title))return r==null?void 0:r.title;const c=Ze.get(o,i);if(c){const u=c.split("__");return u.length>0?u[u.length-1]:c}return c},[o,i,r]);return f.jsx(dn,{...n,children:f.jsx(uX,{children:E.cloneElement(e,{...e.props,title:t||i,source:i,record:{...o,[i]:(r==null?void 0:r.title)||Ze.get(o,i),[`_${i}`]:(r==null?void 0:r.src)||Ze.get(o,`_${i}`),[t||i]:a}})})})}function fX({children:e=f.jsx(vE,{}),title:t,multiple:n=!1,...r}){const o=tn.useWatch({name:r.source}),i=L.useRecordContext(r),{source:a}=r;return L.useInput({source:`__image__${r==null?void 0:r.source}`,defaultValue:r==null?void 0:r.source}),f.jsx(dn,{...r,multiple:n,children:f.jsx(L.ImageInput,{accept:"image/*",children:E.cloneElement(e,{...e.props,title:t,source:a,record:{...i,[a]:(o==null?void 0:o.title)||Ze.get(i,a),[`_${a}`]:(o==null?void 0:o.src)||Ze.get(i,`_${a}`)}})})})}function hr(e){return f.jsx(dn,{...e,children:f.jsx(L.TextInput,{})})}const pX={vertical:"bottom",horizontal:"right"},hX={vertical:"top",horizontal:"right"};function gX({requiredAtLeastOneLocale:e,requiredLocale:t,validate:n,required:r,...o}){const{source:i}=o,a=q.useLocales(),c=E.useCallback((_="ra.validation.required",R="ra.validation.required_locale")=>N=>{if(e&&!t&&!qS(N,a))return _;if(t&&(!te.has(N,t)||te.isEmpty(te.get(N,t))))return{message:R,args:{locale:t}};if(!e&&r&&!qu(N,a))return _},[e,t,a,r]),u=E.useMemo(()=>q.composeValidators(n,c()),[n,c]),{fieldState:d}=q.useInput({...o,validate:u}),{error:p}=d,g=tn.useWatch({name:i}),v=!qu(g,a),[y]=q.useLocaleState(),[b,x]=E.useState(y),[w,A]=E.useState(null),j=!!w,T=E.useCallback(_=>A(j?null:_.currentTarget),[j,A]),P=E.useCallback(()=>A(null),[A]),O=E.useMemo(()=>te.map(a,(_,R)=>f.jsx(S.MenuItem,{onClick:()=>{x(_.locale),P()},children:f.jsx(S.ListItemText,{primary:`${_.locale.toUpperCase()}: ${(g??{})[_.locale]??""}`})},R)),[a,x,P,g]);return f.jsx(dn,{...o,validate:u,helperText:p!=null&&p.message?f.jsx(q.ValidationError,{error:p==null?void 0:p.message}):o==null?void 0:o.helperText,children:f.jsx(f.Fragment,{children:f.jsxs(S.Box,{flex:1,children:[te.map(a,(_,R)=>f.jsx(hr,{...o,source:`${i}.${_.locale}`,sx:{width:"100%",display:_.locale===b?"inline-flex":"none"},label:!1,helperText:!1,required:!1,InputProps:{endAdornment:f.jsx(S.Chip,{label:f.jsx(S.Typography,{variant:"button",children:b}),size:"small",onClick:T,color:v?"warning":void 0})}},R)),f.jsx(S.Menu,{anchorEl:w,open:j,anchorOrigin:pX,transformOrigin:hX,onClose:P,children:O})]})})})}const mX=ue(L.NumberInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function vX(e){return f.jsx(dn,{...e,children:f.jsx(mX,{})})}const yX=ue(L.RadioButtonGroupInput,{slot:"root"})(()=>({marginTop:"0 !important","& .MuiFormControlLabel-root":{marginLeft:-8}}));function bX(e){return f.jsx(dn,{...e,children:f.jsx(yX,{})})}function xX({source:e,minWidth:t=300,children:n}){const r=L.useResourceContext(),o=L.useRecordContext(),[i,a]=E.useState(Ze.get(o,e,"")),[c,u]=E.useState(!1),d=E.useCallback(b=>a(b.target.value),[]),p=L.useDataProvider(),g=E.useCallback(b=>{b.key==="Enter"&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,o,e]),v=E.useCallback(()=>{Ze.get(o,e)!==i&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,e,o]),y=E.useCallback(b=>{u(!0),p.update(r,{id:o.id,data:{...o,[e]:b,_changed:e},previousData:o}).then(()=>u(!1))},[p,r,e,o]);return E.useEffect(()=>a(Ze.get(o,e)),[o,e]),n?E.cloneElement(n,{...n.props,source:e,value:i,onChange:y}):f.jsx(S.TextField,{value:i,disabled:c,onChange:d,onKeyPress:g,onBlur:v,style:{minWidth:t,width:"100%"},multiline:!0,InputProps:{"arial-label":"naked"},size:"small"})}function CX({children:e,...t}){const n=E.Children.only(e);return f.jsx(L.ReferenceArrayInput,{...t,children:E.cloneElement(n,{...t,source:n.props.source||t.source})})}function wX({children:e,...t}){const n=E.Children.only(e);return f.jsx(L.ReferenceInput,{...t,children:E.cloneElement(n,{...t,source:n.props.source||t.source})})}function SX({reference:e,target:t,children:n,filters:r,actions:o,...i}){return f.jsx(L.ResourceContextProvider,{value:e,children:f.jsx(wE,{perPage:5,pagination:f.jsx(L.Pagination,{}),...i,reference:e,target:t,children:f.jsxs(f.Fragment,{children:[f.jsx(L.ListToolbar,{filters:r,actions:o}),n]})})})}const EX=ue(L.SearchInput,{slot:"root"})(()=>({}));function TX(e){return f.jsx(EX,{...e})}const AX=ue(L.SelectArrayInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiFormLabel-root.MuiInputLabel-root":{marginTop:"-3px"},"& .MuiInputLabel-root.MuiInputLabel-shrink":{marginTop:0},"& .MuiOutlinedInput-input:has(.MuiChip-root)":{paddingTop:"4px",paddingBottom:"6px",paddingLeft:"6px"}}));function IX({optionText:e="name",optionValue:t="id",...n}){return f.jsx(dn,{...n,children:f.jsx(AX,{optionText:e,optionValue:t,options:{autoWidth:!1}})})}const OX=ue(L.SelectInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1||e===null?0:"auto"}}));function PX(e){return f.jsx(dn,{...e,children:f.jsx(OX,{})})}function jX({multiline:e=!1,...t}){var u,d;const n=L.useTranslate(),r=L.maxLength(t==null?void 0:t.maxLength,"app.input.max_length_error"),o=(d=(u=tn.useController({name:t==null?void 0:t.source}))==null?void 0:u.field)==null?void 0:d.value;let i=t.helperText,a=t.validate;a?Array.isArray(a)&&a.indexOf(r)===-1&&a.push(r):a=[r];const c=n("app.input.max_length_info",{count:(o==null?void 0:o.length)||0,max:t==null?void 0:t.maxLength});return t!=null&&t.maxLength&&(i=i&&i.length>0?`${c} - ${n(i)}`:c),f.jsx(hr,{...t,validate:a,helperText:i,multiline:e,inputProps:{maxLength:t==null?void 0:t.maxLength}})}function kX(e){if(!e)return"";const t=tE(e);return t?t.format("HH:mm"):""}function MX(e){return e}const FX=ue(L.TimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function _X({parse:e=MX,format:t=kX,...n}){return f.jsx(dn,{...n,children:f.jsx(FX,{parse:e,format:t,...n})})}function Vg({onSuccess:e,firstAccess:t}){const{spacing:n}=Cn(),[r,o]=E.useState(!1),i=q.useAuthProvider(),a=q.useTranslate(),c=q.useNotify(),u=li.useQueryClient(),d=E.useCallback(p=>{const{oldPassword:g,newPassword:v}=p;o(!0),i==null||i.changePassword(g,v).then(()=>{c("ra.auth.password_changed"),u.invalidateQueries(["auth","getIdentity"]),e()}).catch(y=>{c((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>o(!1))},[i,e,c,u]);return f.jsx(q.ResourceContextProvider,{value:"user/change-password",children:f.jsx(q.EditContextProvider,{value:{record:{},resource:"user/change-password",save:d},children:f.jsx(Bg,{onSubmit:d,toolbar:f.jsx(Ho,{children:f.jsx(L.SaveButton,{disabled:r})}),children:f.jsxs(S.Grid,{container:!0,spacing:n,children:[t===!0&&f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Alert,{severity:"warning",children:[f.jsx(S.AlertTitle,{children:a("ra.auth.first_access.change_password")}),a("ra.auth.first_access.change_password_helper")]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(hr,{source:"oldPassword",type:"password",validate:q.required()})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(hr,{source:"newPassword",type:"password",validate:q.required()})})]})})})})}const SE=E.createContext({});function RX(e){const{useDefaults:t=!1,queryOptions:n={}}=e,r=L.useResourceContext(),o=L.useDataProvider(),{search:i}=ai.useLocation(),a=`${r}/new`,c=E.useCallback(()=>{if(!t||!te.isFunction(o.get))return Promise.resolve({});const v={};return new URLSearchParams(i??"").forEach((y,b)=>{v[b]=y}),o.get(a,v).then(y=>y.data).then(y=>{const{responseCode:b,value:x}=y;return b==="ok"?x:Promise.reject(y)})},[t,i,o,a]),u=E.useMemo(()=>te.chain(n).extend({queryKey:[r,i],queryFn:c}).value(),[r,i,c,n]),{data:d,isLoading:p}=li.useQuery(u),g=te.omit(e,["useDefaults"]);return p?f.jsx(S.Stack,{alignItems:"center",justifyContent:"center",flex:1,p:2,children:f.jsx(S.CircularProgress,{})}):f.jsx(SE.Provider,{value:d??{},children:f.jsx(L.Create,{...g,children:e.children})})}const DX=ue(RX,{slot:"root"})(({theme:e})=>({"& .RaCreate-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaCreate-main":{marginTop:0},"& .RaCreate-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaCreate-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaCreate-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function LX(){return E.useContext(SE)}const BX=ue(L.Edit,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-card":{[e.breakpoints.down("sm")]:{marginBottom:e.spacing(6)}},"& .RaEdi-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaEdit-main":{marginTop:0},"& .RaEdit-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaEdit-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function NX(e){return f.jsx(BX,{...e})}const VX=ue(S.CardHeader)(({theme:e})=>({marginTop:e.spacing(2.5),marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0})),WX=ue(S.Divider)(({theme:e})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,marginBottom:e.spacing(2),width:`calc(100% + ${e.spacing(5)})`}));function zX({title:e,divider:t=!0,variant:n="h5"}){const r=L.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(VX,{title:r(e,{_:e}),titleTypographyProps:{variant:n}}),t?f.jsx(WX,{}):null]})}function Wg(e){return e.id??e.label}function EE(e,t){const n=`^${e}.`.replaceAll(".","\\."),r=new RegExp(n,"g");return t.match(r)!==null}function UX(e){return te.map(e,"id")}function nd(e){const t=e.match(new RegExp("[^.]+","g"));return t===null?0:t.length}function TE(e,t){const n=e!==void 0?nd(e):0;return te.chain(t).filter(o=>e!==void 0?EE(e,o.id):!0).filter(o=>nd(o.id)===n+1).value()}function HX(e,t){var i;const n=te.clone(e),{type:r,payload:o}=t;switch(r){case"setFormRootPath":return te.extend(n,{formRootPath:o});case"setSyncWithLocation":return te.extend(n,{syncWithLocation:o});case"setErrorCount":return te.extend(n,{errorCount:o});case"setActiveItem":return te.includes(UX(e.items),o)?te.extend(n,{activeItem:o}):n;case"addItem":{const{id:a}=o;return te.extend(n,{items:te.chain(n.items).clone().reject(c=>c.id===a).concat([o]).orderBy(c=>c.index).value()})}case"removeItem":{const a=te.isString(o)?o:o.id,c=te.chain(n.items).clone().reject(u=>u.id===a).value();return te.extend(n,{items:c}),n.activeItem===a&&te.extend(n,{activeItem:((i=te.first(c))==null?void 0:i.id)??void 0}),n}default:return n}}const GX={syncWithLocation:!0,errorCount:!0,items:[],activeItem:void 0},AE=E.createContext(void 0);function IE(e){const t=!!(e.syncWithLocation??!0),n=!!(e.errorCount??!0),{rootMatchString:r}=e,{pathname:o}=ai.useLocation(),[i,a]=E.useReducer(HX,te.cloneDeep(GX)),{formRootPath:c,items:u}=i,d=E.useMemo(()=>({state:i,dispatch:a}),[i,a]);return E.useEffect(()=>{const p=["entities/:resource/create/*",":resource/create/*","entities/:resource/:id/show/*",":resource/:id/show/*","entities/:resource/:id/*",":resource/:id/*"];r!==void 0&&p.push(r);const g=te.chain(p).map(y=>ai.matchPath(y,o)).reject(y=>y===null).first().value(),v=g==null?void 0:g.pathnameBase;v!==void 0&&v!==c&&a({type:"setFormRootPath",payload:v})},[o,c,r]),E.useEffect(()=>{a({type:"setSyncWithLocation",payload:!!t})},[t,a]),E.useEffect(()=>{a({type:"setErrorCount",payload:!!n})},[n,a]),E.useEffect(()=>{var p;if(t&&c!==void 0){let g=o.replace(c,"").replace(new RegExp(/^\/?/),"");te.isEmpty(g)&&(g=((p=te.chain(u).filter(v=>TE(v.id,u).length===0).orderBy([v=>nd(v.id),v=>v.index]).first().value())==null?void 0:p.id)??void 0),a({type:"setActiveItem",payload:g})}},[a,c,o,u,t]),f.jsx(AE.Provider,{value:d,children:e.children})}function OE(){const e=E.useContext(AE);if(e===void 0)throw new Error("[LongForm] useFormContext: context undefined. Please provide a valid Context using LongForm.Provider");return e}function cl(){return OE().state}function zg(){return OE().dispatch}function PE(){return cl().formRootPath}function jE(){return cl().activeItem}function kE(){return cl().items}function ME(){return cl().syncWithLocation}function FE(){return cl().errorCount}function _E(){const e=zg();return E.useCallback(n=>{e({type:"setActiveItem",payload:n})},[e])}function RE(){const e=zg();return E.useCallback(n=>{e({type:"addItem",payload:n})},[e])}function DE(){const e=zg();return E.useCallback(n=>{e({type:"removeItem",payload:n})},[e])}const YX=ue(S.Grid,{name:"LongFormView",slot:"Root"})(({theme:e})=>({"& .MuiToolbar-root.RaToolbar-desktopToolbar":{marginLeft:`-${e.spacing(3)}`,marginRight:`-${e.spacing(3)}`,marginBottom:`-${e.spacing(2)}`,paddingTop:e.spacing(2.5),paddingBottom:e.spacing(2.5),[e.breakpoints.down("sm")]:{width:"auto !important",marginRight:0}},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingLeft:"0 !important",paddingRight:"0 !important",paddingBottom:"0 !important"},"& form > .MuiToolbar-root":{margin:0,marginRight:`-${e.spacing(.5)}`,[e.breakpoints.down("sm")]:{marginRight:e.spacing(.5)}}}));function LE(e){const{spacing:t}=Cn(),{spacing:n=t}=e,r=te.omit(e,["spacing"]);return f.jsx(L.Form,{...r,className:"LongFormView",children:f.jsx(YX,{container:!0,spacing:n*2,children:e.children})})}function BE(e){const{disposition:t={xl:9,lg:9,md:8,sm:8,xs:12}}=e,n=te.omit(e,["disposition"]);return f.jsx(S.Grid,{...n,item:!0,...t,children:e.children})}function NE(e){const t=jE();return t===void 0?!1:e===t||EE(e,t)}function VE(e){const t=kE();return E.useMemo(()=>TE(e,t),[t,e])}function KX(){const e=PE(),{search:t}=ai.useLocation(),n=ai.useNavigate();return E.useCallback(o=>{n(`${e}/${o}${t}`)},[e,n,t])}function WE(){const e=VE();return f.jsx(S.Card,{variant:"outlined",children:f.jsx(S.List,{sx:{"& .MuiListItemButton-root.Mui-selected":{borderColor:"palette.primary.main",borderRightStyle:"solid",borderRightWidth:2},"& .MuiListItemAvatar-root":{minWidth:24}},children:te.map(e,(t,n)=>f.jsx(Ug,{...t},n))})})}function Ug(e){const t=q.useTranslate()??te.identity,n=zE(e),{selected:r,label:o,icon:i,onClick:a,badge:c,items:u,isGroup:d,level:p,errors:g=0}=n,{spacing:v}=Cn(),[y,b]=E.useState(r),x=E.useCallback(j=>{b(!y),a(j)},[a,y]),w=i!==void 0,A=te.omit(e,["label","icon","selected","badge"]);return E.useEffect(()=>{r&&!y&&b(r)},[r,y,b]),f.jsxs(f.Fragment,{children:[f.jsx(S.ListItem,{...A,disablePadding:!0,children:f.jsxs(S.ListItemButton,{selected:r?!d:null,onClick:x,sx:{pl:v*p},children:[w?f.jsx(S.ListItemIcon,{children:i}):null,f.jsx(S.ListItemText,{inset:!w,primary:g===0?t(o):f.jsx(S.Badge,{variant:"dot",color:"error",sx:{"& > .MuiBadge-badge":{transform:"scale(1) translate(125%, 0)"}},children:t(o)})}),c?f.jsx(S.ListItemAvatar,{children:f.jsx(Zc,{type:"filled",size:"xs",color:c.color??"default",children:c.content})}):null,d?y?f.jsx(en.ExpandLess,{}):f.jsx(en.ExpandMore,{}):null]})}),d?f.jsx(S.Collapse,{in:y,timeout:"auto",children:f.jsx(S.List,{children:te.map(u,(j,T)=>f.jsx(Ug,{...j},T))})}):null]})}function zE(e){const{id:t}=e,n=NE(t),r=nd(t),o=KX(),i=ME(),a=_E(),c=VE(t),u=!te.isEmpty(c),d=E.useCallback(g=>{u||(i?o(e.id):a(e.id)),te.isFunction(e.onClick)&&e.onClick(g)},[a,o,e,i,u]);return E.useMemo(()=>({...e,selected:n,onClick:d,items:c,isGroup:u,level:r}),[e,n,d,c,u,r])}var XX=e=>{let t=e;for(;t=t.parentElement;){const n=getComputedStyle(t,null).getPropertyValue("overflow-y");if(t===document.body)return window;if(n==="auto"||n==="scroll"||n==="overlay")return t}return window},UE=e=>e.firstChild?e.firstChild.offsetParent===e:!0,ZX=(e,t)=>{let n=e,r=0;UE(t)||(r+=e.offsetTop-t.offsetTop,t=e.offsetParent,r+=-e.offsetTop);do r+=n.offsetTop,n=n.offsetParent;while(n&&n!==t);return r},QX=e=>{let t=e.parentElement;for(;t&&getComputedStyle(t,null).getPropertyValue("display")==="contents";)t=t.parentElement;return t||window},ul=null;typeof CSS<"u"&&CSS.supports&&(CSS.supports("position","sticky")?ul="sticky":CSS.supports("position","-webkit-sticky")&&(ul="-webkit-sticky"));var rd=!1;try{const e=Object.defineProperty({},"passive",{get(){rd={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch{}var Hg=e=>{const{el:t,onChange:n,unsubs:r,measure:o}=e;if(t===window){const i=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),a=o(i()),c=()=>{Object.assign(a,o(i())),n()};return window.addEventListener("resize",c,rd),r.push(()=>window.removeEventListener("resize",c)),a}else{const i=o(t.getBoundingClientRect()),a=()=>{Object.assign(i,o(t.getBoundingClientRect())),n()},c=new ResizeObserver(a);return c.observe(t),r.push(()=>c.disconnect()),i}},JX=e=>{const t=getComputedStyle(e,null),n=parseInt(t.getPropertyValue("padding-top"),10),r=parseInt(t.getPropertyValue("padding-bottom"),10);return{top:n,bottom:r}},qX=(e,t,n)=>{const{bottom:r,offsetBottom:o,offsetTop:i}=n,a=XX(e);let c=!1;const u=()=>{c||requestAnimationFrame(()=>{const R=g();R!==T&&P(R),c=!1}),c=!0};let d=a===window?window.scrollY:a.scrollTop;const p=R=>{const{offsetTop:N,height:Y}=y,{naturalTop:X}=w,{height:G}=A;return R+N+Y>=X+G+j+o},g=()=>{const{height:R}=y,{height:N}=A;return N+i+o<=R?3:p(d)?1:2},v=a!==window&&UE(a),y=Hg({el:a,onChange:u,unsubs:t,measure:({height:R,top:N})=>({height:R,offsetTop:v?N:0})}),b=QX(e),x=b===window?{top:0,bottom:0}:JX(b),w=Hg({el:b,onChange:u,unsubs:t,measure:({height:R})=>({height:R-x.top-x.bottom,naturalTop:b===window?0:ZX(b,a)+x.top+y.offsetTop})}),A=Hg({el:e,onChange:u,unsubs:t,measure:({height:R})=>({height:R})});let j=0,T=g();const P=R=>{const N=T;if(T=R,N===2&&(j=-1),R===3){e.style.position=ul,r?e.style.bottom=`${o}px`:e.style.top=`${i}px`;return}const{height:Y,offsetTop:X}=y,{height:G,naturalTop:re}=w,{height:ne}=A;if(R===2)if(e.style.position="relative",j=N===0?Math.max(0,X+d-re+i):Math.max(0,X+d+Y-(re+ne+o)),r){const Z=Math.max(0,G-ne-j);e.style.bottom=`${Z}px`}else e.style.top=`${j}px`;else e.style.position=ul,R===1?r?e.style.bottom=`${o}px`:e.style.top=`${Y-ne-o}px`:r?e.style.bottom=`${Y-ne-o}px`:e.style.top=`${i}px`};P(T);const O=R=>{if(R===d)return;const N=R-d;if(d=R,T===3)return;const{offsetTop:Y,height:X}=y,{naturalTop:G,height:re}=w,{height:ne}=A;if(N>0)if(T===0){if(R+Y+i>G){const Z=Math.max(0,Y+d-G+i);R+Y+X<=G+ne+Z+o?P(2):P(1)}}else T===2&&p(R)&&P(1);else if(T===1){if(Y+R+X<G+re+o){const Z=Math.max(0,Y+d+X-(G+ne+o));Y+R+i>=G+Z?P(2):P(0)}}else T===2&&Y+R+i<G+j&&P(0)},_=a===window?()=>O(window.scrollY):()=>O(a.scrollTop);a.addEventListener("scroll",_,rd),a.addEventListener("mousewheel",_,rd),t.push(()=>a.removeEventListener("scroll",_),()=>a.removeEventListener("mousewheel",_))},$X=({offsetTop:e=0,offsetBottom:t=0,bottom:n=!1}={})=>{const[r,o]=E.useState(null);return E.useEffect(()=>{if(!r||!ul)return;const i=[];return qX(r,i,{offsetBottom:t,offsetTop:e,bottom:n}),()=>{i.forEach(a=>a())}},[r,t,e,n]),o},eZ=e=>{const{offsetTop:t,offsetBottom:n,bottom:r,children:o,className:i,style:a}=e,c=$X({offsetTop:t,offsetBottom:n,bottom:r});return f.jsx("div",{className:i,style:a,ref:c,children:o})},tZ=eZ,HE=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(HE||{});function GE(e){const{sticky:t=!0,disposition:n={xl:3,lg:3,md:4,sm:4,xs:12},spacing:r=2}=e,o=te.omit(e,["sticky","disposition","spacing"]),i=t?tZ:S.Box,a=E.useMemo(()=>t?{offsetTop:74,offsetBottom:r*2}:{},[t,r]);return f.jsx(S.Grid,{...o,item:!0,...n,children:f.jsx(i,{...a,children:f.jsx(S.Stack,{spacing:r,children:e.children})})})}function YE(e){return f.jsx(f.Fragment,{children:e.children})}function KE(e){const{children:t}=e;return E.useMemo(()=>{const r={top:[],bottom:[]};return E.Children.forEach(t,o=>{if(E.isValidElement(o)&&(o==null?void 0:o.type)===YE){const{position:i}=o.props;switch(i){case"top":r.top.push(o);break;case"bottom":r.bottom.push(o);break}}}),r},[t])}function XE(e){const{errors:t}=tn.useFormState(),n=FE(),{label:r,icon:o,badge:i,index:a=0,children:c}=e,u=Wg(e),d=RE(),p=DE(),g=NE(u),v=[];n&&(e.sources!==void 0?v.push(...e.sources):$u(c,b=>{var x;((x=b==null?void 0:b.props)==null?void 0:x.source)!==void 0&&v.push(b.props.source)}));const y=te.chain(v).uniq().map(b=>te.get(t,b)).reject(b=>b===void 0).value().length;return E.useEffect(()=>{d({id:u,index:a,label:r,icon:o,badge:i,errors:y})},[d,p,r,o,u,i,a,y]),E.useEffect(()=>()=>{p(u)},[u,p]),f.jsx(S.Box,{display:g?"unset":"none",children:e.children})}function ZE(e){const t=Gg(e),n=Wg(e);return f.jsx(XE,{...e,id:n,children:E.Children.map(t,r=>{const o=Wg(r.props);return E.cloneElement(r,{id:`${n}.${o}`})})})}function QE(e){return f.jsx(XE,{...e})}function Gg(e){const{children:t}=e;return E.useMemo(()=>te.chain(E.Children.toArray(t)).filter(r=>E.isValidElement(r)&&((r==null?void 0:r.type)===QE||(r==null?void 0:r.type)===ZE)).map((r,o)=>E.cloneElement(r,{index:o})).value(),[t])}function nZ(e){const{tabsDisposition:t,contentDisposition:n,spacing:r=2}=e,o=te.pick(e,["syncWithLocation","errorCount"]),i=te.omit(e,["tabsDisposition","contentDisposition","syncWithLocation"]),{top:a,bottom:c}=KE(e),u=Gg(e);return f.jsx(IE,{...o,children:f.jsxs(LE,{...i,spacing:r,children:[f.jsxs(GE,{disposition:t,spacing:r,children:[a,f.jsx(WE,{}),c]}),f.jsx(BE,{disposition:n,children:u})]})})}const _t=nZ;_t.BaseForm=LE,_t.Content=BE,_t.Provider=IE,_t.useItems=kE,_t.useSyncWithLocation=ME,_t.useErrorCount=FE,_t.useFormRootPath=PE,_t.useActiveItem=jE,_t.useSetActiveItem=_E,_t.useAddItem=RE,_t.useRemoveItem=DE,_t.Sidebar=GE,_t.SidebarSection=YE,_t.SidebarSectionPosition=HE,_t.useSidebarChildren=KE,_t.NavMenu=WE,_t.NavMenuItem=Ug,_t.useNavMenuItem=zE,_t.Tab=QE,_t.Group=ZE,_t.useBaseItemChildren=Gg;const rZ=ue(L.Show,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaShow-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaShow-main>.MuiPaper-root:first-of-type":{overflow:"visible"}}));function oZ(e){return f.jsx(rZ,{...e})}const iZ=ue(L.SimpleFormIterator,{root:"root"})(({theme:e})=>({"& .RaSimpleFormIterator-line":{paddingTop:e.spacing(1),paddingBottom:e.spacing(.5)},"& .RaSimpleFormIterator-action":{display:"flex",flexDirection:"row",alignItems:"center",mb:1.5},"& section":{width:"100%","& label":{position:"relative",overflow:"visible",transform:"none",marginLeft:0}}}));function sZ(e){return f.jsx(iZ,{...e})}const aZ=Na(L.TabbedForm,{slot:"Root"})(({theme:e})=>({"& .MuiGrid-root.MuiGrid-container":{paddingBottom:0},[e.breakpoints.down("sm")]:{paddingBottom:0,"& .MuiTableContainer-root":{paddingBottom:e.spacing(1)}}}));function lZ({children:e}){return f.jsx(f.Fragment,{children:e})}function Yg(e){const{title:t,modal:n,content:r,subheader:o,secondary:i=f.jsx(No,{children:f.jsx(ll,{})}),sx:a,noPadding:c,toolbar:u=f.jsx(Ho,{children:f.jsx(L.SaveButton,{type:"button"})}),...d}=e,p=Fg(t),g=S.useTheme();return f.jsx(On,{title:p,modal:n,content:r,subheader:o,secondary:i,sx:{...a,"& .MuiTabs-root":{m:2.5,mb:0},"& .tabbed-form > .MuiDivider-root":{ml:2.5,mr:2.5},"& .MuiToolbar-root.RaToolbar-desktopToolbar":{paddingTop:n?g.spacing(2.5):0},"& .MuiToolbar-root":{padding:g.spacing(2.5),borderTop:n?`1px solid ${g.palette.divider}`:void 0}},border:!n,divider:!0,children:f.jsx(aZ,{toolbar:u,component:c?lZ:void 0,...d})})}function cZ({children:e,...t}){return f.jsx(L.TabbedForm.Tab,{...t,children:f.jsx(S.Box,{sx:{width:"100%",p:2.5},children:e})})}Yg.Tab=L.TabbedForm.Tab,Yg.TabStack=cZ;function Kg(e){const{label:t,disableAdd:n,onClick:r,inset:o}=e,i=S.useTheme(),a=i.palette.mode==="dark"?i.palette.grey.A400:i.palette.grey.A800,c=i.palette.mode==="light"?"#000000":"#FFFFFF";return f.jsxs(S.Stack,{justifyContent:"space-between",alignItems:"center",flexDirection:"row",sx:o?{p:2.5}:{pt:2},children:[t!==!1&&f.jsx(S.Typography,{children:t}),!n&&(E.isValidElement(e==null?void 0:e.customButton)?E.cloneElement(e==null?void 0:e.customButton,{onClick:r}):f.jsx(S.IconButton,{color:"secondary",sx:{border:`1px solid ${a}`},onClick:r,children:f.jsx(Ue.PlusCircleOutlined,{style:{color:c}})}))]})}const Xg=E.createContext(void 0);function JE(){return E.useContext(Xg)}function od(e){const{children:t}=e,{item:n,index:r}=JE(),[o,i]=E.useState(!1),{update:a}=L.useArrayInput(),c=L.useTranslate(),u=E.useCallback(d=>(i(!1),a(r,d),Promise.resolve()),[r,a]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{color:"primary",onClick:()=>i(!0),sx:{justifyContent:"flex-start"},children:c("ra.action.edit")}),f.jsx(S.Dialog,{open:o,onClose:()=>i(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(L.EditContextProvider,{value:{record:n,save:u},children:t})})]})}function qE({source:e,children:t}){const n=E.Children.only(t),{getValues:r}=tn.useFormContext(),o=L.useRecordContext({record:r()});return E.isValidElement(n)?E.cloneElement(n,{source:e,record:o}):null}function Zg(e){const{label:t,disableAdd:n,inset:r,source:o,template:i}=e,[a,c]=E.useState(!1),{append:u}=L.useArrayInput(),d=E.useCallback(()=>{c(g=>!g)},[c]),p=E.useCallback(g=>(c(!1),u(g),Promise.resolve()),[c,u]);return f.jsxs(f.Fragment,{children:[E.cloneElement(f.jsx(Kg,{}),{label:t,source:o,disableAdd:n,template:i,onClick:d,inset:r}),f.jsx(S.Dialog,{open:a,onClose:d,maxWidth:"xs",children:f.jsx(q.CreateContextProvider,{value:{save:p},children:e.children})})]})}const Qg=E.createContext(void 0);function $E(){return E.useContext(Qg)}const eT=D.forwardRef((e,t)=>{const{children:n,disabled:r,disableRemove:o=!1,index:i,member:a,resource:c,record:u}=e,d=L.useTranslate(),[p,g]=D.useState(!1),{total:v,remove:y}=$E(),b=D.useCallback(()=>{g(!1),y(i)},[i,y]),x=E.useMemo(()=>({index:i,total:v,item:u,remove:()=>y(i)}),[i,v,y,u]),w=E.useMemo(()=>E.Children.map(n,A=>E.isValidElement(A)&&(A==null?void 0:A.type)===od&&D.isValidElement(A)?A:null),[n]);return f.jsxs(Xg.Provider,{value:x,children:[E.Children.map(n,(A,j)=>{if(A.type===od||!E.isValidElement(A))return null;const{source:T,...P}=A.props;return f.jsx(S.TableCell,{children:E.cloneElement(A,{source:T?`${a}.${T}`:a,index:T?void 0:j,resource:c,disabled:r,...P,label:""})})}),!o&&f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsxs(No,{horizontal:!0,children:[f.jsx(S.Button,{onClick:()=>g(!0),color:"error",sx:{justifyContent:"flex-start"},children:d("ra.action.delete")}),w]})})}),o&&w?f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsx(No,{horizontal:!0,children:w})})}):null,n.length>0&&f.jsx(L.Confirm,{isOpen:p,title:d("ra.action.remove_item"),content:d("ra.message.remove_item"),onConfirm:b,onClose:()=>g(!1)})]})});function uZ(e){var $,W;const{children:t,resource:n,source:r,label:o,disableAdd:i=!1,disableRemove:a=!1,enableClearAll:c=!1,className:u,empty:d,template:p={},addButton:g=f.jsx(Kg,{}),inset:v,sx:y}=e,[b,x]=E.useState(!1),{fields:w,remove:A,replace:j,append:T}=L.useArrayInput(e),{resetField:P}=tn.useFormContext(),O=pt(),_=q.useTranslate(),R=E.useRef(p||{}),N=q.useTranslateLabel(),Y=E.useCallback(ie=>{A(ie)},[A]);if(w.length>0){const{...ie}=w[0];R.current=ie;for(const U in R.current)R.current[U]=null}const X=E.useCallback((ie=void 0)=>{let U=ie;ie==null&&(U=R.current,E.Children.count(t)===1&&D.isValidElement(E.Children.only(t))&&!E.Children.only(t).props.source&&E.Children.map(t,de=>D.isValidElement(de)&&de.type!==q.FormDataConsumer).some(Boolean)?U="":(U=U||{},E.Children.forEach(t,de=>{D.isValidElement(de)&&de.type!==q.FormDataConsumer&&de.props.source&&(U[de.props.source]=de.props.defaultValue??null)})));const ee={...U,...p};T(ee),P(`${r}.${w.length}`,{defaultValue:U})},[T,t,P,r,w.length,p]);function G(ie){return U=>{X(),ie&&ie(U)}}const re=E.useCallback(()=>{j([]),x(!1)},[j]),ne=E.useMemo(()=>({total:w.length,remove:Y,source:r}),[w.length,Y,r]),Z=O.palette.mode==="dark"?O.palette.grey.A400:O.palette.grey.A800,J=w.length>0&&c,V=v===!0?{borderRadius:0,borderBottom:`1px solid ${O.palette.divider}`}:{mt:2,border:`1px solid ${Z}`,boxShadow:O.customShadows.z0};return w?f.jsx(Qg.Provider,{value:ne,children:f.jsxs("div",{className:u,children:[D.cloneElement(g,{label:o,source:r,disableAdd:i,template:p,onClick:(g==null?void 0:g.type)!==Zg?G((W=($=e==null?void 0:e.addButton)==null?void 0:$.props)==null?void 0:W.onClick):void 0,inset:v}),f.jsx(S.TableContainer,{component:S.Paper,sx:{...V,boxShadow:O.customShadows.z0,...y},children:f.jsxs(S.Table,{size:"small",children:[f.jsx(S.TableHead,{sx:v===!0?{}:{borderTop:0,borderBottom:`1px solid ${Z}`},children:f.jsxs(S.TableRow,{children:[E.Children.map(t,(ie,U)=>{if(ie.type===od||!D.isValidElement(ie))return null;const ee=f.jsx(S.Typography,{display:"flex",variant:"subtitle1",color:"text.primary",textTransform:"none",children:N({...ie.props,resource:n})});return f.jsx(S.TableCell,{children:ie.props.title?f.jsx(pu,{title:ie.props.title,arrow:!0,children:ee}):ee},U)}),!a&&J?f.jsx(S.TableCell,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(No,{horizontal:!0,children:f.jsx(S.Typography,{color:"error",onClick:()=>x(!0),children:_("ra.action.delete")})})},"actions"):f.jsx(S.TableCell,{},"empty_actions")]})}),f.jsxs(S.TableBody,{children:[w.length===0&&f.jsx(S.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:f.jsx(S.TableCell,{colSpan:4+(a?0:1),align:"center",children:d||f.jsx(S.Typography,{variant:"body1",color:"text.secondary",children:"-"})})}),w.length>0&&w.map((ie,U)=>f.jsx(S.TableRow,{sx:{borderBottom:0},children:f.jsx(eT,{disableRemove:a,index:U,member:`${r}.${U}`,onRemoveField:Y,record:w&&w[U]||{},resource:n,source:r,children:t})},ie.id))]})]})}),w.length>0&&f.jsx(L.Confirm,{isOpen:b,title:_("ra.action.clear_array_input"),content:_("ra.message.clear_array_input"),onConfirm:re,onClose:()=>x(!1)})]})}):null}const id=ue(uZ,{slot:"Root"})(({theme:e})=>({"& > div.MuiPaper-root":{overflowX:"auto",[e.breakpoints.down("sm")]:{width:`calc(100vw - ${e.spacing(8.25)})`}},[e.breakpoints.down("sm")]:{"& .MuiTableRow-root:last-child":{borderBottom:0}}}));id.CreateButton=Zg,id.EditButton=od,id.Field=qE;const tT=E.createContext(void 0);function sd(){const e=E.useContext(tT);if(!e)throw new Error("useWizardFormContext must be used within a WizardFormProvider");return e}function dZ({value:e,children:t}){return f.jsx(tT.Provider,{value:e,children:t})}function fZ({cancelButton:e,...t}){const{hasNextStep:n,hasPreviousStep:r,goToNextStep:o,goToPreviousStep:i}=sd(),a=q.useTranslate(),{handleSubmit:c}=tn.useFormContext(),u=E.useCallback(()=>{o()},[o]);return f.jsxs(Ho,{...t,children:[f.jsx(S.Box,{sx:{"& .MuiButtonBase-root":{ml:0}},children:e?E.cloneElement(e):null}),f.jsx(S.Box,{sx:{flex:"1 1 auto"}}),r()&&f.jsx(S.Button,{variant:"text",color:"primary",onClick:i,children:a("ra.action.back")}),n()?f.jsx(S.Button,{variant:"contained",color:"primary",onClick:c(u),children:a("ra.action.next")}):f.jsx(L.SaveButton,{})]})}const pZ=S.styled(S.Stepper,{shouldForwardProp:e=>e!=="isHorizontal"})(({theme:e,isHorizontal:t})=>({paddingBottom:e.spacing(2),display:"flex",justifyContent:t?"space-between":"flex-start",".MuiStep-root":{flex:t?1:"none",maxWidth:t?"none":"100%",display:"flex",justifyContent:t?"center":"flex-start"},".MuiStepConnector-line.MuiStepConnector-lineVertical":{minHeight:12},".MuiStepConnector-vertical":{marginLeft:14.5},".MuiStepConnector-horizontal":{marginLeft:-10}})),hZ=S.styled(S.Box)(({theme:e,ownerState:t})=>({backgroundColor:t.error?e.palette.error.main:t.completed||t.active?e.palette.primary.main:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[400],zIndex:1,color:e.palette.common.white,width:30,height:30,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center"}));function gZ({completed:e,active:t,error:n,icon:r,className:o}){return f.jsx(hZ,{ownerState:{completed:e,active:t,error:n},className:o,children:n?"!":r})}function mZ({isHorizontal:e,setCurrentStep:t,stepFields:n}){const{currentStep:r,steps:o}=sd(),{errors:i}=tn.useFormState();function a(c){c<=r&&t(c)}return f.jsx(pZ,{activeStep:r,orientation:e?"horizontal":"vertical",isHorizontal:e,sx:{p:3,mt:1},children:o.map((c,u)=>{const d=n[u].some(v=>te.get(i,v)),{label:p,icon:g}=c.props;return f.jsx(S.Step,{children:f.jsx(S.StepLabel,{StepIconComponent:gZ,error:d,icon:g,onClick:()=>a(u),style:{cursor:u<=r?"pointer":"default"},children:e?null:p})},u)})})}function vZ({title:e,subheader:t,secondary:n,toolbar:r,progress:o,isSmall:i,modal:a,sx:c,setCurrentStep:u}){const{currentStep:d,steps:p}=sd(),g=L.useTranslate(),v=S.useTheme(),y=i||a,b=E.useMemo(()=>r?E.Children.toArray(r.props.children).find(w=>{var A;return E.isValidElement(w)&&w.type===S.Button&&((A=w.props)==null?void 0:A.children)===g("ra.action.cancel")}):null,[r,g]),x=p.map(w=>{const A=[],{sources:j}=w.props;return j!==void 0?A.push(...j):$u(w,T=>{var P;((P=T==null?void 0:T.props)==null?void 0:P.source)!==void 0&&A.push(T.props.source)}),A});return f.jsxs(S.Grid,{container:!0,spacing:2,sx:c,children:[f.jsx(S.Grid,{item:!0,xl:a?12:2,lg:a?12:3,md:a?12:3,sm:a?12:4,xs:12,children:o||f.jsx(mZ,{isHorizontal:y,setCurrentStep:u,stepFields:x})}),a?f.jsx(S.Divider,{sx:{width:"100%"}}):null,f.jsx(S.Grid,{item:!0,xl:a?12:10,lg:a?12:9,md:a?12:9,sm:a?12:8,xs:12,sx:{paddingTop:a?"0 !important":null},children:f.jsxs(On,{title:e||p[d].props.label,subheader:t,secondary:n,border:!a,divider:!0,children:[f.jsx(S.Box,{children:p[d]}),f.jsx(S.Box,{sx:{"& .MuiToolbar-root":{paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:v.spacing(2)}},children:r&&!b?r:f.jsx(fZ,{cancelButton:b})})]})})]})}const yZ=S.styled(L.Form,{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({[e.breakpoints.down("sm")]:t?{}:{paddingBottom:`${e.spacing(2.5)}`}}));function nT({children:e,toolbar:t,progress:n,title:r,subheader:o=null,secondary:i=null,sx:a,modal:c=!1,...u}){const[d,p]=E.useState(0),g=E.Children.toArray(e),v=S.useMediaQuery(j=>j.breakpoints.down("sm"));function y(){return d<g.length-1}function b(){return d>0}function x(){p(j=>Math.min(j+1,g.length-1))}function w(){p(j=>Math.max(j-1,0))}const A={currentStep:d,steps:g,hasNextStep:y,hasPreviousStep:b,goToNextStep:x,goToPreviousStep:w};return f.jsx(dZ,{value:A,children:f.jsx(yZ,{...u,modal:c,children:f.jsx(vZ,{title:r,subheader:o,secondary:i,modal:c,sx:a,toolbar:t,progress:n,isSmall:v,setCurrentStep:p})})})}function bZ({children:e}){return f.jsx(f.Fragment,{children:e})}nT.Step=bZ;function xZ(e,t){const n=te.clone(e),{type:r,payload:o}=t;switch(r){case"updateMedia":{const i=te.chain(n.media).clone().extend(o).value();return te.extend(n,{media:i})}case"updateDrawer":{const i=te.chain(n.drawer).clone().extend(o).value();return te.extend(n,{drawer:i})}case"updateLogo":{const i=te.chain(n.logo).clone().extend(o).value();return te.extend(n,{logo:i})}case"updateNotifications":{const i=te.chain(n.notifications).clone().extend(o).value();return te.extend(n,{notifications:i})}case"updateTheme":{const i=te.chain(n.theme).clone().extend(o).value();return te.extend(n,{theme:i})}default:return n}}const CZ={drawer:{open:!0,width:260,handleDrawerToggle:()=>{}},media:{downMd:!1,downLg:!1,downXl:!1,horizontal:!1},logo:{},notifications:{enable:!0,resource:"entities/notification"},theme:{iconColor:"grey.300",iconColorOpen:"grey.100"}},rT=E.createContext(void 0);function oT(e){var X;const t=q.useAuthProvider(),n=q.useGetIdentity(),r=S.useTheme(),o=S.useMediaQuery(r.breakpoints.down("md")),i=S.useMediaQuery(r.breakpoints.down("lg")),a=S.useMediaQuery(r.breakpoints.down("xl")),{miniDrawer:c,isHorizontalLayout:u,themeDirection:d,drawerWidth:p}=Dg(),g=u(d)&&!i,{drawerOpen:v,openDrawer:y}=Uu(),b=E.useCallback(()=>{y(!v)},[v,y]),[x,w]=E.useState(!1),[A,j]=E.useReducer(xZ,te.chain(CZ).clone().merge({drawer:{open:!c||v}}).value()),T=E.useCallback(()=>w(!1),[]),P=E.useMemo(()=>({state:A,dispatch:j}),[A,j]),{logoIcon:O,logoMain:_,enableNotification:R,notification:N}=e,Y=L.useLoading();return E.useEffect(()=>{j({type:"updateMedia",payload:{downMd:o,downLg:i,downXl:a,horizontal:g}})},[o,i,a,g]),E.useEffect(()=>{j({type:"updateDrawer",payload:{open:v,width:p,handleDrawerToggle:b}})},[v,p,b]),E.useEffect(()=>{c||y(!a)},[a,c]),E.useEffect(()=>{j({type:"updateLogo",payload:{main:_,icon:O}})},[O,_]),E.useEffect(()=>{j({type:"updateNotifications",payload:{enable:R,resource:N??"entities/notification"}})},[R,N]),E.useEffect(()=>{j({type:"updateTheme",payload:{iconColorOpen:r.palette.mode==="dark"?"grey.200":"grey.300",iconColor:r.palette.mode==="dark"?"background.default":"grey.100"}})},[r.palette.mode]),E.useEffect(()=>{if(!Y){if(!t.isImpersonating){console.warn("authProvider does not contain a method called isImpersonating",t);return}t==null||t.isImpersonating().then(G=>{var re;w(!G&&((re=n==null?void 0:n.data)==null?void 0:re.needToChangePassword)===!0)})}},[(X=n==null?void 0:n.data)==null?void 0:X.needToChangePassword,t,Y]),f.jsxs(rT.Provider,{value:P,children:[f.jsx(S.Dialog,{open:x,maxWidth:"xs",fullWidth:!0,children:f.jsx(Vg,{onSuccess:T,firstAccess:!0})}),e.children]})}function iT(e){return E.forwardRef((t,n)=>{const{logoIcon:r,logoMain:o,enableNotification:i,notification:a}=t;return f.jsx(oT,{logoIcon:r,logoMain:o,enableNotification:i,notification:a,children:f.jsx(e,{ref:n,...t})})})}function Jg(){const e=E.useContext(rT);if(e===void 0)throw new Error("[Layout] useLayoutContext: context undefined. Please provide a valid LayoutContext using LayoutProvider");return e}function wZ(){return Jg().dispatch}function Rs(){return Jg().state}function Gn(){return Rs().media}function Pi(){return Rs().drawer}function sT(){return Rs().logo}function ad(){return Rs().notifications}function SZ(){return Rs().theme}function aT(e){const{width:t}=Pi(),{horizontal:n}=Gn(),{container:r}=Cn(),[o,i]=E.useState(null);function a(u,d){i(d)}const c=pt();return f.jsx(zU,{onError:a,fallbackRender:({error:u,resetErrorBoundary:d})=>f.jsx(vg,{error:u,errorComponent:e.error,errorInfo:o,resetErrorBoundary:d}),children:f.jsx(E.Suspense,{fallback:f.jsx(Xw,{}),children:f.jsxs(S.Box,{component:"main",sx:{width:`calc(100% - ${t}px)`,flexGrow:1,p:{xs:0,sm:2,lg:1},pt:{lg:2}},children:[f.jsx(S.Toolbar,{sx:{mt:n?8:"inherit"}})," ",f.jsx(S.Container,{maxWidth:r?"xl":!1,sx:{...r&&{px:{xs:0,sm:2}},position:"relative",minHeight:"calc(100vh - 110px)",display:"flex",flexDirection:"column",[c.breakpoints.down("sm")]:{px:"12px"}},children:e.children})]})})})}const lT=ue(S.Box,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({...e.mixins.toolbar,display:"flex",alignItems:"center",justifyContent:t?"flex-start":"center",paddingLeft:e.spacing(t?3:0)}));function cT({isIcon:e,sx:t,to:n,logoIcon:r,logoMain:o}){const{appDefaultPath:i}=Cn();return f.jsx(S.ButtonBase,{disableRipple:!0,component:ut.Link,to:n||i,sx:t,children:e?r:o})}function uT(e){const t=S.useTheme(),{horizontal:n}=Gn(),{open:r}=Pi(),{icon:o,main:i}=sT(),a=Ir(e,{minHeight:n?"unset":"60px",width:n?{xs:"100%",lg:"424px"}:"inherit",paddingTop:n?{xs:"10px",lg:"0"}:"8px",paddingBottom:n?{xs:"18px",lg:"0"}:"8px",paddingLeft:n?{xs:"24px",lg:"0"}:r?"24px":0});return f.jsx(lT,{theme:t,open:r,sx:a,children:f.jsx(cT,{to:"/",isIcon:!r,sx:{width:r?"auto":35,height:35},logoMain:i,logoIcon:o})})}function dT(e,t){return{width:t,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",boxShadow:e.palette.mode==="dark"?e.customShadows.z1:"none"}}function fT(e){return{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:e.spacing(7.5),borderRight:"none",boxShadow:e.customShadows.z1}}const EZ=ue(S.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Cn();return{width:n,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...dT(e,n),"& .MuiDrawer-paper":dT(e,n)},...!t&&{...fT(e),"& .MuiDrawer-paper":fT(e)}}});var Te={},qg={exports:{}};(function(e,t){(function(n,r){var o="1.0.39",i="",a="?",c="function",u="undefined",d="object",p="string",g="major",v="model",y="name",b="type",x="vendor",w="version",A="architecture",j="console",T="mobile",P="tablet",O="smarttv",_="wearable",R="embedded",N=500,Y="Amazon",X="Apple",G="ASUS",re="BlackBerry",ne="Browser",Z="Chrome",J="Edge",V="Firefox",$="Google",W="Huawei",ie="LG",U="Microsoft",ee="Motorola",de="Opera",ge="Samsung",fe="Sharp",he="Sony",me="Xiaomi",Se="Zebra",be="Facebook",ye="Chromium OS",we="Mac OS",Ie=" Browser",pe=function(_e,Le){var Oe={};for(var Ce in _e)Le[Ce]&&Le[Ce].length%2===0?Oe[Ce]=Le[Ce].concat(_e[Ce]):Oe[Ce]=_e[Ce];return Oe},Ke=function(_e){for(var Le={},Oe=0;Oe<_e.length;Oe++)Le[_e[Oe].toUpperCase()]=_e[Oe];return Le},ve=function(_e,Le){return typeof _e===p?$e(Le).indexOf($e(_e))!==-1:!1},$e=function(_e){return _e.toLowerCase()},gn=function(_e){return typeof _e===p?_e.replace(/[^\d\.]/g,i).split(".")[0]:r},It=function(_e,Le){if(typeof _e===p)return _e=_e.replace(/^\s\s*/,i),typeof Le===u?_e:_e.substring(0,N)},bt=function(_e,Le){for(var Oe=0,Ce,gt,Xt,We,Pe,sn;Oe<Le.length&&!Pe;){var vr=Le[Oe],jr=Le[Oe+1];for(Ce=gt=0;Ce<vr.length&&!Pe&&vr[Ce];)if(Pe=vr[Ce++].exec(_e),Pe)for(Xt=0;Xt<jr.length;Xt++)sn=Pe[++gt],We=jr[Xt],typeof We===d&&We.length>0?We.length===2?typeof We[1]==c?this[We[0]]=We[1].call(this,sn):this[We[0]]=We[1]:We.length===3?typeof We[1]===c&&!(We[1].exec&&We[1].test)?this[We[0]]=sn?We[1].call(this,sn,We[2]):r:this[We[0]]=sn?sn.replace(We[1],We[2]):r:We.length===4&&(this[We[0]]=sn?We[3].call(this,sn.replace(We[1],We[2])):r):this[We]=sn||r;Oe+=2}},Zn=function(_e,Le){for(var Oe in Le)if(typeof Le[Oe]===d&&Le[Oe].length>0){for(var Ce=0;Ce<Le[Oe].length;Ce++)if(ve(Le[Oe][Ce],_e))return Oe===a?r:Oe}else if(ve(Le[Oe],_e))return Oe===a?r:Oe;return Le.hasOwnProperty("*")?Le["*"]:_e},Ot={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},xt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},qt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,w],[/opios[\/ ]+([\w\.]+)/i],[w,[y,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[y,de+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[y,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[y,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[y,"UC"+ne]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[y,"Smart Lenovo "+ne]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+ne],w],[/\bfocus\/([\w\.]+)/i],[w,[y,V+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[y,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[y,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[y,"MIUI "+ne]],[/fxios\/([-\w\.]+)/i],[w,[y,V]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360"+Ie]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+Ie],w],[/samsungbrowser\/([\w\.]+)/i],[w,[y,ge+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],w],[/metasr[\/ ]?([\d\.]+)/i],[w,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[y,w],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,be],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[y,Z+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,Z+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[y,"Android "+ne]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[w,Zn,Ot]],[/(webkit|khtml)\/([\w\.]+)/i],[y,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],w],[/(wolvic)\/([\w\.]+)/i],[y,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[y,V+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[y,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,$e]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,i,$e]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,$e]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[x,ge],[b,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[x,ge],[b,T]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[x,X],[b,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[x,X],[b,P]],[/(macintosh);/i],[v,[x,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[x,fe],[b,T]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[x,W],[b,P]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[x,W],[b,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[v,/_/g," "],[x,me],[b,T]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[x,me],[b,P]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[x,"OPPO"],[b,T]],[/\b(opd2\d{3}a?) bui/i],[v,[x,"OPPO"],[b,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[x,"Vivo"],[b,T]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[x,"Realme"],[b,T]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[x,ee],[b,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[x,ee],[b,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[x,ie],[b,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[x,ie],[b,T]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[x,"Lenovo"],[b,P]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[x,"Nokia"],[b,T]],[/(pixel c)\b/i],[v,[x,$],[b,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[x,$],[b,T]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[x,he],[b,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[x,he],[b,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[x,"OnePlus"],[b,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[x,Y],[b,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[x,Y],[b,T]],[/(playbook);[-\w\),; ]+(rim)/i],[v,x,[b,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[x,re],[b,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[x,G],[b,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[x,G],[b,T]],[/(nexus 9)/i],[v,[x,"HTC"],[b,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[v,/_/g," "],[b,T]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[v,[x,"TCL"],[b,P]],[/(itel) ((\w+))/i],[[x,$e],v,[b,Zn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[x,"Acer"],[b,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[x,"Meizu"],[b,T]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[x,"Ulefone"],[b,T]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[x,"Nothing"],[b,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[x,v,[b,T]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[x,v,[b,P]],[/(surface duo)/i],[v,[x,U],[b,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[x,"Fairphone"],[b,T]],[/(u304aa)/i],[v,[x,"AT&T"],[b,T]],[/\bsie-(\w*)/i],[v,[x,"Siemens"],[b,T]],[/\b(rct\w+) b/i],[v,[x,"RCA"],[b,P]],[/\b(venue[\d ]{2,7}) b/i],[v,[x,"Dell"],[b,P]],[/\b(q(?:mv|ta)\w+) b/i],[v,[x,"Verizon"],[b,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[x,"Barnes & Noble"],[b,P]],[/\b(tm\d{3}\w+) b/i],[v,[x,"NuVision"],[b,P]],[/\b(k88) b/i],[v,[x,"ZTE"],[b,P]],[/\b(nx\d{3}j) b/i],[v,[x,"ZTE"],[b,T]],[/\b(gen\d{3}) b.+49h/i],[v,[x,"Swiss"],[b,T]],[/\b(zur\d{3}) b/i],[v,[x,"Swiss"],[b,P]],[/\b((zeki)?tb.*\b) b/i],[v,[x,"Zeki"],[b,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[x,"Dragon Touch"],v,[b,P]],[/\b(ns-?\w{0,9}) b/i],[v,[x,"Insignia"],[b,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[x,"NextBook"],[b,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[x,"Voice"],v,[b,T]],[/\b(lvtel\-)?(v1[12]) b/i],[[x,"LvTel"],v,[b,T]],[/\b(ph-1) /i],[v,[x,"Essential"],[b,T]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[x,"Envizen"],[b,P]],[/\b(trio[-\w\. ]+) b/i],[v,[x,"MachSpeed"],[b,P]],[/\btu_(1491) b/i],[v,[x,"Rotor"],[b,P]],[/(shield[\w ]+) b/i],[v,[x,"Nvidia"],[b,P]],[/(sprint) (\w+)/i],[x,v,[b,T]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[x,U],[b,T]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[x,Se],[b,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[x,Se],[b,T]],[/smart-tv.+(samsung)/i],[x,[b,O]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[x,ge],[b,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,ie],[b,O]],[/(apple) ?tv/i],[x,[v,X+" TV"],[b,O]],[/crkey/i],[[v,Z+"cast"],[x,$],[b,O]],[/droid.+aft(\w+)( bui|\))/i],[v,[x,Y],[b,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[x,fe],[b,O]],[/(bravia[\w ]+)( bui|\))/i],[v,[x,he],[b,O]],[/(mitv-\w{5}) bui/i],[v,[x,me],[b,O]],[/Hbbtv.*(technisat) (.*);/i],[x,v,[b,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,It],[v,It],[b,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[x,v,[b,j]],[/droid.+; (shield) bui/i],[v,[x,"Nvidia"],[b,j]],[/(playstation [345portablevi]+)/i],[v,[x,he],[b,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[x,U],[b,j]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[x,ge],[b,_]],[/((pebble))app/i],[x,v,[b,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[x,X],[b,_]],[/droid.+; (glass) \d/i],[v,[x,$],[b,_]],[/droid.+; (wt63?0{2,3})\)/i],[v,[x,Se],[b,_]],[/(quest( \d| pro)?)/i],[v,[x,be],[b,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[b,R]],[/(aeobc)\b/i],[v,[x,Y],[b,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[b,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[b,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,T]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[y,J+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,w],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[y,[w,Zn,xt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Zn,xt],[y,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,we],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,w],[/\(bb(10);/i],[w,[y,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[y,V+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[y,Z+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,ye],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,w],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,w]]},Ct=function(_e,Le){if(typeof _e===d&&(Le=_e,_e=r),!(this instanceof Ct))return new Ct(_e,Le).getResult();var Oe=typeof n!==u&&n.navigator?n.navigator:r,Ce=_e||(Oe&&Oe.userAgent?Oe.userAgent:i),gt=Oe&&Oe.userAgentData?Oe.userAgentData:r,Xt=Le?pe(qt,Le):qt,We=Oe&&Oe.userAgent==Ce;return this.getBrowser=function(){var Pe={};return Pe[y]=r,Pe[w]=r,bt.call(Pe,Ce,Xt.browser),Pe[g]=gn(Pe[w]),We&&Oe&&Oe.brave&&typeof Oe.brave.isBrave==c&&(Pe[y]="Brave"),Pe},this.getCPU=function(){var Pe={};return Pe[A]=r,bt.call(Pe,Ce,Xt.cpu),Pe},this.getDevice=function(){var Pe={};return Pe[x]=r,Pe[v]=r,Pe[b]=r,bt.call(Pe,Ce,Xt.device),We&&!Pe[b]&&gt&&gt.mobile&&(Pe[b]=T),We&&Pe[v]=="Macintosh"&&Oe&&typeof Oe.standalone!==u&&Oe.maxTouchPoints&&Oe.maxTouchPoints>2&&(Pe[v]="iPad",Pe[b]=P),Pe},this.getEngine=function(){var Pe={};return Pe[y]=r,Pe[w]=r,bt.call(Pe,Ce,Xt.engine),Pe},this.getOS=function(){var Pe={};return Pe[y]=r,Pe[w]=r,bt.call(Pe,Ce,Xt.os),We&&!Pe[y]&&gt&&gt.platform&&gt.platform!="Unknown"&&(Pe[y]=gt.platform.replace(/chrome os/i,ye).replace(/macos/i,we)),Pe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ce},this.setUA=function(Pe){return Ce=typeof Pe===p&&Pe.length>N?It(Pe,N):Pe,this},this.setUA(Ce),this};Ct.VERSION=o,Ct.BROWSER=Ke([y,w,g]),Ct.CPU=Ke([A]),Ct.DEVICE=Ke([v,x,b,j,T,O,P,_,R]),Ct.ENGINE=Ct.OS=Ke([y,w]),e.exports&&(t=e.exports=Ct),t.UAParser=Ct;var Kt=typeof n!==u&&(n.jQuery||n.Zepto);if(Kt&&!Kt.ua){var Pt=new Ct;Kt.ua=Pt.getResult(),Kt.ua.get=function(){return Pt.getUA()},Kt.ua.set=function(_e){Pt.setUA(_e);var Le=Pt.getResult();for(var Oe in Le)Kt.ua[Oe]=Le[Oe]}}})(typeof window=="object"?window:xn)})(qg,qg.exports);var TZ=qg.exports;Object.defineProperty(Te,"__esModule",{value:!0});function AZ(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var fn=E,ht=AZ(fn),pT=TZ,Go=new pT,pn=Go.getBrowser(),IZ=Go.getCPU(),Yn=Go.getDevice(),$g=Go.getEngine(),Yo=Go.getOS(),dl=Go.getUA(),hT=function(t){return Go.setUA(t)},fl=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new pT(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},gT=Object.freeze({ClientUAInstance:Go,browser:pn,cpu:IZ,device:Yn,engine:$g,os:Yo,ua:dl,setUa:hT,parseUserAgent:fl});function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(n),!0).forEach(function(r){MZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pl(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pl=function(t){return typeof t}:pl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function PZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kZ(e,t,n){return t&&jZ(e.prototype,t),e}function MZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function em(){return em=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(this,arguments)}function FZ(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}}),t&&nm(e,t)}function tm(e){return tm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tm(e)}function nm(e,t){return nm=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},nm(e,t)}function _Z(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function gr(e,t){if(e==null)return{};var n=_Z(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ld(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RZ(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ld(e)}function DZ(e,t){return LZ(e)||BZ(e,t)||NZ(e,t)||VZ()}function LZ(e){if(Array.isArray(e))return e}function BZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,c=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw c}}return r}}function NZ(e,t){if(e){if(typeof e=="string")return vT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vT(e,t)}}function vT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hn={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Fn={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Ds={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},WZ={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},zZ=function(t){switch(t){case hn.Mobile:return{isMobile:!0};case hn.Tablet:return{isTablet:!0};case hn.SmartTv:return{isSmartTV:!0};case hn.Console:return{isConsole:!0};case hn.Wearable:return{isWearable:!0};case hn.Browser:return{isBrowser:!0};case hn.Embedded:return{isEmbedded:!0};default:return WZ}},UZ=function(t){return hT(t)},De=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},rm=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},om=function(t){var n=rm();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},HZ=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:De(n.major),browserFullVersion:De(n.version),browserName:De(n.name),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}},yT=function(t,n,r,o){return OZ({},t,{vendor:De(n.vendor),model:De(n.model),os:De(r.name),osVersion:De(r.version),ua:De(o)})},GZ=function(t,n,r,o){return{isSmartTV:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},YZ=function(t,n,r,o){return{isConsole:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},KZ=function(t,n,r,o){return{isWearable:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},XZ=function(t,n,r,o,i){return{isEmbedded:t,vendor:De(n.vendor),model:De(n.model),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}};function ZZ(e){var t=e?fl(e):gT,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,c=zZ(n.type),u=c.isBrowser,d=c.isMobile,p=c.isTablet,g=c.isSmartTV,v=c.isConsole,y=c.isWearable,b=c.isEmbedded;if(u)return HZ(u,r,o,i,a);if(g)return GZ(g,o,i,a);if(v)return YZ(v,o,i,a);if(d||p)return yT(c,n,i,a);if(y)return KZ(y,o,i,a);if(b)return XZ(b,n,o,i,a)}var bT=function(t){var n=t.type;return n===hn.Mobile},xT=function(t){var n=t.type;return n===hn.Tablet},CT=function(t){var n=t.type;return n===hn.Mobile||n===hn.Tablet},wT=function(t){var n=t.type;return n===hn.SmartTv},cd=function(t){var n=t.type;return n===hn.Browser},ST=function(t){var n=t.type;return n===hn.Wearable},ET=function(t){var n=t.type;return n===hn.Console},TT=function(t){var n=t.type;return n===hn.Embedded},AT=function(t){var n=t.vendor;return De(n)},IT=function(t){var n=t.model;return De(n)},OT=function(t){var n=t.type;return De(n,"browser")},PT=function(t){var n=t.name;return n===Ds.Android},jT=function(t){var n=t.name;return n===Ds.Windows},kT=function(t){var n=t.name;return n===Ds.MAC_OS},MT=function(t){var n=t.name;return n===Ds.WindowsPhone},FT=function(t){var n=t.name;return n===Ds.IOS},_T=function(t){var n=t.version;return De(n)},RT=function(t){var n=t.name;return De(n)},DT=function(t){var n=t.name;return n===Fn.Chrome},LT=function(t){var n=t.name;return n===Fn.Firefox},BT=function(t){var n=t.name;return n===Fn.Chromium},ud=function(t){var n=t.name;return n===Fn.Edge},NT=function(t){var n=t.name;return n===Fn.Yandex},VT=function(t){var n=t.name;return n===Fn.Safari||n===Fn.MobileSafari},WT=function(t){var n=t.name;return n===Fn.MobileSafari},zT=function(t){var n=t.name;return n===Fn.Opera},UT=function(t){var n=t.name;return n===Fn.InternetExplorer||n===Fn.Ie},HT=function(t){var n=t.name;return n===Fn.MIUI},GT=function(t){var n=t.name;return n===Fn.SamsungBrowser},YT=function(t){var n=t.version;return De(n)},KT=function(t){var n=t.major;return De(n)},XT=function(t){var n=t.name;return De(n)},ZT=function(t){var n=t.name;return De(n)},QT=function(t){var n=t.version;return De(n)},JT=function(){var t=rm(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Ls=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},qT=function(){var t=rm();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Zr=function(){return om("iPad")},$T=function(){return om("iPhone")},eA=function(){return om("iPod")},tA=function(t){return De(t)};function nA(e){var t=e||gT,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:wT(n),isConsole:ET(n),isWearable:ST(n),isEmbedded:TT(n),isMobileSafari:WT(r)||Zr(),isChromium:BT(r),isMobile:CT(n)||Zr(),isMobileOnly:bT(n),isTablet:xT(n)||Zr(),isBrowser:cd(n),isDesktop:cd(n),isAndroid:PT(o),isWinPhone:MT(o),isIOS:FT(o)||Zr(),isChrome:DT(r),isFirefox:LT(r),isSafari:VT(r),isOpera:zT(r),isIE:UT(r),osVersion:_T(o),osName:RT(o),fullBrowserVersion:YT(r),browserVersion:KT(r),browserName:XT(r),mobileVendor:AT(n),mobileModel:IT(n),engineName:ZT(i),engineVersion:QT(i),getUA:tA(a),isEdge:ud(r)||Ls(a),isYandex:NT(r),deviceType:OT(n),isIOS13:qT(),isIPad13:Zr(),isIPhone13:$T(),isIPod13:eA(),isElectron:JT(),isEdgeChromium:Ls(a),isLegacyEdge:ud(r)&&!Ls(a),isWindows:jT(o),isMacOs:kT(o),isMIUI:HT(r),isSamsungBrowser:GT(r)}}var rA=wT(Yn),oA=ET(Yn),iA=ST(Yn),QZ=TT(Yn),JZ=WT(pn)||Zr(),qZ=BT(pn),dd=CT(Yn)||Zr(),sA=bT(Yn),aA=xT(Yn)||Zr(),lA=cd(Yn),$Z=cd(Yn),cA=PT(Yo),uA=MT(Yo),dA=FT(Yo)||Zr(),eQ=DT(pn),tQ=LT(pn),nQ=VT(pn),rQ=zT(pn),fA=UT(pn),oQ=_T(Yo),iQ=RT(Yo),sQ=YT(pn),aQ=KT(pn),lQ=XT(pn),cQ=AT(Yn),uQ=IT(Yn),dQ=ZT($g),fQ=QT($g),pQ=tA(dl),hQ=ud(pn)||Ls(dl),gQ=NT(pn),mQ=OT(Yn),vQ=qT(),yQ=Zr(),bQ=$T(),xQ=eA(),CQ=JT(),wQ=Ls(dl),SQ=ud(pn)&&!Ls(dl),EQ=jT(Yo),TQ=kT(Yo),AQ=HT(pn),IQ=GT(pn),OQ=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=fl(t),r=n.device,o=n.browser,i=n.os,a=n.engine,c=n.ua;return nA({device:r,browser:o,os:i,engine:a,ua:c})},PQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return cA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},jQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return lA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},kQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return fA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},MQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return dA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},FQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return dd?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},_Q=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return aA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},RQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return uA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},DQ=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=gr(t,["renderWithFragment","children","viewClassName","style"]);return sA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},LQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return rA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},BQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return oA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},NQ=function(t){var n=t.renderWithFragment,r=t.children,o=gr(t,["renderWithFragment","children"]);return iA?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",o,r):null},VQ=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=gr(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?ht.createElement(fn.Fragment,null,r):ht.createElement("div",i,r):null};function WQ(e){return function(t){FZ(n,t);function n(r){var o;return PZ(this,n),o=RZ(this,tm(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(ld(o)),o.onOrientationChange=o.onOrientationChange.bind(ld(o)),o.onPageLoad=o.onPageLoad.bind(ld(o)),o.state={isLandscape:!1,isPortrait:!1},o}return kZ(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":pl(window))!==void 0&&dd&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ht.createElement(e,em({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ht.Component)}function zQ(){var e=fn.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=DZ(e,2),n=t[0],r=t[1],o=fn.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return fn.useEffect(function(){return(typeof window>"u"?"undefined":pl(window))!==void 0&&dd&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function pA(e){var t=e||window.navigator.userAgent;return fl(t)}function UQ(e){var t=e||window.navigator.userAgent,n=pA(t),r=nA(n);return[r,n]}Te.AndroidView=PQ,Te.BrowserTypes=Fn;var HQ=Te.BrowserView=jQ;Te.ConsoleView=BQ,Te.CustomView=VQ,Te.IEView=kQ,Te.IOSView=MQ,Te.MobileOnlyView=DQ;var GQ=Te.MobileView=FQ;Te.OsTypes=Ds,Te.SmartTVView=LQ,Te.TabletView=_Q,Te.WearableView=NQ,Te.WinPhoneView=RQ,Te.browserName=lQ,Te.browserVersion=aQ,Te.deviceDetect=ZZ,Te.deviceType=mQ,Te.engineName=dQ,Te.engineVersion=fQ,Te.fullBrowserVersion=sQ,Te.getSelectorsByUserAgent=OQ,Te.getUA=pQ,Te.isAndroid=cA,Te.isBrowser=lA,Te.isChrome=eQ,Te.isChromium=qZ,Te.isConsole=oA,Te.isDesktop=$Z,Te.isEdge=hQ,Te.isEdgeChromium=wQ,Te.isElectron=CQ,Te.isEmbedded=QZ,Te.isFirefox=tQ,Te.isIE=fA,Te.isIOS=dA,Te.isIOS13=vQ,Te.isIPad13=yQ,Te.isIPhone13=bQ,Te.isIPod13=xQ,Te.isLegacyEdge=SQ,Te.isMIUI=AQ,Te.isMacOs=TQ,Te.isMobile=dd,Te.isMobileOnly=sA,Te.isMobileSafari=JZ,Te.isOpera=rQ,Te.isSafari=nQ,Te.isSamsungBrowser=IQ,Te.isSmartTV=rA,Te.isTablet=aA,Te.isWearable=iA,Te.isWinPhone=uA,Te.isWindows=EQ,Te.isYandex=gQ,Te.mobileModel=uQ,Te.mobileVendor=cQ,Te.osName=iQ,Te.osVersion=oQ,Te.parseUserAgent=fl,Te.setUserAgent=UZ,Te.useDeviceData=pA,Te.useDeviceSelectors=UQ,Te.useMobileOrientation=zQ,Te.withOrientationChange=WQ;var YQ=typeof global=="object"&&global&&global.Object===Object&&global,KQ=typeof self=="object"&&self&&self.Object===Object&&self,hA=YQ||KQ||Function("return this")(),fd=hA.Symbol,gA=Object.prototype,XQ=gA.hasOwnProperty,ZQ=gA.toString,hl=fd?fd.toStringTag:void 0;function QQ(e){var t=XQ.call(e,hl),n=e[hl];try{e[hl]=void 0;var r=!0}catch{}var o=ZQ.call(e);return r&&(t?e[hl]=n:delete e[hl]),o}var JQ=Object.prototype,qQ=JQ.toString;function $Q(e){return qQ.call(e)}var eJ="[object Null]",tJ="[object Undefined]",mA=fd?fd.toStringTag:void 0;function nJ(e){return e==null?e===void 0?tJ:eJ:mA&&mA in Object(e)?QQ(e):$Q(e)}function rJ(e){return e!=null&&typeof e=="object"}var oJ="[object Symbol]";function iJ(e){return typeof e=="symbol"||rJ(e)&&nJ(e)==oJ}var sJ=/\s/;function aJ(e){for(var t=e.length;t--&&sJ.test(e.charAt(t)););return t}var lJ=/^\s+/;function cJ(e){return e&&e.slice(0,aJ(e)+1).replace(lJ,"")}function pd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var vA=NaN,uJ=/^[-+]0x[0-9a-f]+$/i,dJ=/^0b[01]+$/i,fJ=/^0o[0-7]+$/i,pJ=parseInt;function yA(e){if(typeof e=="number")return e;if(iJ(e))return vA;if(pd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cJ(e);var n=dJ.test(e);return n||fJ.test(e)?pJ(e.slice(2),n?2:8):uJ.test(e)?vA:+e}var im=function(){return hA.Date.now()},hJ="Expected a function",gJ=Math.max,mJ=Math.min;function hd(e,t,n){var r,o,i,a,c,u,d=0,p=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(hJ);t=yA(t)||0,pd(n)&&(p=!!n.leading,g="maxWait"in n,i=g?gJ(yA(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function y(_){var R=r,N=o;return r=o=void 0,d=_,a=e.apply(N,R),a}function b(_){return d=_,c=setTimeout(A,t),p?y(_):a}function x(_){var R=_-u,N=_-d,Y=t-R;return g?mJ(Y,i-N):Y}function w(_){var R=_-u,N=_-d;return u===void 0||R>=t||R<0||g&&N>=i}function A(){var _=im();if(w(_))return j(_);c=setTimeout(A,x(_))}function j(_){return c=void 0,v&&r?y(_):(r=o=void 0,a)}function T(){c!==void 0&&clearTimeout(c),d=0,r=u=o=c=void 0}function P(){return c===void 0?a:j(im())}function O(){var _=im(),R=w(_);if(r=arguments,o=this,u=_,R){if(c===void 0)return b(u);if(g)return clearTimeout(c),c=setTimeout(A,t),y(u)}return c===void 0&&(c=setTimeout(A,t)),a}return O.cancel=T,O.flush=P,O}var vJ="Expected a function";function yJ(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(vJ);return pd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),hd(e,t,{leading:r,maxWait:t,trailing:o})}var Bs=function(){return Bs=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Bs.apply(this,arguments)};function bA(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function xA(e){return!e||!e.ownerDocument?document:e.ownerDocument}var CA=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var a=i[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=o.value}}return r},t);return n};function wA(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function SA(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function EA(e){return".".concat(e.split(" ").join("."))}var sm=!!(typeof window<"u"&&window.document&&window.document.createElement),bJ=Object.freeze({__proto__:null,addClasses:wA,canUseDOM:sm,classNamesToQuery:EA,getElementDocument:xA,getElementWindow:bA,getOptions:CA,removeClasses:SA}),Ns=null,TA=null;sm&&window.addEventListener("resize",function(){TA!==window.devicePixelRatio&&(TA=window.devicePixelRatio,Ns=null)});function AA(){if(Ns===null){if(typeof document>"u")return Ns=0,Ns;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),Ns=n}return Ns}var Ko=bA,am=xA,xJ=CA,Xo=wA,Zo=SA,_n=EA,gd=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!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 o=Ko(r.el);r.scrollXTicking||(o.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(o.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Xo(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Zo(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Xo(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Zo(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(o){r.mouseX=o.clientX,r.mouseY=o.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var i,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(i||a)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(i&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(o,"x"):r.onTrackClick(o,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(o,"y"):r.onTrackClick(o,"y"))))}},this.drag=function(o){var i,a,c,u,d,p,g,v,y,b,x;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,A=r.axis[r.draggedAxis].track,j=(a=(i=A.rect)===null||i===void 0?void 0:i[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,T=r.axis[r.draggedAxis].scrollbar,P=(u=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,O=parseInt((p=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?w=o.pageY:w=o.pageX;var _=w-((v=(g=A.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;_=r.draggedAxis==="x"&&r.isRtl?((b=(y=A.rect)===null||y===void 0?void 0:y[r.axis[r.draggedAxis].sizeAttr])!==null&&b!==void 0?b:0)-T.size-_:_;var R=_/(j-T.size),N=R*(P-O);r.draggedAxis==="x"&&r.isRtl&&(N=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-N:N),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=N}},this.onEndDrag=function(o){r.isDragging=!1;var i=am(r.el),a=Ko(r.el);o.preventDefault(),o.stopPropagation(),Zo(r.el,r.classNames.dragging),r.onStopScrolling(),i.removeEventListener("mousemove",r.drag,!0),i.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){i.removeEventListener("click",r.preventClick,!0),i.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=Bs(Bs({},e.defaultOptions),n),this.classNames=Bs(Bs({},e.defaultOptions.classNames),n.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=yJ(this._onMouseMove,64),this.onWindowResize=hd(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=hd(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=hd(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 n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==a.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:AA()}catch{return AA()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=am(t),o=Ko(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){sm&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(_n(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_n(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_n(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_n(this.classNames.offset)),this.maskEl=this.el.querySelector(_n(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_n(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_n(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_n(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_n(this.classNames.track)).concat(_n(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_n(this.classNames.track)).concat(_n(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(_n(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_n(this.classNames.scrollbar)))||null,this.options.autoHide||(Xo(this.axis.x.scrollbar.el,this.classNames.visible),Xo(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Ko(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),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,i=r.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){o&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new r.MutationObserver(function(){r.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=Ko(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,i=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=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,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="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 g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>i-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-g,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 n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],i=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,a=i/o,c;return c=Math.max(~~(a*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,o;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(a-u),g=~~((c-i.size)*p);g=t==="x"&&this.isRtl?-g+(c-i.size):g,i.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.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?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Xo(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.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Zo(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 n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Xo(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Xo(n.scrollbar.el,this.classNames.hover):Zo(n.scrollbar.el,this.classNames.hover)):(Zo(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Zo(this.axis[t].track.el,this.classNames.hover),Zo(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var o=am(this.el),i=Ko(this.el),a=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Xo(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,o,i,a,c;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Ko(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[n].scrollbar,g=(i=(o=p.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&i!==void 0?i:0,v=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),y=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],b=n==="y"?this.mouseY-g:this.mouseX-g,x=b<0?-1:1,w=x===-1?y-v:y+v,A=40,j=function(){r.contentWrapperEl&&(x===-1?y>w&&(y-=A,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)):y<w&&(y+=A,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)))};j()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Ko(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,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return r.call(o,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,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=xJ,e.helpers=bJ,e}(),Kn=function(){return Kn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Kn.apply(this,arguments)};function CJ(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var IA=D.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,i=CJ(e,["children","scrollableNodeProps"]),a=D.useRef(),c=D.useRef(),u=D.useRef(),d={},p={};Object.keys(i).forEach(function(y){Object.prototype.hasOwnProperty.call(gd.defaultOptions,y)?d[y]=i[y]:p[y]=i[y]});var g=Kn(Kn({},gd.defaultOptions.classNames),d.classNames),v=Kn(Kn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||gd.defaultOptions.ariaLabel});return D.useEffect(function(){var y;return c.current=v.ref?v.ref.current:c.current,a.current&&(y=new gd(a.current,Kn(Kn(Kn({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),D.createElement("div",Kn({"data-simplebar":"init",ref:a},p),D.createElement("div",{className:g.wrapper},D.createElement("div",{className:g.heightAutoObserverWrapperEl},D.createElement("div",{className:g.heightAutoObserverEl})),D.createElement("div",{className:g.mask},D.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Kn(Kn({},v),{ref:c}),contentNodeRef:u,contentNodeProps:{className:g.contentEl,ref:u}}):D.createElement("div",Kn({},v),D.createElement("div",{className:g.contentEl},n)))),D.createElement("div",{className:g.placeholder})),D.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},D.createElement("div",{className:g.scrollbar})),D.createElement("div",{className:"".concat(g.track," simplebar-vertical")},D.createElement("div",{className:g.scrollbar})))});IA.displayName="SimpleBar";const wJ=ue(HQ)({flexGrow:1,height:"100%",overflow:"hidden"}),SJ=ue(IA)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:et(e.palette.grey[500],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}));function OA({children:e,sx:t,...n}){return f.jsxs(f.Fragment,{children:[f.jsx(wJ,{children:f.jsx(SJ,{timeout:500,clickOnTrack:!1,sx:t,...n,children:e})}),f.jsx(GQ,{children:f.jsx(S.Box,{sx:{overflowX:"auto",...t},...n,children:e})})]})}function PA(e){const t=S.useTheme(),n=Ir(e,{flexShrink:{md:0},zIndex:1200}),{downLg:r}=Gn(),{open:o,handleDrawerToggle:i,width:a}=Pi(),c=r?S.Drawer:EZ,u=document.body,d=E.useMemo(()=>r?{container:u,variant:"temporary",onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",lg:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:a,borderRight:`1px solid ${t.palette.divider}`,backgroundImage:"none",boxShadow:"inherit",overflow:"auto"}}}:{variant:"permanent"},[r,u,i,a,t.palette.divider]);return f.jsx(S.Box,{component:"nav",sx:n,"aria-label":"mailbox folders",children:f.jsxs(c,{...d,open:o,children:[f.jsx(uT,{}),f.jsx(OA,{sx:{"& .simplebar-content":{display:"flex",flexDirection:"column"}},children:e.children})]})})}function lm(e){const{name:t,version:n,copy:r="&copy; Applica Software Guru for"}=e;return f.jsx(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",flexGrow:1,height:"auto",sx:{pt:1},children:f.jsxs(S.Typography,{variant:"caption",children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:r||""}})," ",t," - ",n]})})}const jA=ue(S.AppBar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Cn();return{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...!t&&{width:`calc(100% - ${e.spacing(7.5)})`},...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}}}),kA=E.forwardRef(function(t,n){const r=Ir(t,{color:"text.primary"},{defaults:!0});return f.jsx(S.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),EJ=E.forwardRef(function(t,n){const r=Ir(t,{color:"text.primary"},{defaults:!0});return f.jsx(tu,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),Vs=E.forwardRef(function(t,n){const r=Ir(t,{color:"text.primary",borderStyle:"none",padding:1,fontSize:"1.5rem",width:36,height:36},{defaults:!0});return f.jsx(S.ToggleButton,{ref:n,...t,color:"secondary",sx:r})});function MA({onClick:e=void 0}){const{open:t,anchorEl:n,handleClose:r,handleToggle:o}=_s(),[i,a]=q.useLocaleState(),c=q.useLocales();if(c.length===0)return null;function u(d){if(e){e(d,r);return}a(d),r()}return f.jsxs(f.Fragment,{children:[f.jsx(kA,{value:"locale",onClick:o,sx:{minWidth:"auto"},children:f.jsxs(S.Stack,{direction:"row",spacing:.5,children:[f.jsx(S.Typography,{variant:"body1",children:i.toUpperCase()}),t?f.jsx(Ue.CaretUpOutlined,{}):f.jsx(Ue.CaretDownOutlined,{})]})}),f.jsx(S.Menu,{id:"menu-appbar",anchorEl:n,keepMounted:!0,open:t,onClose:r,children:c.map((d,p)=>f.jsx(S.MenuItem,{onClick:()=>u(d.locale),children:d.name},p))})]})}const TJ={ml:{xs:0,lg:-2}};function FA(){const{open:e,handleDrawerToggle:t}=Pi();return f.jsx(Vs,{value:"drawer","aria-label":"open drawer",sx:TJ,onChange:t,selected:e,children:e?f.jsx(Ue.MenuFoldOutlined,{}):f.jsx(Ue.MenuUnfoldOutlined,{})})}function _A(e){const t=E.useRef(),n=S.useTheme(),{downLg:r,horizontal:o}=Gn(),{open:i,width:a}=Pi(),c=r?S.AppBar:jA,d={position:"fixed",color:"inherit",elevation:0,sx:Ir(e,{borderBottom:`1px solid ${n.palette.divider}`,zIndex:1200,width:o?"100%":i?`calc(100% - ${a}px)`:{xs:"100%",lg:"calc(100% - 60px)"}})};return r||te.extend(d,{open:i}),f.jsx(c,{ref:t,...d,children:f.jsxs(S.Toolbar,{sx:{"& > *":{marginX:n.spacing(.325)}},children:[!o&&f.jsx(FA,{}),e.children]})})}function AJ(e){const t=S.useTheme(),{notification:n,onClick:r,selected:o,divider:i}=e,{resource:a}=ad(),c=q.useNotify(),u=q.useRedirect(),[d]=q.useUpdate(a,{id:n==null?void 0:n.id,data:{...n,readed:Or().toISOString()}},{onSuccess:()=>{n!=null&&n.resource?n!=null&&n.resource.startsWith("/")?(u(n==null?void 0:n.resource),r()):(r(),document.location.href=n==null?void 0:n.resource):r()},onFailure:()=>{c("resources.notifications.messages.readed.error","warning")}}),p=E.useCallback(()=>d(),[d]),[g]=q.useLocaleState(),v=E.useMemo(()=>Or(n.created).locale(g).fromNow(),[n,g]);return f.jsx(S.ListItem,{disablePadding:!0,divider:i,children:f.jsxs(S.ListItemButton,{selected:o,onClick:p,children:[f.jsx(S.ListItemAvatar,{children:f.jsx(S.Avatar,{sx:{color:"primary.main",bgcolor:"primary.lighter"},children:f.jsx(Ue.MessageOutlined,{})})}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",wordBreak:"break-word",width:"90%"},primary:n.title,secondary:n.content}),f.jsx(S.Box,{flexGrow:1,flexShrink:1,minWidth:t.spacing(2)}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},primary:v,primaryTypographyProps:{variant:"caption"}})]})})}function RA(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:i,resource:a,selectedIds:c=[],onUnselectItems:u}=q.useListContext(e),d=q.useTranslate(),p=E.useCallback(()=>{u()},[u]);return f.jsx(IJ,{className:r,children:f.jsxs(S.Toolbar,{"data-test":"bulk-actions-toolbar",className:Be(Pr.toolbar,{[Pr.collapsed]:c.length===0}),...q.sanitizeListRestProps(o),children:[f.jsxs("div",{className:Pr.title,children:[f.jsx(S.IconButton,{className:Pr.icon,"aria-label":d("ra.action.unselect"),title:d("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(en.Close,{fontSize:"small"})}),f.jsx(S.Typography,{color:"inherit",variant:"subtitle1",children:d(t,{_:t,smart_count:c.length})})]}),f.jsx(L.TopToolbar,{className:Pr.topToolbar,children:E.Children.map(n,g=>E.isValidElement(g)?E.cloneElement(g,{filterValues:i,resource:a,selectedIds:c}):null)})]})})}const ji="RaBulkActionsToolbar",Pr={toolbar:`${ji}-toolbar`,topToolbar:`${ji}-topToolbar`,buttons:`${ji}-buttons`,collapsed:`${ji}-collapsed`,title:`${ji}-title`,icon:`${ji}-icon`},IJ=ue("div",{name:ji,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${Pr.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Zp(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${Pr.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${Pr.buttons}`]:{},[`& .${Pr.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${Pr.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${Pr.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),cm={p:0,m:0},DA={p:2,m:0,borderRadius:0,width:"100%"};function OJ(e){const{children:t}=e,[n,r]=D.useState(null);function o(b){r(b.currentTarget)}function i(){r(null)}const a=S.useMediaQuery(b=>b.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:d=[],onUnselectItems:p}=L.useListContext(e),g=!!n&&d!==void 0&&d.length>0,v=g?"simple-popover":void 0,y=D.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(S.Fade,{in:d!==void 0&&d.length>0,children:f.jsxs(S.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(S.Fab,{color:"primary","aria-label":"manage",onClick:o,children:d==null?void 0:d.length}),f.jsx(S.Popover,{id:v,open:g,anchorEl:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(S.List,{sx:cm,children:[f.jsx(S.ListItem,{sx:cm,children:f.jsx(L.Button,{onClick:y,sx:DA,label:"ra.action.unselect",startIcon:f.jsx(mg,{}),children:f.jsx(mg,{})})}),D.Children.map(t,b=>{var x;return f.jsx(S.ListItem,{sx:cm,children:D.isValidElement(b)?D.cloneElement(b,{filterValues:c,resource:u,selectedIds:d,sx:DA,...(x=b.props)!=null&&x.popover?{closePopover:i}:{}}):null})})]})})]})})}const LA=E.createContext({});LA.displayName="DatagridContext";function PJ({children:e,value:t}){return f.jsx(LA.Provider,{value:t,children:e})}const jJ=S.styled("div")(({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center",gap:e.spacing(2)})),gl="ApplicaEmpty",ki={message:`${gl}-message`,icon:`${gl}-icon`,toolbar:`${gl}-toolbar`},kJ=S.styled("span",{name:gl,slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,height:"calc(100vh - 200px)",[`& .${ki.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${ki.icon}`]:{fontSize:"9em",marginTop:"16px",marginBottom:"16px"},[`& .${ki.toolbar}`]:{textAlign:"center"}}));function ml({actions:e,className:t,hasCreate:n,icon:r=f.jsx(Ue.DropboxOutlined,{className:ki.icon}),title:o,subtitle:i,sx:a,...c}){const{hasCreate:u}=q.useResourceDefinition(c),d=n??u,p=q.useResourceContext(c),g=q.useTranslate(),v=q.useGetResourceLabel(),y=p?g(`resources.${p}.forcedCaseName`,{smart_count:0,_:v(p,0)}):g("ra.empty.no_resource"),b=g("ra.page.empty",{name:y}),x=g("ra.page.invite");return f.jsxs(kJ,{className:Be(`${gl}-root`,t),sx:a,children:[f.jsxs(S.Box,{className:ki.message,children:[r,f.jsx(S.Typography,{variant:"h4",paragraph:!0,children:o||g(`resources.${p}.empty`,{_:b})}),i||(d?f.jsx(S.Typography,{variant:"body1",children:g(`resources.${p}.invite`,{_:x})}):null)]}),f.jsx(jJ,{className:ki.toolbar,children:e||(d?f.jsx(cE,{disableFloatingButton:!0}):null)})]})}const BA=f.jsx(L.BulkDeleteButton,{}),NA=D.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?L.PureDatagridBody:L.DatagridBody,header:o=L.DatagridHeader,children:i,className:a,empty:c,expand:u,bulkActionsToolbar:d=!1,bulkActionButtons:p=BA,hover:g,isRowSelectable:v,isRowExpandable:y,resource:b,rowClick:x,rowSx:w,rowStyle:A,size:j="small",sx:T,expandSingle:P=!1,...O}=e,_=q.useTranslate(),{sort:R,data:N,isLoading:Y,onSelect:X,onToggleItem:G,selectedIds:re,setSort:ne,total:Z}=q.useListContext(e),J=!!p,V=E.useMemo(()=>({isRowExpandable:y,expandSingle:P}),[y,P]),$=E.useRef(null);E.useEffect(()=>{(!re||re.length===0)&&($.current=null)},[JSON.stringify(re)]);const W=E.useCallback((U,ee)=>{const de=N.map(fe=>fe.id),ge=de.indexOf($.current);if($.current=ee.target.checked?U:null,ee.shiftKey&&ge!==-1){const fe=de.indexOf(U),he=de.slice(Math.min(ge,fe),Math.max(ge,fe)+1),me=ee.target.checked?kG(re,he):YG(re,he);X(v?me.filter(Se=>v(N.find(be=>be.id===Se))):me)}else G(U)},[N,v,X,G,re]),ie=f.jsx(ml,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:_("ra.navigation.no_results")})});return Y===!0?f.jsx(L.DatagridLoading,{className:a,expand:u,hasBulkActions:J,nbChildren:D.Children.count(i),size:j}):N==null||N.length===0||Z===0?c||ie:f.jsx(PJ,{value:V,children:f.jsxs(L.DatagridRoot,{sx:T,className:Be(L.DatagridClasses.root,a),children:[d!=null&&E.isValidElement(d)?E.cloneElement(d,{selectedIds:re,total:Z}):p!==!1?f.jsx(RA,{children:E.isValidElement(p)?p:BA}):null,f.jsx("div",{className:L.DatagridClasses.tableWrapper,children:f.jsxs(S.Table,{ref:t,className:L.DatagridClasses.table,size:j,...FJ(O),children:[VA(o,{children:i,sort:R,data:N,hasExpand:!!u,hasBulkActions:J,isRowSelectable:v,onSelect:X,resource:b,selectedIds:re,setSort:ne},i),VA(r,{expand:u,rowClick:x,data:N,hasBulkActions:J,hover:g,onToggleItem:W,resource:b,rowSx:w,rowStyle:A,selectedIds:re,isRowSelectable:v},i)]})})]})})});function VA(e,t,n){return E.isValidElement(e)?E.cloneElement(e,t,n):E.createElement(e,t,n)}const MJ=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"];function FJ(e){return Object.keys(q.sanitizeListRestProps(e)).filter(t=>!MJ.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{})}NA.displayName="Datagrid";const _J=ue(NA,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function RJ(e){return f.jsx(_J,{...e})}const um=E.createContext({hasFilterSidebar:!1});function WA(){var e;return((e=E.useContext(um))==null?void 0:e.hasFilterSidebar)??!1}function dm({source:e,value:t}){const n=E.useContext(L.FilterContext),r=L.useResourceContext(),o=E.useMemo(()=>n.find(u=>{var d;return E.isValidElement(u)&&((d=u.props)==null?void 0:d.source)===e}),[n,e]),i=E.useMemo(()=>E.isValidElement(o)?o.props:{},[o]);if(!(i!=null&&i.chip))throw new Error(`No chip component found for filter source "${e}". Ensure your filter components define a 'chip' prop.`);const a={...i,record:{[e]:t},value:t,resource:r};return E.isValidElement(i.chip)?E.cloneElement(i.chip,a):Ze.isFunction(i.chip)?E.createElement(i.chip,a):null}function DJ(e){const{value:t,source:n,lastItem:r}=e,o=dm({source:n,value:t});return f.jsxs(S.Stack,{children:[f.jsx(S.ListItem,{alignItems:"flex-start",sx:{pl:0},children:f.jsx(S.ListItemText,{primary:o,sx:{my:0}})}),r===n?null:f.jsx(S.Divider,{})]})}function LJ(){const{filterValues:e}=q.useListContext(),t=q.useTranslate();return f.jsxs(S.Stack,{mt:4,width:"100%",children:[f.jsx(S.Typography,{variant:"h6",fontWeight:"bold",color:"secondary",children:t("ra.title.selected_filters")}),f.jsx(S.List,{sx:{bgcolor:"background.paper",pt:0},children:e?Object.entries(e).map(([n,r])=>{const o=Object.entries(e).pop(),i=o?o[0]:"";return f.jsx(DJ,{lastItem:i,value:r,source:n},n)}):null})]})}function BJ(e){const{onClose:t,addQuery:n}=e,r=q.useTranslate(),{handleSubmit:o}=tn.useFormContext(),i=E.useCallback(a=>{n(a.queryName)},[n]);return f.jsxs(S.Toolbar,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{variant:"contained",onClick:o(i),children:r("ra.action.save")})]})}function zA(e){const{open:t,onClose:n}=e,{filterValues:r,sort:o,perPage:i,displayedFilters:a,resource:c}=q.useListContext(),[u,d]=yS(c),p=q.useTranslate(),g=E.useCallback(y=>{const b={label:y.trim(),value:{filter:r,sort:o,perPage:i,displayedFilters:a}},x=bS(u);d(x.concat(b)),n()},[r,o,i,a,u,d,n]),v=E.useCallback(()=>y=>{if(u.some(b=>b.label===(y==null?void 0:y.trim())))return"ra.validation.already_exists"},[u]);return f.jsx(S.Dialog,{open:t,onClose:n,maxWidth:"xs",fullWidth:!0,children:f.jsxs(Bg,{toolbar:f.jsx(BJ,{addQuery:g,onClose:n}),title:p("ra.title.save_favorite_filter"),modal:!0,children:[f.jsx(hr,{fullWidth:!0,source:"queryName",label:p("ra.input.query_name"),placeholder:p("ra.input.query_name_placeholder"),validate:[q.required(),v()]}),f.jsx(LJ,{})]})})}function UA(){const[e,t]=E.useState(!1),n=q.useTranslate(),r=E.useCallback(()=>{t(!1)},[]),o=E.useCallback(()=>{t(!0)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{sx:{height:"36px"},variant:"contained",onClick:o,children:n("ra.action.save_filter")}),f.jsx(zA,{open:e,onClose:r})]})}function NJ(e){const{onDelete:t,value:n,source:r}=e,o=dm({source:r,value:n});return o&&f.jsx(S.Chip,{label:o,variant:"combined",color:"primary",sx:{height:"36px","& .MuiChip-deleteIcon":{fontSize:"1rem !important",mr:1}},deleteIcon:f.jsx(en.Close,{}),onDelete:t})}function VJ(){const{filterValues:e,setFilters:t}=q.useListContext(),n=S.useTheme(),r=S.useMediaQuery(n.breakpoints.down("sm")),o=q.useTranslate(),i=E.useCallback(()=>{t({})},[t]),a=E.useCallback(u=>{const d={...e};delete d[u],t(d)},[e,t]),c=E.useCallback(()=>f.jsxs(S.Stack,{flexDirection:"row",gap:2,children:[f.jsx(UA,{}),f.jsx(S.Button,{variant:"outlined",onClick:i,children:o("ra.action.reset_filters")})]}),[i,o]);return f.jsxs(S.Stack,{gap:2,flexDirection:r?"column":"row",children:[f.jsxs(S.Stack,{flexDirection:"row",flexWrap:r?"nowrap":"wrap",gap:2,py:.5,overflow:"auto",width:r?window.innerWidth-58:"auto",children:[Object.entries(e).map(([u,d])=>f.jsx(NJ,{source:u,value:d,onDelete:()=>a(u)},u)),r?null:f.jsx(c,{})]}),r?f.jsx(c,{}):null]})}function fm(){const{filterValues:e}=q.useListContext(),t=S.useTheme(),n=S.useMediaQuery(t.breakpoints.down("sm")),r=q.useTranslate();return e&&!Ze.isEmpty(e)?f.jsxs(S.Stack,{flexDirection:n?"column":"row",alignItems:"baseline",gap:2,m:n?2:0,children:[f.jsx(S.Typography,{variant:"h6",color:"secondary",whiteSpace:"nowrap",children:r("ra.title.active_filters")}),f.jsx(VJ,{})]}):null}function HA({open:e,onClose:t,filterToRemove:n}){var b;const r=q.useTranslate(),{resource:o,filterValues:i,sort:a,perPage:c,displayedFilters:u}=q.useListContext(),d=((b=n==null?void 0:n.value)==null?void 0:b.filter)||i,p=(n==null?void 0:n.label)??"",[g,v]=L.useSavedQueries(o);function y(){const x={filter:d,sort:a,perPage:c,displayedFilters:u},w=L.extractValidSavedQueries(g),A=w.findIndex(j=>$a(j.value,x));v([...w.slice(0,A),...w.slice(A+1)]),t()}return f.jsxs(S.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[f.jsx(S.DialogTitle,{id:"alert-dialog-title",children:r("ra.saved_queries.remove_dialog_title",{label:p,_:"Remove saved query?"})}),f.jsx(S.DialogContent,{children:f.jsx(S.DialogContentText,{children:r("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"})})}),f.jsxs(S.DialogActions,{children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{onClick:y,color:"primary",autoFocus:!0,children:r("ra.action.confirm")})]})]})}function WJ(e){const{query:t}=e,[n,r]=E.useState(!1),o=E.useCallback(()=>{r(a=>!a)},[]),i=q.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{size:"small",color:"primary",onClick:o,children:i("ra.action.delete")}),f.jsx(HA,{open:n,onClose:o,filterToRemove:t})]})}function GA(e){const{closeSidebar:t}=e,{resource:n,setFilters:r,setSort:o,setPage:i,setPerPage:a}=q.useListContext(),[c,u]=E.useState(!1),d=pt(),[p]=yS(n),g=bS(p),v=q.useTranslate(),y=E.useCallback(()=>{u(x=>!x)},[]),b=E.useCallback(x=>{const{value:w}=x;r(w.filter),o({field:w.sort.field,order:w.sort.order}),i(1),a(w.perPage),t()},[r,o,i,a,t]);return p&&p.length>0?f.jsx(S.Box,{sx:{mt:"-1px",mb:2,"& .MuiAccordion-root":{borderColor:d.palette.divider,"& .Mui-expanded:last-of-type":{marginBottom:"inherit"},"& .MuiAccordionSummary-root":{bgcolor:"transparent",flexDirection:"row"},"& .MuiAccordionSummary-content":{justifyContent:"space-between",marginLeft:0},"& .MuiAccordionDetails-root":{borderColor:d.palette.divider},"& .MuiAccordionSummary-expandIconWrapper":{color:d.palette.text.primary,"&.Mui-expanded":{transform:"rotate(180deg)"}}}},children:f.jsxs(S.Accordion,{expanded:c,onChange:y,children:[f.jsx(S.AccordionSummary,{sx:{px:"20px"},expandIcon:f.jsx(Hw,{fontSize:"small"}),children:f.jsxs(S.Typography,{variant:"h5",fontWeight:"bold",children:[v("ra.action.saved_filters")," (",g.length,")"]})}),g==null?void 0:g.map((x,w)=>f.jsxs(S.AccordionDetails,{sx:{display:"flex",justifyContent:"space-between",px:"20px",alignItems:"center"},children:[f.jsx(S.Typography,{variant:"body1",children:x.label}),f.jsxs(S.Stack,{flexDirection:"row",alignItems:"center",children:[f.jsx(WJ,{query:x}),f.jsx(S.Button,{size:"small",color:"primary",onClick:()=>b({value:x.value}),children:v("ra.action.apply")})]})]},w))]})}):f.jsx(S.Box,{height:16})}function zJ(e){const{sx:t}=e;return f.jsx(S.Box,{sx:{...t,flex:"1 1 auto",backgroundColor:"background.paper",overflowY:"auto"},children:e.children})}const UJ=444;function HJ(e){const{sx:t,anchor:n="right",variant:r="temporary",open:o=!1,onClose:i}=e,a=S.useTheme(),u=S.useMediaQuery(a.breakpoints.down("sm"))?"bottom":n,d=E.useCallback(()=>{Ze.isFunction(i)&&i()},[i]),p={backgroundImage:"none",boxShadow:"-10px 4px 42px 0px rgba(0, 0, 0, 0.25)",width:{sm:"30%"},maxWidth:{sm:UJ},[a.breakpoints.down("sm")]:{width:"100% !important",maxWidth:"100% !important"}};return f.jsx(S.Drawer,{...e,anchor:u,onClose:d,open:o,PaperProps:{sx:{...p,...t}},variant:r,children:e.children})}function GJ(e){return f.jsxs(S.Box,{children:[f.jsx(S.Divider,{}),f.jsx(S.Box,{bgcolor:"background.paper",px:2,py:2.5,children:e.children})]})}function YJ(e){const{sx:t}=e;return f.jsxs(S.Box,{children:[f.jsx(S.Stack,{alignItems:"center",bgcolor:"background.paper",direction:"row",px:2.5,py:2,spacing:2,minHeight:"64px",sx:t,children:e.children}),f.jsx(S.Divider,{sx:{opacity:.6}})]})}function KJ(e){const{primary:t,secondary:n}=e;return f.jsxs(S.Box,{display:"inline-flex",flexGrow:1,flexShrink:1,flexDirection:"column",children:[t?f.jsx(S.Typography,{variant:"h5",children:t}):null,n?f.jsx(S.Typography,{variant:"h6",children:n}):null]})}function XJ(e){return f.jsx(S.Box,{display:"inline-flex",flexGrow:0,flexShrink:0,children:e.children})}const mr=HJ;mr.Content=zJ,mr.Footer=GJ,mr.Header=YJ,mr.HeaderText=KJ,mr.HeaderAction=XJ;function ZJ(e){const{form:t,filters:n}=e,r=q.useResourceContext();return f.jsx(L.FilterContext.Provider,{value:Array.isArray(n)?n:[n],children:f.jsx(tn.FormProvider,{...t,children:f.jsx(S.Box,{px:"20px",children:n?(Array.isArray(n)?n:[n]).map((o,i)=>{const a={...o.props,display:"label"};return E.isValidElement(o)?f.jsx(S.Box,{mb:1,children:E.cloneElement(o,{...a,resource:r})},i):null}):null})})})}function md(e){const{filters:t}=e,[n,r]=E.useState(!1),{setSidebarOpen:o,sidebarOpen:i}=gm(),{filterValues:a,setFilters:c}=q.useListContext(),u=q.useTranslate(),d=tn.useForm({defaultValues:a}),{handleSubmit:p,getValues:g,reset:v,watch:y}=d,b=y(),x=E.useMemo(()=>{const O={};return t&&(Array.isArray(t)?t:[t]).forEach(_=>{O[_.props.source]=(a==null?void 0:a[_.props.source])??""}),O},[t,a]);E.useEffect(()=>{const O=L.getFilterFormValues(g(),a),_=g();Ze.isEqual(O,_)||v(O)},[JSON.stringify(a),a,g,v]);const w=E.useCallback(()=>{Ze.isFunction(o)&&o(!1)},[o]),A=E.useCallback(O=>{c(O),w()},[c,w]),j=E.useCallback(()=>{v({}),c({})},[v,c]),T=E.useCallback(()=>{r(O=>!O),j(),setTimeout(()=>{r(!1)},1e3)},[j]),P=E.useMemo(()=>{const O=g();return Ze.isEmpty(x)||Ze.isEqual(O,x)},[x,g,b]);return f.jsxs(mr,{sx:{height:"100%"},open:i,onClose:w,children:[f.jsxs(mr.Header,{children:[f.jsx(mr.HeaderText,{primary:u("ra.action.add_filter")}),f.jsx(mr.HeaderAction,{children:f.jsx(p1,{variant:"text",loading:n,loadingPosition:"start",startIcon:f.jsx(Ue.ReloadOutlined,{}),onClick:T,children:u("ra.action.reset_filters")})})]}),f.jsxs(mr.Content,{children:[f.jsx(GA,{closeSidebar:w}),f.jsx(ZJ,{form:d,filters:t})]}),f.jsx(mr.Footer,{children:f.jsxs(S.Stack,{direction:"row",spacing:2,children:[f.jsx(S.Button,{fullWidth:!0,onClick:()=>{v({}),w()},children:u("ra.action.close")}),f.jsx(S.Button,{fullWidth:!0,disabled:P,variant:"contained",color:"primary",onClick:p(A),children:u("ra.action.apply_filters")})]})})]})}function QJ(){const{setSidebarOpen:e}=gm(),t=E.useContext(L.FilterContext),n=WA(),r=L.useTranslate(),o=S.useTheme(),i=S.useMediaQuery(o.breakpoints.down("sm"));if(!n)throw new Error("The <FilterSidebarButton> component requires the <List aside={<FilterSidebar />}> prop to be set");if(t===void 0)throw new Error("The <FilterSidebarButton> component requires the <List filters> prop to be set");const a=E.useCallback(()=>{Ze.isFunction(e)&&e(!0)},[e]);return i?f.jsxs(S.Button,{className:"add-filter",onClick:a,children:[f.jsx(en.FilterList,{sx:{fontSize:"1rem",mr:.5}}),f.jsx(S.Typography,{variant:"h6",children:r("ra.action.add_filter")})]}):f.jsx(Oi,{label:"ra.action.add_filter",onClick:a,children:f.jsx(en.FilterList,{})})}function YA(e){const{filters:t,actions:n,className:r,hasFilterSidebar:o,...i}=e,a=pt(),c=S.useMediaQuery(a.breakpoints.down("sm")),u=n?E.cloneElement(n,{...i,...n.props}):null,{filterValues:d}=q.useListContext();return Array.isArray(t)?f.jsx(um.Provider,{value:{hasFilterSidebar:o},children:f.jsx(L.FilterContext.Provider,{value:t,children:c&&o?f.jsxs("div",{children:[u,Ze.isEmpty(d)?null:f.jsxs("div",{children:[f.jsx(S.Divider,{}),f.jsx(fm,{})]})]}):f.jsxs(KA,{className:r,children:[o?f.jsx(fm,{}):f.jsx(L.FilterForm,{}),f.jsx("span",{}),u]})})}):f.jsxs(KA,{className:r,children:[t?E.cloneElement(t,{...i,context:"form"}):null,f.jsx("span",{}),n?E.cloneElement(n,{...i,filters:t,...n.props}):null]})}YA.propTypes={filters:m.oneOfType([m.element,m.arrayOf(m.element)]),actions:m.oneOfType([m.bool,m.element]),exporter:m.oneOfType([m.func,m.bool])};const KA=ue("div",{name:"RaListToolbar",overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%",[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"}})),XA=E.memo(YA),JJ=f.jsx(L.ListActions,{}),qJ=f.jsx(L.Pagination,{}),$J=f.jsx(ml,{}),eq=S.Card;function tq(e){const{actions:t=JJ,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:i,hasCreate:a,pagination:c=qJ,children:u,className:d,component:p=eq,title:g,empty:v=$J,...y}=e,{defaultTitle:b,data:x,error:w,isLoading:A,filterValues:j,resource:T}=q.useListContext(e),P=pt(),O=D.isValidElement(n)&&(n==null?void 0:n.type)!==md,_=D.isValidElement(n)&&(n==null?void 0:n.type)===md;if(!u||!x&&A&&i)return null;function R(J){return f.jsxs("div",{className:Qr.main,style:{border:O?"1px solid":"none",borderRadius:O?4:0,borderColor:O?P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800:"transparent",backgroundColor:O?P.palette.background.paper:"transparent"},children:[r||t?f.jsx(XA,{className:Qr.actions,filters:r,actions:t,hasCreate:a,hasFilterSidebar:_}):null,!w&&f.jsx(p,{className:Qr.content,sx:J?{background:"transparent"}:{},children:o&&u&&D.isValidElement(u)?E.cloneElement(u,{bulkActionButtons:o}):u}),w?f.jsx(vg,{error:w,resetErrorBoundary:null}):c!==!1&&c]})}function N(){return v!==!1&&E.cloneElement(v,{className:Qr.noResults,hasCreate:a})}const Y=!A&&(x==null?void 0:x.length)===0,X=!A&&(x==null?void 0:x.length)===0&&!Object.keys(j).length&&v!==!1,G=D.isValidElement(n),re=G&&(n==null?void 0:n.type)===md,ne=A||X||G&&!re?D.Fragment:On,Z=!A&&!X&&(!n||re)?{content:!1}:void 0;return f.jsxs(rq,{className:Be("list-page",d),...y,sx:Y?{"& .MuiPaper-root":{backgroundColor:"transparent",border:"none"},"& .RaList-actions":{border:"1px solid",borderRadius:`${P.shape.borderRadius}px`,borderColor:P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800,backgroundColor:P.palette.background.paper}}:{},children:[f.jsx(L.Title,{title:g,defaultTitle:b,preferenceKey:`${T}.list.title`}),f.jsx(ne,{...Z,children:A?f.jsx(S.CircularProgress,{sx:{position:"absolute",top:"50%",left:"50%",marginTop:"-20px",marginLeft:"-20px"}}):X?N():R(Y)}),O?f.jsx(nq,{aside:n}):null,_?D.cloneElement(n,{filters:r}):null]})}function nq({aside:e}){var r;const t=((r=e==null?void 0:e.props)==null?void 0:r.order)??-1,n=pt();return f.jsx(S.Card,{className:Qr.asideCard,sx:{order:t,mr:t===-1?2:0,ml:t!==-1?2:0,width:200,border:"1px solid",borderRadius:1,borderColor:n.palette.mode==="dark"?n.palette.divider:n.palette.grey.A800,backgroundColor:n.palette.background.paper,backgroundImage:"none"},children:f.jsx(S.CardContent,{sx:{pt:1},children:E.cloneElement(e,{})})})}const Ws="RaList",Qr={main:`${Ws}-main`,content:`${Ws}-content`,actions:`${Ws}-actions`,noResults:`${Ws}-noResults`,asideCard:`${Ws}-asideCard`},rq=ue("div",{name:Ws,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex","& >.MuiPaper-root":{flex:1},[`& .${Qr.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${Qr.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${Qr.actions}`]:{},[`& .${Qr.noResults}`]:{alignContent:"center"},[`& .${Qr.asideCard}`]:{[e.breakpoints.down("md")]:{display:"none"},[`& .${L.SavedQueriesListClasses.floatingIcon}`]:{fontSize:"1.125rem"},[`& .${L.SavedQueriesListClasses.floatingTooltip}`]:{top:"-1.2em"},"& form":{marginTop:e.spacing(2)}}})),pm=E.memo(e=>{const{page:t,rowsPerPage:n,count:r,onPageChange:o,size:i="small",className:a,...c}=e,u=q.useTranslate(),d=Math.ceil(r/n)||1;if(d===1)return f.jsx(ZA,{className:a});function p(g,v,y){return g==="page"?y?u("ra.navigation.current_page",{page:v,_:`page ${v}`}):u("ra.navigation.page",{page:v,_:`Go to page ${v}`}):u(`ra.navigation.${g}`,{_:`Go to ${g} page`})}return f.jsx(ZA,{className:a,children:f.jsx(S.Pagination,{size:i,count:d,page:t+1,onChange:(g,v)=>o(g,v-1),...oq(c),getItemAriaLabel:p})})});pm.propTypes={count:m.number.isRequired,onPageChange:m.func.isRequired,page:m.number.isRequired,rowsPerPage:m.number.isRequired,color:m.oneOf(["primary","secondary","standard"]),size:m.oneOf(["small","medium","large"])};const ZA=ue("div",{name:"RaPaginationActions",overridesResolver:e=>e.root})(()=>({flexShrink:0,ml:4}));function oq({nextIconButtonProps:e,backIconButtonProps:t,slotProps:n,...r}){return r}const hm=E.memo(e=>{const{rowsPerPageOptions:t=iq,actions:n,limit:r=null,...o}=e,{isLoading:i,hasNextPage:a,page:c,perPage:u,total:d,setPage:p,setPerPage:g}=q.useListPaginationContext(e),v=q.useTranslate(),y=S.useMediaQuery(N=>N.breakpoints.down("md")),[b,x]=E.useState(c-1),{hasCreate:w}=q.useResourceDefinition(e),A=E.useMemo(()=>d!=null?Math.ceil(d/u):void 0,[u,d]),j=E.useCallback(Ze.debounce(N=>{p(N+1)},500),[p]),T=E.useCallback((N,Y)=>{var re,ne;if(!N)return;if(N.preventDefault(),Y<0||A!==void 0&&Y>A-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:Y+1}));const X=(((re=N.target.dataset)==null?void 0:re.testid)||((ne=N.target.classList)==null?void 0:ne.value))??"",G=X.includes("MuiPaginationItem-previousNext")||X.includes("NavigateBeforeIcon")||X.includes("NavigateNextIcon")||X.includes("KeyboardArrowLeftIcon")||X.includes("KeyboardArrowRightIcon");x(Y),G?j(Y):p(Y+1)},[j,p,v,A]),P=E.useCallback(N=>{g(Number(N.target.value))},[g]),O=E.useCallback(({from:N,to:Y,count:X})=>X===-1&&a?v("ra.navigation.partial_page_range_info",{offsetBegin:N,offsetEnd:Y,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:N,offsetEnd:Y,total:X===-1?Y:X,_:"%{from}-%{to} of %{count === -1 ? to : count}"}),[v,a]),_=E.useCallback(N=>v(`ra.navigation.${N}`,{_:`Go to ${N} page`}),[v]);if(i)return f.jsx(S.Toolbar,{variant:"dense"});if(d===0||c<1||A!==void 0&&c>A)return r!=null&&process.env.NODE_ENV==="development"&&console.warn("The Pagination limit prop is deprecated. Empty state should be handled by the component displaying data (Datagrid, SimpleList)."),null;if(y)return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:T,rowsPerPageOptions:sq,component:"span",labelDisplayedRows:O,sx:{justifyContent:w?"flex-start":"flex-end",display:w?"flex":"block"},...q.sanitizeListRestProps(o)});const R=n||(!i&&d!=null?pm:void 0);return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:T,onRowsPerPageChange:P,ActionsComponent:R,nextIconButtonProps:{disabled:!a},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:O,getItemAriaLabel:_,rowsPerPageOptions:t,...q.sanitizeListRestProps(o)})});hm.propTypes={actions:q.ComponentPropType,limit:m.element,rowsPerPageOptions:m.arrayOf(m.oneOfType([m.number,m.shape({label:m.string.isRequired,value:m.number.isRequired})]))};const iq=[5,10,25,50],sq=[],QA=E.createContext({sidebarOpen:!1,setSidebarOpen:()=>{}});function JA(e){const[t,n]=E.useState(!1);return f.jsx(QA.Provider,{value:{sidebarOpen:t,setSidebarOpen:n},children:e.children})}function gm(){return E.useContext(QA)}function aq({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=lq,filterDefaultValues:i,perPage:a=10,queryOptions:c,resource:u,sort:d,storeKey:p,...g}){return f.jsx(q.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:i,perPage:a,queryOptions:c,resource:u,sort:d,storeKey:p,children:f.jsx(JA,{children:f.jsx(tq,{...g})})})}const lq={},cq=Na(aq,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),[e.breakpoints.down("sm")]:{flexDirection:"row"},"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiInputLabel-root":{paddingTop:0},"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}},"& .ApplicaEmpty-root":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"calc(100vh - 260px)"}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function uq(e){return f.jsx(cq,{...e,pagination:f.jsx(hm,{})})}function dq(){const e=L.useRefresh(),t=L.useNotify(),n=L.useResourceContext(),r=L.useUnselectAll(n),{selectedIds:o,data:i}=L.useListContext(),a=L.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)),[u,{isLoading:d}]=L.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Or().toISOString()},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=E.useCallback(()=>{u()},[u]);return f.jsx(L.Button,{label:"ra.notification.mark_as_readed",disabled:d||(a==null?void 0:a.readed)!==null,onClick:p,children:f.jsx(en.Email,{})})}function fq(){const e=L.useRefresh(),t=L.useNotify(),n=L.useResourceContext(),r=L.useUnselectAll(n),{selectedIds:o,data:i}=L.useListContext(),a=L.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)).concat([a]),[u,{isLoading:d}]=L.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=E.useCallback(()=>{u()},[u]);return f.jsx(L.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:d||a&&!(a!=null&&a.readed),onClick:p,children:f.jsx(en.Drafts,{})})}function pq(e){const t=L.useRecordContext(e),n=L.useResourceContext(e),r=L.useRedirect(),o=L.useNotify(),i=L.useTranslate(),[a]=L.useLocaleState(),c=E.useMemo(()=>t!=null&&t.readed?Or(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=L.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Or().toISOString()}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),d=E.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:d,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(S.Typography,{variant:"subtitle1",children:f.jsxs(S.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(S.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c?f.jsx(S.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:i("ra.notification.readed",{readed:c})}):null]})}function hq({...e}){const t=S.useTheme(),{mode:n,colorize:r,density:o}=E.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?S.darken:S.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]);function i(a){return{backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)}}return f.jsxs(L.Datagrid,{...e,rowSx:i,children:[f.jsx(pq,{source:"notification",sortable:!1}),f.jsx(bE,{source:"created"}),f.jsxs(No,{children:[f.jsx(dq,{}),f.jsx(fq,{})]})]})}function gq({empty:e,...t}){const n=L.useTranslate(),r=f.jsx(ml,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:n("ra.navigation.no_results")})});return f.jsx(L.SimpleList,{...t,empty:e||r})}const mq={width:36,height:36,fontSize:"1rem"},vq={mt:"6px",ml:1,top:"auto",right:"auto",alignSelf:"flex-start",transform:"none"};function qA(){const{enable:e}=ad();return e?f.jsx(yq,{}):null}function yq(){const e=q.useTranslate(),t=S.useTheme(),n=q.useRefresh(),r=q.useNotify(),{downMd:o}=Gn(),{resource:i}=ad(),[a,c]=E.useState([]),{data:u,isLoading:d}=q.useGetList(i,{pagination:{page:1,perPage:25},sort:{field:"created",order:"DESC"},filter:{readed:!1}}),p=a.filter(j=>j.readed===null).length,{open:g,anchorEl:v,handleClose:y,handleToggle:b}=_s();E.useEffect(()=>{!d&&u&&c(u??[])},[u,d]);const x=a.filter(j=>!j.readed).map(j=>j.id),[w]=q.useUpdateMany(i,{ids:x,data:{readed:Or().toISOString()}},{onSuccess:()=>{n(),r("resources.notifications.messages.readed.done")},onError:()=>r("ra.notification.readed_error")}),A=E.useCallback(()=>{w()},[w]);return f.jsxs(f.Fragment,{children:[f.jsx(Vs,{value:"notifications",selected:g,onChange:b,children:f.jsx(S.Badge,{badgeContent:p,color:"primary",children:f.jsx(Ue.BellOutlined,{})})}),f.jsx(S.Popper,{placement:o?"bottom":"bottom-end",open:g,anchorEl:v,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:j})=>f.jsx(Bo,{type:"grow",position:o?"top":"top-right",in:g,...j,children:f.jsx(S.Paper,{sx:{marginTop:1,boxShadow:t.customShadows.z1,width:"100%",minWidth:285,maxWidth:420,[t.breakpoints.down("md")]:{maxWidth:285}},children:f.jsx(S.ClickAwayListener,{onClickAway:y,children:f.jsxs(On,{title:e("ra.notification.title"),elevation:0,border:!1,content:!1,secondary:f.jsx(f.Fragment,{children:p>0&&f.jsx(S.Tooltip,{title:e("ra.notification.mark-as-read"),onClick:A,children:f.jsx(tu,{color:"success",size:"small",children:f.jsx(Ue.CheckCircleOutlined,{style:{fontSize:"1.15rem"}})})})}),children:[a.length===0?f.jsx(ml,{hasCreate:!1,title:f.jsx(S.Typography,{variant:"h5",children:e("ra.notification.empty")}),sx:{"& .ApplicaEmpty-icon":{fontSize:"60px"},"& .ApplicaEmpty-toolbar":{display:"none"}}}):f.jsxs(f.Fragment,{children:[f.jsx(S.List,{component:"nav",sx:{p:0,"& .MuiListItemButton-root":{py:.5,"&.Mui-selected":{bgcolor:"grey.50",color:"text.primary"},"& .MuiAvatar-root":mq,"& .MuiListItemSecondaryAction-root":{...vq,position:"relative"}},maxHeight:"calc(100vh - 240px)",overflow:"auto"},children:a.map((T,P)=>f.jsx(AJ,{selected:p>0,notification:T,onClick:y,divider:P<a.length-1},T.id))}),f.jsx(S.ListItemButton,{sx:{textAlign:"center",py:"12px !important"},to:`/${i}`,LinkComponent:ut.Link,onClick:y,children:f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"primary",children:e("ra.notification.view_all")})})})]}),f.jsx(S.Divider,{})]})})})})})]})}function $A(){const[e,t]=E.useState(!1),n=E.useCallback(()=>t(!1),[t]),r=E.useCallback(()=>t(!0),[t]),o=q.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{onClick:r,children:[f.jsx(S.ListItemIcon,{children:f.jsx(en.Key,{})}),f.jsx(S.ListItemText,{primary:o("ra.auth.change_password")})]}),f.jsx(S.Dialog,{open:e,onClose:()=>t(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(Vg,{onSuccess:n})})]})}function eI(){const e=q.useLogout(),t=q.useTranslate();return f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:e,children:[f.jsx(S.ListItemIcon,{children:f.jsx(en.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:t("ra.auth.logout")})]})})}function tI(){const e=q.useTranslate(),t=q.useAuthProvider(),n=E.useCallback(()=>t.stopImpersonate().then(()=>document.location.href="/"),[t]),[r,o]=E.useState(!1);return E.useEffect(()=>{if(!t.isImpersonating){console.warn("The authProvider does not support the isImpersonating feature",t);return}t.isImpersonating().then(i=>o(i))},[t,o]),r?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:n,children:[f.jsx(S.ListItemIcon,{children:f.jsx(en.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:e("ra.auth.stop_impersonate")})]})}):null}function nI(e){var x;const{roles:t}=e,n=S.useTheme(),r=q.useDataProvider(),{identity:o}=q.useGetIdentity(),i=o!==void 0&&o.image&&o.image!==null&&o.image!=="",[a,c]=E.useState(null),{open:u,anchorEl:d,handleToggle:p,handleClose:g}=_s(),v=q.useLogout(),y=E.useCallback(()=>{v()},[v]);E.useEffect(()=>{i&&r.getFile("/profile/me/image").then(w=>c(w))},[r,i]);const b=E.useMemo(()=>{var w;return E.isValidElement(t)?t:t?f.jsx(f.Fragment,{children:t}):(w=o==null?void 0:o.roles)==null?void 0:w.map(A=>A.name.replace("ROLE_","")).join(",")},[t,o]);return f.jsxs(f.Fragment,{children:[f.jsx(Vs,{sx:{p:.25,width:"auto"},onClick:p,value:"profile",selected:u,children:f.jsxs(S.Stack,{direction:"row",spacing:2,alignItems:"center",sx:{p:.5},children:[f.jsx(Zc,{alt:(x=o==null?void 0:o.name)==null?void 0:x.toUpperCase(),src:a,size:"xs"}),f.jsx(S.Typography,{variant:"subtitle1",children:o==null?void 0:o.name})]})}),f.jsx(hh,{placement:"bottom-end",open:u,anchorEl:d,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:w})=>f.jsx(Bo,{type:"grow",position:"top-right",in:u,...w,children:f.jsx(S.Paper,{sx:{boxShadow:n.customShadows.z1,width:290,minWidth:240,maxWidth:290,[n.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:g,children:f.jsxs(On,{elevation:0,border:!1,content:!1,children:[f.jsx(S.CardContent,{sx:{px:2.5,pt:3},children:f.jsxs(S.Grid,{container:!0,justifyContent:"space-between",alignItems:"center",children:[f.jsx(S.Grid,{item:!0,children:f.jsxs(S.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[f.jsx(Zc,{alt:"profile user",src:a,sx:{width:32,height:32}}),f.jsxs(S.Stack,{children:[f.jsx(S.Typography,{variant:"h6",children:o==null?void 0:o.name}),f.jsx(S.Typography,{variant:"body2",color:"textSecondary",children:b})]})]})}),f.jsx(S.Grid,{item:!0,children:f.jsx(S.Tooltip,{title:"Logout",children:f.jsx(tu,{size:"large",sx:{color:"text.primary"},onClick:y,children:f.jsx(Ue.LogoutOutlined,{})})})})]})}),f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.List,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32}},children:[f.jsx($A,{}),f.jsx(eI,{}),f.jsx(tI,{})]})})})]})})})})})]})}function rI(e){const t=pt(),{downMd:n}=Gn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=_s();return n?f.jsxs(f.Fragment,{children:[f.jsx(Vs,{value:"drawer","aria-label":"open more menu","aria-controls":r?"menu-list-grow":void 0,"aria-haspopup":"true",onClick:i,selected:r,children:f.jsx(Ue.MoreOutlined,{})}),f.jsx(S.Popper,{placement:"bottom-end",open:r,anchorEl:o,role:void 0,transition:!0,disablePortal:!0,style:{width:"100%"},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,9]}}]},children:({TransitionProps:c})=>f.jsx(Bo,{type:"fade",in:r,...c,children:f.jsx(S.Paper,{sx:{boxShadow:t.customShadows.z1},children:f.jsx(S.ClickAwayListener,{onClickAway:a,children:f.jsx(S.AppBar,{color:"inherit",children:f.jsx(S.Toolbar,{children:e.children})})})})})})]}):f.jsx(f.Fragment,{children:e.children})}function oI(e){return f.jsx(S.Box,{...e,flex:1})}function iI(e){const t=S.useTheme(),n=S.useScrollTrigger({disableHysteresis:!0,threshold:0}),{container:r}=Cn();return t.shadows[4]=t.customShadows.z1,f.jsx(S.AppBar,{elevation:n?4:0,sx:{top:60,bgcolor:t.palette.background.paper,width:"100%",height:62,justifyContent:"center",borderTop:`1px solid ${t.palette.divider}`,borderBottom:`1px solid ${t.palette.divider}`,zIndex:1098,color:t.palette.grey[500]},children:f.jsx(S.Container,{maxWidth:r?"xl":!1,children:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center"},children:e.children})})})}function sI(e){const{horizontal:t}=Gn();return t?f.jsx(iI,{children:e.children}):f.jsx(PA,{children:e.children})}function vl({item:e,level:t}){const n=pt(),{horizontal:r,downLg:o}=Gn(),{drawerOpen:i,openItem:a,activeItem:c,openDrawer:u}=sl();let d="_self";e.target&&(d="_blank");const p=(e==null?void 0:e.external)!==!1?{component:E.forwardRef((A,j)=>f.jsx(ut.Link,{...A,to:e.url,target:d,ref:j}))}:{component:"a",href:e.url,target:d},g=e.icon,v=e.icon?f.jsx(g,{style:{fontSize:i?"1rem":"1.25rem"}}):!1,y=a.findIndex(A=>A===e.id)>-1,{pathname:b}=ut.useLocation();E.useEffect(()=>{b.endsWith(e.url)&&c([e.id])},[b]);const x=n.palette.mode==="dark"?"grey.400":"text.primary",w=n.palette.mode==="dark"&&i?"text.primary":"primary.main";return f.jsx(f.Fragment,{children:r?f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,...i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{bgcolor:"transparent",color:w,"&:hover":{color:w,bgcolor:"transparent"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:36,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:v}):null,!v&&f.jsx(S.ListItemIcon,{sx:{color:y?"primary.main":"secondary.main",...!i&&{borderRadius:1.5,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:f.jsx(rh,{size:4,color:y?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"inherit",children:e.title})}),(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]}):f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,pl:i?`${t*28}px`:1.5,py:!i&&t===1?1.25:1,...i&&{"&:hover":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter",borderRight:`2px solid ${n.palette.primary.main}`,color:w,"&:hover":{color:w,bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},...o&&{onClick:()=>u(!1)},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:28,color:y?w:x,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:n.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!i&&y&&{bgcolor:n.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:n.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:v}):null,i||!i&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",sx:{color:y?w:x},children:e.title})}):null,(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]})})}const aI=ue(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:38,left:-5,width:10,height:10,backgroundColor:e.palette.background.paper,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderLeft:`1px solid ${e.palette.grey.A800}`,borderBottom:`1px solid ${e.palette.grey.A800}`}}));function yl({menu:e,level:t,parentId:n,setSelectedItems:r,selectedItems:o,setSelectedLevel:i,selectedLevel:a}){var W;const c=pt(),{activeItem:u}=sl(),{horizontal:d}=Gn(),{drawerOpen:p}=sl(),g=ut.useNavigate(),[v,y]=E.useState(!1),[b,x]=E.useState(null),[w,A]=E.useState(null);function j(ie){A(null),i(t),p?(y(!v),x(b?null:e.id),r(b?"":e.id),e.url&&g(`${e.url}`)):A(ie==null?void 0:ie.currentTarget)}function T(){p||e.url&&g(`${e.url}`)}function P(ie){A(ie==null?void 0:ie.currentTarget)}function O(){y(!1),x(null),A(null)}E.useMemo(()=>{b===o?t===1&&y(!0):t===a&&(y(!1),x(null))},[o,t,b,a]);const{pathname:_}=ut.useLocation(),R=!!w;function N(ie,U){ie.forEach(ee=>{ee.url===_&&(y(!0),x(U))})}E.useEffect(()=>{y(!1),x(null),R&&A(null),e.children&&e.children.forEach(ie=>{var U;(U=ie.children)!=null&&U.length&&N(ie.children,e.id),ie.url===_&&(x(e.id),y(!0)),_.includes(ie.url)&&(x(e.id),y(!0))})},[_,e.children]),E.useEffect(()=>{e.url===_&&b!==e.id&&(u([e.id]),x(e.id),A(null),y(!0))},[_,e,b,u]);const Y=(W=e.children)==null?void 0:W.map(ie=>{switch(ie.type){case"collapse":return f.jsx(yl,{setSelectedItems:r,setSelectedLevel:i,selectedLevel:a,selectedItems:o,menu:ie,level:t+1,parentId:n},ie.id);case"item":return f.jsx(vl,{item:ie,level:t+1},ie.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Collapse or Item"},ie.id)}}),X=b===e.id,G=t===1?f.jsx(Ue.BorderOutlined,{style:{fontSize:"1rem"}}):!1,re=e.icon,ne=e.icon?f.jsx(re,{style:{fontSize:p?"1rem":"1.25rem"}}):G,Z=c.palette.mode==="dark"?"grey.400":"text.primary",J=c.palette.mode==="dark"&&p?c.palette.text.primary:c.palette.primary.main,V=R?`collapse-pop-${e.id}`:void 0,$={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"};return f.jsx(f.Fragment,{children:d?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{id:`boundary-${V}`,disableRipple:!0,selected:X,onMouseEnter:P,onMouseLeave:O,onClick:P,"aria-describedby":V,sx:{"&.Mui-selected":{bgcolor:"transparent"}},children:[f.jsxs(S.Box,{onClick:T,sx:$,children:[ne?f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,color:c.palette.secondary.dark},children:ne}):null,!ne&&t!==1&&f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,bgcolor:"transparent","&:hover":{bgcolor:"transparent"}},children:f.jsx(rh,{size:4,color:X?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"body1",color:"inherit",sx:{my:"auto"},children:e.title})}),R?f.jsx(Ue.RightOutlined,{}):f.jsx(Ue.DownOutlined,{})]}),w?f.jsx(aI,{id:V,open:R,anchorEl:w,placement:"right-start",style:{zIndex:2001},modifiers:[{name:"offset",options:{offset:[-10,0]}}],children:({TransitionProps:ie})=>f.jsx(Bo,{in:R,...ie,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,py:.5,boxShadow:c.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:Y})})})})}):null]})}):f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{disableRipple:!0,selected:b===e.id,...!p&&{onMouseEnter:j,onMouseLeave:O},onClick:j,sx:{pl:p?`${t*28}px`:1.5,py:!p&&t===1?1.25:1,...p&&{"&:hover":{bgcolor:c.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:"transparent",color:J,"&:hover":{color:J,bgcolor:c.palette.mode==="dark"?"divider":"transparent"}}},...!p&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[ne?f.jsx(S.ListItemIcon,{onClick:T,sx:{minWidth:28,color:b===e.id?"primary.main":Z,...!p&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:c.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!p&&b===e.id&&{bgcolor:c.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:c.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:ne}):null,p||!p&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:b===e.id?"primary":Z,children:e.title}),secondary:e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null}):null,p||!p&&t!==1?R||v?f.jsx(Ue.UpOutlined,{style:{fontSize:"0.625rem",marginLeft:1,color:c.palette.primary.main}}):f.jsx(Ue.DownOutlined,{style:{fontSize:"0.625rem",marginLeft:1}}):null,!p&&f.jsx(aI,{open:R,anchorEl:w,placement:"right-start",style:{zIndex:2001},popperOptions:{modifiers:[{name:"offset",options:{offset:[-12,1]}}]},children:({TransitionProps:ie})=>f.jsx(Bo,{in:R,...ie,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,boxShadow:c.customShadows.z1,backgroundImage:"none",border:`1px solid ${c.palette.divider}`},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:Y})})})})})]}),p?f.jsx(S.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:f.jsx(S.List,{sx:{p:0},children:Y})}):null]})})}const bq=ue(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:5,left:32,width:12,height:12,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderWidth:"6px",borderStyle:"solid",borderColor:`${e.palette.background.paper} transparent transparent ${e.palette.background.paper}`}}));function lI({item:e,lastItem:t,remItems:n,lastItemId:r,setSelectedItems:o,selectedItems:i,setSelectedLevel:a,selectedLevel:c}){var V,$;const u=pt(),d=L.useTranslate(),{pathname:p}={pathname:""},{horizontal:g,downLg:v}=Gn(),y=sl(),{drawerOpen:b,selectedID:x,activeID:w}=y,[A,j]=E.useState(null),[T,P]=E.useState(e),O=!!A;E.useEffect(()=>{if(t)if(e.id===r){const W={...e},ie=n.map(U=>U.elements);W.children=ie.flat(1),P(W)}else P(e)},[e,t,v]);function _(W,ie){W.forEach(U=>{var ee;(ee=U.children)!=null&&ee.length&&_(U.children,T.id),U.url===p&&w(ie)})}function R(W){(W.children?W.children:[]).forEach(U=>{var ee;(ee=U.children)!=null&&ee.length&&_(U.children,T.id),U.url===p&&w(T.id)})}E.useEffect(()=>{R(T),O&&j(null)},[p,T]);function N(W){O||j(W==null?void 0:W.currentTarget)}function Y(){j(null)}const X=T==null?void 0:T.icon,G=T!=null&&T.icon?f.jsx(X,{style:{fontSize:20,stroke:"1.5",color:x===T.id?u.palette.primary.main:u.palette.secondary.dark}}):null,re=(V=e.children)==null?void 0:V.map(W=>{switch(W.type){case"collapse":return f.jsx(yl,{menu:W,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i,level:1,parentId:T.id},W.id);case"item":return f.jsx(vl,{item:W,level:1},W.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),ne=n.map((W,ie)=>{var U;return f.jsxs(E.Fragment,{children:[W.title?f.jsx(S.Typography,{variant:"caption",sx:{pl:2},children:W.title}):null,(U=W==null?void 0:W.elements)==null?void 0:U.map(ee=>{switch(ee.type){case"collapse":return f.jsx(yl,{menu:ee,level:1,parentId:T.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},ee.id);case"item":return f.jsx(vl,{item:ee,level:1},ee.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},ee.id)}})]},ie)}),Z=($=T.children)==null?void 0:$.map(W=>{switch(W.type){case"collapse":return f.jsx(yl,{menu:W,level:1,parentId:T.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},W.id);case"item":return f.jsx(vl,{item:W,level:1},W.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),J=O?`group-pop-${e.id}`:void 0;return f.jsx(f.Fragment,{children:g?f.jsx(S.List,{children:f.jsxs(S.ListItemButton,{selected:x===T.id,sx:{p:1,my:.5,mr:1,display:"flex",alignItems:"center",backgroundColor:"inherit","&.Mui-selected":{bgcolor:"transparent"}},onMouseEnter:N,onClick:N,onMouseLeave:Y,"aria-describedby":J,children:[G?f.jsx(S.ListItemIcon,{sx:{minWidth:28},children:T.id===r?f.jsx(Ue.DownOutlined,{style:{fontSize:20,stroke:"1.5"}}):G}):null,f.jsx(S.ListItemText,{sx:{mr:1},primary:f.jsx(S.Typography,{variant:"body1",color:x===T.id?u.palette.primary.main:u.palette.secondary.dark,children:T.id===r?d("ra.actions.more"):T.title})}),O?f.jsx(Ue.DownOutlined,{style:{fontSize:16,stroke:"1.5"}}):f.jsx(Ue.RightOutlined,{style:{fontSize:16,stroke:"1.5"}}),A?f.jsx(bq,{id:J,open:O,anchorEl:A,placement:"bottom-start",style:{zIndex:2001},children:({TransitionProps:W})=>f.jsx(Bo,{in:O,...W,children:f.jsx(S.Paper,{sx:{mt:.5,py:1.25,boxShadow:u.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:Y,children:f.jsx(S.Box,{sx:{maxHeight:"calc(100vh - 170px)",overflowY:"auto","&::-webkit-scrollbar":{opacity:0,width:4,"&:hover":{opacity:.7}},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:u.palette.divider,borderRadius:4}},children:T.id!==r?Z:ne})})})})}):null]})}):f.jsx(S.List,{subheader:e.title&&b?f.jsxs(S.Box,{sx:{pl:3,mb:1.5},children:[f.jsx(S.Typography,{variant:"subtitle2",color:u.palette.mode==="dark"?"textSecondary":"text.secondary",children:e.title}),e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null]}):null,sx:{mt:b&&e.title?1.5:0,py:0,zIndex:0},children:re})})}function cI(e){const{horizontal:t}=Gn(),{open:n}=Pi(),r=Ir(e,{pt:n?t?0:2:0,"& > ul:first-of-type":{mt:0},display:t?{xs:"block",lg:"flex"}:"block"});return f.jsx(S.Box,{sx:r,children:e.children})}function uI(e){const{horizontal:t}=Gn(),{menu:n,isLoading:r}=bg(),[o,i]=E.useState(""),[a,c]=E.useState(0),{horizontalMaxItems:u}=Cn(),d=t?u:void 0;let p=r?0:(n??[]).length-1,g=[],v;return!r&&d&&d<(n??[]).length&&(v=(n??[])[d-1].id,p=d-1,g=(n??[]).slice(d-1,(n??[]).length).map(y=>({title:y.title,elements:y.children,icon:y.icon}))),f.jsx(cI,{...e,children:!r&&te.map((n??[]).slice(0,p+1),y=>{const{type:b}=y;switch(b){case"group":return f.jsx(lI,{item:y,setSelectedItems:i,setSelectedLevel:c,selectedLevel:a,selectedItems:o,lastItem:d,remItems:g,lastItemId:v},y.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Navigation Group"},y.id)}})})}function xq({open:e,anchorEl:t,handleClose:n,theme:r,mode:o,toggleThemeMode:i}){const a=q.useTranslate();return f.jsx(hh,{placement:"bottom-end",open:e,anchorEl:t,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:c})=>f.jsx(Bo,{type:"grow",position:"top-right",in:e,...c,children:f.jsx(S.Paper,{sx:{boxShadow:r.customShadows.z1,minWidth:200,[r.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:n,children:f.jsx(On,{elevation:0,border:!1,content:!1,children:f.jsxs(S.List,{children:[f.jsxs(S.ListItemButton,{selected:o==="light",onClick:()=>i("light"),children:[f.jsx(Ue.SunOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.light")})]}),f.jsxs(S.ListItemButton,{selected:o==="dark",onClick:()=>i("dark"),children:[f.jsx(Ue.MoonOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.dark")})]}),f.jsxs(S.ListItemButton,{selected:o==="auto",onClick:()=>i("auto"),children:[f.jsx(en.Brightness6,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,textTransform:"none",children:a("ra.preferences.theme.auto")})]})]})})})})})})}function dI(){const e=S.useTheme(),{mode:t,setMode:n}=Cn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=_s(),c=E.useCallback(d=>{n(d)},[n]),u=E.useCallback(()=>{switch(t){case"light":return f.jsx(Ue.SunOutlined,{});case"dark":return f.jsx(Ue.MoonOutlined,{});default:return f.jsx(en.Brightness6,{})}},[t]);return f.jsxs(Vs,{value:"theme-mode","aria-label":"toggle mode",onClick:i,selected:!1,children:[f.jsx(u,{}),r?f.jsx(xq,{open:r,anchorEl:o,handleClose:a,theme:e,mode:t,toggleThemeMode:c}):null]})}const fI=E.forwardRef((e,t)=>{const n=Ir(e,{display:"flex",width:"100%"});return f.jsx(S.Box,{ref:t,...e,sx:n,children:e.children})});function mm({source:e="paper"}){const{mode:t}=Cn(),n=S.useTheme();return E.useEffect(()=>{var o;const r=te.get(n.palette.background,e);(o=document.querySelector('meta[name="theme-color"]'))==null||o.setAttribute("content",r)},[t,n,e]),null}const pI=iT(function(t){const{name:n,version:r,enableThemeToggler:o,enableNotification:i,enableLocaleSwitcher:a}=t,{isLoading:c,navigation:u,breadcrumbs:d}=IS();return f.jsxs(fI,{children:[f.jsxs(_A,{children:[f.jsx(oI,{}),a?f.jsx(MA,{}):null,o?f.jsx(dI,{}):null,f.jsx(mm,{}),f.jsx(kw,{}),i?f.jsx(qA,{}):null,f.jsx(rI,{children:f.jsx(nI,{})})]}),f.jsx(sI,{children:f.jsx(uI,{})}),f.jsxs(aT,{error:t.error,children:[!c&&f.jsx(BC,{titleBottom:!0,mode:"breadcrumbs",navigation:u,breadcrumbs:d,card:!1,divider:!1,icon:!0,icons:!0}),t.children,f.jsx(ut.Outlet,{}),f.jsx(lm,{name:n,version:r,copy:t==null?void 0:t.copy})]})]})});function hI(e){const t=S.useMediaQuery(n=>n.breakpoints.down("sm"));return f.jsx(Cq,{disableGutters:!0,variant:t?"regular":"dense",...wq(e)})}hI.propTypes={children:m.node,className:m.string};const Cq=S.styled(S.Toolbar,{name:"RaTopToolbar",overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:e.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingInline:e.spacing(2),[e.breakpoints.down("md")]:{flex:"0 1 100%"},[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,justifyContent:"space-between",alignItems:"center"}}));function wq({hasCreate:e,...t}){return t}const Sq=ue("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}}));function gI(){return f.jsx(Sq,{children:f.jsx(S.LinearProgress,{color:"primary"})})}function Eq(e){return t=>f.jsx(E.Suspense,{fallback:f.jsx(gI,{}),children:f.jsx(e,{...t})})}function vm({title:e}){return f.jsxs(S.Stack,{direction:"row",children:[f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]})}const Tq=ue(L.Notification,{})(({theme:e})=>({zIndex:2e3,"& *":{fontSize:e.typography.body1.fontSize}}));function mI(e){return f.jsx(Tq,{...e})}var bl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(bl||{});const vI=mo().required(),yI=mo().oneOf(Object.values(bl));function Aq(e){var A;const t=li.useQueryClient(),[n,r]=E.useState(!1),[o,i]=E.useState(()=>()=>Promise.resolve()),a=q.useGetIdentity(),c=(A=a==null?void 0:a.data)==null?void 0:A.email,u=q.useDataProvider(),d=E.useCallback(()=>c?u.get("onboarding").then(j=>{var T;return(T=j==null?void 0:j.data)==null?void 0:T.value}):Promise.reject(),[u,c]),{data:p,isLoading:g,isError:v}=li.useQuery({queryKey:["GET","onboarding",c],queryFn:d,staleTime:24*60*60*1e3,retry:c!==void 0}),[y,b]=E.useState(()=>()=>Promise.resolve()),w=li.useMutation({mutationFn:y}).mutateAsync;return E.useEffect(()=>{function j(){const T=te.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",T).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}b(()=>j)},[u,p,e,t,c]),E.useEffect(()=>{r(te.isNil((p??{})[e]))},[p,e,r]),E.useEffect(()=>{i(()=>()=>w())},[w]),{loading:g,error:v,onboardingRequired:n,acknowledgeOnboarding:o}}function Iq(e){const[t,n]=Mg("onboarding",{}),[r,o]=E.useState(!1),[i,a]=E.useState(()=>()=>Promise.resolve());return E.useEffect(()=>{o(te.isNil((t??{})[e]))},[t,e,o]),E.useEffect(()=>{a(()=>()=>(n(c=>te.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:i}}function Oq(){return{onboardingRequired:!1,acknowledgeOnboarding:E.useRef(()=>Promise.resolve()).current}}function bI(e,t){jg({mode:yI,topic:vI}).validateSync({mode:e,topic:t});const n=Aq(t),r=Iq(t),o=Oq();switch(e){case bl.USER:return n.loading?o:n.error?r:te.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case bl.BROWSER:return r;default:return o}}var zs=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(zs||{});function Pq(e,t){var o;const n=te.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:i}=t;return te.extend(n,{show:i})}case"REGISTER_TIP":{const{payload:i}=t,{id:a}=i,c=te.chain(n.tips).clone().reject(p=>p.id===a).value(),u=te.find(n.tips,{id:a}),d=te.chain(u??{}).clone().extend(i).value();return c.push(d),te.extend(n,{tips:te.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:i}=t,a=te.isString(i)?i:i.id,c=te.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return te.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:i}=t,a=te.isString(i)?i:i.id,c=te.chain(n.tips).reject(v=>v.id===a).value(),u=te.find(n.tips,{id:a});if(te.isNil(u))return n;const d=te.chain(u).clone().extend({dismissed:!0}).value();c.push(d);const p=((o=te.chain(c).reject(v=>v.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(d==null?void 0:d.completeOnboarding)&&te.chain(c).reject(v=>v.step<p).reject(v=>v.dismissed??!1).isEmpty().value()&&e.onComplete(),te.extend(n,{tips:te.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:i}=t;return te.extend(n,{onComplete:i})}case"RESTART":{const i=te.chain(n.tips).clone().map(a=>te.omit(a,"dismissed")).value();return te.extend(n,{tips:i,currentStep:0})}default:return n}}const ym=E.createContext(void 0);function jq(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=bI(t,n),[i,a]=E.useReducer(Pq,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=E.useMemo(()=>({state:i,dispatch:a}),[i,a]);return E.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),E.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(ym.Provider,{value:c,children:e.children})}function xI(){const e=E.useContext(ym);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function kq(){return xI().state}function CI(){return xI().dispatch}function wI(e){jg({id:mo().required(),step:US().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:i,currentStep:a}=kq(),c=te.find(i,{id:t}),{dismissed:u}=c??{},d=CI(),p=E.useCallback(()=>{d({type:zs.DISMISS_TIP,payload:t})},[d,t]);return E.useEffect(()=>{(te.isNil(c)||n!==(c==null?void 0:c.step))&&d({type:zs.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c,d]),E.useEffect(()=>()=>{d({type:zs.UNREGISTER_TIP,payload:t})},[t,d]),{tip:te.chain(c??e).clone().extend({open:o&&!te.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function Mq(){const e=CI();return E.useCallback(()=>{e({type:zs.RESTART})},[e])}function Fq(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:i,dismiss:a}=wI({id:t,step:n,completeOnboarding:o}),{open:c}=i,u=te.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(pu,{...u,arrow:!0,open:c,title:f.jsxs(S.Stack,{gap:1,children:[f.jsx(S.Typography,{children:r}),f.jsx(S.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const _q=S.styled(Fq)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${S.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${S.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${S.tooltipClasses.arrow}`]:{color:r.main}}});function SI({children:e}){const t=ut.useLocation(),{pathname:n}=t;return E.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),f.jsx(f.Fragment,{children:e})}const Rq=ue("div")({width:"100%",overflowX:"auto",display:"block"});function Dq({shadow:e,children:t,...n}){return f.jsx(On,{content:!1,border:!1,shadow:e,boxShadow:!0,...n,children:t})}function EI({title:e}){return f.jsx(S.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substring(0,1).toUpperCase()})}function Lq({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:i,component:a,leftIcon:c,rightIcon:u,button:d,buttonProps:p,...g}){const{getCurrentDialog:v}=Ng(),y=q.useResourceContext(g),b=v(),x=q.useRecordContext(),w=r||x,A=Ze.get(w,e||"");return f.jsxs(S.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:j=>({pt:1,pb:1,borderBottom:`1px solid ${j.palette.divider}`,...o&&{mb:2},...i&&{mt:2}}),children:[f.jsxs(S.Stack,{direction:"row",alignItems:"start",children:[c?E.isValidElement(c)?E.cloneElement(c,{style:vd}):E.createElement(c,{style:vd}):null,f.jsx(q.FieldTitle,{label:t,source:e,resource:b||y})]}),f.jsxs(S.Stack,{direction:"row",alignItems:"center",children:[a?E.isValidElement(a)?E.cloneElement(a,{record:w,resource:y,value:A}):E.createElement(a,{source:e,record:w,resource:y,value:A}):f.jsx(S.Typography,{variant:n,children:A}),u?E.isValidElement(u)?E.cloneElement(u,{style:vd}):E.createElement(u,{style:vd}):null,d?f.jsx(S.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:d}):null]})]})}const vd={width:"1.5rem",alignSelf:"center"};function Bq({children:e}){const t=pt();return f.jsx(On,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,border:!1,boxShadow:!0,shadow:t.customShadows.z1,children:f.jsx(S.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})}function yd({version:e,name:t,copy:n,children:r,logo:o,background:i=hu,footer:a=!0}){return f.jsxs(S.Box,{children:[f.jsx(mm,{source:"default"}),E.isValidElement(i)?i:E.createElement(i),f.jsxs(S.Grid,{container:!0,direction:"column",justifyContent:"flex-end",children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(vm,{title:t})}),f.jsxs(S.Grid,{item:!0,xs:12,children:[f.jsx(S.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(S.Grid,{item:!0,children:f.jsx(Bq,{children:r})})}),a?f.jsx(S.Grid,{item:!0,sx:{pb:1,position:"absolute",bottom:0,ml:2},children:f.jsx(lm,{name:t,copy:n,version:e})}):null]})]})]})}function Nq({name:e,copy:t,logo:n,version:r,background:o}){const i=q.useTranslate(),a=q.useAuthProvider(),c=q.useNotify(),u=ut.useNavigate(),{token:d}=ut.useParams();return E.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(d).then(()=>{c("ra.auth.activate_success",{type:"info"}),te.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),te.delay(()=>u("/login"),1e3)})},[d,a,c,u]),f.jsx(yd,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:i("ra.auth.activate")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})}function TI(){const e=E.useCallback(()=>location.reload(),[]);return f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{alt:"Error",src:v1,style:{width:"100%",maxWidth:450}}),f.jsx(S.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(S.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(S.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}function AI({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:i=!1,redirectTo:a,background:c=f.jsx(hu,{})}){const[u,d]=q.useSafeSetState(!1),p=q.useLogin(),g=q.useTranslate(),v=q.useNotify(),y=q.useCheckAuth(),b=ut.useNavigate();E.useEffect(()=>{y({},!1).then(()=>{b("/")}).catch(()=>{})},[y,b]);function x(w){d(!0),p(w,a).then(()=>{d(!1)}).catch(A=>{d(!1),v(typeof A=="string"?A:typeof A>"u"||!A.message?"ra.auth.sign_in_error":A.message,{type:"error",messageArgs:{_:typeof A=="string"?A:A&&A.message?A.message:void 0}})})}return f.jsx(yd,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:"Login"}),i?f.jsx(S.Typography,{component:ut.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:g("ra.auth.register")}):null]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(q.Form,{onSubmit:x,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(hr,{autoFocus:!0,source:"username",label:g("ra.auth.username"),autoComplete:"username",validate:q.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(hr,{source:"password",label:g("ra.auth.password"),type:"password",autoComplete:"current-password",validate:q.required(),placeholder:g("ra.auth.password_placeholder"),fullWidth:!0})})]}),o?f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(S.Link,{variant:"h6",component:ut.Link,to:"/recover",color:"text.primary",children:g("ra.auth.forgot_password")})})}):null,f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(S.CircularProgress,{size:19,thickness:3}):g("ra.auth.sign_in")})})]})})]})})}function Vq({name:e,copy:t,logo:n,version:r,background:o}){const[i,a]=E.useState(!1),c=q.useTranslate(),u=q.useRedirect(),d=q.useNotify(),p=q.useAuthProvider();function g({email:v}){a(!0),p.recover(v).then(y=>{const b=`ra.auth.recover_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>a(!1))}return f.jsx(yd,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(L.Form,{onSubmit:g,children:[f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"email",validate:[q.required(),q.email()]})})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(S.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})}function Wq({name:e,copy:t,version:n,logo:r,background:o}){const[i,a]=E.useState(!1),c=q.useTranslate(),u=q.useRedirect(),d=q.useNotify(),p=q.useAuthProvider();function g(v){a(!0),p.register(v).then(y=>{const b=`ra.auth.register_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d(y,{type:"error"})}).finally(()=>a(!1))}return f.jsx(yd,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(L.Form,{onSubmit:g,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"name",label:c("ra.register.name"),validate:q.required()})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"email",type:"email",validate:[q.required(),q.email()]})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(hr,{source:"password",type:"password",validate:q.required()})})]}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})}function zq(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function Uq(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Hq(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(Ue.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function Mi({color:e,theme:t}){const n=nn(t,e),{lighter:r,light:o,main:i}=n;return{borderColor:et(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:i}}}function Gq(e){const t=Mi({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":Mi({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":Mi({color:"secondary",theme:e}),"&.MuiAlert-borderError":Mi({color:"error",theme:e}),"&.MuiAlert-borderSuccess":Mi({color:"success",theme:e}),"&.MuiAlert-borderInfo":Mi({color:"info",theme:e}),"&.MuiAlert-borderWarning":Mi({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function Yq(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Kq(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function Fi({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function Xq(e){const t=Fi({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Fi({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Fi({color:"secondary",theme:e}),"&.MuiBadge-colorError":Fi({color:"error",theme:e}),"&.MuiBadge-colorInfo":Fi({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Fi({color:"success",theme:e}),"&.MuiBadge-colorWarning":Fi({color:"warning",theme:e})}}}}}function tt({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:o,main:i,dark:a,contrastText:c}=r,u=`${t}Button`,d=bs(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${et(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${et(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:i,boxShadow:d,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function Zq(e){const t=tt({variant:"dashed",color:"primary",theme:e}),n=tt({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":tt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":tt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":tt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":tt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":tt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":tt({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":tt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":tt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":tt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":tt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":tt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":tt({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:tt({variant:"contained",color:"primary",theme:e}),containedSecondary:tt({variant:"contained",color:"secondary",theme:e}),containedError:tt({variant:"contained",color:"error",theme:e}),containedSuccess:tt({variant:"contained",color:"success",theme:e}),containedInfo:tt({variant:"contained",color:"info",theme:e}),containedWarning:tt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:tt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:tt({variant:"outlined",color:"secondary",theme:e}),outlinedError:tt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:tt({variant:"outlined",color:"success",theme:e}),outlinedInfo:tt({variant:"outlined",color:"info",theme:e}),outlinedWarning:tt({variant:"outlined",color:"warning",theme:e}),textPrimary:tt({variant:"text",color:"primary",theme:e}),textSecondary:tt({variant:"text",color:"secondary",theme:e}),textError:tt({variant:"text",color:"error",theme:e}),textSuccess:tt({variant:"text",color:"success",theme:e}),textInfo:tt({variant:"text",color:"info",theme:e}),textWarning:tt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Qq(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Jq(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function qq(){return{MuiCard:{styleOverrides:{root:{boxShadow:"none"}}}}}function $q(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Us({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:o,dark:i}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function e$(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function bm(e){const t=e$(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function t$(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(Ue.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(Ue.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...bm("small")},"&.size-medium":{...bm("medium")},"&.size-large":{...bm("large")}},colorPrimary:Us({color:"primary",theme:e}),colorSecondary:Us({color:"secondary",theme:e}),colorSuccess:Us({color:"success",theme:e}),colorWarning:Us({color:"warning",theme:e}),colorInfo:Us({color:"info",theme:e}),colorError:Us({color:"error",theme:e})}}}}function Hs({color:e,theme:t}){const n=nn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Xn({color:e,theme:t}){const n=nn(t,e),{light:r,lighter:o,main:i}=n;return{color:i,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:i,"&:hover":{color:r}}}}function n$(e){const t=Xn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Hs({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Hs({color:"secondary",theme:e}),"&.MuiChip-colorError":Hs({color:"error",theme:e}),"&.MuiChip-colorInfo":Hs({color:"info",theme:e}),"&.MuiChip-colorSuccess":Hs({color:"success",theme:e}),"&.MuiChip-colorWarning":Hs({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Xn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Xn({color:"secondary",theme:e}),"&.MuiChip-lightError":Xn({color:"error",theme:e}),"&.MuiChip-lightInfo":Xn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Xn({color:"success",theme:e}),"&.MuiChip-lightWarning":Xn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Xn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Xn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Xn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Xn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Xn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Xn({color:"warning",theme:e})}}}}}function r$(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:et("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function o$(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function i$(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Gs({color:e,theme:t}){const n=nn(t,e),{main:r,dark:o,contrastText:i}=n,a=`${e}Button`,c=bs(t,a);return{color:i,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${et(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${et(r,.9)}`}}}function s$(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Gs({color:"primary",theme:e}),"&.MuiFab-secondary":Gs({color:"secondary",theme:e}),"&.Mui-error":Gs({color:"error",theme:e}),"&.MuiFab-success":Gs({color:"success",theme:e}),"&.MuiFab-info":Gs({color:"info",theme:e}),"&.MuiFab-warning":Gs({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function a$(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function l$(e){return{MuiInputBase:{styleOverrides:{}}}}function c$(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1.3em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function u$(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function d$(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function f$(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function p$(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function h$(e){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function g$(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function _i({variant:e,theme:t}){const n=nn(t,e),{light:r}=n,o=bs(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function m$(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{..._i({variant:"primary",theme:e}),"&.Mui-error":{..._i({variant:"error",theme:e})}},inputSizeSmall:{padding:"9px 8px 9px 12px"},inputMultiline:{padding:0},colorSecondary:_i({variant:"secondary",theme:e}),colorError:_i({variant:"error",theme:e}),colorWarning:_i({variant:"warning",theme:e}),colorInfo:_i({variant:"info",theme:e}),colorSuccess:_i({variant:"success",theme:e})}}}}function v$(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function Et({variant:e,color:t,theme:n}){const r=nn(n,t),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:i},...d};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:i},...d};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...d}}}function y$(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":Et({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":Et({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":Et({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":Et({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":Et({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":Et({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":Et({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":Et({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":Et({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":Et({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":Et({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":Et({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":Et({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":Et({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":Et({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":Et({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":Et({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":Et({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":Et({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":Et({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":Et({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":Et({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":Et({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":Et({variant:"outlined",color:"warning",theme:e})}}}}}}function b$(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Ys({color:e,theme:t}){const n=nn(t,e),{lighter:r,main:o,dark:i}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function x$(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function xm(e){const t=x$(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function C$(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(S.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...xm("small")},"&.size-medium":{...xm("medium")},"&.size-large":{...xm("large")}},colorPrimary:Ys({color:"primary",theme:e}),colorSecondary:Ys({color:"secondary",theme:e}),colorSuccess:Ys({color:"success",theme:e}),colorWarning:Ys({color:"warning",theme:e}),colorInfo:Ys({color:"info",theme:e}),colorError:Ys({color:"error",theme:e})}}}}function Ks({color:e,theme:t}){const n=nn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function w$(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":Ks({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":Ks({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":Ks({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":Ks({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":Ks({color:"info",theme:e}),"&.MuiSlider-thumbColorError":Ks({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function S$(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function Cm(e,t){const n=S$(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function E$(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...Cm(e,"medium")},sizeLarge:{...Cm(e,"large")},sizeSmall:{...Cm(e,"small")}}}}}function T$(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function A$(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function I$(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function O$(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function P$(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function j$(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function k$(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function M$(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function F$(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function _$(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function R$(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function D$(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function L$(e){return Ze.merge(zq(e),Uq(e),Hq(e),Gq(e),Yq(),Kq(e),Xq(e),Zq(e),Qq(),Jq(),qq(),$q(),t$(e),n$(e),r$(e),o$(e),i$(),s$(e),a$(e),l$(),c$(e),u$(),d$(),f$(e),p$(e),h$(),g$(),m$(e),v$(),y$(e),b$(e),C$(e),w$(e),E$(e),T$(e),A$(e),I$(e),O$(e),P$(e),j$(),k$(),M$(),F$(e),_$(e),R$(),D$())}function B$(e){const{blue:t,red:n,gold:r,cyan:o,green:i,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:u},grey:c}}function N$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],d=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(i=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],d=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function V$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function W$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function z$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function U$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function H$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function G$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Y$(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function K$(e,t,n){switch(t){case"theme1":return N$(e,n);case"theme2":return V$(e,n);case"theme3":return W$(e,n);case"theme4":return z$(e,n);case"theme5":return U$(e,n);case"theme6":return H$(e,n);case"theme7":return G$(e,n);case"theme8":return Y$(e,n);default:return B$(e)}}var wm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];wm.primary=wm[5];var Sm=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sm.primary=Sm[5];var Em=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Em.primary=Em[5];var Tm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Tm.primary=Tm[5];var Am=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Am.primary=Am[5];var Im=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Im.primary=Im[5];var Om=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Om.primary=Om[5];var Pm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Pm.primary=Pm[5];var jm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jm.primary=jm[5];var km=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];km.primary=km[5];var Mm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mm.primary=Mm[5];var Fm=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Fm.primary=Fm[5];var _m=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_m.primary=_m[5];var X$={red:wm,volcano:Sm,orange:Em,gold:Tm,yellow:Am,lime:Im,green:Om,cyan:Pm,blue:jm,geekblue:km,purple:Mm,magenta:Fm,grey:_m},Rm=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rm.primary=Rm[5];var Dm=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Dm.primary=Dm[5];var Lm=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Lm.primary=Lm[5];var Bm=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Bm.primary=Bm[5];var Nm=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Nm.primary=Nm[5];var Vm=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Vm.primary=Vm[5];var Wm=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Wm.primary=Wm[5];var zm=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];zm.primary=zm[5];var Um=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Um.primary=Um[5];var Hm=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Hm.primary=Hm[5];var Gm=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Gm.primary=Gm[5];var Ym=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ym.primary=Ym[5];var Km=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Km.primary=Km[5];var Z$={red:Rm,volcano:Dm,orange:Lm,gold:Bm,yellow:Nm,lime:Vm,green:Wm,cyan:zm,blue:Um,geekblue:Hm,purple:Gm,magenta:Ym,grey:Km};function Q$(e,t){const n=e==="dark"?Z$:X$;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#121212","#d3d8db"]),n.grey=[...r,...o,...i];const a=K$(n,t,e);return Fp({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?et(a.grey[900],.87):a.grey[700],secondary:e==="dark"?et(a.grey[900],.45):a.grey[500],disabled:e==="dark"?et(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?et(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})}function J$(e){return{button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z0:"none",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${et(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${et(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${et(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${et(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${et(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${et(e.palette.info.main,.2)}`,success:`0 0 0 2px ${et(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${et(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${et(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${et(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${et(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${et(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${et(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${et(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${et(e.palette.grey[500],.2)}`}}function q$(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}}}function Xm({themeOverrides:e,children:t}){const n=Cn(),{themeDirection:r,mode:o,presetColor:i,fontFamily:a}=n,c=oE(),u=E.useMemo(()=>o==="auto"?c:o,[o,c]),d=E.useMemo(()=>Q$(u,i),[u,i]),p=E.useMemo(()=>q$(a),[a]),g=E.useMemo(()=>J$(d),[d]),v=E.useMemo(()=>te.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:d.palette,customShadows:g,typography:p,components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:d.spacing(2.6875),height:d.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(d):e),[r,d,p,g,e]),y=Fp(v),b=te.cloneDeep(y.components??{});return y.components=te.merge(L$(y),b),f.jsx(S.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(AC,{theme:y,children:[f.jsx(S.CssBaseline,{enableColorScheme:!0}),t]})})}function $$({children:e,theme:t,...n}){return f.jsx(L.CoreAdminContext,{...n,children:f.jsx(Xm,{themeOverrides:t,children:f.jsx(SI,{children:e})})})}function II(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:i,disableTelemetry:a,history:c,i18nProvider:u,layout:d,loading:p,loginPage:g,authCallbackPage:v,menu:y,notification:b,queryClient:x,requireAuth:w,store:A=L.localStorageStore(),ready:j,theme:T,title:P="React Admin"}=e;return f.jsx($$,{authProvider:t,dataProvider:i,i18nProvider:u,store:A,history:c,queryClient:x,theme:T,children:f.jsx(L.AdminUI,{layout:d,dashboard:o,disableTelemetry:a,menu:y,catchAll:n,title:P,loading:p,loginPage:g,authCallbackPage:v,notification:b,requireAuth:w,ready:j,children:r})})}class OI{constructor({catch:t,display:n,log:r,error:o}){Ul(this,"catch");Ul(this,"display");Ul(this,"log");Ul(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}class eee{constructor(t){Io(this,xl);Io(this,Cl);Io(this,Xs,new Set);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");si(this,Cl,n),si(this,xl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:i}=t,a=`${n}${r}${o}${i}`;Nn(this,Xs).has(a)||(Nn(this,Xs).add(a),fetch(`${Nn(this,Cl)}/ui/error-log`,{method:"PUT",headers:Nn(this,xl),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(u=>{console.warn("Unable to send error to server",u),Nn(this,Xs).delete(a)}))}}xl=new WeakMap,Cl=new WeakMap,Xs=new WeakMap;function tee({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=i=>new OI({catch:i!=null,display:!1,log:i!=null,error:i}),...o}){const i=D.useMemo(()=>o.errorHandler?o.errorHandler:new eee({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=D.useCallback(function(u,...d){var g;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(g=u==null?void 0:u.toString())==null?void 0:g.replace(/%s/g,()=>d.shift()));return p.isCatched()||(p.logError()&&(u instanceof ErrorEvent?i.handle(u):i.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)),!1},[r,i,a]);return D.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c,a]),!0}class nee{constructor(t){Io(this,wl);Io(this,Sl);Io(this,Di,[]);const{apiUrl:n}=t??{};if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");si(this,Sl,n),si(this,wl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!te.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!te.isString(n)||te.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!te.isString(r)||te.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!te.some(Nn(this,Di),o=>te.isEqual(o,{code:n,lang:r}))){Nn(this,Di).push({code:n,lang:r}),fetch(`${Nn(this,Sl)}/i18n/message`,{method:"put",headers:Nn(this,wl),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),si(this,Di,te.reject(Nn(this,Di),i=>te.isEqual(i,{code:n,lang:r})))});return}}}wl=new WeakMap,Sl=new WeakMap,Di=new WeakMap;function PI(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,i=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new nee({apiUrl:t});function u(){return fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(g=>g.json()).catch(()=>Promise.resolve(i))}function d(){return fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(g=>g.json()).then(g=>g.reduce((v,y)=>({...v,[y.lang]:{...v[y.lang]||{},[y.code]:y.text}}),{}))}function p(g,v,y){return r||console.error(`Warning: Missing translation for key: "${g}"`),o&&(te.isString(g)?g.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${g}`):c.handleMessage({code:g,lang:y}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),g}return Promise.all([u(),d()]).then(g=>{const[v,y]=g;function b(x){return te.get(y,x,{})}return gv(b,n,v,{allowMissing:r||o,onMissingKey:p})})}function ree(e){const{defaultLocale:t,path:n}=e,r=[{locale:t,name:t}],o=new Headers({Accept:"application/json","Content-Type":"application/json"});function i(){return fetch(`${n}/languages.json`,{headers:o,method:"get"}).then(c=>c.json()).catch(()=>Promise.resolve(r))}function a(){return fetch(`${n}/messages.json`,{headers:o,method:"get"}).then(c=>c.json()).then(c=>c.reduce((u,d)=>({...u,[d.lang]:{...u[d.lang]||{},[d.code]:d.text}}),{}))}return Promise.all([i(),a()]).then(c=>{const[u,d]=c;function p(g){return te.get(d,g,{})}return gv(p,t,u,{allowMissing:!0})})}function oee({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})}){const[r,o]=E.useState({loading:!0,languages:null});return E.useEffect(()=>{const i=new Headers;i.append("Accept","application/json"),i.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:i}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r}function jI(e){const[t,n]=E.useState(),r=rE(e);return E.useEffect(()=>{if(e.customProvider!==void 0){e.customProvider.then(n);return}PI(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r,e==null?void 0:e.customProvider]),t}const iee=new li.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function see({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:i,logoIcon:a,loginPage:c=f.jsx(AI,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(hu,{})}),menu:u,name:d,copy:p,version:g="0.0.0",dataProvider:v,authProvider:y,i18nProvider:b,errorHandler:x,error:w,enableNotification:A=!1,enableRegistration:j=!1,enablePasswordRecover:T=!1,enableThemeToggler:P=!1,enableLocaleSwitcher:O=!1,queryClient:_=iee,background:R,notificationAPI:N="entities/notification",...Y}){tee({apiUrl:n,errorHandler:x,catcherFn:ne=>{const Z=ne==null?void 0:ne.toString(),V=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(W=>Z==null?void 0:Z.includes(W));return new OI({catch:V,display:!V,log:!V&&o===!0,error:Z})}});const X=E.useMemo(()=>E.isValidElement(c)?E.cloneElement(c,{name:d,copy:p,logo:i,version:g,background:R,enableRegistration:j,enablePasswordRecover:T}):c,[c,d,g,p,R,i,j,T]),G=E.useMemo(()=>ne=>{const Z=d?f.jsx(vm,{title:d}):i,J=d?f.jsx(EI,{title:d}):a;return f.jsx(pI,{...ne,name:d,copy:p,version:g,logoMain:Z,logoIcon:J,notification:N,enableThemeToggler:P,enableNotification:A,enableLocaleSwitcher:O,error:w})},[i,a,d,p,g,w,N,A,P,O]),re=jI({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o,customProvider:b});return re===void 0?f.jsx(f.Fragment,{}):re.error?f.jsx(Rg,{initialConfig:t,children:f.jsx(Xm,{themeOverrides:e,children:f.jsx(TI,{})})}):f.jsx(EK,{children:f.jsx(AS,{menu:u,children:f.jsx(Rg,{initialConfig:t,children:f.jsx(II,{theme:e,layout:G,notification:mI,queryClient:_,dataProvider:v,authProvider:y,i18nProvider:re,loginPage:X,...Y})})})})}Object.defineProperty(k,"ArrayField",{enumerable:!0,get:()=>L.ArrayField}),Object.defineProperty(k,"ArrayInputContext",{enumerable:!0,get:()=>L.ArrayInputContext}),Object.defineProperty(k,"BooleanField",{enumerable:!0,get:()=>L.BooleanField}),Object.defineProperty(k,"ChipField",{enumerable:!0,get:()=>L.ChipField}),Object.defineProperty(k,"Confirm",{enumerable:!0,get:()=>L.Confirm}),Object.defineProperty(k,"CreateContextProvider",{enumerable:!0,get:()=>L.CreateContextProvider}),Object.defineProperty(k,"CustomRoutes",{enumerable:!0,get:()=>L.CustomRoutes}),Object.defineProperty(k,"DeleteWithUndoButton",{enumerable:!0,get:()=>L.DeleteWithUndoButton}),Object.defineProperty(k,"EditButton",{enumerable:!0,get:()=>L.EditButton}),Object.defineProperty(k,"EditContextProvider",{enumerable:!0,get:()=>L.EditContextProvider}),Object.defineProperty(k,"FieldTitle",{enumerable:!0,get:()=>L.FieldTitle}),Object.defineProperty(k,"FilterButton",{enumerable:!0,get:()=>L.FilterButton}),Object.defineProperty(k,"FilterList",{enumerable:!0,get:()=>L.FilterList}),Object.defineProperty(k,"FilterListItem",{enumerable:!0,get:()=>L.FilterListItem}),Object.defineProperty(k,"FilterLiveSearch",{enumerable:!0,get:()=>L.FilterLiveSearch}),Object.defineProperty(k,"Form",{enumerable:!0,get:()=>L.Form}),Object.defineProperty(k,"FormDataConsumer",{enumerable:!0,get:()=>L.FormDataConsumer}),Object.defineProperty(k,"HttpError",{enumerable:!0,get:()=>L.HttpError}),Object.defineProperty(k,"I18nContextProvider",{enumerable:!0,get:()=>L.I18nContextProvider}),Object.defineProperty(k,"ListBase",{enumerable:!0,get:()=>L.ListBase}),Object.defineProperty(k,"LoadingIndicator",{enumerable:!0,get:()=>L.LoadingIndicator}),Object.defineProperty(k,"RaSimpleFormIterator",{enumerable:!0,get:()=>L.SimpleFormIterator}),Object.defineProperty(k,"RecordContextProvider",{enumerable:!0,get:()=>L.RecordContextProvider}),Object.defineProperty(k,"ReferenceArrayField",{enumerable:!0,get:()=>L.ReferenceArrayField}),Object.defineProperty(k,"ReferenceField",{enumerable:!0,get:()=>L.ReferenceField}),Object.defineProperty(k,"Resource",{enumerable:!0,get:()=>L.Resource}),Object.defineProperty(k,"ResourceContextProvider",{enumerable:!0,get:()=>L.ResourceContextProvider}),Object.defineProperty(k,"SaveButton",{enumerable:!0,get:()=>L.SaveButton}),Object.defineProperty(k,"SavedQueriesList",{enumerable:!0,get:()=>L.SavedQueriesList}),Object.defineProperty(k,"SimpleFormIteratorContext",{enumerable:!0,get:()=>L.SimpleFormIteratorContext}),Object.defineProperty(k,"SimpleShowLayout",{enumerable:!0,get:()=>L.SimpleShowLayout}),Object.defineProperty(k,"SingleFieldList",{enumerable:!0,get:()=>L.SingleFieldList}),Object.defineProperty(k,"TabbedFormTabs",{enumerable:!0,get:()=>L.TabbedFormTabs}),Object.defineProperty(k,"UrlField",{enumerable:!0,get:()=>L.UrlField}),Object.defineProperty(k,"ValidationError",{enumerable:!0,get:()=>L.ValidationError}),Object.defineProperty(k,"WithListContext",{enumerable:!0,get:()=>L.WithListContext}),Object.defineProperty(k,"choices",{enumerable:!0,get:()=>L.choices}),Object.defineProperty(k,"email",{enumerable:!0,get:()=>L.email}),Object.defineProperty(k,"maxLength",{enumerable:!0,get:()=>L.maxLength}),Object.defineProperty(k,"maxValue",{enumerable:!0,get:()=>L.maxValue}),Object.defineProperty(k,"minLength",{enumerable:!0,get:()=>L.minLength}),Object.defineProperty(k,"minValue",{enumerable:!0,get:()=>L.minValue}),Object.defineProperty(k,"number",{enumerable:!0,get:()=>L.number}),Object.defineProperty(k,"regex",{enumerable:!0,get:()=>L.regex}),Object.defineProperty(k,"required",{enumerable:!0,get:()=>L.required}),Object.defineProperty(k,"useArrayInput",{enumerable:!0,get:()=>L.useArrayInput}),Object.defineProperty(k,"useAuthProvider",{enumerable:!0,get:()=>L.useAuthProvider}),Object.defineProperty(k,"useCheckAuth",{enumerable:!0,get:()=>L.useCheckAuth}),Object.defineProperty(k,"useChoices",{enumerable:!0,get:()=>L.useChoices}),Object.defineProperty(k,"useChoicesContext",{enumerable:!0,get:()=>L.useChoicesContext}),Object.defineProperty(k,"useCreate",{enumerable:!0,get:()=>L.useCreate}),Object.defineProperty(k,"useCreateContext",{enumerable:!0,get:()=>L.useCreateContext}),Object.defineProperty(k,"useCreateController",{enumerable:!0,get:()=>L.useCreateController}),Object.defineProperty(k,"useCreateSuggestionContext",{enumerable:!0,get:()=>L.useCreateSuggestionContext}),Object.defineProperty(k,"useDataProvider",{enumerable:!0,get:()=>L.useDataProvider}),Object.defineProperty(k,"useDeleteMany",{enumerable:!0,get:()=>L.useDeleteMany}),Object.defineProperty(k,"useEditContext",{enumerable:!0,get:()=>L.useEditContext}),Object.defineProperty(k,"useEditController",{enumerable:!0,get:()=>L.useEditController}),Object.defineProperty(k,"useGetIdentity",{enumerable:!0,get:()=>L.useGetIdentity}),Object.defineProperty(k,"useGetList",{enumerable:!0,get:()=>L.useGetList}),Object.defineProperty(k,"useGetMany",{enumerable:!0,get:()=>L.useGetMany}),Object.defineProperty(k,"useGetManyReference",{enumerable:!0,get:()=>L.useGetManyReference}),Object.defineProperty(k,"useGetOne",{enumerable:!0,get:()=>L.useGetOne}),Object.defineProperty(k,"useInput",{enumerable:!0,get:()=>L.useInput}),Object.defineProperty(k,"useListContext",{enumerable:!0,get:()=>L.useListContext}),Object.defineProperty(k,"useListController",{enumerable:!0,get:()=>L.useListController}),Object.defineProperty(k,"useLocaleState",{enumerable:!0,get:()=>L.useLocaleState}),Object.defineProperty(k,"useLocales",{enumerable:!0,get:()=>L.useLocales}),Object.defineProperty(k,"useLogin",{enumerable:!0,get:()=>L.useLogin}),Object.defineProperty(k,"useLogout",{enumerable:!0,get:()=>L.useLogout}),Object.defineProperty(k,"useNotify",{enumerable:!0,get:()=>L.useNotify}),Object.defineProperty(k,"usePermissions",{enumerable:!0,get:()=>L.usePermissions}),Object.defineProperty(k,"useRecordContext",{enumerable:!0,get:()=>L.useRecordContext}),Object.defineProperty(k,"useReferenceArrayFieldController",{enumerable:!0,get:()=>L.useReferenceArrayFieldController}),Object.defineProperty(k,"useRefresh",{enumerable:!0,get:()=>L.useRefresh}),Object.defineProperty(k,"useRemoveFromStore",{enumerable:!0,get:()=>L.useRemoveFromStore}),Object.defineProperty(k,"useResetStore",{enumerable:!0,get:()=>L.useResetStore}),Object.defineProperty(k,"useResourceContext",{enumerable:!0,get:()=>L.useResourceContext}),Object.defineProperty(k,"useResourceDefinition",{enumerable:!0,get:()=>L.useResourceDefinition}),Object.defineProperty(k,"useResourceDefinitions",{enumerable:!0,get:()=>L.useResourceDefinitions}),Object.defineProperty(k,"useSafeSetState",{enumerable:!0,get:()=>L.useSafeSetState}),Object.defineProperty(k,"useShowContext",{enumerable:!0,get:()=>L.useShowContext}),Object.defineProperty(k,"useShowController",{enumerable:!0,get:()=>L.useShowController}),Object.defineProperty(k,"useSimpleFormIterator",{enumerable:!0,get:()=>L.useSimpleFormIterator}),Object.defineProperty(k,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>L.useSimpleFormIteratorItem}),Object.defineProperty(k,"useStore",{enumerable:!0,get:()=>L.useStore}),Object.defineProperty(k,"useStoreContext",{enumerable:!0,get:()=>L.useStoreContext}),Object.defineProperty(k,"useTranslate",{enumerable:!0,get:()=>L.useTranslate}),Object.defineProperty(k,"useTranslateLabel",{enumerable:!0,get:()=>L.useTranslateLabel}),Object.defineProperty(k,"useUnselect",{enumerable:!0,get:()=>L.useUnselect}),Object.defineProperty(k,"useUnselectAll",{enumerable:!0,get:()=>L.useUnselectAll}),Object.defineProperty(k,"useUpdate",{enumerable:!0,get:()=>L.useUpdate}),Object.defineProperty(k,"useUpdateMany",{enumerable:!0,get:()=>L.useUpdateMany}),Object.defineProperty(k,"withLifecycleCallbacks",{enumerable:!0,get:()=>L.withLifecycleCallbacks}),k.ActionsField=IK,k.ActionsMenu=No,k.ActivatePage=Nq,k.ActiveFiltersChips=fm,k.AddTableRow=Kg,k.Admin=II,k.AnimateButton=uk,k.AppBarStyled=jA,k.ApplicaAdmin=see,k.ArrayInput=AK,k.AttachmentField=gE,k.AttachmentInput=qK,k.AuthBackground=hu,k.AutocompleteArrayInput=eX,k.AutocompleteInput=nX,k.Avatar=Zc,k.BooleanInput=oX,k.Breadcrumbs=BC,k.BulkActionsToolbar=RA,k.BulkDeleteWithConfirmButton=aE,k.BulkFloatingActionsToolbar=OJ,k.Button=Oi,k.CardForm=sE,k.ChangePasswordButton=$A,k.ChangePasswordForm=Vg,k.CircularWithLabel=cR,k.CircularWithPath=uR,k.CoverField=vE,k.Create=DX,k.CreateButton=cE,k.CreateButtonClasses=td,k.CreateInDialogButton=yK,k.Datagrid=RJ,k.DateAgoField=bE,k.DateField=DK,k.DateInput=aX,k.DateTimeInput=cX,k.DeleteWithConfirmButton=ll,k.Dot=rh,k.Drawer=PA,k.DrawerHeader=uT,k.DrawerHeaderStyled=lT,k.DrawerToggle=FA,k.Edit=NX,k.EditInDialogButton=CK,k.EmailField=BK,k.Empty=ml,k.EmptyClasses=ki,k.Error=vg,k.Field=qE,k.FileField=xE,k.FileInput=dX,k.FilterSidebar=md,k.FilterSidebarButton=QJ,k.FilterSidebarContext=um,k.Footer=lm,k.FormHeader=zX,k.FunctionField=VK,k.GenericErrorPage=TI,k.Header=_A,k.HeaderButton=kA,k.HeaderIconButton=EJ,k.HeaderNotification=qA,k.HeaderProfile=nI,k.HeaderSpacer=oI,k.HeaderToggleButton=Vs,k.HorizontalBar=iI,k.IconButton=tu,k.ImageField=mE,k.ImageInput=fX,k.ImpersonateUserButton=wK,k.LabeledArrayInput=pE,k.LabeledInput=dn,k.Layout=pI,k.LayoutContent=aT,k.LayoutProvider=oT,k.LayoutWrapper=fI,k.LinearWithIcon=dR,k.LinearWithLabel=fR,k.List=uq,k.ListItem=Lq,k.ListToolbar=XA,k.ListViewProvider=JA,k.Loadable=Eq,k.Loader=gI,k.LoadingButton=p1,k.LocalStorage=JS,k.LocaleButton=MA,k.LocalizedTextField=zK,k.LocalizedTextInput=gX,k.LoginPage=AI,k.Logo=cT,k.LogoutButton=eI,k.LongForm=_t,k.MainCard=On,k.MainIcon=vm,k.MenuConfigProvider=AS,k.MenuPopover=m1,k.NavCollapse=yl,k.NavGroup=lI,k.NavItem=vl,k.NavList=cI,k.NavMenu=sI,k.Navigation=uI,k.Notification=mI,k.NotificationList=hq,k.NumberInput=vX,k.OnboardingActionType=zs,k.OnboardingContext=ym,k.OnboardingModes=bl,k.OnboardingProvider=jq,k.OnboardingTip=_q,k.Pagination=hm,k.PaginationActions=pm,k.PopupTransition=lR,k.RadioButtonGroupInput=bX,k.ReadonlyField=YK,k.RecordInput=xX,k.RecoverPage=Vq,k.ReferenceArrayInput=CX,k.ReferenceInput=wX,k.ReferenceManyField=wE,k.ReferenceManyInput=SX,k.RegisterPage=Wq,k.RemoveSavedQueryDialog=HA,k.ResponsiveSection=rI,k.SaveFiltersButton=UA,k.SaveFiltersDialog=zA,k.SavedFiltersList=GA,k.ScrollTop=SI,k.ScrollX=Rq,k.SearchInput=TX,k.SelectArrayInput=IX,k.SelectInput=PX,k.ShadowBox=Dq,k.Show=oZ,k.Sidebar=mr,k.SimpleBar=OA,k.SimpleForm=Bg,k.SimpleFormIterator=sZ,k.SimpleList=gq,k.SizeField=ZK,k.SmallIcon=EI,k.SmartTextInput=jX,k.StopImpersonateButton=tI,k.StyledArrow=h1,k.TabbedForm=Yg,k.TableCreateButton=Zg,k.TableFormIterator=id,k.TableFormIteratorContext=Qg,k.TableFormIteratorItem=eT,k.TableFormIteratorItemContext=Xg,k.TextField=CE,k.TextInput=hr,k.ThemeColor=mm,k.ThemeContext=_g,k.ThemeCustomizationProvider=Xm,k.ThemeProvider=Rg,k.ThemeToggler=dI,k.TimeInput=_X,k.Toolbar=Ho,k.Tooltip=pu,k.TopToolbar=hI,k.Transitions=Bo,k.WizardForm=nT,k.createI18nProvider=PI,k.createJsonI18nProvider=ree,k.getLocalizedValue=kg,k.getPosition=g1,k.getThemeColor=nn,k.getThemeShadow=bs,k.localizedValueHasAllLocales=qu,k.localizedValueHasAtLeastOneLocale=qS,k.onboardingModesSchema=yI,k.onboardingTopicSchema=vI,k.parseTime=tE,k.useBreadcrumbs=IS,k.useGetChipValue=dm,k.useGetLocalizedValue=XY,k.useI18nLanguages=oee,k.useI18nProvider=jI,k.useIsEnabledSidebarFilter=WA,k.useLayoutContext=Jg,k.useLayoutDispatch=wZ,k.useLayoutDrawerState=Pi,k.useLayoutLogoState=sT,k.useLayoutMediaState=Gn,k.useLayoutNotificationsState=ad,k.useLayoutState=Rs,k.useLayoutThemeState=SZ,k.useListViewContext=gm,k.useLocalStorage=Mg,k.useLocalizedValue=KY,k.useMemoizedObject=rE,k.useMenu=bg,k.useMenuConfig=sl,k.useMenuContext=Uu,k.useOnboardingDataProvider=bI,k.useOnboardingTip=wI,k.usePopoverState=_s,k.useRefDimensions=ZY,k.useResourceDefaultValues=LX,k.useResourceTitle=Fg,k.useRestartOnboarding=Mq,k.useSx=Ir,k.useSystemTheme=oE,k.useTableFormIterator=$E,k.useTableFormIteratorItem=JE,k.useThemeConfig=Cn,k.useThemeContext=Dg,k.useWizardFormContext=sd,k.uuid=rY,k.walkChildren=$u,k.withLayoutProvider=iT,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
226
226
  //# sourceMappingURL=react-admin.umd.js.map