@applica-software-guru/react-admin 1.5.357 → 1.5.359

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
- "use strict";var mR=Object.defineProperty;var gh=e=>{throw TypeError(e)};var vR=(e,t,n)=>t in e?mR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qa=(e,t,n)=>vR(e,typeof t!="symbol"?t+"":t,n),Jd=(e,t,n)=>t.has(e)||gh("Cannot "+n);var cn=(e,t,n)=>(Jd(e,t,"read from private field"),n?n.call(e):t.get(e)),Dr=(e,t,n)=>t.has(e)?gh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Hr=(e,t,n,r)=>(Jd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),yo=(e,t,n)=>(Jd(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),yR=require("@emotion/styled"),dn=require("@emotion/react"),O=require("react"),E=require("@mui/material"),He=require("@ant-design/icons"),ut=require("react-router-dom"),Vt=require("@mui/icons-material"),ne=require("ra-core"),Yi=require("react-router"),z=require("react-admin"),fn=require("react-hook-form"),Hi=require("react-query"),Us=require("react-dom"),a9=require("ra-i18n-polyglot");function l9(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 B=l9(O),c9=l9(Us),u9=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wu=O.createContext({}),C6=O.createContext(null),Uu=typeof document<"u",bR=Uu?O.useLayoutEffect:O.useEffect,d9=O.createContext({strict:!1}),x6=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),CR="framerAppearId",f9="data-"+x6(CR);function xR(e,t,n,r){const{visualElement:o}=O.useContext(Wu),i=O.useContext(d9),s=O.useContext(C6),l=O.useContext(u9).reducedMotion,d=O.useRef();r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=d.current;O.useInsertionEffect(()=>{u&&u.update(n,s)});const p=O.useRef(!!(n[f9]&&!window.HandoffComplete));return bR(()=>{u&&(u.render(),p.current&&u.animationState&&u.animationState.animateChanges())}),O.useEffect(()=>{u&&(u.updateFeatures(),!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),u}function Hs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wR(e,t,n){return O.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Hs(n)&&(n.current=r))},[t])}function jl(e){return typeof e=="string"||Array.isArray(e)}function Hu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const w6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],S6=["initial",...w6];function Gu(e){return Hu(e.animate)||S6.some(t=>jl(e[t]))}function p9(e){return!!(Gu(e)||e.variants)}function SR(e,t){if(Gu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||jl(n)?n:void 0,animate:jl(r)?r:void 0}}return e.inherit!==!1?t:{}}function AR(e){const{initial:t,animate:n}=SR(e,O.useContext(Wu));return O.useMemo(()=>({initial:t,animate:n}),[mh(t),mh(n)])}function mh(e){return Array.isArray(e)?e.join(" "):e}const vh={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"]},Rl={};for(const e in vh)Rl[e]={isEnabled:t=>vh[e].some(n=>!!t[n])};function ER(e){for(const t in e)Rl[t]={...Rl[t],...e[t]}}const h9=O.createContext({}),g9=O.createContext({}),TR=Symbol.for("motionComponentSymbol");function IR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&ER(e);function i(l,d){let u;const p={...O.useContext(u9),...l,layoutId:OR(l)},{isStatic:g}=p,h=AR(l),m=r(l,g);if(!g&&Uu){h.visualElement=xR(o,m,p,t);const v=O.useContext(g9),b=O.useContext(d9).strict;h.visualElement&&(u=h.visualElement.loadFeatures(p,b,e,v))}return B.createElement(Wu.Provider,{value:h},u&&h.visualElement?B.createElement(u,{visualElement:h.visualElement,...p}):null,n(o,l,wR(m,h.visualElement,d),m,g,h.visualElement))}const s=O.forwardRef(i);return s[TR]=o,s}function OR({layoutId:e}){const t=O.useContext(h9).id;return t&&e!==void 0?t+"-"+e:e}function PR(e){function t(r,o={}){return IR(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 jR=["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 A6(e){return typeof e!="string"||e.includes("-")?!1:!!(jR.indexOf(e)>-1||/[A-Z]/.test(e))}const Zc={};function RR(e){Object.assign(Zc,e)}const Yl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(Yl);function m9(e,{layout:t,layoutId:n}){return Xi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zc[e]||e==="opacity")}const zn=e=>!!(e&&e.getVelocity),MR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kR=Yl.length;function _R(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<kR;s++){const l=Yl[s];if(e[l]!==void 0){const d=MR[l]||l;i+=`${d}(${e[l]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const v9=e=>t=>typeof t=="string"&&t.startsWith(e),y9=v9("--"),Wf=v9("var(--"),DR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,FR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ai=(e,t,n)=>Math.min(Math.max(n,e),t),Qi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hl={...Qi,transform:e=>ai(0,1,e)},cc={...Qi,default:1},gl=e=>Math.round(e*1e5)/1e5,qu=/(-)?([\d]*\.?[\d])+/g,b9=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,LR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Kl(e){return typeof e=="string"}const Zl=e=>({test:t=>Kl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ko=Zl("deg"),Qr=Zl("%"),Fe=Zl("px"),BR=Zl("vh"),NR=Zl("vw"),yh={...Qr,parse:e=>Qr.parse(e)/100,transform:e=>Qr.transform(e*100)},bh={...Qi,transform:Math.round},C9={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:Ko,rotateX:Ko,rotateY:Ko,rotateZ:Ko,scale:cc,scaleX:cc,scaleY:cc,scaleZ:cc,skew:Ko,skewX:Ko,skewY:Ko,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:hl,originX:yh,originY:yh,originZ:Fe,zIndex:bh,fillOpacity:hl,strokeOpacity:hl,numOctaves:bh};function E6(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:l}=e;let d=!1,u=!1,p=!0;for(const g in t){const h=t[g];if(y9(g)){i[g]=h;continue}const m=C9[g],v=FR(h,m);if(Xi.has(g)){if(d=!0,s[g]=v,!p)continue;h!==(m.default||0)&&(p=!1)}else g.startsWith("origin")?(u=!0,l[g]=v):o[g]=v}if(t.transform||(d||r?o.transform=_R(e.transform,n,p,r):o.transform&&(o.transform="none")),u){const{originX:g="50%",originY:h="50%",originZ:m=0}=l;o.transformOrigin=`${g} ${h} ${m}`}}const T6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function x9(e,t,n){for(const r in t)!zn(t[r])&&!m9(r,n)&&(e[r]=t[r])}function $R({transformTemplate:e},t,n){return O.useMemo(()=>{const r=T6();return E6(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function VR(e,t,n){const r=e.style||{},o={};return x9(o,r,e),Object.assign(o,$R(e,t,n)),e.transformValues?e.transformValues(o):o}function zR(e,t,n){const r={},o=VR(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 WR=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 Xc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||WR.has(e)}let w9=e=>!Xc(e);function UR(e){e&&(w9=t=>t.startsWith("on")?!Xc(t):e(t))}try{UR(require("@emotion/is-prop-valid").default)}catch{}function HR(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(w9(o)||n===!0&&Xc(o)||!t&&!Xc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Ch(e,t,n){return typeof e=="string"?e:Fe.transform(t+n*e)}function GR(e,t,n){const r=Ch(t,e.x,e.width),o=Ch(n,e.y,e.height);return`${r} ${o}`}const qR={offset:"stroke-dashoffset",array:"stroke-dasharray"},YR={offset:"strokeDashoffset",array:"strokeDasharray"};function KR(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?qR:YR;e[i.offset]=Fe.transform(-r);const s=Fe.transform(t),l=Fe.transform(n);e[i.array]=`${s} ${l}`}function I6(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:l=1,pathOffset:d=0,...u},p,g,h){if(E6(e,u,p,h),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:b}=e;m.transform&&(b&&(v.transform=m.transform),delete m.transform),b&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=GR(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&KR(m,s,l,d,!1)}const S9=()=>({...T6(),attrs:{}}),O6=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZR(e,t,n,r){const o=O.useMemo(()=>{const i=S9();return I6(i,t,{enableHardwareAcceleration:!1},O6(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};x9(i,e.style,e),o.style={...i,...o.style}}return o}function XR(e=!1){return(n,r,o,{latestValues:i},s)=>{const d=(A6(n)?ZR:zR)(r,i,s,n),p={...HR(r,typeof n=="string",e),...d,ref:o},{children:g}=r,h=O.useMemo(()=>zn(g)?g.get():g,[g]);return O.createElement(n,{...p,children:h})}}function A9(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 E9=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 T9(e,t,n,r){A9(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(E9.has(o)?o:x6(o),t.attrs[o])}function P6(e,t){const{style:n}=e,r={};for(const o in n)(zn(n[o])||t.style&&zn(t.style[o])||m9(o,e))&&(r[o]=n[o]);return r}function I9(e,t){const n=P6(e,t);for(const r in e)if(zn(e[r])||zn(t[r])){const o=Yl.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function j6(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 QR(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qc=e=>Array.isArray(e),JR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),eM=e=>Qc(e)?e[e.length-1]||0:e;function Rc(e){const t=zn(e)?e.get():e;return JR(t)?t.toValue():t}function tM({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:nM(r,o,i,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const O9=e=>(t,n)=>{const r=O.useContext(Wu),o=O.useContext(C6),i=()=>tM(e,t,r,o);return n?i():QR(i)};function nM(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=Rc(i[h]);let{initial:s,animate:l}=e;const d=Gu(e),u=p9(e);t&&u&&!d&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const g=p?l:s;return g&&typeof g!="boolean"&&!Hu(g)&&(Array.isArray(g)?g:[g]).forEach(m=>{const v=j6(e,m);if(!v)return;const{transitionEnd:b,transition:x,...S}=v;for(const I in S){let w=S[I];if(Array.isArray(w)){const T=p?w.length-1:0;w=w[T]}w!==null&&(o[I]=w)}for(const I in b)o[I]=b[I]}),o}const $t=e=>e;class xh{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 rM(e){let t=new xh,n=new xh,r=0,o=!1,i=!1;const s=new WeakSet,l={schedule:(d,u=!1,p=!1)=>{const g=p&&o,h=g?t:n;return u&&s.add(d),h.add(d)&&g&&o&&(r=t.order.length),d},cancel:d=>{n.remove(d),s.delete(d)},process:d=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const p=t.order[u];p(d),s.has(p)&&(l.schedule(p),e())}o=!1,i&&(i=!1,l.process(d))}};return l}const uc=["prepare","read","update","preRender","render","postRender"],oM=40;function iM(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=uc.reduce((g,h)=>(g[h]=rM(()=>n=!0),g),{}),s=g=>i[g].process(o),l=()=>{const g=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(g-o.timestamp,oM),1),o.timestamp=g,o.isProcessing=!0,uc.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(l))},d=()=>{n=!0,r=!0,o.isProcessing||e(l)};return{schedule:uc.reduce((g,h)=>{const m=i[h];return g[h]=(v,b=!1,x=!1)=>(n||d(),m.schedule(v,b,x)),g},{}),cancel:g=>uc.forEach(h=>i[h].cancel(g)),state:o,steps:i}}const{schedule:Pt,cancel:Oo,state:bn,steps:ef}=iM(typeof requestAnimationFrame<"u"?requestAnimationFrame:$t,!0),sM={useVisualState:O9({scrapeMotionValuesFromProps:I9,createRenderState:S9,onMount:(e,t,{renderState:n,latestValues:r})=>{Pt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Pt.render(()=>{I6(n,r,{enableHardwareAcceleration:!1},O6(t.tagName),e.transformTemplate),T9(t,n)})}})},aM={useVisualState:O9({scrapeMotionValuesFromProps:P6,createRenderState:T6})};function lM(e,{forwardMotionProps:t=!1},n,r){return{...A6(e)?sM:aM,preloadedFeatures:n,useRender:XR(t),createVisualElement:r,Component:e}}function So(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const P9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const cM=e=>t=>P9(t)&&e(t,Yu(t));function To(e,t,n,r){return So(e,t,cM(n),r)}const uM=(e,t)=>n=>t(e(n)),ri=(...e)=>e.reduce(uM);function j9(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wh=j9("dragHorizontal"),Sh=j9("dragVertical");function R9(e){let t=!1;if(e==="y")t=Sh();else if(e==="x")t=wh();else{const n=wh(),r=Sh();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function M9(){const e=R9(!0);return e?(e(),!1):!0}class di{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ah(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||M9())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Pt.update(()=>l[r](i,s))};return To(e.current,n,o,{passive:!e.getProps()[r]})}class dM extends di{mount(){this.unmount=ri(Ah(this.node,!0),Ah(this.node,!1))}unmount(){}}class fM extends di{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=ri(So(this.node.current,"focus",()=>this.onFocus()),So(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const k9=(e,t)=>t?e===t?!0:k9(e,t.parentElement):!1;function tf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Yu(n))}class pM extends di{constructor(){super(...arguments),this.removeStartListeners=$t,this.removeEndListeners=$t,this.removeAccessibleListeners=$t,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=To(window,"pointerup",(l,d)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:p,globalTapTarget:g}=this.node.getProps();Pt.update(()=>{!g&&!k9(this.node.current,l.target)?p&&p(l,d):u&&u(l,d)})},{passive:!(r.onTap||r.onPointerUp)}),s=To(window,"pointercancel",(l,d)=>this.cancelPress(l,d),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ri(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||tf("up",(d,u)=>{const{onTap:p}=this.node.getProps();p&&Pt.update(()=>p(d,u))})};this.removeEndListeners(),this.removeEndListeners=So(this.node.current,"keyup",s),tf("down",(l,d)=>{this.startPress(l,d)})},n=So(this.node.current,"keydown",t),r=()=>{this.isPressing&&tf("cancel",(i,s)=>this.cancelPress(i,s))},o=So(this.node.current,"blur",r);this.removeAccessibleListeners=ri(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&&Pt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!M9()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Pt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=To(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=So(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ri(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Uf=new WeakMap,nf=new WeakMap,hM=e=>{const t=Uf.get(e.target);t&&t(e)},gM=e=>{e.forEach(hM)};function mM({root:e,...t}){const n=e||document;nf.has(n)||nf.set(n,{});const r=nf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gM,{root:e,...t})),r[o]}function vM(e,t,n){const r=mM(t);return Uf.set(e,n),r.observe(e),()=>{Uf.delete(e),r.unobserve(e)}}const yM={some:0,all:1};class bM extends di{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,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:yM[o]},l=d=>{const{isIntersecting:u}=d;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),h=u?p:g;h&&h(d)};return vM(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(CM(t,n))&&this.startObserver()}unmount(){}}function CM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xM={inView:{Feature:bM},tap:{Feature:pM},focus:{Feature:fM},hover:{Feature:dM}};function _9(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 wM(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function SM(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ku(e,t,n){const r=e.getProps();return j6(r,t,n!==void 0?n:r.custom,wM(e),SM(e))}let Xl=$t,Lr=$t;process.env.NODE_ENV!=="production"&&(Xl=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Lr=(e,t)=>{if(!e)throw new Error(t)});const oi=e=>e*1e3,Io=e=>e/1e3,AM={current:!1},D9=e=>Array.isArray(e)&&typeof e[0]=="number";function F9(e){return!!(!e||typeof e=="string"&&L9[e]||D9(e)||Array.isArray(e)&&e.every(F9))}const ll=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,L9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ll([0,.65,.55,1]),circOut:ll([.55,0,1,.45]),backIn:ll([.31,.01,.66,-.59]),backOut:ll([.33,1.53,.69,.99])};function B9(e){if(e)return D9(e)?ll(e):Array.isArray(e)?e.map(B9):L9[e]}function EM(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:l,times:d}={}){const u={[t]:n};d&&(u.offset=d);const p=B9(l);return Array.isArray(p)&&(u.easing=p),e.animate(u,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function TM(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const N9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,IM=1e-7,OM=12;function PM(e,t,n,r,o){let i,s,l=0;do s=t+(n-t)/2,i=N9(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>IM&&++l<OM);return s}function Ql(e,t,n,r){if(e===t&&n===r)return $t;const o=i=>PM(i,0,1,e,n);return i=>i===0||i===1?i:N9(o(i),t,r)}const jM=Ql(.42,0,1,1),RM=Ql(0,0,.58,1),$9=Ql(.42,0,.58,1),MM=e=>Array.isArray(e)&&typeof e[0]!="number",V9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,z9=e=>t=>1-e(1-t),R6=e=>1-Math.sin(Math.acos(e)),W9=z9(R6),kM=V9(R6),U9=Ql(.33,1.53,.69,.99),M6=z9(U9),_M=V9(M6),DM=e=>(e*=2)<1?.5*M6(e):.5*(2-Math.pow(2,-10*(e-1))),Eh={linear:$t,easeIn:jM,easeInOut:$9,easeOut:RM,circIn:R6,circInOut:kM,circOut:W9,backIn:M6,backInOut:_M,backOut:U9,anticipate:DM},Th=e=>{if(Array.isArray(e)){Lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Ql(t,n,r,o)}else if(typeof e=="string")return Lr(Eh[e]!==void 0,`Invalid easing type '${e}'`),Eh[e];return e},k6=(e,t)=>n=>!!(Kl(n)&&LR.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),H9=(e,t,n)=>r=>{if(!Kl(r))return r;const[o,i,s,l]=r.match(qu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},FM=e=>ai(0,255,e),rf={...Qi,transform:e=>Math.round(FM(e))},$i={test:k6("rgb","red"),parse:H9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rf.transform(e)+", "+rf.transform(t)+", "+rf.transform(n)+", "+gl(hl.transform(r))+")"};function LM(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 Hf={test:k6("#"),parse:LM,transform:$i.transform},Gs={test:k6("hsl","hue"),parse:H9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qr.transform(gl(t))+", "+Qr.transform(gl(n))+", "+gl(hl.transform(r))+")"},On={test:e=>$i.test(e)||Hf.test(e)||Gs.test(e),parse:e=>$i.test(e)?$i.parse(e):Gs.test(e)?Gs.parse(e):Hf.parse(e),transform:e=>Kl(e)?e:e.hasOwnProperty("red")?$i.transform(e):Gs.transform(e)},Dt=(e,t,n)=>-n*e+n*t+e;function of(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 BM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,d=2*n-l;o=of(d,l,e+1/3),i=of(d,l,e),s=of(d,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const sf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},NM=[Hf,$i,Gs],$M=e=>NM.find(t=>t.test(e));function Ih(e){const t=$M(e);Lr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Gs&&(n=BM(n)),n}const G9=(e,t)=>{const n=Ih(e),r=Ih(t),o={...n};return i=>(o.red=sf(n.red,r.red,i),o.green=sf(n.green,r.green,i),o.blue=sf(n.blue,r.blue,i),o.alpha=Dt(n.alpha,r.alpha,i),$i.transform(o))};function VM(e){var t,n;return isNaN(e)&&Kl(e)&&(((t=e.match(qu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(b9))===null||n===void 0?void 0:n.length)||0)>0}const q9={regex:DR,countKey:"Vars",token:"${v}",parse:$t},Y9={regex:b9,countKey:"Colors",token:"${c}",parse:On.parse},K9={regex:qu,countKey:"Numbers",token:"${n}",parse:Qi.parse};function af(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 Jc(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&af(n,q9),af(n,Y9),af(n,K9),n}function Z9(e){return Jc(e).values}function X9(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Jc(e),i=t.length;return s=>{let l=o;for(let d=0;d<i;d++)d<r?l=l.replace(q9.token,s[d]):d<r+n?l=l.replace(Y9.token,On.transform(s[d])):l=l.replace(K9.token,gl(s[d]));return l}}const zM=e=>typeof e=="number"?0:e;function WM(e){const t=Z9(e);return X9(e)(t.map(zM))}const li={test:VM,parse:Z9,createTransformer:X9,getAnimatableNone:WM},Q9=(e,t)=>n=>`${n>0?t:e}`;function J9(e,t){return typeof e=="number"?n=>Dt(e,t,n):On.test(e)?G9(e,t):e.startsWith("var(")?Q9(e,t):tv(e,t)}const ev=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>J9(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},UM=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=J9(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},tv=(e,t)=>{const n=li.createTransformer(t),r=Jc(e),o=Jc(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?ri(ev(r.values,o.values),n):(Xl(!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.`),Q9(e,t))},Ml=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Oh=(e,t)=>n=>Dt(e,t,n);function HM(e){return typeof e=="number"?Oh:typeof e=="string"?On.test(e)?G9:tv:Array.isArray(e)?ev:typeof e=="object"?UM:Oh}function GM(e,t,n){const r=[],o=n||HM(e[0]),i=e.length-1;for(let s=0;s<i;s++){let l=o(e[s],e[s+1]);if(t){const d=Array.isArray(t)?t[s]||$t:t;l=ri(d,l)}r.push(l)}return r}function nv(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Lr(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 s=GM(t,r,o),l=s.length,d=u=>{let p=0;if(l>1)for(;p<e.length-2&&!(u<e[p+1]);p++);const g=Ml(e[p],e[p+1],u);return s[p](g)};return n?u=>d(ai(e[0],e[i-1],u)):d}function qM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ml(0,t,r);e.push(Dt(n,1,o))}}function YM(e){const t=[0];return qM(t,e.length-1),t}function KM(e,t){return e.map(n=>n*t)}function ZM(e,t){return e.map(()=>t||$9).splice(0,e.length-1)}function eu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=MM(r)?r.map(Th):Th(r),i={done:!1,value:t[0]},s=KM(n&&n.length===t.length?n:YM(t),e),l=nv(s,t,{ease:Array.isArray(o)?o:ZM(t,o)});return{calculatedDuration:e,next:d=>(i.value=l(d),i.done=d>=e,i)}}function rv(e,t){return t?e*(1e3/t):0}const XM=5;function ov(e,t,n){const r=Math.max(t-XM,0);return rv(n-e(r),t-r)}const lf=.001,QM=.01,Ph=10,JM=.05,ek=1;function tk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Xl(e<=oi(Ph),"Spring duration must be 10 seconds or less");let s=1-t;s=ai(JM,ek,s),e=ai(QM,Ph,Io(e)),s<1?(o=u=>{const p=u*s,g=p*e,h=p-n,m=Gf(u,s),v=Math.exp(-g);return lf-h/m*v},i=u=>{const g=u*s*e,h=g*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-g),b=Gf(Math.pow(u,2),s);return(-o(u)+lf>0?-1:1)*((h-m)*v)/b}):(o=u=>{const p=Math.exp(-u*e),g=(u-n)*e+1;return-lf+p*g},i=u=>{const p=Math.exp(-u*e),g=(n-u)*(e*e);return p*g});const l=5/e,d=rk(o,i,l);if(e=oi(e),isNaN(d))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(d,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const nk=12;function rk(e,t,n){let r=n;for(let o=1;o<nk;o++)r=r-e(r)/t(r);return r}function Gf(e,t){return e*Math.sqrt(1-t*t)}const ok=["duration","bounce"],ik=["stiffness","damping","mass"];function jh(e,t){return t.some(n=>e[n]!==void 0)}function sk(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jh(e,ik)&&jh(e,ok)){const n=tk(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function iv({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:d,mass:u,duration:p,velocity:g,isResolvedFromDuration:h}=sk({...r,velocity:-Io(r.velocity||0)}),m=g||0,v=d/(2*Math.sqrt(l*u)),b=i-o,x=Io(Math.sqrt(l/u)),S=Math.abs(b)<5;n||(n=S?.01:2),t||(t=S?.005:.5);let I;if(v<1){const w=Gf(x,v);I=T=>{const P=Math.exp(-v*x*T);return i-P*((m+v*x*b)/w*Math.sin(w*T)+b*Math.cos(w*T))}}else if(v===1)I=w=>i-Math.exp(-x*w)*(b+(m+x*b)*w);else{const w=x*Math.sqrt(v*v-1);I=T=>{const P=Math.exp(-v*x*T),M=Math.min(w*T,300);return i-P*((m+v*x*b)*Math.sinh(M)+w*b*Math.cosh(M))/w}}return{calculatedDuration:h&&p||null,next:w=>{const T=I(w);if(h)s.done=w>=p;else{let P=m;w!==0&&(v<1?P=ov(I,w,T):P=0);const M=Math.abs(P)<=n,j=Math.abs(i-T)<=t;s.done=M&&j}return s.value=s.done?i:T,s}}}function Rh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:d,restDelta:u=.5,restSpeed:p}){const g=e[0],h={done:!1,value:g},m=D=>l!==void 0&&D<l||d!==void 0&&D>d,v=D=>l===void 0?d:d===void 0||Math.abs(l-D)<Math.abs(d-D)?l:d;let b=n*t;const x=g+b,S=s===void 0?x:s(x);S!==x&&(b=S-g);const I=D=>-b*Math.exp(-D/r),w=D=>S+I(D),T=D=>{const N=I(D),k=w(D);h.done=Math.abs(N)<=u,h.value=h.done?S:k};let P,M;const j=D=>{m(h.value)&&(P=D,M=iv({keyframes:[h.value,v(h.value)],velocity:ov(w,D,h.value),damping:o,stiffness:i,restDelta:u,restSpeed:p}))};return j(0),{calculatedDuration:null,next:D=>{let N=!1;return!M&&P===void 0&&(N=!0,T(D),j(D)),P!==void 0&&D>P?M.next(D-P):(!N&&T(D),h)}}}const ak=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Pt.update(t,!0),stop:()=>Oo(t),now:()=>bn.isProcessing?bn.timestamp:performance.now()}},Mh=2e4;function kh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Mh;)t+=n,r=e.next(t);return t>=Mh?1/0:t}const lk={decay:Rh,inertia:Rh,tween:eu,keyframes:eu,spring:iv};function tu({autoplay:e=!0,delay:t=0,driver:n=ak,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:l="loop",onPlay:d,onStop:u,onComplete:p,onUpdate:g,...h}){let m=1,v=!1,b,x;const S=()=>{x=new Promise($=>{b=$})};S();let I;const w=lk[o]||eu;let T;w!==eu&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&Lr(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),T=nv([0,100],r,{clamp:!1}),r=[0,100]);const P=w({...h,keyframes:r});let M;l==="mirror"&&(M=w({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let j="idle",D=null,N=null,k=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=kh(P));const{calculatedDuration:_}=P;let U=1/0,H=1/0;_!==null&&(U=_+s,H=U*(i+1)-s);let G=0;const Y=$=>{if(N===null)return;m>0&&(N=Math.min(N,$)),m<0&&(N=Math.min($-H/m,N)),D!==null?G=D:G=Math.round($-N)*m;const te=G-t*(m>=0?1:-1),oe=m>=0?te<0:te>H;G=Math.max(te,0),j==="finished"&&D===null&&(G=H);let Q=G,de=P;if(i){const be=Math.min(G,H)/U;let Ce=Math.floor(be),Ee=be%1;!Ee&&be>=1&&(Ee=1),Ee===1&&Ce--,Ce=Math.min(Ce,i+1),!!(Ce%2)&&(l==="reverse"?(Ee=1-Ee,s&&(Ee-=s/U)):l==="mirror"&&(de=M)),Q=ai(0,1,Ee)*U}const pe=oe?{done:!1,value:r[0]}:de.next(Q);T&&(pe.value=T(pe.value));let{done:ye}=pe;!oe&&_!==null&&(ye=m>=0?G>=H:G<=0);const ce=D===null&&(j==="finished"||j==="running"&&ye);return g&&g(pe.value),ce&&W(),pe},V=()=>{I&&I.stop(),I=void 0},Z=()=>{j="idle",V(),b(),S(),N=k=null},W=()=>{j="finished",p&&p(),V(),b()},se=()=>{if(v)return;I||(I=n(Y));const $=I.now();d&&d(),D!==null?N=$-D:(!N||j==="finished")&&(N=$),j==="finished"&&S(),k=N,D=null,j="running",I.start()};e&&se();const K={then($,te){return x.then($,te)},get time(){return Io(G)},set time($){$=oi($),G=$,D!==null||!I||m===0?D=$:N=I.now()-$/m},get duration(){const $=P.calculatedDuration===null?kh(P):P.calculatedDuration;return Io($)},get speed(){return m},set speed($){$===m||!I||(m=$,K.time=Io(G))},get state(){return j},play:se,pause:()=>{j="paused",D=G},stop:()=>{v=!0,j!=="idle"&&(j="idle",u&&u(),Z())},cancel:()=>{k!==null&&Y(k),Z()},complete:()=>{j="finished"},sample:$=>(N=0,Y($))};return K}function ck(e){let t;return()=>(t===void 0&&(t=e()),t)}const uk=ck(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),dk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),dc=10,fk=2e4,pk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!F9(t.ease);function hk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(uk()&&dk.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,l,d,u=!1;const p=()=>{d=new Promise(w=>{l=w})};p();let{keyframes:g,duration:h=300,ease:m,times:v}=o;if(pk(t,o)){const w=tu({...o,repeat:0,delay:0});let T={done:!1,value:g[0]};const P=[];let M=0;for(;!T.done&&M<fk;)T=w.sample(M),P.push(T.value),M+=dc;v=void 0,g=P,h=M-dc,m="linear"}const b=EM(e.owner.current,t,g,{...o,duration:h,ease:m,times:v}),x=()=>{u=!1,b.cancel()},S=()=>{u=!0,Pt.update(x),l(),p()};return b.onfinish=()=>{u||(e.set(TM(g,o)),r&&r(),S())},{then(w,T){return d.then(w,T)},attachTimeline(w){return b.timeline=w,b.onfinish=null,$t},get time(){return Io(b.currentTime||0)},set time(w){b.currentTime=oi(w)},get speed(){return b.playbackRate},set speed(w){b.playbackRate=w},get duration(){return Io(h)},play:()=>{s||(b.play(),Oo(x))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:w}=b;if(w){const T=tu({...o,autoplay:!1});e.setWithVelocity(T.sample(w-dc).value,T.sample(w).value,dc)}S()},complete:()=>{u||b.finish()},cancel:S}}function gk({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:$t,pause:$t,stop:$t,then:i=>(i(),Promise.resolve()),cancel:$t,complete:$t});return t?tu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const mk={type:"spring",stiffness:500,damping:25,restSpeed:10},vk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yk={type:"keyframes",duration:.8},bk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ck=(e,{keyframes:t})=>t.length>2?yk:Xi.has(e)?e.startsWith("scale")?vk(t[1]):mk:bk,qf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(li.test(t)||t==="0")&&!t.startsWith("url(")),xk=new Set(["brightness","contrast","saturate","opacity"]);function wk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qu)||[];if(!r)return e;const o=n.replace(r,"");let i=xk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Sk=/([a-z-]*)\(.*?\)/g,Yf={...li,getAnimatableNone:e=>{const t=e.match(Sk);return t?t.map(wk).join(" "):e}},Ak={...C9,color:On,backgroundColor:On,outlineColor:On,fill:On,stroke:On,borderColor:On,borderTopColor:On,borderRightColor:On,borderBottomColor:On,borderLeftColor:On,filter:Yf,WebkitFilter:Yf},_6=e=>Ak[e];function sv(e,t){let n=_6(e);return n!==Yf&&(n=li),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const av=e=>/^0[^.\s]+$/.test(e);function Ek(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||av(e)}function Tk(e,t,n,r){const o=qf(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const d=[];for(let u=0;u<i.length;u++)i[u]===null&&(i[u]=u===0?s:i[u-1]),Ek(i[u])&&d.push(u),typeof i[u]=="string"&&i[u]!=="none"&&i[u]!=="0"&&(l=i[u]);if(o&&d.length&&l)for(let u=0;u<d.length;u++){const p=d[u];i[p]=sv(t,l)}return i}function Ik({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:l,from:d,elapsed:u,...p}){return!!Object.keys(p).length}function D6(e,t){return e[t]||e.default||e}const Ok={skipAnimations:!1},F6=(e,t,n,r={})=>o=>{const i=D6(r,e)||{},s=i.delay||r.delay||0;let{elapsed:l=0}=r;l=l-oi(s);const d=Tk(t,e,n,i),u=d[0],p=d[d.length-1],g=qf(e,u),h=qf(e,p);Xl(g===h,`You are trying to animate ${e} from "${u}" to "${p}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${p} via the \`style\` property.`);let m={keyframes:d,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-l,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Ik(i)||(m={...m,...Ck(e,m)}),m.duration&&(m.duration=oi(m.duration)),m.repeatDelay&&(m.repeatDelay=oi(m.repeatDelay)),!g||!h||AM.current||i.type===!1||Ok.skipAnimations)return gk(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=hk(t,e,m);if(v)return v}return tu(m)};function nu(e){return!!(zn(e)&&e.add)}const lv=e=>/^\-?\d*\.?\d+$/.test(e);function L6(e,t){e.indexOf(t)===-1&&e.push(t)}function B6(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class N6{constructor(){this.subscriptions=[]}add(t){return L6(this.subscriptions,t),()=>B6(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 s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _h=new Set;function $6(e,t,n){e||_h.has(t)||(console.warn(t),_h.add(t))}const Pk=e=>!isNaN(parseFloat(e));class jk{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:s}=bn;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Pt.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=()=>Pt.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=Pk(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&$6(!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 N6);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pt.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?rv(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 ia(e,t){return new jk(e,t)}const cv=e=>t=>t.test(e),Rk={test:e=>e==="auto",parse:e=>e},uv=[Qi,Fe,Qr,Ko,NR,BR,Rk],Ja=e=>uv.find(cv(e)),Mk=[...uv,On,li],kk=e=>Mk.find(cv(e));function _k(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ia(n))}function Dk(e,t){const n=Ku(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const l=eM(i[s]);_k(e,s,l)}}function Fk(e,t,n){var r,o;const i=Object.keys(t).filter(l=>!e.hasValue(l)),s=i.length;if(s)for(let l=0;l<s;l++){const d=i[l],u=t[d];let p=null;Array.isArray(u)&&(p=u[0]),p===null&&(p=(o=(r=n[d])!==null&&r!==void 0?r:e.readValue(d))!==null&&o!==void 0?o:t[d]),p!=null&&(typeof p=="string"&&(lv(p)||av(p))?p=parseFloat(p):!kk(p)&&li.test(u)&&(p=sv(d,u)),e.addValue(d,ia(p,{owner:e})),n[d]===void 0&&(n[d]=p),p!==null&&e.setBaseTarget(d,p))}}function Lk(e,t){return t?(t[e]||t.default||t).from:void 0}function Bk(e,t,n){const r={};for(const o in e){const i=Lk(o,t);if(i!==void 0)r[o]=i;else{const s=n.getValue(o);s&&(r[o]=s.get())}}return r}function Nk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $k(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 dv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const d=e.getValue("willChange");r&&(i=r);const u=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in l){const h=e.getValue(g),m=l[g];if(!h||m===void 0||p&&Nk(p,g))continue;const v={delay:n,elapsed:0,...D6(i||{},g)};if(window.HandoffAppearAnimations){const S=e.getProps()[f9];if(S){const I=window.HandoffAppearAnimations(S,g,h,Pt);I!==null&&(v.elapsed=I,v.isHandoff=!0)}}let b=!v.isHandoff&&!$k(h,m);if(v.type==="spring"&&(h.getVelocity()||v.velocity)&&(b=!1),h.animation&&(b=!1),b)continue;h.start(F6(g,h,m,e.shouldReduceMotion&&Xi.has(g)?{type:!1}:v));const x=h.animation;nu(d)&&(d.add(g),x.then(()=>d.remove(g))),u.push(x)}return s&&Promise.all(u).then(()=>{s&&Dk(e,s)}),u}function Kf(e,t,n={}){const r=Ku(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(dv(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:u=0,staggerChildren:p,staggerDirection:g}=o;return Vk(e,t,u+d,p,g,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,u]=l==="beforeChildren"?[i,s]:[s,i];return d().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function Vk(e,t,n=0,r=0,o=1,i){const s=[],l=(e.variantChildren.size-1)*r,d=o===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(zk).forEach((u,p)=>{u.notify("AnimationStart",t),s.push(Kf(u,t,{...i,delay:n+d(p)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function zk(e,t){return e.sortNodePosition(t)}function Wk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Kf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Kf(e,t,n);else{const o=typeof t=="function"?Ku(e,t,n.custom):t;r=Promise.all(dv(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Uk=[...w6].reverse(),Hk=w6.length;function Gk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Wk(e,n,r)))}function qk(e){let t=Gk(e);const n=Kk();let r=!0;const o=(d,u)=>{const p=Ku(e,u);if(p){const{transition:g,transitionEnd:h,...m}=p;d={...d,...m,...h}}return d};function i(d){t=d(e)}function s(d,u){const p=e.getProps(),g=e.getVariantContext(!0)||{},h=[],m=new Set;let v={},b=1/0;for(let S=0;S<Hk;S++){const I=Uk[S],w=n[I],T=p[I]!==void 0?p[I]:g[I],P=jl(T),M=I===u?w.isActive:null;M===!1&&(b=S);let j=T===g[I]&&T!==p[I]&&P;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),w.protectedKeys={...v},!w.isActive&&M===null||!T&&!w.prevProp||Hu(T)||typeof T=="boolean")continue;let N=Yk(w.prevProp,T)||I===u&&w.isActive&&!j&&P||S>b&&P,k=!1;const _=Array.isArray(T)?T:[T];let U=_.reduce(o,{});M===!1&&(U={});const{prevResolvedValues:H={}}=w,G={...H,...U},Y=V=>{N=!0,m.has(V)&&(k=!0,m.delete(V)),w.needsAnimating[V]=!0};for(const V in G){const Z=U[V],W=H[V];if(v.hasOwnProperty(V))continue;let se=!1;Qc(Z)&&Qc(W)?se=!_9(Z,W):se=Z!==W,se?Z!==void 0?Y(V):m.add(V):Z!==void 0&&m.has(V)?Y(V):w.protectedKeys[V]=!0}w.prevProp=T,w.prevResolvedValues=U,w.isActive&&(v={...v,...U}),r&&e.blockInitialAnimation&&(N=!1),N&&(!j||k)&&h.push(..._.map(V=>({animation:V,options:{type:I,...d}})))}if(m.size){const S={};m.forEach(I=>{const w=e.getBaseTarget(I);w!==void 0&&(S[I]=w)}),h.push({animation:S})}let x=!!h.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function l(d,u,p){var g;if(n[d].isActive===u)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(d,u)}),n[d].isActive=u;const h=s(p,d);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>n}}function Yk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_9(t,e):!1}function Pi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kk(){return{animate:Pi(!0),whileInView:Pi(),whileHover:Pi(),whileTap:Pi(),whileDrag:Pi(),whileFocus:Pi(),exit:Pi()}}class Zk extends di{constructor(t){super(t),t.animationState||(t.animationState=qk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Hu(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 Xk=0;class Qk extends di{constructor(){super(...arguments),this.id=Xk++}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 Jk={animation:{Feature:Zk},exit:{Feature:Qk}},Dh=(e,t)=>Math.abs(e-t);function e_(e,t){const n=Dh(e.x,t.x),r=Dh(e.y,t.y);return Math.sqrt(n**2+r**2)}class fv{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=uf(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=e_(g.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:v}=g,{timestamp:b}=bn;this.history.push({...v,timestamp:b});const{onStart:x,onMove:S}=this.handlers;h||(x&&x(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,g)},this.handlePointerMove=(g,h)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=cf(h,this.transformPagePoint),Pt.update(this.updatePoint,!0)},this.handlePointerUp=(g,h)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=uf(g.type==="pointercancel"?this.lastMoveEventInfo:cf(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(g,x),v&&v(g,x)},!P9(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Yu(t),l=cf(s,this.transformPagePoint),{point:d}=l,{timestamp:u}=bn;this.history=[{...d,timestamp:u}];const{onSessionStart:p}=n;p&&p(t,uf(l,this.history)),this.removeListeners=ri(To(this.contextWindow,"pointermove",this.handlePointerMove),To(this.contextWindow,"pointerup",this.handlePointerUp),To(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Oo(this.updatePoint)}}function cf(e,t){return t?{point:t(e.point)}:e}function Fh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uf({point:e},t){return{point:e,delta:Fh(e,pv(t)),offset:Fh(e,t_(t)),velocity:n_(t,.1)}}function t_(e){return e[0]}function pv(e){return e[e.length-1]}function n_(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=pv(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>oi(t)));)n--;if(!r)return{x:0,y:0};const i=Io(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function rr(e){return e.max-e.min}function Zf(e,t=0,n=.01){return Math.abs(e-t)<=n}function Lh(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=rr(n)/rr(t),(Zf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(Zf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ml(e,t,n,r){Lh(e.x,t.x,n.x,r?r.originX:void 0),Lh(e.y,t.y,n.y,r?r.originY:void 0)}function Bh(e,t,n){e.min=n.min+t.min,e.max=e.min+rr(t)}function r_(e,t,n){Bh(e.x,t.x,n.x),Bh(e.y,t.y,n.y)}function Nh(e,t,n){e.min=t.min-n.min,e.max=e.min+rr(t)}function vl(e,t,n){Nh(e.x,t.x,n.x),Nh(e.y,t.y,n.y)}function o_(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Dt(n,e,r.max):Math.min(e,n)),e}function $h(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 i_(e,{top:t,left:n,bottom:r,right:o}){return{x:$h(e.x,n,o),y:$h(e.y,t,r)}}function Vh(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 s_(e,t){return{x:Vh(e.x,t.x),y:Vh(e.y,t.y)}}function a_(e,t){let n=.5;const r=rr(e),o=rr(t);return o>r?n=Ml(t.min,t.max-r,e.min):r>o&&(n=Ml(e.min,e.max-o,t.min)),ai(0,1,n)}function l_(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 Xf=.35;function c_(e=Xf){return e===!1?e=0:e===!0&&(e=Xf),{x:zh(e,"left","right"),y:zh(e,"top","bottom")}}function zh(e,t,n){return{min:Wh(e,t),max:Wh(e,n)}}function Wh(e,t){return typeof e=="number"?e:e[t]||0}const Uh=()=>({translate:0,scale:1,origin:0,originPoint:0}),qs=()=>({x:Uh(),y:Uh()}),Hh=()=>({min:0,max:0}),Kt=()=>({x:Hh(),y:Hh()});function vr(e){return[e("x"),e("y")]}function hv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function u_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d_(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 df(e){return e===void 0||e===1}function Qf({scale:e,scaleX:t,scaleY:n}){return!df(e)||!df(t)||!df(n)}function ki(e){return Qf(e)||gv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function gv(e){return Gh(e.x)||Gh(e.y)}function Gh(e){return e&&e!=="0%"}function ru(e,t,n){const r=e-n,o=t*r;return n+o}function qh(e,t,n,r,o){return o!==void 0&&(e=ru(e,o,r)),ru(e,n,r)+t}function Jf(e,t=0,n=1,r,o){e.min=qh(e.min,t,n,r,o),e.max=qh(e.max,t,n,r,o)}function mv(e,{x:t,y:n}){Jf(e.x,t.translate,t.scale,t.originPoint),Jf(e.y,n.translate,n.scale,n.originPoint)}function f_(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let l=0;l<o;l++){i=n[l],s=i.projectionDelta;const d=i.instance;d&&d.style&&d.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ys(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,mv(e,s)),r&&ki(i.latestValues)&&Ys(e,i.latestValues))}t.x=Yh(t.x),t.y=Yh(t.y)}function Yh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Xo(e,t){e.min=e.min+t,e.max=e.max+t}function Kh(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=Dt(e.min,e.max,i);Jf(e,t[n],t[r],s,t.scale)}const p_=["x","scaleX","originX"],h_=["y","scaleY","originY"];function Ys(e,t){Kh(e.x,t,p_),Kh(e.y,t,h_)}function vv(e,t){return hv(d_(e.getBoundingClientRect(),t))}function g_(e,t,n){const r=vv(e,n),{scroll:o}=t;return o&&(Xo(r.x,o.offset.x),Xo(r.y,o.offset.y)),r}const yv=({current:e})=>e?e.ownerDocument.defaultView:null,m_=new WeakMap;class v_{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=Kt(),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(Yu(p,"page").point)},i=(p,g)=>{const{drag:h,dragPropagation:m,onDragStart:v}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=R9(h),!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),vr(x=>{let S=this.getAxisMotionValue(x).get()||0;if(Qr.test(S)){const{projection:I}=this.visualElement;if(I&&I.layout){const w=I.layout.layoutBox[x];w&&(S=rr(w)*(parseFloat(S)/100))}}this.originPoint[x]=S}),v&&Pt.update(()=>v(p,g),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(p,g)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:v,onDrag:b}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:x}=g;if(m&&this.currentDirection===null){this.currentDirection=y_(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,x),this.updateAxis("y",g.point,x),this.visualElement.render(),b&&b(p,g)},l=(p,g)=>this.stop(p,g),d=()=>vr(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new fv(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:yv(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&&Pt.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||!fc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=o_(s,this.constraints[t],this.elastic[t])),i.set(s)}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&&Hs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=i_(o.layoutBox,n):this.constraints=!1,this.elastic=c_(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&vr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=l_(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Hs(t))return!1;const r=t.current;Lr(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=g_(r,o.root,this.visualElement.getTransformPagePoint());let s=s_(o.layout.layoutBox,i);if(n){const l=n(u_(s));this.hasMutatedConstraints=!!l,l&&(s=hv(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},u=vr(p=>{if(!fc(p,n,this.currentDirection))return;let g=d&&d[p]||{};s&&(g={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,v={type:"inertia",velocity:r?t[p]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(p,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(F6(t,r,0,n))}stopAnimation(){vr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vr(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){vr(n=>{const{drag:r}=this.getProps();if(!fc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:l}=o.layout.layoutBox[n];i.set(t[n]-Dt(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Hs(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};vr(s=>{const l=this.getAxisMotionValue(s);if(l){const d=l.get();o[s]=a_({min:d,max:d},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),vr(s=>{if(!fc(s,t,null))return;const l=this.getAxisMotionValue(s),{min:d,max:u}=this.constraints[s];l.set(Dt(d,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;m_.set(this.visualElement,this);const t=this.visualElement.current,n=To(t,"pointerdown",d=>{const{drag:u,dragListener:p=!0}=this.getProps();u&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Hs(d)&&(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 s=So(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(vr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Xf,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function fc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function y_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class b_ extends di{constructor(t){super(t),this.removeGroupControls=$t,this.removeListeners=$t,this.controls=new v_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$t}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zh=e=>(t,n)=>{e&&Pt.update(()=>e(t,n))};class C_ extends di{constructor(){super(...arguments),this.removePointerDownListener=$t}onPointerDown(t){this.session=new fv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Zh(t),onStart:Zh(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Pt.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=To(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 x_(){const e=O.useContext(C6);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=O.useId();return O.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Mc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const el={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;const n=Xh(e,t.target.x),r=Xh(e,t.target.y);return`${n}% ${r}%`}},w_={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=li.parse(e);if(o.length>5)return r;const i=li.createTransformer(e),s=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,d=n.y.scale*t.y;o[0+s]/=l,o[1+s]/=d;const u=Dt(l,d,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class S_ extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;RR(A_),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()})),Mc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Pt.postRender(()=>{const l=s.getStack();(!l||!l.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 bv(e){const[t,n]=x_(),r=O.useContext(h9);return O.createElement(S_,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(g9),isPresent:t,safeToRemove:n})}const A_={borderRadius:{...el,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:el,borderTopRightRadius:el,borderBottomLeftRadius:el,borderBottomRightRadius:el,boxShadow:w_},Cv=["TopLeft","TopRight","BottomLeft","BottomRight"],E_=Cv.length,Qh=e=>typeof e=="string"?parseFloat(e):e,Jh=e=>typeof e=="number"||Fe.test(e);function T_(e,t,n,r,o,i){o?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,I_(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,O_(r))):i&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<E_;s++){const l=`border${Cv[s]}Radius`;let d=e8(t,l),u=e8(n,l);if(d===void 0&&u===void 0)continue;d||(d=0),u||(u=0),d===0||u===0||Jh(d)===Jh(u)?(e[l]=Math.max(Dt(Qh(d),Qh(u),r),0),(Qr.test(u)||Qr.test(d))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function e8(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const I_=xv(0,.5,W9),O_=xv(.5,.95,$t);function xv(e,t,n){return r=>r<e?0:r>t?1:n(Ml(e,t,r))}function t8(e,t){e.min=t.min,e.max=t.max}function mr(e,t){t8(e.x,t.x),t8(e.y,t.y)}function n8(e,t,n,r,o){return e-=t,e=ru(e,1/n,r),o!==void 0&&(e=ru(e,1/o,r)),e}function P_(e,t=0,n=1,r=.5,o,i=e,s=e){if(Qr.test(t)&&(t=parseFloat(t),t=Dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Dt(i.min,i.max,r);e===i&&(l-=t),e.min=n8(e.min,t,n,l,o),e.max=n8(e.max,t,n,l,o)}function r8(e,t,[n,r,o],i,s){P_(e,t[n],t[r],t[o],t.scale,i,s)}const j_=["x","scaleX","originX"],R_=["y","scaleY","originY"];function o8(e,t,n,r){r8(e.x,t,j_,n?n.x:void 0,r?r.x:void 0),r8(e.y,t,R_,n?n.y:void 0,r?r.y:void 0)}function i8(e){return e.translate===0&&e.scale===1}function wv(e){return i8(e.x)&&i8(e.y)}function M_(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 Sv(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 s8(e){return rr(e.x)/rr(e.y)}class k_{constructor(){this.members=[]}add(t){L6(this.members,t),t.scheduleRender()}remove(t){if(B6(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 a8(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:d,rotateX:u,rotateY:p}=n;d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),p&&(r+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const __=(e,t)=>e.depth-t.depth;class D_{constructor(){this.children=[],this.isDirty=!1}add(t){L6(this.children,t),this.isDirty=!0}remove(t){B6(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(__),this.isDirty=!1,this.children.forEach(t)}}function F_(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Oo(r),e(i-t))};return Pt.read(r,!0),()=>Oo(r)}function L_(e){window.MotionDebug&&window.MotionDebug.record(e)}function B_(e){return e instanceof SVGElement&&e.tagName!=="svg"}function N_(e,t,n){const r=zn(e)?e:ia(e);return r.start(F6("",r,t,n)),r.animation}const l8=["","X","Y","Z"],$_={visibility:"hidden"},c8=1e3;let V_=0;const _i={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Av({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},l=t==null?void 0:t()){this.id=V_++,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,_i.totalNodes=_i.resolvedTargetDeltas=_i.recalculatedProjection=0,this.nodes.forEach(U_),this.nodes.forEach(K_),this.nodes.forEach(Z_),this.nodes.forEach(H_),L_(_i)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new D_)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new N6),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const d=this.eventHandlers.get(s);d&&d.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=B_(s),this.instance=s;const{layoutId:d,layout:u,visualElement:p}=this.options;if(p&&!p.current&&p.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||d)&&(this.isLayoutDirty=!0),e){let g;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=F_(h,250),Mc.hasAnimatedSinceResize&&(Mc.hasAnimatedSinceResize=!1,this.nodes.forEach(d8))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||u)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||tD,{onLayoutAnimationStart:x,onLayoutAnimationComplete:S}=p.getProps(),I=!this.targetLayout||!Sv(this.targetLayout,v)||m,w=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||h&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,w);const T={...D6(b,"layout"),onPlay:x,onComplete:S};(p.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else h||d8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Oo(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(X_),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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:l,layout:d}=this.options;if(l===void 0&&!d)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(u8);return}this.isUpdating||this.nodes.forEach(q_),this.isUpdating=!1,this.nodes.forEach(Y_),this.nodes.forEach(z_),this.nodes.forEach(W_),this.clearAllSnapshots();const l=performance.now();bn.delta=ai(0,1e3/60,l-bn.timestamp),bn.timestamp=l,bn.isProcessing=!0,ef.update.process(bn),ef.preRender.process(bn),ef.render.process(bn),bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(G_),this.sharedNodes.forEach(Q_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pt.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 d=0;d<this.path.length;d++)this.path[d].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!wv(this.projectionDelta),d=this.getTransformTemplate(),u=d?d(this.latestValues,""):void 0,p=u!==this.prevTransformTemplateValue;s&&(l||ki(this.latestValues)||p)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let d=this.removeElementScroll(l);return s&&(d=this.removeTransform(d)),nD(d),{animationId:this.root.animationId,measuredBox:l,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Kt();const l=s.measureViewportBox(),{scroll:d}=this.root;return d&&(Xo(l.x,d.offset.x),Xo(l.y,d.offset.y)),l}removeElementScroll(s){const l=Kt();mr(l,s);for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:p,options:g}=u;if(u!==this.root&&p&&g.layoutScroll){if(p.isRoot){mr(l,s);const{scroll:h}=this.root;h&&(Xo(l.x,-h.offset.x),Xo(l.y,-h.offset.y))}Xo(l.x,p.offset.x),Xo(l.y,p.offset.y)}}return l}applyTransform(s,l=!1){const d=Kt();mr(d,s);for(let u=0;u<this.path.length;u++){const p=this.path[u];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ys(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ki(p.latestValues)&&Ys(d,p.latestValues)}return ki(this.latestValues)&&Ys(d,this.latestValues),d}removeTransform(s){const l=Kt();mr(l,s);for(let d=0;d<this.path.length;d++){const u=this.path[d];if(!u.instance||!ki(u.latestValues))continue;Qf(u.latestValues)&&u.updateSnapshot();const p=Kt(),g=u.measurePageBox();mr(p,g),o8(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,p)}return ki(this.latestValues)&&o8(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==d;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:h}=this.options;if(!(!this.layout||!(g||h))){if(this.resolvedRelativeTargetAt=bn.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),vl(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),mr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Kt(),this.targetWithTransforms=Kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mr(this.target,this.layout.layoutBox),mv(this.target,this.targetDelta)):mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),vl(this.relativeTargetOrigin,this.target,m.target),mr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_i.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Qf(this.parent.latestValues)||gv(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 s;const l=this.getLead(),d=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===bn.timestamp&&(u=!1),u)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;mr(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;f_(this.layoutCorrected,this.treeScale,this.path,d),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:v}=l;if(!v){this.projectionTransform&&(this.projectionDelta=qs(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=qs(),this.projectionDeltaWithTransform=qs());const b=this.projectionTransform;ml(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=a8(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),_i.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const d=this.snapshot,u=d?d.latestValues:{},p={...this.latestValues},g=qs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=Kt(),m=d?d.source:void 0,v=this.layout?this.layout.source:void 0,b=m!==v,x=this.getStack(),S=!x||x.members.length<=1,I=!!(b&&!S&&this.options.crossfade===!0&&!this.path.some(eD));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const P=T/1e3;f8(g.x,s.x,P),f8(g.y,s.y,P),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),J_(this.relativeTarget,this.relativeTargetOrigin,h,P),w&&M_(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Kt()),mr(w,this.relativeTarget)),b&&(this.animationValues=p,T_(p,u,this.latestValues,P,I,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Oo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pt.update(()=>{Mc.hasAnimatedSinceResize=!0,this.currentAnimation=N_(0,c8,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(c8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:d,layout:u,latestValues:p}=s;if(!(!l||!d||!u)){if(this!==s&&this.layout&&u&&Ev(this.options.animationType,this.layout.layoutBox,u.layoutBox)){d=this.target||Kt();const g=rr(this.layout.layoutBox.x);d.x.min=s.target.x.min,d.x.max=d.x.min+g;const h=rr(this.layout.layoutBox.y);d.y.min=s.target.y.min,d.y.max=d.y.min+h}mr(l,d),Ys(l,p),ml(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new k_),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:d}={}){const u=this.getStack();u&&u.promote(this,d),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:d}=s;if((d.rotate||d.rotateX||d.rotateY||d.rotateZ)&&(l=!0),!l)return;const u={};for(let p=0;p<l8.length;p++){const g="rotate"+l8[p];d[g]&&(u[g]=d[g],s.setStaticValue(g,0))}s.render();for(const p in u)s.setStaticValue(p,u[p]);s.scheduleRender()}getProjectionStyles(s){var l,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $_;const u={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Rc(s==null?void 0:s.pointerEvents)||"",u.transform=p?p(this.latestValues,""):"none",u;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Rc(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ki(this.latestValues)&&(b.transform=p?p({},""):"none",this.hasProjected=!1),b}const h=g.animationValues||g.latestValues;this.applyTransformsToTarget(),u.transform=a8(this.projectionDeltaWithTransform,this.treeScale,h),p&&(u.transform=p(h,u.transform));const{x:m,y:v}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${v.origin*100}% 0`,g.animationValues?u.opacity=g===this?(d=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=g===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in Zc){if(h[b]===void 0)continue;const{correct:x,applyTo:S}=Zc[b],I=u.transform==="none"?h[b]:x(h[b],g);if(S){const w=S.length;for(let T=0;T<w;T++)u[S[T]]=I}else u[b]=I}return this.options.layoutId&&(u.pointerEvents=g===this?Rc(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(u8),this.root.sharedNodes.clear()}}}function z_(e){e.updateLayout()}function W_(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,s=n.source!==e.layout.source;i==="size"?vr(g=>{const h=s?n.measuredBox[g]:n.layoutBox[g],m=rr(h);h.min=r[g].min,h.max=h.min+m}):Ev(i,n.layoutBox,r)&&vr(g=>{const h=s?n.measuredBox[g]:n.layoutBox[g],m=rr(r[g]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+m)});const l=qs();ml(l,r,n.layoutBox);const d=qs();s?ml(d,e.applyTransform(o,!0),n.measuredBox):ml(d,r,n.layoutBox);const u=!wv(l);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:h,layout:m}=g;if(h&&m){const v=Kt();vl(v,n.layoutBox,h.layoutBox);const b=Kt();vl(b,r,m.layoutBox),Sv(v,b)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function U_(e){_i.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 H_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function G_(e){e.clearSnapshot()}function u8(e){e.clearMeasurements()}function q_(e){e.isLayoutDirty=!1}function Y_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function d8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function K_(e){e.resolveTargetDelta()}function Z_(e){e.calcProjection()}function X_(e){e.resetRotation()}function Q_(e){e.removeLeadSnapshot()}function f8(e,t,n){e.translate=Dt(t.translate,0,n),e.scale=Dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function p8(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function J_(e,t,n,r){p8(e.x,t.x,n.x,r),p8(e.y,t.y,n.y,r)}function eD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tD={duration:.45,ease:[.4,0,.1,1]},h8=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),g8=h8("applewebkit/")&&!h8("chrome/")?Math.round:$t;function m8(e){e.min=g8(e.min),e.max=g8(e.max)}function nD(e){m8(e.x),m8(e.y)}function Ev(e,t,n){return e==="position"||e==="preserve-aspect"&&!Zf(s8(t),s8(n),.2)}const rD=Av({attachResizeListener:(e,t)=>So(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Tv=Av({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new rD({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),oD={pan:{Feature:C_},drag:{Feature:b_,ProjectionNode:Tv,MeasureLayout:bv}},iD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sD(e){const t=iD.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const aD=4;function e0(e,t,n=1){Lr(n<=aD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=sD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return lv(s)?parseFloat(s):s}else return Wf(o)?e0(o,t,n+1):o}function lD(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(!Wf(i))return;const s=e0(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Wf(i))continue;const s=e0(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const cD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Iv=e=>cD.has(e),uD=e=>Object.keys(e).some(Iv),pc=e=>e===Qi||e===Fe,v8=(e,t)=>parseFloat(e.split(", ")[t]),y8=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return v8(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?v8(i[1],e):0}},dD=new Set(["x","y","z"]),fD=Yl.filter(e=>!dD.has(e));function pD(e){const t=[];return fD.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 sa={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:y8(4,13),y:y8(5,14)};sa.translateX=sa.x;sa.translateY=sa.y;const hD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=sa[u](r,i)}),t.render();const d=t.measureViewportBox();return n.forEach(u=>{const p=t.getValue(u);p&&p.jump(l[u]),e[u]=sa[u](d,i)}),e},gD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Iv);let i=[],s=!1;const l=[];if(o.forEach(d=>{const u=e.getValue(d);if(!e.hasValue(d))return;let p=n[d],g=Ja(p);const h=t[d];let m;if(Qc(h)){const v=h.length,b=h[0]===null?1:0;p=h[b],g=Ja(p);for(let x=b;x<v&&h[x]!==null;x++)m?Lr(Ja(h[x])===m,"All keyframes must be of the same type"):(m=Ja(h[x]),Lr(m===g||pc(g)&&pc(m),"Keyframes must be of the same dimension as the current value"))}else m=Ja(h);if(g!==m)if(pc(g)&&pc(m)){const v=u.get();typeof v=="string"&&u.set(parseFloat(v)),typeof h=="string"?t[d]=parseFloat(h):Array.isArray(h)&&m===Fe&&(t[d]=h.map(parseFloat))}else g!=null&&g.transform&&(m!=null&&m.transform)&&(p===0||h===0)?p===0?u.set(m.transform(p)):t[d]=g.transform(h):(s||(i=pD(e),s=!0),l.push(d),r[d]=r[d]!==void 0?r[d]:t[d],u.jump(h))}),l.length){const d=l.indexOf("height")>=0?window.pageYOffset:null,u=hD(t,e,l);return i.length&&i.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),Uu&&d!==null&&window.scrollTo({top:d}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function mD(e,t,n,r){return uD(t)?gD(e,t,n,r):{target:t,transitionEnd:r}}const vD=(e,t,n,r)=>{const o=lD(e,t,r);return t=o.target,r=o.transitionEnd,mD(e,t,n,r)},t0={current:null},Ov={current:!1};function yD(){if(Ov.current=!0,!!Uu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t0.current=e.matches;e.addListener(t),t()}else t0.current=!1}function bD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(zn(i))e.addValue(o,i),nu(r)&&r.add(o),process.env.NODE_ENV==="development"&&$6(i.version==="10.18.0",`Attempting to mix Framer Motion versions ${i.version} with 10.18.0 may not work as expected.`);else if(zn(s))e.addValue(o,ia(i,{owner:e})),nu(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const l=e.getValue(o);!l.hasAnimated&&l.set(i)}else{const l=e.getStaticValue(o);e.addValue(o,ia(l!==void 0?l:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const b8=new WeakMap,Pv=Object.keys(Rl),CD=Pv.length,C8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],xD=S6.length;class wD{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){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=()=>Pt.render(this.render,!1,!0);const{latestValues:l,renderState:d}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Gu(n),this.isVariantNode=p9(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const h=p[g];l[g]!==void 0&&zn(h)&&(h.set(l[g],!1),nu(u)&&u.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,b8.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)),Ov.current||yD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:t0.current,process.env.NODE_ENV!=="production"&&$6(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(){b8.delete(this.current),this.projection&&this.projection.unmount(),Oo(this.notifyUpdate),Oo(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=Xi.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Pt.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 s,l;if(process.env.NODE_ENV!=="production"&&o&&r){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Xl(!1,d):Lr(!1,d)}for(let d=0;d<CD;d++){const u=Pv[d],{isEnabled:p,Feature:g,ProjectionNode:h,MeasureLayout:m}=Rl[u];h&&(s=h),p(n)&&(!this.features[u]&&g&&(this.features[u]=new g(this)),m&&(l=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:d,layout:u,drag:p,dragConstraints:g,layoutScroll:h,layoutRoot:m}=n;this.projection.setOptions({layoutId:d,layout:u,alwaysMeasureLayout:!!p||g&&Hs(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:m})}return l}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):Kt()}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<C8.length;r++){const o=C8[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=bD(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<xD;r++){const o=S6[r],i=this.props[o];(jl(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=ia(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=j6(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&&!zn(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 N6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jv extends wD{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 s=Bk(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){Fk(this,r,s);const l=vD(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function SD(e){return window.getComputedStyle(e)}class AD extends jv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Xi.has(n)){const r=_6(n);return r&&r.default||0}else{const r=SD(t),o=(y9(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vv(t,n)}build(t,n,r,o){E6(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return P6(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){A9(t,n,r,o)}}class ED extends jv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xi.has(n)){const r=_6(n);return r&&r.default||0}return n=E9.has(n)?n:x6(n),t.getAttribute(n)}measureInstanceViewportBox(){return Kt()}scrapeMotionValuesFromProps(t,n){return I9(t,n)}build(t,n,r,o){I6(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){T9(t,n,r,o)}mount(t){this.isSVGTag=O6(t.tagName),super.mount(t)}}const TD=(e,t)=>A6(e)?new ED(t,{enableHardwareAcceleration:!1}):new AD(t,{enableHardwareAcceleration:!0}),ID={layout:{ProjectionNode:Tv,MeasureLayout:bv}},OD={...Jk,...xM,...oD,...ID},hc=PR((e,t)=>lM(e,t,OD,TD)),PD=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function x8(...e){const t=O.useRef(0),[n,r]=O.useState(e[t.current]),o=O.useCallback(i=>{t.current=typeof i!="number"?PD(0,e.length,t.current+1):i,r(e[t.current])},[e.length,...e]);return[n,o]}function jD({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let i,s;switch(n){case"up":case"left":i=r,s=0;break;case"right":case"down":default:i=0,s=r;break}const[l,d]=x8(i,s),[u,p]=x8(i,s);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:u!==void 0?u:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):f.jsx(hc.div,{animate:{x:l!==void 0?l:""},onHoverEnd:()=>d(),onHoverStart:()=>d(),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 hn(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 Be(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 ee(){return ee=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},ee.apply(null,arguments)}var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mo(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 n0={exports:{}},gc={exports:{}},ft={};/** @license React v16.13.1
1
+ "use strict";var mR=Object.defineProperty;var gh=e=>{throw TypeError(e)};var vR=(e,t,n)=>t in e?mR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qa=(e,t,n)=>vR(e,typeof t!="symbol"?t+"":t,n),Jd=(e,t,n)=>t.has(e)||gh("Cannot "+n);var cn=(e,t,n)=>(Jd(e,t,"read from private field"),n?n.call(e):t.get(e)),Dr=(e,t,n)=>t.has(e)?gh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Hr=(e,t,n,r)=>(Jd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),yo=(e,t,n)=>(Jd(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),yR=require("@emotion/styled"),dn=require("@emotion/react"),O=require("react"),E=require("@mui/material"),He=require("@ant-design/icons"),ut=require("react-router-dom"),Vt=require("@mui/icons-material"),ne=require("ra-core"),Yi=require("react-router"),z=require("react-admin"),fn=require("react-hook-form"),Hi=require("react-query"),Us=require("react-dom"),a9=require("ra-i18n-polyglot");function l9(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 B=l9(O),c9=l9(Us),u9=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wu=O.createContext({}),C6=O.createContext(null),Uu=typeof document<"u",bR=Uu?O.useLayoutEffect:O.useEffect,d9=O.createContext({strict:!1}),x6=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),CR="framerAppearId",f9="data-"+x6(CR);function xR(e,t,n,r){const{visualElement:o}=O.useContext(Wu),i=O.useContext(d9),s=O.useContext(C6),l=O.useContext(u9).reducedMotion,d=O.useRef();r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=d.current;O.useInsertionEffect(()=>{u&&u.update(n,s)});const p=O.useRef(!!(n[f9]&&!window.HandoffComplete));return bR(()=>{u&&(u.render(),p.current&&u.animationState&&u.animationState.animateChanges())}),O.useEffect(()=>{u&&(u.updateFeatures(),!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),u}function Hs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wR(e,t,n){return O.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Hs(n)&&(n.current=r))},[t])}function jl(e){return typeof e=="string"||Array.isArray(e)}function Hu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const w6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],S6=["initial",...w6];function Gu(e){return Hu(e.animate)||S6.some(t=>jl(e[t]))}function p9(e){return!!(Gu(e)||e.variants)}function SR(e,t){if(Gu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||jl(n)?n:void 0,animate:jl(r)?r:void 0}}return e.inherit!==!1?t:{}}function AR(e){const{initial:t,animate:n}=SR(e,O.useContext(Wu));return O.useMemo(()=>({initial:t,animate:n}),[mh(t),mh(n)])}function mh(e){return Array.isArray(e)?e.join(" "):e}const vh={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"]},Rl={};for(const e in vh)Rl[e]={isEnabled:t=>vh[e].some(n=>!!t[n])};function ER(e){for(const t in e)Rl[t]={...Rl[t],...e[t]}}const h9=O.createContext({}),g9=O.createContext({}),TR=Symbol.for("motionComponentSymbol");function IR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&ER(e);function i(l,d){let u;const p={...O.useContext(u9),...l,layoutId:OR(l)},{isStatic:g}=p,h=AR(l),m=r(l,g);if(!g&&Uu){h.visualElement=xR(o,m,p,t);const v=O.useContext(g9),b=O.useContext(d9).strict;h.visualElement&&(u=h.visualElement.loadFeatures(p,b,e,v))}return B.createElement(Wu.Provider,{value:h},u&&h.visualElement?B.createElement(u,{visualElement:h.visualElement,...p}):null,n(o,l,wR(m,h.visualElement,d),m,g,h.visualElement))}const s=O.forwardRef(i);return s[TR]=o,s}function OR({layoutId:e}){const t=O.useContext(h9).id;return t&&e!==void 0?t+"-"+e:e}function PR(e){function t(r,o={}){return IR(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 jR=["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 A6(e){return typeof e!="string"||e.includes("-")?!1:!!(jR.indexOf(e)>-1||/[A-Z]/.test(e))}const Zc={};function RR(e){Object.assign(Zc,e)}const Yl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(Yl);function m9(e,{layout:t,layoutId:n}){return Xi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zc[e]||e==="opacity")}const zn=e=>!!(e&&e.getVelocity),MR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kR=Yl.length;function _R(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<kR;s++){const l=Yl[s];if(e[l]!==void 0){const d=MR[l]||l;i+=`${d}(${e[l]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const v9=e=>t=>typeof t=="string"&&t.startsWith(e),y9=v9("--"),Wf=v9("var(--"),DR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,FR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ai=(e,t,n)=>Math.min(Math.max(n,e),t),Qi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hl={...Qi,transform:e=>ai(0,1,e)},cc={...Qi,default:1},gl=e=>Math.round(e*1e5)/1e5,qu=/(-)?([\d]*\.?[\d])+/g,b9=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,LR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Kl(e){return typeof e=="string"}const Zl=e=>({test:t=>Kl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ko=Zl("deg"),Qr=Zl("%"),Fe=Zl("px"),BR=Zl("vh"),NR=Zl("vw"),yh={...Qr,parse:e=>Qr.parse(e)/100,transform:e=>Qr.transform(e*100)},bh={...Qi,transform:Math.round},C9={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:Ko,rotateX:Ko,rotateY:Ko,rotateZ:Ko,scale:cc,scaleX:cc,scaleY:cc,scaleZ:cc,skew:Ko,skewX:Ko,skewY:Ko,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:hl,originX:yh,originY:yh,originZ:Fe,zIndex:bh,fillOpacity:hl,strokeOpacity:hl,numOctaves:bh};function E6(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:l}=e;let d=!1,u=!1,p=!0;for(const g in t){const h=t[g];if(y9(g)){i[g]=h;continue}const m=C9[g],v=FR(h,m);if(Xi.has(g)){if(d=!0,s[g]=v,!p)continue;h!==(m.default||0)&&(p=!1)}else g.startsWith("origin")?(u=!0,l[g]=v):o[g]=v}if(t.transform||(d||r?o.transform=_R(e.transform,n,p,r):o.transform&&(o.transform="none")),u){const{originX:g="50%",originY:h="50%",originZ:m=0}=l;o.transformOrigin=`${g} ${h} ${m}`}}const T6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function x9(e,t,n){for(const r in t)!zn(t[r])&&!m9(r,n)&&(e[r]=t[r])}function $R({transformTemplate:e},t,n){return O.useMemo(()=>{const r=T6();return E6(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function VR(e,t,n){const r=e.style||{},o={};return x9(o,r,e),Object.assign(o,$R(e,t,n)),e.transformValues?e.transformValues(o):o}function zR(e,t,n){const r={},o=VR(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 WR=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 Xc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||WR.has(e)}let w9=e=>!Xc(e);function UR(e){e&&(w9=t=>t.startsWith("on")?!Xc(t):e(t))}try{UR(require("@emotion/is-prop-valid").default)}catch{}function HR(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(w9(o)||n===!0&&Xc(o)||!t&&!Xc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Ch(e,t,n){return typeof e=="string"?e:Fe.transform(t+n*e)}function GR(e,t,n){const r=Ch(t,e.x,e.width),o=Ch(n,e.y,e.height);return`${r} ${o}`}const qR={offset:"stroke-dashoffset",array:"stroke-dasharray"},YR={offset:"strokeDashoffset",array:"strokeDasharray"};function KR(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?qR:YR;e[i.offset]=Fe.transform(-r);const s=Fe.transform(t),l=Fe.transform(n);e[i.array]=`${s} ${l}`}function I6(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:l=1,pathOffset:d=0,...u},p,g,h){if(E6(e,u,p,h),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:b}=e;m.transform&&(b&&(v.transform=m.transform),delete m.transform),b&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=GR(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&KR(m,s,l,d,!1)}const S9=()=>({...T6(),attrs:{}}),O6=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZR(e,t,n,r){const o=O.useMemo(()=>{const i=S9();return I6(i,t,{enableHardwareAcceleration:!1},O6(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};x9(i,e.style,e),o.style={...i,...o.style}}return o}function XR(e=!1){return(n,r,o,{latestValues:i},s)=>{const d=(A6(n)?ZR:zR)(r,i,s,n),p={...HR(r,typeof n=="string",e),...d,ref:o},{children:g}=r,h=O.useMemo(()=>zn(g)?g.get():g,[g]);return O.createElement(n,{...p,children:h})}}function A9(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 E9=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 T9(e,t,n,r){A9(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(E9.has(o)?o:x6(o),t.attrs[o])}function P6(e,t){const{style:n}=e,r={};for(const o in n)(zn(n[o])||t.style&&zn(t.style[o])||m9(o,e))&&(r[o]=n[o]);return r}function I9(e,t){const n=P6(e,t);for(const r in e)if(zn(e[r])||zn(t[r])){const o=Yl.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function j6(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 QR(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qc=e=>Array.isArray(e),JR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),eM=e=>Qc(e)?e[e.length-1]||0:e;function Rc(e){const t=zn(e)?e.get():e;return JR(t)?t.toValue():t}function tM({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:nM(r,o,i,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const O9=e=>(t,n)=>{const r=O.useContext(Wu),o=O.useContext(C6),i=()=>tM(e,t,r,o);return n?i():QR(i)};function nM(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=Rc(i[h]);let{initial:s,animate:l}=e;const d=Gu(e),u=p9(e);t&&u&&!d&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const g=p?l:s;return g&&typeof g!="boolean"&&!Hu(g)&&(Array.isArray(g)?g:[g]).forEach(m=>{const v=j6(e,m);if(!v)return;const{transitionEnd:b,transition:x,...S}=v;for(const I in S){let w=S[I];if(Array.isArray(w)){const T=p?w.length-1:0;w=w[T]}w!==null&&(o[I]=w)}for(const I in b)o[I]=b[I]}),o}const $t=e=>e;class xh{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 rM(e){let t=new xh,n=new xh,r=0,o=!1,i=!1;const s=new WeakSet,l={schedule:(d,u=!1,p=!1)=>{const g=p&&o,h=g?t:n;return u&&s.add(d),h.add(d)&&g&&o&&(r=t.order.length),d},cancel:d=>{n.remove(d),s.delete(d)},process:d=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const p=t.order[u];p(d),s.has(p)&&(l.schedule(p),e())}o=!1,i&&(i=!1,l.process(d))}};return l}const uc=["prepare","read","update","preRender","render","postRender"],oM=40;function iM(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=uc.reduce((g,h)=>(g[h]=rM(()=>n=!0),g),{}),s=g=>i[g].process(o),l=()=>{const g=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(g-o.timestamp,oM),1),o.timestamp=g,o.isProcessing=!0,uc.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(l))},d=()=>{n=!0,r=!0,o.isProcessing||e(l)};return{schedule:uc.reduce((g,h)=>{const m=i[h];return g[h]=(v,b=!1,x=!1)=>(n||d(),m.schedule(v,b,x)),g},{}),cancel:g=>uc.forEach(h=>i[h].cancel(g)),state:o,steps:i}}const{schedule:Pt,cancel:Oo,state:bn,steps:ef}=iM(typeof requestAnimationFrame<"u"?requestAnimationFrame:$t,!0),sM={useVisualState:O9({scrapeMotionValuesFromProps:I9,createRenderState:S9,onMount:(e,t,{renderState:n,latestValues:r})=>{Pt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Pt.render(()=>{I6(n,r,{enableHardwareAcceleration:!1},O6(t.tagName),e.transformTemplate),T9(t,n)})}})},aM={useVisualState:O9({scrapeMotionValuesFromProps:P6,createRenderState:T6})};function lM(e,{forwardMotionProps:t=!1},n,r){return{...A6(e)?sM:aM,preloadedFeatures:n,useRender:XR(t),createVisualElement:r,Component:e}}function So(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const P9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const cM=e=>t=>P9(t)&&e(t,Yu(t));function To(e,t,n,r){return So(e,t,cM(n),r)}const uM=(e,t)=>n=>t(e(n)),ri=(...e)=>e.reduce(uM);function j9(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wh=j9("dragHorizontal"),Sh=j9("dragVertical");function R9(e){let t=!1;if(e==="y")t=Sh();else if(e==="x")t=wh();else{const n=wh(),r=Sh();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function M9(){const e=R9(!0);return e?(e(),!1):!0}class di{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ah(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||M9())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Pt.update(()=>l[r](i,s))};return To(e.current,n,o,{passive:!e.getProps()[r]})}class dM extends di{mount(){this.unmount=ri(Ah(this.node,!0),Ah(this.node,!1))}unmount(){}}class fM extends di{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=ri(So(this.node.current,"focus",()=>this.onFocus()),So(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const k9=(e,t)=>t?e===t?!0:k9(e,t.parentElement):!1;function tf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Yu(n))}class pM extends di{constructor(){super(...arguments),this.removeStartListeners=$t,this.removeEndListeners=$t,this.removeAccessibleListeners=$t,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=To(window,"pointerup",(l,d)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:p,globalTapTarget:g}=this.node.getProps();Pt.update(()=>{!g&&!k9(this.node.current,l.target)?p&&p(l,d):u&&u(l,d)})},{passive:!(r.onTap||r.onPointerUp)}),s=To(window,"pointercancel",(l,d)=>this.cancelPress(l,d),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ri(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||tf("up",(d,u)=>{const{onTap:p}=this.node.getProps();p&&Pt.update(()=>p(d,u))})};this.removeEndListeners(),this.removeEndListeners=So(this.node.current,"keyup",s),tf("down",(l,d)=>{this.startPress(l,d)})},n=So(this.node.current,"keydown",t),r=()=>{this.isPressing&&tf("cancel",(i,s)=>this.cancelPress(i,s))},o=So(this.node.current,"blur",r);this.removeAccessibleListeners=ri(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&&Pt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!M9()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Pt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=To(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=So(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ri(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Uf=new WeakMap,nf=new WeakMap,hM=e=>{const t=Uf.get(e.target);t&&t(e)},gM=e=>{e.forEach(hM)};function mM({root:e,...t}){const n=e||document;nf.has(n)||nf.set(n,{});const r=nf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gM,{root:e,...t})),r[o]}function vM(e,t,n){const r=mM(t);return Uf.set(e,n),r.observe(e),()=>{Uf.delete(e),r.unobserve(e)}}const yM={some:0,all:1};class bM extends di{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,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:yM[o]},l=d=>{const{isIntersecting:u}=d;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),h=u?p:g;h&&h(d)};return vM(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(CM(t,n))&&this.startObserver()}unmount(){}}function CM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xM={inView:{Feature:bM},tap:{Feature:pM},focus:{Feature:fM},hover:{Feature:dM}};function _9(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 wM(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function SM(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ku(e,t,n){const r=e.getProps();return j6(r,t,n!==void 0?n:r.custom,wM(e),SM(e))}let Xl=$t,Lr=$t;process.env.NODE_ENV!=="production"&&(Xl=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Lr=(e,t)=>{if(!e)throw new Error(t)});const oi=e=>e*1e3,Io=e=>e/1e3,AM={current:!1},D9=e=>Array.isArray(e)&&typeof e[0]=="number";function F9(e){return!!(!e||typeof e=="string"&&L9[e]||D9(e)||Array.isArray(e)&&e.every(F9))}const ll=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,L9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ll([0,.65,.55,1]),circOut:ll([.55,0,1,.45]),backIn:ll([.31,.01,.66,-.59]),backOut:ll([.33,1.53,.69,.99])};function B9(e){if(e)return D9(e)?ll(e):Array.isArray(e)?e.map(B9):L9[e]}function EM(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:l,times:d}={}){const u={[t]:n};d&&(u.offset=d);const p=B9(l);return Array.isArray(p)&&(u.easing=p),e.animate(u,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function TM(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const N9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,IM=1e-7,OM=12;function PM(e,t,n,r,o){let i,s,l=0;do s=t+(n-t)/2,i=N9(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>IM&&++l<OM);return s}function Ql(e,t,n,r){if(e===t&&n===r)return $t;const o=i=>PM(i,0,1,e,n);return i=>i===0||i===1?i:N9(o(i),t,r)}const jM=Ql(.42,0,1,1),RM=Ql(0,0,.58,1),$9=Ql(.42,0,.58,1),MM=e=>Array.isArray(e)&&typeof e[0]!="number",V9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,z9=e=>t=>1-e(1-t),R6=e=>1-Math.sin(Math.acos(e)),W9=z9(R6),kM=V9(R6),U9=Ql(.33,1.53,.69,.99),M6=z9(U9),_M=V9(M6),DM=e=>(e*=2)<1?.5*M6(e):.5*(2-Math.pow(2,-10*(e-1))),Eh={linear:$t,easeIn:jM,easeInOut:$9,easeOut:RM,circIn:R6,circInOut:kM,circOut:W9,backIn:M6,backInOut:_M,backOut:U9,anticipate:DM},Th=e=>{if(Array.isArray(e)){Lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Ql(t,n,r,o)}else if(typeof e=="string")return Lr(Eh[e]!==void 0,`Invalid easing type '${e}'`),Eh[e];return e},k6=(e,t)=>n=>!!(Kl(n)&&LR.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),H9=(e,t,n)=>r=>{if(!Kl(r))return r;const[o,i,s,l]=r.match(qu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},FM=e=>ai(0,255,e),rf={...Qi,transform:e=>Math.round(FM(e))},$i={test:k6("rgb","red"),parse:H9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rf.transform(e)+", "+rf.transform(t)+", "+rf.transform(n)+", "+gl(hl.transform(r))+")"};function LM(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 Hf={test:k6("#"),parse:LM,transform:$i.transform},Gs={test:k6("hsl","hue"),parse:H9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qr.transform(gl(t))+", "+Qr.transform(gl(n))+", "+gl(hl.transform(r))+")"},On={test:e=>$i.test(e)||Hf.test(e)||Gs.test(e),parse:e=>$i.test(e)?$i.parse(e):Gs.test(e)?Gs.parse(e):Hf.parse(e),transform:e=>Kl(e)?e:e.hasOwnProperty("red")?$i.transform(e):Gs.transform(e)},Dt=(e,t,n)=>-n*e+n*t+e;function of(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 BM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,d=2*n-l;o=of(d,l,e+1/3),i=of(d,l,e),s=of(d,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const sf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},NM=[Hf,$i,Gs],$M=e=>NM.find(t=>t.test(e));function Ih(e){const t=$M(e);Lr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Gs&&(n=BM(n)),n}const G9=(e,t)=>{const n=Ih(e),r=Ih(t),o={...n};return i=>(o.red=sf(n.red,r.red,i),o.green=sf(n.green,r.green,i),o.blue=sf(n.blue,r.blue,i),o.alpha=Dt(n.alpha,r.alpha,i),$i.transform(o))};function VM(e){var t,n;return isNaN(e)&&Kl(e)&&(((t=e.match(qu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(b9))===null||n===void 0?void 0:n.length)||0)>0}const q9={regex:DR,countKey:"Vars",token:"${v}",parse:$t},Y9={regex:b9,countKey:"Colors",token:"${c}",parse:On.parse},K9={regex:qu,countKey:"Numbers",token:"${n}",parse:Qi.parse};function af(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 Jc(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&af(n,q9),af(n,Y9),af(n,K9),n}function Z9(e){return Jc(e).values}function X9(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Jc(e),i=t.length;return s=>{let l=o;for(let d=0;d<i;d++)d<r?l=l.replace(q9.token,s[d]):d<r+n?l=l.replace(Y9.token,On.transform(s[d])):l=l.replace(K9.token,gl(s[d]));return l}}const zM=e=>typeof e=="number"?0:e;function WM(e){const t=Z9(e);return X9(e)(t.map(zM))}const li={test:VM,parse:Z9,createTransformer:X9,getAnimatableNone:WM},Q9=(e,t)=>n=>`${n>0?t:e}`;function J9(e,t){return typeof e=="number"?n=>Dt(e,t,n):On.test(e)?G9(e,t):e.startsWith("var(")?Q9(e,t):tv(e,t)}const ev=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>J9(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},UM=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=J9(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},tv=(e,t)=>{const n=li.createTransformer(t),r=Jc(e),o=Jc(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?ri(ev(r.values,o.values),n):(Xl(!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.`),Q9(e,t))},Ml=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Oh=(e,t)=>n=>Dt(e,t,n);function HM(e){return typeof e=="number"?Oh:typeof e=="string"?On.test(e)?G9:tv:Array.isArray(e)?ev:typeof e=="object"?UM:Oh}function GM(e,t,n){const r=[],o=n||HM(e[0]),i=e.length-1;for(let s=0;s<i;s++){let l=o(e[s],e[s+1]);if(t){const d=Array.isArray(t)?t[s]||$t:t;l=ri(d,l)}r.push(l)}return r}function nv(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Lr(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 s=GM(t,r,o),l=s.length,d=u=>{let p=0;if(l>1)for(;p<e.length-2&&!(u<e[p+1]);p++);const g=Ml(e[p],e[p+1],u);return s[p](g)};return n?u=>d(ai(e[0],e[i-1],u)):d}function qM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ml(0,t,r);e.push(Dt(n,1,o))}}function YM(e){const t=[0];return qM(t,e.length-1),t}function KM(e,t){return e.map(n=>n*t)}function ZM(e,t){return e.map(()=>t||$9).splice(0,e.length-1)}function eu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=MM(r)?r.map(Th):Th(r),i={done:!1,value:t[0]},s=KM(n&&n.length===t.length?n:YM(t),e),l=nv(s,t,{ease:Array.isArray(o)?o:ZM(t,o)});return{calculatedDuration:e,next:d=>(i.value=l(d),i.done=d>=e,i)}}function rv(e,t){return t?e*(1e3/t):0}const XM=5;function ov(e,t,n){const r=Math.max(t-XM,0);return rv(n-e(r),t-r)}const lf=.001,QM=.01,Ph=10,JM=.05,ek=1;function tk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Xl(e<=oi(Ph),"Spring duration must be 10 seconds or less");let s=1-t;s=ai(JM,ek,s),e=ai(QM,Ph,Io(e)),s<1?(o=u=>{const p=u*s,g=p*e,h=p-n,m=Gf(u,s),v=Math.exp(-g);return lf-h/m*v},i=u=>{const g=u*s*e,h=g*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-g),b=Gf(Math.pow(u,2),s);return(-o(u)+lf>0?-1:1)*((h-m)*v)/b}):(o=u=>{const p=Math.exp(-u*e),g=(u-n)*e+1;return-lf+p*g},i=u=>{const p=Math.exp(-u*e),g=(n-u)*(e*e);return p*g});const l=5/e,d=rk(o,i,l);if(e=oi(e),isNaN(d))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(d,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const nk=12;function rk(e,t,n){let r=n;for(let o=1;o<nk;o++)r=r-e(r)/t(r);return r}function Gf(e,t){return e*Math.sqrt(1-t*t)}const ok=["duration","bounce"],ik=["stiffness","damping","mass"];function jh(e,t){return t.some(n=>e[n]!==void 0)}function sk(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jh(e,ik)&&jh(e,ok)){const n=tk(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function iv({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:d,mass:u,duration:p,velocity:g,isResolvedFromDuration:h}=sk({...r,velocity:-Io(r.velocity||0)}),m=g||0,v=d/(2*Math.sqrt(l*u)),b=i-o,x=Io(Math.sqrt(l/u)),S=Math.abs(b)<5;n||(n=S?.01:2),t||(t=S?.005:.5);let I;if(v<1){const w=Gf(x,v);I=T=>{const P=Math.exp(-v*x*T);return i-P*((m+v*x*b)/w*Math.sin(w*T)+b*Math.cos(w*T))}}else if(v===1)I=w=>i-Math.exp(-x*w)*(b+(m+x*b)*w);else{const w=x*Math.sqrt(v*v-1);I=T=>{const P=Math.exp(-v*x*T),M=Math.min(w*T,300);return i-P*((m+v*x*b)*Math.sinh(M)+w*b*Math.cosh(M))/w}}return{calculatedDuration:h&&p||null,next:w=>{const T=I(w);if(h)s.done=w>=p;else{let P=m;w!==0&&(v<1?P=ov(I,w,T):P=0);const M=Math.abs(P)<=n,j=Math.abs(i-T)<=t;s.done=M&&j}return s.value=s.done?i:T,s}}}function Rh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:d,restDelta:u=.5,restSpeed:p}){const g=e[0],h={done:!1,value:g},m=_=>l!==void 0&&_<l||d!==void 0&&_>d,v=_=>l===void 0?d:d===void 0||Math.abs(l-_)<Math.abs(d-_)?l:d;let b=n*t;const x=g+b,S=s===void 0?x:s(x);S!==x&&(b=S-g);const I=_=>-b*Math.exp(-_/r),w=_=>S+I(_),T=_=>{const N=I(_),k=w(_);h.done=Math.abs(N)<=u,h.value=h.done?S:k};let P,M;const j=_=>{m(h.value)&&(P=_,M=iv({keyframes:[h.value,v(h.value)],velocity:ov(w,_,h.value),damping:o,stiffness:i,restDelta:u,restSpeed:p}))};return j(0),{calculatedDuration:null,next:_=>{let N=!1;return!M&&P===void 0&&(N=!0,T(_),j(_)),P!==void 0&&_>P?M.next(_-P):(!N&&T(_),h)}}}const ak=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Pt.update(t,!0),stop:()=>Oo(t),now:()=>bn.isProcessing?bn.timestamp:performance.now()}},Mh=2e4;function kh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Mh;)t+=n,r=e.next(t);return t>=Mh?1/0:t}const lk={decay:Rh,inertia:Rh,tween:eu,keyframes:eu,spring:iv};function tu({autoplay:e=!0,delay:t=0,driver:n=ak,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:l="loop",onPlay:d,onStop:u,onComplete:p,onUpdate:g,...h}){let m=1,v=!1,b,x;const S=()=>{x=new Promise($=>{b=$})};S();let I;const w=lk[o]||eu;let T;w!==eu&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&Lr(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),T=nv([0,100],r,{clamp:!1}),r=[0,100]);const P=w({...h,keyframes:r});let M;l==="mirror"&&(M=w({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let j="idle",_=null,N=null,k=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=kh(P));const{calculatedDuration:D}=P;let U=1/0,H=1/0;D!==null&&(U=D+s,H=U*(i+1)-s);let G=0;const Y=$=>{if(N===null)return;m>0&&(N=Math.min(N,$)),m<0&&(N=Math.min($-H/m,N)),_!==null?G=_:G=Math.round($-N)*m;const te=G-t*(m>=0?1:-1),oe=m>=0?te<0:te>H;G=Math.max(te,0),j==="finished"&&_===null&&(G=H);let Q=G,de=P;if(i){const be=Math.min(G,H)/U;let Ce=Math.floor(be),Ee=be%1;!Ee&&be>=1&&(Ee=1),Ee===1&&Ce--,Ce=Math.min(Ce,i+1),!!(Ce%2)&&(l==="reverse"?(Ee=1-Ee,s&&(Ee-=s/U)):l==="mirror"&&(de=M)),Q=ai(0,1,Ee)*U}const pe=oe?{done:!1,value:r[0]}:de.next(Q);T&&(pe.value=T(pe.value));let{done:ye}=pe;!oe&&D!==null&&(ye=m>=0?G>=H:G<=0);const ce=_===null&&(j==="finished"||j==="running"&&ye);return g&&g(pe.value),ce&&W(),pe},V=()=>{I&&I.stop(),I=void 0},Z=()=>{j="idle",V(),b(),S(),N=k=null},W=()=>{j="finished",p&&p(),V(),b()},se=()=>{if(v)return;I||(I=n(Y));const $=I.now();d&&d(),_!==null?N=$-_:(!N||j==="finished")&&(N=$),j==="finished"&&S(),k=N,_=null,j="running",I.start()};e&&se();const K={then($,te){return x.then($,te)},get time(){return Io(G)},set time($){$=oi($),G=$,_!==null||!I||m===0?_=$:N=I.now()-$/m},get duration(){const $=P.calculatedDuration===null?kh(P):P.calculatedDuration;return Io($)},get speed(){return m},set speed($){$===m||!I||(m=$,K.time=Io(G))},get state(){return j},play:se,pause:()=>{j="paused",_=G},stop:()=>{v=!0,j!=="idle"&&(j="idle",u&&u(),Z())},cancel:()=>{k!==null&&Y(k),Z()},complete:()=>{j="finished"},sample:$=>(N=0,Y($))};return K}function ck(e){let t;return()=>(t===void 0&&(t=e()),t)}const uk=ck(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),dk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),dc=10,fk=2e4,pk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!F9(t.ease);function hk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(uk()&&dk.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,l,d,u=!1;const p=()=>{d=new Promise(w=>{l=w})};p();let{keyframes:g,duration:h=300,ease:m,times:v}=o;if(pk(t,o)){const w=tu({...o,repeat:0,delay:0});let T={done:!1,value:g[0]};const P=[];let M=0;for(;!T.done&&M<fk;)T=w.sample(M),P.push(T.value),M+=dc;v=void 0,g=P,h=M-dc,m="linear"}const b=EM(e.owner.current,t,g,{...o,duration:h,ease:m,times:v}),x=()=>{u=!1,b.cancel()},S=()=>{u=!0,Pt.update(x),l(),p()};return b.onfinish=()=>{u||(e.set(TM(g,o)),r&&r(),S())},{then(w,T){return d.then(w,T)},attachTimeline(w){return b.timeline=w,b.onfinish=null,$t},get time(){return Io(b.currentTime||0)},set time(w){b.currentTime=oi(w)},get speed(){return b.playbackRate},set speed(w){b.playbackRate=w},get duration(){return Io(h)},play:()=>{s||(b.play(),Oo(x))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:w}=b;if(w){const T=tu({...o,autoplay:!1});e.setWithVelocity(T.sample(w-dc).value,T.sample(w).value,dc)}S()},complete:()=>{u||b.finish()},cancel:S}}function gk({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:$t,pause:$t,stop:$t,then:i=>(i(),Promise.resolve()),cancel:$t,complete:$t});return t?tu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const mk={type:"spring",stiffness:500,damping:25,restSpeed:10},vk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yk={type:"keyframes",duration:.8},bk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ck=(e,{keyframes:t})=>t.length>2?yk:Xi.has(e)?e.startsWith("scale")?vk(t[1]):mk:bk,qf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(li.test(t)||t==="0")&&!t.startsWith("url(")),xk=new Set(["brightness","contrast","saturate","opacity"]);function wk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qu)||[];if(!r)return e;const o=n.replace(r,"");let i=xk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Sk=/([a-z-]*)\(.*?\)/g,Yf={...li,getAnimatableNone:e=>{const t=e.match(Sk);return t?t.map(wk).join(" "):e}},Ak={...C9,color:On,backgroundColor:On,outlineColor:On,fill:On,stroke:On,borderColor:On,borderTopColor:On,borderRightColor:On,borderBottomColor:On,borderLeftColor:On,filter:Yf,WebkitFilter:Yf},_6=e=>Ak[e];function sv(e,t){let n=_6(e);return n!==Yf&&(n=li),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const av=e=>/^0[^.\s]+$/.test(e);function Ek(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||av(e)}function Tk(e,t,n,r){const o=qf(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const d=[];for(let u=0;u<i.length;u++)i[u]===null&&(i[u]=u===0?s:i[u-1]),Ek(i[u])&&d.push(u),typeof i[u]=="string"&&i[u]!=="none"&&i[u]!=="0"&&(l=i[u]);if(o&&d.length&&l)for(let u=0;u<d.length;u++){const p=d[u];i[p]=sv(t,l)}return i}function Ik({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:l,from:d,elapsed:u,...p}){return!!Object.keys(p).length}function D6(e,t){return e[t]||e.default||e}const Ok={skipAnimations:!1},F6=(e,t,n,r={})=>o=>{const i=D6(r,e)||{},s=i.delay||r.delay||0;let{elapsed:l=0}=r;l=l-oi(s);const d=Tk(t,e,n,i),u=d[0],p=d[d.length-1],g=qf(e,u),h=qf(e,p);Xl(g===h,`You are trying to animate ${e} from "${u}" to "${p}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${p} via the \`style\` property.`);let m={keyframes:d,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-l,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Ik(i)||(m={...m,...Ck(e,m)}),m.duration&&(m.duration=oi(m.duration)),m.repeatDelay&&(m.repeatDelay=oi(m.repeatDelay)),!g||!h||AM.current||i.type===!1||Ok.skipAnimations)return gk(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=hk(t,e,m);if(v)return v}return tu(m)};function nu(e){return!!(zn(e)&&e.add)}const lv=e=>/^\-?\d*\.?\d+$/.test(e);function L6(e,t){e.indexOf(t)===-1&&e.push(t)}function B6(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class N6{constructor(){this.subscriptions=[]}add(t){return L6(this.subscriptions,t),()=>B6(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 s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _h=new Set;function $6(e,t,n){e||_h.has(t)||(console.warn(t),_h.add(t))}const Pk=e=>!isNaN(parseFloat(e));class jk{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:s}=bn;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Pt.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=()=>Pt.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=Pk(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&$6(!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 N6);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pt.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?rv(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 ia(e,t){return new jk(e,t)}const cv=e=>t=>t.test(e),Rk={test:e=>e==="auto",parse:e=>e},uv=[Qi,Fe,Qr,Ko,NR,BR,Rk],Ja=e=>uv.find(cv(e)),Mk=[...uv,On,li],kk=e=>Mk.find(cv(e));function _k(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ia(n))}function Dk(e,t){const n=Ku(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const l=eM(i[s]);_k(e,s,l)}}function Fk(e,t,n){var r,o;const i=Object.keys(t).filter(l=>!e.hasValue(l)),s=i.length;if(s)for(let l=0;l<s;l++){const d=i[l],u=t[d];let p=null;Array.isArray(u)&&(p=u[0]),p===null&&(p=(o=(r=n[d])!==null&&r!==void 0?r:e.readValue(d))!==null&&o!==void 0?o:t[d]),p!=null&&(typeof p=="string"&&(lv(p)||av(p))?p=parseFloat(p):!kk(p)&&li.test(u)&&(p=sv(d,u)),e.addValue(d,ia(p,{owner:e})),n[d]===void 0&&(n[d]=p),p!==null&&e.setBaseTarget(d,p))}}function Lk(e,t){return t?(t[e]||t.default||t).from:void 0}function Bk(e,t,n){const r={};for(const o in e){const i=Lk(o,t);if(i!==void 0)r[o]=i;else{const s=n.getValue(o);s&&(r[o]=s.get())}}return r}function Nk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $k(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 dv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const d=e.getValue("willChange");r&&(i=r);const u=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in l){const h=e.getValue(g),m=l[g];if(!h||m===void 0||p&&Nk(p,g))continue;const v={delay:n,elapsed:0,...D6(i||{},g)};if(window.HandoffAppearAnimations){const S=e.getProps()[f9];if(S){const I=window.HandoffAppearAnimations(S,g,h,Pt);I!==null&&(v.elapsed=I,v.isHandoff=!0)}}let b=!v.isHandoff&&!$k(h,m);if(v.type==="spring"&&(h.getVelocity()||v.velocity)&&(b=!1),h.animation&&(b=!1),b)continue;h.start(F6(g,h,m,e.shouldReduceMotion&&Xi.has(g)?{type:!1}:v));const x=h.animation;nu(d)&&(d.add(g),x.then(()=>d.remove(g))),u.push(x)}return s&&Promise.all(u).then(()=>{s&&Dk(e,s)}),u}function Kf(e,t,n={}){const r=Ku(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(dv(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:u=0,staggerChildren:p,staggerDirection:g}=o;return Vk(e,t,u+d,p,g,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,u]=l==="beforeChildren"?[i,s]:[s,i];return d().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function Vk(e,t,n=0,r=0,o=1,i){const s=[],l=(e.variantChildren.size-1)*r,d=o===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(zk).forEach((u,p)=>{u.notify("AnimationStart",t),s.push(Kf(u,t,{...i,delay:n+d(p)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function zk(e,t){return e.sortNodePosition(t)}function Wk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Kf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Kf(e,t,n);else{const o=typeof t=="function"?Ku(e,t,n.custom):t;r=Promise.all(dv(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Uk=[...w6].reverse(),Hk=w6.length;function Gk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Wk(e,n,r)))}function qk(e){let t=Gk(e);const n=Kk();let r=!0;const o=(d,u)=>{const p=Ku(e,u);if(p){const{transition:g,transitionEnd:h,...m}=p;d={...d,...m,...h}}return d};function i(d){t=d(e)}function s(d,u){const p=e.getProps(),g=e.getVariantContext(!0)||{},h=[],m=new Set;let v={},b=1/0;for(let S=0;S<Hk;S++){const I=Uk[S],w=n[I],T=p[I]!==void 0?p[I]:g[I],P=jl(T),M=I===u?w.isActive:null;M===!1&&(b=S);let j=T===g[I]&&T!==p[I]&&P;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),w.protectedKeys={...v},!w.isActive&&M===null||!T&&!w.prevProp||Hu(T)||typeof T=="boolean")continue;let N=Yk(w.prevProp,T)||I===u&&w.isActive&&!j&&P||S>b&&P,k=!1;const D=Array.isArray(T)?T:[T];let U=D.reduce(o,{});M===!1&&(U={});const{prevResolvedValues:H={}}=w,G={...H,...U},Y=V=>{N=!0,m.has(V)&&(k=!0,m.delete(V)),w.needsAnimating[V]=!0};for(const V in G){const Z=U[V],W=H[V];if(v.hasOwnProperty(V))continue;let se=!1;Qc(Z)&&Qc(W)?se=!_9(Z,W):se=Z!==W,se?Z!==void 0?Y(V):m.add(V):Z!==void 0&&m.has(V)?Y(V):w.protectedKeys[V]=!0}w.prevProp=T,w.prevResolvedValues=U,w.isActive&&(v={...v,...U}),r&&e.blockInitialAnimation&&(N=!1),N&&(!j||k)&&h.push(...D.map(V=>({animation:V,options:{type:I,...d}})))}if(m.size){const S={};m.forEach(I=>{const w=e.getBaseTarget(I);w!==void 0&&(S[I]=w)}),h.push({animation:S})}let x=!!h.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function l(d,u,p){var g;if(n[d].isActive===u)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(d,u)}),n[d].isActive=u;const h=s(p,d);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>n}}function Yk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_9(t,e):!1}function Pi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kk(){return{animate:Pi(!0),whileInView:Pi(),whileHover:Pi(),whileTap:Pi(),whileDrag:Pi(),whileFocus:Pi(),exit:Pi()}}class Zk extends di{constructor(t){super(t),t.animationState||(t.animationState=qk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Hu(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 Xk=0;class Qk extends di{constructor(){super(...arguments),this.id=Xk++}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 Jk={animation:{Feature:Zk},exit:{Feature:Qk}},Dh=(e,t)=>Math.abs(e-t);function e_(e,t){const n=Dh(e.x,t.x),r=Dh(e.y,t.y);return Math.sqrt(n**2+r**2)}class fv{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=uf(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=e_(g.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:v}=g,{timestamp:b}=bn;this.history.push({...v,timestamp:b});const{onStart:x,onMove:S}=this.handlers;h||(x&&x(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,g)},this.handlePointerMove=(g,h)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=cf(h,this.transformPagePoint),Pt.update(this.updatePoint,!0)},this.handlePointerUp=(g,h)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=uf(g.type==="pointercancel"?this.lastMoveEventInfo:cf(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(g,x),v&&v(g,x)},!P9(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Yu(t),l=cf(s,this.transformPagePoint),{point:d}=l,{timestamp:u}=bn;this.history=[{...d,timestamp:u}];const{onSessionStart:p}=n;p&&p(t,uf(l,this.history)),this.removeListeners=ri(To(this.contextWindow,"pointermove",this.handlePointerMove),To(this.contextWindow,"pointerup",this.handlePointerUp),To(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Oo(this.updatePoint)}}function cf(e,t){return t?{point:t(e.point)}:e}function Fh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uf({point:e},t){return{point:e,delta:Fh(e,pv(t)),offset:Fh(e,t_(t)),velocity:n_(t,.1)}}function t_(e){return e[0]}function pv(e){return e[e.length-1]}function n_(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=pv(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>oi(t)));)n--;if(!r)return{x:0,y:0};const i=Io(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function rr(e){return e.max-e.min}function Zf(e,t=0,n=.01){return Math.abs(e-t)<=n}function Lh(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=rr(n)/rr(t),(Zf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(Zf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ml(e,t,n,r){Lh(e.x,t.x,n.x,r?r.originX:void 0),Lh(e.y,t.y,n.y,r?r.originY:void 0)}function Bh(e,t,n){e.min=n.min+t.min,e.max=e.min+rr(t)}function r_(e,t,n){Bh(e.x,t.x,n.x),Bh(e.y,t.y,n.y)}function Nh(e,t,n){e.min=t.min-n.min,e.max=e.min+rr(t)}function vl(e,t,n){Nh(e.x,t.x,n.x),Nh(e.y,t.y,n.y)}function o_(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Dt(n,e,r.max):Math.min(e,n)),e}function $h(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 i_(e,{top:t,left:n,bottom:r,right:o}){return{x:$h(e.x,n,o),y:$h(e.y,t,r)}}function Vh(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 s_(e,t){return{x:Vh(e.x,t.x),y:Vh(e.y,t.y)}}function a_(e,t){let n=.5;const r=rr(e),o=rr(t);return o>r?n=Ml(t.min,t.max-r,e.min):r>o&&(n=Ml(e.min,e.max-o,t.min)),ai(0,1,n)}function l_(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 Xf=.35;function c_(e=Xf){return e===!1?e=0:e===!0&&(e=Xf),{x:zh(e,"left","right"),y:zh(e,"top","bottom")}}function zh(e,t,n){return{min:Wh(e,t),max:Wh(e,n)}}function Wh(e,t){return typeof e=="number"?e:e[t]||0}const Uh=()=>({translate:0,scale:1,origin:0,originPoint:0}),qs=()=>({x:Uh(),y:Uh()}),Hh=()=>({min:0,max:0}),Kt=()=>({x:Hh(),y:Hh()});function vr(e){return[e("x"),e("y")]}function hv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function u_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d_(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 df(e){return e===void 0||e===1}function Qf({scale:e,scaleX:t,scaleY:n}){return!df(e)||!df(t)||!df(n)}function ki(e){return Qf(e)||gv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function gv(e){return Gh(e.x)||Gh(e.y)}function Gh(e){return e&&e!=="0%"}function ru(e,t,n){const r=e-n,o=t*r;return n+o}function qh(e,t,n,r,o){return o!==void 0&&(e=ru(e,o,r)),ru(e,n,r)+t}function Jf(e,t=0,n=1,r,o){e.min=qh(e.min,t,n,r,o),e.max=qh(e.max,t,n,r,o)}function mv(e,{x:t,y:n}){Jf(e.x,t.translate,t.scale,t.originPoint),Jf(e.y,n.translate,n.scale,n.originPoint)}function f_(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let l=0;l<o;l++){i=n[l],s=i.projectionDelta;const d=i.instance;d&&d.style&&d.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ys(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,mv(e,s)),r&&ki(i.latestValues)&&Ys(e,i.latestValues))}t.x=Yh(t.x),t.y=Yh(t.y)}function Yh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Xo(e,t){e.min=e.min+t,e.max=e.max+t}function Kh(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=Dt(e.min,e.max,i);Jf(e,t[n],t[r],s,t.scale)}const p_=["x","scaleX","originX"],h_=["y","scaleY","originY"];function Ys(e,t){Kh(e.x,t,p_),Kh(e.y,t,h_)}function vv(e,t){return hv(d_(e.getBoundingClientRect(),t))}function g_(e,t,n){const r=vv(e,n),{scroll:o}=t;return o&&(Xo(r.x,o.offset.x),Xo(r.y,o.offset.y)),r}const yv=({current:e})=>e?e.ownerDocument.defaultView:null,m_=new WeakMap;class v_{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=Kt(),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(Yu(p,"page").point)},i=(p,g)=>{const{drag:h,dragPropagation:m,onDragStart:v}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=R9(h),!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),vr(x=>{let S=this.getAxisMotionValue(x).get()||0;if(Qr.test(S)){const{projection:I}=this.visualElement;if(I&&I.layout){const w=I.layout.layoutBox[x];w&&(S=rr(w)*(parseFloat(S)/100))}}this.originPoint[x]=S}),v&&Pt.update(()=>v(p,g),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(p,g)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:v,onDrag:b}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:x}=g;if(m&&this.currentDirection===null){this.currentDirection=y_(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,x),this.updateAxis("y",g.point,x),this.visualElement.render(),b&&b(p,g)},l=(p,g)=>this.stop(p,g),d=()=>vr(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new fv(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:yv(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&&Pt.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||!fc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=o_(s,this.constraints[t],this.elastic[t])),i.set(s)}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&&Hs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=i_(o.layoutBox,n):this.constraints=!1,this.elastic=c_(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&vr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=l_(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Hs(t))return!1;const r=t.current;Lr(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=g_(r,o.root,this.visualElement.getTransformPagePoint());let s=s_(o.layout.layoutBox,i);if(n){const l=n(u_(s));this.hasMutatedConstraints=!!l,l&&(s=hv(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},u=vr(p=>{if(!fc(p,n,this.currentDirection))return;let g=d&&d[p]||{};s&&(g={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,v={type:"inertia",velocity:r?t[p]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(p,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(F6(t,r,0,n))}stopAnimation(){vr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vr(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){vr(n=>{const{drag:r}=this.getProps();if(!fc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:l}=o.layout.layoutBox[n];i.set(t[n]-Dt(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Hs(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};vr(s=>{const l=this.getAxisMotionValue(s);if(l){const d=l.get();o[s]=a_({min:d,max:d},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),vr(s=>{if(!fc(s,t,null))return;const l=this.getAxisMotionValue(s),{min:d,max:u}=this.constraints[s];l.set(Dt(d,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;m_.set(this.visualElement,this);const t=this.visualElement.current,n=To(t,"pointerdown",d=>{const{drag:u,dragListener:p=!0}=this.getProps();u&&p&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Hs(d)&&(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 s=So(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(vr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Xf,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function fc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function y_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class b_ extends di{constructor(t){super(t),this.removeGroupControls=$t,this.removeListeners=$t,this.controls=new v_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$t}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zh=e=>(t,n)=>{e&&Pt.update(()=>e(t,n))};class C_ extends di{constructor(){super(...arguments),this.removePointerDownListener=$t}onPointerDown(t){this.session=new fv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Zh(t),onStart:Zh(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Pt.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=To(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 x_(){const e=O.useContext(C6);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=O.useId();return O.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Mc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const el={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;const n=Xh(e,t.target.x),r=Xh(e,t.target.y);return`${n}% ${r}%`}},w_={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=li.parse(e);if(o.length>5)return r;const i=li.createTransformer(e),s=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,d=n.y.scale*t.y;o[0+s]/=l,o[1+s]/=d;const u=Dt(l,d,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class S_ extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;RR(A_),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()})),Mc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Pt.postRender(()=>{const l=s.getStack();(!l||!l.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 bv(e){const[t,n]=x_(),r=O.useContext(h9);return O.createElement(S_,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(g9),isPresent:t,safeToRemove:n})}const A_={borderRadius:{...el,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:el,borderTopRightRadius:el,borderBottomLeftRadius:el,borderBottomRightRadius:el,boxShadow:w_},Cv=["TopLeft","TopRight","BottomLeft","BottomRight"],E_=Cv.length,Qh=e=>typeof e=="string"?parseFloat(e):e,Jh=e=>typeof e=="number"||Fe.test(e);function T_(e,t,n,r,o,i){o?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,I_(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,O_(r))):i&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<E_;s++){const l=`border${Cv[s]}Radius`;let d=e8(t,l),u=e8(n,l);if(d===void 0&&u===void 0)continue;d||(d=0),u||(u=0),d===0||u===0||Jh(d)===Jh(u)?(e[l]=Math.max(Dt(Qh(d),Qh(u),r),0),(Qr.test(u)||Qr.test(d))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function e8(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const I_=xv(0,.5,W9),O_=xv(.5,.95,$t);function xv(e,t,n){return r=>r<e?0:r>t?1:n(Ml(e,t,r))}function t8(e,t){e.min=t.min,e.max=t.max}function mr(e,t){t8(e.x,t.x),t8(e.y,t.y)}function n8(e,t,n,r,o){return e-=t,e=ru(e,1/n,r),o!==void 0&&(e=ru(e,1/o,r)),e}function P_(e,t=0,n=1,r=.5,o,i=e,s=e){if(Qr.test(t)&&(t=parseFloat(t),t=Dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=Dt(i.min,i.max,r);e===i&&(l-=t),e.min=n8(e.min,t,n,l,o),e.max=n8(e.max,t,n,l,o)}function r8(e,t,[n,r,o],i,s){P_(e,t[n],t[r],t[o],t.scale,i,s)}const j_=["x","scaleX","originX"],R_=["y","scaleY","originY"];function o8(e,t,n,r){r8(e.x,t,j_,n?n.x:void 0,r?r.x:void 0),r8(e.y,t,R_,n?n.y:void 0,r?r.y:void 0)}function i8(e){return e.translate===0&&e.scale===1}function wv(e){return i8(e.x)&&i8(e.y)}function M_(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 Sv(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 s8(e){return rr(e.x)/rr(e.y)}class k_{constructor(){this.members=[]}add(t){L6(this.members,t),t.scheduleRender()}remove(t){if(B6(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 a8(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:d,rotateX:u,rotateY:p}=n;d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),p&&(r+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const __=(e,t)=>e.depth-t.depth;class D_{constructor(){this.children=[],this.isDirty=!1}add(t){L6(this.children,t),this.isDirty=!0}remove(t){B6(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(__),this.isDirty=!1,this.children.forEach(t)}}function F_(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Oo(r),e(i-t))};return Pt.read(r,!0),()=>Oo(r)}function L_(e){window.MotionDebug&&window.MotionDebug.record(e)}function B_(e){return e instanceof SVGElement&&e.tagName!=="svg"}function N_(e,t,n){const r=zn(e)?e:ia(e);return r.start(F6("",r,t,n)),r.animation}const l8=["","X","Y","Z"],$_={visibility:"hidden"},c8=1e3;let V_=0;const _i={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Av({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},l=t==null?void 0:t()){this.id=V_++,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,_i.totalNodes=_i.resolvedTargetDeltas=_i.recalculatedProjection=0,this.nodes.forEach(U_),this.nodes.forEach(K_),this.nodes.forEach(Z_),this.nodes.forEach(H_),L_(_i)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new D_)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new N6),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const d=this.eventHandlers.get(s);d&&d.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=B_(s),this.instance=s;const{layoutId:d,layout:u,visualElement:p}=this.options;if(p&&!p.current&&p.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||d)&&(this.isLayoutDirty=!0),e){let g;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=F_(h,250),Mc.hasAnimatedSinceResize&&(Mc.hasAnimatedSinceResize=!1,this.nodes.forEach(d8))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||u)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||tD,{onLayoutAnimationStart:x,onLayoutAnimationComplete:S}=p.getProps(),I=!this.targetLayout||!Sv(this.targetLayout,v)||m,w=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||h&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,w);const T={...D6(b,"layout"),onPlay:x,onComplete:S};(p.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else h||d8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Oo(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(X_),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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:l,layout:d}=this.options;if(l===void 0&&!d)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(u8);return}this.isUpdating||this.nodes.forEach(q_),this.isUpdating=!1,this.nodes.forEach(Y_),this.nodes.forEach(z_),this.nodes.forEach(W_),this.clearAllSnapshots();const l=performance.now();bn.delta=ai(0,1e3/60,l-bn.timestamp),bn.timestamp=l,bn.isProcessing=!0,ef.update.process(bn),ef.preRender.process(bn),ef.render.process(bn),bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(G_),this.sharedNodes.forEach(Q_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pt.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 d=0;d<this.path.length;d++)this.path[d].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!wv(this.projectionDelta),d=this.getTransformTemplate(),u=d?d(this.latestValues,""):void 0,p=u!==this.prevTransformTemplateValue;s&&(l||ki(this.latestValues)||p)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let d=this.removeElementScroll(l);return s&&(d=this.removeTransform(d)),nD(d),{animationId:this.root.animationId,measuredBox:l,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Kt();const l=s.measureViewportBox(),{scroll:d}=this.root;return d&&(Xo(l.x,d.offset.x),Xo(l.y,d.offset.y)),l}removeElementScroll(s){const l=Kt();mr(l,s);for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:p,options:g}=u;if(u!==this.root&&p&&g.layoutScroll){if(p.isRoot){mr(l,s);const{scroll:h}=this.root;h&&(Xo(l.x,-h.offset.x),Xo(l.y,-h.offset.y))}Xo(l.x,p.offset.x),Xo(l.y,p.offset.y)}}return l}applyTransform(s,l=!1){const d=Kt();mr(d,s);for(let u=0;u<this.path.length;u++){const p=this.path[u];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ys(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),ki(p.latestValues)&&Ys(d,p.latestValues)}return ki(this.latestValues)&&Ys(d,this.latestValues),d}removeTransform(s){const l=Kt();mr(l,s);for(let d=0;d<this.path.length;d++){const u=this.path[d];if(!u.instance||!ki(u.latestValues))continue;Qf(u.latestValues)&&u.updateSnapshot();const p=Kt(),g=u.measurePageBox();mr(p,g),o8(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,p)}return ki(this.latestValues)&&o8(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==d;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:h}=this.options;if(!(!this.layout||!(g||h))){if(this.resolvedRelativeTargetAt=bn.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),vl(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),mr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Kt(),this.targetWithTransforms=Kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mr(this.target,this.layout.layoutBox),mv(this.target,this.targetDelta)):mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),vl(this.relativeTargetOrigin,this.target,m.target),mr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_i.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Qf(this.parent.latestValues)||gv(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 s;const l=this.getLead(),d=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===bn.timestamp&&(u=!1),u)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;mr(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;f_(this.layoutCorrected,this.treeScale,this.path,d),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:v}=l;if(!v){this.projectionTransform&&(this.projectionDelta=qs(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=qs(),this.projectionDeltaWithTransform=qs());const b=this.projectionTransform;ml(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=a8(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),_i.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const d=this.snapshot,u=d?d.latestValues:{},p={...this.latestValues},g=qs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=Kt(),m=d?d.source:void 0,v=this.layout?this.layout.source:void 0,b=m!==v,x=this.getStack(),S=!x||x.members.length<=1,I=!!(b&&!S&&this.options.crossfade===!0&&!this.path.some(eD));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const P=T/1e3;f8(g.x,s.x,P),f8(g.y,s.y,P),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),J_(this.relativeTarget,this.relativeTargetOrigin,h,P),w&&M_(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Kt()),mr(w,this.relativeTarget)),b&&(this.animationValues=p,T_(p,u,this.latestValues,P,I,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Oo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pt.update(()=>{Mc.hasAnimatedSinceResize=!0,this.currentAnimation=N_(0,c8,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(c8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:d,layout:u,latestValues:p}=s;if(!(!l||!d||!u)){if(this!==s&&this.layout&&u&&Ev(this.options.animationType,this.layout.layoutBox,u.layoutBox)){d=this.target||Kt();const g=rr(this.layout.layoutBox.x);d.x.min=s.target.x.min,d.x.max=d.x.min+g;const h=rr(this.layout.layoutBox.y);d.y.min=s.target.y.min,d.y.max=d.y.min+h}mr(l,d),Ys(l,p),ml(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new k_),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:d}={}){const u=this.getStack();u&&u.promote(this,d),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:d}=s;if((d.rotate||d.rotateX||d.rotateY||d.rotateZ)&&(l=!0),!l)return;const u={};for(let p=0;p<l8.length;p++){const g="rotate"+l8[p];d[g]&&(u[g]=d[g],s.setStaticValue(g,0))}s.render();for(const p in u)s.setStaticValue(p,u[p]);s.scheduleRender()}getProjectionStyles(s){var l,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $_;const u={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Rc(s==null?void 0:s.pointerEvents)||"",u.transform=p?p(this.latestValues,""):"none",u;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Rc(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ki(this.latestValues)&&(b.transform=p?p({},""):"none",this.hasProjected=!1),b}const h=g.animationValues||g.latestValues;this.applyTransformsToTarget(),u.transform=a8(this.projectionDeltaWithTransform,this.treeScale,h),p&&(u.transform=p(h,u.transform));const{x:m,y:v}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${v.origin*100}% 0`,g.animationValues?u.opacity=g===this?(d=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=g===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in Zc){if(h[b]===void 0)continue;const{correct:x,applyTo:S}=Zc[b],I=u.transform==="none"?h[b]:x(h[b],g);if(S){const w=S.length;for(let T=0;T<w;T++)u[S[T]]=I}else u[b]=I}return this.options.layoutId&&(u.pointerEvents=g===this?Rc(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(u8),this.root.sharedNodes.clear()}}}function z_(e){e.updateLayout()}function W_(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,s=n.source!==e.layout.source;i==="size"?vr(g=>{const h=s?n.measuredBox[g]:n.layoutBox[g],m=rr(h);h.min=r[g].min,h.max=h.min+m}):Ev(i,n.layoutBox,r)&&vr(g=>{const h=s?n.measuredBox[g]:n.layoutBox[g],m=rr(r[g]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+m)});const l=qs();ml(l,r,n.layoutBox);const d=qs();s?ml(d,e.applyTransform(o,!0),n.measuredBox):ml(d,r,n.layoutBox);const u=!wv(l);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:h,layout:m}=g;if(h&&m){const v=Kt();vl(v,n.layoutBox,h.layoutBox);const b=Kt();vl(b,r,m.layoutBox),Sv(v,b)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function U_(e){_i.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 H_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function G_(e){e.clearSnapshot()}function u8(e){e.clearMeasurements()}function q_(e){e.isLayoutDirty=!1}function Y_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function d8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function K_(e){e.resolveTargetDelta()}function Z_(e){e.calcProjection()}function X_(e){e.resetRotation()}function Q_(e){e.removeLeadSnapshot()}function f8(e,t,n){e.translate=Dt(t.translate,0,n),e.scale=Dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function p8(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function J_(e,t,n,r){p8(e.x,t.x,n.x,r),p8(e.y,t.y,n.y,r)}function eD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tD={duration:.45,ease:[.4,0,.1,1]},h8=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),g8=h8("applewebkit/")&&!h8("chrome/")?Math.round:$t;function m8(e){e.min=g8(e.min),e.max=g8(e.max)}function nD(e){m8(e.x),m8(e.y)}function Ev(e,t,n){return e==="position"||e==="preserve-aspect"&&!Zf(s8(t),s8(n),.2)}const rD=Av({attachResizeListener:(e,t)=>So(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Tv=Av({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new rD({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),oD={pan:{Feature:C_},drag:{Feature:b_,ProjectionNode:Tv,MeasureLayout:bv}},iD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sD(e){const t=iD.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const aD=4;function e0(e,t,n=1){Lr(n<=aD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=sD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return lv(s)?parseFloat(s):s}else return Wf(o)?e0(o,t,n+1):o}function lD(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(!Wf(i))return;const s=e0(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Wf(i))continue;const s=e0(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const cD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Iv=e=>cD.has(e),uD=e=>Object.keys(e).some(Iv),pc=e=>e===Qi||e===Fe,v8=(e,t)=>parseFloat(e.split(", ")[t]),y8=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return v8(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?v8(i[1],e):0}},dD=new Set(["x","y","z"]),fD=Yl.filter(e=>!dD.has(e));function pD(e){const t=[];return fD.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 sa={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:y8(4,13),y:y8(5,14)};sa.translateX=sa.x;sa.translateY=sa.y;const hD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=sa[u](r,i)}),t.render();const d=t.measureViewportBox();return n.forEach(u=>{const p=t.getValue(u);p&&p.jump(l[u]),e[u]=sa[u](d,i)}),e},gD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Iv);let i=[],s=!1;const l=[];if(o.forEach(d=>{const u=e.getValue(d);if(!e.hasValue(d))return;let p=n[d],g=Ja(p);const h=t[d];let m;if(Qc(h)){const v=h.length,b=h[0]===null?1:0;p=h[b],g=Ja(p);for(let x=b;x<v&&h[x]!==null;x++)m?Lr(Ja(h[x])===m,"All keyframes must be of the same type"):(m=Ja(h[x]),Lr(m===g||pc(g)&&pc(m),"Keyframes must be of the same dimension as the current value"))}else m=Ja(h);if(g!==m)if(pc(g)&&pc(m)){const v=u.get();typeof v=="string"&&u.set(parseFloat(v)),typeof h=="string"?t[d]=parseFloat(h):Array.isArray(h)&&m===Fe&&(t[d]=h.map(parseFloat))}else g!=null&&g.transform&&(m!=null&&m.transform)&&(p===0||h===0)?p===0?u.set(m.transform(p)):t[d]=g.transform(h):(s||(i=pD(e),s=!0),l.push(d),r[d]=r[d]!==void 0?r[d]:t[d],u.jump(h))}),l.length){const d=l.indexOf("height")>=0?window.pageYOffset:null,u=hD(t,e,l);return i.length&&i.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),Uu&&d!==null&&window.scrollTo({top:d}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function mD(e,t,n,r){return uD(t)?gD(e,t,n,r):{target:t,transitionEnd:r}}const vD=(e,t,n,r)=>{const o=lD(e,t,r);return t=o.target,r=o.transitionEnd,mD(e,t,n,r)},t0={current:null},Ov={current:!1};function yD(){if(Ov.current=!0,!!Uu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t0.current=e.matches;e.addListener(t),t()}else t0.current=!1}function bD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(zn(i))e.addValue(o,i),nu(r)&&r.add(o),process.env.NODE_ENV==="development"&&$6(i.version==="10.18.0",`Attempting to mix Framer Motion versions ${i.version} with 10.18.0 may not work as expected.`);else if(zn(s))e.addValue(o,ia(i,{owner:e})),nu(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const l=e.getValue(o);!l.hasAnimated&&l.set(i)}else{const l=e.getStaticValue(o);e.addValue(o,ia(l!==void 0?l:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const b8=new WeakMap,Pv=Object.keys(Rl),CD=Pv.length,C8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],xD=S6.length;class wD{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){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=()=>Pt.render(this.render,!1,!0);const{latestValues:l,renderState:d}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Gu(n),this.isVariantNode=p9(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const h=p[g];l[g]!==void 0&&zn(h)&&(h.set(l[g],!1),nu(u)&&u.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,b8.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)),Ov.current||yD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:t0.current,process.env.NODE_ENV!=="production"&&$6(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(){b8.delete(this.current),this.projection&&this.projection.unmount(),Oo(this.notifyUpdate),Oo(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=Xi.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Pt.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 s,l;if(process.env.NODE_ENV!=="production"&&o&&r){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Xl(!1,d):Lr(!1,d)}for(let d=0;d<CD;d++){const u=Pv[d],{isEnabled:p,Feature:g,ProjectionNode:h,MeasureLayout:m}=Rl[u];h&&(s=h),p(n)&&(!this.features[u]&&g&&(this.features[u]=new g(this)),m&&(l=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:d,layout:u,drag:p,dragConstraints:g,layoutScroll:h,layoutRoot:m}=n;this.projection.setOptions({layoutId:d,layout:u,alwaysMeasureLayout:!!p||g&&Hs(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:m})}return l}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):Kt()}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<C8.length;r++){const o=C8[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=bD(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<xD;r++){const o=S6[r],i=this.props[o];(jl(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=ia(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=j6(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&&!zn(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 N6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jv extends wD{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 s=Bk(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){Fk(this,r,s);const l=vD(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function SD(e){return window.getComputedStyle(e)}class AD extends jv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Xi.has(n)){const r=_6(n);return r&&r.default||0}else{const r=SD(t),o=(y9(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vv(t,n)}build(t,n,r,o){E6(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return P6(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){A9(t,n,r,o)}}class ED extends jv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xi.has(n)){const r=_6(n);return r&&r.default||0}return n=E9.has(n)?n:x6(n),t.getAttribute(n)}measureInstanceViewportBox(){return Kt()}scrapeMotionValuesFromProps(t,n){return I9(t,n)}build(t,n,r,o){I6(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){T9(t,n,r,o)}mount(t){this.isSVGTag=O6(t.tagName),super.mount(t)}}const TD=(e,t)=>A6(e)?new ED(t,{enableHardwareAcceleration:!1}):new AD(t,{enableHardwareAcceleration:!0}),ID={layout:{ProjectionNode:Tv,MeasureLayout:bv}},OD={...Jk,...xM,...oD,...ID},hc=PR((e,t)=>lM(e,t,OD,TD)),PD=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function x8(...e){const t=O.useRef(0),[n,r]=O.useState(e[t.current]),o=O.useCallback(i=>{t.current=typeof i!="number"?PD(0,e.length,t.current+1):i,r(e[t.current])},[e.length,...e]);return[n,o]}function jD({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let i,s;switch(n){case"up":case"left":i=r,s=0;break;case"right":case"down":default:i=0,s=r;break}const[l,d]=x8(i,s),[u,p]=x8(i,s);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:u!==void 0?u:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):f.jsx(hc.div,{animate:{x:l!==void 0?l:""},onHoverEnd:()=>d(),onHoverStart:()=>d(),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 hn(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 Be(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 ee(){return ee=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},ee.apply(null,arguments)}var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mo(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 n0={exports:{}},gc={exports:{}},ft={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -12,11 +12,11 @@
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 S8;function MD(){return S8||(S8=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,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function w(me){return typeof me=="string"||typeof me=="function"||me===r||me===u||me===i||me===o||me===g||me===h||typeof me=="object"&&me!==null&&(me.$$typeof===v||me.$$typeof===m||me.$$typeof===s||me.$$typeof===l||me.$$typeof===p||me.$$typeof===x||me.$$typeof===S||me.$$typeof===I||me.$$typeof===b)}function T(me){if(typeof me=="object"&&me!==null){var Re=me.$$typeof;switch(Re){case t:var ve=me.type;switch(ve){case d:case u:case r:case i:case o:case g:return ve;default:var qe=ve&&ve.$$typeof;switch(qe){case l:case p:case v:case m:case s:return qe;default:return Re}}case n:return Re}}}var P=d,M=u,j=l,D=s,N=t,k=p,_=r,U=v,H=m,G=n,Y=i,V=o,Z=g,W=!1;function se(me){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.")),K(me)||T(me)===d}function K(me){return T(me)===u}function $(me){return T(me)===l}function te(me){return T(me)===s}function oe(me){return typeof me=="object"&&me!==null&&me.$$typeof===t}function Q(me){return T(me)===p}function de(me){return T(me)===r}function pe(me){return T(me)===v}function ye(me){return T(me)===m}function ce(me){return T(me)===n}function be(me){return T(me)===i}function Ce(me){return T(me)===o}function Ee(me){return T(me)===g}pt.AsyncMode=P,pt.ConcurrentMode=M,pt.ContextConsumer=j,pt.ContextProvider=D,pt.Element=N,pt.ForwardRef=k,pt.Fragment=_,pt.Lazy=U,pt.Memo=H,pt.Portal=G,pt.Profiler=Y,pt.StrictMode=V,pt.Suspense=Z,pt.isAsyncMode=se,pt.isConcurrentMode=K,pt.isContextConsumer=$,pt.isContextProvider=te,pt.isElement=oe,pt.isForwardRef=Q,pt.isFragment=de,pt.isLazy=pe,pt.isMemo=ye,pt.isPortal=ce,pt.isProfiler=be,pt.isStrictMode=Ce,pt.isSuspense=Ee,pt.isValidElementType=w,pt.typeOf=T}()),pt}var A8;function Rv(){return A8||(A8=1,process.env.NODE_ENV==="production"?gc.exports=RD():gc.exports=MD()),gc.exports}/*
15
+ */var S8;function MD(){return S8||(S8=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,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function w(me){return typeof me=="string"||typeof me=="function"||me===r||me===u||me===i||me===o||me===g||me===h||typeof me=="object"&&me!==null&&(me.$$typeof===v||me.$$typeof===m||me.$$typeof===s||me.$$typeof===l||me.$$typeof===p||me.$$typeof===x||me.$$typeof===S||me.$$typeof===I||me.$$typeof===b)}function T(me){if(typeof me=="object"&&me!==null){var Re=me.$$typeof;switch(Re){case t:var ve=me.type;switch(ve){case d:case u:case r:case i:case o:case g:return ve;default:var qe=ve&&ve.$$typeof;switch(qe){case l:case p:case v:case m:case s:return qe;default:return Re}}case n:return Re}}}var P=d,M=u,j=l,_=s,N=t,k=p,D=r,U=v,H=m,G=n,Y=i,V=o,Z=g,W=!1;function se(me){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.")),K(me)||T(me)===d}function K(me){return T(me)===u}function $(me){return T(me)===l}function te(me){return T(me)===s}function oe(me){return typeof me=="object"&&me!==null&&me.$$typeof===t}function Q(me){return T(me)===p}function de(me){return T(me)===r}function pe(me){return T(me)===v}function ye(me){return T(me)===m}function ce(me){return T(me)===n}function be(me){return T(me)===i}function Ce(me){return T(me)===o}function Ee(me){return T(me)===g}pt.AsyncMode=P,pt.ConcurrentMode=M,pt.ContextConsumer=j,pt.ContextProvider=_,pt.Element=N,pt.ForwardRef=k,pt.Fragment=D,pt.Lazy=U,pt.Memo=H,pt.Portal=G,pt.Profiler=Y,pt.StrictMode=V,pt.Suspense=Z,pt.isAsyncMode=se,pt.isConcurrentMode=K,pt.isContextConsumer=$,pt.isContextProvider=te,pt.isElement=oe,pt.isForwardRef=Q,pt.isFragment=de,pt.isLazy=pe,pt.isMemo=ye,pt.isPortal=ce,pt.isProfiler=be,pt.isStrictMode=Ce,pt.isSuspense=Ee,pt.isValidElementType=w,pt.typeOf=T}()),pt}var A8;function Rv(){return A8||(A8=1,process.env.NODE_ENV==="production"?gc.exports=RD():gc.exports=MD()),gc.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var pf,E8;function kD(){if(E8)return pf;E8=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 s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pf=o()?Object.assign:function(i,s){for(var l,d=r(i),u,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var g in l)t.call(l,g)&&(d[g]=l[g]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(d[u[h]]=l[u[h]])}}return d},pf}var hf,T8;function V6(){if(T8)return hf;T8=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hf=e,hf}var gf,I8;function Mv(){return I8||(I8=1,gf=Function.call.bind(Object.prototype.hasOwnProperty)),gf}var mf,O8;function _D(){if(O8)return mf;O8=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=V6(),n={},r=Mv();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,d,u){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var h=Error((d||"React class")+": "+l+" 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 h.name="Invariant Violation",h}g=i[p](s,p,d,l,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+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 m=u?u():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},mf=o,mf}var vf,P8;function DD(){if(P8)return vf;P8=1;var e=Rv(),t=kD(),n=V6(),r=Mv(),o=_D(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function s(){return null}return vf=function(l,d){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(K){var $=K&&(u&&K[u]||K[p]);if(typeof $=="function")return $}var h="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:I(),arrayOf:w,element:T(),elementType:P(),instanceOf:M,node:k(),objectOf:D,oneOf:j,oneOfType:N,shape:U,exact:H};function v(K,$){return K===$?K!==0||1/K===1/$:K!==K&&$!==$}function b(K,$){this.message=K,this.data=$&&typeof $=="object"?$:{},this.stack=""}b.prototype=Error.prototype;function x(K){if(process.env.NODE_ENV!=="production")var $={},te=0;function oe(de,pe,ye,ce,be,Ce,Ee){if(ce=ce||h,Ce=Ce||ye,Ee!==n){if(d){var me=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 me.name="Invariant Violation",me}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=ce+":"+ye;!$[Re]&&te<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ce+"`. 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."),$[Re]=!0,te++)}}return pe[ye]==null?de?pe[ye]===null?new b("The "+be+" `"+Ce+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new b("The "+be+" `"+Ce+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:K(pe,ye,ce,be,Ce)}var Q=oe.bind(null,!1);return Q.isRequired=oe.bind(null,!0),Q}function S(K){function $(te,oe,Q,de,pe,ye){var ce=te[oe],be=V(ce);if(be!==K){var Ce=Z(ce);return new b("Invalid "+de+" `"+pe+"` of type "+("`"+Ce+"` supplied to `"+Q+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return x($)}function I(){return x(s)}function w(K){function $(te,oe,Q,de,pe){if(typeof K!="function")return new b("Property `"+pe+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ye=te[oe];if(!Array.isArray(ye)){var ce=V(ye);return new b("Invalid "+de+" `"+pe+"` of type "+("`"+ce+"` supplied to `"+Q+"`, expected an array."))}for(var be=0;be<ye.length;be++){var Ce=K(ye,be,Q,de,pe+"["+be+"]",n);if(Ce instanceof Error)return Ce}return null}return x($)}function T(){function K($,te,oe,Q,de){var pe=$[te];if(!l(pe)){var ye=V(pe);return new b("Invalid "+Q+" `"+de+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return x(K)}function P(){function K($,te,oe,Q,de){var pe=$[te];if(!e.isValidElementType(pe)){var ye=V(pe);return new b("Invalid "+Q+" `"+de+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return x(K)}function M(K){function $(te,oe,Q,de,pe){if(!(te[oe]instanceof K)){var ye=K.name||h,ce=se(te[oe]);return new b("Invalid "+de+" `"+pe+"` of type "+("`"+ce+"` supplied to `"+Q+"`, expected ")+("instance of `"+ye+"`."))}return null}return x($)}function j(K){if(!Array.isArray(K))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.")),s;function $(te,oe,Q,de,pe){for(var ye=te[oe],ce=0;ce<K.length;ce++)if(v(ye,K[ce]))return null;var be=JSON.stringify(K,function(Ee,me){var Re=Z(me);return Re==="symbol"?String(me):me});return new b("Invalid "+de+" `"+pe+"` of value `"+String(ye)+"` "+("supplied to `"+Q+"`, expected one of "+be+"."))}return x($)}function D(K){function $(te,oe,Q,de,pe){if(typeof K!="function")return new b("Property `"+pe+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ye=te[oe],ce=V(ye);if(ce!=="object")return new b("Invalid "+de+" `"+pe+"` of type "+("`"+ce+"` supplied to `"+Q+"`, expected an object."));for(var be in ye)if(r(ye,be)){var Ce=K(ye,be,Q,de,pe+"."+be,n);if(Ce instanceof Error)return Ce}return null}return x($)}function N(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var $=0;$<K.length;$++){var te=K[$];if(typeof te!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(te)+" at index "+$+"."),s}function oe(Q,de,pe,ye,ce){for(var be=[],Ce=0;Ce<K.length;Ce++){var Ee=K[Ce],me=Ee(Q,de,pe,ye,ce,n);if(me==null)return null;me.data&&r(me.data,"expectedType")&&be.push(me.data.expectedType)}var Re=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new b("Invalid "+ye+" `"+ce+"` supplied to "+("`"+pe+"`"+Re+"."))}return x(oe)}function k(){function K($,te,oe,Q,de){return G($[te])?null:new b("Invalid "+Q+" `"+de+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return x(K)}function _(K,$,te,oe,Q){return new b((K||"React class")+": "+$+" type `"+te+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function U(K){function $(te,oe,Q,de,pe){var ye=te[oe],ce=V(ye);if(ce!=="object")return new b("Invalid "+de+" `"+pe+"` of type `"+ce+"` "+("supplied to `"+Q+"`, expected `object`."));for(var be in K){var Ce=K[be];if(typeof Ce!="function")return _(Q,de,pe,be,Z(Ce));var Ee=Ce(ye,be,Q,de,pe+"."+be,n);if(Ee)return Ee}return null}return x($)}function H(K){function $(te,oe,Q,de,pe){var ye=te[oe],ce=V(ye);if(ce!=="object")return new b("Invalid "+de+" `"+pe+"` of type `"+ce+"` "+("supplied to `"+Q+"`, expected `object`."));var be=t({},te[oe],K);for(var Ce in be){var Ee=K[Ce];if(r(K,Ce)&&typeof Ee!="function")return _(Q,de,pe,Ce,Z(Ee));if(!Ee)return new b("Invalid "+de+" `"+pe+"` key `"+Ce+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(te[oe],null," ")+`
19
+ */var pf,E8;function kD(){if(E8)return pf;E8=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 s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pf=o()?Object.assign:function(i,s){for(var l,d=r(i),u,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var g in l)t.call(l,g)&&(d[g]=l[g]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(d[u[h]]=l[u[h]])}}return d},pf}var hf,T8;function V6(){if(T8)return hf;T8=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hf=e,hf}var gf,I8;function Mv(){return I8||(I8=1,gf=Function.call.bind(Object.prototype.hasOwnProperty)),gf}var mf,O8;function _D(){if(O8)return mf;O8=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=V6(),n={},r=Mv();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,d,u){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var h=Error((d||"React class")+": "+l+" 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 h.name="Invariant Violation",h}g=i[p](s,p,d,l,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+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 m=u?u():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},mf=o,mf}var vf,P8;function DD(){if(P8)return vf;P8=1;var e=Rv(),t=kD(),n=V6(),r=Mv(),o=_D(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function s(){return null}return vf=function(l,d){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(K){var $=K&&(u&&K[u]||K[p]);if(typeof $=="function")return $}var h="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:I(),arrayOf:w,element:T(),elementType:P(),instanceOf:M,node:k(),objectOf:_,oneOf:j,oneOfType:N,shape:U,exact:H};function v(K,$){return K===$?K!==0||1/K===1/$:K!==K&&$!==$}function b(K,$){this.message=K,this.data=$&&typeof $=="object"?$:{},this.stack=""}b.prototype=Error.prototype;function x(K){if(process.env.NODE_ENV!=="production")var $={},te=0;function oe(de,pe,ye,ce,be,Ce,Ee){if(ce=ce||h,Ce=Ce||ye,Ee!==n){if(d){var me=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 me.name="Invariant Violation",me}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=ce+":"+ye;!$[Re]&&te<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ce+"`. 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."),$[Re]=!0,te++)}}return pe[ye]==null?de?pe[ye]===null?new b("The "+be+" `"+Ce+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new b("The "+be+" `"+Ce+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:K(pe,ye,ce,be,Ce)}var Q=oe.bind(null,!1);return Q.isRequired=oe.bind(null,!0),Q}function S(K){function $(te,oe,Q,de,pe,ye){var ce=te[oe],be=V(ce);if(be!==K){var Ce=Z(ce);return new b("Invalid "+de+" `"+pe+"` of type "+("`"+Ce+"` supplied to `"+Q+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return x($)}function I(){return x(s)}function w(K){function $(te,oe,Q,de,pe){if(typeof K!="function")return new b("Property `"+pe+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ye=te[oe];if(!Array.isArray(ye)){var ce=V(ye);return new b("Invalid "+de+" `"+pe+"` of type "+("`"+ce+"` supplied to `"+Q+"`, expected an array."))}for(var be=0;be<ye.length;be++){var Ce=K(ye,be,Q,de,pe+"["+be+"]",n);if(Ce instanceof Error)return Ce}return null}return x($)}function T(){function K($,te,oe,Q,de){var pe=$[te];if(!l(pe)){var ye=V(pe);return new b("Invalid "+Q+" `"+de+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return x(K)}function P(){function K($,te,oe,Q,de){var pe=$[te];if(!e.isValidElementType(pe)){var ye=V(pe);return new b("Invalid "+Q+" `"+de+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return x(K)}function M(K){function $(te,oe,Q,de,pe){if(!(te[oe]instanceof K)){var ye=K.name||h,ce=se(te[oe]);return new b("Invalid "+de+" `"+pe+"` of type "+("`"+ce+"` supplied to `"+Q+"`, expected ")+("instance of `"+ye+"`."))}return null}return x($)}function j(K){if(!Array.isArray(K))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.")),s;function $(te,oe,Q,de,pe){for(var ye=te[oe],ce=0;ce<K.length;ce++)if(v(ye,K[ce]))return null;var be=JSON.stringify(K,function(Ee,me){var Re=Z(me);return Re==="symbol"?String(me):me});return new b("Invalid "+de+" `"+pe+"` of value `"+String(ye)+"` "+("supplied to `"+Q+"`, expected one of "+be+"."))}return x($)}function _(K){function $(te,oe,Q,de,pe){if(typeof K!="function")return new b("Property `"+pe+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ye=te[oe],ce=V(ye);if(ce!=="object")return new b("Invalid "+de+" `"+pe+"` of type "+("`"+ce+"` supplied to `"+Q+"`, expected an object."));for(var be in ye)if(r(ye,be)){var Ce=K(ye,be,Q,de,pe+"."+be,n);if(Ce instanceof Error)return Ce}return null}return x($)}function N(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var $=0;$<K.length;$++){var te=K[$];if(typeof te!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(te)+" at index "+$+"."),s}function oe(Q,de,pe,ye,ce){for(var be=[],Ce=0;Ce<K.length;Ce++){var Ee=K[Ce],me=Ee(Q,de,pe,ye,ce,n);if(me==null)return null;me.data&&r(me.data,"expectedType")&&be.push(me.data.expectedType)}var Re=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new b("Invalid "+ye+" `"+ce+"` supplied to "+("`"+pe+"`"+Re+"."))}return x(oe)}function k(){function K($,te,oe,Q,de){return G($[te])?null:new b("Invalid "+Q+" `"+de+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return x(K)}function D(K,$,te,oe,Q){return new b((K||"React class")+": "+$+" type `"+te+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function U(K){function $(te,oe,Q,de,pe){var ye=te[oe],ce=V(ye);if(ce!=="object")return new b("Invalid "+de+" `"+pe+"` of type `"+ce+"` "+("supplied to `"+Q+"`, expected `object`."));for(var be in K){var Ce=K[be];if(typeof Ce!="function")return D(Q,de,pe,be,Z(Ce));var Ee=Ce(ye,be,Q,de,pe+"."+be,n);if(Ee)return Ee}return null}return x($)}function H(K){function $(te,oe,Q,de,pe){var ye=te[oe],ce=V(ye);if(ce!=="object")return new b("Invalid "+de+" `"+pe+"` of type `"+ce+"` "+("supplied to `"+Q+"`, expected `object`."));var be=t({},te[oe],K);for(var Ce in be){var Ee=K[Ce];if(r(K,Ce)&&typeof Ee!="function")return D(Q,de,pe,Ce,Z(Ee));if(!Ee)return new b("Invalid "+de+" `"+pe+"` key `"+Ce+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(te[oe],null," ")+`
20
20
  Valid keys: `+JSON.stringify(Object.keys(K),null," "));var me=Ee(ye,Ce,Q,de,pe+"."+Ce,n);if(me)return me}return null}return x($)}function G(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(G);if(K===null||l(K))return!0;var $=g(K);if($){var te=$.call(K),oe;if($!==K.entries){for(;!(oe=te.next()).done;)if(!G(oe.value))return!1}else for(;!(oe=te.next()).done;){var Q=oe.value;if(Q&&!G(Q[1]))return!1}}else return!1;return!0;default:return!1}}function Y(K,$){return K==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function V(K){var $=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":Y($,K)?"symbol":$}function Z(K){if(typeof K>"u"||K===null)return""+K;var $=V(K);if($==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return $}function W(K){var $=Z(K);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function se(K){return!K.constructor||!K.constructor.name?h:K.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},vf}var yf,j8;function FD(){if(j8)return yf;j8=1;var e=V6();function t(){}function n(){}return n.resetWarningCache=t,yf=function(){function r(s,l,d,u,p,g){if(g!==e){var h=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 h.name="Invariant Violation",h}}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},yf}if(process.env.NODE_ENV!=="production"){var LD=Rv(),BD=!0;n0.exports=DD()(LD.isElement,BD)}else n0.exports=FD()();var ND=n0.exports;const C=Nr(ND);function kv(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=kv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $e(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kv(e))&&(r&&(r+=" "),r+=t);return r}function Xt(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const l=t(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}function z6(e,t){const n=ee({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ee({},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]=ee({},i),Object.keys(o).forEach(s=>{n[r][s]=z6(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function $D(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:z6(t.components[n].defaultProps,r)}function wo(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 _v(e){if(B.isValidElement(e)||!wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_v(e[n])}),t}function Jr(e,t,n={clone:!0}){const r=n.clone?ee({},e):e;return wo(e)&&wo(t)&&Object.keys(t).forEach(o=>{B.isValidElement(t[o])?r[o]=t[o]:wo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wo(e[o])?r[o]=Jr(e[o],t[o],n):n.clone?r[o]=wo(t[o])?_v(t[o]):t[o]:r[o]=t[o]}),r}const VD=Object.freeze(Object.defineProperty({__proto__:null,default:Jr,isPlainObject:wo},Symbol.toStringTag,{value:"Module"})),zD=["values","unit","step"],WD=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)=>ee({},n,{[r.key]:r.val}),{})};function Dv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Be(e,zD),i=WD(t),s=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function d(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,m){const v=s.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:m)-r/100}${n})`}function p(h){return s.indexOf(h)+1<s.length?u(h,s[s.indexOf(h)+1]):l(h)}function g(h){const m=s.indexOf(h);return m===0?l(s[1]):m===s.length-1?d(s[m]):u(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return ee({keys:s,values:i,up:l,down:d,between:u,only:p,not:g,unit:n},o)}const UD={borderRadius:4},fi=process.env.NODE_ENV!=="production"?C.oneOfType([C.number,C.string,C.object,C.array]):{};function yl(e,t){return t?Jr(e,t,{clone:!1}):e}const W6={xs:0,sm:600,md:900,lg:1200,xl:1536},R8={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${W6[e]}px)`};function Po(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||R8;return t.reduce((s,l,d)=>(s[i.up(i.keys[d])]=n(t[d]),s),{})}if(typeof t=="object"){const i=r.breakpoints||R8;return Object.keys(t).reduce((s,l)=>{if(Object.keys(i.values||W6).indexOf(l)!==-1){const d=i.up(l);s[d]=n(t[l],l)}else{const d=l;s[d]=t[d]}return s},{})}return n(t)}function HD(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function GD(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ki(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 qD=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"}));function Ve(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ki(7));return e.charAt(0).toUpperCase()+e.slice(1)}const YD=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"}));function Zu(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 ou(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Zu(e,n)||r,t&&(o=t(o,r,e)),o}function Ht(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],d=s.theme,u=Zu(d,r)||{};return Po(s,l,g=>{let h=ou(u,o,g);return g===h&&typeof g=="string"&&(h=ou(u,o,`${t}${g==="default"?"":Ve(g)}`,g)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:fi}:{},i.filterProps=[t],i}function KD(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ZD={m:"margin",p:"padding"},XD={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},M8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QD=KD(e=>{if(e.length>2)if(M8[e])e=M8[e];else return[e];const[t,n]=e.split(""),r=ZD[t],o=XD[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Xu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],JD=[...Xu,...Qu];function Jl(e,t,n,r){var o;const i=(o=Zu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${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[s]):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(`
@@ -62,9 +62,9 @@ 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 Y8;function fB(){return Y8||(Y8=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"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=!1,b=!1,x=!1,S=!1,I=!1,w;w=Symbol.for("react.module.reference");function T(ve){return!!(typeof ve=="string"||typeof ve=="function"||ve===n||ve===o||I||ve===r||ve===u||ve===p||S||ve===m||v||b||x||typeof ve=="object"&&ve!==null&&(ve.$$typeof===h||ve.$$typeof===g||ve.$$typeof===i||ve.$$typeof===s||ve.$$typeof===d||ve.$$typeof===w||ve.getModuleId!==void 0))}function P(ve){if(typeof ve=="object"&&ve!==null){var qe=ve.$$typeof;switch(qe){case e:var Ft=ve.type;switch(Ft){case n:case o:case r:case u:case p:return Ft;default:var bt=Ft&&Ft.$$typeof;switch(bt){case l:case s:case d:case h:case g:case i:return bt;default:return qe}}case t:return qe}}}var M=s,j=i,D=e,N=d,k=n,_=h,U=g,H=t,G=o,Y=r,V=u,Z=p,W=!1,se=!1;function K(ve){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(ve){return se||(se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ve){return P(ve)===s}function oe(ve){return P(ve)===i}function Q(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===e}function de(ve){return P(ve)===d}function pe(ve){return P(ve)===n}function ye(ve){return P(ve)===h}function ce(ve){return P(ve)===g}function be(ve){return P(ve)===t}function Ce(ve){return P(ve)===o}function Ee(ve){return P(ve)===r}function me(ve){return P(ve)===u}function Re(ve){return P(ve)===p}gt.ContextConsumer=M,gt.ContextProvider=j,gt.Element=D,gt.ForwardRef=N,gt.Fragment=k,gt.Lazy=_,gt.Memo=U,gt.Portal=H,gt.Profiler=G,gt.StrictMode=Y,gt.Suspense=V,gt.SuspenseList=Z,gt.isAsyncMode=K,gt.isConcurrentMode=$,gt.isContextConsumer=te,gt.isContextProvider=oe,gt.isElement=Q,gt.isForwardRef=de,gt.isFragment=pe,gt.isLazy=ye,gt.isMemo=ce,gt.isPortal=be,gt.isProfiler=Ce,gt.isStrictMode=Ee,gt.isSuspense=me,gt.isSuspenseList=Re,gt.isValidElementType=T,gt.typeOf=P}()),gt}process.env.NODE_ENV==="production"?s0.exports=dB():s0.exports=fB();var a0=s0.exports;const pB=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uy(e){const t=`${e}`.match(pB);return t&&t[1]||""}function dy(e,t=""){return e.displayName||e.name||uy(e)||t}function K8(e,t,n){const r=dy(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function fy(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case a0.ForwardRef:return K8(e,e.render,"ForwardRef");case a0.Memo:return K8(e,e.type,"memo");default:return}}}const hB=Object.freeze(Object.defineProperty({__proto__:null,default:fy,getFunctionName:uy},Symbol.toStringTag,{value:"Module"})),gB=Mo(hB),mB=Mo(FF),vB=Mo(CL);var ma=Pr;Object.defineProperty(o1,"__esModule",{value:!0});var yB=o1.default=MB;o1.shouldForwardProp=Fc;o1.systemDefaultTheme=void 0;var yr=ma(aB()),l0=ma(lB()),Z8=IB(cy),bB=cB,CB=ma(uB),xB=ma(gB),wB=ma(mB),SB=ma(vB);const AB=["ownerState"],EB=["variants"],TB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function py(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(py=function(r){return r?n:t})(e)}function IB(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=py(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function OB(e){return Object.keys(e).length===0}function PB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jB=o1.systemDefaultTheme=(0,wB.default)(),X8=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function vc({defaultTheme:e,theme:t,themeId:n}){return OB(t)?e:t[n]||t}function RB(e){return e?(t,n)=>n[e]:null}function Lc(e,t){let{ownerState:n}=t,r=(0,l0.default)(t,AB);const o=typeof e=="function"?e((0,yr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Lc(i,(0,yr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=(0,l0.default)(o,EB);return i.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props((0,yr.default)({ownerState:n},r,n)):Object.keys(d.props).forEach(p=>{(n==null?void 0:n[p])!==d.props[p]&&r[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof d.style=="function"?d.style((0,yr.default)({ownerState:n},r,n)):d.style))}),l}return o}function MB(e={}){const{themeId:t,defaultTheme:n=jB,rootShouldForwardProp:r=Fc,slotShouldForwardProp:o=Fc}=e,i=s=>(0,SB.default)((0,yr.default)({},s,{theme:vc((0,yr.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{(0,Z8.internal_processStyles)(s,P=>P.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:d,slot:u,skipVariantsResolver:p,skipSx:g,overridesResolver:h=RB(X8(u))}=l,m=(0,l0.default)(l,TB),v=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,b=g||!1;let x;process.env.NODE_ENV!=="production"&&d&&(x=`${d}-${X8(u||"Root")}`);let S=Fc;u==="Root"||u==="root"?S=r:u?S=o:PB(s)&&(S=void 0);const I=(0,Z8.default)(s,(0,yr.default)({shouldForwardProp:S,label:x},m)),w=P=>typeof P=="function"&&P.__emotion_real!==P||(0,bB.isPlainObject)(P)?M=>Lc(P,(0,yr.default)({},M,{theme:vc({theme:M.theme,defaultTheme:n,themeId:t})})):P,T=(P,...M)=>{let j=w(P);const D=M?M.map(w):[];d&&h&&D.push(_=>{const U=vc((0,yr.default)({},_,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[d]||!U.components[d].styleOverrides)return null;const H=U.components[d].styleOverrides,G={};return Object.entries(H).forEach(([Y,V])=>{G[Y]=Lc(V,(0,yr.default)({},_,{theme:U}))}),h(_,G)}),d&&!v&&D.push(_=>{var U;const H=vc((0,yr.default)({},_,{defaultTheme:n,themeId:t})),G=H==null||(U=H.components)==null||(U=U[d])==null?void 0:U.variants;return Lc({variants:G},(0,yr.default)({},_,{theme:H}))}),b||D.push(i);const N=D.length-M.length;if(Array.isArray(P)&&N>0){const _=new Array(N).fill("");j=[...P,..._],j.raw=[...P.raw,..._]}const k=I(j,...D);if(process.env.NODE_ENV!=="production"){let _;d&&(_=`${d}${(0,CB.default)(u||"")}`),_===void 0&&(_=`Styled(${(0,xB.default)(s)})`),k.displayName=_}return s.muiName&&(k.muiName=s.muiName),k};return I.withConfig&&(T.withConfig=I.withConfig),T}}function kB(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const e2=e=>kB(e)&&e!=="classes",ge=yB({themeId:Fl,defaultTheme:J6,rootShouldForwardProp:e2});function _B(e){return Qt}function Jt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Gt(e,o,n)}),r}function DB(e){return Gt("MuiSvgIcon",e)}Jt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FB=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],LB=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ve(t)}`,`fontSize${Ve(n)}`]};return Xt(o,DB,r)},BB=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ve(n.color)}`],t[`fontSize${Ve(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,l,d,u,p,g,h,m,v;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||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,24))||"1.5rem",large:((u=e.typography)==null||(p=u.pxToRem)==null?void 0:p.call(u,35))||"2.1875rem"}[t.fontSize],color:(g=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?g:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),au=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:g,viewBox:h="0 0 24 24"}=r,m=Be(r,FB),v=B.isValidElement(o)&&o.type==="svg",b=ee({},r,{color:s,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:v}),x={};p||(x.viewBox=h);const S=LB(b);return f.jsxs(BB,ee({as:l,className:$e(S.root,i),focusable:"false",color:u,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},x,m,v&&o.props,{ownerState:b,children:[v?o.props.children:o,g?f.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(au.propTypes={children:C.node,classes:C.object,className:C.string,color:C.oneOfType([C.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),C.string]),component:C.elementType,fontSize:C.oneOfType([C.oneOf(["inherit","large","medium","small"]),C.string]),htmlColor:C.string,inheritViewBox:C.bool,shapeRendering:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),titleAccess:C.string,viewBox:C.string});au.muiName="SvgIcon";function t2(e,t){function n(r,o){return f.jsx(au,ee({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=au.muiName,B.memo(B.forwardRef(n))}const NB=t2(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 $B(e){return Gt("MuiAvatar",e)}Jt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function la(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pn(...e){return B.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{la(n,t)})},e)}function VB(e){return typeof e=="string"}function Ks(e,t,n){return e===void 0||VB(e)?t:ee({},t,{ownerState:ee({},t.ownerState,n)})}const zB={disableDefaultClasses:!1},hy=B.createContext(zB);process.env.NODE_ENV!=="production"&&(hy.displayName="ClassNameConfiguratorContext");function WB(e){const{disableDefaultClasses:t}=B.useContext(hy);return n=>t?"":e(n)}function gy(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 my(e,t,n){return typeof e=="function"?e(t,n):e}function ko(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function UB(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vy(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!UB(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const va=ko(C.element,vy);va.isRequired=ko(C.element.isRequired,vy);function HB(e){const{prototype:t={}}=e;return!!t.isReactComponent}function GB(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!HB(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const qB=ko(C.elementType,GB),YB="exact-prop: ​";function i1(e){return process.env.NODE_ENV==="production"?e:ee({},e,{[YB]: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 jo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const l3=C.oneOfType([C.func,C.object]);function c0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function KB(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 ZB(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,s)=>{const l=o||"<<anonymous>>",d=s||r;return typeof n[r]<"u"?new Error(`The ${i} \`${d}\` of \`${l}\` is deprecated. ${t}`):null}}function XB(e,t){var n,r;return B.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 nr(e){return e&&e.ownerDocument||document}function c3(e){return nr(e).defaultView||window}function QB(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?ee({},t.propTypes):null;return o=>(i,s,l,d,u,...p)=>{const g=u||s,h=n==null?void 0:n[g];if(h){const m=h(i,s,l,d,u,...p);if(m)return m}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const no=typeof window<"u"?B.useLayoutEffect:B.useEffect;let Q8=0;function JB(e){const[t,n]=B.useState(e),r=e||t;return B.useEffect(()=>{t==null&&(Q8+=1,n(`mui-${Q8}`))},[t]),r}const J8=B.useId;function u3(e){if(J8!==void 0){const t=J8();return e??t}return JB(e)}function eN(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 yy({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=B.useRef(e!==void 0),[i,s]=B.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){B.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 Y8;function fB(){return Y8||(Y8=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"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=!1,b=!1,x=!1,S=!1,I=!1,w;w=Symbol.for("react.module.reference");function T(ve){return!!(typeof ve=="string"||typeof ve=="function"||ve===n||ve===o||I||ve===r||ve===u||ve===p||S||ve===m||v||b||x||typeof ve=="object"&&ve!==null&&(ve.$$typeof===h||ve.$$typeof===g||ve.$$typeof===i||ve.$$typeof===s||ve.$$typeof===d||ve.$$typeof===w||ve.getModuleId!==void 0))}function P(ve){if(typeof ve=="object"&&ve!==null){var qe=ve.$$typeof;switch(qe){case e:var Ft=ve.type;switch(Ft){case n:case o:case r:case u:case p:return Ft;default:var bt=Ft&&Ft.$$typeof;switch(bt){case l:case s:case d:case h:case g:case i:return bt;default:return qe}}case t:return qe}}}var M=s,j=i,_=e,N=d,k=n,D=h,U=g,H=t,G=o,Y=r,V=u,Z=p,W=!1,se=!1;function K(ve){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(ve){return se||(se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ve){return P(ve)===s}function oe(ve){return P(ve)===i}function Q(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===e}function de(ve){return P(ve)===d}function pe(ve){return P(ve)===n}function ye(ve){return P(ve)===h}function ce(ve){return P(ve)===g}function be(ve){return P(ve)===t}function Ce(ve){return P(ve)===o}function Ee(ve){return P(ve)===r}function me(ve){return P(ve)===u}function Re(ve){return P(ve)===p}gt.ContextConsumer=M,gt.ContextProvider=j,gt.Element=_,gt.ForwardRef=N,gt.Fragment=k,gt.Lazy=D,gt.Memo=U,gt.Portal=H,gt.Profiler=G,gt.StrictMode=Y,gt.Suspense=V,gt.SuspenseList=Z,gt.isAsyncMode=K,gt.isConcurrentMode=$,gt.isContextConsumer=te,gt.isContextProvider=oe,gt.isElement=Q,gt.isForwardRef=de,gt.isFragment=pe,gt.isLazy=ye,gt.isMemo=ce,gt.isPortal=be,gt.isProfiler=Ce,gt.isStrictMode=Ee,gt.isSuspense=me,gt.isSuspenseList=Re,gt.isValidElementType=T,gt.typeOf=P}()),gt}process.env.NODE_ENV==="production"?s0.exports=dB():s0.exports=fB();var a0=s0.exports;const pB=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uy(e){const t=`${e}`.match(pB);return t&&t[1]||""}function dy(e,t=""){return e.displayName||e.name||uy(e)||t}function K8(e,t,n){const r=dy(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function fy(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case a0.ForwardRef:return K8(e,e.render,"ForwardRef");case a0.Memo:return K8(e,e.type,"memo");default:return}}}const hB=Object.freeze(Object.defineProperty({__proto__:null,default:fy,getFunctionName:uy},Symbol.toStringTag,{value:"Module"})),gB=Mo(hB),mB=Mo(FF),vB=Mo(CL);var ma=Pr;Object.defineProperty(o1,"__esModule",{value:!0});var yB=o1.default=MB;o1.shouldForwardProp=Fc;o1.systemDefaultTheme=void 0;var yr=ma(aB()),l0=ma(lB()),Z8=IB(cy),bB=cB,CB=ma(uB),xB=ma(gB),wB=ma(mB),SB=ma(vB);const AB=["ownerState"],EB=["variants"],TB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function py(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(py=function(r){return r?n:t})(e)}function IB(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=py(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function OB(e){return Object.keys(e).length===0}function PB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jB=o1.systemDefaultTheme=(0,wB.default)(),X8=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function vc({defaultTheme:e,theme:t,themeId:n}){return OB(t)?e:t[n]||t}function RB(e){return e?(t,n)=>n[e]:null}function Lc(e,t){let{ownerState:n}=t,r=(0,l0.default)(t,AB);const o=typeof e=="function"?e((0,yr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Lc(i,(0,yr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=(0,l0.default)(o,EB);return i.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props((0,yr.default)({ownerState:n},r,n)):Object.keys(d.props).forEach(p=>{(n==null?void 0:n[p])!==d.props[p]&&r[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof d.style=="function"?d.style((0,yr.default)({ownerState:n},r,n)):d.style))}),l}return o}function MB(e={}){const{themeId:t,defaultTheme:n=jB,rootShouldForwardProp:r=Fc,slotShouldForwardProp:o=Fc}=e,i=s=>(0,SB.default)((0,yr.default)({},s,{theme:vc((0,yr.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{(0,Z8.internal_processStyles)(s,P=>P.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:d,slot:u,skipVariantsResolver:p,skipSx:g,overridesResolver:h=RB(X8(u))}=l,m=(0,l0.default)(l,TB),v=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,b=g||!1;let x;process.env.NODE_ENV!=="production"&&d&&(x=`${d}-${X8(u||"Root")}`);let S=Fc;u==="Root"||u==="root"?S=r:u?S=o:PB(s)&&(S=void 0);const I=(0,Z8.default)(s,(0,yr.default)({shouldForwardProp:S,label:x},m)),w=P=>typeof P=="function"&&P.__emotion_real!==P||(0,bB.isPlainObject)(P)?M=>Lc(P,(0,yr.default)({},M,{theme:vc({theme:M.theme,defaultTheme:n,themeId:t})})):P,T=(P,...M)=>{let j=w(P);const _=M?M.map(w):[];d&&h&&_.push(D=>{const U=vc((0,yr.default)({},D,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[d]||!U.components[d].styleOverrides)return null;const H=U.components[d].styleOverrides,G={};return Object.entries(H).forEach(([Y,V])=>{G[Y]=Lc(V,(0,yr.default)({},D,{theme:U}))}),h(D,G)}),d&&!v&&_.push(D=>{var U;const H=vc((0,yr.default)({},D,{defaultTheme:n,themeId:t})),G=H==null||(U=H.components)==null||(U=U[d])==null?void 0:U.variants;return Lc({variants:G},(0,yr.default)({},D,{theme:H}))}),b||_.push(i);const N=_.length-M.length;if(Array.isArray(P)&&N>0){const D=new Array(N).fill("");j=[...P,...D],j.raw=[...P.raw,...D]}const k=I(j,..._);if(process.env.NODE_ENV!=="production"){let D;d&&(D=`${d}${(0,CB.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,xB.default)(s)})`),k.displayName=D}return s.muiName&&(k.muiName=s.muiName),k};return I.withConfig&&(T.withConfig=I.withConfig),T}}function kB(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const e2=e=>kB(e)&&e!=="classes",ge=yB({themeId:Fl,defaultTheme:J6,rootShouldForwardProp:e2});function _B(e){return Qt}function Jt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Gt(e,o,n)}),r}function DB(e){return Gt("MuiSvgIcon",e)}Jt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FB=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],LB=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ve(t)}`,`fontSize${Ve(n)}`]};return Xt(o,DB,r)},BB=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ve(n.color)}`],t[`fontSize${Ve(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,l,d,u,p,g,h,m,v;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||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,24))||"1.5rem",large:((u=e.typography)==null||(p=u.pxToRem)==null?void 0:p.call(u,35))||"2.1875rem"}[t.fontSize],color:(g=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?g:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),au=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:g,viewBox:h="0 0 24 24"}=r,m=Be(r,FB),v=B.isValidElement(o)&&o.type==="svg",b=ee({},r,{color:s,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:v}),x={};p||(x.viewBox=h);const S=LB(b);return f.jsxs(BB,ee({as:l,className:$e(S.root,i),focusable:"false",color:u,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},x,m,v&&o.props,{ownerState:b,children:[v?o.props.children:o,g?f.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(au.propTypes={children:C.node,classes:C.object,className:C.string,color:C.oneOfType([C.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),C.string]),component:C.elementType,fontSize:C.oneOfType([C.oneOf(["inherit","large","medium","small"]),C.string]),htmlColor:C.string,inheritViewBox:C.bool,shapeRendering:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),titleAccess:C.string,viewBox:C.string});au.muiName="SvgIcon";function t2(e,t){function n(r,o){return f.jsx(au,ee({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=au.muiName,B.memo(B.forwardRef(n))}const NB=t2(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 $B(e){return Gt("MuiAvatar",e)}Jt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function la(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pn(...e){return B.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{la(n,t)})},e)}function VB(e){return typeof e=="string"}function Ks(e,t,n){return e===void 0||VB(e)?t:ee({},t,{ownerState:ee({},t.ownerState,n)})}const zB={disableDefaultClasses:!1},hy=B.createContext(zB);process.env.NODE_ENV!=="production"&&(hy.displayName="ClassNameConfiguratorContext");function WB(e){const{disableDefaultClasses:t}=B.useContext(hy);return n=>t?"":e(n)}function gy(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 my(e,t,n){return typeof e=="function"?e(t,n):e}function ko(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function UB(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vy(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!UB(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const va=ko(C.element,vy);va.isRequired=ko(C.element.isRequired,vy);function HB(e){const{prototype:t={}}=e;return!!t.isReactComponent}function GB(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!HB(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const qB=ko(C.elementType,GB),YB="exact-prop: ​";function i1(e){return process.env.NODE_ENV==="production"?e:ee({},e,{[YB]: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 jo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const l3=C.oneOfType([C.func,C.object]);function c0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function KB(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 ZB(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,s)=>{const l=o||"<<anonymous>>",d=s||r;return typeof n[r]<"u"?new Error(`The ${i} \`${d}\` of \`${l}\` is deprecated. ${t}`):null}}function XB(e,t){var n,r;return B.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 nr(e){return e&&e.ownerDocument||document}function c3(e){return nr(e).defaultView||window}function QB(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?ee({},t.propTypes):null;return o=>(i,s,l,d,u,...p)=>{const g=u||s,h=n==null?void 0:n[g];if(h){const m=h(i,s,l,d,u,...p);if(m)return m}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const no=typeof window<"u"?B.useLayoutEffect:B.useEffect;let Q8=0;function JB(e){const[t,n]=B.useState(e),r=e||t;return B.useEffect(()=>{t==null&&(Q8+=1,n(`mui-${Q8}`))},[t]),r}const J8=B.useId;function u3(e){if(J8!==void 0){const t=J8();return e??t}return JB(e)}function eN(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 yy({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=B.useRef(e!==void 0),[i,s]=B.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){B.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:u}=B.useRef(t);B.useEffect(()=>{!o&&!Object.is(u,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 d=B.useCallback(u=>{o||s(u)},[]);return[l,d]}function Ao(e){const t=B.useRef(e);return no(()=>{t.current=e}),B.useRef((...n)=>(0,t.current)(...n)).current}const eg={};function tN(e,t){const n=B.useRef(eg);return n.current===eg&&(n.current=e(t)),n}const nN=[];function rN(e){B.useEffect(e,nN)}class s1{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new s1}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Zs(){const e=tN(s1.create).current;return rN(e.disposeEffect),e}let d3=!0,u0=!1;const oN=new s1,iN={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 sN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&iN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function aN(e){e.metaKey||e.altKey||e.ctrlKey||(d3=!0)}function wf(){d3=!1}function lN(){this.visibilityState==="hidden"&&u0&&(d3=!0)}function cN(e){e.addEventListener("keydown",aN,!0),e.addEventListener("mousedown",wf,!0),e.addEventListener("pointerdown",wf,!0),e.addEventListener("touchstart",wf,!0),e.addEventListener("visibilitychange",lN,!0)}function uN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return d3||sN(t)}function n2(){const e=B.useCallback(o=>{o!=null&&cN(o.ownerDocument)},[]),t=B.useRef(!1);function n(){return t.current?(u0=!0,oN.start(100,()=>{u0=!1}),t.current=!1,!0):!1}function r(o){return uN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function dN(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function fN(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 pN(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const hN=Number.isInteger||pN;function by(e,t,n,r){const o=e[t];if(o==null||!hN(o)){const i=fN(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Cy(e,t,...n){return e[t]===void 0?null:by(e,t,...n)}function d0(){return null}Cy.isRequired=by;d0.isRequired=d0;const Bc=process.env.NODE_ENV==="production"?d0:Cy;function tg(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 xy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=$e(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=ee({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=ee({},n,o,r);return m.length>0&&(b.className=m),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const s=gy(ee({},o,r)),l=tg(r),d=tg(o),u=t(s),p=$e(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=ee({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=ee({},u,n,d,l);return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:u.ref}}const gN=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function lu(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Be(e,gN),l=i?{}:my(r,o),{props:d,internalRef:u}=xy(ee({},s,{externalSlotProps:l})),p=pn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ks(n,ee({},d,{ref:p}),o)}const mN=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],vN=["component","slots","slotProps"],yN=["component"];function bN(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:l}=t,d=Be(t,mN),{component:u,slots:p={[e]:void 0},slotProps:g={[e]:void 0}}=i;Be(i,vN);const h=p[e]||r,m=my(g[e],o),v=xy(ee({className:n},d,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:b},internalRef:x}=v,S=Be(v.props,yN),I=pn(x,m==null?void 0:m.ref,t.ref),w=s?s(S):{},T=ee({},o,w),P=b,M=Ks(h,ee({},e==="root",!p[e]&&l,S,P&&{as:P},{ref:I}),T);return Object.keys(w).forEach(j=>{delete M[j]}),[h,M]}const CN=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],xN=_B(),wN=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},$B,t)},SN=ge("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:ee({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:ee({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),AN=ge("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),EN=ge(NB,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function TN({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=B.useState(!1);return B.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const wy=B.forwardRef(function(t,n){const r=xN({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:l="div",slots:d={},slotProps:u={},imgProps:p,sizes:g,src:h,srcSet:m,variant:v="circular"}=r,b=Be(r,CN);let x=null;const S=TN(ee({},p,{src:h,srcSet:m})),I=h||m,w=I&&S!=="error",T=ee({},r,{colorDefault:!w,component:l,variant:v}),P=wN(T),[M,j]=bN("img",{className:P.img,elementType:AN,externalForwardedProps:{slots:d,slotProps:{img:ee({},p,u.img)}},additionalProps:{alt:o,src:h,srcSet:m,sizes:g},ownerState:T});return w?x=f.jsx(M,ee({},j)):i||i===0?x=i:I&&o?x=o[0]:x=f.jsx(EN,{ownerState:T,className:P.fallback}),f.jsx(SN,ee({as:l,ownerState:T,className:$e(P.root,s),ref:n},b,{children:x}))});process.env.NODE_ENV!=="production"&&(wy.propTypes={alt:C.string,children:C.node,classes:C.object,className:C.string,component:C.elementType,imgProps:C.object,sizes:C.string,slotProps:C.shape({img:C.oneOfType([C.func,C.object])}),slots:C.shape({img:C.elementType}),src:C.string,srcSet:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),variant:C.oneOfType([C.oneOf(["circular","rounded","square"]),C.string])});const IN=["ownerState"],ON=["variants"],PN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jN(e){return Object.keys(e).length===0}function RN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Sf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const MN=o3(),ng=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yc({defaultTheme:e,theme:t,themeId:n}){return jN(t)?e:t[n]||t}function kN(e){return e?(t,n)=>n[e]:null}function Nc(e,t){let{ownerState:n}=t,r=Be(t,IN);const o=typeof e=="function"?e(ee({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Nc(i,ee({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=Be(o,ON);return i.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props(ee({ownerState:n},r,n)):Object.keys(d.props).forEach(p=>{(n==null?void 0:n[p])!==d.props[p]&&r[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof d.style=="function"?d.style(ee({ownerState:n},r,n)):d.style))}),l}return o}function _N(e={}){const{themeId:t,defaultTheme:n=MN,rootShouldForwardProp:r=Sf,slotShouldForwardProp:o=Sf}=e,i=s=>n1(ee({},s,{theme:yc(ee({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{Zv(s,P=>P.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:d,slot:u,skipVariantsResolver:p,skipSx:g,overridesResolver:h=kN(ng(u))}=l,m=Be(l,PN),v=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,b=g||!1;let x;process.env.NODE_ENV!=="production"&&d&&(x=`${d}-${ng(u||"Root")}`);let S=Sf;u==="Root"||u==="root"?S=r:u?S=o:RN(s)&&(S=void 0);const I=Kv(s,ee({shouldForwardProp:S,label:x},m)),w=P=>typeof P=="function"&&P.__emotion_real!==P||wo(P)?M=>Nc(P,ee({},M,{theme:yc({theme:M.theme,defaultTheme:n,themeId:t})})):P,T=(P,...M)=>{let j=w(P);const D=M?M.map(w):[];d&&h&&D.push(_=>{const U=yc(ee({},_,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[d]||!U.components[d].styleOverrides)return null;const H=U.components[d].styleOverrides,G={};return Object.entries(H).forEach(([Y,V])=>{G[Y]=Nc(V,ee({},_,{theme:U}))}),h(_,G)}),d&&!v&&D.push(_=>{var U;const H=yc(ee({},_,{defaultTheme:n,themeId:t})),G=H==null||(U=H.components)==null||(U=U[d])==null?void 0:U.variants;return Nc({variants:G},ee({},_,{theme:H}))}),b||D.push(i);const N=D.length-M.length;if(Array.isArray(P)&&N>0){const _=new Array(N).fill("");j=[...P,..._],j.raw=[...P.raw,..._]}const k=I(j,...D);if(process.env.NODE_ENV!=="production"){let _;d&&(_=`${d}${Ve(u||"")}`),_===void 0&&(_=`Styled(${fy(s)})`),k.displayName=_}return s.muiName&&(k.muiName=s.muiName),k};return I.withConfig&&(T.withConfig=I.withConfig),T}}const a1=_N();function Sy(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}].`),ny(e,t,n)}function DN(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 r2(e){if(e.type)return e;if(e.charAt(0)==="#")return r2(DN(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 d=B.useCallback(u=>{o||s(u)},[]);return[l,d]}function Ao(e){const t=B.useRef(e);return no(()=>{t.current=e}),B.useRef((...n)=>(0,t.current)(...n)).current}const eg={};function tN(e,t){const n=B.useRef(eg);return n.current===eg&&(n.current=e(t)),n}const nN=[];function rN(e){B.useEffect(e,nN)}class s1{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new s1}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Zs(){const e=tN(s1.create).current;return rN(e.disposeEffect),e}let d3=!0,u0=!1;const oN=new s1,iN={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 sN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&iN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function aN(e){e.metaKey||e.altKey||e.ctrlKey||(d3=!0)}function wf(){d3=!1}function lN(){this.visibilityState==="hidden"&&u0&&(d3=!0)}function cN(e){e.addEventListener("keydown",aN,!0),e.addEventListener("mousedown",wf,!0),e.addEventListener("pointerdown",wf,!0),e.addEventListener("touchstart",wf,!0),e.addEventListener("visibilitychange",lN,!0)}function uN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return d3||sN(t)}function n2(){const e=B.useCallback(o=>{o!=null&&cN(o.ownerDocument)},[]),t=B.useRef(!1);function n(){return t.current?(u0=!0,oN.start(100,()=>{u0=!1}),t.current=!1,!0):!1}function r(o){return uN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function dN(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function fN(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 pN(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const hN=Number.isInteger||pN;function by(e,t,n,r){const o=e[t];if(o==null||!hN(o)){const i=fN(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Cy(e,t,...n){return e[t]===void 0?null:by(e,t,...n)}function d0(){return null}Cy.isRequired=by;d0.isRequired=d0;const Bc=process.env.NODE_ENV==="production"?d0:Cy;function tg(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 xy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=$e(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=ee({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=ee({},n,o,r);return m.length>0&&(b.className=m),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const s=gy(ee({},o,r)),l=tg(r),d=tg(o),u=t(s),p=$e(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=ee({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=ee({},u,n,d,l);return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:u.ref}}const gN=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function lu(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Be(e,gN),l=i?{}:my(r,o),{props:d,internalRef:u}=xy(ee({},s,{externalSlotProps:l})),p=pn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ks(n,ee({},d,{ref:p}),o)}const mN=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],vN=["component","slots","slotProps"],yN=["component"];function bN(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:l}=t,d=Be(t,mN),{component:u,slots:p={[e]:void 0},slotProps:g={[e]:void 0}}=i;Be(i,vN);const h=p[e]||r,m=my(g[e],o),v=xy(ee({className:n},d,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:b},internalRef:x}=v,S=Be(v.props,yN),I=pn(x,m==null?void 0:m.ref,t.ref),w=s?s(S):{},T=ee({},o,w),P=b,M=Ks(h,ee({},e==="root",!p[e]&&l,S,P&&{as:P},{ref:I}),T);return Object.keys(w).forEach(j=>{delete M[j]}),[h,M]}const CN=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],xN=_B(),wN=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},$B,t)},SN=ge("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:ee({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:ee({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),AN=ge("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),EN=ge(NB,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function TN({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=B.useState(!1);return B.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const wy=B.forwardRef(function(t,n){const r=xN({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:l="div",slots:d={},slotProps:u={},imgProps:p,sizes:g,src:h,srcSet:m,variant:v="circular"}=r,b=Be(r,CN);let x=null;const S=TN(ee({},p,{src:h,srcSet:m})),I=h||m,w=I&&S!=="error",T=ee({},r,{colorDefault:!w,component:l,variant:v}),P=wN(T),[M,j]=bN("img",{className:P.img,elementType:AN,externalForwardedProps:{slots:d,slotProps:{img:ee({},p,u.img)}},additionalProps:{alt:o,src:h,srcSet:m,sizes:g},ownerState:T});return w?x=f.jsx(M,ee({},j)):i||i===0?x=i:I&&o?x=o[0]:x=f.jsx(EN,{ownerState:T,className:P.fallback}),f.jsx(SN,ee({as:l,ownerState:T,className:$e(P.root,s),ref:n},b,{children:x}))});process.env.NODE_ENV!=="production"&&(wy.propTypes={alt:C.string,children:C.node,classes:C.object,className:C.string,component:C.elementType,imgProps:C.object,sizes:C.string,slotProps:C.shape({img:C.oneOfType([C.func,C.object])}),slots:C.shape({img:C.elementType}),src:C.string,srcSet:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),variant:C.oneOfType([C.oneOf(["circular","rounded","square"]),C.string])});const IN=["ownerState"],ON=["variants"],PN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jN(e){return Object.keys(e).length===0}function RN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Sf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const MN=o3(),ng=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yc({defaultTheme:e,theme:t,themeId:n}){return jN(t)?e:t[n]||t}function kN(e){return e?(t,n)=>n[e]:null}function Nc(e,t){let{ownerState:n}=t,r=Be(t,IN);const o=typeof e=="function"?e(ee({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Nc(i,ee({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=Be(o,ON);return i.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props(ee({ownerState:n},r,n)):Object.keys(d.props).forEach(p=>{(n==null?void 0:n[p])!==d.props[p]&&r[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof d.style=="function"?d.style(ee({ownerState:n},r,n)):d.style))}),l}return o}function _N(e={}){const{themeId:t,defaultTheme:n=MN,rootShouldForwardProp:r=Sf,slotShouldForwardProp:o=Sf}=e,i=s=>n1(ee({},s,{theme:yc(ee({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{Zv(s,P=>P.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:d,slot:u,skipVariantsResolver:p,skipSx:g,overridesResolver:h=kN(ng(u))}=l,m=Be(l,PN),v=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,b=g||!1;let x;process.env.NODE_ENV!=="production"&&d&&(x=`${d}-${ng(u||"Root")}`);let S=Sf;u==="Root"||u==="root"?S=r:u?S=o:RN(s)&&(S=void 0);const I=Kv(s,ee({shouldForwardProp:S,label:x},m)),w=P=>typeof P=="function"&&P.__emotion_real!==P||wo(P)?M=>Nc(P,ee({},M,{theme:yc({theme:M.theme,defaultTheme:n,themeId:t})})):P,T=(P,...M)=>{let j=w(P);const _=M?M.map(w):[];d&&h&&_.push(D=>{const U=yc(ee({},D,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[d]||!U.components[d].styleOverrides)return null;const H=U.components[d].styleOverrides,G={};return Object.entries(H).forEach(([Y,V])=>{G[Y]=Nc(V,ee({},D,{theme:U}))}),h(D,G)}),d&&!v&&_.push(D=>{var U;const H=yc(ee({},D,{defaultTheme:n,themeId:t})),G=H==null||(U=H.components)==null||(U=U[d])==null?void 0:U.variants;return Nc({variants:G},ee({},D,{theme:H}))}),b||_.push(i);const N=_.length-M.length;if(Array.isArray(P)&&N>0){const D=new Array(N).fill("");j=[...P,...D],j.raw=[...P.raw,...D]}const k=I(j,..._);if(process.env.NODE_ENV!=="production"){let D;d&&(D=`${d}${Ve(u||"")}`),D===void 0&&(D=`Styled(${fy(s)})`),k.displayName=D}return s.muiName&&(k.muiName=s.muiName),k};return I.withConfig&&(T.withConfig=I.withConfig),T}}const a1=_N();function Sy(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}].`),ny(e,t,n)}function DN(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 r2(e){if(e.type)return e;if(e.charAt(0)==="#")return r2(DN(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().`:Ki(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.`:Ki(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Ay(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 nt(e,t){return e=r2(e),t=Sy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ay(e)}function f0(e,t){if(e=r2(e),t=Sy(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 Ay(e)}const o2=B.createContext(null);process.env.NODE_ENV!=="production"&&(o2.displayName="ThemeContext");function Ey(){const e=B.useContext(o2);return process.env.NODE_ENV!=="production"&&B.useDebugValue(e),e}const FN=typeof Symbol=="function"&&Symbol.for,LN=FN?Symbol.for("mui.nested"):"__THEME_NESTED__";function BN(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
70
  `))),n}return ee({},e,t)}function cu(e){const{children:t,theme:n}=e,r=Ey();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(`
@@ -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
- `),br.rippleVisible,c$,g0,({theme:e})=>e.transitions.easing.easeInOut,br.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,br.child,br.childLeaving,u$,g0,({theme:e})=>e.transitions.easing.easeInOut,br.childPulsate,d$,({theme:e})=>e.transitions.easing.easeInOut),Ry=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=Be(r,a$),[d,u]=B.useState([]),p=B.useRef(0),g=B.useRef(null);B.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const h=B.useRef(!1),m=Zs(),v=B.useRef(null),b=B.useRef(null),x=B.useCallback(T=>{const{pulsate:P,rippleX:M,rippleY:j,rippleSize:D,cb:N}=T;u(k=>[...k,f.jsx(p$,{classes:{ripple:$e(i.ripple,br.ripple),rippleVisible:$e(i.rippleVisible,br.rippleVisible),ripplePulsate:$e(i.ripplePulsate,br.ripplePulsate),child:$e(i.child,br.child),childLeaving:$e(i.childLeaving,br.childLeaving),childPulsate:$e(i.childPulsate,br.childPulsate)},timeout:g0,pulsate:P,rippleX:M,rippleY:j,rippleSize:D},p.current)]),p.current+=1,g.current=N},[i]),S=B.useCallback((T={},P={},M=()=>{})=>{const{pulsate:j=!1,center:D=o||P.pulsate,fakeElement:N=!1}=P;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const k=N?null:b.current,_=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,H,G;if(D||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)U=Math.round(_.width/2),H=Math.round(_.height/2);else{const{clientX:Y,clientY:V}=T.touches&&T.touches.length>0?T.touches[0]:T;U=Math.round(Y-_.left),H=Math.round(V-_.top)}if(D)G=Math.sqrt((2*_.width**2+_.height**2)/3),G%2===0&&(G+=1);else{const Y=Math.max(Math.abs((k?k.clientWidth:0)-U),U)*2+2,V=Math.max(Math.abs((k?k.clientHeight:0)-H),H)*2+2;G=Math.sqrt(Y**2+V**2)}T!=null&&T.touches?v.current===null&&(v.current=()=>{x({pulsate:j,rippleX:U,rippleY:H,rippleSize:G,cb:M})},m.start(l$,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:j,rippleX:U,rippleY:H,rippleSize:G,cb:M})},[o,x,m]),I=B.useCallback(()=>{S({},{pulsate:!0})},[S]),w=B.useCallback((T,P)=>{if(m.clear(),(T==null?void 0:T.type)==="touchend"&&v.current){v.current(),v.current=null,m.start(0,()=>{w(T,P)});return}v.current=null,u(M=>M.length>0?M.slice(1):M),g.current=P},[m]);return B.useImperativeHandle(n,()=>({pulsate:I,start:S,stop:w}),[I,S,w]),f.jsx(f$,ee({className:$e(br.root,i.root,s),ref:b},l,{children:f.jsx(a2,{component:null,exit:!0,children:d})}))});process.env.NODE_ENV!=="production"&&(Ry.propTypes={center:C.bool,classes:C.object,className:C.string});function h$(e){return Gt("MuiButtonBase",e)}const g$=Jt("MuiButtonBase",["root","disabled","focusVisible"]),m$=["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"],v$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Xt({root:["root",t&&"disabled",n&&"focusVisible"]},h$,o);return n&&r&&(s.root+=` ${r}`),s},y$=ge("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"},[`&.${g$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),h3=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:d="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:h=!1,LinkComponent:m="a",onBlur:v,onClick:b,onContextMenu:x,onDragLeave:S,onFocus:I,onFocusVisible:w,onKeyDown:T,onKeyUp:P,onMouseDown:M,onMouseLeave:j,onMouseUp:D,onTouchEnd:N,onTouchMove:k,onTouchStart:_,tabIndex:U=0,TouchRippleProps:H,touchRippleRef:G,type:Y}=r,V=Be(r,m$),Z=B.useRef(null),W=B.useRef(null),se=pn(W,G),{isFocusVisibleRef:K,onFocus:$,onBlur:te,ref:oe}=n2(),[Q,de]=B.useState(!1);u&&Q&&de(!1),B.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),Z.current.focus()}}),[]);const[pe,ye]=B.useState(!1);B.useEffect(()=>{ye(!0)},[]);const ce=pe&&!p&&!u;B.useEffect(()=>{Q&&h&&!p&&pe&&W.current.pulsate()},[p,h,Q,pe]);function be(xe,vt,Ct=g){return Ao(De=>(vt&&vt(De),!Ct&&W.current&&W.current[xe](De),!0))}const Ce=be("start",M),Ee=be("stop",x),me=be("stop",S),Re=be("stop",D),ve=be("stop",xe=>{Q&&xe.preventDefault(),j&&j(xe)}),qe=be("start",_),Ft=be("stop",N),bt=be("stop",k),st=be("stop",xe=>{te(xe),K.current===!1&&de(!1),v&&v(xe)},!1),sn=Ao(xe=>{Z.current||(Z.current=xe.currentTarget),$(xe),K.current===!0&&(de(!0),w&&w(xe)),I&&I(xe)}),mt=()=>{const xe=Z.current;return d&&d!=="button"&&!(xe.tagName==="A"&&xe.href)},Ke=B.useRef(!1),kt=Ao(xe=>{h&&!Ke.current&&Q&&W.current&&xe.key===" "&&(Ke.current=!0,W.current.stop(xe,()=>{W.current.start(xe)})),xe.target===xe.currentTarget&&mt()&&xe.key===" "&&xe.preventDefault(),T&&T(xe),xe.target===xe.currentTarget&&mt()&&xe.key==="Enter"&&!u&&(xe.preventDefault(),b&&b(xe))}),tt=Ao(xe=>{h&&xe.key===" "&&W.current&&Q&&!xe.defaultPrevented&&(Ke.current=!1,W.current.stop(xe,()=>{W.current.pulsate(xe)})),P&&P(xe),b&&xe.target===xe.currentTarget&&mt()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let ot=d;ot==="button"&&(V.href||V.to)&&(ot=m);const St={};ot==="button"?(St.type=Y===void 0?"button":Y,St.disabled=u):(!V.href&&!V.to&&(St.role="button"),u&&(St["aria-disabled"]=u));const Pe=pn(n,oe,Z);process.env.NODE_ENV!=="production"&&B.useEffect(()=>{ce&&!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
- `))},[ce]);const je=ee({},r,{centerRipple:i,component:d,disabled:u,disableRipple:p,disableTouchRipple:g,focusRipple:h,tabIndex:U,focusVisible:Q}),Ie=v$(je);return f.jsxs(y$,ee({as:ot,className:$e(Ie.root,l),ownerState:je,onBlur:st,onClick:b,onContextMenu:Ee,onFocus:sn,onKeyDown:kt,onKeyUp:tt,onMouseDown:Ce,onMouseLeave:ve,onMouseUp:Re,onDragLeave:me,onTouchEnd:Ft,onTouchMove:bt,onTouchStart:qe,ref:Pe,tabIndex:u?-1:U,type:Y},St,V,{children:[s,ce?f.jsx(Ry,ee({ref:se,center:i},H)):null]}))});process.env.NODE_ENV!=="production"&&(h3.propTypes={action:l3,centerRipple:C.bool,children:C.node,classes:C.object,className:C.string,component:qB,disabled:C.bool,disableRipple:C.bool,disableTouchRipple:C.bool,focusRipple:C.bool,focusVisibleClassName:C.string,href:C.any,LinkComponent:C.elementType,onBlur:C.func,onClick:C.func,onContextMenu:C.func,onDragLeave:C.func,onFocus:C.func,onFocusVisible:C.func,onKeyDown:C.func,onKeyUp:C.func,onMouseDown:C.func,onMouseLeave:C.func,onMouseUp:C.func,onTouchEnd:C.func,onTouchMove:C.func,onTouchStart:C.func,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),tabIndex:C.number,TouchRippleProps:C.object,touchRippleRef:C.oneOfType([C.func,C.shape({current:C.shape({pulsate:C.func.isRequired,start:C.func.isRequired,stop:C.func.isRequired})})]),type:C.oneOfType([C.oneOf(["button","reset","submit"]),C.string])});const b$=["slots","slotProps"],C$=ge(h3)(({theme:e})=>ee({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":ee({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":ee({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:L8(e.palette.grey[200],.12)}:{backgroundColor:L8(e.palette.grey[600],.12)})})),x$=ge(QN)({width:24,height:16});function My(e){const{slots:t={},slotProps:n={}}=e,r=Be(e,b$),o=e;return f.jsx("li",{children:f.jsx(C$,ee({focusRipple:!0},r,{ownerState:o,children:f.jsx(x$,ee({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(My.propTypes={slotProps:C.shape({collapsedIcon:C.oneOfType([C.func,C.object])}),slots:C.shape({CollapsedIcon:C.elementType}),sx:C.object});function w$(e){return Gt("MuiBreadcrumbs",e)}const S$=Jt("MuiBreadcrumbs",["root","ol","li","separator"]),A$=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],E$=e=>{const{classes:t}=e;return Xt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},w$,t)},T$=ge(f3,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${S$.li}`]:t.li},t.root]})({}),I$=ge("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),O$=ge("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function P$(e,t,n,r){return e.reduce((o,i,s)=>(s<e.length-1?o=o.concat(i,f.jsx(O$,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):o.push(i),o),[])}const $c=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:s="nav",slots:l={},slotProps:d={},expandText:u="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:g=1,maxItems:h=8,separator:m="/"}=r,v=Be(r,A$),[b,x]=B.useState(!1),S=ee({},r,{component:s,expanded:b,expandText:u,itemsAfterCollapse:p,itemsBeforeCollapse:g,maxItems:h,separator:m}),I=E$(S),w=lu({elementType:l.CollapsedIcon,externalSlotProps:d.collapsedIcon,ownerState:S}),T=B.useRef(null),P=j=>{const D=()=>{x(!0);const N=T.current.querySelector("a[href],button,[tabindex]");N&&N.focus()};return g+p>=j.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={${h}}`].join(`
147
- `)),j):[...j.slice(0,g),f.jsx(My,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:D},"ellipsis"),...j.slice(j.length-p,j.length)]},M=B.Children.toArray(o).filter(j=>(process.env.NODE_ENV!=="production"&&a0.isFragment(j)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
148
- `)),B.isValidElement(j))).map((j,D)=>f.jsx("li",{className:I.li,children:j},`child-${D}`));return f.jsx(T$,ee({ref:n,component:s,color:"text.secondary",className:$e(I.root,i),ownerState:S},v,{children:f.jsx(I$,{className:I.ol,ref:T,ownerState:S,children:P$(b||h&&M.length<=h?M:P(M),I.separator,m,S)})}))});process.env.NODE_ENV!=="production"&&($c.propTypes={children:C.node,classes:C.object,className:C.string,component:C.elementType,expandText:C.string,itemsAfterCollapse:Bc,itemsBeforeCollapse:Bc,maxItems:Bc,separator:C.node,slotProps:C.shape({collapsedIcon:C.oneOfType([C.func,C.object])}),slots:C.shape({CollapsedIcon:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function j$({id:e,title:t,icon:n,url:r,last:o}){const i=n||He.ApartmentOutlined;return f.jsxs(E.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 ky({home:e="Home",card:t,divider:n=!0,icon:r,icons:o,maxItems:i,navigation:s,rightAlign:l,separator:d,title:u,titleBottom:p,sx:g,breadcrumbs:h,mode:m="navigation",...v}){const b=wt(),x=ut.useLocation(),[S,I]=O.useState(),[w,T]=O.useState(),P=x.pathname,M={marginRight:b.spacing(.75),marginTop:`-${b.spacing(.25)}`,width:"1rem",height:"1rem",color:b.palette.secondary.main};function j(Z){Z.children&&Z.children.filter(W=>(W.type&&W.type==="collapse"?(j(W),W.url===P&&(I(W),T(W))):W.type&&W.type==="item"&&P.includes(W.url)&&(I(Z),T(W)),!1))}O.useEffect(()=>{var Z;(Z=s==null?void 0:s.items)==null||Z.map(W=>(W.type&&W.type==="group"&&j(W),!1))});const D=d,N=d?f.jsx(D,{style:{fontSize:"0.75rem",marginTop:2}}):"/",k={mb:2,bgcolor:t===!1?"transparent":"inherit",...g,[b.breakpoints.down("sm")]:{mb:1}};let _,U,H=f.jsx(E.Typography,{}),G="",Y,V;return m==="breadcrumbs"?f.jsxs(Nn,{border:t,sx:k,...v,content:t,shadow:"none",children:[f.jsxs(E.Grid,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[u&&!p?f.jsx(E.Grid,{item:!0,children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null,f.jsx(E.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:N,sx:{[b.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(E.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(He.HomeOutlined,{style:M}):null,r&&!o?f.jsx(He.HomeFilled,{style:{...M,marginRight:0}}):null,!r||o?e:null]}),h.map(j$)]})}),u&&p?f.jsx(E.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null]}),t===!1&&n!==!1&&f.jsx(E.Divider,{sx:{mt:2}})]}):(S&&S.type==="collapse"&&S.breadcrumbs===!0&&(Y=S.icon?S.icon:He.ApartmentOutlined,_=f.jsxs(E.Typography,{component:ut.Link,to:(w==null?void 0:w.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[o?f.jsx(Y,{style:M}):null,S.title]}),H=f.jsxs(Nn,{border:t,sx:k,...v,content:t,shadow:"none",children:[f.jsxs(E.Grid,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[f.jsx(E.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:N,children:[e!==!1&&f.jsxs(E.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(He.HomeOutlined,{style:M}):null,r&&!o?f.jsx(He.HomeFilled,{style:{...M,marginRight:0}}):null,!r||o?e:null]}),_]})}),u&&p?f.jsx(E.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(E.Typography,{variant:"h2",children:S.title})}):null]}),t===!1&&n!==!1&&f.jsx(E.Divider,{sx:{mt:2}})]})),w&&w.type==="item"&&(G=w.title,V=w.icon?w.icon:He.ApartmentOutlined,U=f.jsxs(E.Typography,{variant:"subtitle1",color:"textPrimary",component:ut.Link,to:w.url,sx:{textDecoration:"none"},children:[o?f.jsx(V,{style:M}):null,G]}),w.breadcrumbs!==!1&&(H=f.jsxs(Nn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...g,[b.breakpoints.down("sm")]:{mb:1}},...v,content:t,shadow:"none",children:[f.jsxs(E.Grid,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[u&&!p?f.jsx(E.Grid,{item:!0,children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null,f.jsx(E.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:N,children:[e!==!1&&f.jsxs(E.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(He.HomeOutlined,{style:M}):null,r&&!o?f.jsx(He.HomeFilled,{style:{...M,marginRight:0}}):null,!r||o?e:null]}),_,U]})}),u&&p?f.jsx(E.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null]}),t===!1&&n!==!1&&f.jsx(E.Divider,{sx:{mt:2}})]}))),H)}function l2({color:e,size:t,variant:n,sx:r}){const o=wt(),i=hn(o,e),{main:s}=i;return f.jsx(E.Box,{component:"span",sx:{width:t||8,height:t||8,borderRadius:"50%",bgcolor:n==="outlined"?"":s,...n==="outlined"&&{border:`1px solid ${s}`},...r}})}function ya(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 R$(e){return Gt("MuiIconButton",e)}const M$=Jt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),k$=["edge","children","className","color","disabled","disableFocusRipple","size"],_$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Ve(r)}`,o&&`edge${Ve(o)}`,`size${Ve(i)}`]};return Xt(s,R$,t)},D$=ge(h3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ve(n.color)}`],n.edge&&t[`edge${Ve(n.edge)}`],t[`size${Ve(n.size)}`]]}})(({theme:e,ownerState:t})=>ee({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})`:Xr(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 ee({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ee({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":ee({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(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)},{[`&.${M$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),c2=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:d=!1,disableFocusRipple:u=!1,size:p="medium"}=r,g=Be(r,k$),h=ee({},r,{edge:o,color:l,disabled:d,disableFocusRipple:u,size:p}),m=_$(h);return f.jsx(D$,ee({className:$e(m.root,s),centerRipple:!0,focusRipple:!u,disabled:d,ref:n},g,{ownerState:h,children:i}))});process.env.NODE_ENV!=="production"&&(c2.propTypes={children:ko(C.node,e=>B.Children.toArray(e.children).some(n=>B.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(`
145
+ `),br.rippleVisible,c$,g0,({theme:e})=>e.transitions.easing.easeInOut,br.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,br.child,br.childLeaving,u$,g0,({theme:e})=>e.transitions.easing.easeInOut,br.childPulsate,d$,({theme:e})=>e.transitions.easing.easeInOut),Ry=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=Be(r,a$),[d,u]=B.useState([]),p=B.useRef(0),g=B.useRef(null);B.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const h=B.useRef(!1),m=Zs(),v=B.useRef(null),b=B.useRef(null),x=B.useCallback(T=>{const{pulsate:P,rippleX:M,rippleY:j,rippleSize:_,cb:N}=T;u(k=>[...k,f.jsx(p$,{classes:{ripple:$e(i.ripple,br.ripple),rippleVisible:$e(i.rippleVisible,br.rippleVisible),ripplePulsate:$e(i.ripplePulsate,br.ripplePulsate),child:$e(i.child,br.child),childLeaving:$e(i.childLeaving,br.childLeaving),childPulsate:$e(i.childPulsate,br.childPulsate)},timeout:g0,pulsate:P,rippleX:M,rippleY:j,rippleSize:_},p.current)]),p.current+=1,g.current=N},[i]),S=B.useCallback((T={},P={},M=()=>{})=>{const{pulsate:j=!1,center:_=o||P.pulsate,fakeElement:N=!1}=P;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const k=N?null:b.current,D=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,H,G;if(_||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)U=Math.round(D.width/2),H=Math.round(D.height/2);else{const{clientX:Y,clientY:V}=T.touches&&T.touches.length>0?T.touches[0]:T;U=Math.round(Y-D.left),H=Math.round(V-D.top)}if(_)G=Math.sqrt((2*D.width**2+D.height**2)/3),G%2===0&&(G+=1);else{const Y=Math.max(Math.abs((k?k.clientWidth:0)-U),U)*2+2,V=Math.max(Math.abs((k?k.clientHeight:0)-H),H)*2+2;G=Math.sqrt(Y**2+V**2)}T!=null&&T.touches?v.current===null&&(v.current=()=>{x({pulsate:j,rippleX:U,rippleY:H,rippleSize:G,cb:M})},m.start(l$,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:j,rippleX:U,rippleY:H,rippleSize:G,cb:M})},[o,x,m]),I=B.useCallback(()=>{S({},{pulsate:!0})},[S]),w=B.useCallback((T,P)=>{if(m.clear(),(T==null?void 0:T.type)==="touchend"&&v.current){v.current(),v.current=null,m.start(0,()=>{w(T,P)});return}v.current=null,u(M=>M.length>0?M.slice(1):M),g.current=P},[m]);return B.useImperativeHandle(n,()=>({pulsate:I,start:S,stop:w}),[I,S,w]),f.jsx(f$,ee({className:$e(br.root,i.root,s),ref:b},l,{children:f.jsx(a2,{component:null,exit:!0,children:d})}))});process.env.NODE_ENV!=="production"&&(Ry.propTypes={center:C.bool,classes:C.object,className:C.string});function h$(e){return Gt("MuiButtonBase",e)}const g$=Jt("MuiButtonBase",["root","disabled","focusVisible"]),m$=["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"],v$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Xt({root:["root",t&&"disabled",n&&"focusVisible"]},h$,o);return n&&r&&(s.root+=` ${r}`),s},y$=ge("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"},[`&.${g$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),h3=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:d="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:h=!1,LinkComponent:m="a",onBlur:v,onClick:b,onContextMenu:x,onDragLeave:S,onFocus:I,onFocusVisible:w,onKeyDown:T,onKeyUp:P,onMouseDown:M,onMouseLeave:j,onMouseUp:_,onTouchEnd:N,onTouchMove:k,onTouchStart:D,tabIndex:U=0,TouchRippleProps:H,touchRippleRef:G,type:Y}=r,V=Be(r,m$),Z=B.useRef(null),W=B.useRef(null),se=pn(W,G),{isFocusVisibleRef:K,onFocus:$,onBlur:te,ref:oe}=n2(),[Q,de]=B.useState(!1);u&&Q&&de(!1),B.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),Z.current.focus()}}),[]);const[pe,ye]=B.useState(!1);B.useEffect(()=>{ye(!0)},[]);const ce=pe&&!p&&!u;B.useEffect(()=>{Q&&h&&!p&&pe&&W.current.pulsate()},[p,h,Q,pe]);function be(xe,vt,Ct=g){return Ao(De=>(vt&&vt(De),!Ct&&W.current&&W.current[xe](De),!0))}const Ce=be("start",M),Ee=be("stop",x),me=be("stop",S),Re=be("stop",_),ve=be("stop",xe=>{Q&&xe.preventDefault(),j&&j(xe)}),qe=be("start",D),Ft=be("stop",N),bt=be("stop",k),st=be("stop",xe=>{te(xe),K.current===!1&&de(!1),v&&v(xe)},!1),sn=Ao(xe=>{Z.current||(Z.current=xe.currentTarget),$(xe),K.current===!0&&(de(!0),w&&w(xe)),I&&I(xe)}),mt=()=>{const xe=Z.current;return d&&d!=="button"&&!(xe.tagName==="A"&&xe.href)},Ke=B.useRef(!1),kt=Ao(xe=>{h&&!Ke.current&&Q&&W.current&&xe.key===" "&&(Ke.current=!0,W.current.stop(xe,()=>{W.current.start(xe)})),xe.target===xe.currentTarget&&mt()&&xe.key===" "&&xe.preventDefault(),T&&T(xe),xe.target===xe.currentTarget&&mt()&&xe.key==="Enter"&&!u&&(xe.preventDefault(),b&&b(xe))}),tt=Ao(xe=>{h&&xe.key===" "&&W.current&&Q&&!xe.defaultPrevented&&(Ke.current=!1,W.current.stop(xe,()=>{W.current.pulsate(xe)})),P&&P(xe),b&&xe.target===xe.currentTarget&&mt()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let ot=d;ot==="button"&&(V.href||V.to)&&(ot=m);const St={};ot==="button"?(St.type=Y===void 0?"button":Y,St.disabled=u):(!V.href&&!V.to&&(St.role="button"),u&&(St["aria-disabled"]=u));const Pe=pn(n,oe,Z);process.env.NODE_ENV!=="production"&&B.useEffect(()=>{ce&&!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
+ `))},[ce]);const je=ee({},r,{centerRipple:i,component:d,disabled:u,disableRipple:p,disableTouchRipple:g,focusRipple:h,tabIndex:U,focusVisible:Q}),Ie=v$(je);return f.jsxs(y$,ee({as:ot,className:$e(Ie.root,l),ownerState:je,onBlur:st,onClick:b,onContextMenu:Ee,onFocus:sn,onKeyDown:kt,onKeyUp:tt,onMouseDown:Ce,onMouseLeave:ve,onMouseUp:Re,onDragLeave:me,onTouchEnd:Ft,onTouchMove:bt,onTouchStart:qe,ref:Pe,tabIndex:u?-1:U,type:Y},St,V,{children:[s,ce?f.jsx(Ry,ee({ref:se,center:i},H)):null]}))});process.env.NODE_ENV!=="production"&&(h3.propTypes={action:l3,centerRipple:C.bool,children:C.node,classes:C.object,className:C.string,component:qB,disabled:C.bool,disableRipple:C.bool,disableTouchRipple:C.bool,focusRipple:C.bool,focusVisibleClassName:C.string,href:C.any,LinkComponent:C.elementType,onBlur:C.func,onClick:C.func,onContextMenu:C.func,onDragLeave:C.func,onFocus:C.func,onFocusVisible:C.func,onKeyDown:C.func,onKeyUp:C.func,onMouseDown:C.func,onMouseLeave:C.func,onMouseUp:C.func,onTouchEnd:C.func,onTouchMove:C.func,onTouchStart:C.func,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),tabIndex:C.number,TouchRippleProps:C.object,touchRippleRef:C.oneOfType([C.func,C.shape({current:C.shape({pulsate:C.func.isRequired,start:C.func.isRequired,stop:C.func.isRequired})})]),type:C.oneOfType([C.oneOf(["button","reset","submit"]),C.string])});const b$=["slots","slotProps"],C$=ge(h3)(({theme:e})=>ee({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":ee({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":ee({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:L8(e.palette.grey[200],.12)}:{backgroundColor:L8(e.palette.grey[600],.12)})})),x$=ge(QN)({width:24,height:16});function My(e){const{slots:t={},slotProps:n={}}=e,r=Be(e,b$),o=e;return f.jsx("li",{children:f.jsx(C$,ee({focusRipple:!0},r,{ownerState:o,children:f.jsx(x$,ee({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(My.propTypes={slotProps:C.shape({collapsedIcon:C.oneOfType([C.func,C.object])}),slots:C.shape({CollapsedIcon:C.elementType}),sx:C.object});function w$(e){return Gt("MuiBreadcrumbs",e)}const S$=Jt("MuiBreadcrumbs",["root","ol","li","separator"]),A$=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],E$=e=>{const{classes:t}=e;return Xt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},w$,t)},T$=ge(f3,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${S$.li}`]:t.li},t.root]})({}),I$=ge("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),O$=ge("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function P$(e,t,n,r){return e.reduce((o,i,s)=>(s<e.length-1?o=o.concat(i,f.jsx(O$,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):o.push(i),o),[])}const $c=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:s="nav",slots:l={},slotProps:d={},expandText:u="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:g=1,maxItems:h=8,separator:m="/"}=r,v=Be(r,A$),[b,x]=B.useState(!1),S=ee({},r,{component:s,expanded:b,expandText:u,itemsAfterCollapse:p,itemsBeforeCollapse:g,maxItems:h,separator:m}),I=E$(S),w=lu({elementType:l.CollapsedIcon,externalSlotProps:d.collapsedIcon,ownerState:S}),T=B.useRef(null),P=j=>{const _=()=>{x(!0);const N=T.current.querySelector("a[href],button,[tabindex]");N&&N.focus()};return g+p>=j.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={${h}}`].join(`
147
+ `)),j):[...j.slice(0,g),f.jsx(My,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:_},"ellipsis"),...j.slice(j.length-p,j.length)]},M=B.Children.toArray(o).filter(j=>(process.env.NODE_ENV!=="production"&&a0.isFragment(j)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
148
+ `)),B.isValidElement(j))).map((j,_)=>f.jsx("li",{className:I.li,children:j},`child-${_}`));return f.jsx(T$,ee({ref:n,component:s,color:"text.secondary",className:$e(I.root,i),ownerState:S},v,{children:f.jsx(I$,{className:I.ol,ref:T,ownerState:S,children:P$(b||h&&M.length<=h?M:P(M),I.separator,m,S)})}))});process.env.NODE_ENV!=="production"&&($c.propTypes={children:C.node,classes:C.object,className:C.string,component:C.elementType,expandText:C.string,itemsAfterCollapse:Bc,itemsBeforeCollapse:Bc,maxItems:Bc,separator:C.node,slotProps:C.shape({collapsedIcon:C.oneOfType([C.func,C.object])}),slots:C.shape({CollapsedIcon:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function j$({id:e,title:t,icon:n,url:r,last:o}){const i=n||He.ApartmentOutlined;return f.jsxs(E.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 ky({home:e="Home",card:t,divider:n=!0,icon:r,icons:o,maxItems:i,navigation:s,rightAlign:l,separator:d,title:u,titleBottom:p,sx:g,breadcrumbs:h,mode:m="navigation",...v}){const b=wt(),x=ut.useLocation(),[S,I]=O.useState(),[w,T]=O.useState(),P=x.pathname,M={marginRight:b.spacing(.75),marginTop:`-${b.spacing(.25)}`,width:"1rem",height:"1rem",color:b.palette.secondary.main};function j(Z){Z.children&&Z.children.filter(W=>(W.type&&W.type==="collapse"?(j(W),W.url===P&&(I(W),T(W))):W.type&&W.type==="item"&&P.includes(W.url)&&(I(Z),T(W)),!1))}O.useEffect(()=>{var Z;(Z=s==null?void 0:s.items)==null||Z.map(W=>(W.type&&W.type==="group"&&j(W),!1))});const _=d,N=d?f.jsx(_,{style:{fontSize:"0.75rem",marginTop:2}}):"/",k={mb:2,bgcolor:t===!1?"transparent":"inherit",...g,[b.breakpoints.down("sm")]:{mb:1}};let D,U,H=f.jsx(E.Typography,{}),G="",Y,V;return m==="breadcrumbs"?f.jsxs(Nn,{border:t,sx:k,...v,content:t,shadow:"none",children:[f.jsxs(E.Grid,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[u&&!p?f.jsx(E.Grid,{item:!0,children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null,f.jsx(E.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:N,sx:{[b.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(E.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(He.HomeOutlined,{style:M}):null,r&&!o?f.jsx(He.HomeFilled,{style:{...M,marginRight:0}}):null,!r||o?e:null]}),h.map(j$)]})}),u&&p?f.jsx(E.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null]}),t===!1&&n!==!1&&f.jsx(E.Divider,{sx:{mt:2}})]}):(S&&S.type==="collapse"&&S.breadcrumbs===!0&&(Y=S.icon?S.icon:He.ApartmentOutlined,D=f.jsxs(E.Typography,{component:ut.Link,to:(w==null?void 0:w.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[o?f.jsx(Y,{style:M}):null,S.title]}),H=f.jsxs(Nn,{border:t,sx:k,...v,content:t,shadow:"none",children:[f.jsxs(E.Grid,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[f.jsx(E.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:N,children:[e!==!1&&f.jsxs(E.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(He.HomeOutlined,{style:M}):null,r&&!o?f.jsx(He.HomeFilled,{style:{...M,marginRight:0}}):null,!r||o?e:null]}),D]})}),u&&p?f.jsx(E.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(E.Typography,{variant:"h2",children:S.title})}):null]}),t===!1&&n!==!1&&f.jsx(E.Divider,{sx:{mt:2}})]})),w&&w.type==="item"&&(G=w.title,V=w.icon?w.icon:He.ApartmentOutlined,U=f.jsxs(E.Typography,{variant:"subtitle1",color:"textPrimary",component:ut.Link,to:w.url,sx:{textDecoration:"none"},children:[o?f.jsx(V,{style:M}):null,G]}),w.breadcrumbs!==!1&&(H=f.jsxs(Nn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...g,[b.breakpoints.down("sm")]:{mb:1}},...v,content:t,shadow:"none",children:[f.jsxs(E.Grid,{container:!0,direction:l?"row":"column",justifyContent:l?"space-between":"flex-start",alignItems:l?"center":"flex-start",spacing:1,children:[u&&!p?f.jsx(E.Grid,{item:!0,children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null,f.jsx(E.Grid,{item:!0,children:f.jsxs($c,{"aria-label":"breadcrumb",maxItems:i||8,separator:N,children:[e!==!1&&f.jsxs(E.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(He.HomeOutlined,{style:M}):null,r&&!o?f.jsx(He.HomeFilled,{style:{...M,marginRight:0}}):null,!r||o?e:null]}),D,U]})}),u&&p?f.jsx(E.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(E.Typography,{variant:"h2",children:w.title})}):null]}),t===!1&&n!==!1&&f.jsx(E.Divider,{sx:{mt:2}})]}))),H)}function l2({color:e,size:t,variant:n,sx:r}){const o=wt(),i=hn(o,e),{main:s}=i;return f.jsx(E.Box,{component:"span",sx:{width:t||8,height:t||8,borderRadius:"50%",bgcolor:n==="outlined"?"":s,...n==="outlined"&&{border:`1px solid ${s}`},...r}})}function ya(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 R$(e){return Gt("MuiIconButton",e)}const M$=Jt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),k$=["edge","children","className","color","disabled","disableFocusRipple","size"],_$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Ve(r)}`,o&&`edge${Ve(o)}`,`size${Ve(i)}`]};return Xt(s,R$,t)},D$=ge(h3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ve(n.color)}`],n.edge&&t[`edge${Ve(n.edge)}`],t[`size${Ve(n.size)}`]]}})(({theme:e,ownerState:t})=>ee({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})`:Xr(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 ee({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ee({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":ee({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(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)},{[`&.${M$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),c2=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:d=!1,disableFocusRipple:u=!1,size:p="medium"}=r,g=Be(r,k$),h=ee({},r,{edge:o,color:l,disabled:d,disableFocusRipple:u,size:p}),m=_$(h);return f.jsx(D$,ee({className:$e(m.root,s),centerRipple:!0,focusRipple:!u,disabled:d,ref:n},g,{ownerState:h,children:i}))});process.env.NODE_ENV!=="production"&&(c2.propTypes={children:ko(C.node,e=>B.Children.toArray(e.children).some(n=>B.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
149
  `)):null),classes:C.object,className:C.string,color:C.oneOfType([C.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),C.string]),disabled:C.bool,disableFocusRipple:C.bool,disableRipple:C.bool,edge:C.oneOf(["end","start",!1]),size:C.oneOfType([C.oneOf(["small","medium","large"]),C.string]),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function F$({variant:e,theme:t,color:n}){const r=hn(t,n),{lighter:o,light:i,dark:s,main:l,contrastText:d}=r,u=`${n}Button`,p=ya(t,u),g={"&::after":{boxShadow:`0 0 6px 6px ${nt(l,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${nt(l,.9)}`},"&:focus-visible":{outline:`2px solid ${s}`,outlineOffset:2}};switch(e){case"contained":return{color:d,backgroundColor:l,"&:hover":{backgroundColor:s},...g};case"light":return{color:l,backgroundColor:o,"&:hover":{backgroundColor:i},...g};case"shadow":return{boxShadow:p,color:d,backgroundColor:l,"&:hover":{boxShadow:"none",backgroundColor:s},...g};case"outlined":return{"&:hover":{backgroundColor:"transparent",color:s,borderColor:s},...g};case"dashed":return{backgroundColor:o,"&:hover":{color:s,borderColor:s},...g};case"text":default:return{"&:hover":{color:s,backgroundColor:o},...g}}}const L$=ge(c2,{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})})),ba=O.forwardRef(({variant:e="text",shape:t="square",children:n,color:r="primary",...o},i)=>{const s=wt();return f.jsx(L$,{ref:i,disableRipple:!0,variant:e,shape:t,theme:s,color:r,...o,children:n})}),B$={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
- `)),Jv.configure(e)}},N$=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ve,createChainedFunction:c0,createSvgIcon:t2,debounce:KB,deprecatedPropType:ZB,isMuiElement:XB,ownerDocument:nr,ownerWindow:c3,requirePropFactory:QB,setRef:la,unstable_ClassNameGenerator:B$,unstable_useEnhancedEffect:no,unstable_useId:u3,unsupportedProp:eN,useControlled:yy,useEventCallback:Ao,useForkRef:pn,useIsFocusVisible:n2},Symbol.toStringTag,{value:"Module"}));function $$(e){return typeof e=="string"}function V$(e,t,n){return e===void 0||$$(e)?t:ee({},t,{ownerState:ee({},t.ownerState,n)})}const z$={disableDefaultClasses:!1},W$=B.createContext(z$);function U$(e){const{disableDefaultClasses:t}=B.useContext(W$);return n=>t?"":e(n)}function H$(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 G$(e,t,n){return typeof e=="function"?e(t,n):e}function pg(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 q$(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=$e(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),v=ee({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=ee({},n,o,r);return m.length>0&&(b.className=m),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const s=H$(ee({},o,r)),l=pg(r),d=pg(o),u=t(s),p=$e(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=ee({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=ee({},u,n,d,l);return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:u.ref}}const Y$=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function K$(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Be(e,Y$),l=i?{}:G$(r,o),{props:d,internalRef:u}=q$(ee({},s,{externalSlotProps:l})),p=pn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return V$(n,ee({},d,{ref:p}),o)}var $n="top",Er="bottom",Tr="right",Vn="left",u2="auto",l1=[$n,Er,Tr,Vn],ca="start",Ll="end",Z$="clippingParents",_y="viewport",rl="popper",X$="reference",hg=l1.reduce(function(e,t){return e.concat([t+"-"+ca,t+"-"+Ll])},[]),Dy=[].concat(l1,[u2]).reduce(function(e,t){return e.concat([t,t+"-"+ca,t+"-"+Ll])},[]),Q$="beforeRead",J$="read",eV="afterRead",tV="beforeMain",nV="main",rV="afterMain",oV="beforeWrite",iV="write",sV="afterWrite",aV=[Q$,J$,eV,tV,nV,rV,oV,iV,sV];function ro(e){return e?(e.nodeName||"").toLowerCase():null}function or(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zi(e){var t=or(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=or(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function d2(e){if(typeof ShadowRoot>"u")return!1;var t=or(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lV(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];!wr(i)||!ro(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function cV(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(d,u){return d[u]="",d},{});!wr(o)||!ro(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(d){o.removeAttribute(d)}))})}}const uV={name:"applyStyles",enabled:!0,phase:"write",fn:lV,effect:cV,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Gi=Math.max,pu=Math.min,ua=Math.round;function m0(){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 Fy(){return!/^((?!chrome|android).)*safari/i.test(m0())}function da(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wr(e)&&(o=e.offsetWidth>0&&ua(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ua(r.height)/e.offsetHeight||1);var s=Zi(e)?or(e):window,l=s.visualViewport,d=!Fy()&&n,u=(r.left+(d&&l?l.offsetLeft:0))/o,p=(r.top+(d&&l?l.offsetTop:0))/i,g=r.width/o,h=r.height/i;return{width:g,height:h,top:p,right:u+g,bottom:p+h,left:u,x:u,y:p}}function f2(e){var t=da(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 Ly(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&d2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return or(e).getComputedStyle(e)}function dV(e){return["table","td","th"].indexOf(ro(e))>=0}function pi(e){return((Zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function g3(e){return ro(e)==="html"?e:e.assignedSlot||e.parentNode||(d2(e)?e.host:null)||pi(e)}function gg(e){return!wr(e)||Ro(e).position==="fixed"?null:e.offsetParent}function fV(e){var t=/firefox/i.test(m0()),n=/Trident/i.test(m0());if(n&&wr(e)){var r=Ro(e);if(r.position==="fixed")return null}var o=g3(e);for(d2(o)&&(o=o.host);wr(o)&&["html","body"].indexOf(ro(o))<0;){var i=Ro(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 c1(e){for(var t=or(e),n=gg(e);n&&dV(n)&&Ro(n).position==="static";)n=gg(n);return n&&(ro(n)==="html"||ro(n)==="body"&&Ro(n).position==="static")?t:n||fV(e)||t}function p2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bl(e,t,n){return Gi(e,pu(t,n))}function pV(e,t,n){var r=bl(e,t,n);return r>n?n:r}function By(){return{top:0,right:0,bottom:0,left:0}}function Ny(e){return Object.assign({},By(),e)}function $y(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Ny(typeof t!="number"?t:$y(t,l1))};function gV(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=to(n.placement),d=p2(l),u=[Vn,Tr].indexOf(l)>=0,p=u?"height":"width";if(!(!i||!s)){var g=hV(o.padding,n),h=f2(i),m=d==="y"?$n:Vn,v=d==="y"?Er:Tr,b=n.rects.reference[p]+n.rects.reference[d]-s[d]-n.rects.popper[p],x=s[d]-n.rects.reference[d],S=c1(i),I=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-x/2,T=g[m],P=I-h[p]-g[v],M=I/2-h[p]/2+w,j=bl(T,M,P),D=d;n.modifiersData[r]=(t={},t[D]=j,t.centerOffset=j-M,t)}}function mV(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)||Ly(t.elements.popper,o)&&(t.elements.arrow=o))}const vV={name:"arrow",enabled:!0,phase:"main",fn:gV,effect:mV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fa(e){return e.split("-")[1]}var yV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ua(n*o)/o||0,y:ua(r*o)/o||0}}function mg(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,g=e.isFixed,h=s.x,m=h===void 0?0:h,v=s.y,b=v===void 0?0:v,x=typeof p=="function"?p({x:m,y:b}):{x:m,y:b};m=x.x,b=x.y;var S=s.hasOwnProperty("x"),I=s.hasOwnProperty("y"),w=Vn,T=$n,P=window;if(u){var M=c1(n),j="clientHeight",D="clientWidth";if(M===or(n)&&(M=pi(n),Ro(M).position!=="static"&&l==="absolute"&&(j="scrollHeight",D="scrollWidth")),M=M,o===$n||(o===Vn||o===Tr)&&i===Ll){T=Er;var N=g&&M===P&&P.visualViewport?P.visualViewport.height:M[j];b-=N-r.height,b*=d?1:-1}if(o===Vn||(o===$n||o===Er)&&i===Ll){w=Tr;var k=g&&M===P&&P.visualViewport?P.visualViewport.width:M[D];m-=k-r.width,m*=d?1:-1}}var _=Object.assign({position:l},u&&yV),U=p===!0?bV({x:m,y:b},or(n)):{x:m,y:b};if(m=U.x,b=U.y,d){var H;return Object.assign({},_,(H={},H[T]=I?"0":"",H[w]=S?"0":"",H.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",H))}return Object.assign({},_,(t={},t[T]=I?b+"px":"",t[w]=S?m+"px":"",t.transform="",t))}function CV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,u={placement:to(t.placement),variation:fa(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,mg(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mg(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CV,data:{}};var bc={passive:!0};function wV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,d=or(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(p){p.addEventListener("scroll",n.update,bc)}),l&&d.addEventListener("resize",n.update,bc),function(){i&&u.forEach(function(p){p.removeEventListener("scroll",n.update,bc)}),l&&d.removeEventListener("resize",n.update,bc)}}const SV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wV,data:{}};var AV={left:"right",right:"left",bottom:"top",top:"bottom"};function Vc(e){return e.replace(/left|right|bottom|top/g,function(t){return AV[t]})}var EV={start:"end",end:"start"};function vg(e){return e.replace(/start|end/g,function(t){return EV[t]})}function h2(e){var t=or(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function g2(e){return da(pi(e)).left+h2(e).scrollLeft}function TV(e,t){var n=or(e),r=pi(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){i=o.width,s=o.height;var u=Fy();(u||!u&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:i,height:s,x:l+g2(e),y:d}}function IV(e){var t,n=pi(e),r=h2(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Gi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Gi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+g2(e),d=-r.scrollTop;return Ro(o||n).direction==="rtl"&&(l+=Gi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function m2(e){var t=Ro(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Vy(e){return["html","body","#document"].indexOf(ro(e))>=0?e.ownerDocument.body:wr(e)&&m2(e)?e:Vy(g3(e))}function Cl(e,t){var n;t===void 0&&(t=[]);var r=Vy(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=or(r),s=o?[i].concat(i.visualViewport||[],m2(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Cl(g3(s)))}function v0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OV(e,t){var n=da(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 yg(e,t,n){return t===_y?v0(TV(e,n)):Zi(t)?OV(t,n):v0(IV(pi(e)))}function PV(e){var t=Cl(g3(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&wr(e)?c1(e):e;return Zi(r)?t.filter(function(o){return Zi(o)&&Ly(o,r)&&ro(o)!=="body"}):[]}function jV(e,t,n,r){var o=t==="clippingParents"?PV(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(d,u){var p=yg(e,u,r);return d.top=Gi(p.top,d.top),d.right=pu(p.right,d.right),d.bottom=pu(p.bottom,d.bottom),d.left=Gi(p.left,d.left),d},yg(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function zy(e){var t=e.reference,n=e.element,r=e.placement,o=r?to(r):null,i=r?fa(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(o){case $n:d={x:s,y:t.y-n.height};break;case Er:d={x:s,y:t.y+t.height};break;case Tr:d={x:t.x+t.width,y:l};break;case Vn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=o?p2(o):null;if(u!=null){var p=u==="y"?"height":"width";switch(i){case ca:d[u]=d[u]-(t[p]/2-n[p]/2);break;case Ll:d[u]=d[u]+(t[p]/2-n[p]/2);break}}return d}function Bl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,d=l===void 0?Z$:l,u=n.rootBoundary,p=u===void 0?_y:u,g=n.elementContext,h=g===void 0?rl:g,m=n.altBoundary,v=m===void 0?!1:m,b=n.padding,x=b===void 0?0:b,S=Ny(typeof x!="number"?x:$y(x,l1)),I=h===rl?X$:rl,w=e.rects.popper,T=e.elements[v?I:h],P=jV(Zi(T)?T:T.contextElement||pi(e.elements.popper),d,p,s),M=da(e.elements.reference),j=zy({reference:M,element:w,strategy:"absolute",placement:o}),D=v0(Object.assign({},w,j)),N=h===rl?D:M,k={top:P.top-N.top+S.top,bottom:N.bottom-P.bottom+S.bottom,left:P.left-N.left+S.left,right:N.right-P.right+S.right},_=e.modifiersData.offset;if(h===rl&&_){var U=_[o];Object.keys(k).forEach(function(H){var G=[Tr,Er].indexOf(H)>=0?1:-1,Y=[$n,Er].indexOf(H)>=0?"y":"x";k[H]+=U[Y]*G})}return k}function RV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?Dy:d,p=fa(r),g=p?l?hg:hg.filter(function(v){return fa(v)===p}):l1,h=g.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=g);var m=h.reduce(function(v,b){return v[b]=Bl(e,{placement:b,boundary:o,rootBoundary:i,padding:s})[to(b)],v},{});return Object.keys(m).sort(function(v,b){return m[v]-m[b]})}function MV(e){if(to(e)===u2)return[];var t=Vc(e);return[vg(e),t,vg(t)]}function kV(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,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,u=n.padding,p=n.boundary,g=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,b=n.allowedAutoPlacements,x=t.options.placement,S=to(x),I=S===x,w=d||(I||!v?[Vc(x)]:MV(x)),T=[x].concat(w).reduce(function(Q,de){return Q.concat(to(de)===u2?RV(t,{placement:de,boundary:p,rootBoundary:g,padding:u,flipVariations:v,allowedAutoPlacements:b}):de)},[]),P=t.rects.reference,M=t.rects.popper,j=new Map,D=!0,N=T[0],k=0;k<T.length;k++){var _=T[k],U=to(_),H=fa(_)===ca,G=[$n,Er].indexOf(U)>=0,Y=G?"width":"height",V=Bl(t,{placement:_,boundary:p,rootBoundary:g,altBoundary:h,padding:u}),Z=G?H?Tr:Vn:H?Er:$n;P[Y]>M[Y]&&(Z=Vc(Z));var W=Vc(Z),se=[];if(i&&se.push(V[U]<=0),l&&se.push(V[Z]<=0,V[W]<=0),se.every(function(Q){return Q})){N=_,D=!1;break}j.set(_,se)}if(D)for(var K=v?3:1,$=function(de){var pe=T.find(function(ye){var ce=j.get(ye);if(ce)return ce.slice(0,de).every(function(be){return be})});if(pe)return N=pe,"break"},te=K;te>0;te--){var oe=$(te);if(oe==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const _V={name:"flip",enabled:!0,phase:"main",fn:kV,requiresIfExists:["offset"],data:{_skip:!1}};function bg(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 Cg(e){return[$n,Tr,Er,Vn].some(function(t){return e[t]>=0})}function DV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Bl(t,{elementContext:"reference"}),l=Bl(t,{altBoundary:!0}),d=bg(s,r),u=bg(l,o,i),p=Cg(d),g=Cg(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const FV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DV};function LV(e,t,n){var r=to(e),o=[Vn,$n].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Vn,Tr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function BV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Dy.reduce(function(p,g){return p[g]=LV(g,t.rects,i),p},{}),l=s[t.placement],d=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const NV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BV};function $V(e){var t=e.state,n=e.name;t.modifiersData[n]=zy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const VV={name:"popperOffsets",enabled:!0,phase:"read",fn:$V,data:{}};function zV(e){return e==="x"?"y":"x"}function WV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,g=n.padding,h=n.tether,m=h===void 0?!0:h,v=n.tetherOffset,b=v===void 0?0:v,x=Bl(t,{boundary:d,rootBoundary:u,padding:g,altBoundary:p}),S=to(t.placement),I=fa(t.placement),w=!I,T=p2(S),P=zV(T),M=t.modifiersData.popperOffsets,j=t.rects.reference,D=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,k=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(M){if(i){var H,G=T==="y"?$n:Vn,Y=T==="y"?Er:Tr,V=T==="y"?"height":"width",Z=M[T],W=Z+x[G],se=Z-x[Y],K=m?-D[V]/2:0,$=I===ca?j[V]:D[V],te=I===ca?-D[V]:-j[V],oe=t.elements.arrow,Q=m&&oe?f2(oe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:By(),pe=de[G],ye=de[Y],ce=bl(0,j[V],Q[V]),be=w?j[V]/2-K-ce-pe-k.mainAxis:$-ce-pe-k.mainAxis,Ce=w?-j[V]/2+K+ce+ye+k.mainAxis:te+ce+ye+k.mainAxis,Ee=t.elements.arrow&&c1(t.elements.arrow),me=Ee?T==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Re=(H=_==null?void 0:_[T])!=null?H:0,ve=Z+be-Re-me,qe=Z+Ce-Re,Ft=bl(m?pu(W,ve):W,Z,m?Gi(se,qe):se);M[T]=Ft,U[T]=Ft-Z}if(l){var bt,st=T==="x"?$n:Vn,sn=T==="x"?Er:Tr,mt=M[P],Ke=P==="y"?"height":"width",kt=mt+x[st],tt=mt-x[sn],ot=[$n,Vn].indexOf(S)!==-1,St=(bt=_==null?void 0:_[P])!=null?bt:0,Pe=ot?kt:mt-j[Ke]-D[Ke]-St+k.altAxis,je=ot?mt+j[Ke]+D[Ke]-St-k.altAxis:tt,Ie=m&&ot?pV(Pe,mt,je):bl(m?Pe:kt,mt,m?je:tt);M[P]=Ie,U[P]=Ie-mt}t.modifiersData[r]=U}}const UV={name:"preventOverflow",enabled:!0,phase:"main",fn:WV,requiresIfExists:["offset"]};function HV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function GV(e){return e===or(e)||!wr(e)?h2(e):HV(e)}function qV(e){var t=e.getBoundingClientRect(),n=ua(t.width)/e.offsetWidth||1,r=ua(t.height)/e.offsetHeight||1;return n!==1||r!==1}function YV(e,t,n){n===void 0&&(n=!1);var r=wr(t),o=wr(t)&&qV(t),i=pi(t),s=da(e,o,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((ro(t)!=="body"||m2(i))&&(l=GV(t)),wr(t)?(d=da(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=g2(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function KV(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 s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&o(d)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ZV(e){var t=KV(e);return aV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function QV(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 xg={placement:"bottom",modifiers:[],strategy:"absolute"};function wg(){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 JV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?xg:o;return function(l,d,u){u===void 0&&(u=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},xg,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},g=[],h=!1,m={state:p,setOptions:function(S){var I=typeof S=="function"?S(p.options):S;b(),p.options=Object.assign({},i,p.options,I),p.scrollParents={reference:Zi(l)?Cl(l):l.contextElement?Cl(l.contextElement):[],popper:Cl(d)};var w=ZV(QV([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(T){return T.enabled}),v(),m.update()},forceUpdate:function(){if(!h){var S=p.elements,I=S.reference,w=S.popper;if(wg(I,w)){p.rects={reference:YV(I,c1(w),p.options.strategy==="fixed"),popper:f2(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(k){return p.modifiersData[k.name]=Object.assign({},k.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var P=p.orderedModifiers[T],M=P.fn,j=P.options,D=j===void 0?{}:j,N=P.name;typeof M=="function"&&(p=M({state:p,options:D,name:N,instance:m})||p)}}}},update:XV(function(){return new Promise(function(x){m.forceUpdate(),x(p)})}),destroy:function(){b(),h=!0}};if(!wg(l,d))return m;m.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){p.orderedModifiers.forEach(function(x){var S=x.name,I=x.options,w=I===void 0?{}:I,T=x.effect;if(typeof T=="function"){var P=T({state:p,name:S,instance:m,options:w}),M=function(){};g.push(P||M)}})}function b(){g.forEach(function(x){return x()}),g=[]}return m}}var ez=[SV,VV,xV,uV,NV,_V,UV,vV,FV],Wy=JV({defaultModifiers:ez});function tz(e){return typeof e=="function"?e():e}const hu=B.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=B.useState(null),d=pn(B.isValidElement(r)?r.ref:null,n);if(no(()=>{i||l(tz(o)||document.body)},[o,i]),no(()=>{if(s&&!i)return la(n,s),()=>{la(n,null)}},[n,s,i]),i){if(B.isValidElement(r)){const u={ref:d};return B.cloneElement(r,u)}return f.jsx(B.Fragment,{children:r})}return f.jsx(B.Fragment,{children:s&&c9.createPortal(r,s)})});process.env.NODE_ENV!=="production"&&(hu.propTypes={children:C.node,container:C.oneOfType([jo,C.func]),disablePortal:C.bool});process.env.NODE_ENV!=="production"&&(hu.propTypes=i1(hu.propTypes));function nz(e){return Gt("MuiPopper",e)}Jt("MuiPopper",["root"]);const rz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],oz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function iz(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 gu(e){return typeof e=="function"?e():e}function m3(e){return e.nodeType!==void 0}function sz(e){return!m3(e)}const az=()=>Xt({root:["root"]},U$(nz)),lz={},cz=B.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:d,open:u,placement:p,popperOptions:g,popperRef:h,slotProps:m={},slots:v={},TransitionProps:b}=t,x=Be(t,rz),S=B.useRef(null),I=pn(S,n),w=B.useRef(null),T=pn(w,h),P=B.useRef(T);no(()=>{P.current=T},[T]),B.useImperativeHandle(h,()=>w.current,[]);const M=iz(p,s),[j,D]=B.useState(M),[N,k]=B.useState(gu(o));B.useEffect(()=>{w.current&&w.current.forceUpdate()}),B.useEffect(()=>{o&&k(gu(o))},[o]),no(()=>{if(!N||!u)return;const Y=W=>{D(W.placement)};if(process.env.NODE_ENV!=="production"&&N&&m3(N)&&N.nodeType===1){const W=N.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:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{Y(W)}}];d!=null&&(V=V.concat(d)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const Z=Wy(N,S.current,ee({placement:M},g,{modifiers:V}));return P.current(Z),()=>{Z.destroy(),P.current(null)}},[N,l,d,u,g,M]);const _={placement:j};b!==null&&(_.TransitionProps=b);const U=az(),H=(r=v.root)!=null?r:"div",G=K$({elementType:H,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:U.root});return f.jsx(H,ee({},G,{children:typeof i=="function"?i(_):i}))}),v2=B.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:p,placement:g="bottom",popperOptions:h=lz,popperRef:m,style:v,transition:b=!1,slotProps:x={},slots:S={}}=t,I=Be(t,oz),[w,T]=B.useState(!0),P=()=>{T(!1)},M=()=>{T(!0)};if(!d&&!p&&(!b||w))return null;let j;if(i)j=i;else if(r){const k=gu(r);j=k&&m3(k)?nr(k).body:nr(null).body}const D=!p&&d&&(!b||w)?"none":void 0,N=b?{in:p,onEnter:P,onExited:M}:void 0;return f.jsx(hu,{disablePortal:l,container:j,children:f.jsx(cz,ee({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:b?!w:p,placement:g,popperOptions:h,popperRef:m,slotProps:x,slots:S},I,{style:ee({position:"fixed",top:0,left:0,display:D},v),TransitionProps:N,children:o}))})});process.env.NODE_ENV!=="production"&&(v2.propTypes={anchorEl:ko(C.oneOfType([jo,C.object,C.func]),e=>{if(e.open){const t=gu(e.anchorEl);if(t&&m3(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(`
150
+ `)),Jv.configure(e)}},N$=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ve,createChainedFunction:c0,createSvgIcon:t2,debounce:KB,deprecatedPropType:ZB,isMuiElement:XB,ownerDocument:nr,ownerWindow:c3,requirePropFactory:QB,setRef:la,unstable_ClassNameGenerator:B$,unstable_useEnhancedEffect:no,unstable_useId:u3,unsupportedProp:eN,useControlled:yy,useEventCallback:Ao,useForkRef:pn,useIsFocusVisible:n2},Symbol.toStringTag,{value:"Module"}));function $$(e){return typeof e=="string"}function V$(e,t,n){return e===void 0||$$(e)?t:ee({},t,{ownerState:ee({},t.ownerState,n)})}const z$={disableDefaultClasses:!1},W$=B.createContext(z$);function U$(e){const{disableDefaultClasses:t}=B.useContext(W$);return n=>t?"":e(n)}function H$(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 G$(e,t,n){return typeof e=="function"?e(t,n):e}function pg(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 q$(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=$e(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),v=ee({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=ee({},n,o,r);return m.length>0&&(b.className=m),Object.keys(v).length>0&&(b.style=v),{props:b,internalRef:void 0}}const s=H$(ee({},o,r)),l=pg(r),d=pg(o),u=t(s),p=$e(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=ee({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=ee({},u,n,d,l);return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:u.ref}}const Y$=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function K$(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Be(e,Y$),l=i?{}:G$(r,o),{props:d,internalRef:u}=q$(ee({},s,{externalSlotProps:l})),p=pn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return V$(n,ee({},d,{ref:p}),o)}var $n="top",Er="bottom",Tr="right",Vn="left",u2="auto",l1=[$n,Er,Tr,Vn],ca="start",Ll="end",Z$="clippingParents",_y="viewport",rl="popper",X$="reference",hg=l1.reduce(function(e,t){return e.concat([t+"-"+ca,t+"-"+Ll])},[]),Dy=[].concat(l1,[u2]).reduce(function(e,t){return e.concat([t,t+"-"+ca,t+"-"+Ll])},[]),Q$="beforeRead",J$="read",eV="afterRead",tV="beforeMain",nV="main",rV="afterMain",oV="beforeWrite",iV="write",sV="afterWrite",aV=[Q$,J$,eV,tV,nV,rV,oV,iV,sV];function ro(e){return e?(e.nodeName||"").toLowerCase():null}function or(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zi(e){var t=or(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=or(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function d2(e){if(typeof ShadowRoot>"u")return!1;var t=or(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lV(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];!wr(i)||!ro(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function cV(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(d,u){return d[u]="",d},{});!wr(o)||!ro(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(d){o.removeAttribute(d)}))})}}const uV={name:"applyStyles",enabled:!0,phase:"write",fn:lV,effect:cV,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Gi=Math.max,pu=Math.min,ua=Math.round;function m0(){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 Fy(){return!/^((?!chrome|android).)*safari/i.test(m0())}function da(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wr(e)&&(o=e.offsetWidth>0&&ua(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ua(r.height)/e.offsetHeight||1);var s=Zi(e)?or(e):window,l=s.visualViewport,d=!Fy()&&n,u=(r.left+(d&&l?l.offsetLeft:0))/o,p=(r.top+(d&&l?l.offsetTop:0))/i,g=r.width/o,h=r.height/i;return{width:g,height:h,top:p,right:u+g,bottom:p+h,left:u,x:u,y:p}}function f2(e){var t=da(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 Ly(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&d2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return or(e).getComputedStyle(e)}function dV(e){return["table","td","th"].indexOf(ro(e))>=0}function pi(e){return((Zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function g3(e){return ro(e)==="html"?e:e.assignedSlot||e.parentNode||(d2(e)?e.host:null)||pi(e)}function gg(e){return!wr(e)||Ro(e).position==="fixed"?null:e.offsetParent}function fV(e){var t=/firefox/i.test(m0()),n=/Trident/i.test(m0());if(n&&wr(e)){var r=Ro(e);if(r.position==="fixed")return null}var o=g3(e);for(d2(o)&&(o=o.host);wr(o)&&["html","body"].indexOf(ro(o))<0;){var i=Ro(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 c1(e){for(var t=or(e),n=gg(e);n&&dV(n)&&Ro(n).position==="static";)n=gg(n);return n&&(ro(n)==="html"||ro(n)==="body"&&Ro(n).position==="static")?t:n||fV(e)||t}function p2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bl(e,t,n){return Gi(e,pu(t,n))}function pV(e,t,n){var r=bl(e,t,n);return r>n?n:r}function By(){return{top:0,right:0,bottom:0,left:0}}function Ny(e){return Object.assign({},By(),e)}function $y(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Ny(typeof t!="number"?t:$y(t,l1))};function gV(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=to(n.placement),d=p2(l),u=[Vn,Tr].indexOf(l)>=0,p=u?"height":"width";if(!(!i||!s)){var g=hV(o.padding,n),h=f2(i),m=d==="y"?$n:Vn,v=d==="y"?Er:Tr,b=n.rects.reference[p]+n.rects.reference[d]-s[d]-n.rects.popper[p],x=s[d]-n.rects.reference[d],S=c1(i),I=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-x/2,T=g[m],P=I-h[p]-g[v],M=I/2-h[p]/2+w,j=bl(T,M,P),_=d;n.modifiersData[r]=(t={},t[_]=j,t.centerOffset=j-M,t)}}function mV(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)||Ly(t.elements.popper,o)&&(t.elements.arrow=o))}const vV={name:"arrow",enabled:!0,phase:"main",fn:gV,effect:mV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fa(e){return e.split("-")[1]}var yV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ua(n*o)/o||0,y:ua(r*o)/o||0}}function mg(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,g=e.isFixed,h=s.x,m=h===void 0?0:h,v=s.y,b=v===void 0?0:v,x=typeof p=="function"?p({x:m,y:b}):{x:m,y:b};m=x.x,b=x.y;var S=s.hasOwnProperty("x"),I=s.hasOwnProperty("y"),w=Vn,T=$n,P=window;if(u){var M=c1(n),j="clientHeight",_="clientWidth";if(M===or(n)&&(M=pi(n),Ro(M).position!=="static"&&l==="absolute"&&(j="scrollHeight",_="scrollWidth")),M=M,o===$n||(o===Vn||o===Tr)&&i===Ll){T=Er;var N=g&&M===P&&P.visualViewport?P.visualViewport.height:M[j];b-=N-r.height,b*=d?1:-1}if(o===Vn||(o===$n||o===Er)&&i===Ll){w=Tr;var k=g&&M===P&&P.visualViewport?P.visualViewport.width:M[_];m-=k-r.width,m*=d?1:-1}}var D=Object.assign({position:l},u&&yV),U=p===!0?bV({x:m,y:b},or(n)):{x:m,y:b};if(m=U.x,b=U.y,d){var H;return Object.assign({},D,(H={},H[T]=I?"0":"",H[w]=S?"0":"",H.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",H))}return Object.assign({},D,(t={},t[T]=I?b+"px":"",t[w]=S?m+"px":"",t.transform="",t))}function CV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,u={placement:to(t.placement),variation:fa(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,mg(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mg(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CV,data:{}};var bc={passive:!0};function wV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,d=or(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(p){p.addEventListener("scroll",n.update,bc)}),l&&d.addEventListener("resize",n.update,bc),function(){i&&u.forEach(function(p){p.removeEventListener("scroll",n.update,bc)}),l&&d.removeEventListener("resize",n.update,bc)}}const SV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wV,data:{}};var AV={left:"right",right:"left",bottom:"top",top:"bottom"};function Vc(e){return e.replace(/left|right|bottom|top/g,function(t){return AV[t]})}var EV={start:"end",end:"start"};function vg(e){return e.replace(/start|end/g,function(t){return EV[t]})}function h2(e){var t=or(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function g2(e){return da(pi(e)).left+h2(e).scrollLeft}function TV(e,t){var n=or(e),r=pi(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){i=o.width,s=o.height;var u=Fy();(u||!u&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:i,height:s,x:l+g2(e),y:d}}function IV(e){var t,n=pi(e),r=h2(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Gi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Gi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+g2(e),d=-r.scrollTop;return Ro(o||n).direction==="rtl"&&(l+=Gi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function m2(e){var t=Ro(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Vy(e){return["html","body","#document"].indexOf(ro(e))>=0?e.ownerDocument.body:wr(e)&&m2(e)?e:Vy(g3(e))}function Cl(e,t){var n;t===void 0&&(t=[]);var r=Vy(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=or(r),s=o?[i].concat(i.visualViewport||[],m2(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Cl(g3(s)))}function v0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OV(e,t){var n=da(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 yg(e,t,n){return t===_y?v0(TV(e,n)):Zi(t)?OV(t,n):v0(IV(pi(e)))}function PV(e){var t=Cl(g3(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&wr(e)?c1(e):e;return Zi(r)?t.filter(function(o){return Zi(o)&&Ly(o,r)&&ro(o)!=="body"}):[]}function jV(e,t,n,r){var o=t==="clippingParents"?PV(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(d,u){var p=yg(e,u,r);return d.top=Gi(p.top,d.top),d.right=pu(p.right,d.right),d.bottom=pu(p.bottom,d.bottom),d.left=Gi(p.left,d.left),d},yg(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function zy(e){var t=e.reference,n=e.element,r=e.placement,o=r?to(r):null,i=r?fa(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(o){case $n:d={x:s,y:t.y-n.height};break;case Er:d={x:s,y:t.y+t.height};break;case Tr:d={x:t.x+t.width,y:l};break;case Vn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=o?p2(o):null;if(u!=null){var p=u==="y"?"height":"width";switch(i){case ca:d[u]=d[u]-(t[p]/2-n[p]/2);break;case Ll:d[u]=d[u]+(t[p]/2-n[p]/2);break}}return d}function Bl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,d=l===void 0?Z$:l,u=n.rootBoundary,p=u===void 0?_y:u,g=n.elementContext,h=g===void 0?rl:g,m=n.altBoundary,v=m===void 0?!1:m,b=n.padding,x=b===void 0?0:b,S=Ny(typeof x!="number"?x:$y(x,l1)),I=h===rl?X$:rl,w=e.rects.popper,T=e.elements[v?I:h],P=jV(Zi(T)?T:T.contextElement||pi(e.elements.popper),d,p,s),M=da(e.elements.reference),j=zy({reference:M,element:w,strategy:"absolute",placement:o}),_=v0(Object.assign({},w,j)),N=h===rl?_:M,k={top:P.top-N.top+S.top,bottom:N.bottom-P.bottom+S.bottom,left:P.left-N.left+S.left,right:N.right-P.right+S.right},D=e.modifiersData.offset;if(h===rl&&D){var U=D[o];Object.keys(k).forEach(function(H){var G=[Tr,Er].indexOf(H)>=0?1:-1,Y=[$n,Er].indexOf(H)>=0?"y":"x";k[H]+=U[Y]*G})}return k}function RV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?Dy:d,p=fa(r),g=p?l?hg:hg.filter(function(v){return fa(v)===p}):l1,h=g.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=g);var m=h.reduce(function(v,b){return v[b]=Bl(e,{placement:b,boundary:o,rootBoundary:i,padding:s})[to(b)],v},{});return Object.keys(m).sort(function(v,b){return m[v]-m[b]})}function MV(e){if(to(e)===u2)return[];var t=Vc(e);return[vg(e),t,vg(t)]}function kV(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,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,u=n.padding,p=n.boundary,g=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,b=n.allowedAutoPlacements,x=t.options.placement,S=to(x),I=S===x,w=d||(I||!v?[Vc(x)]:MV(x)),T=[x].concat(w).reduce(function(Q,de){return Q.concat(to(de)===u2?RV(t,{placement:de,boundary:p,rootBoundary:g,padding:u,flipVariations:v,allowedAutoPlacements:b}):de)},[]),P=t.rects.reference,M=t.rects.popper,j=new Map,_=!0,N=T[0],k=0;k<T.length;k++){var D=T[k],U=to(D),H=fa(D)===ca,G=[$n,Er].indexOf(U)>=0,Y=G?"width":"height",V=Bl(t,{placement:D,boundary:p,rootBoundary:g,altBoundary:h,padding:u}),Z=G?H?Tr:Vn:H?Er:$n;P[Y]>M[Y]&&(Z=Vc(Z));var W=Vc(Z),se=[];if(i&&se.push(V[U]<=0),l&&se.push(V[Z]<=0,V[W]<=0),se.every(function(Q){return Q})){N=D,_=!1;break}j.set(D,se)}if(_)for(var K=v?3:1,$=function(de){var pe=T.find(function(ye){var ce=j.get(ye);if(ce)return ce.slice(0,de).every(function(be){return be})});if(pe)return N=pe,"break"},te=K;te>0;te--){var oe=$(te);if(oe==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const _V={name:"flip",enabled:!0,phase:"main",fn:kV,requiresIfExists:["offset"],data:{_skip:!1}};function bg(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 Cg(e){return[$n,Tr,Er,Vn].some(function(t){return e[t]>=0})}function DV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Bl(t,{elementContext:"reference"}),l=Bl(t,{altBoundary:!0}),d=bg(s,r),u=bg(l,o,i),p=Cg(d),g=Cg(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const FV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DV};function LV(e,t,n){var r=to(e),o=[Vn,$n].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Vn,Tr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function BV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Dy.reduce(function(p,g){return p[g]=LV(g,t.rects,i),p},{}),l=s[t.placement],d=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const NV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BV};function $V(e){var t=e.state,n=e.name;t.modifiersData[n]=zy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const VV={name:"popperOffsets",enabled:!0,phase:"read",fn:$V,data:{}};function zV(e){return e==="x"?"y":"x"}function WV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,g=n.padding,h=n.tether,m=h===void 0?!0:h,v=n.tetherOffset,b=v===void 0?0:v,x=Bl(t,{boundary:d,rootBoundary:u,padding:g,altBoundary:p}),S=to(t.placement),I=fa(t.placement),w=!I,T=p2(S),P=zV(T),M=t.modifiersData.popperOffsets,j=t.rects.reference,_=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,k=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(M){if(i){var H,G=T==="y"?$n:Vn,Y=T==="y"?Er:Tr,V=T==="y"?"height":"width",Z=M[T],W=Z+x[G],se=Z-x[Y],K=m?-_[V]/2:0,$=I===ca?j[V]:_[V],te=I===ca?-_[V]:-j[V],oe=t.elements.arrow,Q=m&&oe?f2(oe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:By(),pe=de[G],ye=de[Y],ce=bl(0,j[V],Q[V]),be=w?j[V]/2-K-ce-pe-k.mainAxis:$-ce-pe-k.mainAxis,Ce=w?-j[V]/2+K+ce+ye+k.mainAxis:te+ce+ye+k.mainAxis,Ee=t.elements.arrow&&c1(t.elements.arrow),me=Ee?T==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Re=(H=D==null?void 0:D[T])!=null?H:0,ve=Z+be-Re-me,qe=Z+Ce-Re,Ft=bl(m?pu(W,ve):W,Z,m?Gi(se,qe):se);M[T]=Ft,U[T]=Ft-Z}if(l){var bt,st=T==="x"?$n:Vn,sn=T==="x"?Er:Tr,mt=M[P],Ke=P==="y"?"height":"width",kt=mt+x[st],tt=mt-x[sn],ot=[$n,Vn].indexOf(S)!==-1,St=(bt=D==null?void 0:D[P])!=null?bt:0,Pe=ot?kt:mt-j[Ke]-_[Ke]-St+k.altAxis,je=ot?mt+j[Ke]+_[Ke]-St-k.altAxis:tt,Ie=m&&ot?pV(Pe,mt,je):bl(m?Pe:kt,mt,m?je:tt);M[P]=Ie,U[P]=Ie-mt}t.modifiersData[r]=U}}const UV={name:"preventOverflow",enabled:!0,phase:"main",fn:WV,requiresIfExists:["offset"]};function HV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function GV(e){return e===or(e)||!wr(e)?h2(e):HV(e)}function qV(e){var t=e.getBoundingClientRect(),n=ua(t.width)/e.offsetWidth||1,r=ua(t.height)/e.offsetHeight||1;return n!==1||r!==1}function YV(e,t,n){n===void 0&&(n=!1);var r=wr(t),o=wr(t)&&qV(t),i=pi(t),s=da(e,o,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((ro(t)!=="body"||m2(i))&&(l=GV(t)),wr(t)?(d=da(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=g2(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function KV(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 s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&o(d)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ZV(e){var t=KV(e);return aV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function QV(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 xg={placement:"bottom",modifiers:[],strategy:"absolute"};function wg(){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 JV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?xg:o;return function(l,d,u){u===void 0&&(u=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},xg,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},g=[],h=!1,m={state:p,setOptions:function(S){var I=typeof S=="function"?S(p.options):S;b(),p.options=Object.assign({},i,p.options,I),p.scrollParents={reference:Zi(l)?Cl(l):l.contextElement?Cl(l.contextElement):[],popper:Cl(d)};var w=ZV(QV([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(T){return T.enabled}),v(),m.update()},forceUpdate:function(){if(!h){var S=p.elements,I=S.reference,w=S.popper;if(wg(I,w)){p.rects={reference:YV(I,c1(w),p.options.strategy==="fixed"),popper:f2(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(k){return p.modifiersData[k.name]=Object.assign({},k.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var P=p.orderedModifiers[T],M=P.fn,j=P.options,_=j===void 0?{}:j,N=P.name;typeof M=="function"&&(p=M({state:p,options:_,name:N,instance:m})||p)}}}},update:XV(function(){return new Promise(function(x){m.forceUpdate(),x(p)})}),destroy:function(){b(),h=!0}};if(!wg(l,d))return m;m.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){p.orderedModifiers.forEach(function(x){var S=x.name,I=x.options,w=I===void 0?{}:I,T=x.effect;if(typeof T=="function"){var P=T({state:p,name:S,instance:m,options:w}),M=function(){};g.push(P||M)}})}function b(){g.forEach(function(x){return x()}),g=[]}return m}}var ez=[SV,VV,xV,uV,NV,_V,UV,vV,FV],Wy=JV({defaultModifiers:ez});function tz(e){return typeof e=="function"?e():e}const hu=B.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=B.useState(null),d=pn(B.isValidElement(r)?r.ref:null,n);if(no(()=>{i||l(tz(o)||document.body)},[o,i]),no(()=>{if(s&&!i)return la(n,s),()=>{la(n,null)}},[n,s,i]),i){if(B.isValidElement(r)){const u={ref:d};return B.cloneElement(r,u)}return f.jsx(B.Fragment,{children:r})}return f.jsx(B.Fragment,{children:s&&c9.createPortal(r,s)})});process.env.NODE_ENV!=="production"&&(hu.propTypes={children:C.node,container:C.oneOfType([jo,C.func]),disablePortal:C.bool});process.env.NODE_ENV!=="production"&&(hu.propTypes=i1(hu.propTypes));function nz(e){return Gt("MuiPopper",e)}Jt("MuiPopper",["root"]);const rz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],oz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function iz(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 gu(e){return typeof e=="function"?e():e}function m3(e){return e.nodeType!==void 0}function sz(e){return!m3(e)}const az=()=>Xt({root:["root"]},U$(nz)),lz={},cz=B.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:d,open:u,placement:p,popperOptions:g,popperRef:h,slotProps:m={},slots:v={},TransitionProps:b}=t,x=Be(t,rz),S=B.useRef(null),I=pn(S,n),w=B.useRef(null),T=pn(w,h),P=B.useRef(T);no(()=>{P.current=T},[T]),B.useImperativeHandle(h,()=>w.current,[]);const M=iz(p,s),[j,_]=B.useState(M),[N,k]=B.useState(gu(o));B.useEffect(()=>{w.current&&w.current.forceUpdate()}),B.useEffect(()=>{o&&k(gu(o))},[o]),no(()=>{if(!N||!u)return;const Y=W=>{_(W.placement)};if(process.env.NODE_ENV!=="production"&&N&&m3(N)&&N.nodeType===1){const W=N.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:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{Y(W)}}];d!=null&&(V=V.concat(d)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const Z=Wy(N,S.current,ee({placement:M},g,{modifiers:V}));return P.current(Z),()=>{Z.destroy(),P.current(null)}},[N,l,d,u,g,M]);const D={placement:j};b!==null&&(D.TransitionProps=b);const U=az(),H=(r=v.root)!=null?r:"div",G=K$({elementType:H,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:U.root});return f.jsx(H,ee({},G,{children:typeof i=="function"?i(D):i}))}),v2=B.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:p,placement:g="bottom",popperOptions:h=lz,popperRef:m,style:v,transition:b=!1,slotProps:x={},slots:S={}}=t,I=Be(t,oz),[w,T]=B.useState(!0),P=()=>{T(!1)},M=()=>{T(!0)};if(!d&&!p&&(!b||w))return null;let j;if(i)j=i;else if(r){const k=gu(r);j=k&&m3(k)?nr(k).body:nr(null).body}const _=!p&&d&&(!b||w)?"none":void 0,N=b?{in:p,onEnter:P,onExited:M}:void 0;return f.jsx(hu,{disablePortal:l,container:j,children:f.jsx(cz,ee({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:b?!w:p,placement:g,popperOptions:h,popperRef:m,slotProps:x,slots:S},I,{style:ee({position:"fixed",top:0,left:0,display:_},v),TransitionProps:N,children:o}))})});process.env.NODE_ENV!=="production"&&(v2.propTypes={anchorEl:ko(C.oneOfType([jo,C.object,C.func]),e=>{if(e.open){const t=gu(e.anchorEl);if(t&&m3(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"||sz(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:C.oneOfType([C.node,C.func]),container:C.oneOfType([jo,C.func]),direction:C.oneOf(["ltr","rtl"]),disablePortal:C.bool,keepMounted:C.bool,modifiers:C.arrayOf(C.shape({data:C.object,effect:C.func,enabled:C.bool,fn:C.func,name:C.any,options:C.object,phase:C.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:C.arrayOf(C.string),requiresIfExists:C.arrayOf(C.string)})),open:C.bool.isRequired,placement:C.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:C.shape({modifiers:C.array,onFirstUpdate:C.func,placement:C.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:C.oneOf(["absolute","fixed"])}),popperRef:l3,slotProps:C.shape({root:C.oneOfType([C.func,C.object])}),slots:C.shape({root:C.elementType}),transition:C.bool});function uz(e){return Gt("MuiButton",e)}const Cc=Jt("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"]),Uy=B.createContext({});process.env.NODE_ENV!=="production"&&(Uy.displayName="ButtonGroupContext");const Hy=B.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hy.displayName="ButtonGroupButtonContext");const dz=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fz=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,l={root:["root",i,`${i}${Ve(t)}`,`size${Ve(o)}`,`${i}Size${Ve(o)}`,`color${Ve(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ve(o)}`],endIcon:["icon","endIcon",`iconSize${Ve(o)}`]},d=Xt(l,uz,s);return ee({},s,d)},Gy=e=>ee({},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}}),pz=ge(h3,{shouldForwardProp:e=>e2(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ve(n.color)}`],t[`size${Ve(n.size)}`],t[`${n.variant}Size${Ve(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 ee({},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":ee({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(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})`:Xr(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})`:Xr(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":ee({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cc.focusVisible}`]:ee({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cc.disabled}`]:ee({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 ${Xr(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"},[`&.${Cc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cc.disabled}`]:{boxShadow:"none"}}),hz=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ve(n.size)}`]]}})(({ownerState:e})=>ee({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Gy(e))),gz=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ve(n.size)}`]]}})(({ownerState:e})=>ee({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Gy(e))),mu=B.forwardRef(function(t,n){const r=B.useContext(Uy),o=B.useContext(Hy),i=z6(r,t),s=Qt({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:p,disabled:g=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:x=!1,size:S="medium",startIcon:I,type:w,variant:T="text"}=s,P=Be(s,dz),M=ee({},s,{color:d,component:u,disabled:g,disableElevation:h,disableFocusRipple:m,fullWidth:x,size:S,type:w,variant:T}),j=fz(M),D=I&&f.jsx(hz,{className:j.startIcon,ownerState:M,children:I}),N=v&&f.jsx(gz,{className:j.endIcon,ownerState:M,children:v}),k=o||"";return f.jsxs(pz,ee({ownerState:M,className:$e(r.className,j.root,p,k),component:u,disabled:g,focusRipple:!m,focusVisibleClassName:$e(j.focusVisible,b),ref:n,type:w},P,{classes:j,children:[D,l,N]}))});process.env.NODE_ENV!=="production"&&(mu.propTypes={children:C.node,classes:C.object,className:C.string,color:C.oneOfType([C.oneOf(["inherit","primary","secondary","success","error","info","warning"]),C.string]),component:C.elementType,disabled:C.bool,disableElevation:C.bool,disableFocusRipple:C.bool,disableRipple:C.bool,endIcon:C.node,focusVisibleClassName:C.string,fullWidth:C.bool,href:C.string,size:C.oneOfType([C.oneOf(["small","medium","large"]),C.string]),startIcon:C.node,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),type:C.oneOfType([C.oneOf(["button","reset","submit"]),C.string]),variant:C.oneOfType([C.oneOf(["contained","outlined","text"]),C.string])});function mz(e){return Gt("MuiCircularProgress",e)}Jt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vz=["className","color","disableShrink","size","style","thickness","value","variant"];let v3=e=>e,Sg,Ag,Eg,Tg;const Ho=44,yz=dn.keyframes(Sg||(Sg=v3`
153
+ `))}return null}),children:C.oneOfType([C.node,C.func]),container:C.oneOfType([jo,C.func]),direction:C.oneOf(["ltr","rtl"]),disablePortal:C.bool,keepMounted:C.bool,modifiers:C.arrayOf(C.shape({data:C.object,effect:C.func,enabled:C.bool,fn:C.func,name:C.any,options:C.object,phase:C.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:C.arrayOf(C.string),requiresIfExists:C.arrayOf(C.string)})),open:C.bool.isRequired,placement:C.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:C.shape({modifiers:C.array,onFirstUpdate:C.func,placement:C.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:C.oneOf(["absolute","fixed"])}),popperRef:l3,slotProps:C.shape({root:C.oneOfType([C.func,C.object])}),slots:C.shape({root:C.elementType}),transition:C.bool});function uz(e){return Gt("MuiButton",e)}const Cc=Jt("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"]),Uy=B.createContext({});process.env.NODE_ENV!=="production"&&(Uy.displayName="ButtonGroupContext");const Hy=B.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hy.displayName="ButtonGroupButtonContext");const dz=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fz=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,l={root:["root",i,`${i}${Ve(t)}`,`size${Ve(o)}`,`${i}Size${Ve(o)}`,`color${Ve(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ve(o)}`],endIcon:["icon","endIcon",`iconSize${Ve(o)}`]},d=Xt(l,uz,s);return ee({},s,d)},Gy=e=>ee({},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}}),pz=ge(h3,{shouldForwardProp:e=>e2(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ve(n.color)}`],t[`size${Ve(n.size)}`],t[`${n.variant}Size${Ve(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 ee({},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":ee({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(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})`:Xr(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})`:Xr(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":ee({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cc.focusVisible}`]:ee({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cc.disabled}`]:ee({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 ${Xr(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"},[`&.${Cc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cc.disabled}`]:{boxShadow:"none"}}),hz=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ve(n.size)}`]]}})(({ownerState:e})=>ee({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Gy(e))),gz=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ve(n.size)}`]]}})(({ownerState:e})=>ee({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Gy(e))),mu=B.forwardRef(function(t,n){const r=B.useContext(Uy),o=B.useContext(Hy),i=z6(r,t),s=Qt({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:p,disabled:g=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:x=!1,size:S="medium",startIcon:I,type:w,variant:T="text"}=s,P=Be(s,dz),M=ee({},s,{color:d,component:u,disabled:g,disableElevation:h,disableFocusRipple:m,fullWidth:x,size:S,type:w,variant:T}),j=fz(M),_=I&&f.jsx(hz,{className:j.startIcon,ownerState:M,children:I}),N=v&&f.jsx(gz,{className:j.endIcon,ownerState:M,children:v}),k=o||"";return f.jsxs(pz,ee({ownerState:M,className:$e(r.className,j.root,p,k),component:u,disabled:g,focusRipple:!m,focusVisibleClassName:$e(j.focusVisible,b),ref:n,type:w},P,{classes:j,children:[_,l,N]}))});process.env.NODE_ENV!=="production"&&(mu.propTypes={children:C.node,classes:C.object,className:C.string,color:C.oneOfType([C.oneOf(["inherit","primary","secondary","success","error","info","warning"]),C.string]),component:C.elementType,disabled:C.bool,disableElevation:C.bool,disableFocusRipple:C.bool,disableRipple:C.bool,endIcon:C.node,focusVisibleClassName:C.string,fullWidth:C.bool,href:C.string,size:C.oneOfType([C.oneOf(["small","medium","large"]),C.string]),startIcon:C.node,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),type:C.oneOfType([C.oneOf(["button","reset","submit"]),C.string]),variant:C.oneOfType([C.oneOf(["contained","outlined","text"]),C.string])});function mz(e){return Gt("MuiCircularProgress",e)}Jt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vz=["className","color","disableShrink","size","style","thickness","value","variant"];let v3=e=>e,Sg,Ag,Eg,Tg;const Ho=44,yz=dn.keyframes(Sg||(Sg=v3`
154
154
  0% {
155
155
  transform: rotate(0deg);
156
156
  }
@@ -184,24 +184,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
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()})(Pn,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,""]],s=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],l=new RegExp("(_ids|_id)$","g"),d=new RegExp("_","g"),u=new RegExp("[ _]","g"),p=new RegExp("([A-Z])","g"),g=new RegExp("^_"),h={_apply_rules:function(m,v,b,x){if(x)m=x;else{var S=h.indexOf(b,m.toLowerCase())>-1;if(!S){for(var I=0,w=v.length;I<w;I++)if(m.match(v[I][0])){v[I][1]!==void 0&&(m=m.replace(v[I][0],v[I][1]));break}}}return m},indexOf:function(m,v,b,x){b||(b=-1);for(var S=-1,I=b,w=m.length;I<w;I++)if(m[I]===v||x&&x(m[I],v)){S=I;break}return S},pluralize:function(m,v){return h._apply_rules(m,o,n,v)},singularize:function(m,v){return h._apply_rules(m,i,n,v)},inflect:function(m,v,b,x){return v=parseInt(v,10),isNaN(v)?m:v===0||v>1?h._apply_rules(m,o,n,x):h._apply_rules(m,i,n,b)},camelize:function(m,v){for(var b=m.split("/"),x=0,S=b.length,I,w,T,P;x<S;x++){for(I=b[x].split("_"),w=0,T=I.length;w<T;w++)w!==0&&(I[w]=I[w].toLowerCase()),P=I[w].charAt(0),P=v&&x===0&&w===0?P.toLowerCase():P.toUpperCase(),I[w]=P+I[w].substring(1);b[x]=I.join("")}return b.join("::")},underscore:function(m,v){if(v&&m===m.toUpperCase())return m;for(var b=m.split("::"),x=0,S=b.length;x<S;x++)b[x]=b[x].replace(p,"_$1"),b[x]=b[x].replace(g,"");return b.join("/").toLowerCase()},humanize:function(m,v){return m=m.toLowerCase(),m=m.replace(l,""),m=m.replace(d," "),v||(m=h.capitalize(m)),m},capitalize:function(m){return m=m.toLowerCase(),m.substring(0,1).toUpperCase()+m.substring(1)},dasherize:function(m){return m.replace(u,"-")},titleize:function(m){m=m.toLowerCase().replace(d," ");for(var v=m.split(" "),b=0,x=v.length,S,I,w;b<x;b++){for(S=v[b].split("-"),I=0,w=S.length;I<w;I++)h.indexOf(s,S[I].toLowerCase())<0&&(S[I]=h.capitalize(S[I]));v[b]=S.join("-")}return m=v.join(" "),m=m.substring(0,1).toUpperCase()+m.substring(1),m},demodulize:function(m){var v=m.split("::");return v[v.length-1]},tableize:function(m){return m=h.underscore(m),m=h.pluralize(m),m},classify:function(m){return m=h.camelize(m),m=h.singularize(m),m},foreign_key:function(m,v){return m=h.demodulize(m),m=h.underscore(m)+(v?"":"_")+"id",m},ordinalize:function(m){for(var v=m.split(" "),b=0,x=v.length;b<x;b++){var S=parseInt(v[b],10);if(!isNaN(S)){var I=v[b].substring(v[b].length-2),w=v[b].substring(v[b].length-1),T="th";I!="11"&&I!="12"&&I!="13"&&(w==="1"?T="st":w==="2"?T="nd":w==="3"&&(T="rd")),v[b]+=T}}return v.join(" ")},transform:function(m,v){for(var b=0,x=v.length;b<x;b++){var S=v[b];h.hasOwnProperty(S)&&(m=h[S](m))}return m}};return h.version="1.12.0",h})})(Ob);var BX=Ob.exports;const ei=Nr(BX);var A0=function(){return A0=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},A0.apply(this,arguments)},NX=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},wc,Pf,Pb=function(e){var t=e.className,n=e.onClick,r=e.sx,o=NX(e,["className","onClick","sx"]),i=ne.useLoading(),s=wt();return B.createElement($X,{className:t,sx:r},B.createElement(oC,{className:"".concat(ta.loadedIcon," ").concat(i&&ta.loadedLoading),onClick:n}),i&&B.createElement(y3,A0({className:pa("app-loader",ta.loader),color:"inherit",size:s.spacing(2),thickness:6},o)))};Pb.propTypes={classes:C.object,className:C.string,width:C.string};var zc="RaLoadingIndicator",ta={loader:"".concat(zc,"-loader"),loadedLoading:"".concat(zc,"-loadedLoading"),loadedIcon:"".concat(zc,"-loadedIcon")},$X=ge("div",{name:zc,overridesResolver:function(e,t){return t.root}})((wc={position:"relative"},wc["& .".concat(ta.loadedIcon)]=(Pf={},Pf["&.".concat(ta.loadedLoading)]={opacity:0},Pf),wc["& .".concat(ta.loader)]={position:"absolute",top:"30%",left:"30%"},wc));const jb=e=>e.scrollTop;function Su(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function VX(e){const t=nr(e);return t.body===e?c3(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function c5(e){return parseInt(c3(e).getComputedStyle(e).paddingRight,10)||0}function zX(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 u5(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=i.indexOf(s)===-1,d=!zX(s);l&&d&&wl(s,o)})}function jf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function WX(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(VX(r)){const s=dN(nr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${c5(r)+s}px`;const l=nr(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${c5(d)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=nr(r).body;else{const s=r.parentElement,l=c3(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function UX(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HX{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&&wl(t.modalRef,!1);const o=UX(n);u5(n,t.mount,t.modalRef,o,!0);const i=jf(this.containers,s=>s.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=jf(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=WX(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=jf(this.containers,s=>s.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&&wl(t.modalRef,n),u5(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&wl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function GX(e){return typeof e=="function"?e():e}function qX(e){return e?e.props.hasOwnProperty("in"):!1}const YX=new HX;function KX(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=YX,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:d,onClose:u,open:p,rootRef:g}=e,h=B.useRef({}),m=B.useRef(null),v=B.useRef(null),b=pn(v,g),[x,S]=B.useState(!p),I=qX(d);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const T=()=>nr(m.current),P=()=>(h.current.modalRef=v.current,h.current.mount=m.current,h.current),M=()=>{o.mount(P(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},j=Ao(()=>{const V=GX(t)||T().body;o.add(P(),V),v.current&&M()}),D=B.useCallback(()=>o.isTopModal(P()),[o]),N=Ao(V=>{m.current=V,V&&(p&&D()?M():v.current&&wl(v.current,w))}),k=B.useCallback(()=>{o.remove(P(),w)},[w,o]);B.useEffect(()=>()=>{k()},[k]),B.useEffect(()=>{p?j():(!I||!i)&&k()},[p,k,I,i,j]);const _=V=>Z=>{var W;(W=V.onKeyDown)==null||W.call(V,Z),!(Z.key!=="Escape"||Z.which===229||!D())&&(n||(Z.stopPropagation(),u&&u(Z,"escapeKeyDown")))},U=V=>Z=>{var W;(W=V.onClick)==null||W.call(V,Z),Z.target===Z.currentTarget&&u&&u(Z,"backdropClick")};return{getRootProps:(V={})=>{const Z=gy(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const W=ee({},Z,V);return ee({role:"presentation"},W,{onKeyDown:_(W),ref:b})},getBackdropProps:(V={})=>{const Z=V;return ee({"aria-hidden":!0},Z,{onClick:U(Z),open:p})},getTransitionProps:()=>{const V=()=>{S(!1),s&&s()},Z=()=>{S(!0),l&&l(),i&&k()};return{onEnter:c0(V,d==null?void 0:d.props.onEnter),onExited:c0(Z,d==null?void 0:d.props.onExited)}},rootRef:b,portalRef:N,isTopModal:D,exited:x,hasTransition:I}}const ZX=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XX(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 QX(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 JX(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||QX(e))}function eQ(e){const t=[],n=[];return Array.from(e.querySelectorAll(ZX)).forEach((r,o)=>{const i=XX(r);i===-1||!JX(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 tQ(){return!0}function Au(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=eQ,isEnabled:s=tQ,open:l}=e,d=B.useRef(!1),u=B.useRef(null),p=B.useRef(null),g=B.useRef(null),h=B.useRef(null),m=B.useRef(!1),v=B.useRef(null),b=pn(t.ref,v),x=B.useRef(null);B.useEffect(()=>{!l||!v.current||(m.current=!n)},[n,l]),B.useEffect(()=>{if(!l||!v.current)return;const w=nr(v.current);return v.current.contains(w.activeElement)||(v.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
- `)),v.current.setAttribute("tabIndex","-1")),m.current&&v.current.focus()),()=>{o||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[l]),B.useEffect(()=>{if(!l||!v.current)return;const w=nr(v.current),T=j=>{x.current=j,!(r||!s()||j.key!=="Tab")&&w.activeElement===v.current&&j.shiftKey&&(d.current=!0,p.current&&p.current.focus())},P=()=>{const j=v.current;if(j===null)return;if(!w.hasFocus()||!s()||d.current){d.current=!1;return}if(j.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==p.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let D=[];if((w.activeElement===u.current||w.activeElement===p.current)&&(D=i(v.current)),D.length>0){var N,k;const _=!!((N=x.current)!=null&&N.shiftKey&&((k=x.current)==null?void 0:k.key)==="Tab"),U=D[0],H=D[D.length-1];typeof U!="string"&&typeof H!="string"&&(_?H.focus():U.focus())}else j.focus()};w.addEventListener("focusin",P),w.addEventListener("keydown",T,!0);const M=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(M),w.removeEventListener("focusin",P),w.removeEventListener("keydown",T,!0)}},[n,r,o,s,l,i]);const S=w=>{g.current===null&&(g.current=w.relatedTarget),m.current=!0,h.current=w.target;const T=t.props.onFocus;T&&T(w)},I=w=>{g.current===null&&(g.current=w.relatedTarget),m.current=!0};return f.jsxs(B.Fragment,{children:[f.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:u,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:b,onFocus:S}),f.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Au.propTypes={children:va,disableAutoFocus:C.bool,disableEnforceFocus:C.bool,disableRestoreFocus:C.bool,getTabbable:C.func,isEnabled:C.func,open:C.bool.isRequired});process.env.NODE_ENV!=="production"&&(Au.propTypes=i1(Au.propTypes));function nQ(e){return typeof e=="function"?e():e}const $l=B.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=B.useState(null),d=pn(B.isValidElement(r)?r.ref:null,n);if(no(()=>{i||l(nQ(o)||document.body)},[o,i]),no(()=>{if(s&&!i)return la(n,s),()=>{la(n,null)}},[n,s,i]),i){if(B.isValidElement(r)){const u={ref:d};return B.cloneElement(r,u)}return f.jsx(B.Fragment,{children:r})}return f.jsx(B.Fragment,{children:s&&c9.createPortal(r,s)})});process.env.NODE_ENV!=="production"&&($l.propTypes={children:C.node,container:C.oneOfType([jo,C.func]),disablePortal:C.bool});process.env.NODE_ENV!=="production"&&($l.propTypes=i1($l.propTypes));const rQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oQ={entering:{opacity:1},entered:{opacity:1}},F2=B.forwardRef(function(t,n){const r=wt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:d,in:u,onEnter:p,onEntered:g,onEntering:h,onExit:m,onExited:v,onExiting:b,style:x,timeout:S=o,TransitionComponent:I=oo}=t,w=Be(t,rQ),T=B.useRef(null),P=pn(T,l.ref,n),M=G=>Y=>{if(G){const V=T.current;Y===void 0?G(V):G(V,Y)}},j=M(h),D=M((G,Y)=>{jb(G);const V=Su({style:x,timeout:S,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",V),G.style.transition=r.transitions.create("opacity",V),p&&p(G,Y)}),N=M(g),k=M(b),_=M(G=>{const Y=Su({style:x,timeout:S,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",Y),G.style.transition=r.transitions.create("opacity",Y),m&&m(G)}),U=M(v),H=G=>{i&&i(T.current,G)};return f.jsx(I,ee({appear:s,in:u,nodeRef:T,onEnter:D,onEntered:N,onEntering:j,onExit:_,onExited:U,onExiting:k,addEndListener:H,timeout:S},w,{children:(G,Y)=>B.cloneElement(l,ee({style:ee({opacity:0,visibility:G==="exited"&&!u?"hidden":void 0},oQ[G],x,l.props.style),ref:P},Y))}))});process.env.NODE_ENV!=="production"&&(F2.propTypes={addEndListener:C.func,appear:C.bool,children:va.isRequired,easing:C.oneOfType([C.shape({enter:C.string,exit:C.string}),C.string]),in:C.bool,onEnter:C.func,onEntered:C.func,onEntering:C.func,onExit:C.func,onExited:C.func,onExiting:C.func,style:C.object,timeout:C.oneOfType([C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})])});function iQ(e){return Gt("MuiBackdrop",e)}Jt("MuiBackdrop",["root","invisible"]);const sQ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aQ=e=>{const{classes:t,invisible:n}=e;return Xt({root:["root",n&&"invisible"]},iQ,t)},lQ=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>ee({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"})),L2=B.forwardRef(function(t,n){var r,o,i;const s=Qt({props:t,name:"MuiBackdrop"}),{children:l,className:d,component:u="div",components:p={},componentsProps:g={},invisible:h=!1,open:m,slotProps:v={},slots:b={},TransitionComponent:x=F2,transitionDuration:S}=s,I=Be(s,sQ),w=ee({},s,{component:u,invisible:h}),T=aQ(w),P=(r=v.root)!=null?r:g.root;return f.jsx(x,ee({in:m,timeout:S},I,{children:f.jsx(lQ,ee({"aria-hidden":!0},P,{as:(o=(i=b.root)!=null?i:p.Root)!=null?o:u,className:$e(T.root,d,P==null?void 0:P.className),ownerState:ee({},w,P==null?void 0:P.ownerState),classes:T,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(L2.propTypes={children:C.node,classes:C.object,className:C.string,component:C.elementType,components:C.shape({Root:C.elementType}),componentsProps:C.shape({root:C.object}),invisible:C.bool,open:C.bool.isRequired,slotProps:C.shape({root:C.object}),slots:C.shape({root:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),TransitionComponent:C.elementType,transitionDuration:C.oneOfType([C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})])});function cQ(e){return Gt("MuiModal",e)}Jt("MuiModal",["root","hidden","backdrop"]);const uQ=["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"],dQ=e=>{const{open:t,exited:n,classes:r}=e;return Xt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cQ,r)},fQ=ge("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})=>ee({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),pQ=ge(L2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rb=B.forwardRef(function(t,n){var r,o,i,s,l,d;const u=Qt({name:"MuiModal",props:t}),{BackdropComponent:p=pQ,BackdropProps:g,className:h,closeAfterTransition:m=!1,children:v,container:b,component:x,components:S={},componentsProps:I={},disableAutoFocus:w=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:P=!1,disablePortal:M=!1,disableRestoreFocus:j=!1,disableScrollLock:D=!1,hideBackdrop:N=!1,keepMounted:k=!1,onBackdropClick:_,open:U,slotProps:H,slots:G}=u,Y=Be(u,uQ),V=ee({},u,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:T,disableEscapeKeyDown:P,disablePortal:M,disableRestoreFocus:j,disableScrollLock:D,hideBackdrop:N,keepMounted:k}),{getRootProps:Z,getBackdropProps:W,getTransitionProps:se,portalRef:K,isTopModal:$,exited:te,hasTransition:oe}=KX(ee({},V,{rootRef:n})),Q=ee({},V,{exited:te}),de=dQ(Q),pe={};if(v.props.tabIndex===void 0&&(pe.tabIndex="-1"),oe){const{onEnter:Re,onExited:ve}=se();pe.onEnter=Re,pe.onExited=ve}const ye=(r=(o=G==null?void 0:G.root)!=null?o:S.Root)!=null?r:fQ,ce=(i=(s=G==null?void 0:G.backdrop)!=null?s:S.Backdrop)!=null?i:p,be=(l=H==null?void 0:H.root)!=null?l:I.root,Ce=(d=H==null?void 0:H.backdrop)!=null?d:I.backdrop,Ee=lu({elementType:ye,externalSlotProps:be,externalForwardedProps:Y,getSlotProps:Z,additionalProps:{ref:n,as:x},ownerState:Q,className:$e(h,be==null?void 0:be.className,de==null?void 0:de.root,!Q.open&&Q.exited&&(de==null?void 0:de.hidden))}),me=lu({elementType:ce,externalSlotProps:Ce,additionalProps:g,getSlotProps:Re=>W(ee({},Re,{onClick:ve=>{_&&_(ve),Re!=null&&Re.onClick&&Re.onClick(ve)}})),className:$e(Ce==null?void 0:Ce.className,g==null?void 0:g.className,de==null?void 0:de.backdrop),ownerState:Q});return!k&&!U&&(!oe||te)?null:f.jsx($l,{ref:K,container:b,disablePortal:M,children:f.jsxs(ye,ee({},Ee,{children:[!N&&p?f.jsx(ce,ee({},me)):null,f.jsx(Au,{disableEnforceFocus:T,disableAutoFocus:w,disableRestoreFocus:j,isEnabled:$,open:U,children:B.cloneElement(v,pe)})]}))})});process.env.NODE_ENV!=="production"&&(Rb.propTypes={BackdropComponent:C.elementType,BackdropProps:C.object,children:va.isRequired,classes:C.object,className:C.string,closeAfterTransition:C.bool,component:C.elementType,components:C.shape({Backdrop:C.elementType,Root:C.elementType}),componentsProps:C.shape({backdrop:C.oneOfType([C.func,C.object]),root:C.oneOfType([C.func,C.object])}),container:C.oneOfType([jo,C.func]),disableAutoFocus:C.bool,disableEnforceFocus:C.bool,disableEscapeKeyDown:C.bool,disablePortal:C.bool,disableRestoreFocus:C.bool,disableScrollLock:C.bool,hideBackdrop:C.bool,keepMounted:C.bool,onBackdropClick:C.func,onClose:C.func,onTransitionEnter:C.func,onTransitionExited:C.func,open:C.bool.isRequired,slotProps:C.shape({backdrop:C.oneOfType([C.func,C.object]),root:C.oneOfType([C.func,C.object])}),slots:C.shape({backdrop:C.elementType,root:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function hQ(e){return Gt("MuiPaper",e)}Jt("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 gQ=["className","component","elevation","square","variant"],mQ=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xt(i,hQ,o)},vQ=ge("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 ee({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"&&ee({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Xr("#fff",ig(t.elevation))}, ${Xr("#fff",ig(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),B2=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:d="elevation"}=r,u=Be(r,gQ),p=ee({},r,{component:i,elevation:s,square:l,variant:d}),g=mQ(p);return process.env.NODE_ENV!=="production"&&wt().shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
189
- `)),f.jsx(vQ,ee({as:i,ownerState:p,className:$e(g.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(B2.propTypes={children:C.node,classes:C.object,className:C.string,component:C.elementType,elevation:ko(Bc,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:C.bool,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),variant:C.oneOfType([C.oneOf(["elevation","outlined"]),C.string])});function yQ(e){return Gt("MuiDialog",e)}const Rf=Jt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),N2=B.createContext({});process.env.NODE_ENV!=="production"&&(N2.displayName="DialogContext");const bQ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],CQ=ge(L2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xQ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${Ve(n)}`],paper:["paper",`paperScroll${Ve(n)}`,`paperWidth${Ve(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Xt(s,yQ,t)},wQ=ge(Rb,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),SQ=ge("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ve(n.scroll)}`]]}})(({ownerState:e})=>ee({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"}})),AQ=ge(B2,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ve(n.scroll)}`],t[`paperWidth${Ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>ee({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)`,[`&.${Rf.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}`,[`&.${Rf.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,[`&.${Rf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mb=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialog"}),o=wt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:d,BackdropProps:u,children:p,className:g,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:v=!1,maxWidth:b="sm",onBackdropClick:x,onClick:S,onClose:I,open:w,PaperComponent:T=B2,PaperProps:P={},scroll:M="paper",TransitionComponent:j=F2,transitionDuration:D=i,TransitionProps:N}=r,k=Be(r,bQ),_=ee({},r,{disableEscapeKeyDown:h,fullScreen:m,fullWidth:v,maxWidth:b,scroll:M}),U=xQ(_),H=B.useRef(),G=W=>{H.current=W.target===W.currentTarget},Y=W=>{S&&S(W),H.current&&(H.current=null,x&&x(W),I&&I(W,"backdropClick"))},V=u3(l),Z=B.useMemo(()=>({titleId:V}),[V]);return f.jsx(wQ,ee({className:$e(U.root,g),closeAfterTransition:!0,components:{Backdrop:CQ},componentsProps:{backdrop:ee({transitionDuration:D,as:d},u)},disableEscapeKeyDown:h,onClose:I,open:w,ref:n,onClick:Y,ownerState:_},k,{children:f.jsx(j,ee({appear:!0,in:w,timeout:D,role:"presentation"},N,{children:f.jsx(SQ,{className:$e(U.container),onMouseDown:G,ownerState:_,children:f.jsx(AQ,ee({as:T,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":V},P,{className:$e(U.paper,P.className),ownerState:_,children:f.jsx(N2.Provider,{value:Z,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(Mb.propTypes={"aria-describedby":C.string,"aria-labelledby":C.string,BackdropComponent:C.elementType,BackdropProps:C.object,children:C.node,classes:C.object,className:C.string,disableEscapeKeyDown:C.bool,fullScreen:C.bool,fullWidth:C.bool,maxWidth:C.oneOfType([C.oneOf(["xs","sm","md","lg","xl",!1]),C.string]),onBackdropClick:C.func,onClick:C.func,onClose:C.func,open:C.bool.isRequired,PaperComponent:C.elementType,PaperProps:C.object,scroll:C.oneOf(["body","paper"]),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),TransitionComponent:C.elementType,transitionDuration:C.oneOfType([C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})]),TransitionProps:C.object});function EQ(e){return Gt("MuiDialogActions",e)}Jt("MuiDialogActions",["root","spacing"]);const TQ=["className","disableSpacing"],IQ=e=>{const{classes:t,disableSpacing:n}=e;return Xt({root:["root",!n&&"spacing"]},EQ,t)},OQ=ge("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ee({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),kb=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=Be(r,TQ),l=ee({},r,{disableSpacing:i}),d=IQ(l);return f.jsx(OQ,ee({className:$e(d.root,o),ownerState:l,ref:n},s))});process.env.NODE_ENV!=="production"&&(kb.propTypes={children:C.node,classes:C.object,className:C.string,disableSpacing:C.bool,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function PQ(e){return Gt("MuiDialogContent",e)}Jt("MuiDialogContent",["root","dividers"]);function jQ(e){return Gt("MuiDialogTitle",e)}const RQ=Jt("MuiDialogTitle",["root"]),MQ=["className","dividers"],kQ=e=>{const{classes:t,dividers:n}=e;return Xt({root:["root",n&&"dividers"]},PQ,t)},_Q=ge("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>ee({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}`}:{[`.${RQ.root} + &`]:{paddingTop:0}})),_b=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=Be(r,MQ),l=ee({},r,{dividers:i}),d=kQ(l);return f.jsx(_Q,ee({className:$e(d.root,o),ownerState:l,ref:n},s))});process.env.NODE_ENV!=="production"&&(_b.propTypes={children:C.node,classes:C.object,className:C.string,dividers:C.bool,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function DQ(e){return Gt("MuiDialogContentText",e)}Jt("MuiDialogContentText",["root"]);const FQ=["children","className"],LQ=e=>{const{classes:t}=e,r=Xt({root:["root"]},DQ,t);return ee({},t,r)},BQ=ge(f3,{shouldForwardProp:e=>e2(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Db=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=Be(r,FQ),s=LQ(i);return f.jsx(BQ,ee({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:$e(s.root,o)},r,{classes:s}))});process.env.NODE_ENV!=="production"&&(Db.propTypes={children:C.node,classes:C.object,className:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});const NQ=["className","id"],$Q=e=>{const{classes:t}=e;return Xt({root:["root"]},jQ,t)},VQ=ge(f3,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Fb=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=Be(r,NQ),l=r,d=$Q(l),{titleId:u=i}=B.useContext(N2);return f.jsx(VQ,ee({component:"h2",className:$e(d.root,o),ownerState:l,ref:n,variant:"h6",id:i??u},s))});process.env.NODE_ENV!=="production"&&(Fb.propTypes={children:C.node,classes:C.object,className:C.string,id:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});var $2={},zQ=Pr;Object.defineProperty($2,"__esModule",{value:!0});var Lb=$2.default=void 0,WQ=zQ(io()),UQ=f;Lb=$2.default=(0,WQ.default)((0,UQ.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 V2={},HQ=Pr;Object.defineProperty(V2,"__esModule",{value:!0});var Bb=V2.default=void 0,GQ=HQ(io()),qQ=f;Bb=V2.default=(0,GQ.default)((0,qQ.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 Sl=function(){return Sl=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},Sl.apply(this,arguments)},YQ=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},Nb=function(e){var t,n=e.className,r=e.isOpen,o=r===void 0?!1:r,i=e.loading,s=e.title,l=e.content,d=e.cancel,u=d===void 0?"ra.action.cancel":d,p=e.confirm,g=p===void 0?"ra.action.confirm":p,h=e.confirmColor,m=h===void 0?"primary":h,v=e.ConfirmIcon,b=v===void 0?Lb:v,x=e.CancelIcon,S=x===void 0?Bb:x,I=e.onClose,w=e.onConfirm,T=e.translateOptions,P=T===void 0?{}:T,M=YQ(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),j=ne.useTranslate(),D=O.useCallback(function(k){k.stopPropagation(),w(k)},[w]),N=O.useCallback(function(k){k.stopPropagation()},[]);return B.createElement(KQ,Sl({className:n,open:o,onClose:I,onClick:N,"aria-labelledby":"alert-dialog-title"},M),B.createElement(Fb,{id:"alert-dialog-title"},typeof s=="string"?j(s,Sl({_:s},P)):s),B.createElement(_b,null,typeof l=="string"?B.createElement(Db,null,j(l,Sl({_:l},P))):l),B.createElement(kb,null,B.createElement(mu,{disabled:i,onClick:I,startIcon:B.createElement(S,null)},j(u,{_:u})),B.createElement(mu,{disabled:i,onClick:D,className:pa("ra-confirm",(t={},t[Eu.confirmWarning]=m==="warning",t[Eu.confirmPrimary]=m==="primary",t)),autoFocus:!0,startIcon:B.createElement(b,null)},j(g,{_:g}))))};Nb.propTypes={cancel:C.string,className:C.string,confirm:C.string,confirmColor:C.string,ConfirmIcon:C.elementType,CancelIcon:C.elementType,content:C.node.isRequired,isOpen:C.bool,loading:C.bool,onClose:C.func.isRequired,onConfirm:C.func.isRequired,title:C.node.isRequired,sx:C.any};var E0="RaConfirm",Eu={confirmPrimary:"".concat(E0,"-confirmPrimary"),confirmWarning:"".concat(E0,"-confirmWarning")},KQ=ge(Mb,{name:E0,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["& .".concat(Eu.confirmPrimary)]={color:n.palette.primary.main},t["& .".concat(Eu.confirmWarning)]={color:n.palette.error.main,"&:hover":{backgroundColor:nt(n.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),z2={},ZQ=Pr;Object.defineProperty(z2,"__esModule",{value:!0});var $b=z2.default=void 0,XQ=ZQ(io()),QQ=f;$b=z2.default=(0,XQ.default)((0,QQ.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var W2={},JQ=Pr;Object.defineProperty(W2,"__esModule",{value:!0});var Vb=W2.default=void 0,eJ=JQ(io()),tJ=f;Vb=W2.default=(0,eJ.default)((0,tJ.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 nJ=function(e){var t=e.children,n=e.editor,r=e.preferenceKey,o=e.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,s=e.sx,l="preferences.".concat(r),d=ne.usePreferencesEditor(),u=!!d,p=ne.useTranslate(),g=d||{},h=g.isEnabled,m=g.setEditor,v=g.preferenceKey,b=g.setPreferenceKey,x=l===v,S=O.useRef(x),I=O.useRef(null),w=O.useState(!1),T=w[0],P=w[1];if(O.useEffect(function(){S.current=x},[x]),O.useEffect(function(){return function(){S.current&&(b&&b(null),m&&m(null))}},[m,b]),!u)return t;var M=function(){m(O.cloneElement(n,{preferenceKey:l,key:l})),b(l)},j=function(){P(!0)},D=function(){P(!1)};return B.createElement(ne.PreferenceKeyContextProvider,{value:l},B.createElement(rJ,{className:pa(xo.root,h&&xo.editMode,x&&xo.editorActive),sx:s,ref:I,onMouseEnter:h?j:void 0,onMouseLeave:h?D:void 0},t),B.createElement(E.Popover,{open:h&&(T||x),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:I.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:D,PaperProps:{elevation:1,onMouseEnter:j,onMouseLeave:D,title:p(i),onClick:M},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},B.createElement(Vb,{fontSize:"12px"})))},Wc="RaConfigurable",xo={root:"".concat(Wc,"-root"),editMode:"".concat(Wc,"-editMode"),editorActive:"".concat(Wc,"-editorActive")},rJ=ge("span",{name:Wc,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(xo.editMode)]={transition:n.transitions.create("outline"),outline:"".concat(E.alpha(n.palette.warning.main,.3)," solid 2px")},t["&.".concat(xo.editMode,":hover ")]={outline:"".concat(E.alpha(n.palette.warning.main,.5)," solid 2px")},t["&.".concat(xo.editMode,".").concat(xo.editorActive," , &.").concat(xo.editMode,".").concat(xo.editorActive,":hover ")]={outline:"".concat(n.palette.warning.main," solid 2px")},t}),Ni=function(){return Ni=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},Ni.apply(this,arguments)},oJ=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},iJ=function(e){var t=e.title,n=e.defaultTitle,r=e.className,o=oJ(e,["title","defaultTitle","className"]),i=ne.usePreference()[0],s=ne.useTranslate(),l=ne.useRecordContext();return i?B.createElement("span",Ni({className:r},o),s(i,Ni(Ni({},l),{_:i}))):B.createElement("span",{className:r},t?typeof t=="string"?B.createElement("span",Ni({},o),s(t,{_:t})):t:B.createElement("span",Ni({},o),n))},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)},sJ=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},aJ=function(){var e=ne.usePreferenceInput();return B.createElement("form",null,B.createElement(E.TextField,Tu({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},lJ=function(e){var t=e.preferenceKey,n=sJ(e,["preferenceKey"]),r=ut.useLocation().pathname;return B.createElement(nJ,{editor:B.createElement(aJ,null),preferenceKey:t||"".concat(r,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},B.createElement(iJ,Tu({},n)))},T0=function(){return T0=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},T0.apply(this,arguments)},cJ=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},zb=function(e){var t=e.defaultTitle,n=e.title,r=e.preferenceKey,o=cJ(e,["defaultTitle","title","preferenceKey"]),i=O.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),s=i[0],l=i[1];return O.useEffect(function(){l(function(d){var u=typeof document<"u"&&document.body.contains(d);return d&&u?d:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),s?(ne.warning(!t&&!n,"Missing title prop in <Title> element"),Us.createPortal(B.createElement(lJ,T0({title:n,defaultTitle:t,preferenceKey:r},o)),s)):null},uJ=C.oneOfType([C.string,C.element]);zb.propTypes={defaultTitle:C.string,className:C.string,record:C.any,title:uJ};var dJ=function(e){var t=Yi.useLocation().pathname,n=O.useRef(t);O.useEffect(function(){t!==n.current&&e()},[t,e])},fJ=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])})},d5={error:null},pJ=function(e){i2(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.state=d5,r.resetErrorBoundary=function(){for(var l,d=arguments.length,u=new Array(d),p=0;p<d;p++)u[p]=arguments[p];r.props.onReset==null||(l=r.props).onReset.apply(l,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(d5)},n.componentDidCatch=function(o,i){var s,l;(s=(l=this.props).onError)==null||s.call(l,o,i)},n.componentDidUpdate=function(o,i){var s=this.state.error,l=this.props.resetKeys;if(s!==null&&i.error!==null&&fJ(o.resetKeys,l)){var d,u;(d=(u=this.props).onResetKeysChange)==null||d.call(u,o.resetKeys,l),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,s=i.fallbackRender,l=i.FallbackComponent,d=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(B.isValidElement(d))return d;if(typeof s=="function")return s(u);if(l)return B.createElement(l,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(B.Component),hJ=xa,gJ=ts,mJ="[object Symbol]";function vJ(e){return typeof e=="symbol"||gJ(e)&&hJ(e)==mJ}var U2=vJ,yJ=hi,bJ=U2,CJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xJ=/^\w*$/;function wJ(e,t){if(yJ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bJ(e)?!0:xJ.test(e)||!CJ.test(e)||t!=null&&e in Object(t)}var SJ=wJ,Wb=S2,AJ="Expected a function";function H2(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(AJ);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(H2.Cache||Wb),n}H2.Cache=Wb;var EJ=H2,TJ=EJ,IJ=500;function OJ(e){var t=TJ(e,function(r){return n.size===IJ&&n.clear(),r}),n=t.cache;return t}var PJ=OJ,jJ=PJ,RJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MJ=/\\(\\)?/g,kJ=jJ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(RJ,function(n,r,o,i){t.push(o?i.replace(MJ,"$1"):r||n)}),t}),_J=kJ;function DJ(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 Ub=DJ,f5=d1,FJ=Ub,LJ=hi,BJ=U2,NJ=1/0,p5=f5?f5.prototype:void 0,h5=p5?p5.toString:void 0;function Hb(e){if(typeof e=="string")return e;if(LJ(e))return FJ(e,Hb)+"";if(BJ(e))return h5?h5.call(e):"";var t=e+"";return t=="0"&&1/e==-NJ?"-0":t}var $J=Hb,VJ=$J;function zJ(e){return e==null?"":VJ(e)}var WJ=zJ,UJ=hi,HJ=SJ,GJ=_J,qJ=WJ;function YJ(e,t){return UJ(e)?e:HJ(e,t)?[e]:GJ(qJ(e))}var KJ=YJ,ZJ=U2,XJ=1/0;function QJ(e){if(typeof e=="string"||ZJ(e))return e;var t=e+"";return t=="0"&&1/e==-XJ?"-0":t}var JJ=QJ,eee=KJ,tee=JJ;function nee(e,t){t=eee(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[tee(t[n++])];return n&&n==r?e:void 0}var ree=nee,oee=ree;function iee(e,t,n){var r=e==null?void 0:oee(e,t);return r===void 0?n:r}var see=iee;const Sc=Nr(see);var I0=function(){return I0=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},I0.apply(this,arguments)},aee=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},Gb=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,s=aee(e,["className","loadingPrimary","loadingSecondary"]),l=ne.useTimeout(1e3),d=ne.useTranslate();return l?B.createElement(lee,I0({className:t},s),B.createElement("div",{className:Iu.message},B.createElement(y3,{className:Iu.icon}),B.createElement(E.Typography,{variant:"h5",mt:3,color:"text.secondary"},d(r,{_:r})),B.createElement(E.Typography,{variant:"body2"},d(i,{_:i})))):null};Gb.propTypes={className:C.string,loadingPrimary:C.string,loadingSecondary:C.string};var Uc="RaLoading",Iu={root:"".concat(Uc,"-root"),icon:"".concat(Uc,"-icon"),message:"".concat(Uc,"-message")},lee=ge("div",{name:Uc,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(Iu.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:n.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(Iu.icon)]={width:"9em",height:"9em"},t}),G2={},cee=Pr;Object.defineProperty(G2,"__esModule",{value:!0});var qb=G2.default=void 0,uee=cee(io()),dee=f;qb=G2.default=(0,uee.default)((0,dee.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 O0=function(){return O0=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},O0.apply(this,arguments)},fee=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},Yb=function(e){var t=e.icon,n=t===void 0?hee:t,r=e.label,o=r===void 0?"ra.action.edit":r,i=e.scrollToTop,s=i===void 0?!0:i,l=e.className,d=fee(e,["icon","label","scrollToTop","className"]),u=ne.useResourceContext(e),p=ne.useRecordContext(e),g=ne.useCreatePath();return p?B.createElement(vee,O0({component:ut.Link,to:g({type:"edit",resource:u,id:p.id}),state:pee[String(s)],label:o,onClick:gee,className:pa(mee.root,l)},d),n):null},pee={true:{_scrollToTop:!0},false:{}},hee=B.createElement(qb,null),gee=function(e){return e.stopPropagation()};Yb.propTypes={icon:C.element,label:C.string,record:C.any,scrollToTop:C.bool};var Kb="RaEditButton",mee={root:"".concat(Kb,"-root")},vee=ge(y2,{name:Kb,overridesResolver:function(e,t){return t.root}})({}),q2={},yee=Pr;Object.defineProperty(q2,"__esModule",{value:!0});var Zb=q2.default=void 0,bee=yee(io()),Cee=f;Zb=q2.default=(0,bee.default)((0,Cee.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 xee=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P0(e){return`scale(${e}, ${e**2})`}const wee={entering:{opacity:1,transform:P0(1)},entered:{opacity:1,transform:"none"}},Mf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ou=B.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:d,onEntered:u,onEntering:p,onExit:g,onExited:h,onExiting:m,style:v,timeout:b="auto",TransitionComponent:x=oo}=t,S=Be(t,xee),I=Zs(),w=B.useRef(),T=wt(),P=B.useRef(null),M=pn(P,i.ref,n),j=Y=>V=>{if(Y){const Z=P.current;V===void 0?Y(Z):Y(Z,V)}},D=j(p),N=j((Y,V)=>{jb(Y);const{duration:Z,delay:W,easing:se}=Su({style:v,timeout:b,easing:s},{mode:"enter"});let K;b==="auto"?(K=T.transitions.getAutoHeightDuration(Y.clientHeight),w.current=K):K=Z,Y.style.transition=[T.transitions.create("opacity",{duration:K,delay:W}),T.transitions.create("transform",{duration:Mf?K:K*.666,delay:W,easing:se})].join(","),d&&d(Y,V)}),k=j(u),_=j(m),U=j(Y=>{const{duration:V,delay:Z,easing:W}=Su({style:v,timeout:b,easing:s},{mode:"exit"});let se;b==="auto"?(se=T.transitions.getAutoHeightDuration(Y.clientHeight),w.current=se):se=V,Y.style.transition=[T.transitions.create("opacity",{duration:se,delay:Z}),T.transitions.create("transform",{duration:Mf?se:se*.666,delay:Mf?Z:Z||se*.333,easing:W})].join(","),Y.style.opacity=0,Y.style.transform=P0(.75),g&&g(Y)}),H=j(h),G=Y=>{b==="auto"&&I.start(w.current||0,Y),r&&r(P.current,Y)};return f.jsx(x,ee({appear:o,in:l,nodeRef:P,onEnter:N,onEntered:k,onEntering:D,onExit:U,onExited:H,onExiting:_,addEndListener:G,timeout:b==="auto"?null:b},S,{children:(Y,V)=>B.cloneElement(i,ee({style:ee({opacity:0,transform:P0(.75),visibility:Y==="exited"&&!l?"hidden":void 0},wee[Y],v,i.props.style),ref:M},V))}))});process.env.NODE_ENV!=="production"&&(Ou.propTypes={addEndListener:C.func,appear:C.bool,children:va.isRequired,easing:C.oneOfType([C.shape({enter:C.string,exit:C.string}),C.string]),in:C.bool,onEnter:C.func,onEntered:C.func,onEntering:C.func,onExit:C.func,onExited:C.func,onExiting:C.func,style:C.object,timeout:C.oneOfType([C.oneOf(["auto"]),C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})])});Ou.muiSupportAuto=!0;const Xb="base";function See(e){return`${Xb}--${e}`}function Aee(e,t){return`${Xb}-${e}-${t}`}function Qb(e,t){const n=ey[t];return n?See(n):Aee(e,t)}function Eee(e,t){const n={};return t.forEach(r=>{n[r]=Qb(e,r)}),n}const Jb="Popper";function Tee(e){return Qb(Jb,e)}Eee(Jb,["root"]);const Iee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Oee=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Pee(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 Pu(e){return typeof e=="function"?e():e}function T3(e){return e.nodeType!==void 0}function jee(e){return!T3(e)}const Ree=()=>Xt({root:["root"]},WB(Tee)),Mee={},kee=B.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:d,open:u,placement:p,popperOptions:g,popperRef:h,slotProps:m={},slots:v={},TransitionProps:b}=t,x=Be(t,Iee),S=B.useRef(null),I=pn(S,n),w=B.useRef(null),T=pn(w,h),P=B.useRef(T);no(()=>{P.current=T},[T]),B.useImperativeHandle(h,()=>w.current,[]);const M=Pee(p,s),[j,D]=B.useState(M),[N,k]=B.useState(Pu(o));B.useEffect(()=>{w.current&&w.current.forceUpdate()}),B.useEffect(()=>{o&&k(Pu(o))},[o]),no(()=>{if(!N||!u)return;const Y=W=>{D(W.placement)};if(process.env.NODE_ENV!=="production"&&N&&T3(N)&&N.nodeType===1){const W=N.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:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{Y(W)}}];d!=null&&(V=V.concat(d)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const Z=Wy(N,S.current,ee({placement:M},g,{modifiers:V}));return P.current(Z),()=>{Z.destroy(),P.current(null)}},[N,l,d,u,g,M]);const _={placement:j};b!==null&&(_.TransitionProps=b);const U=Ree(),H=(r=v.root)!=null?r:"div",G=lu({elementType:H,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:U.root});return f.jsx(H,ee({},G,{children:typeof i=="function"?i(_):i}))}),eC=B.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:p,placement:g="bottom",popperOptions:h=Mee,popperRef:m,style:v,transition:b=!1,slotProps:x={},slots:S={}}=t,I=Be(t,Oee),[w,T]=B.useState(!0),P=()=>{T(!1)},M=()=>{T(!0)};if(!d&&!p&&(!b||w))return null;let j;if(i)j=i;else if(r){const k=Pu(r);j=k&&T3(k)?nr(k).body:nr(null).body}const D=!p&&d&&(!b||w)?"none":void 0,N=b?{in:p,onEnter:P,onExited:M}:void 0;return f.jsx($l,{disablePortal:l,container:j,children:f.jsx(kee,ee({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:b?!w:p,placement:g,popperOptions:h,popperRef:m,slotProps:x,slots:S},I,{style:ee({position:"fixed",top:0,left:0,display:D},v),TransitionProps:N,children:o}))})});process.env.NODE_ENV!=="production"&&(eC.propTypes={anchorEl:ko(C.oneOfType([jo,C.object,C.func]),e=>{if(e.open){const t=Pu(e.anchorEl);if(t&&T3(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()})(Pn,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,""]],s=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],l=new RegExp("(_ids|_id)$","g"),d=new RegExp("_","g"),u=new RegExp("[ _]","g"),p=new RegExp("([A-Z])","g"),g=new RegExp("^_"),h={_apply_rules:function(m,v,b,x){if(x)m=x;else{var S=h.indexOf(b,m.toLowerCase())>-1;if(!S){for(var I=0,w=v.length;I<w;I++)if(m.match(v[I][0])){v[I][1]!==void 0&&(m=m.replace(v[I][0],v[I][1]));break}}}return m},indexOf:function(m,v,b,x){b||(b=-1);for(var S=-1,I=b,w=m.length;I<w;I++)if(m[I]===v||x&&x(m[I],v)){S=I;break}return S},pluralize:function(m,v){return h._apply_rules(m,o,n,v)},singularize:function(m,v){return h._apply_rules(m,i,n,v)},inflect:function(m,v,b,x){return v=parseInt(v,10),isNaN(v)?m:v===0||v>1?h._apply_rules(m,o,n,x):h._apply_rules(m,i,n,b)},camelize:function(m,v){for(var b=m.split("/"),x=0,S=b.length,I,w,T,P;x<S;x++){for(I=b[x].split("_"),w=0,T=I.length;w<T;w++)w!==0&&(I[w]=I[w].toLowerCase()),P=I[w].charAt(0),P=v&&x===0&&w===0?P.toLowerCase():P.toUpperCase(),I[w]=P+I[w].substring(1);b[x]=I.join("")}return b.join("::")},underscore:function(m,v){if(v&&m===m.toUpperCase())return m;for(var b=m.split("::"),x=0,S=b.length;x<S;x++)b[x]=b[x].replace(p,"_$1"),b[x]=b[x].replace(g,"");return b.join("/").toLowerCase()},humanize:function(m,v){return m=m.toLowerCase(),m=m.replace(l,""),m=m.replace(d," "),v||(m=h.capitalize(m)),m},capitalize:function(m){return m=m.toLowerCase(),m.substring(0,1).toUpperCase()+m.substring(1)},dasherize:function(m){return m.replace(u,"-")},titleize:function(m){m=m.toLowerCase().replace(d," ");for(var v=m.split(" "),b=0,x=v.length,S,I,w;b<x;b++){for(S=v[b].split("-"),I=0,w=S.length;I<w;I++)h.indexOf(s,S[I].toLowerCase())<0&&(S[I]=h.capitalize(S[I]));v[b]=S.join("-")}return m=v.join(" "),m=m.substring(0,1).toUpperCase()+m.substring(1),m},demodulize:function(m){var v=m.split("::");return v[v.length-1]},tableize:function(m){return m=h.underscore(m),m=h.pluralize(m),m},classify:function(m){return m=h.camelize(m),m=h.singularize(m),m},foreign_key:function(m,v){return m=h.demodulize(m),m=h.underscore(m)+(v?"":"_")+"id",m},ordinalize:function(m){for(var v=m.split(" "),b=0,x=v.length;b<x;b++){var S=parseInt(v[b],10);if(!isNaN(S)){var I=v[b].substring(v[b].length-2),w=v[b].substring(v[b].length-1),T="th";I!="11"&&I!="12"&&I!="13"&&(w==="1"?T="st":w==="2"?T="nd":w==="3"&&(T="rd")),v[b]+=T}}return v.join(" ")},transform:function(m,v){for(var b=0,x=v.length;b<x;b++){var S=v[b];h.hasOwnProperty(S)&&(m=h[S](m))}return m}};return h.version="1.12.0",h})})(Ob);var BX=Ob.exports;const ei=Nr(BX);var A0=function(){return A0=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},A0.apply(this,arguments)},NX=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},wc,Pf,Pb=function(e){var t=e.className,n=e.onClick,r=e.sx,o=NX(e,["className","onClick","sx"]),i=ne.useLoading(),s=wt();return B.createElement($X,{className:t,sx:r},B.createElement(oC,{className:"".concat(ta.loadedIcon," ").concat(i&&ta.loadedLoading),onClick:n}),i&&B.createElement(y3,A0({className:pa("app-loader",ta.loader),color:"inherit",size:s.spacing(2),thickness:6},o)))};Pb.propTypes={classes:C.object,className:C.string,width:C.string};var zc="RaLoadingIndicator",ta={loader:"".concat(zc,"-loader"),loadedLoading:"".concat(zc,"-loadedLoading"),loadedIcon:"".concat(zc,"-loadedIcon")},$X=ge("div",{name:zc,overridesResolver:function(e,t){return t.root}})((wc={position:"relative"},wc["& .".concat(ta.loadedIcon)]=(Pf={},Pf["&.".concat(ta.loadedLoading)]={opacity:0},Pf),wc["& .".concat(ta.loader)]={position:"absolute",top:"30%",left:"30%"},wc));const jb=e=>e.scrollTop;function Su(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function VX(e){const t=nr(e);return t.body===e?c3(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function c5(e){return parseInt(c3(e).getComputedStyle(e).paddingRight,10)||0}function zX(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 u5(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=i.indexOf(s)===-1,d=!zX(s);l&&d&&wl(s,o)})}function jf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function WX(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(VX(r)){const s=dN(nr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${c5(r)+s}px`;const l=nr(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${c5(d)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=nr(r).body;else{const s=r.parentElement,l=c3(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function UX(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HX{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&&wl(t.modalRef,!1);const o=UX(n);u5(n,t.mount,t.modalRef,o,!0);const i=jf(this.containers,s=>s.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=jf(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=WX(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=jf(this.containers,s=>s.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&&wl(t.modalRef,n),u5(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&wl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function GX(e){return typeof e=="function"?e():e}function qX(e){return e?e.props.hasOwnProperty("in"):!1}const YX=new HX;function KX(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=YX,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:d,onClose:u,open:p,rootRef:g}=e,h=B.useRef({}),m=B.useRef(null),v=B.useRef(null),b=pn(v,g),[x,S]=B.useState(!p),I=qX(d);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const T=()=>nr(m.current),P=()=>(h.current.modalRef=v.current,h.current.mount=m.current,h.current),M=()=>{o.mount(P(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},j=Ao(()=>{const V=GX(t)||T().body;o.add(P(),V),v.current&&M()}),_=B.useCallback(()=>o.isTopModal(P()),[o]),N=Ao(V=>{m.current=V,V&&(p&&_()?M():v.current&&wl(v.current,w))}),k=B.useCallback(()=>{o.remove(P(),w)},[w,o]);B.useEffect(()=>()=>{k()},[k]),B.useEffect(()=>{p?j():(!I||!i)&&k()},[p,k,I,i,j]);const D=V=>Z=>{var W;(W=V.onKeyDown)==null||W.call(V,Z),!(Z.key!=="Escape"||Z.which===229||!_())&&(n||(Z.stopPropagation(),u&&u(Z,"escapeKeyDown")))},U=V=>Z=>{var W;(W=V.onClick)==null||W.call(V,Z),Z.target===Z.currentTarget&&u&&u(Z,"backdropClick")};return{getRootProps:(V={})=>{const Z=gy(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const W=ee({},Z,V);return ee({role:"presentation"},W,{onKeyDown:D(W),ref:b})},getBackdropProps:(V={})=>{const Z=V;return ee({"aria-hidden":!0},Z,{onClick:U(Z),open:p})},getTransitionProps:()=>{const V=()=>{S(!1),s&&s()},Z=()=>{S(!0),l&&l(),i&&k()};return{onEnter:c0(V,d==null?void 0:d.props.onEnter),onExited:c0(Z,d==null?void 0:d.props.onExited)}},rootRef:b,portalRef:N,isTopModal:_,exited:x,hasTransition:I}}const ZX=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XX(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 QX(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 JX(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||QX(e))}function eQ(e){const t=[],n=[];return Array.from(e.querySelectorAll(ZX)).forEach((r,o)=>{const i=XX(r);i===-1||!JX(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 tQ(){return!0}function Au(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=eQ,isEnabled:s=tQ,open:l}=e,d=B.useRef(!1),u=B.useRef(null),p=B.useRef(null),g=B.useRef(null),h=B.useRef(null),m=B.useRef(!1),v=B.useRef(null),b=pn(t.ref,v),x=B.useRef(null);B.useEffect(()=>{!l||!v.current||(m.current=!n)},[n,l]),B.useEffect(()=>{if(!l||!v.current)return;const w=nr(v.current);return v.current.contains(w.activeElement)||(v.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
+ `)),v.current.setAttribute("tabIndex","-1")),m.current&&v.current.focus()),()=>{o||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[l]),B.useEffect(()=>{if(!l||!v.current)return;const w=nr(v.current),T=j=>{x.current=j,!(r||!s()||j.key!=="Tab")&&w.activeElement===v.current&&j.shiftKey&&(d.current=!0,p.current&&p.current.focus())},P=()=>{const j=v.current;if(j===null)return;if(!w.hasFocus()||!s()||d.current){d.current=!1;return}if(j.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==p.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let _=[];if((w.activeElement===u.current||w.activeElement===p.current)&&(_=i(v.current)),_.length>0){var N,k;const D=!!((N=x.current)!=null&&N.shiftKey&&((k=x.current)==null?void 0:k.key)==="Tab"),U=_[0],H=_[_.length-1];typeof U!="string"&&typeof H!="string"&&(D?H.focus():U.focus())}else j.focus()};w.addEventListener("focusin",P),w.addEventListener("keydown",T,!0);const M=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(M),w.removeEventListener("focusin",P),w.removeEventListener("keydown",T,!0)}},[n,r,o,s,l,i]);const S=w=>{g.current===null&&(g.current=w.relatedTarget),m.current=!0,h.current=w.target;const T=t.props.onFocus;T&&T(w)},I=w=>{g.current===null&&(g.current=w.relatedTarget),m.current=!0};return f.jsxs(B.Fragment,{children:[f.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:u,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:b,onFocus:S}),f.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Au.propTypes={children:va,disableAutoFocus:C.bool,disableEnforceFocus:C.bool,disableRestoreFocus:C.bool,getTabbable:C.func,isEnabled:C.func,open:C.bool.isRequired});process.env.NODE_ENV!=="production"&&(Au.propTypes=i1(Au.propTypes));function nQ(e){return typeof e=="function"?e():e}const $l=B.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=B.useState(null),d=pn(B.isValidElement(r)?r.ref:null,n);if(no(()=>{i||l(nQ(o)||document.body)},[o,i]),no(()=>{if(s&&!i)return la(n,s),()=>{la(n,null)}},[n,s,i]),i){if(B.isValidElement(r)){const u={ref:d};return B.cloneElement(r,u)}return f.jsx(B.Fragment,{children:r})}return f.jsx(B.Fragment,{children:s&&c9.createPortal(r,s)})});process.env.NODE_ENV!=="production"&&($l.propTypes={children:C.node,container:C.oneOfType([jo,C.func]),disablePortal:C.bool});process.env.NODE_ENV!=="production"&&($l.propTypes=i1($l.propTypes));const rQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oQ={entering:{opacity:1},entered:{opacity:1}},F2=B.forwardRef(function(t,n){const r=wt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:d,in:u,onEnter:p,onEntered:g,onEntering:h,onExit:m,onExited:v,onExiting:b,style:x,timeout:S=o,TransitionComponent:I=oo}=t,w=Be(t,rQ),T=B.useRef(null),P=pn(T,l.ref,n),M=G=>Y=>{if(G){const V=T.current;Y===void 0?G(V):G(V,Y)}},j=M(h),_=M((G,Y)=>{jb(G);const V=Su({style:x,timeout:S,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",V),G.style.transition=r.transitions.create("opacity",V),p&&p(G,Y)}),N=M(g),k=M(b),D=M(G=>{const Y=Su({style:x,timeout:S,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",Y),G.style.transition=r.transitions.create("opacity",Y),m&&m(G)}),U=M(v),H=G=>{i&&i(T.current,G)};return f.jsx(I,ee({appear:s,in:u,nodeRef:T,onEnter:_,onEntered:N,onEntering:j,onExit:D,onExited:U,onExiting:k,addEndListener:H,timeout:S},w,{children:(G,Y)=>B.cloneElement(l,ee({style:ee({opacity:0,visibility:G==="exited"&&!u?"hidden":void 0},oQ[G],x,l.props.style),ref:P},Y))}))});process.env.NODE_ENV!=="production"&&(F2.propTypes={addEndListener:C.func,appear:C.bool,children:va.isRequired,easing:C.oneOfType([C.shape({enter:C.string,exit:C.string}),C.string]),in:C.bool,onEnter:C.func,onEntered:C.func,onEntering:C.func,onExit:C.func,onExited:C.func,onExiting:C.func,style:C.object,timeout:C.oneOfType([C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})])});function iQ(e){return Gt("MuiBackdrop",e)}Jt("MuiBackdrop",["root","invisible"]);const sQ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aQ=e=>{const{classes:t,invisible:n}=e;return Xt({root:["root",n&&"invisible"]},iQ,t)},lQ=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>ee({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"})),L2=B.forwardRef(function(t,n){var r,o,i;const s=Qt({props:t,name:"MuiBackdrop"}),{children:l,className:d,component:u="div",components:p={},componentsProps:g={},invisible:h=!1,open:m,slotProps:v={},slots:b={},TransitionComponent:x=F2,transitionDuration:S}=s,I=Be(s,sQ),w=ee({},s,{component:u,invisible:h}),T=aQ(w),P=(r=v.root)!=null?r:g.root;return f.jsx(x,ee({in:m,timeout:S},I,{children:f.jsx(lQ,ee({"aria-hidden":!0},P,{as:(o=(i=b.root)!=null?i:p.Root)!=null?o:u,className:$e(T.root,d,P==null?void 0:P.className),ownerState:ee({},w,P==null?void 0:P.ownerState),classes:T,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(L2.propTypes={children:C.node,classes:C.object,className:C.string,component:C.elementType,components:C.shape({Root:C.elementType}),componentsProps:C.shape({root:C.object}),invisible:C.bool,open:C.bool.isRequired,slotProps:C.shape({root:C.object}),slots:C.shape({root:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),TransitionComponent:C.elementType,transitionDuration:C.oneOfType([C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})])});function cQ(e){return Gt("MuiModal",e)}Jt("MuiModal",["root","hidden","backdrop"]);const uQ=["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"],dQ=e=>{const{open:t,exited:n,classes:r}=e;return Xt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cQ,r)},fQ=ge("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})=>ee({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),pQ=ge(L2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rb=B.forwardRef(function(t,n){var r,o,i,s,l,d;const u=Qt({name:"MuiModal",props:t}),{BackdropComponent:p=pQ,BackdropProps:g,className:h,closeAfterTransition:m=!1,children:v,container:b,component:x,components:S={},componentsProps:I={},disableAutoFocus:w=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:P=!1,disablePortal:M=!1,disableRestoreFocus:j=!1,disableScrollLock:_=!1,hideBackdrop:N=!1,keepMounted:k=!1,onBackdropClick:D,open:U,slotProps:H,slots:G}=u,Y=Be(u,uQ),V=ee({},u,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:T,disableEscapeKeyDown:P,disablePortal:M,disableRestoreFocus:j,disableScrollLock:_,hideBackdrop:N,keepMounted:k}),{getRootProps:Z,getBackdropProps:W,getTransitionProps:se,portalRef:K,isTopModal:$,exited:te,hasTransition:oe}=KX(ee({},V,{rootRef:n})),Q=ee({},V,{exited:te}),de=dQ(Q),pe={};if(v.props.tabIndex===void 0&&(pe.tabIndex="-1"),oe){const{onEnter:Re,onExited:ve}=se();pe.onEnter=Re,pe.onExited=ve}const ye=(r=(o=G==null?void 0:G.root)!=null?o:S.Root)!=null?r:fQ,ce=(i=(s=G==null?void 0:G.backdrop)!=null?s:S.Backdrop)!=null?i:p,be=(l=H==null?void 0:H.root)!=null?l:I.root,Ce=(d=H==null?void 0:H.backdrop)!=null?d:I.backdrop,Ee=lu({elementType:ye,externalSlotProps:be,externalForwardedProps:Y,getSlotProps:Z,additionalProps:{ref:n,as:x},ownerState:Q,className:$e(h,be==null?void 0:be.className,de==null?void 0:de.root,!Q.open&&Q.exited&&(de==null?void 0:de.hidden))}),me=lu({elementType:ce,externalSlotProps:Ce,additionalProps:g,getSlotProps:Re=>W(ee({},Re,{onClick:ve=>{D&&D(ve),Re!=null&&Re.onClick&&Re.onClick(ve)}})),className:$e(Ce==null?void 0:Ce.className,g==null?void 0:g.className,de==null?void 0:de.backdrop),ownerState:Q});return!k&&!U&&(!oe||te)?null:f.jsx($l,{ref:K,container:b,disablePortal:M,children:f.jsxs(ye,ee({},Ee,{children:[!N&&p?f.jsx(ce,ee({},me)):null,f.jsx(Au,{disableEnforceFocus:T,disableAutoFocus:w,disableRestoreFocus:j,isEnabled:$,open:U,children:B.cloneElement(v,pe)})]}))})});process.env.NODE_ENV!=="production"&&(Rb.propTypes={BackdropComponent:C.elementType,BackdropProps:C.object,children:va.isRequired,classes:C.object,className:C.string,closeAfterTransition:C.bool,component:C.elementType,components:C.shape({Backdrop:C.elementType,Root:C.elementType}),componentsProps:C.shape({backdrop:C.oneOfType([C.func,C.object]),root:C.oneOfType([C.func,C.object])}),container:C.oneOfType([jo,C.func]),disableAutoFocus:C.bool,disableEnforceFocus:C.bool,disableEscapeKeyDown:C.bool,disablePortal:C.bool,disableRestoreFocus:C.bool,disableScrollLock:C.bool,hideBackdrop:C.bool,keepMounted:C.bool,onBackdropClick:C.func,onClose:C.func,onTransitionEnter:C.func,onTransitionExited:C.func,open:C.bool.isRequired,slotProps:C.shape({backdrop:C.oneOfType([C.func,C.object]),root:C.oneOfType([C.func,C.object])}),slots:C.shape({backdrop:C.elementType,root:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function hQ(e){return Gt("MuiPaper",e)}Jt("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 gQ=["className","component","elevation","square","variant"],mQ=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xt(i,hQ,o)},vQ=ge("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 ee({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"&&ee({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Xr("#fff",ig(t.elevation))}, ${Xr("#fff",ig(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),B2=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:d="elevation"}=r,u=Be(r,gQ),p=ee({},r,{component:i,elevation:s,square:l,variant:d}),g=mQ(p);return process.env.NODE_ENV!=="production"&&wt().shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
189
+ `)),f.jsx(vQ,ee({as:i,ownerState:p,className:$e(g.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(B2.propTypes={children:C.node,classes:C.object,className:C.string,component:C.elementType,elevation:ko(Bc,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:C.bool,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),variant:C.oneOfType([C.oneOf(["elevation","outlined"]),C.string])});function yQ(e){return Gt("MuiDialog",e)}const Rf=Jt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),N2=B.createContext({});process.env.NODE_ENV!=="production"&&(N2.displayName="DialogContext");const bQ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],CQ=ge(L2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xQ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${Ve(n)}`],paper:["paper",`paperScroll${Ve(n)}`,`paperWidth${Ve(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Xt(s,yQ,t)},wQ=ge(Rb,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),SQ=ge("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ve(n.scroll)}`]]}})(({ownerState:e})=>ee({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"}})),AQ=ge(B2,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ve(n.scroll)}`],t[`paperWidth${Ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>ee({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)`,[`&.${Rf.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}`,[`&.${Rf.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,[`&.${Rf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mb=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialog"}),o=wt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:d,BackdropProps:u,children:p,className:g,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:v=!1,maxWidth:b="sm",onBackdropClick:x,onClick:S,onClose:I,open:w,PaperComponent:T=B2,PaperProps:P={},scroll:M="paper",TransitionComponent:j=F2,transitionDuration:_=i,TransitionProps:N}=r,k=Be(r,bQ),D=ee({},r,{disableEscapeKeyDown:h,fullScreen:m,fullWidth:v,maxWidth:b,scroll:M}),U=xQ(D),H=B.useRef(),G=W=>{H.current=W.target===W.currentTarget},Y=W=>{S&&S(W),H.current&&(H.current=null,x&&x(W),I&&I(W,"backdropClick"))},V=u3(l),Z=B.useMemo(()=>({titleId:V}),[V]);return f.jsx(wQ,ee({className:$e(U.root,g),closeAfterTransition:!0,components:{Backdrop:CQ},componentsProps:{backdrop:ee({transitionDuration:_,as:d},u)},disableEscapeKeyDown:h,onClose:I,open:w,ref:n,onClick:Y,ownerState:D},k,{children:f.jsx(j,ee({appear:!0,in:w,timeout:_,role:"presentation"},N,{children:f.jsx(SQ,{className:$e(U.container),onMouseDown:G,ownerState:D,children:f.jsx(AQ,ee({as:T,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":V},P,{className:$e(U.paper,P.className),ownerState:D,children:f.jsx(N2.Provider,{value:Z,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(Mb.propTypes={"aria-describedby":C.string,"aria-labelledby":C.string,BackdropComponent:C.elementType,BackdropProps:C.object,children:C.node,classes:C.object,className:C.string,disableEscapeKeyDown:C.bool,fullScreen:C.bool,fullWidth:C.bool,maxWidth:C.oneOfType([C.oneOf(["xs","sm","md","lg","xl",!1]),C.string]),onBackdropClick:C.func,onClick:C.func,onClose:C.func,open:C.bool.isRequired,PaperComponent:C.elementType,PaperProps:C.object,scroll:C.oneOf(["body","paper"]),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),TransitionComponent:C.elementType,transitionDuration:C.oneOfType([C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})]),TransitionProps:C.object});function EQ(e){return Gt("MuiDialogActions",e)}Jt("MuiDialogActions",["root","spacing"]);const TQ=["className","disableSpacing"],IQ=e=>{const{classes:t,disableSpacing:n}=e;return Xt({root:["root",!n&&"spacing"]},EQ,t)},OQ=ge("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ee({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),kb=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=Be(r,TQ),l=ee({},r,{disableSpacing:i}),d=IQ(l);return f.jsx(OQ,ee({className:$e(d.root,o),ownerState:l,ref:n},s))});process.env.NODE_ENV!=="production"&&(kb.propTypes={children:C.node,classes:C.object,className:C.string,disableSpacing:C.bool,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function PQ(e){return Gt("MuiDialogContent",e)}Jt("MuiDialogContent",["root","dividers"]);function jQ(e){return Gt("MuiDialogTitle",e)}const RQ=Jt("MuiDialogTitle",["root"]),MQ=["className","dividers"],kQ=e=>{const{classes:t,dividers:n}=e;return Xt({root:["root",n&&"dividers"]},PQ,t)},_Q=ge("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>ee({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}`}:{[`.${RQ.root} + &`]:{paddingTop:0}})),_b=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=Be(r,MQ),l=ee({},r,{dividers:i}),d=kQ(l);return f.jsx(_Q,ee({className:$e(d.root,o),ownerState:l,ref:n},s))});process.env.NODE_ENV!=="production"&&(_b.propTypes={children:C.node,classes:C.object,className:C.string,dividers:C.bool,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});function DQ(e){return Gt("MuiDialogContentText",e)}Jt("MuiDialogContentText",["root"]);const FQ=["children","className"],LQ=e=>{const{classes:t}=e,r=Xt({root:["root"]},DQ,t);return ee({},t,r)},BQ=ge(f3,{shouldForwardProp:e=>e2(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Db=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=Be(r,FQ),s=LQ(i);return f.jsx(BQ,ee({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:$e(s.root,o)},r,{classes:s}))});process.env.NODE_ENV!=="production"&&(Db.propTypes={children:C.node,classes:C.object,className:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});const NQ=["className","id"],$Q=e=>{const{classes:t}=e;return Xt({root:["root"]},jQ,t)},VQ=ge(f3,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Fb=B.forwardRef(function(t,n){const r=Qt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=Be(r,NQ),l=r,d=$Q(l),{titleId:u=i}=B.useContext(N2);return f.jsx(VQ,ee({component:"h2",className:$e(d.root,o),ownerState:l,ref:n,variant:"h6",id:i??u},s))});process.env.NODE_ENV!=="production"&&(Fb.propTypes={children:C.node,classes:C.object,className:C.string,id:C.string,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object])});var $2={},zQ=Pr;Object.defineProperty($2,"__esModule",{value:!0});var Lb=$2.default=void 0,WQ=zQ(io()),UQ=f;Lb=$2.default=(0,WQ.default)((0,UQ.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 V2={},HQ=Pr;Object.defineProperty(V2,"__esModule",{value:!0});var Bb=V2.default=void 0,GQ=HQ(io()),qQ=f;Bb=V2.default=(0,GQ.default)((0,qQ.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 Sl=function(){return Sl=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},Sl.apply(this,arguments)},YQ=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},Nb=function(e){var t,n=e.className,r=e.isOpen,o=r===void 0?!1:r,i=e.loading,s=e.title,l=e.content,d=e.cancel,u=d===void 0?"ra.action.cancel":d,p=e.confirm,g=p===void 0?"ra.action.confirm":p,h=e.confirmColor,m=h===void 0?"primary":h,v=e.ConfirmIcon,b=v===void 0?Lb:v,x=e.CancelIcon,S=x===void 0?Bb:x,I=e.onClose,w=e.onConfirm,T=e.translateOptions,P=T===void 0?{}:T,M=YQ(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),j=ne.useTranslate(),_=O.useCallback(function(k){k.stopPropagation(),w(k)},[w]),N=O.useCallback(function(k){k.stopPropagation()},[]);return B.createElement(KQ,Sl({className:n,open:o,onClose:I,onClick:N,"aria-labelledby":"alert-dialog-title"},M),B.createElement(Fb,{id:"alert-dialog-title"},typeof s=="string"?j(s,Sl({_:s},P)):s),B.createElement(_b,null,typeof l=="string"?B.createElement(Db,null,j(l,Sl({_:l},P))):l),B.createElement(kb,null,B.createElement(mu,{disabled:i,onClick:I,startIcon:B.createElement(S,null)},j(u,{_:u})),B.createElement(mu,{disabled:i,onClick:_,className:pa("ra-confirm",(t={},t[Eu.confirmWarning]=m==="warning",t[Eu.confirmPrimary]=m==="primary",t)),autoFocus:!0,startIcon:B.createElement(b,null)},j(g,{_:g}))))};Nb.propTypes={cancel:C.string,className:C.string,confirm:C.string,confirmColor:C.string,ConfirmIcon:C.elementType,CancelIcon:C.elementType,content:C.node.isRequired,isOpen:C.bool,loading:C.bool,onClose:C.func.isRequired,onConfirm:C.func.isRequired,title:C.node.isRequired,sx:C.any};var E0="RaConfirm",Eu={confirmPrimary:"".concat(E0,"-confirmPrimary"),confirmWarning:"".concat(E0,"-confirmWarning")},KQ=ge(Mb,{name:E0,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["& .".concat(Eu.confirmPrimary)]={color:n.palette.primary.main},t["& .".concat(Eu.confirmWarning)]={color:n.palette.error.main,"&:hover":{backgroundColor:nt(n.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),z2={},ZQ=Pr;Object.defineProperty(z2,"__esModule",{value:!0});var $b=z2.default=void 0,XQ=ZQ(io()),QQ=f;$b=z2.default=(0,XQ.default)((0,QQ.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var W2={},JQ=Pr;Object.defineProperty(W2,"__esModule",{value:!0});var Vb=W2.default=void 0,eJ=JQ(io()),tJ=f;Vb=W2.default=(0,eJ.default)((0,tJ.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 nJ=function(e){var t=e.children,n=e.editor,r=e.preferenceKey,o=e.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,s=e.sx,l="preferences.".concat(r),d=ne.usePreferencesEditor(),u=!!d,p=ne.useTranslate(),g=d||{},h=g.isEnabled,m=g.setEditor,v=g.preferenceKey,b=g.setPreferenceKey,x=l===v,S=O.useRef(x),I=O.useRef(null),w=O.useState(!1),T=w[0],P=w[1];if(O.useEffect(function(){S.current=x},[x]),O.useEffect(function(){return function(){S.current&&(b&&b(null),m&&m(null))}},[m,b]),!u)return t;var M=function(){m(O.cloneElement(n,{preferenceKey:l,key:l})),b(l)},j=function(){P(!0)},_=function(){P(!1)};return B.createElement(ne.PreferenceKeyContextProvider,{value:l},B.createElement(rJ,{className:pa(xo.root,h&&xo.editMode,x&&xo.editorActive),sx:s,ref:I,onMouseEnter:h?j:void 0,onMouseLeave:h?_:void 0},t),B.createElement(E.Popover,{open:h&&(T||x),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:I.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:_,PaperProps:{elevation:1,onMouseEnter:j,onMouseLeave:_,title:p(i),onClick:M},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},B.createElement(Vb,{fontSize:"12px"})))},Wc="RaConfigurable",xo={root:"".concat(Wc,"-root"),editMode:"".concat(Wc,"-editMode"),editorActive:"".concat(Wc,"-editorActive")},rJ=ge("span",{name:Wc,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(xo.editMode)]={transition:n.transitions.create("outline"),outline:"".concat(E.alpha(n.palette.warning.main,.3)," solid 2px")},t["&.".concat(xo.editMode,":hover ")]={outline:"".concat(E.alpha(n.palette.warning.main,.5)," solid 2px")},t["&.".concat(xo.editMode,".").concat(xo.editorActive," , &.").concat(xo.editMode,".").concat(xo.editorActive,":hover ")]={outline:"".concat(n.palette.warning.main," solid 2px")},t}),Ni=function(){return Ni=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},Ni.apply(this,arguments)},oJ=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},iJ=function(e){var t=e.title,n=e.defaultTitle,r=e.className,o=oJ(e,["title","defaultTitle","className"]),i=ne.usePreference()[0],s=ne.useTranslate(),l=ne.useRecordContext();return i?B.createElement("span",Ni({className:r},o),s(i,Ni(Ni({},l),{_:i}))):B.createElement("span",{className:r},t?typeof t=="string"?B.createElement("span",Ni({},o),s(t,{_:t})):t:B.createElement("span",Ni({},o),n))},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)},sJ=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},aJ=function(){var e=ne.usePreferenceInput();return B.createElement("form",null,B.createElement(E.TextField,Tu({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},lJ=function(e){var t=e.preferenceKey,n=sJ(e,["preferenceKey"]),r=ut.useLocation().pathname;return B.createElement(nJ,{editor:B.createElement(aJ,null),preferenceKey:t||"".concat(r,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},B.createElement(iJ,Tu({},n)))},T0=function(){return T0=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},T0.apply(this,arguments)},cJ=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},zb=function(e){var t=e.defaultTitle,n=e.title,r=e.preferenceKey,o=cJ(e,["defaultTitle","title","preferenceKey"]),i=O.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),s=i[0],l=i[1];return O.useEffect(function(){l(function(d){var u=typeof document<"u"&&document.body.contains(d);return d&&u?d:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),s?(ne.warning(!t&&!n,"Missing title prop in <Title> element"),Us.createPortal(B.createElement(lJ,T0({title:n,defaultTitle:t,preferenceKey:r},o)),s)):null},uJ=C.oneOfType([C.string,C.element]);zb.propTypes={defaultTitle:C.string,className:C.string,record:C.any,title:uJ};var dJ=function(e){var t=Yi.useLocation().pathname,n=O.useRef(t);O.useEffect(function(){t!==n.current&&e()},[t,e])},fJ=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])})},d5={error:null},pJ=function(e){i2(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.state=d5,r.resetErrorBoundary=function(){for(var l,d=arguments.length,u=new Array(d),p=0;p<d;p++)u[p]=arguments[p];r.props.onReset==null||(l=r.props).onReset.apply(l,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(d5)},n.componentDidCatch=function(o,i){var s,l;(s=(l=this.props).onError)==null||s.call(l,o,i)},n.componentDidUpdate=function(o,i){var s=this.state.error,l=this.props.resetKeys;if(s!==null&&i.error!==null&&fJ(o.resetKeys,l)){var d,u;(d=(u=this.props).onResetKeysChange)==null||d.call(u,o.resetKeys,l),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,s=i.fallbackRender,l=i.FallbackComponent,d=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(B.isValidElement(d))return d;if(typeof s=="function")return s(u);if(l)return B.createElement(l,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(B.Component),hJ=xa,gJ=ts,mJ="[object Symbol]";function vJ(e){return typeof e=="symbol"||gJ(e)&&hJ(e)==mJ}var U2=vJ,yJ=hi,bJ=U2,CJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xJ=/^\w*$/;function wJ(e,t){if(yJ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bJ(e)?!0:xJ.test(e)||!CJ.test(e)||t!=null&&e in Object(t)}var SJ=wJ,Wb=S2,AJ="Expected a function";function H2(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(AJ);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(H2.Cache||Wb),n}H2.Cache=Wb;var EJ=H2,TJ=EJ,IJ=500;function OJ(e){var t=TJ(e,function(r){return n.size===IJ&&n.clear(),r}),n=t.cache;return t}var PJ=OJ,jJ=PJ,RJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MJ=/\\(\\)?/g,kJ=jJ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(RJ,function(n,r,o,i){t.push(o?i.replace(MJ,"$1"):r||n)}),t}),_J=kJ;function DJ(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 Ub=DJ,f5=d1,FJ=Ub,LJ=hi,BJ=U2,NJ=1/0,p5=f5?f5.prototype:void 0,h5=p5?p5.toString:void 0;function Hb(e){if(typeof e=="string")return e;if(LJ(e))return FJ(e,Hb)+"";if(BJ(e))return h5?h5.call(e):"";var t=e+"";return t=="0"&&1/e==-NJ?"-0":t}var $J=Hb,VJ=$J;function zJ(e){return e==null?"":VJ(e)}var WJ=zJ,UJ=hi,HJ=SJ,GJ=_J,qJ=WJ;function YJ(e,t){return UJ(e)?e:HJ(e,t)?[e]:GJ(qJ(e))}var KJ=YJ,ZJ=U2,XJ=1/0;function QJ(e){if(typeof e=="string"||ZJ(e))return e;var t=e+"";return t=="0"&&1/e==-XJ?"-0":t}var JJ=QJ,eee=KJ,tee=JJ;function nee(e,t){t=eee(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[tee(t[n++])];return n&&n==r?e:void 0}var ree=nee,oee=ree;function iee(e,t,n){var r=e==null?void 0:oee(e,t);return r===void 0?n:r}var see=iee;const Sc=Nr(see);var I0=function(){return I0=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},I0.apply(this,arguments)},aee=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},Gb=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,s=aee(e,["className","loadingPrimary","loadingSecondary"]),l=ne.useTimeout(1e3),d=ne.useTranslate();return l?B.createElement(lee,I0({className:t},s),B.createElement("div",{className:Iu.message},B.createElement(y3,{className:Iu.icon}),B.createElement(E.Typography,{variant:"h5",mt:3,color:"text.secondary"},d(r,{_:r})),B.createElement(E.Typography,{variant:"body2"},d(i,{_:i})))):null};Gb.propTypes={className:C.string,loadingPrimary:C.string,loadingSecondary:C.string};var Uc="RaLoading",Iu={root:"".concat(Uc,"-root"),icon:"".concat(Uc,"-icon"),message:"".concat(Uc,"-message")},lee=ge("div",{name:Uc,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(Iu.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:n.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(Iu.icon)]={width:"9em",height:"9em"},t}),G2={},cee=Pr;Object.defineProperty(G2,"__esModule",{value:!0});var qb=G2.default=void 0,uee=cee(io()),dee=f;qb=G2.default=(0,uee.default)((0,dee.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 O0=function(){return O0=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},O0.apply(this,arguments)},fee=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},Yb=function(e){var t=e.icon,n=t===void 0?hee:t,r=e.label,o=r===void 0?"ra.action.edit":r,i=e.scrollToTop,s=i===void 0?!0:i,l=e.className,d=fee(e,["icon","label","scrollToTop","className"]),u=ne.useResourceContext(e),p=ne.useRecordContext(e),g=ne.useCreatePath();return p?B.createElement(vee,O0({component:ut.Link,to:g({type:"edit",resource:u,id:p.id}),state:pee[String(s)],label:o,onClick:gee,className:pa(mee.root,l)},d),n):null},pee={true:{_scrollToTop:!0},false:{}},hee=B.createElement(qb,null),gee=function(e){return e.stopPropagation()};Yb.propTypes={icon:C.element,label:C.string,record:C.any,scrollToTop:C.bool};var Kb="RaEditButton",mee={root:"".concat(Kb,"-root")},vee=ge(y2,{name:Kb,overridesResolver:function(e,t){return t.root}})({}),q2={},yee=Pr;Object.defineProperty(q2,"__esModule",{value:!0});var Zb=q2.default=void 0,bee=yee(io()),Cee=f;Zb=q2.default=(0,bee.default)((0,Cee.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 xee=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P0(e){return`scale(${e}, ${e**2})`}const wee={entering:{opacity:1,transform:P0(1)},entered:{opacity:1,transform:"none"}},Mf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ou=B.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:d,onEntered:u,onEntering:p,onExit:g,onExited:h,onExiting:m,style:v,timeout:b="auto",TransitionComponent:x=oo}=t,S=Be(t,xee),I=Zs(),w=B.useRef(),T=wt(),P=B.useRef(null),M=pn(P,i.ref,n),j=Y=>V=>{if(Y){const Z=P.current;V===void 0?Y(Z):Y(Z,V)}},_=j(p),N=j((Y,V)=>{jb(Y);const{duration:Z,delay:W,easing:se}=Su({style:v,timeout:b,easing:s},{mode:"enter"});let K;b==="auto"?(K=T.transitions.getAutoHeightDuration(Y.clientHeight),w.current=K):K=Z,Y.style.transition=[T.transitions.create("opacity",{duration:K,delay:W}),T.transitions.create("transform",{duration:Mf?K:K*.666,delay:W,easing:se})].join(","),d&&d(Y,V)}),k=j(u),D=j(m),U=j(Y=>{const{duration:V,delay:Z,easing:W}=Su({style:v,timeout:b,easing:s},{mode:"exit"});let se;b==="auto"?(se=T.transitions.getAutoHeightDuration(Y.clientHeight),w.current=se):se=V,Y.style.transition=[T.transitions.create("opacity",{duration:se,delay:Z}),T.transitions.create("transform",{duration:Mf?se:se*.666,delay:Mf?Z:Z||se*.333,easing:W})].join(","),Y.style.opacity=0,Y.style.transform=P0(.75),g&&g(Y)}),H=j(h),G=Y=>{b==="auto"&&I.start(w.current||0,Y),r&&r(P.current,Y)};return f.jsx(x,ee({appear:o,in:l,nodeRef:P,onEnter:N,onEntered:k,onEntering:_,onExit:U,onExited:H,onExiting:D,addEndListener:G,timeout:b==="auto"?null:b},S,{children:(Y,V)=>B.cloneElement(i,ee({style:ee({opacity:0,transform:P0(.75),visibility:Y==="exited"&&!l?"hidden":void 0},wee[Y],v,i.props.style),ref:M},V))}))});process.env.NODE_ENV!=="production"&&(Ou.propTypes={addEndListener:C.func,appear:C.bool,children:va.isRequired,easing:C.oneOfType([C.shape({enter:C.string,exit:C.string}),C.string]),in:C.bool,onEnter:C.func,onEntered:C.func,onEntering:C.func,onExit:C.func,onExited:C.func,onExiting:C.func,style:C.object,timeout:C.oneOfType([C.oneOf(["auto"]),C.number,C.shape({appear:C.number,enter:C.number,exit:C.number})])});Ou.muiSupportAuto=!0;const Xb="base";function See(e){return`${Xb}--${e}`}function Aee(e,t){return`${Xb}-${e}-${t}`}function Qb(e,t){const n=ey[t];return n?See(n):Aee(e,t)}function Eee(e,t){const n={};return t.forEach(r=>{n[r]=Qb(e,r)}),n}const Jb="Popper";function Tee(e){return Qb(Jb,e)}Eee(Jb,["root"]);const Iee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Oee=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Pee(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 Pu(e){return typeof e=="function"?e():e}function T3(e){return e.nodeType!==void 0}function jee(e){return!T3(e)}const Ree=()=>Xt({root:["root"]},WB(Tee)),Mee={},kee=B.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:d,open:u,placement:p,popperOptions:g,popperRef:h,slotProps:m={},slots:v={},TransitionProps:b}=t,x=Be(t,Iee),S=B.useRef(null),I=pn(S,n),w=B.useRef(null),T=pn(w,h),P=B.useRef(T);no(()=>{P.current=T},[T]),B.useImperativeHandle(h,()=>w.current,[]);const M=Pee(p,s),[j,_]=B.useState(M),[N,k]=B.useState(Pu(o));B.useEffect(()=>{w.current&&w.current.forceUpdate()}),B.useEffect(()=>{o&&k(Pu(o))},[o]),no(()=>{if(!N||!u)return;const Y=W=>{_(W.placement)};if(process.env.NODE_ENV!=="production"&&N&&T3(N)&&N.nodeType===1){const W=N.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:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{Y(W)}}];d!=null&&(V=V.concat(d)),g&&g.modifiers!=null&&(V=V.concat(g.modifiers));const Z=Wy(N,S.current,ee({placement:M},g,{modifiers:V}));return P.current(Z),()=>{Z.destroy(),P.current(null)}},[N,l,d,u,g,M]);const D={placement:j};b!==null&&(D.TransitionProps=b);const U=Ree(),H=(r=v.root)!=null?r:"div",G=lu({elementType:H,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:U.root});return f.jsx(H,ee({},G,{children:typeof i=="function"?i(D):i}))}),eC=B.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:p,placement:g="bottom",popperOptions:h=Mee,popperRef:m,style:v,transition:b=!1,slotProps:x={},slots:S={}}=t,I=Be(t,Oee),[w,T]=B.useState(!0),P=()=>{T(!1)},M=()=>{T(!0)};if(!d&&!p&&(!b||w))return null;let j;if(i)j=i;else if(r){const k=Pu(r);j=k&&T3(k)?nr(k).body:nr(null).body}const _=!p&&d&&(!b||w)?"none":void 0,N=b?{in:p,onEnter:P,onExited:M}:void 0;return f.jsx($l,{disablePortal:l,container:j,children:f.jsx(kee,ee({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:b?!w:p,placement:g,popperOptions:h,popperRef:m,slotProps:x,slots:S},I,{style:ee({position:"fixed",top:0,left:0,display:_},v),TransitionProps:N,children:o}))})});process.env.NODE_ENV!=="production"&&(eC.propTypes={anchorEl:ko(C.oneOfType([jo,C.object,C.func]),e=>{if(e.open){const t=Pu(e.anchorEl);if(t&&T3(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"||jee(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:C.oneOfType([C.node,C.func]),container:C.oneOfType([jo,C.func]),direction:C.oneOf(["ltr","rtl"]),disablePortal:C.bool,keepMounted:C.bool,modifiers:C.arrayOf(C.shape({data:C.object,effect:C.func,enabled:C.bool,fn:C.func,name:C.any,options:C.object,phase:C.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:C.arrayOf(C.string),requiresIfExists:C.arrayOf(C.string)})),open:C.bool.isRequired,placement:C.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:C.shape({modifiers:C.array,onFirstUpdate:C.func,placement:C.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:C.oneOf(["absolute","fixed"])}),popperRef:l3,slotProps:C.shape({root:C.oneOfType([C.func,C.object])}),slots:C.shape({root:C.elementType}),transition:C.bool});var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});var tC=Y2.default=void 0,_ee=Fee(O),Dee=cy;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 Fee(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Lee(e){return Object.keys(e).length===0}function Bee(e=null){const t=_ee.useContext(Dee.ThemeContext);return!t||Lee(t)?e:t}tC=Y2.default=Bee;const Nee=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$ee=ge(eC,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),K2=B.forwardRef(function(t,n){var r;const o=tC(),i=Qt({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:d,componentsProps:u,container:p,disablePortal:g,keepMounted:h,modifiers:m,open:v,placement:b,popperOptions:x,popperRef:S,transition:I,slots:w,slotProps:T}=i,P=Be(i,Nee),M=(r=w==null?void 0:w.root)!=null?r:d==null?void 0:d.Root,j=ee({anchorEl:s,container:p,disablePortal:g,keepMounted:h,modifiers:m,open:v,placement:b,popperOptions:x,popperRef:S,transition:I},P);return f.jsx($ee,ee({as:l,direction:o==null?void 0:o.direction,slots:{root:M},slotProps:T??u},j,{ref:n}))});process.env.NODE_ENV!=="production"&&(K2.propTypes={anchorEl:C.oneOfType([jo,C.object,C.func]),children:C.oneOfType([C.node,C.func]),component:C.elementType,components:C.shape({Root:C.elementType}),componentsProps:C.shape({root:C.oneOfType([C.func,C.object])}),container:C.oneOfType([jo,C.func]),disablePortal:C.bool,keepMounted:C.bool,modifiers:C.arrayOf(C.shape({data:C.object,effect:C.func,enabled:C.bool,fn:C.func,name:C.any,options:C.object,phase:C.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:C.arrayOf(C.string),requiresIfExists:C.arrayOf(C.string)})),open:C.bool.isRequired,placement:C.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:C.shape({modifiers:C.array,onFirstUpdate:C.func,placement:C.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:C.oneOf(["absolute","fixed"])}),popperRef:l3,slotProps:C.shape({root:C.oneOfType([C.func,C.object])}),slots:C.shape({root:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),transition:C.bool});function Vee(e){return Gt("MuiTooltip",e)}const ti=Jt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),zee=["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 Wee(e){return Math.round(e*1e5)/1e5}const Uee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ve(i.split("-")[0])}`],arrow:["arrow"]};return Xt(s,Vee,t)},Hee=ge(K2,{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})=>ee({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ti.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ti.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ti.arrow}`]:ee({},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"] .${ti.arrow}`]:ee({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Gee=ge("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${Ve(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ee({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Xr(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:`${Wee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ti.popper}[data-popper-placement*="left"] &`]:ee({transformOrigin:"right center"},t.isRtl?ee({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ee({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ti.popper}[data-popper-placement*="right"] &`]:ee({transformOrigin:"left center"},t.isRtl?ee({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ee({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ti.popper}[data-popper-placement*="top"] &`]:ee({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ti.popper}[data-popper-placement*="bottom"] &`]:ee({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),qee=ge("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:Xr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ac=!1;const g5=new s1;let il={x:0,y:0};function Ec(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rC=B.forwardRef(function(t,n){var r,o,i,s,l,d,u,p,g,h,m,v,b,x,S,I,w,T,P;const M=Qt({props:t,name:"MuiTooltip"}),{arrow:j=!1,children:D,components:N={},componentsProps:k={},describeChild:_=!1,disableFocusListener:U=!1,disableHoverListener:H=!1,disableInteractive:G=!1,disableTouchListener:Y=!1,enterDelay:V=100,enterNextDelay:Z=0,enterTouchDelay:W=700,followCursor:se=!1,id:K,leaveDelay:$=0,leaveTouchDelay:te=1500,onClose:oe,onOpen:Q,open:de,placement:pe="bottom",PopperComponent:ye,PopperProps:ce={},slotProps:be={},slots:Ce={},title:Ee,TransitionComponent:me=Ou,TransitionProps:Re}=M,ve=Be(M,zee),qe=B.isValidElement(D)?D:f.jsx("span",{children:D}),Ft=wt(),bt=$N(),[st,sn]=B.useState(),[mt,Ke]=B.useState(null),kt=B.useRef(!1),tt=G||se,ot=Zs(),St=Zs(),Pe=Zs(),je=Zs(),[Ie,xe]=yy({controlled:de,default:!1,name:"Tooltip",state:"open"});let vt=Ie;if(process.env.NODE_ENV!=="production"){const{current:We}=B.useRef(de!==void 0);B.useEffect(()=>{st&&st.disabled&&!We&&Ee!==""&&st.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
- `))},[Ee,st,We])}const Ct=u3(K),De=B.useRef(),Oe=Ao(()=>{De.current!==void 0&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),je.clear()});B.useEffect(()=>Oe,[Oe]);const Yt=We=>{g5.clear(),Ac=!0,xe(!0),Q&&!vt&&Q(We)},Sn=Ao(We=>{g5.start(800+$,()=>{Ac=!1}),xe(!1),oe&&vt&&oe(We),ot.start(Ft.transitions.duration.shortest,()=>{kt.current=!1})}),Hn=We=>{kt.current&&We.type!=="touchstart"||(st&&st.removeAttribute("title"),St.clear(),Pe.clear(),V||Ac&&Z?St.start(Ac?Z:V,()=>{Yt(We)}):Yt(We))},ao=We=>{St.clear(),Pe.start($,()=>{Sn(We)})},{isFocusVisibleRef:yi,onBlur:Ma,onFocus:ls,ref:cs}=n2(),[,_o]=B.useState(!1),us=We=>{Ma(We),yi.current===!1&&(_o(!1),ao(We))},ds=We=>{st||sn(We.currentTarget),ls(We),yi.current===!0&&(_o(!0),Hn(We))},fs=We=>{kt.current=!0;const An=qe.props;An.onTouchStart&&An.onTouchStart(We)},ps=We=>{fs(We),Pe.clear(),ot.clear(),Oe(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",je.start(W,()=>{document.body.style.WebkitUserSelect=De.current,Hn(We)})},hs=We=>{qe.props.onTouchEnd&&qe.props.onTouchEnd(We),Oe(),Pe.start(te,()=>{Sn(We)})};B.useEffect(()=>{if(!vt)return;function We(An){(An.key==="Escape"||An.key==="Esc")&&Sn(An)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[Sn,vt]);const ka=pn(qe.ref,cs,sn,n);!Ee&&Ee!==0&&(vt=!1);const Do=B.useRef(),_a=We=>{const An=qe.props;An.onMouseMove&&An.onMouseMove(We),il={x:We.clientX,y:We.clientY},Do.current&&Do.current.update()},ar={},en=typeof Ee=="string";_?(ar.title=!vt&&en&&!H?Ee:null,ar["aria-describedby"]=vt?Ct:null):(ar["aria-label"]=en?Ee:null,ar["aria-labelledby"]=vt&&!en?Ct:null);const Tt=ee({},ar,ve,qe.props,{className:$e(ve.className,qe.props.className),onTouchStart:fs,ref:ka},se?{onMouseMove:_a}:{});process.env.NODE_ENV!=="production"&&(Tt["data-mui-internal-clone-element"]=!0,B.useEffect(()=>{st&&!st.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(`
192
+ `))}return null}),children:C.oneOfType([C.node,C.func]),container:C.oneOfType([jo,C.func]),direction:C.oneOf(["ltr","rtl"]),disablePortal:C.bool,keepMounted:C.bool,modifiers:C.arrayOf(C.shape({data:C.object,effect:C.func,enabled:C.bool,fn:C.func,name:C.any,options:C.object,phase:C.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:C.arrayOf(C.string),requiresIfExists:C.arrayOf(C.string)})),open:C.bool.isRequired,placement:C.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:C.shape({modifiers:C.array,onFirstUpdate:C.func,placement:C.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:C.oneOf(["absolute","fixed"])}),popperRef:l3,slotProps:C.shape({root:C.oneOfType([C.func,C.object])}),slots:C.shape({root:C.elementType}),transition:C.bool});var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});var tC=Y2.default=void 0,_ee=Fee(O),Dee=cy;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 Fee(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Lee(e){return Object.keys(e).length===0}function Bee(e=null){const t=_ee.useContext(Dee.ThemeContext);return!t||Lee(t)?e:t}tC=Y2.default=Bee;const Nee=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$ee=ge(eC,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),K2=B.forwardRef(function(t,n){var r;const o=tC(),i=Qt({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:d,componentsProps:u,container:p,disablePortal:g,keepMounted:h,modifiers:m,open:v,placement:b,popperOptions:x,popperRef:S,transition:I,slots:w,slotProps:T}=i,P=Be(i,Nee),M=(r=w==null?void 0:w.root)!=null?r:d==null?void 0:d.Root,j=ee({anchorEl:s,container:p,disablePortal:g,keepMounted:h,modifiers:m,open:v,placement:b,popperOptions:x,popperRef:S,transition:I},P);return f.jsx($ee,ee({as:l,direction:o==null?void 0:o.direction,slots:{root:M},slotProps:T??u},j,{ref:n}))});process.env.NODE_ENV!=="production"&&(K2.propTypes={anchorEl:C.oneOfType([jo,C.object,C.func]),children:C.oneOfType([C.node,C.func]),component:C.elementType,components:C.shape({Root:C.elementType}),componentsProps:C.shape({root:C.oneOfType([C.func,C.object])}),container:C.oneOfType([jo,C.func]),disablePortal:C.bool,keepMounted:C.bool,modifiers:C.arrayOf(C.shape({data:C.object,effect:C.func,enabled:C.bool,fn:C.func,name:C.any,options:C.object,phase:C.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:C.arrayOf(C.string),requiresIfExists:C.arrayOf(C.string)})),open:C.bool.isRequired,placement:C.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:C.shape({modifiers:C.array,onFirstUpdate:C.func,placement:C.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:C.oneOf(["absolute","fixed"])}),popperRef:l3,slotProps:C.shape({root:C.oneOfType([C.func,C.object])}),slots:C.shape({root:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),transition:C.bool});function Vee(e){return Gt("MuiTooltip",e)}const ti=Jt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),zee=["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 Wee(e){return Math.round(e*1e5)/1e5}const Uee=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ve(i.split("-")[0])}`],arrow:["arrow"]};return Xt(s,Vee,t)},Hee=ge(K2,{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})=>ee({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ti.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ti.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ti.arrow}`]:ee({},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"] .${ti.arrow}`]:ee({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Gee=ge("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${Ve(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ee({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Xr(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:`${Wee(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ti.popper}[data-popper-placement*="left"] &`]:ee({transformOrigin:"right center"},t.isRtl?ee({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ee({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ti.popper}[data-popper-placement*="right"] &`]:ee({transformOrigin:"left center"},t.isRtl?ee({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ee({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ti.popper}[data-popper-placement*="top"] &`]:ee({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ti.popper}[data-popper-placement*="bottom"] &`]:ee({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),qee=ge("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:Xr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ac=!1;const g5=new s1;let il={x:0,y:0};function Ec(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rC=B.forwardRef(function(t,n){var r,o,i,s,l,d,u,p,g,h,m,v,b,x,S,I,w,T,P;const M=Qt({props:t,name:"MuiTooltip"}),{arrow:j=!1,children:_,components:N={},componentsProps:k={},describeChild:D=!1,disableFocusListener:U=!1,disableHoverListener:H=!1,disableInteractive:G=!1,disableTouchListener:Y=!1,enterDelay:V=100,enterNextDelay:Z=0,enterTouchDelay:W=700,followCursor:se=!1,id:K,leaveDelay:$=0,leaveTouchDelay:te=1500,onClose:oe,onOpen:Q,open:de,placement:pe="bottom",PopperComponent:ye,PopperProps:ce={},slotProps:be={},slots:Ce={},title:Ee,TransitionComponent:me=Ou,TransitionProps:Re}=M,ve=Be(M,zee),qe=B.isValidElement(_)?_:f.jsx("span",{children:_}),Ft=wt(),bt=$N(),[st,sn]=B.useState(),[mt,Ke]=B.useState(null),kt=B.useRef(!1),tt=G||se,ot=Zs(),St=Zs(),Pe=Zs(),je=Zs(),[Ie,xe]=yy({controlled:de,default:!1,name:"Tooltip",state:"open"});let vt=Ie;if(process.env.NODE_ENV!=="production"){const{current:We}=B.useRef(de!==void 0);B.useEffect(()=>{st&&st.disabled&&!We&&Ee!==""&&st.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
+ `))},[Ee,st,We])}const Ct=u3(K),De=B.useRef(),Oe=Ao(()=>{De.current!==void 0&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),je.clear()});B.useEffect(()=>Oe,[Oe]);const Yt=We=>{g5.clear(),Ac=!0,xe(!0),Q&&!vt&&Q(We)},Sn=Ao(We=>{g5.start(800+$,()=>{Ac=!1}),xe(!1),oe&&vt&&oe(We),ot.start(Ft.transitions.duration.shortest,()=>{kt.current=!1})}),Hn=We=>{kt.current&&We.type!=="touchstart"||(st&&st.removeAttribute("title"),St.clear(),Pe.clear(),V||Ac&&Z?St.start(Ac?Z:V,()=>{Yt(We)}):Yt(We))},ao=We=>{St.clear(),Pe.start($,()=>{Sn(We)})},{isFocusVisibleRef:yi,onBlur:Ma,onFocus:ls,ref:cs}=n2(),[,_o]=B.useState(!1),us=We=>{Ma(We),yi.current===!1&&(_o(!1),ao(We))},ds=We=>{st||sn(We.currentTarget),ls(We),yi.current===!0&&(_o(!0),Hn(We))},fs=We=>{kt.current=!0;const An=qe.props;An.onTouchStart&&An.onTouchStart(We)},ps=We=>{fs(We),Pe.clear(),ot.clear(),Oe(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",je.start(W,()=>{document.body.style.WebkitUserSelect=De.current,Hn(We)})},hs=We=>{qe.props.onTouchEnd&&qe.props.onTouchEnd(We),Oe(),Pe.start(te,()=>{Sn(We)})};B.useEffect(()=>{if(!vt)return;function We(An){(An.key==="Escape"||An.key==="Esc")&&Sn(An)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[Sn,vt]);const ka=pn(qe.ref,cs,sn,n);!Ee&&Ee!==0&&(vt=!1);const Do=B.useRef(),_a=We=>{const An=qe.props;An.onMouseMove&&An.onMouseMove(We),il={x:We.clientX,y:We.clientY},Do.current&&Do.current.update()},ar={},en=typeof Ee=="string";D?(ar.title=!vt&&en&&!H?Ee:null,ar["aria-describedby"]=vt?Ct:null):(ar["aria-label"]=en?Ee:null,ar["aria-labelledby"]=vt&&!en?Ct:null);const Tt=ee({},ar,ve,qe.props,{className:$e(ve.className,qe.props.className),onTouchStart:fs,ref:ka},se?{onMouseMove:_a}:{});process.env.NODE_ENV!=="production"&&(Tt["data-mui-internal-clone-element"]=!0,B.useEffect(()=>{st&&!st.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
194
  `))},[st]));const Vr={};Y||(Tt.onTouchStart=ps,Tt.onTouchEnd=hs),H||(Tt.onMouseOver=Ec(Hn,Tt.onMouseOver),Tt.onMouseLeave=Ec(ao,Tt.onMouseLeave),tt||(Vr.onMouseOver=Hn,Vr.onMouseLeave=ao)),U||(Tt.onFocus=Ec(ds,Tt.onFocus),Tt.onBlur=Ec(us,Tt.onBlur),tt||(Vr.onFocus=ds,Vr.onBlur=us)),process.env.NODE_ENV!=="production"&&qe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${qe.props.title}\` or the Tooltip component.`].join(`
195
- `));const Da=B.useMemo(()=>{var We;let An=[{name:"arrow",enabled:!!mt,options:{element:mt,padding:4}}];return(We=ce.popperOptions)!=null&&We.modifiers&&(An=An.concat(ce.popperOptions.modifiers)),ee({},ce.popperOptions,{modifiers:An})},[mt,ce]),bi=ee({},M,{isRtl:bt,arrow:j,disableInteractive:tt,placement:pe,PopperComponentProp:ye,touch:kt.current}),Fa=Uee(bi),m1=(r=(o=Ce.popper)!=null?o:N.Popper)!=null?r:Hee,v1=(i=(s=(l=Ce.transition)!=null?l:N.Transition)!=null?s:me)!=null?i:Ou,y1=(d=(u=Ce.tooltip)!=null?u:N.Tooltip)!=null?d:Gee,b1=(p=(g=Ce.arrow)!=null?g:N.Arrow)!=null?p:qee,C1=Ks(m1,ee({},ce,(h=be.popper)!=null?h:k.popper,{className:$e(Fa.popper,ce==null?void 0:ce.className,(m=(v=be.popper)!=null?v:k.popper)==null?void 0:m.className)}),bi),$3=Ks(v1,ee({},Re,(b=be.transition)!=null?b:k.transition),bi),V3=Ks(y1,ee({},(x=be.tooltip)!=null?x:k.tooltip,{className:$e(Fa.tooltip,(S=(I=be.tooltip)!=null?I:k.tooltip)==null?void 0:S.className)}),bi),z3=Ks(b1,ee({},(w=be.arrow)!=null?w:k.arrow,{className:$e(Fa.arrow,(T=(P=be.arrow)!=null?P:k.arrow)==null?void 0:T.className)}),bi);return f.jsxs(B.Fragment,{children:[B.cloneElement(qe,Tt),f.jsx(m1,ee({as:ye??K2,placement:pe,anchorEl:se?{getBoundingClientRect:()=>({top:il.y,left:il.x,right:il.x,bottom:il.y,width:0,height:0})}:st,popperRef:Do,open:st?vt:!1,id:Ct,transition:!0},Vr,C1,{popperOptions:Da,children:({TransitionProps:We})=>f.jsx(v1,ee({timeout:Ft.transitions.duration.shorter},We,$3,{children:f.jsxs(y1,ee({},V3,{children:[Ee,j?f.jsx(b1,ee({},z3,{ref:Ke})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(rC.propTypes={arrow:C.bool,children:va.isRequired,classes:C.object,className:C.string,components:C.shape({Arrow:C.elementType,Popper:C.elementType,Tooltip:C.elementType,Transition:C.elementType}),componentsProps:C.shape({arrow:C.object,popper:C.object,tooltip:C.object,transition:C.object}),describeChild:C.bool,disableFocusListener:C.bool,disableHoverListener:C.bool,disableInteractive:C.bool,disableTouchListener:C.bool,enterDelay:C.number,enterNextDelay:C.number,enterTouchDelay:C.number,followCursor:C.bool,id:C.string,leaveDelay:C.number,leaveTouchDelay:C.number,onClose:C.func,onOpen:C.func,open:C.bool,placement:C.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:C.elementType,PopperProps:C.object,slotProps:C.shape({arrow:C.object,popper:C.object,tooltip:C.object,transition:C.object}),slots:C.shape({arrow:C.elementType,popper:C.elementType,tooltip:C.elementType,transition:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),title:C.node,TransitionComponent:C.elementType,TransitionProps:C.object});var j0=function(){return j0=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},j0.apply(this,arguments)},Yee=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},oC=function(e){var t=e.label,n=t===void 0?"ra.action.refresh":t,r=e.icon,o=r===void 0?Kee:r,i=e.onClick,s=e.className,l=Yee(e,["label","icon","onClick","className"]),d=ne.useRefresh(),u=ne.useTranslate(),p=O.useCallback(function(g){g.preventDefault(),d(),typeof i=="function"&&i(g)},[d,i]);return B.createElement(rC,{title:n&&u(n,{_:"Refresh"})},B.createElement(c2,j0({"aria-label":n&&u(n,{_:"Refresh"}),className:s,color:"inherit",onClick:p},l),o))},Kee=B.createElement(Zb,null);oC.propTypes={className:C.string,label:C.string,icon:C.element};var Z2={},Zee=Pr;Object.defineProperty(Z2,"__esModule",{value:!0});var iC=Z2.default=void 0,Xee=Zee(io()),Qee=f;iC=Z2.default=(0,Xee.default)((0,Qee.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 Al=function(){return Al=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},Al.apply(this,arguments)},m5=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(p){try{u(r.next(p))}catch(g){s(g)}}function d(p){try{u(r.throw(p))}catch(g){s(g)}}function u(p){p.done?i(p.value):o(p.value).then(l,d)}u((r=r.apply(e,t||[])).next())})},v5=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(p){return d([u,p])}}function d(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(p){u=[6,p],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Jee=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},X2=function(e){var t=e.color,n=t===void 0?"primary":t,r=e.icon,o=r===void 0?tte:r;e.invalid;var i=e.label,s=i===void 0?"ra.action.save":i,l=e.onClick,d=e.mutationOptions,u=e.disabled,p=e.type,g=p===void 0?"submit":p,h=e.transform,m=e.variant,v=m===void 0?"contained":m,b=e.alwaysEnable,x=b===void 0?!1:b,S=Jee(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),I=ne.useTranslate(),w=fn.useFormContext(),T=ne.useSaveContext(),P=fn.useFormState(),M=P.dirtyFields,j=P.isValidating,D=P.isSubmitting,N=Object.keys(M).length>0,k=ote(x===!1||x===void 0?void 0:!x,u||!N||j||D);ne.warning(g==="submit"&&(d&&(d.onSuccess||d.onError)||h),'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 _=O.useCallback(function(G){return m5(void 0,void 0,void 0,function(){var Y;return v5(this,function(V){switch(V.label){case 0:return T!=null&&T.save?[4,T.save(G,Al(Al({},d),{transform:h}))]:[3,2];case 1:Y=V.sent(),V.label=2;case 2:return Y!=null&&ne.setSubmissionErrors(Y,w.setError),[2]}})})},[w.setError,T,d,h]),U=O.useCallback(function(G){return m5(void 0,void 0,void 0,function(){return v5(this,function(Y){switch(Y.label){case 0:return l&&l(G),G.defaultPrevented?[2]:g!=="button"?[3,2]:(G.stopPropagation(),[4,w.handleSubmit(_)(G)]);case 1:Y.sent(),Y.label=2;case 2:return[2]}})})},[l,g,w,_]),H=s&&I(s,{_:s});return B.createElement(rte,Al({variant:v,type:g,color:n,"aria-label":H,disabled:k,onClick:U},S),D?B.createElement(E.CircularProgress,{sx:ete,size:14,thickness:3,color:"inherit"}):o,H)},ete={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},tte=B.createElement(iC,null);X2.propTypes={className:C.string,invalid:C.bool,label:C.string,variant:C.oneOf(["text","outlined","contained"]),icon:C.element,alwaysEnable:C.bool};var nte="RaSaveButton",rte=ge(E.Button,{name:nte,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}),ote=function(e,t){return typeof e>"u"?t:e},y5=d1,ite=I2,ste=hi,b5=y5?y5.isConcatSpreadable:void 0;function ate(e){return ste(e)||ite(e)||!!(b5&&e&&e[b5])}var lte=ate,cte=ab,ute=lte;function sC(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=ute),o||(o=[]);++i<s;){var l=e[i];t>0&&n(l)?t>1?sC(l,t-1,n,r,o):cte(o,l):r||(o[o.length]=l)}return o}var aC=sC;function dte(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 fte=dte;function pte(e){return e!==e}var hte=pte;function gte(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var mte=gte,vte=fte,yte=hte,bte=mte;function Cte(e,t,n){return t===t?bte(e,t,n):vte(e,yte,n)}var xte=Cte,wte=xte;function Ste(e,t){var n=e==null?0:e.length;return!!n&&wte(e,t,0)>-1}var lC=Ste;function Ate(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 cC=Ate;function Ete(){}var Tte=Ete,kf=hb,Ite=Tte,Ote=T2,Pte=1/0,jte=kf&&1/Ote(new kf([,-0]))[1]==Pte?function(e){return new kf(e)}:Ite,Rte=jte,Mte=A2,kte=lC,_te=cC,Dte=E2,Fte=Rte,Lte=T2,Bte=200;function Nte(e,t,n){var r=-1,o=kte,i=e.length,s=!0,l=[],d=l;if(n)s=!1,o=_te;else if(i>=Bte){var u=t?null:Fte(e);if(u)return Lte(u);s=!1,o=Dte,d=new Mte}else d=t?[]:l;e:for(;++r<i;){var p=e[r],g=t?t(p):p;if(p=n||p!==0?p:0,s&&g===g){for(var h=d.length;h--;)if(d[h]===g)continue e;t&&d.push(g),l.push(p)}else o(d,g,n)||(d!==l&&d.push(g),l.push(p))}return l}var $te=Nte,Vte=aC,zte=k2,Wte=$te,Ute=M2,Hte=zte(function(e){return Wte(Vte(e,1,Ute,!0))}),Gte=Hte;const qte=Nr(Gte);var Yte=A2,Kte=lC,Zte=cC,Xte=Ub,Qte=db,Jte=E2,ene=200;function tne(e,t,n,r){var o=-1,i=Kte,s=!0,l=e.length,d=[],u=t.length;if(!l)return d;n&&(t=Xte(t,Qte(n))),r?(i=Zte,s=!1):t.length>=ene&&(i=Jte,s=!1,t=new Yte(t));e:for(;++o<l;){var p=e[o],g=n==null?p:n(p);if(p=r||p!==0?p:0,s&&g===g){for(var h=u;h--;)if(t[h]===g)continue e;d.push(p)}else i(t,g,r)||d.push(p)}return d}var nne=tne,rne=nne,one=aC,ine=k2,C5=M2,sne=ine(function(e,t){return C5(e)?rne(e,one(t,1,C5,!0)):[]}),ane=sne;const lne=Nr(ane);var Q2={},cne=Pr;Object.defineProperty(Q2,"__esModule",{value:!0});var R0=Q2.default=void 0,une=cne(io()),dne=f;R0=Q2.default=(0,une.default)((0,dne.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 uC=function(e){return ne.useStore("".concat(e,".savedQueries"),[])},dC=function(e){return Array.isArray(e)?e.filter(function(t){return fne(t)}):[]},fne=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")},pne={sortBy:C.string,sortByOrder:C.oneOf(["ASC","DESC"]),source:C.string,label:C.oneOfType([C.string,C.element,C.bool]),sortable:C.bool,className:C.string,cellClassName:C.string,headerClassName:C.string,textAlign:C.oneOf(["inherit","left","center","right","justify"]),emptyText:C.string},hne=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},Tc=function(e){e.cellClassName,e.className,e.emptyText,e.formClassName,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;var t=hne(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"]);return t},ni=function(){return ni=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},ni.apply(this,arguments)},gne=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},Ic,J2=function(e){var t,n=e.className,r=e.emptyText,o=e.source,i=e.src,s=e.title,l=gne(e,["className","emptyText","source","src","title"]),d=ne.useRecordContext(e),u=Sc(d,o),p=ne.useTranslate();if(!u)return r?B.createElement(E.Typography,ni({component:"span",variant:"body2",className:n},Tc(l)),r&&p(r,{_:r})):B.createElement(E.Typography,ni({component:"div",className:n},Tc(l)));if(Array.isArray(u))return B.createElement(x5,ni({className:n},Tc(l)),B.createElement("ul",{className:El.list},u.map(function(h,m){var v=Sc(h,s)||s,b=Sc(h,i)||s;return B.createElement("li",{key:m},B.createElement("img",{alt:v,title:v,src:b,className:El.image}))})));var g=((t=Sc(d,s))===null||t===void 0?void 0:t.toString())||s;return B.createElement(x5,ni({className:n},Tc(l)),B.createElement("img",{title:g,alt:g,src:u==null?void 0:u.toString(),className:El.image}))};J2.displayName="ImageField";J2.propTypes=ni(ni({},pne),{src:C.string,title:C.string});var M0="RaImageField",El={list:"".concat(M0,"-list"),image:"".concat(M0,"-image")},x5=ge(E.Box,{name:M0,overridesResolver:function(e,t){return t.root}})((Ic={},Ic["& .".concat(El.list)]={display:"flex",listStyleType:"none"},Ic["& .".concat(El.image)]={margin:"0.25rem",width:200,height:100,objectFit:"contain"},Ic));function mne(){window.history.go(-1)}function ep(e){const{error:t,errorComponent:n,errorInfo:r,resetErrorBoundary:o,title:i}=e,s=ne.useTranslate(),l=E.useTheme(),d=process.env.NODE_ENV==="production";dJ(o);const u=O.useCallback(()=>{mne()},[]);return n?f.jsx(n,{error:t,errorInfo:r,title:i}):f.jsx(E.Container,{children:f.jsxs(E.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:4,gap:2},children:[f.jsx(zb,{title:i||"Error"}),f.jsx(E.Typography,{component:"img",src:Qy,style:{width:"100%",maxWidth:350,marginTop:l.spacing(3),marginBottom:l.spacing(2)},alt:"oops!"}),f.jsx(E.Typography,{variant:"h2",justifyContent:"center",align:"center",sx:{mb:2},children:s(d?"ra.page.error":t.message,{_:t.message})}),f.jsx(E.Button,{variant:"contained",startIcon:f.jsx(Vt.History,{sx:{fontSize:22}}),onClick:u,children:s("ra.action.back")})]})})}var ju={exports:{}};/**
195
+ `));const Da=B.useMemo(()=>{var We;let An=[{name:"arrow",enabled:!!mt,options:{element:mt,padding:4}}];return(We=ce.popperOptions)!=null&&We.modifiers&&(An=An.concat(ce.popperOptions.modifiers)),ee({},ce.popperOptions,{modifiers:An})},[mt,ce]),bi=ee({},M,{isRtl:bt,arrow:j,disableInteractive:tt,placement:pe,PopperComponentProp:ye,touch:kt.current}),Fa=Uee(bi),m1=(r=(o=Ce.popper)!=null?o:N.Popper)!=null?r:Hee,v1=(i=(s=(l=Ce.transition)!=null?l:N.Transition)!=null?s:me)!=null?i:Ou,y1=(d=(u=Ce.tooltip)!=null?u:N.Tooltip)!=null?d:Gee,b1=(p=(g=Ce.arrow)!=null?g:N.Arrow)!=null?p:qee,C1=Ks(m1,ee({},ce,(h=be.popper)!=null?h:k.popper,{className:$e(Fa.popper,ce==null?void 0:ce.className,(m=(v=be.popper)!=null?v:k.popper)==null?void 0:m.className)}),bi),$3=Ks(v1,ee({},Re,(b=be.transition)!=null?b:k.transition),bi),V3=Ks(y1,ee({},(x=be.tooltip)!=null?x:k.tooltip,{className:$e(Fa.tooltip,(S=(I=be.tooltip)!=null?I:k.tooltip)==null?void 0:S.className)}),bi),z3=Ks(b1,ee({},(w=be.arrow)!=null?w:k.arrow,{className:$e(Fa.arrow,(T=(P=be.arrow)!=null?P:k.arrow)==null?void 0:T.className)}),bi);return f.jsxs(B.Fragment,{children:[B.cloneElement(qe,Tt),f.jsx(m1,ee({as:ye??K2,placement:pe,anchorEl:se?{getBoundingClientRect:()=>({top:il.y,left:il.x,right:il.x,bottom:il.y,width:0,height:0})}:st,popperRef:Do,open:st?vt:!1,id:Ct,transition:!0},Vr,C1,{popperOptions:Da,children:({TransitionProps:We})=>f.jsx(v1,ee({timeout:Ft.transitions.duration.shorter},We,$3,{children:f.jsxs(y1,ee({},V3,{children:[Ee,j?f.jsx(b1,ee({},z3,{ref:Ke})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(rC.propTypes={arrow:C.bool,children:va.isRequired,classes:C.object,className:C.string,components:C.shape({Arrow:C.elementType,Popper:C.elementType,Tooltip:C.elementType,Transition:C.elementType}),componentsProps:C.shape({arrow:C.object,popper:C.object,tooltip:C.object,transition:C.object}),describeChild:C.bool,disableFocusListener:C.bool,disableHoverListener:C.bool,disableInteractive:C.bool,disableTouchListener:C.bool,enterDelay:C.number,enterNextDelay:C.number,enterTouchDelay:C.number,followCursor:C.bool,id:C.string,leaveDelay:C.number,leaveTouchDelay:C.number,onClose:C.func,onOpen:C.func,open:C.bool,placement:C.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:C.elementType,PopperProps:C.object,slotProps:C.shape({arrow:C.object,popper:C.object,tooltip:C.object,transition:C.object}),slots:C.shape({arrow:C.elementType,popper:C.elementType,tooltip:C.elementType,transition:C.elementType}),sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),title:C.node,TransitionComponent:C.elementType,TransitionProps:C.object});var j0=function(){return j0=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},j0.apply(this,arguments)},Yee=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},oC=function(e){var t=e.label,n=t===void 0?"ra.action.refresh":t,r=e.icon,o=r===void 0?Kee:r,i=e.onClick,s=e.className,l=Yee(e,["label","icon","onClick","className"]),d=ne.useRefresh(),u=ne.useTranslate(),p=O.useCallback(function(g){g.preventDefault(),d(),typeof i=="function"&&i(g)},[d,i]);return B.createElement(rC,{title:n&&u(n,{_:"Refresh"})},B.createElement(c2,j0({"aria-label":n&&u(n,{_:"Refresh"}),className:s,color:"inherit",onClick:p},l),o))},Kee=B.createElement(Zb,null);oC.propTypes={className:C.string,label:C.string,icon:C.element};var Z2={},Zee=Pr;Object.defineProperty(Z2,"__esModule",{value:!0});var iC=Z2.default=void 0,Xee=Zee(io()),Qee=f;iC=Z2.default=(0,Xee.default)((0,Qee.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 Al=function(){return Al=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},Al.apply(this,arguments)},m5=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(p){try{u(r.next(p))}catch(g){s(g)}}function d(p){try{u(r.throw(p))}catch(g){s(g)}}function u(p){p.done?i(p.value):o(p.value).then(l,d)}u((r=r.apply(e,t||[])).next())})},v5=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(p){return d([u,p])}}function d(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(p){u=[6,p],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Jee=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},X2=function(e){var t=e.color,n=t===void 0?"primary":t,r=e.icon,o=r===void 0?tte:r;e.invalid;var i=e.label,s=i===void 0?"ra.action.save":i,l=e.onClick,d=e.mutationOptions,u=e.disabled,p=e.type,g=p===void 0?"submit":p,h=e.transform,m=e.variant,v=m===void 0?"contained":m,b=e.alwaysEnable,x=b===void 0?!1:b,S=Jee(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),I=ne.useTranslate(),w=fn.useFormContext(),T=ne.useSaveContext(),P=fn.useFormState(),M=P.dirtyFields,j=P.isValidating,_=P.isSubmitting,N=Object.keys(M).length>0,k=ote(x===!1||x===void 0?void 0:!x,u||!N||j||_);ne.warning(g==="submit"&&(d&&(d.onSuccess||d.onError)||h),'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 D=O.useCallback(function(G){return m5(void 0,void 0,void 0,function(){var Y;return v5(this,function(V){switch(V.label){case 0:return T!=null&&T.save?[4,T.save(G,Al(Al({},d),{transform:h}))]:[3,2];case 1:Y=V.sent(),V.label=2;case 2:return Y!=null&&ne.setSubmissionErrors(Y,w.setError),[2]}})})},[w.setError,T,d,h]),U=O.useCallback(function(G){return m5(void 0,void 0,void 0,function(){return v5(this,function(Y){switch(Y.label){case 0:return l&&l(G),G.defaultPrevented?[2]:g!=="button"?[3,2]:(G.stopPropagation(),[4,w.handleSubmit(D)(G)]);case 1:Y.sent(),Y.label=2;case 2:return[2]}})})},[l,g,w,D]),H=s&&I(s,{_:s});return B.createElement(rte,Al({variant:v,type:g,color:n,"aria-label":H,disabled:k,onClick:U},S),_?B.createElement(E.CircularProgress,{sx:ete,size:14,thickness:3,color:"inherit"}):o,H)},ete={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},tte=B.createElement(iC,null);X2.propTypes={className:C.string,invalid:C.bool,label:C.string,variant:C.oneOf(["text","outlined","contained"]),icon:C.element,alwaysEnable:C.bool};var nte="RaSaveButton",rte=ge(E.Button,{name:nte,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}),ote=function(e,t){return typeof e>"u"?t:e},y5=d1,ite=I2,ste=hi,b5=y5?y5.isConcatSpreadable:void 0;function ate(e){return ste(e)||ite(e)||!!(b5&&e&&e[b5])}var lte=ate,cte=ab,ute=lte;function sC(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=ute),o||(o=[]);++i<s;){var l=e[i];t>0&&n(l)?t>1?sC(l,t-1,n,r,o):cte(o,l):r||(o[o.length]=l)}return o}var aC=sC;function dte(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 fte=dte;function pte(e){return e!==e}var hte=pte;function gte(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var mte=gte,vte=fte,yte=hte,bte=mte;function Cte(e,t,n){return t===t?bte(e,t,n):vte(e,yte,n)}var xte=Cte,wte=xte;function Ste(e,t){var n=e==null?0:e.length;return!!n&&wte(e,t,0)>-1}var lC=Ste;function Ate(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 cC=Ate;function Ete(){}var Tte=Ete,kf=hb,Ite=Tte,Ote=T2,Pte=1/0,jte=kf&&1/Ote(new kf([,-0]))[1]==Pte?function(e){return new kf(e)}:Ite,Rte=jte,Mte=A2,kte=lC,_te=cC,Dte=E2,Fte=Rte,Lte=T2,Bte=200;function Nte(e,t,n){var r=-1,o=kte,i=e.length,s=!0,l=[],d=l;if(n)s=!1,o=_te;else if(i>=Bte){var u=t?null:Fte(e);if(u)return Lte(u);s=!1,o=Dte,d=new Mte}else d=t?[]:l;e:for(;++r<i;){var p=e[r],g=t?t(p):p;if(p=n||p!==0?p:0,s&&g===g){for(var h=d.length;h--;)if(d[h]===g)continue e;t&&d.push(g),l.push(p)}else o(d,g,n)||(d!==l&&d.push(g),l.push(p))}return l}var $te=Nte,Vte=aC,zte=k2,Wte=$te,Ute=M2,Hte=zte(function(e){return Wte(Vte(e,1,Ute,!0))}),Gte=Hte;const qte=Nr(Gte);var Yte=A2,Kte=lC,Zte=cC,Xte=Ub,Qte=db,Jte=E2,ene=200;function tne(e,t,n,r){var o=-1,i=Kte,s=!0,l=e.length,d=[],u=t.length;if(!l)return d;n&&(t=Xte(t,Qte(n))),r?(i=Zte,s=!1):t.length>=ene&&(i=Jte,s=!1,t=new Yte(t));e:for(;++o<l;){var p=e[o],g=n==null?p:n(p);if(p=r||p!==0?p:0,s&&g===g){for(var h=u;h--;)if(t[h]===g)continue e;d.push(p)}else i(t,g,r)||d.push(p)}return d}var nne=tne,rne=nne,one=aC,ine=k2,C5=M2,sne=ine(function(e,t){return C5(e)?rne(e,one(t,1,C5,!0)):[]}),ane=sne;const lne=Nr(ane);var Q2={},cne=Pr;Object.defineProperty(Q2,"__esModule",{value:!0});var R0=Q2.default=void 0,une=cne(io()),dne=f;R0=Q2.default=(0,une.default)((0,dne.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 uC=function(e){return ne.useStore("".concat(e,".savedQueries"),[])},dC=function(e){return Array.isArray(e)?e.filter(function(t){return fne(t)}):[]},fne=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")},pne={sortBy:C.string,sortByOrder:C.oneOf(["ASC","DESC"]),source:C.string,label:C.oneOfType([C.string,C.element,C.bool]),sortable:C.bool,className:C.string,cellClassName:C.string,headerClassName:C.string,textAlign:C.oneOf(["inherit","left","center","right","justify"]),emptyText:C.string},hne=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},Tc=function(e){e.cellClassName,e.className,e.emptyText,e.formClassName,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;var t=hne(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"]);return t},ni=function(){return ni=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},ni.apply(this,arguments)},gne=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},Ic,J2=function(e){var t,n=e.className,r=e.emptyText,o=e.source,i=e.src,s=e.title,l=gne(e,["className","emptyText","source","src","title"]),d=ne.useRecordContext(e),u=Sc(d,o),p=ne.useTranslate();if(!u)return r?B.createElement(E.Typography,ni({component:"span",variant:"body2",className:n},Tc(l)),r&&p(r,{_:r})):B.createElement(E.Typography,ni({component:"div",className:n},Tc(l)));if(Array.isArray(u))return B.createElement(x5,ni({className:n},Tc(l)),B.createElement("ul",{className:El.list},u.map(function(h,m){var v=Sc(h,s)||s,b=Sc(h,i)||s;return B.createElement("li",{key:m},B.createElement("img",{alt:v,title:v,src:b,className:El.image}))})));var g=((t=Sc(d,s))===null||t===void 0?void 0:t.toString())||s;return B.createElement(x5,ni({className:n},Tc(l)),B.createElement("img",{title:g,alt:g,src:u==null?void 0:u.toString(),className:El.image}))};J2.displayName="ImageField";J2.propTypes=ni(ni({},pne),{src:C.string,title:C.string});var M0="RaImageField",El={list:"".concat(M0,"-list"),image:"".concat(M0,"-image")},x5=ge(E.Box,{name:M0,overridesResolver:function(e,t){return t.root}})((Ic={},Ic["& .".concat(El.list)]={display:"flex",listStyleType:"none"},Ic["& .".concat(El.image)]={margin:"0.25rem",width:200,height:100,objectFit:"contain"},Ic));function mne(){window.history.go(-1)}function ep(e){const{error:t,errorComponent:n,errorInfo:r,resetErrorBoundary:o,title:i}=e,s=ne.useTranslate(),l=E.useTheme(),d=process.env.NODE_ENV==="production";dJ(o);const u=O.useCallback(()=>{mne()},[]);return n?f.jsx(n,{error:t,errorInfo:r,title:i}):f.jsx(E.Container,{children:f.jsxs(E.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",py:4,gap:2},children:[f.jsx(zb,{title:i||"Error"}),f.jsx(E.Typography,{component:"img",src:Qy,style:{width:"100%",maxWidth:350,marginTop:l.spacing(3),marginBottom:l.spacing(2)},alt:"oops!"}),f.jsx(E.Typography,{variant:"h2",justifyContent:"center",align:"center",sx:{mb:2},children:s(d?"ra.page.error":t.message,{_:t.message})}),f.jsx(E.Button,{variant:"contained",startIcon:f.jsx(Vt.History,{sx:{fontSize:22}}),onClick:u,children:s("ra.action.back")})]})})}var ju={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
- */ju.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.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",g=1,h=2,m=4,v=1,b=2,x=1,S=2,I=4,w=8,T=16,P=32,M=64,j=128,D=256,N=512,k=30,_="...",U=800,H=16,G=1,Y=2,V=3,Z=1/0,W=9007199254740991,se=17976931348623157e292,K=NaN,$=4294967295,te=$-1,oe=$>>>1,Q=[["ary",j],["bind",x],["bindKey",S],["curry",w],["curryRight",T],["flip",N],["partial",P],["partialRight",M],["rearg",D]],de="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",ce="[object Boolean]",be="[object Date]",Ce="[object DOMException]",Ee="[object Error]",me="[object Function]",Re="[object GeneratorFunction]",ve="[object Map]",qe="[object Number]",Ft="[object Null]",bt="[object Object]",st="[object Promise]",sn="[object Proxy]",mt="[object RegExp]",Ke="[object Set]",kt="[object String]",tt="[object Symbol]",ot="[object Undefined]",St="[object WeakMap]",Pe="[object WeakSet]",je="[object ArrayBuffer]",Ie="[object DataView]",xe="[object Float32Array]",vt="[object Float64Array]",Ct="[object Int8Array]",De="[object Int16Array]",Oe="[object Int32Array]",Yt="[object Uint8Array]",Sn="[object Uint8ClampedArray]",Hn="[object Uint16Array]",ao="[object Uint32Array]",yi=/\b__p \+= '';/g,Ma=/\b(__p \+=) '' \+/g,ls=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cs=/&(?:amp|lt|gt|quot|#39);/g,_o=/[&<>"']/g,us=RegExp(cs.source),ds=RegExp(_o.source),fs=/<%-([\s\S]+?)%>/g,ps=/<%([\s\S]+?)%>/g,hs=/<%=([\s\S]+?)%>/g,ka=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Do=/^\w*$/,_a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/[\\^$.*+?()[\]{}|]/g,en=RegExp(ar.source),Tt=/^\s+/,Vr=/\s/,Da=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bi=/\{\n\/\* \[wrapped with (.+)\] \*/,Fa=/,? & /,m1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,v1=/[()=,{}\[\]\/\s]/,y1=/\\(\\)?/g,b1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C1=/\w*$/,$3=/^[-+]0x[0-9a-f]+$/i,V3=/^0b[01]+$/i,z3=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,aA=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x1=/($^)/,lA=/['\n\r\u2028\u2029\\]/g,w1="\\ud800-\\udfff",cA="\\u0300-\\u036f",uA="\\ufe20-\\ufe2f",dA="\\u20d0-\\u20ff",Up=cA+uA+dA,Hp="\\u2700-\\u27bf",Gp="a-z\\xdf-\\xf6\\xf8-\\xff",fA="\\xac\\xb1\\xd7\\xf7",pA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hA="\\u2000-\\u206f",gA=" \\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",qp="A-Z\\xc0-\\xd6\\xd8-\\xde",Yp="\\ufe0e\\ufe0f",Kp=fA+pA+hA+gA,W3="['’]",mA="["+w1+"]",Zp="["+Kp+"]",S1="["+Up+"]",Xp="\\d+",vA="["+Hp+"]",Qp="["+Gp+"]",Jp="[^"+w1+Kp+Xp+Hp+Gp+qp+"]",U3="\\ud83c[\\udffb-\\udfff]",yA="(?:"+S1+"|"+U3+")",e7="[^"+w1+"]",H3="(?:\\ud83c[\\udde6-\\uddff]){2}",G3="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="["+qp+"]",t7="\\u200d",n7="(?:"+Qp+"|"+Jp+")",bA="(?:"+gs+"|"+Jp+")",r7="(?:"+W3+"(?:d|ll|m|re|s|t|ve))?",o7="(?:"+W3+"(?:D|LL|M|RE|S|T|VE))?",i7=yA+"?",s7="["+Yp+"]?",CA="(?:"+t7+"(?:"+[e7,H3,G3].join("|")+")"+s7+i7+")*",xA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a7=s7+i7+CA,SA="(?:"+[vA,H3,G3].join("|")+")"+a7,AA="(?:"+[e7+S1+"?",S1,H3,G3,mA].join("|")+")",EA=RegExp(W3,"g"),TA=RegExp(S1,"g"),q3=RegExp(U3+"(?="+U3+")|"+AA+a7,"g"),IA=RegExp([gs+"?"+Qp+"+"+r7+"(?="+[Zp,gs,"$"].join("|")+")",bA+"+"+o7+"(?="+[Zp,gs+n7,"$"].join("|")+")",gs+"?"+n7+"+"+r7,gs+"+"+o7,wA,xA,Xp,SA].join("|"),"g"),OA=RegExp("["+t7+w1+Up+Yp+"]"),PA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jA=["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"],RA=-1,It={};It[xe]=It[vt]=It[Ct]=It[De]=It[Oe]=It[Yt]=It[Sn]=It[Hn]=It[ao]=!0,It[de]=It[pe]=It[je]=It[ce]=It[Ie]=It[be]=It[Ee]=It[me]=It[ve]=It[qe]=It[bt]=It[mt]=It[Ke]=It[kt]=It[St]=!1;var At={};At[de]=At[pe]=At[je]=At[Ie]=At[ce]=At[be]=At[xe]=At[vt]=At[Ct]=At[De]=At[Oe]=At[ve]=At[qe]=At[bt]=At[mt]=At[Ke]=At[kt]=At[tt]=At[Yt]=At[Sn]=At[Hn]=At[ao]=!0,At[Ee]=At[me]=At[St]=!1;var MA={À:"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",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"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"},kA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_A={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},DA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},FA=parseFloat,LA=parseInt,l7=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,BA=typeof self=="object"&&self&&self.Object===Object&&self,an=l7||BA||Function("return this")(),Y3=t&&!t.nodeType&&t,Ci=Y3&&!0&&e&&!e.nodeType&&e,c7=Ci&&Ci.exports===Y3,K3=c7&&l7.process,lr=function(){try{var re=Ci&&Ci.require&&Ci.require("util").types;return re||K3&&K3.binding&&K3.binding("util")}catch{}}(),u7=lr&&lr.isArrayBuffer,d7=lr&&lr.isDate,f7=lr&&lr.isMap,p7=lr&&lr.isRegExp,h7=lr&&lr.isSet,g7=lr&&lr.isTypedArray;function Gn(re,le,ae){switch(ae.length){case 0:return re.call(le);case 1:return re.call(le,ae[0]);case 2:return re.call(le,ae[0],ae[1]);case 3:return re.call(le,ae[0],ae[1],ae[2])}return re.apply(le,ae)}function NA(re,le,ae,Se){for(var Ne=-1,at=re==null?0:re.length;++Ne<at;){var tn=re[Ne];le(Se,tn,ae(tn),re)}return Se}function cr(re,le){for(var ae=-1,Se=re==null?0:re.length;++ae<Se&&le(re[ae],ae,re)!==!1;);return re}function $A(re,le){for(var ae=re==null?0:re.length;ae--&&le(re[ae],ae,re)!==!1;);return re}function m7(re,le){for(var ae=-1,Se=re==null?0:re.length;++ae<Se;)if(!le(re[ae],ae,re))return!1;return!0}function Fo(re,le){for(var ae=-1,Se=re==null?0:re.length,Ne=0,at=[];++ae<Se;){var tn=re[ae];le(tn,ae,re)&&(at[Ne++]=tn)}return at}function A1(re,le){var ae=re==null?0:re.length;return!!ae&&ms(re,le,0)>-1}function Z3(re,le,ae){for(var Se=-1,Ne=re==null?0:re.length;++Se<Ne;)if(ae(le,re[Se]))return!0;return!1}function jt(re,le){for(var ae=-1,Se=re==null?0:re.length,Ne=Array(Se);++ae<Se;)Ne[ae]=le(re[ae],ae,re);return Ne}function Lo(re,le){for(var ae=-1,Se=le.length,Ne=re.length;++ae<Se;)re[Ne+ae]=le[ae];return re}function X3(re,le,ae,Se){var Ne=-1,at=re==null?0:re.length;for(Se&&at&&(ae=re[++Ne]);++Ne<at;)ae=le(ae,re[Ne],Ne,re);return ae}function VA(re,le,ae,Se){var Ne=re==null?0:re.length;for(Se&&Ne&&(ae=re[--Ne]);Ne--;)ae=le(ae,re[Ne],Ne,re);return ae}function Q3(re,le){for(var ae=-1,Se=re==null?0:re.length;++ae<Se;)if(le(re[ae],ae,re))return!0;return!1}var zA=J3("length");function WA(re){return re.split("")}function UA(re){return re.match(m1)||[]}function v7(re,le,ae){var Se;return ae(re,function(Ne,at,tn){if(le(Ne,at,tn))return Se=at,!1}),Se}function E1(re,le,ae,Se){for(var Ne=re.length,at=ae+(Se?1:-1);Se?at--:++at<Ne;)if(le(re[at],at,re))return at;return-1}function ms(re,le,ae){return le===le?nE(re,le,ae):E1(re,y7,ae)}function HA(re,le,ae,Se){for(var Ne=ae-1,at=re.length;++Ne<at;)if(Se(re[Ne],le))return Ne;return-1}function y7(re){return re!==re}function b7(re,le){var ae=re==null?0:re.length;return ae?td(re,le)/ae:K}function J3(re){return function(le){return le==null?n:le[re]}}function ed(re){return function(le){return re==null?n:re[le]}}function C7(re,le,ae,Se,Ne){return Ne(re,function(at,tn,xt){ae=Se?(Se=!1,at):le(ae,at,tn,xt)}),ae}function GA(re,le){var ae=re.length;for(re.sort(le);ae--;)re[ae]=re[ae].value;return re}function td(re,le){for(var ae,Se=-1,Ne=re.length;++Se<Ne;){var at=le(re[Se]);at!==n&&(ae=ae===n?at:ae+at)}return ae}function nd(re,le){for(var ae=-1,Se=Array(re);++ae<re;)Se[ae]=le(ae);return Se}function qA(re,le){return jt(le,function(ae){return[ae,re[ae]]})}function x7(re){return re&&re.slice(0,E7(re)+1).replace(Tt,"")}function qn(re){return function(le){return re(le)}}function rd(re,le){return jt(le,function(ae){return re[ae]})}function La(re,le){return re.has(le)}function w7(re,le){for(var ae=-1,Se=re.length;++ae<Se&&ms(le,re[ae],0)>-1;);return ae}function S7(re,le){for(var ae=re.length;ae--&&ms(le,re[ae],0)>-1;);return ae}function YA(re,le){for(var ae=re.length,Se=0;ae--;)re[ae]===le&&++Se;return Se}var KA=ed(MA),ZA=ed(kA);function XA(re){return"\\"+DA[re]}function QA(re,le){return re==null?n:re[le]}function vs(re){return OA.test(re)}function JA(re){return PA.test(re)}function eE(re){for(var le,ae=[];!(le=re.next()).done;)ae.push(le.value);return ae}function od(re){var le=-1,ae=Array(re.size);return re.forEach(function(Se,Ne){ae[++le]=[Ne,Se]}),ae}function A7(re,le){return function(ae){return re(le(ae))}}function Bo(re,le){for(var ae=-1,Se=re.length,Ne=0,at=[];++ae<Se;){var tn=re[ae];(tn===le||tn===p)&&(re[ae]=p,at[Ne++]=ae)}return at}function T1(re){var le=-1,ae=Array(re.size);return re.forEach(function(Se){ae[++le]=Se}),ae}function tE(re){var le=-1,ae=Array(re.size);return re.forEach(function(Se){ae[++le]=[Se,Se]}),ae}function nE(re,le,ae){for(var Se=ae-1,Ne=re.length;++Se<Ne;)if(re[Se]===le)return Se;return-1}function rE(re,le,ae){for(var Se=ae+1;Se--;)if(re[Se]===le)return Se;return Se}function ys(re){return vs(re)?iE(re):zA(re)}function Rr(re){return vs(re)?sE(re):WA(re)}function E7(re){for(var le=re.length;le--&&Vr.test(re.charAt(le)););return le}var oE=ed(_A);function iE(re){for(var le=q3.lastIndex=0;q3.test(re);)++le;return le}function sE(re){return re.match(q3)||[]}function aE(re){return re.match(IA)||[]}var lE=function re(le){le=le==null?an:bs.defaults(an.Object(),le,bs.pick(an,jA));var ae=le.Array,Se=le.Date,Ne=le.Error,at=le.Function,tn=le.Math,xt=le.Object,id=le.RegExp,cE=le.String,ur=le.TypeError,I1=ae.prototype,uE=at.prototype,Cs=xt.prototype,O1=le["__core-js_shared__"],P1=uE.toString,yt=Cs.hasOwnProperty,dE=0,T7=function(){var a=/[^.]+$/.exec(O1&&O1.keys&&O1.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),j1=Cs.toString,fE=P1.call(xt),pE=an._,hE=id("^"+P1.call(yt).replace(ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R1=c7?le.Buffer:n,No=le.Symbol,M1=le.Uint8Array,I7=R1?R1.allocUnsafe:n,k1=A7(xt.getPrototypeOf,xt),O7=xt.create,P7=Cs.propertyIsEnumerable,_1=I1.splice,j7=No?No.isConcatSpreadable:n,Ba=No?No.iterator:n,xi=No?No.toStringTag:n,D1=function(){try{var a=Ti(xt,"defineProperty");return a({},"",{}),a}catch{}}(),gE=le.clearTimeout!==an.clearTimeout&&le.clearTimeout,mE=Se&&Se.now!==an.Date.now&&Se.now,vE=le.setTimeout!==an.setTimeout&&le.setTimeout,F1=tn.ceil,L1=tn.floor,sd=xt.getOwnPropertySymbols,yE=R1?R1.isBuffer:n,R7=le.isFinite,bE=I1.join,CE=A7(xt.keys,xt),nn=tn.max,mn=tn.min,xE=Se.now,wE=le.parseInt,M7=tn.random,SE=I1.reverse,ad=Ti(le,"DataView"),Na=Ti(le,"Map"),ld=Ti(le,"Promise"),xs=Ti(le,"Set"),$a=Ti(le,"WeakMap"),Va=Ti(xt,"create"),B1=$a&&new $a,ws={},AE=Ii(ad),EE=Ii(Na),TE=Ii(ld),IE=Ii(xs),OE=Ii($a),N1=No?No.prototype:n,za=N1?N1.valueOf:n,k7=N1?N1.toString:n;function F(a){if(Lt(a)&&!ze(a)&&!(a instanceof Xe)){if(a instanceof dr)return a;if(yt.call(a,"__wrapped__"))return _4(a)}return new dr(a)}var Ss=function(){function a(){}return function(c){if(!_t(c))return{};if(O7)return O7(c);a.prototype=c;var y=new a;return a.prototype=n,y}}();function $1(){}function dr(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:fs,evaluate:ps,interpolate:hs,variable:"",imports:{_:F}},F.prototype=$1.prototype,F.prototype.constructor=F,dr.prototype=Ss($1.prototype),dr.prototype.constructor=dr;function Xe(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function PE(){var a=new Xe(this.__wrapped__);return a.__actions__=Rn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Rn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Rn(this.__views__),a}function jE(){if(this.__filtered__){var a=new Xe(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function RE(){var a=this.__wrapped__.value(),c=this.__dir__,y=ze(a),A=c<0,R=y?a.length:0,L=WT(0,R,this.__views__),q=L.start,X=L.end,ie=X-q,ue=A?X:q-1,fe=this.__iteratees__,he=fe.length,we=0,Te=mn(ie,this.__takeCount__);if(!y||!A&&R==ie&&Te==ie)return r4(a,this.__actions__);var ke=[];e:for(;ie--&&we<Te;){ue+=c;for(var Ge=-1,_e=a[ue];++Ge<he;){var Ze=fe[Ge],Je=Ze.iteratee,Zn=Ze.type,In=Je(_e);if(Zn==Y)_e=In;else if(!In){if(Zn==G)continue e;break e}}ke[we++]=_e}return ke}Xe.prototype=Ss($1.prototype),Xe.prototype.constructor=Xe;function wi(a){var c=-1,y=a==null?0:a.length;for(this.clear();++c<y;){var A=a[c];this.set(A[0],A[1])}}function ME(){this.__data__=Va?Va(null):{},this.size=0}function kE(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}function _E(a){var c=this.__data__;if(Va){var y=c[a];return y===d?n:y}return yt.call(c,a)?c[a]:n}function DE(a){var c=this.__data__;return Va?c[a]!==n:yt.call(c,a)}function FE(a,c){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=Va&&c===n?d:c,this}wi.prototype.clear=ME,wi.prototype.delete=kE,wi.prototype.get=_E,wi.prototype.has=DE,wi.prototype.set=FE;function lo(a){var c=-1,y=a==null?0:a.length;for(this.clear();++c<y;){var A=a[c];this.set(A[0],A[1])}}function LE(){this.__data__=[],this.size=0}function BE(a){var c=this.__data__,y=V1(c,a);if(y<0)return!1;var A=c.length-1;return y==A?c.pop():_1.call(c,y,1),--this.size,!0}function NE(a){var c=this.__data__,y=V1(c,a);return y<0?n:c[y][1]}function $E(a){return V1(this.__data__,a)>-1}function VE(a,c){var y=this.__data__,A=V1(y,a);return A<0?(++this.size,y.push([a,c])):y[A][1]=c,this}lo.prototype.clear=LE,lo.prototype.delete=BE,lo.prototype.get=NE,lo.prototype.has=$E,lo.prototype.set=VE;function co(a){var c=-1,y=a==null?0:a.length;for(this.clear();++c<y;){var A=a[c];this.set(A[0],A[1])}}function zE(){this.size=0,this.__data__={hash:new wi,map:new(Na||lo),string:new wi}}function WE(a){var c=J1(this,a).delete(a);return this.size-=c?1:0,c}function UE(a){return J1(this,a).get(a)}function HE(a){return J1(this,a).has(a)}function GE(a,c){var y=J1(this,a),A=y.size;return y.set(a,c),this.size+=y.size==A?0:1,this}co.prototype.clear=zE,co.prototype.delete=WE,co.prototype.get=UE,co.prototype.has=HE,co.prototype.set=GE;function Si(a){var c=-1,y=a==null?0:a.length;for(this.__data__=new co;++c<y;)this.add(a[c])}function qE(a){return this.__data__.set(a,d),this}function YE(a){return this.__data__.has(a)}Si.prototype.add=Si.prototype.push=qE,Si.prototype.has=YE;function Mr(a){var c=this.__data__=new lo(a);this.size=c.size}function KE(){this.__data__=new lo,this.size=0}function ZE(a){var c=this.__data__,y=c.delete(a);return this.size=c.size,y}function XE(a){return this.__data__.get(a)}function QE(a){return this.__data__.has(a)}function JE(a,c){var y=this.__data__;if(y instanceof lo){var A=y.__data__;if(!Na||A.length<o-1)return A.push([a,c]),this.size=++y.size,this;y=this.__data__=new co(A)}return y.set(a,c),this.size=y.size,this}Mr.prototype.clear=KE,Mr.prototype.delete=ZE,Mr.prototype.get=XE,Mr.prototype.has=QE,Mr.prototype.set=JE;function _7(a,c){var y=ze(a),A=!y&&Oi(a),R=!y&&!A&&Uo(a),L=!y&&!A&&!R&&Is(a),q=y||A||R||L,X=q?nd(a.length,cE):[],ie=X.length;for(var ue in a)(c||yt.call(a,ue))&&!(q&&(ue=="length"||R&&(ue=="offset"||ue=="parent")||L&&(ue=="buffer"||ue=="byteLength"||ue=="byteOffset")||ho(ue,ie)))&&X.push(ue);return X}function D7(a){var c=a.length;return c?a[bd(0,c-1)]:n}function eT(a,c){return ec(Rn(a),Ai(c,0,a.length))}function tT(a){return ec(Rn(a))}function cd(a,c,y){(y!==n&&!kr(a[c],y)||y===n&&!(c in a))&&uo(a,c,y)}function Wa(a,c,y){var A=a[c];(!(yt.call(a,c)&&kr(A,y))||y===n&&!(c in a))&&uo(a,c,y)}function V1(a,c){for(var y=a.length;y--;)if(kr(a[y][0],c))return y;return-1}function nT(a,c,y,A){return $o(a,function(R,L,q){c(A,R,y(R),q)}),A}function F7(a,c){return a&&Wr(c,rn(c),a)}function rT(a,c){return a&&Wr(c,kn(c),a)}function uo(a,c,y){c=="__proto__"&&D1?D1(a,c,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[c]=y}function ud(a,c){for(var y=-1,A=c.length,R=ae(A),L=a==null;++y<A;)R[y]=L?n:Ud(a,c[y]);return R}function Ai(a,c,y){return a===a&&(y!==n&&(a=a<=y?a:y),c!==n&&(a=a>=c?a:c)),a}function fr(a,c,y,A,R,L){var q,X=c&g,ie=c&h,ue=c&m;if(y&&(q=R?y(a,A,R,L):y(a)),q!==n)return q;if(!_t(a))return a;var fe=ze(a);if(fe){if(q=HT(a),!X)return Rn(a,q)}else{var he=vn(a),we=he==me||he==Re;if(Uo(a))return s4(a,X);if(he==bt||he==de||we&&!R){if(q=ie||we?{}:E4(a),!X)return ie?_T(a,rT(q,a)):kT(a,F7(q,a))}else{if(!At[he])return R?a:{};q=GT(a,he,X)}}L||(L=new Mr);var Te=L.get(a);if(Te)return Te;L.set(a,q),eh(a)?a.forEach(function(_e){q.add(fr(_e,c,y,_e,a,L))}):Q4(a)&&a.forEach(function(_e,Ze){q.set(Ze,fr(_e,c,y,Ze,a,L))});var ke=ue?ie?jd:Pd:ie?kn:rn,Ge=fe?n:ke(a);return cr(Ge||a,function(_e,Ze){Ge&&(Ze=_e,_e=a[Ze]),Wa(q,Ze,fr(_e,c,y,Ze,a,L))}),q}function oT(a){var c=rn(a);return function(y){return L7(y,a,c)}}function L7(a,c,y){var A=y.length;if(a==null)return!A;for(a=xt(a);A--;){var R=y[A],L=c[R],q=a[R];if(q===n&&!(R in a)||!L(q))return!1}return!0}function B7(a,c,y){if(typeof a!="function")throw new ur(s);return Za(function(){a.apply(n,y)},c)}function Ua(a,c,y,A){var R=-1,L=A1,q=!0,X=a.length,ie=[],ue=c.length;if(!X)return ie;y&&(c=jt(c,qn(y))),A?(L=Z3,q=!1):c.length>=o&&(L=La,q=!1,c=new Si(c));e:for(;++R<X;){var fe=a[R],he=y==null?fe:y(fe);if(fe=A||fe!==0?fe:0,q&&he===he){for(var we=ue;we--;)if(c[we]===he)continue e;ie.push(fe)}else L(c,he,A)||ie.push(fe)}return ie}var $o=d4(zr),N7=d4(fd,!0);function iT(a,c){var y=!0;return $o(a,function(A,R,L){return y=!!c(A,R,L),y}),y}function z1(a,c,y){for(var A=-1,R=a.length;++A<R;){var L=a[A],q=c(L);if(q!=null&&(X===n?q===q&&!Kn(q):y(q,X)))var X=q,ie=L}return ie}function sT(a,c,y,A){var R=a.length;for(y=Ue(y),y<0&&(y=-y>R?0:R+y),A=A===n||A>R?R:Ue(A),A<0&&(A+=R),A=y>A?0:nh(A);y<A;)a[y++]=c;return a}function $7(a,c){var y=[];return $o(a,function(A,R,L){c(A,R,L)&&y.push(A)}),y}function ln(a,c,y,A,R){var L=-1,q=a.length;for(y||(y=YT),R||(R=[]);++L<q;){var X=a[L];c>0&&y(X)?c>1?ln(X,c-1,y,A,R):Lo(R,X):A||(R[R.length]=X)}return R}var dd=f4(),V7=f4(!0);function zr(a,c){return a&&dd(a,c,rn)}function fd(a,c){return a&&V7(a,c,rn)}function W1(a,c){return Fo(c,function(y){return go(a[y])})}function Ei(a,c){c=zo(c,a);for(var y=0,A=c.length;a!=null&&y<A;)a=a[Ur(c[y++])];return y&&y==A?a:n}function z7(a,c,y){var A=c(a);return ze(a)?A:Lo(A,y(a))}function En(a){return a==null?a===n?ot:Ft:xi&&xi in xt(a)?zT(a):tI(a)}function pd(a,c){return a>c}function aT(a,c){return a!=null&&yt.call(a,c)}function lT(a,c){return a!=null&&c in xt(a)}function cT(a,c,y){return a>=mn(c,y)&&a<nn(c,y)}function hd(a,c,y){for(var A=y?Z3:A1,R=a[0].length,L=a.length,q=L,X=ae(L),ie=1/0,ue=[];q--;){var fe=a[q];q&&c&&(fe=jt(fe,qn(c))),ie=mn(fe.length,ie),X[q]=!y&&(c||R>=120&&fe.length>=120)?new Si(q&&fe):n}fe=a[0];var he=-1,we=X[0];e:for(;++he<R&&ue.length<ie;){var Te=fe[he],ke=c?c(Te):Te;if(Te=y||Te!==0?Te:0,!(we?La(we,ke):A(ue,ke,y))){for(q=L;--q;){var Ge=X[q];if(!(Ge?La(Ge,ke):A(a[q],ke,y)))continue e}we&&we.push(ke),ue.push(Te)}}return ue}function uT(a,c,y,A){return zr(a,function(R,L,q){c(A,y(R),L,q)}),A}function Ha(a,c,y){c=zo(c,a),a=P4(a,c);var A=a==null?a:a[Ur(hr(c))];return A==null?n:Gn(A,a,y)}function W7(a){return Lt(a)&&En(a)==de}function dT(a){return Lt(a)&&En(a)==je}function fT(a){return Lt(a)&&En(a)==be}function Ga(a,c,y,A,R){return a===c?!0:a==null||c==null||!Lt(a)&&!Lt(c)?a!==a&&c!==c:pT(a,c,y,A,Ga,R)}function pT(a,c,y,A,R,L){var q=ze(a),X=ze(c),ie=q?pe:vn(a),ue=X?pe:vn(c);ie=ie==de?bt:ie,ue=ue==de?bt:ue;var fe=ie==bt,he=ue==bt,we=ie==ue;if(we&&Uo(a)){if(!Uo(c))return!1;q=!0,fe=!1}if(we&&!fe)return L||(L=new Mr),q||Is(a)?w4(a,c,y,A,R,L):$T(a,c,ie,y,A,R,L);if(!(y&v)){var Te=fe&&yt.call(a,"__wrapped__"),ke=he&&yt.call(c,"__wrapped__");if(Te||ke){var Ge=Te?a.value():a,_e=ke?c.value():c;return L||(L=new Mr),R(Ge,_e,y,A,L)}}return we?(L||(L=new Mr),VT(a,c,y,A,R,L)):!1}function hT(a){return Lt(a)&&vn(a)==ve}function gd(a,c,y,A){var R=y.length,L=R,q=!A;if(a==null)return!L;for(a=xt(a);R--;){var X=y[R];if(q&&X[2]?X[1]!==a[X[0]]:!(X[0]in a))return!1}for(;++R<L;){X=y[R];var ie=X[0],ue=a[ie],fe=X[1];if(q&&X[2]){if(ue===n&&!(ie in a))return!1}else{var he=new Mr;if(A)var we=A(ue,fe,ie,a,c,he);if(!(we===n?Ga(fe,ue,v|b,A,he):we))return!1}}return!0}function U7(a){if(!_t(a)||ZT(a))return!1;var c=go(a)?hE:z3;return c.test(Ii(a))}function gT(a){return Lt(a)&&En(a)==mt}function mT(a){return Lt(a)&&vn(a)==Ke}function vT(a){return Lt(a)&&sc(a.length)&&!!It[En(a)]}function H7(a){return typeof a=="function"?a:a==null?_n:typeof a=="object"?ze(a)?Y7(a[0],a[1]):q7(a):ph(a)}function md(a){if(!Ka(a))return CE(a);var c=[];for(var y in xt(a))yt.call(a,y)&&y!="constructor"&&c.push(y);return c}function yT(a){if(!_t(a))return eI(a);var c=Ka(a),y=[];for(var A in a)A=="constructor"&&(c||!yt.call(a,A))||y.push(A);return y}function vd(a,c){return a<c}function G7(a,c){var y=-1,A=Mn(a)?ae(a.length):[];return $o(a,function(R,L,q){A[++y]=c(R,L,q)}),A}function q7(a){var c=Md(a);return c.length==1&&c[0][2]?I4(c[0][0],c[0][1]):function(y){return y===a||gd(y,a,c)}}function Y7(a,c){return _d(a)&&T4(c)?I4(Ur(a),c):function(y){var A=Ud(y,a);return A===n&&A===c?Hd(y,a):Ga(c,A,v|b)}}function U1(a,c,y,A,R){a!==c&&dd(c,function(L,q){if(R||(R=new Mr),_t(L))bT(a,c,q,y,U1,A,R);else{var X=A?A(Fd(a,q),L,q+"",a,c,R):n;X===n&&(X=L),cd(a,q,X)}},kn)}function bT(a,c,y,A,R,L,q){var X=Fd(a,y),ie=Fd(c,y),ue=q.get(ie);if(ue){cd(a,y,ue);return}var fe=L?L(X,ie,y+"",a,c,q):n,he=fe===n;if(he){var we=ze(ie),Te=!we&&Uo(ie),ke=!we&&!Te&&Is(ie);fe=ie,we||Te||ke?ze(X)?fe=X:Wt(X)?fe=Rn(X):Te?(he=!1,fe=s4(ie,!0)):ke?(he=!1,fe=a4(ie,!0)):fe=[]:Xa(ie)||Oi(ie)?(fe=X,Oi(X)?fe=rh(X):(!_t(X)||go(X))&&(fe=E4(ie))):he=!1}he&&(q.set(ie,fe),R(fe,ie,A,L,q),q.delete(ie)),cd(a,y,fe)}function K7(a,c){var y=a.length;if(y)return c+=c<0?y:0,ho(c,y)?a[c]:n}function Z7(a,c,y){c.length?c=jt(c,function(L){return ze(L)?function(q){return Ei(q,L.length===1?L[0]:L)}:L}):c=[_n];var A=-1;c=jt(c,qn(Me()));var R=G7(a,function(L,q,X){var ie=jt(c,function(ue){return ue(L)});return{criteria:ie,index:++A,value:L}});return GA(R,function(L,q){return MT(L,q,y)})}function CT(a,c){return X7(a,c,function(y,A){return Hd(a,A)})}function X7(a,c,y){for(var A=-1,R=c.length,L={};++A<R;){var q=c[A],X=Ei(a,q);y(X,q)&&qa(L,zo(q,a),X)}return L}function xT(a){return function(c){return Ei(c,a)}}function yd(a,c,y,A){var R=A?HA:ms,L=-1,q=c.length,X=a;for(a===c&&(c=Rn(c)),y&&(X=jt(a,qn(y)));++L<q;)for(var ie=0,ue=c[L],fe=y?y(ue):ue;(ie=R(X,fe,ie,A))>-1;)X!==a&&_1.call(X,ie,1),_1.call(a,ie,1);return a}function Q7(a,c){for(var y=a?c.length:0,A=y-1;y--;){var R=c[y];if(y==A||R!==L){var L=R;ho(R)?_1.call(a,R,1):wd(a,R)}}return a}function bd(a,c){return a+L1(M7()*(c-a+1))}function wT(a,c,y,A){for(var R=-1,L=nn(F1((c-a)/(y||1)),0),q=ae(L);L--;)q[A?L:++R]=a,a+=y;return q}function Cd(a,c){var y="";if(!a||c<1||c>W)return y;do c%2&&(y+=a),c=L1(c/2),c&&(a+=a);while(c);return y}function Ye(a,c){return Ld(O4(a,c,_n),a+"")}function ST(a){return D7(Os(a))}function AT(a,c){var y=Os(a);return ec(y,Ai(c,0,y.length))}function qa(a,c,y,A){if(!_t(a))return a;c=zo(c,a);for(var R=-1,L=c.length,q=L-1,X=a;X!=null&&++R<L;){var ie=Ur(c[R]),ue=y;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return a;if(R!=q){var fe=X[ie];ue=A?A(fe,ie,X):n,ue===n&&(ue=_t(fe)?fe:ho(c[R+1])?[]:{})}Wa(X,ie,ue),X=X[ie]}return a}var J7=B1?function(a,c){return B1.set(a,c),a}:_n,ET=D1?function(a,c){return D1(a,"toString",{configurable:!0,enumerable:!1,value:qd(c),writable:!0})}:_n;function TT(a){return ec(Os(a))}function pr(a,c,y){var A=-1,R=a.length;c<0&&(c=-c>R?0:R+c),y=y>R?R:y,y<0&&(y+=R),R=c>y?0:y-c>>>0,c>>>=0;for(var L=ae(R);++A<R;)L[A]=a[A+c];return L}function IT(a,c){var y;return $o(a,function(A,R,L){return y=c(A,R,L),!y}),!!y}function H1(a,c,y){var A=0,R=a==null?A:a.length;if(typeof c=="number"&&c===c&&R<=oe){for(;A<R;){var L=A+R>>>1,q=a[L];q!==null&&!Kn(q)&&(y?q<=c:q<c)?A=L+1:R=L}return R}return xd(a,c,_n,y)}function xd(a,c,y,A){var R=0,L=a==null?0:a.length;if(L===0)return 0;c=y(c);for(var q=c!==c,X=c===null,ie=Kn(c),ue=c===n;R<L;){var fe=L1((R+L)/2),he=y(a[fe]),we=he!==n,Te=he===null,ke=he===he,Ge=Kn(he);if(q)var _e=A||ke;else ue?_e=ke&&(A||we):X?_e=ke&&we&&(A||!Te):ie?_e=ke&&we&&!Te&&(A||!Ge):Te||Ge?_e=!1:_e=A?he<=c:he<c;_e?R=fe+1:L=fe}return mn(L,te)}function e4(a,c){for(var y=-1,A=a.length,R=0,L=[];++y<A;){var q=a[y],X=c?c(q):q;if(!y||!kr(X,ie)){var ie=X;L[R++]=q===0?0:q}}return L}function t4(a){return typeof a=="number"?a:Kn(a)?K:+a}function Yn(a){if(typeof a=="string")return a;if(ze(a))return jt(a,Yn)+"";if(Kn(a))return k7?k7.call(a):"";var c=a+"";return c=="0"&&1/a==-Z?"-0":c}function Vo(a,c,y){var A=-1,R=A1,L=a.length,q=!0,X=[],ie=X;if(y)q=!1,R=Z3;else if(L>=o){var ue=c?null:BT(a);if(ue)return T1(ue);q=!1,R=La,ie=new Si}else ie=c?[]:X;e:for(;++A<L;){var fe=a[A],he=c?c(fe):fe;if(fe=y||fe!==0?fe:0,q&&he===he){for(var we=ie.length;we--;)if(ie[we]===he)continue e;c&&ie.push(he),X.push(fe)}else R(ie,he,y)||(ie!==X&&ie.push(he),X.push(fe))}return X}function wd(a,c){return c=zo(c,a),a=P4(a,c),a==null||delete a[Ur(hr(c))]}function n4(a,c,y,A){return qa(a,c,y(Ei(a,c)),A)}function G1(a,c,y,A){for(var R=a.length,L=A?R:-1;(A?L--:++L<R)&&c(a[L],L,a););return y?pr(a,A?0:L,A?L+1:R):pr(a,A?L+1:0,A?R:L)}function r4(a,c){var y=a;return y instanceof Xe&&(y=y.value()),X3(c,function(A,R){return R.func.apply(R.thisArg,Lo([A],R.args))},y)}function Sd(a,c,y){var A=a.length;if(A<2)return A?Vo(a[0]):[];for(var R=-1,L=ae(A);++R<A;)for(var q=a[R],X=-1;++X<A;)X!=R&&(L[R]=Ua(L[R]||q,a[X],c,y));return Vo(ln(L,1),c,y)}function o4(a,c,y){for(var A=-1,R=a.length,L=c.length,q={};++A<R;){var X=A<L?c[A]:n;y(q,a[A],X)}return q}function Ad(a){return Wt(a)?a:[]}function Ed(a){return typeof a=="function"?a:_n}function zo(a,c){return ze(a)?a:_d(a,c)?[a]:k4(dt(a))}var OT=Ye;function Wo(a,c,y){var A=a.length;return y=y===n?A:y,!c&&y>=A?a:pr(a,c,y)}var i4=gE||function(a){return an.clearTimeout(a)};function s4(a,c){if(c)return a.slice();var y=a.length,A=I7?I7(y):new a.constructor(y);return a.copy(A),A}function Td(a){var c=new a.constructor(a.byteLength);return new M1(c).set(new M1(a)),c}function PT(a,c){var y=c?Td(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function jT(a){var c=new a.constructor(a.source,C1.exec(a));return c.lastIndex=a.lastIndex,c}function RT(a){return za?xt(za.call(a)):{}}function a4(a,c){var y=c?Td(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function l4(a,c){if(a!==c){var y=a!==n,A=a===null,R=a===a,L=Kn(a),q=c!==n,X=c===null,ie=c===c,ue=Kn(c);if(!X&&!ue&&!L&&a>c||L&&q&&ie&&!X&&!ue||A&&q&&ie||!y&&ie||!R)return 1;if(!A&&!L&&!ue&&a<c||ue&&y&&R&&!A&&!L||X&&y&&R||!q&&R||!ie)return-1}return 0}function MT(a,c,y){for(var A=-1,R=a.criteria,L=c.criteria,q=R.length,X=y.length;++A<q;){var ie=l4(R[A],L[A]);if(ie){if(A>=X)return ie;var ue=y[A];return ie*(ue=="desc"?-1:1)}}return a.index-c.index}function c4(a,c,y,A){for(var R=-1,L=a.length,q=y.length,X=-1,ie=c.length,ue=nn(L-q,0),fe=ae(ie+ue),he=!A;++X<ie;)fe[X]=c[X];for(;++R<q;)(he||R<L)&&(fe[y[R]]=a[R]);for(;ue--;)fe[X++]=a[R++];return fe}function u4(a,c,y,A){for(var R=-1,L=a.length,q=-1,X=y.length,ie=-1,ue=c.length,fe=nn(L-X,0),he=ae(fe+ue),we=!A;++R<fe;)he[R]=a[R];for(var Te=R;++ie<ue;)he[Te+ie]=c[ie];for(;++q<X;)(we||R<L)&&(he[Te+y[q]]=a[R++]);return he}function Rn(a,c){var y=-1,A=a.length;for(c||(c=ae(A));++y<A;)c[y]=a[y];return c}function Wr(a,c,y,A){var R=!y;y||(y={});for(var L=-1,q=c.length;++L<q;){var X=c[L],ie=A?A(y[X],a[X],X,y,a):n;ie===n&&(ie=a[X]),R?uo(y,X,ie):Wa(y,X,ie)}return y}function kT(a,c){return Wr(a,kd(a),c)}function _T(a,c){return Wr(a,S4(a),c)}function q1(a,c){return function(y,A){var R=ze(y)?NA:nT,L=c?c():{};return R(y,a,Me(A,2),L)}}function As(a){return Ye(function(c,y){var A=-1,R=y.length,L=R>1?y[R-1]:n,q=R>2?y[2]:n;for(L=a.length>3&&typeof L=="function"?(R--,L):n,q&&Tn(y[0],y[1],q)&&(L=R<3?n:L,R=1),c=xt(c);++A<R;){var X=y[A];X&&a(c,X,A,L)}return c})}function d4(a,c){return function(y,A){if(y==null)return y;if(!Mn(y))return a(y,A);for(var R=y.length,L=c?R:-1,q=xt(y);(c?L--:++L<R)&&A(q[L],L,q)!==!1;);return y}}function f4(a){return function(c,y,A){for(var R=-1,L=xt(c),q=A(c),X=q.length;X--;){var ie=q[a?X:++R];if(y(L[ie],ie,L)===!1)break}return c}}function DT(a,c,y){var A=c&x,R=Ya(a);function L(){var q=this&&this!==an&&this instanceof L?R:a;return q.apply(A?y:this,arguments)}return L}function p4(a){return function(c){c=dt(c);var y=vs(c)?Rr(c):n,A=y?y[0]:c.charAt(0),R=y?Wo(y,1).join(""):c.slice(1);return A[a]()+R}}function Es(a){return function(c){return X3(dh(uh(c).replace(EA,"")),a,"")}}function Ya(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var y=Ss(a.prototype),A=a.apply(y,c);return _t(A)?A:y}}function FT(a,c,y){var A=Ya(a);function R(){for(var L=arguments.length,q=ae(L),X=L,ie=Ts(R);X--;)q[X]=arguments[X];var ue=L<3&&q[0]!==ie&&q[L-1]!==ie?[]:Bo(q,ie);if(L-=ue.length,L<y)return y4(a,c,Y1,R.placeholder,n,q,ue,n,n,y-L);var fe=this&&this!==an&&this instanceof R?A:a;return Gn(fe,this,q)}return R}function h4(a){return function(c,y,A){var R=xt(c);if(!Mn(c)){var L=Me(y,3);c=rn(c),y=function(X){return L(R[X],X,R)}}var q=a(c,y,A);return q>-1?R[L?c[q]:q]:n}}function g4(a){return po(function(c){var y=c.length,A=y,R=dr.prototype.thru;for(a&&c.reverse();A--;){var L=c[A];if(typeof L!="function")throw new ur(s);if(R&&!q&&Q1(L)=="wrapper")var q=new dr([],!0)}for(A=q?A:y;++A<y;){L=c[A];var X=Q1(L),ie=X=="wrapper"?Rd(L):n;ie&&Dd(ie[0])&&ie[1]==(j|w|P|D)&&!ie[4].length&&ie[9]==1?q=q[Q1(ie[0])].apply(q,ie[3]):q=L.length==1&&Dd(L)?q[X]():q.thru(L)}return function(){var ue=arguments,fe=ue[0];if(q&&ue.length==1&&ze(fe))return q.plant(fe).value();for(var he=0,we=y?c[he].apply(this,ue):fe;++he<y;)we=c[he].call(this,we);return we}})}function Y1(a,c,y,A,R,L,q,X,ie,ue){var fe=c&j,he=c&x,we=c&S,Te=c&(w|T),ke=c&N,Ge=we?n:Ya(a);function _e(){for(var Ze=arguments.length,Je=ae(Ze),Zn=Ze;Zn--;)Je[Zn]=arguments[Zn];if(Te)var In=Ts(_e),Xn=YA(Je,In);if(A&&(Je=c4(Je,A,R,Te)),L&&(Je=u4(Je,L,q,Te)),Ze-=Xn,Te&&Ze<ue){var Ut=Bo(Je,In);return y4(a,c,Y1,_e.placeholder,y,Je,Ut,X,ie,ue-Ze)}var _r=he?y:this,vo=we?_r[a]:a;return Ze=Je.length,X?Je=nI(Je,X):ke&&Ze>1&&Je.reverse(),fe&&ie<Ze&&(Je.length=ie),this&&this!==an&&this instanceof _e&&(vo=Ge||Ya(vo)),vo.apply(_r,Je)}return _e}function m4(a,c){return function(y,A){return uT(y,a,c(A),{})}}function K1(a,c){return function(y,A){var R;if(y===n&&A===n)return c;if(y!==n&&(R=y),A!==n){if(R===n)return A;typeof y=="string"||typeof A=="string"?(y=Yn(y),A=Yn(A)):(y=t4(y),A=t4(A)),R=a(y,A)}return R}}function Id(a){return po(function(c){return c=jt(c,qn(Me())),Ye(function(y){var A=this;return a(c,function(R){return Gn(R,A,y)})})})}function Z1(a,c){c=c===n?" ":Yn(c);var y=c.length;if(y<2)return y?Cd(c,a):c;var A=Cd(c,F1(a/ys(c)));return vs(c)?Wo(Rr(A),0,a).join(""):A.slice(0,a)}function LT(a,c,y,A){var R=c&x,L=Ya(a);function q(){for(var X=-1,ie=arguments.length,ue=-1,fe=A.length,he=ae(fe+ie),we=this&&this!==an&&this instanceof q?L:a;++ue<fe;)he[ue]=A[ue];for(;ie--;)he[ue++]=arguments[++X];return Gn(we,R?y:this,he)}return q}function v4(a){return function(c,y,A){return A&&typeof A!="number"&&Tn(c,y,A)&&(y=A=n),c=mo(c),y===n?(y=c,c=0):y=mo(y),A=A===n?c<y?1:-1:mo(A),wT(c,y,A,a)}}function X1(a){return function(c,y){return typeof c=="string"&&typeof y=="string"||(c=gr(c),y=gr(y)),a(c,y)}}function y4(a,c,y,A,R,L,q,X,ie,ue){var fe=c&w,he=fe?q:n,we=fe?n:q,Te=fe?L:n,ke=fe?n:L;c|=fe?P:M,c&=~(fe?M:P),c&I||(c&=~(x|S));var Ge=[a,c,R,Te,he,ke,we,X,ie,ue],_e=y.apply(n,Ge);return Dd(a)&&j4(_e,Ge),_e.placeholder=A,R4(_e,a,c)}function Od(a){var c=tn[a];return function(y,A){if(y=gr(y),A=A==null?0:mn(Ue(A),292),A&&R7(y)){var R=(dt(y)+"e").split("e"),L=c(R[0]+"e"+(+R[1]+A));return R=(dt(L)+"e").split("e"),+(R[0]+"e"+(+R[1]-A))}return c(y)}}var BT=xs&&1/T1(new xs([,-0]))[1]==Z?function(a){return new xs(a)}:Zd;function b4(a){return function(c){var y=vn(c);return y==ve?od(c):y==Ke?tE(c):qA(c,a(c))}}function fo(a,c,y,A,R,L,q,X){var ie=c&S;if(!ie&&typeof a!="function")throw new ur(s);var ue=A?A.length:0;if(ue||(c&=~(P|M),A=R=n),q=q===n?q:nn(Ue(q),0),X=X===n?X:Ue(X),ue-=R?R.length:0,c&M){var fe=A,he=R;A=R=n}var we=ie?n:Rd(a),Te=[a,c,y,A,R,fe,he,L,q,X];if(we&&JT(Te,we),a=Te[0],c=Te[1],y=Te[2],A=Te[3],R=Te[4],X=Te[9]=Te[9]===n?ie?0:a.length:nn(Te[9]-ue,0),!X&&c&(w|T)&&(c&=~(w|T)),!c||c==x)var ke=DT(a,c,y);else c==w||c==T?ke=FT(a,c,X):(c==P||c==(x|P))&&!R.length?ke=LT(a,c,y,A):ke=Y1.apply(n,Te);var Ge=we?J7:j4;return R4(Ge(ke,Te),a,c)}function C4(a,c,y,A){return a===n||kr(a,Cs[y])&&!yt.call(A,y)?c:a}function x4(a,c,y,A,R,L){return _t(a)&&_t(c)&&(L.set(c,a),U1(a,c,n,x4,L),L.delete(c)),a}function NT(a){return Xa(a)?n:a}function w4(a,c,y,A,R,L){var q=y&v,X=a.length,ie=c.length;if(X!=ie&&!(q&&ie>X))return!1;var ue=L.get(a),fe=L.get(c);if(ue&&fe)return ue==c&&fe==a;var he=-1,we=!0,Te=y&b?new Si:n;for(L.set(a,c),L.set(c,a);++he<X;){var ke=a[he],Ge=c[he];if(A)var _e=q?A(Ge,ke,he,c,a,L):A(ke,Ge,he,a,c,L);if(_e!==n){if(_e)continue;we=!1;break}if(Te){if(!Q3(c,function(Ze,Je){if(!La(Te,Je)&&(ke===Ze||R(ke,Ze,y,A,L)))return Te.push(Je)})){we=!1;break}}else if(!(ke===Ge||R(ke,Ge,y,A,L))){we=!1;break}}return L.delete(a),L.delete(c),we}function $T(a,c,y,A,R,L,q){switch(y){case Ie:if(a.byteLength!=c.byteLength||a.byteOffset!=c.byteOffset)return!1;a=a.buffer,c=c.buffer;case je:return!(a.byteLength!=c.byteLength||!L(new M1(a),new M1(c)));case ce:case be:case qe:return kr(+a,+c);case Ee:return a.name==c.name&&a.message==c.message;case mt:case kt:return a==c+"";case ve:var X=od;case Ke:var ie=A&v;if(X||(X=T1),a.size!=c.size&&!ie)return!1;var ue=q.get(a);if(ue)return ue==c;A|=b,q.set(a,c);var fe=w4(X(a),X(c),A,R,L,q);return q.delete(a),fe;case tt:if(za)return za.call(a)==za.call(c)}return!1}function VT(a,c,y,A,R,L){var q=y&v,X=Pd(a),ie=X.length,ue=Pd(c),fe=ue.length;if(ie!=fe&&!q)return!1;for(var he=ie;he--;){var we=X[he];if(!(q?we in c:yt.call(c,we)))return!1}var Te=L.get(a),ke=L.get(c);if(Te&&ke)return Te==c&&ke==a;var Ge=!0;L.set(a,c),L.set(c,a);for(var _e=q;++he<ie;){we=X[he];var Ze=a[we],Je=c[we];if(A)var Zn=q?A(Je,Ze,we,c,a,L):A(Ze,Je,we,a,c,L);if(!(Zn===n?Ze===Je||R(Ze,Je,y,A,L):Zn)){Ge=!1;break}_e||(_e=we=="constructor")}if(Ge&&!_e){var In=a.constructor,Xn=c.constructor;In!=Xn&&"constructor"in a&&"constructor"in c&&!(typeof In=="function"&&In instanceof In&&typeof Xn=="function"&&Xn instanceof Xn)&&(Ge=!1)}return L.delete(a),L.delete(c),Ge}function po(a){return Ld(O4(a,n,L4),a+"")}function Pd(a){return z7(a,rn,kd)}function jd(a){return z7(a,kn,S4)}var Rd=B1?function(a){return B1.get(a)}:Zd;function Q1(a){for(var c=a.name+"",y=ws[c],A=yt.call(ws,c)?y.length:0;A--;){var R=y[A],L=R.func;if(L==null||L==a)return R.name}return c}function Ts(a){var c=yt.call(F,"placeholder")?F:a;return c.placeholder}function Me(){var a=F.iteratee||Yd;return a=a===Yd?H7:a,arguments.length?a(arguments[0],arguments[1]):a}function J1(a,c){var y=a.__data__;return KT(c)?y[typeof c=="string"?"string":"hash"]:y.map}function Md(a){for(var c=rn(a),y=c.length;y--;){var A=c[y],R=a[A];c[y]=[A,R,T4(R)]}return c}function Ti(a,c){var y=QA(a,c);return U7(y)?y:n}function zT(a){var c=yt.call(a,xi),y=a[xi];try{a[xi]=n;var A=!0}catch{}var R=j1.call(a);return A&&(c?a[xi]=y:delete a[xi]),R}var kd=sd?function(a){return a==null?[]:(a=xt(a),Fo(sd(a),function(c){return P7.call(a,c)}))}:Xd,S4=sd?function(a){for(var c=[];a;)Lo(c,kd(a)),a=k1(a);return c}:Xd,vn=En;(ad&&vn(new ad(new ArrayBuffer(1)))!=Ie||Na&&vn(new Na)!=ve||ld&&vn(ld.resolve())!=st||xs&&vn(new xs)!=Ke||$a&&vn(new $a)!=St)&&(vn=function(a){var c=En(a),y=c==bt?a.constructor:n,A=y?Ii(y):"";if(A)switch(A){case AE:return Ie;case EE:return ve;case TE:return st;case IE:return Ke;case OE:return St}return c});function WT(a,c,y){for(var A=-1,R=y.length;++A<R;){var L=y[A],q=L.size;switch(L.type){case"drop":a+=q;break;case"dropRight":c-=q;break;case"take":c=mn(c,a+q);break;case"takeRight":a=nn(a,c-q);break}}return{start:a,end:c}}function UT(a){var c=a.match(bi);return c?c[1].split(Fa):[]}function A4(a,c,y){c=zo(c,a);for(var A=-1,R=c.length,L=!1;++A<R;){var q=Ur(c[A]);if(!(L=a!=null&&y(a,q)))break;a=a[q]}return L||++A!=R?L:(R=a==null?0:a.length,!!R&&sc(R)&&ho(q,R)&&(ze(a)||Oi(a)))}function HT(a){var c=a.length,y=new a.constructor(c);return c&&typeof a[0]=="string"&&yt.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function E4(a){return typeof a.constructor=="function"&&!Ka(a)?Ss(k1(a)):{}}function GT(a,c,y){var A=a.constructor;switch(c){case je:return Td(a);case ce:case be:return new A(+a);case Ie:return PT(a,y);case xe:case vt:case Ct:case De:case Oe:case Yt:case Sn:case Hn:case ao:return a4(a,y);case ve:return new A;case qe:case kt:return new A(a);case mt:return jT(a);case Ke:return new A;case tt:return RT(a)}}function qT(a,c){var y=c.length;if(!y)return a;var A=y-1;return c[A]=(y>1?"& ":"")+c[A],c=c.join(y>2?", ":" "),a.replace(Da,`{
202
+ */ju.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.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",g=1,h=2,m=4,v=1,b=2,x=1,S=2,I=4,w=8,T=16,P=32,M=64,j=128,_=256,N=512,k=30,D="...",U=800,H=16,G=1,Y=2,V=3,Z=1/0,W=9007199254740991,se=17976931348623157e292,K=NaN,$=4294967295,te=$-1,oe=$>>>1,Q=[["ary",j],["bind",x],["bindKey",S],["curry",w],["curryRight",T],["flip",N],["partial",P],["partialRight",M],["rearg",_]],de="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",ce="[object Boolean]",be="[object Date]",Ce="[object DOMException]",Ee="[object Error]",me="[object Function]",Re="[object GeneratorFunction]",ve="[object Map]",qe="[object Number]",Ft="[object Null]",bt="[object Object]",st="[object Promise]",sn="[object Proxy]",mt="[object RegExp]",Ke="[object Set]",kt="[object String]",tt="[object Symbol]",ot="[object Undefined]",St="[object WeakMap]",Pe="[object WeakSet]",je="[object ArrayBuffer]",Ie="[object DataView]",xe="[object Float32Array]",vt="[object Float64Array]",Ct="[object Int8Array]",De="[object Int16Array]",Oe="[object Int32Array]",Yt="[object Uint8Array]",Sn="[object Uint8ClampedArray]",Hn="[object Uint16Array]",ao="[object Uint32Array]",yi=/\b__p \+= '';/g,Ma=/\b(__p \+=) '' \+/g,ls=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cs=/&(?:amp|lt|gt|quot|#39);/g,_o=/[&<>"']/g,us=RegExp(cs.source),ds=RegExp(_o.source),fs=/<%-([\s\S]+?)%>/g,ps=/<%([\s\S]+?)%>/g,hs=/<%=([\s\S]+?)%>/g,ka=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Do=/^\w*$/,_a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/[\\^$.*+?()[\]{}|]/g,en=RegExp(ar.source),Tt=/^\s+/,Vr=/\s/,Da=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bi=/\{\n\/\* \[wrapped with (.+)\] \*/,Fa=/,? & /,m1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,v1=/[()=,{}\[\]\/\s]/,y1=/\\(\\)?/g,b1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C1=/\w*$/,$3=/^[-+]0x[0-9a-f]+$/i,V3=/^0b[01]+$/i,z3=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,aA=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x1=/($^)/,lA=/['\n\r\u2028\u2029\\]/g,w1="\\ud800-\\udfff",cA="\\u0300-\\u036f",uA="\\ufe20-\\ufe2f",dA="\\u20d0-\\u20ff",Up=cA+uA+dA,Hp="\\u2700-\\u27bf",Gp="a-z\\xdf-\\xf6\\xf8-\\xff",fA="\\xac\\xb1\\xd7\\xf7",pA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hA="\\u2000-\\u206f",gA=" \\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",qp="A-Z\\xc0-\\xd6\\xd8-\\xde",Yp="\\ufe0e\\ufe0f",Kp=fA+pA+hA+gA,W3="['’]",mA="["+w1+"]",Zp="["+Kp+"]",S1="["+Up+"]",Xp="\\d+",vA="["+Hp+"]",Qp="["+Gp+"]",Jp="[^"+w1+Kp+Xp+Hp+Gp+qp+"]",U3="\\ud83c[\\udffb-\\udfff]",yA="(?:"+S1+"|"+U3+")",e7="[^"+w1+"]",H3="(?:\\ud83c[\\udde6-\\uddff]){2}",G3="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="["+qp+"]",t7="\\u200d",n7="(?:"+Qp+"|"+Jp+")",bA="(?:"+gs+"|"+Jp+")",r7="(?:"+W3+"(?:d|ll|m|re|s|t|ve))?",o7="(?:"+W3+"(?:D|LL|M|RE|S|T|VE))?",i7=yA+"?",s7="["+Yp+"]?",CA="(?:"+t7+"(?:"+[e7,H3,G3].join("|")+")"+s7+i7+")*",xA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a7=s7+i7+CA,SA="(?:"+[vA,H3,G3].join("|")+")"+a7,AA="(?:"+[e7+S1+"?",S1,H3,G3,mA].join("|")+")",EA=RegExp(W3,"g"),TA=RegExp(S1,"g"),q3=RegExp(U3+"(?="+U3+")|"+AA+a7,"g"),IA=RegExp([gs+"?"+Qp+"+"+r7+"(?="+[Zp,gs,"$"].join("|")+")",bA+"+"+o7+"(?="+[Zp,gs+n7,"$"].join("|")+")",gs+"?"+n7+"+"+r7,gs+"+"+o7,wA,xA,Xp,SA].join("|"),"g"),OA=RegExp("["+t7+w1+Up+Yp+"]"),PA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jA=["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"],RA=-1,It={};It[xe]=It[vt]=It[Ct]=It[De]=It[Oe]=It[Yt]=It[Sn]=It[Hn]=It[ao]=!0,It[de]=It[pe]=It[je]=It[ce]=It[Ie]=It[be]=It[Ee]=It[me]=It[ve]=It[qe]=It[bt]=It[mt]=It[Ke]=It[kt]=It[St]=!1;var At={};At[de]=At[pe]=At[je]=At[Ie]=At[ce]=At[be]=At[xe]=At[vt]=At[Ct]=At[De]=At[Oe]=At[ve]=At[qe]=At[bt]=At[mt]=At[Ke]=At[kt]=At[tt]=At[Yt]=At[Sn]=At[Hn]=At[ao]=!0,At[Ee]=At[me]=At[St]=!1;var MA={À:"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",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"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"},kA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_A={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},DA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},FA=parseFloat,LA=parseInt,l7=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,BA=typeof self=="object"&&self&&self.Object===Object&&self,an=l7||BA||Function("return this")(),Y3=t&&!t.nodeType&&t,Ci=Y3&&!0&&e&&!e.nodeType&&e,c7=Ci&&Ci.exports===Y3,K3=c7&&l7.process,lr=function(){try{var re=Ci&&Ci.require&&Ci.require("util").types;return re||K3&&K3.binding&&K3.binding("util")}catch{}}(),u7=lr&&lr.isArrayBuffer,d7=lr&&lr.isDate,f7=lr&&lr.isMap,p7=lr&&lr.isRegExp,h7=lr&&lr.isSet,g7=lr&&lr.isTypedArray;function Gn(re,le,ae){switch(ae.length){case 0:return re.call(le);case 1:return re.call(le,ae[0]);case 2:return re.call(le,ae[0],ae[1]);case 3:return re.call(le,ae[0],ae[1],ae[2])}return re.apply(le,ae)}function NA(re,le,ae,Se){for(var Ne=-1,at=re==null?0:re.length;++Ne<at;){var tn=re[Ne];le(Se,tn,ae(tn),re)}return Se}function cr(re,le){for(var ae=-1,Se=re==null?0:re.length;++ae<Se&&le(re[ae],ae,re)!==!1;);return re}function $A(re,le){for(var ae=re==null?0:re.length;ae--&&le(re[ae],ae,re)!==!1;);return re}function m7(re,le){for(var ae=-1,Se=re==null?0:re.length;++ae<Se;)if(!le(re[ae],ae,re))return!1;return!0}function Fo(re,le){for(var ae=-1,Se=re==null?0:re.length,Ne=0,at=[];++ae<Se;){var tn=re[ae];le(tn,ae,re)&&(at[Ne++]=tn)}return at}function A1(re,le){var ae=re==null?0:re.length;return!!ae&&ms(re,le,0)>-1}function Z3(re,le,ae){for(var Se=-1,Ne=re==null?0:re.length;++Se<Ne;)if(ae(le,re[Se]))return!0;return!1}function jt(re,le){for(var ae=-1,Se=re==null?0:re.length,Ne=Array(Se);++ae<Se;)Ne[ae]=le(re[ae],ae,re);return Ne}function Lo(re,le){for(var ae=-1,Se=le.length,Ne=re.length;++ae<Se;)re[Ne+ae]=le[ae];return re}function X3(re,le,ae,Se){var Ne=-1,at=re==null?0:re.length;for(Se&&at&&(ae=re[++Ne]);++Ne<at;)ae=le(ae,re[Ne],Ne,re);return ae}function VA(re,le,ae,Se){var Ne=re==null?0:re.length;for(Se&&Ne&&(ae=re[--Ne]);Ne--;)ae=le(ae,re[Ne],Ne,re);return ae}function Q3(re,le){for(var ae=-1,Se=re==null?0:re.length;++ae<Se;)if(le(re[ae],ae,re))return!0;return!1}var zA=J3("length");function WA(re){return re.split("")}function UA(re){return re.match(m1)||[]}function v7(re,le,ae){var Se;return ae(re,function(Ne,at,tn){if(le(Ne,at,tn))return Se=at,!1}),Se}function E1(re,le,ae,Se){for(var Ne=re.length,at=ae+(Se?1:-1);Se?at--:++at<Ne;)if(le(re[at],at,re))return at;return-1}function ms(re,le,ae){return le===le?nE(re,le,ae):E1(re,y7,ae)}function HA(re,le,ae,Se){for(var Ne=ae-1,at=re.length;++Ne<at;)if(Se(re[Ne],le))return Ne;return-1}function y7(re){return re!==re}function b7(re,le){var ae=re==null?0:re.length;return ae?td(re,le)/ae:K}function J3(re){return function(le){return le==null?n:le[re]}}function ed(re){return function(le){return re==null?n:re[le]}}function C7(re,le,ae,Se,Ne){return Ne(re,function(at,tn,xt){ae=Se?(Se=!1,at):le(ae,at,tn,xt)}),ae}function GA(re,le){var ae=re.length;for(re.sort(le);ae--;)re[ae]=re[ae].value;return re}function td(re,le){for(var ae,Se=-1,Ne=re.length;++Se<Ne;){var at=le(re[Se]);at!==n&&(ae=ae===n?at:ae+at)}return ae}function nd(re,le){for(var ae=-1,Se=Array(re);++ae<re;)Se[ae]=le(ae);return Se}function qA(re,le){return jt(le,function(ae){return[ae,re[ae]]})}function x7(re){return re&&re.slice(0,E7(re)+1).replace(Tt,"")}function qn(re){return function(le){return re(le)}}function rd(re,le){return jt(le,function(ae){return re[ae]})}function La(re,le){return re.has(le)}function w7(re,le){for(var ae=-1,Se=re.length;++ae<Se&&ms(le,re[ae],0)>-1;);return ae}function S7(re,le){for(var ae=re.length;ae--&&ms(le,re[ae],0)>-1;);return ae}function YA(re,le){for(var ae=re.length,Se=0;ae--;)re[ae]===le&&++Se;return Se}var KA=ed(MA),ZA=ed(kA);function XA(re){return"\\"+DA[re]}function QA(re,le){return re==null?n:re[le]}function vs(re){return OA.test(re)}function JA(re){return PA.test(re)}function eE(re){for(var le,ae=[];!(le=re.next()).done;)ae.push(le.value);return ae}function od(re){var le=-1,ae=Array(re.size);return re.forEach(function(Se,Ne){ae[++le]=[Ne,Se]}),ae}function A7(re,le){return function(ae){return re(le(ae))}}function Bo(re,le){for(var ae=-1,Se=re.length,Ne=0,at=[];++ae<Se;){var tn=re[ae];(tn===le||tn===p)&&(re[ae]=p,at[Ne++]=ae)}return at}function T1(re){var le=-1,ae=Array(re.size);return re.forEach(function(Se){ae[++le]=Se}),ae}function tE(re){var le=-1,ae=Array(re.size);return re.forEach(function(Se){ae[++le]=[Se,Se]}),ae}function nE(re,le,ae){for(var Se=ae-1,Ne=re.length;++Se<Ne;)if(re[Se]===le)return Se;return-1}function rE(re,le,ae){for(var Se=ae+1;Se--;)if(re[Se]===le)return Se;return Se}function ys(re){return vs(re)?iE(re):zA(re)}function Rr(re){return vs(re)?sE(re):WA(re)}function E7(re){for(var le=re.length;le--&&Vr.test(re.charAt(le)););return le}var oE=ed(_A);function iE(re){for(var le=q3.lastIndex=0;q3.test(re);)++le;return le}function sE(re){return re.match(q3)||[]}function aE(re){return re.match(IA)||[]}var lE=function re(le){le=le==null?an:bs.defaults(an.Object(),le,bs.pick(an,jA));var ae=le.Array,Se=le.Date,Ne=le.Error,at=le.Function,tn=le.Math,xt=le.Object,id=le.RegExp,cE=le.String,ur=le.TypeError,I1=ae.prototype,uE=at.prototype,Cs=xt.prototype,O1=le["__core-js_shared__"],P1=uE.toString,yt=Cs.hasOwnProperty,dE=0,T7=function(){var a=/[^.]+$/.exec(O1&&O1.keys&&O1.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),j1=Cs.toString,fE=P1.call(xt),pE=an._,hE=id("^"+P1.call(yt).replace(ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R1=c7?le.Buffer:n,No=le.Symbol,M1=le.Uint8Array,I7=R1?R1.allocUnsafe:n,k1=A7(xt.getPrototypeOf,xt),O7=xt.create,P7=Cs.propertyIsEnumerable,_1=I1.splice,j7=No?No.isConcatSpreadable:n,Ba=No?No.iterator:n,xi=No?No.toStringTag:n,D1=function(){try{var a=Ti(xt,"defineProperty");return a({},"",{}),a}catch{}}(),gE=le.clearTimeout!==an.clearTimeout&&le.clearTimeout,mE=Se&&Se.now!==an.Date.now&&Se.now,vE=le.setTimeout!==an.setTimeout&&le.setTimeout,F1=tn.ceil,L1=tn.floor,sd=xt.getOwnPropertySymbols,yE=R1?R1.isBuffer:n,R7=le.isFinite,bE=I1.join,CE=A7(xt.keys,xt),nn=tn.max,mn=tn.min,xE=Se.now,wE=le.parseInt,M7=tn.random,SE=I1.reverse,ad=Ti(le,"DataView"),Na=Ti(le,"Map"),ld=Ti(le,"Promise"),xs=Ti(le,"Set"),$a=Ti(le,"WeakMap"),Va=Ti(xt,"create"),B1=$a&&new $a,ws={},AE=Ii(ad),EE=Ii(Na),TE=Ii(ld),IE=Ii(xs),OE=Ii($a),N1=No?No.prototype:n,za=N1?N1.valueOf:n,k7=N1?N1.toString:n;function F(a){if(Lt(a)&&!ze(a)&&!(a instanceof Xe)){if(a instanceof dr)return a;if(yt.call(a,"__wrapped__"))return _4(a)}return new dr(a)}var Ss=function(){function a(){}return function(c){if(!_t(c))return{};if(O7)return O7(c);a.prototype=c;var y=new a;return a.prototype=n,y}}();function $1(){}function dr(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:fs,evaluate:ps,interpolate:hs,variable:"",imports:{_:F}},F.prototype=$1.prototype,F.prototype.constructor=F,dr.prototype=Ss($1.prototype),dr.prototype.constructor=dr;function Xe(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function PE(){var a=new Xe(this.__wrapped__);return a.__actions__=Rn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Rn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Rn(this.__views__),a}function jE(){if(this.__filtered__){var a=new Xe(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function RE(){var a=this.__wrapped__.value(),c=this.__dir__,y=ze(a),A=c<0,R=y?a.length:0,L=WT(0,R,this.__views__),q=L.start,X=L.end,ie=X-q,ue=A?X:q-1,fe=this.__iteratees__,he=fe.length,we=0,Te=mn(ie,this.__takeCount__);if(!y||!A&&R==ie&&Te==ie)return r4(a,this.__actions__);var ke=[];e:for(;ie--&&we<Te;){ue+=c;for(var Ge=-1,_e=a[ue];++Ge<he;){var Ze=fe[Ge],Je=Ze.iteratee,Zn=Ze.type,In=Je(_e);if(Zn==Y)_e=In;else if(!In){if(Zn==G)continue e;break e}}ke[we++]=_e}return ke}Xe.prototype=Ss($1.prototype),Xe.prototype.constructor=Xe;function wi(a){var c=-1,y=a==null?0:a.length;for(this.clear();++c<y;){var A=a[c];this.set(A[0],A[1])}}function ME(){this.__data__=Va?Va(null):{},this.size=0}function kE(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}function _E(a){var c=this.__data__;if(Va){var y=c[a];return y===d?n:y}return yt.call(c,a)?c[a]:n}function DE(a){var c=this.__data__;return Va?c[a]!==n:yt.call(c,a)}function FE(a,c){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=Va&&c===n?d:c,this}wi.prototype.clear=ME,wi.prototype.delete=kE,wi.prototype.get=_E,wi.prototype.has=DE,wi.prototype.set=FE;function lo(a){var c=-1,y=a==null?0:a.length;for(this.clear();++c<y;){var A=a[c];this.set(A[0],A[1])}}function LE(){this.__data__=[],this.size=0}function BE(a){var c=this.__data__,y=V1(c,a);if(y<0)return!1;var A=c.length-1;return y==A?c.pop():_1.call(c,y,1),--this.size,!0}function NE(a){var c=this.__data__,y=V1(c,a);return y<0?n:c[y][1]}function $E(a){return V1(this.__data__,a)>-1}function VE(a,c){var y=this.__data__,A=V1(y,a);return A<0?(++this.size,y.push([a,c])):y[A][1]=c,this}lo.prototype.clear=LE,lo.prototype.delete=BE,lo.prototype.get=NE,lo.prototype.has=$E,lo.prototype.set=VE;function co(a){var c=-1,y=a==null?0:a.length;for(this.clear();++c<y;){var A=a[c];this.set(A[0],A[1])}}function zE(){this.size=0,this.__data__={hash:new wi,map:new(Na||lo),string:new wi}}function WE(a){var c=J1(this,a).delete(a);return this.size-=c?1:0,c}function UE(a){return J1(this,a).get(a)}function HE(a){return J1(this,a).has(a)}function GE(a,c){var y=J1(this,a),A=y.size;return y.set(a,c),this.size+=y.size==A?0:1,this}co.prototype.clear=zE,co.prototype.delete=WE,co.prototype.get=UE,co.prototype.has=HE,co.prototype.set=GE;function Si(a){var c=-1,y=a==null?0:a.length;for(this.__data__=new co;++c<y;)this.add(a[c])}function qE(a){return this.__data__.set(a,d),this}function YE(a){return this.__data__.has(a)}Si.prototype.add=Si.prototype.push=qE,Si.prototype.has=YE;function Mr(a){var c=this.__data__=new lo(a);this.size=c.size}function KE(){this.__data__=new lo,this.size=0}function ZE(a){var c=this.__data__,y=c.delete(a);return this.size=c.size,y}function XE(a){return this.__data__.get(a)}function QE(a){return this.__data__.has(a)}function JE(a,c){var y=this.__data__;if(y instanceof lo){var A=y.__data__;if(!Na||A.length<o-1)return A.push([a,c]),this.size=++y.size,this;y=this.__data__=new co(A)}return y.set(a,c),this.size=y.size,this}Mr.prototype.clear=KE,Mr.prototype.delete=ZE,Mr.prototype.get=XE,Mr.prototype.has=QE,Mr.prototype.set=JE;function _7(a,c){var y=ze(a),A=!y&&Oi(a),R=!y&&!A&&Uo(a),L=!y&&!A&&!R&&Is(a),q=y||A||R||L,X=q?nd(a.length,cE):[],ie=X.length;for(var ue in a)(c||yt.call(a,ue))&&!(q&&(ue=="length"||R&&(ue=="offset"||ue=="parent")||L&&(ue=="buffer"||ue=="byteLength"||ue=="byteOffset")||ho(ue,ie)))&&X.push(ue);return X}function D7(a){var c=a.length;return c?a[bd(0,c-1)]:n}function eT(a,c){return ec(Rn(a),Ai(c,0,a.length))}function tT(a){return ec(Rn(a))}function cd(a,c,y){(y!==n&&!kr(a[c],y)||y===n&&!(c in a))&&uo(a,c,y)}function Wa(a,c,y){var A=a[c];(!(yt.call(a,c)&&kr(A,y))||y===n&&!(c in a))&&uo(a,c,y)}function V1(a,c){for(var y=a.length;y--;)if(kr(a[y][0],c))return y;return-1}function nT(a,c,y,A){return $o(a,function(R,L,q){c(A,R,y(R),q)}),A}function F7(a,c){return a&&Wr(c,rn(c),a)}function rT(a,c){return a&&Wr(c,kn(c),a)}function uo(a,c,y){c=="__proto__"&&D1?D1(a,c,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[c]=y}function ud(a,c){for(var y=-1,A=c.length,R=ae(A),L=a==null;++y<A;)R[y]=L?n:Ud(a,c[y]);return R}function Ai(a,c,y){return a===a&&(y!==n&&(a=a<=y?a:y),c!==n&&(a=a>=c?a:c)),a}function fr(a,c,y,A,R,L){var q,X=c&g,ie=c&h,ue=c&m;if(y&&(q=R?y(a,A,R,L):y(a)),q!==n)return q;if(!_t(a))return a;var fe=ze(a);if(fe){if(q=HT(a),!X)return Rn(a,q)}else{var he=vn(a),we=he==me||he==Re;if(Uo(a))return s4(a,X);if(he==bt||he==de||we&&!R){if(q=ie||we?{}:E4(a),!X)return ie?_T(a,rT(q,a)):kT(a,F7(q,a))}else{if(!At[he])return R?a:{};q=GT(a,he,X)}}L||(L=new Mr);var Te=L.get(a);if(Te)return Te;L.set(a,q),eh(a)?a.forEach(function(_e){q.add(fr(_e,c,y,_e,a,L))}):Q4(a)&&a.forEach(function(_e,Ze){q.set(Ze,fr(_e,c,y,Ze,a,L))});var ke=ue?ie?jd:Pd:ie?kn:rn,Ge=fe?n:ke(a);return cr(Ge||a,function(_e,Ze){Ge&&(Ze=_e,_e=a[Ze]),Wa(q,Ze,fr(_e,c,y,Ze,a,L))}),q}function oT(a){var c=rn(a);return function(y){return L7(y,a,c)}}function L7(a,c,y){var A=y.length;if(a==null)return!A;for(a=xt(a);A--;){var R=y[A],L=c[R],q=a[R];if(q===n&&!(R in a)||!L(q))return!1}return!0}function B7(a,c,y){if(typeof a!="function")throw new ur(s);return Za(function(){a.apply(n,y)},c)}function Ua(a,c,y,A){var R=-1,L=A1,q=!0,X=a.length,ie=[],ue=c.length;if(!X)return ie;y&&(c=jt(c,qn(y))),A?(L=Z3,q=!1):c.length>=o&&(L=La,q=!1,c=new Si(c));e:for(;++R<X;){var fe=a[R],he=y==null?fe:y(fe);if(fe=A||fe!==0?fe:0,q&&he===he){for(var we=ue;we--;)if(c[we]===he)continue e;ie.push(fe)}else L(c,he,A)||ie.push(fe)}return ie}var $o=d4(zr),N7=d4(fd,!0);function iT(a,c){var y=!0;return $o(a,function(A,R,L){return y=!!c(A,R,L),y}),y}function z1(a,c,y){for(var A=-1,R=a.length;++A<R;){var L=a[A],q=c(L);if(q!=null&&(X===n?q===q&&!Kn(q):y(q,X)))var X=q,ie=L}return ie}function sT(a,c,y,A){var R=a.length;for(y=Ue(y),y<0&&(y=-y>R?0:R+y),A=A===n||A>R?R:Ue(A),A<0&&(A+=R),A=y>A?0:nh(A);y<A;)a[y++]=c;return a}function $7(a,c){var y=[];return $o(a,function(A,R,L){c(A,R,L)&&y.push(A)}),y}function ln(a,c,y,A,R){var L=-1,q=a.length;for(y||(y=YT),R||(R=[]);++L<q;){var X=a[L];c>0&&y(X)?c>1?ln(X,c-1,y,A,R):Lo(R,X):A||(R[R.length]=X)}return R}var dd=f4(),V7=f4(!0);function zr(a,c){return a&&dd(a,c,rn)}function fd(a,c){return a&&V7(a,c,rn)}function W1(a,c){return Fo(c,function(y){return go(a[y])})}function Ei(a,c){c=zo(c,a);for(var y=0,A=c.length;a!=null&&y<A;)a=a[Ur(c[y++])];return y&&y==A?a:n}function z7(a,c,y){var A=c(a);return ze(a)?A:Lo(A,y(a))}function En(a){return a==null?a===n?ot:Ft:xi&&xi in xt(a)?zT(a):tI(a)}function pd(a,c){return a>c}function aT(a,c){return a!=null&&yt.call(a,c)}function lT(a,c){return a!=null&&c in xt(a)}function cT(a,c,y){return a>=mn(c,y)&&a<nn(c,y)}function hd(a,c,y){for(var A=y?Z3:A1,R=a[0].length,L=a.length,q=L,X=ae(L),ie=1/0,ue=[];q--;){var fe=a[q];q&&c&&(fe=jt(fe,qn(c))),ie=mn(fe.length,ie),X[q]=!y&&(c||R>=120&&fe.length>=120)?new Si(q&&fe):n}fe=a[0];var he=-1,we=X[0];e:for(;++he<R&&ue.length<ie;){var Te=fe[he],ke=c?c(Te):Te;if(Te=y||Te!==0?Te:0,!(we?La(we,ke):A(ue,ke,y))){for(q=L;--q;){var Ge=X[q];if(!(Ge?La(Ge,ke):A(a[q],ke,y)))continue e}we&&we.push(ke),ue.push(Te)}}return ue}function uT(a,c,y,A){return zr(a,function(R,L,q){c(A,y(R),L,q)}),A}function Ha(a,c,y){c=zo(c,a),a=P4(a,c);var A=a==null?a:a[Ur(hr(c))];return A==null?n:Gn(A,a,y)}function W7(a){return Lt(a)&&En(a)==de}function dT(a){return Lt(a)&&En(a)==je}function fT(a){return Lt(a)&&En(a)==be}function Ga(a,c,y,A,R){return a===c?!0:a==null||c==null||!Lt(a)&&!Lt(c)?a!==a&&c!==c:pT(a,c,y,A,Ga,R)}function pT(a,c,y,A,R,L){var q=ze(a),X=ze(c),ie=q?pe:vn(a),ue=X?pe:vn(c);ie=ie==de?bt:ie,ue=ue==de?bt:ue;var fe=ie==bt,he=ue==bt,we=ie==ue;if(we&&Uo(a)){if(!Uo(c))return!1;q=!0,fe=!1}if(we&&!fe)return L||(L=new Mr),q||Is(a)?w4(a,c,y,A,R,L):$T(a,c,ie,y,A,R,L);if(!(y&v)){var Te=fe&&yt.call(a,"__wrapped__"),ke=he&&yt.call(c,"__wrapped__");if(Te||ke){var Ge=Te?a.value():a,_e=ke?c.value():c;return L||(L=new Mr),R(Ge,_e,y,A,L)}}return we?(L||(L=new Mr),VT(a,c,y,A,R,L)):!1}function hT(a){return Lt(a)&&vn(a)==ve}function gd(a,c,y,A){var R=y.length,L=R,q=!A;if(a==null)return!L;for(a=xt(a);R--;){var X=y[R];if(q&&X[2]?X[1]!==a[X[0]]:!(X[0]in a))return!1}for(;++R<L;){X=y[R];var ie=X[0],ue=a[ie],fe=X[1];if(q&&X[2]){if(ue===n&&!(ie in a))return!1}else{var he=new Mr;if(A)var we=A(ue,fe,ie,a,c,he);if(!(we===n?Ga(fe,ue,v|b,A,he):we))return!1}}return!0}function U7(a){if(!_t(a)||ZT(a))return!1;var c=go(a)?hE:z3;return c.test(Ii(a))}function gT(a){return Lt(a)&&En(a)==mt}function mT(a){return Lt(a)&&vn(a)==Ke}function vT(a){return Lt(a)&&sc(a.length)&&!!It[En(a)]}function H7(a){return typeof a=="function"?a:a==null?_n:typeof a=="object"?ze(a)?Y7(a[0],a[1]):q7(a):ph(a)}function md(a){if(!Ka(a))return CE(a);var c=[];for(var y in xt(a))yt.call(a,y)&&y!="constructor"&&c.push(y);return c}function yT(a){if(!_t(a))return eI(a);var c=Ka(a),y=[];for(var A in a)A=="constructor"&&(c||!yt.call(a,A))||y.push(A);return y}function vd(a,c){return a<c}function G7(a,c){var y=-1,A=Mn(a)?ae(a.length):[];return $o(a,function(R,L,q){A[++y]=c(R,L,q)}),A}function q7(a){var c=Md(a);return c.length==1&&c[0][2]?I4(c[0][0],c[0][1]):function(y){return y===a||gd(y,a,c)}}function Y7(a,c){return _d(a)&&T4(c)?I4(Ur(a),c):function(y){var A=Ud(y,a);return A===n&&A===c?Hd(y,a):Ga(c,A,v|b)}}function U1(a,c,y,A,R){a!==c&&dd(c,function(L,q){if(R||(R=new Mr),_t(L))bT(a,c,q,y,U1,A,R);else{var X=A?A(Fd(a,q),L,q+"",a,c,R):n;X===n&&(X=L),cd(a,q,X)}},kn)}function bT(a,c,y,A,R,L,q){var X=Fd(a,y),ie=Fd(c,y),ue=q.get(ie);if(ue){cd(a,y,ue);return}var fe=L?L(X,ie,y+"",a,c,q):n,he=fe===n;if(he){var we=ze(ie),Te=!we&&Uo(ie),ke=!we&&!Te&&Is(ie);fe=ie,we||Te||ke?ze(X)?fe=X:Wt(X)?fe=Rn(X):Te?(he=!1,fe=s4(ie,!0)):ke?(he=!1,fe=a4(ie,!0)):fe=[]:Xa(ie)||Oi(ie)?(fe=X,Oi(X)?fe=rh(X):(!_t(X)||go(X))&&(fe=E4(ie))):he=!1}he&&(q.set(ie,fe),R(fe,ie,A,L,q),q.delete(ie)),cd(a,y,fe)}function K7(a,c){var y=a.length;if(y)return c+=c<0?y:0,ho(c,y)?a[c]:n}function Z7(a,c,y){c.length?c=jt(c,function(L){return ze(L)?function(q){return Ei(q,L.length===1?L[0]:L)}:L}):c=[_n];var A=-1;c=jt(c,qn(Me()));var R=G7(a,function(L,q,X){var ie=jt(c,function(ue){return ue(L)});return{criteria:ie,index:++A,value:L}});return GA(R,function(L,q){return MT(L,q,y)})}function CT(a,c){return X7(a,c,function(y,A){return Hd(a,A)})}function X7(a,c,y){for(var A=-1,R=c.length,L={};++A<R;){var q=c[A],X=Ei(a,q);y(X,q)&&qa(L,zo(q,a),X)}return L}function xT(a){return function(c){return Ei(c,a)}}function yd(a,c,y,A){var R=A?HA:ms,L=-1,q=c.length,X=a;for(a===c&&(c=Rn(c)),y&&(X=jt(a,qn(y)));++L<q;)for(var ie=0,ue=c[L],fe=y?y(ue):ue;(ie=R(X,fe,ie,A))>-1;)X!==a&&_1.call(X,ie,1),_1.call(a,ie,1);return a}function Q7(a,c){for(var y=a?c.length:0,A=y-1;y--;){var R=c[y];if(y==A||R!==L){var L=R;ho(R)?_1.call(a,R,1):wd(a,R)}}return a}function bd(a,c){return a+L1(M7()*(c-a+1))}function wT(a,c,y,A){for(var R=-1,L=nn(F1((c-a)/(y||1)),0),q=ae(L);L--;)q[A?L:++R]=a,a+=y;return q}function Cd(a,c){var y="";if(!a||c<1||c>W)return y;do c%2&&(y+=a),c=L1(c/2),c&&(a+=a);while(c);return y}function Ye(a,c){return Ld(O4(a,c,_n),a+"")}function ST(a){return D7(Os(a))}function AT(a,c){var y=Os(a);return ec(y,Ai(c,0,y.length))}function qa(a,c,y,A){if(!_t(a))return a;c=zo(c,a);for(var R=-1,L=c.length,q=L-1,X=a;X!=null&&++R<L;){var ie=Ur(c[R]),ue=y;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return a;if(R!=q){var fe=X[ie];ue=A?A(fe,ie,X):n,ue===n&&(ue=_t(fe)?fe:ho(c[R+1])?[]:{})}Wa(X,ie,ue),X=X[ie]}return a}var J7=B1?function(a,c){return B1.set(a,c),a}:_n,ET=D1?function(a,c){return D1(a,"toString",{configurable:!0,enumerable:!1,value:qd(c),writable:!0})}:_n;function TT(a){return ec(Os(a))}function pr(a,c,y){var A=-1,R=a.length;c<0&&(c=-c>R?0:R+c),y=y>R?R:y,y<0&&(y+=R),R=c>y?0:y-c>>>0,c>>>=0;for(var L=ae(R);++A<R;)L[A]=a[A+c];return L}function IT(a,c){var y;return $o(a,function(A,R,L){return y=c(A,R,L),!y}),!!y}function H1(a,c,y){var A=0,R=a==null?A:a.length;if(typeof c=="number"&&c===c&&R<=oe){for(;A<R;){var L=A+R>>>1,q=a[L];q!==null&&!Kn(q)&&(y?q<=c:q<c)?A=L+1:R=L}return R}return xd(a,c,_n,y)}function xd(a,c,y,A){var R=0,L=a==null?0:a.length;if(L===0)return 0;c=y(c);for(var q=c!==c,X=c===null,ie=Kn(c),ue=c===n;R<L;){var fe=L1((R+L)/2),he=y(a[fe]),we=he!==n,Te=he===null,ke=he===he,Ge=Kn(he);if(q)var _e=A||ke;else ue?_e=ke&&(A||we):X?_e=ke&&we&&(A||!Te):ie?_e=ke&&we&&!Te&&(A||!Ge):Te||Ge?_e=!1:_e=A?he<=c:he<c;_e?R=fe+1:L=fe}return mn(L,te)}function e4(a,c){for(var y=-1,A=a.length,R=0,L=[];++y<A;){var q=a[y],X=c?c(q):q;if(!y||!kr(X,ie)){var ie=X;L[R++]=q===0?0:q}}return L}function t4(a){return typeof a=="number"?a:Kn(a)?K:+a}function Yn(a){if(typeof a=="string")return a;if(ze(a))return jt(a,Yn)+"";if(Kn(a))return k7?k7.call(a):"";var c=a+"";return c=="0"&&1/a==-Z?"-0":c}function Vo(a,c,y){var A=-1,R=A1,L=a.length,q=!0,X=[],ie=X;if(y)q=!1,R=Z3;else if(L>=o){var ue=c?null:BT(a);if(ue)return T1(ue);q=!1,R=La,ie=new Si}else ie=c?[]:X;e:for(;++A<L;){var fe=a[A],he=c?c(fe):fe;if(fe=y||fe!==0?fe:0,q&&he===he){for(var we=ie.length;we--;)if(ie[we]===he)continue e;c&&ie.push(he),X.push(fe)}else R(ie,he,y)||(ie!==X&&ie.push(he),X.push(fe))}return X}function wd(a,c){return c=zo(c,a),a=P4(a,c),a==null||delete a[Ur(hr(c))]}function n4(a,c,y,A){return qa(a,c,y(Ei(a,c)),A)}function G1(a,c,y,A){for(var R=a.length,L=A?R:-1;(A?L--:++L<R)&&c(a[L],L,a););return y?pr(a,A?0:L,A?L+1:R):pr(a,A?L+1:0,A?R:L)}function r4(a,c){var y=a;return y instanceof Xe&&(y=y.value()),X3(c,function(A,R){return R.func.apply(R.thisArg,Lo([A],R.args))},y)}function Sd(a,c,y){var A=a.length;if(A<2)return A?Vo(a[0]):[];for(var R=-1,L=ae(A);++R<A;)for(var q=a[R],X=-1;++X<A;)X!=R&&(L[R]=Ua(L[R]||q,a[X],c,y));return Vo(ln(L,1),c,y)}function o4(a,c,y){for(var A=-1,R=a.length,L=c.length,q={};++A<R;){var X=A<L?c[A]:n;y(q,a[A],X)}return q}function Ad(a){return Wt(a)?a:[]}function Ed(a){return typeof a=="function"?a:_n}function zo(a,c){return ze(a)?a:_d(a,c)?[a]:k4(dt(a))}var OT=Ye;function Wo(a,c,y){var A=a.length;return y=y===n?A:y,!c&&y>=A?a:pr(a,c,y)}var i4=gE||function(a){return an.clearTimeout(a)};function s4(a,c){if(c)return a.slice();var y=a.length,A=I7?I7(y):new a.constructor(y);return a.copy(A),A}function Td(a){var c=new a.constructor(a.byteLength);return new M1(c).set(new M1(a)),c}function PT(a,c){var y=c?Td(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function jT(a){var c=new a.constructor(a.source,C1.exec(a));return c.lastIndex=a.lastIndex,c}function RT(a){return za?xt(za.call(a)):{}}function a4(a,c){var y=c?Td(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function l4(a,c){if(a!==c){var y=a!==n,A=a===null,R=a===a,L=Kn(a),q=c!==n,X=c===null,ie=c===c,ue=Kn(c);if(!X&&!ue&&!L&&a>c||L&&q&&ie&&!X&&!ue||A&&q&&ie||!y&&ie||!R)return 1;if(!A&&!L&&!ue&&a<c||ue&&y&&R&&!A&&!L||X&&y&&R||!q&&R||!ie)return-1}return 0}function MT(a,c,y){for(var A=-1,R=a.criteria,L=c.criteria,q=R.length,X=y.length;++A<q;){var ie=l4(R[A],L[A]);if(ie){if(A>=X)return ie;var ue=y[A];return ie*(ue=="desc"?-1:1)}}return a.index-c.index}function c4(a,c,y,A){for(var R=-1,L=a.length,q=y.length,X=-1,ie=c.length,ue=nn(L-q,0),fe=ae(ie+ue),he=!A;++X<ie;)fe[X]=c[X];for(;++R<q;)(he||R<L)&&(fe[y[R]]=a[R]);for(;ue--;)fe[X++]=a[R++];return fe}function u4(a,c,y,A){for(var R=-1,L=a.length,q=-1,X=y.length,ie=-1,ue=c.length,fe=nn(L-X,0),he=ae(fe+ue),we=!A;++R<fe;)he[R]=a[R];for(var Te=R;++ie<ue;)he[Te+ie]=c[ie];for(;++q<X;)(we||R<L)&&(he[Te+y[q]]=a[R++]);return he}function Rn(a,c){var y=-1,A=a.length;for(c||(c=ae(A));++y<A;)c[y]=a[y];return c}function Wr(a,c,y,A){var R=!y;y||(y={});for(var L=-1,q=c.length;++L<q;){var X=c[L],ie=A?A(y[X],a[X],X,y,a):n;ie===n&&(ie=a[X]),R?uo(y,X,ie):Wa(y,X,ie)}return y}function kT(a,c){return Wr(a,kd(a),c)}function _T(a,c){return Wr(a,S4(a),c)}function q1(a,c){return function(y,A){var R=ze(y)?NA:nT,L=c?c():{};return R(y,a,Me(A,2),L)}}function As(a){return Ye(function(c,y){var A=-1,R=y.length,L=R>1?y[R-1]:n,q=R>2?y[2]:n;for(L=a.length>3&&typeof L=="function"?(R--,L):n,q&&Tn(y[0],y[1],q)&&(L=R<3?n:L,R=1),c=xt(c);++A<R;){var X=y[A];X&&a(c,X,A,L)}return c})}function d4(a,c){return function(y,A){if(y==null)return y;if(!Mn(y))return a(y,A);for(var R=y.length,L=c?R:-1,q=xt(y);(c?L--:++L<R)&&A(q[L],L,q)!==!1;);return y}}function f4(a){return function(c,y,A){for(var R=-1,L=xt(c),q=A(c),X=q.length;X--;){var ie=q[a?X:++R];if(y(L[ie],ie,L)===!1)break}return c}}function DT(a,c,y){var A=c&x,R=Ya(a);function L(){var q=this&&this!==an&&this instanceof L?R:a;return q.apply(A?y:this,arguments)}return L}function p4(a){return function(c){c=dt(c);var y=vs(c)?Rr(c):n,A=y?y[0]:c.charAt(0),R=y?Wo(y,1).join(""):c.slice(1);return A[a]()+R}}function Es(a){return function(c){return X3(dh(uh(c).replace(EA,"")),a,"")}}function Ya(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var y=Ss(a.prototype),A=a.apply(y,c);return _t(A)?A:y}}function FT(a,c,y){var A=Ya(a);function R(){for(var L=arguments.length,q=ae(L),X=L,ie=Ts(R);X--;)q[X]=arguments[X];var ue=L<3&&q[0]!==ie&&q[L-1]!==ie?[]:Bo(q,ie);if(L-=ue.length,L<y)return y4(a,c,Y1,R.placeholder,n,q,ue,n,n,y-L);var fe=this&&this!==an&&this instanceof R?A:a;return Gn(fe,this,q)}return R}function h4(a){return function(c,y,A){var R=xt(c);if(!Mn(c)){var L=Me(y,3);c=rn(c),y=function(X){return L(R[X],X,R)}}var q=a(c,y,A);return q>-1?R[L?c[q]:q]:n}}function g4(a){return po(function(c){var y=c.length,A=y,R=dr.prototype.thru;for(a&&c.reverse();A--;){var L=c[A];if(typeof L!="function")throw new ur(s);if(R&&!q&&Q1(L)=="wrapper")var q=new dr([],!0)}for(A=q?A:y;++A<y;){L=c[A];var X=Q1(L),ie=X=="wrapper"?Rd(L):n;ie&&Dd(ie[0])&&ie[1]==(j|w|P|_)&&!ie[4].length&&ie[9]==1?q=q[Q1(ie[0])].apply(q,ie[3]):q=L.length==1&&Dd(L)?q[X]():q.thru(L)}return function(){var ue=arguments,fe=ue[0];if(q&&ue.length==1&&ze(fe))return q.plant(fe).value();for(var he=0,we=y?c[he].apply(this,ue):fe;++he<y;)we=c[he].call(this,we);return we}})}function Y1(a,c,y,A,R,L,q,X,ie,ue){var fe=c&j,he=c&x,we=c&S,Te=c&(w|T),ke=c&N,Ge=we?n:Ya(a);function _e(){for(var Ze=arguments.length,Je=ae(Ze),Zn=Ze;Zn--;)Je[Zn]=arguments[Zn];if(Te)var In=Ts(_e),Xn=YA(Je,In);if(A&&(Je=c4(Je,A,R,Te)),L&&(Je=u4(Je,L,q,Te)),Ze-=Xn,Te&&Ze<ue){var Ut=Bo(Je,In);return y4(a,c,Y1,_e.placeholder,y,Je,Ut,X,ie,ue-Ze)}var _r=he?y:this,vo=we?_r[a]:a;return Ze=Je.length,X?Je=nI(Je,X):ke&&Ze>1&&Je.reverse(),fe&&ie<Ze&&(Je.length=ie),this&&this!==an&&this instanceof _e&&(vo=Ge||Ya(vo)),vo.apply(_r,Je)}return _e}function m4(a,c){return function(y,A){return uT(y,a,c(A),{})}}function K1(a,c){return function(y,A){var R;if(y===n&&A===n)return c;if(y!==n&&(R=y),A!==n){if(R===n)return A;typeof y=="string"||typeof A=="string"?(y=Yn(y),A=Yn(A)):(y=t4(y),A=t4(A)),R=a(y,A)}return R}}function Id(a){return po(function(c){return c=jt(c,qn(Me())),Ye(function(y){var A=this;return a(c,function(R){return Gn(R,A,y)})})})}function Z1(a,c){c=c===n?" ":Yn(c);var y=c.length;if(y<2)return y?Cd(c,a):c;var A=Cd(c,F1(a/ys(c)));return vs(c)?Wo(Rr(A),0,a).join(""):A.slice(0,a)}function LT(a,c,y,A){var R=c&x,L=Ya(a);function q(){for(var X=-1,ie=arguments.length,ue=-1,fe=A.length,he=ae(fe+ie),we=this&&this!==an&&this instanceof q?L:a;++ue<fe;)he[ue]=A[ue];for(;ie--;)he[ue++]=arguments[++X];return Gn(we,R?y:this,he)}return q}function v4(a){return function(c,y,A){return A&&typeof A!="number"&&Tn(c,y,A)&&(y=A=n),c=mo(c),y===n?(y=c,c=0):y=mo(y),A=A===n?c<y?1:-1:mo(A),wT(c,y,A,a)}}function X1(a){return function(c,y){return typeof c=="string"&&typeof y=="string"||(c=gr(c),y=gr(y)),a(c,y)}}function y4(a,c,y,A,R,L,q,X,ie,ue){var fe=c&w,he=fe?q:n,we=fe?n:q,Te=fe?L:n,ke=fe?n:L;c|=fe?P:M,c&=~(fe?M:P),c&I||(c&=~(x|S));var Ge=[a,c,R,Te,he,ke,we,X,ie,ue],_e=y.apply(n,Ge);return Dd(a)&&j4(_e,Ge),_e.placeholder=A,R4(_e,a,c)}function Od(a){var c=tn[a];return function(y,A){if(y=gr(y),A=A==null?0:mn(Ue(A),292),A&&R7(y)){var R=(dt(y)+"e").split("e"),L=c(R[0]+"e"+(+R[1]+A));return R=(dt(L)+"e").split("e"),+(R[0]+"e"+(+R[1]-A))}return c(y)}}var BT=xs&&1/T1(new xs([,-0]))[1]==Z?function(a){return new xs(a)}:Zd;function b4(a){return function(c){var y=vn(c);return y==ve?od(c):y==Ke?tE(c):qA(c,a(c))}}function fo(a,c,y,A,R,L,q,X){var ie=c&S;if(!ie&&typeof a!="function")throw new ur(s);var ue=A?A.length:0;if(ue||(c&=~(P|M),A=R=n),q=q===n?q:nn(Ue(q),0),X=X===n?X:Ue(X),ue-=R?R.length:0,c&M){var fe=A,he=R;A=R=n}var we=ie?n:Rd(a),Te=[a,c,y,A,R,fe,he,L,q,X];if(we&&JT(Te,we),a=Te[0],c=Te[1],y=Te[2],A=Te[3],R=Te[4],X=Te[9]=Te[9]===n?ie?0:a.length:nn(Te[9]-ue,0),!X&&c&(w|T)&&(c&=~(w|T)),!c||c==x)var ke=DT(a,c,y);else c==w||c==T?ke=FT(a,c,X):(c==P||c==(x|P))&&!R.length?ke=LT(a,c,y,A):ke=Y1.apply(n,Te);var Ge=we?J7:j4;return R4(Ge(ke,Te),a,c)}function C4(a,c,y,A){return a===n||kr(a,Cs[y])&&!yt.call(A,y)?c:a}function x4(a,c,y,A,R,L){return _t(a)&&_t(c)&&(L.set(c,a),U1(a,c,n,x4,L),L.delete(c)),a}function NT(a){return Xa(a)?n:a}function w4(a,c,y,A,R,L){var q=y&v,X=a.length,ie=c.length;if(X!=ie&&!(q&&ie>X))return!1;var ue=L.get(a),fe=L.get(c);if(ue&&fe)return ue==c&&fe==a;var he=-1,we=!0,Te=y&b?new Si:n;for(L.set(a,c),L.set(c,a);++he<X;){var ke=a[he],Ge=c[he];if(A)var _e=q?A(Ge,ke,he,c,a,L):A(ke,Ge,he,a,c,L);if(_e!==n){if(_e)continue;we=!1;break}if(Te){if(!Q3(c,function(Ze,Je){if(!La(Te,Je)&&(ke===Ze||R(ke,Ze,y,A,L)))return Te.push(Je)})){we=!1;break}}else if(!(ke===Ge||R(ke,Ge,y,A,L))){we=!1;break}}return L.delete(a),L.delete(c),we}function $T(a,c,y,A,R,L,q){switch(y){case Ie:if(a.byteLength!=c.byteLength||a.byteOffset!=c.byteOffset)return!1;a=a.buffer,c=c.buffer;case je:return!(a.byteLength!=c.byteLength||!L(new M1(a),new M1(c)));case ce:case be:case qe:return kr(+a,+c);case Ee:return a.name==c.name&&a.message==c.message;case mt:case kt:return a==c+"";case ve:var X=od;case Ke:var ie=A&v;if(X||(X=T1),a.size!=c.size&&!ie)return!1;var ue=q.get(a);if(ue)return ue==c;A|=b,q.set(a,c);var fe=w4(X(a),X(c),A,R,L,q);return q.delete(a),fe;case tt:if(za)return za.call(a)==za.call(c)}return!1}function VT(a,c,y,A,R,L){var q=y&v,X=Pd(a),ie=X.length,ue=Pd(c),fe=ue.length;if(ie!=fe&&!q)return!1;for(var he=ie;he--;){var we=X[he];if(!(q?we in c:yt.call(c,we)))return!1}var Te=L.get(a),ke=L.get(c);if(Te&&ke)return Te==c&&ke==a;var Ge=!0;L.set(a,c),L.set(c,a);for(var _e=q;++he<ie;){we=X[he];var Ze=a[we],Je=c[we];if(A)var Zn=q?A(Je,Ze,we,c,a,L):A(Ze,Je,we,a,c,L);if(!(Zn===n?Ze===Je||R(Ze,Je,y,A,L):Zn)){Ge=!1;break}_e||(_e=we=="constructor")}if(Ge&&!_e){var In=a.constructor,Xn=c.constructor;In!=Xn&&"constructor"in a&&"constructor"in c&&!(typeof In=="function"&&In instanceof In&&typeof Xn=="function"&&Xn instanceof Xn)&&(Ge=!1)}return L.delete(a),L.delete(c),Ge}function po(a){return Ld(O4(a,n,L4),a+"")}function Pd(a){return z7(a,rn,kd)}function jd(a){return z7(a,kn,S4)}var Rd=B1?function(a){return B1.get(a)}:Zd;function Q1(a){for(var c=a.name+"",y=ws[c],A=yt.call(ws,c)?y.length:0;A--;){var R=y[A],L=R.func;if(L==null||L==a)return R.name}return c}function Ts(a){var c=yt.call(F,"placeholder")?F:a;return c.placeholder}function Me(){var a=F.iteratee||Yd;return a=a===Yd?H7:a,arguments.length?a(arguments[0],arguments[1]):a}function J1(a,c){var y=a.__data__;return KT(c)?y[typeof c=="string"?"string":"hash"]:y.map}function Md(a){for(var c=rn(a),y=c.length;y--;){var A=c[y],R=a[A];c[y]=[A,R,T4(R)]}return c}function Ti(a,c){var y=QA(a,c);return U7(y)?y:n}function zT(a){var c=yt.call(a,xi),y=a[xi];try{a[xi]=n;var A=!0}catch{}var R=j1.call(a);return A&&(c?a[xi]=y:delete a[xi]),R}var kd=sd?function(a){return a==null?[]:(a=xt(a),Fo(sd(a),function(c){return P7.call(a,c)}))}:Xd,S4=sd?function(a){for(var c=[];a;)Lo(c,kd(a)),a=k1(a);return c}:Xd,vn=En;(ad&&vn(new ad(new ArrayBuffer(1)))!=Ie||Na&&vn(new Na)!=ve||ld&&vn(ld.resolve())!=st||xs&&vn(new xs)!=Ke||$a&&vn(new $a)!=St)&&(vn=function(a){var c=En(a),y=c==bt?a.constructor:n,A=y?Ii(y):"";if(A)switch(A){case AE:return Ie;case EE:return ve;case TE:return st;case IE:return Ke;case OE:return St}return c});function WT(a,c,y){for(var A=-1,R=y.length;++A<R;){var L=y[A],q=L.size;switch(L.type){case"drop":a+=q;break;case"dropRight":c-=q;break;case"take":c=mn(c,a+q);break;case"takeRight":a=nn(a,c-q);break}}return{start:a,end:c}}function UT(a){var c=a.match(bi);return c?c[1].split(Fa):[]}function A4(a,c,y){c=zo(c,a);for(var A=-1,R=c.length,L=!1;++A<R;){var q=Ur(c[A]);if(!(L=a!=null&&y(a,q)))break;a=a[q]}return L||++A!=R?L:(R=a==null?0:a.length,!!R&&sc(R)&&ho(q,R)&&(ze(a)||Oi(a)))}function HT(a){var c=a.length,y=new a.constructor(c);return c&&typeof a[0]=="string"&&yt.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function E4(a){return typeof a.constructor=="function"&&!Ka(a)?Ss(k1(a)):{}}function GT(a,c,y){var A=a.constructor;switch(c){case je:return Td(a);case ce:case be:return new A(+a);case Ie:return PT(a,y);case xe:case vt:case Ct:case De:case Oe:case Yt:case Sn:case Hn:case ao:return a4(a,y);case ve:return new A;case qe:case kt:return new A(a);case mt:return jT(a);case Ke:return new A;case tt:return RT(a)}}function qT(a,c){var y=c.length;if(!y)return a;var A=y-1;return c[A]=(y>1?"& ":"")+c[A],c=c.join(y>2?", ":" "),a.replace(Da,`{
203
203
  /* [wrapped with `+c+`] */
204
- `)}function YT(a){return ze(a)||Oi(a)||!!(j7&&a&&a[j7])}function ho(a,c){var y=typeof a;return c=c??W,!!c&&(y=="number"||y!="symbol"&&An.test(a))&&a>-1&&a%1==0&&a<c}function Tn(a,c,y){if(!_t(y))return!1;var A=typeof c;return(A=="number"?Mn(y)&&ho(c,y.length):A=="string"&&c in y)?kr(y[c],a):!1}function _d(a,c){if(ze(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||Kn(a)?!0:Do.test(a)||!ka.test(a)||c!=null&&a in xt(c)}function KT(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}function Dd(a){var c=Q1(a),y=F[c];if(typeof y!="function"||!(c in Xe.prototype))return!1;if(a===y)return!0;var A=Rd(y);return!!A&&a===A[0]}function ZT(a){return!!T7&&T7 in a}var XT=O1?go:Qd;function Ka(a){var c=a&&a.constructor,y=typeof c=="function"&&c.prototype||Cs;return a===y}function T4(a){return a===a&&!_t(a)}function I4(a,c){return function(y){return y==null?!1:y[a]===c&&(c!==n||a in xt(y))}}function QT(a){var c=oc(a,function(A){return y.size===u&&y.clear(),A}),y=c.cache;return c}function JT(a,c){var y=a[1],A=c[1],R=y|A,L=R<(x|S|j),q=A==j&&y==w||A==j&&y==D&&a[7].length<=c[8]||A==(j|D)&&c[7].length<=c[8]&&y==w;if(!(L||q))return a;A&x&&(a[2]=c[2],R|=y&x?0:I);var X=c[3];if(X){var ie=a[3];a[3]=ie?c4(ie,X,c[4]):X,a[4]=ie?Bo(a[3],p):c[4]}return X=c[5],X&&(ie=a[5],a[5]=ie?u4(ie,X,c[6]):X,a[6]=ie?Bo(a[5],p):c[6]),X=c[7],X&&(a[7]=X),A&j&&(a[8]=a[8]==null?c[8]:mn(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=R,a}function eI(a){var c=[];if(a!=null)for(var y in xt(a))c.push(y);return c}function tI(a){return j1.call(a)}function O4(a,c,y){return c=nn(c===n?a.length-1:c,0),function(){for(var A=arguments,R=-1,L=nn(A.length-c,0),q=ae(L);++R<L;)q[R]=A[c+R];R=-1;for(var X=ae(c+1);++R<c;)X[R]=A[R];return X[c]=y(q),Gn(a,this,X)}}function P4(a,c){return c.length<2?a:Ei(a,pr(c,0,-1))}function nI(a,c){for(var y=a.length,A=mn(c.length,y),R=Rn(a);A--;){var L=c[A];a[A]=ho(L,y)?R[L]:n}return a}function Fd(a,c){if(!(c==="constructor"&&typeof a[c]=="function")&&c!="__proto__")return a[c]}var j4=M4(J7),Za=vE||function(a,c){return an.setTimeout(a,c)},Ld=M4(ET);function R4(a,c,y){var A=c+"";return Ld(a,qT(A,rI(UT(A),y)))}function M4(a){var c=0,y=0;return function(){var A=xE(),R=H-(A-y);if(y=A,R>0){if(++c>=U)return arguments[0]}else c=0;return a.apply(n,arguments)}}function ec(a,c){var y=-1,A=a.length,R=A-1;for(c=c===n?A:c;++y<c;){var L=bd(y,R),q=a[L];a[L]=a[y],a[y]=q}return a.length=c,a}var k4=QT(function(a){var c=[];return a.charCodeAt(0)===46&&c.push(""),a.replace(_a,function(y,A,R,L){c.push(R?L.replace(y1,"$1"):A||y)}),c});function Ur(a){if(typeof a=="string"||Kn(a))return a;var c=a+"";return c=="0"&&1/a==-Z?"-0":c}function Ii(a){if(a!=null){try{return P1.call(a)}catch{}try{return a+""}catch{}}return""}function rI(a,c){return cr(Q,function(y){var A="_."+y[0];c&y[1]&&!A1(a,A)&&a.push(A)}),a.sort()}function _4(a){if(a instanceof Xe)return a.clone();var c=new dr(a.__wrapped__,a.__chain__);return c.__actions__=Rn(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}function oI(a,c,y){(y?Tn(a,c,y):c===n)?c=1:c=nn(Ue(c),0);var A=a==null?0:a.length;if(!A||c<1)return[];for(var R=0,L=0,q=ae(F1(A/c));R<A;)q[L++]=pr(a,R,R+=c);return q}function iI(a){for(var c=-1,y=a==null?0:a.length,A=0,R=[];++c<y;){var L=a[c];L&&(R[A++]=L)}return R}function sI(){var a=arguments.length;if(!a)return[];for(var c=ae(a-1),y=arguments[0],A=a;A--;)c[A-1]=arguments[A];return Lo(ze(y)?Rn(y):[y],ln(c,1))}var aI=Ye(function(a,c){return Wt(a)?Ua(a,ln(c,1,Wt,!0)):[]}),lI=Ye(function(a,c){var y=hr(c);return Wt(y)&&(y=n),Wt(a)?Ua(a,ln(c,1,Wt,!0),Me(y,2)):[]}),cI=Ye(function(a,c){var y=hr(c);return Wt(y)&&(y=n),Wt(a)?Ua(a,ln(c,1,Wt,!0),n,y):[]});function uI(a,c,y){var A=a==null?0:a.length;return A?(c=y||c===n?1:Ue(c),pr(a,c<0?0:c,A)):[]}function dI(a,c,y){var A=a==null?0:a.length;return A?(c=y||c===n?1:Ue(c),c=A-c,pr(a,0,c<0?0:c)):[]}function fI(a,c){return a&&a.length?G1(a,Me(c,3),!0,!0):[]}function pI(a,c){return a&&a.length?G1(a,Me(c,3),!0):[]}function hI(a,c,y,A){var R=a==null?0:a.length;return R?(y&&typeof y!="number"&&Tn(a,c,y)&&(y=0,A=R),sT(a,c,y,A)):[]}function D4(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=y==null?0:Ue(y);return R<0&&(R=nn(A+R,0)),E1(a,Me(c,3),R)}function F4(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=A-1;return y!==n&&(R=Ue(y),R=y<0?nn(A+R,0):mn(R,A-1)),E1(a,Me(c,3),R,!0)}function L4(a){var c=a==null?0:a.length;return c?ln(a,1):[]}function gI(a){var c=a==null?0:a.length;return c?ln(a,Z):[]}function mI(a,c){var y=a==null?0:a.length;return y?(c=c===n?1:Ue(c),ln(a,c)):[]}function vI(a){for(var c=-1,y=a==null?0:a.length,A={};++c<y;){var R=a[c];A[R[0]]=R[1]}return A}function B4(a){return a&&a.length?a[0]:n}function yI(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=y==null?0:Ue(y);return R<0&&(R=nn(A+R,0)),ms(a,c,R)}function bI(a){var c=a==null?0:a.length;return c?pr(a,0,-1):[]}var CI=Ye(function(a){var c=jt(a,Ad);return c.length&&c[0]===a[0]?hd(c):[]}),xI=Ye(function(a){var c=hr(a),y=jt(a,Ad);return c===hr(y)?c=n:y.pop(),y.length&&y[0]===a[0]?hd(y,Me(c,2)):[]}),wI=Ye(function(a){var c=hr(a),y=jt(a,Ad);return c=typeof c=="function"?c:n,c&&y.pop(),y.length&&y[0]===a[0]?hd(y,n,c):[]});function SI(a,c){return a==null?"":bE.call(a,c)}function hr(a){var c=a==null?0:a.length;return c?a[c-1]:n}function AI(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=A;return y!==n&&(R=Ue(y),R=R<0?nn(A+R,0):mn(R,A-1)),c===c?rE(a,c,R):E1(a,y7,R,!0)}function EI(a,c){return a&&a.length?K7(a,Ue(c)):n}var TI=Ye(N4);function N4(a,c){return a&&a.length&&c&&c.length?yd(a,c):a}function II(a,c,y){return a&&a.length&&c&&c.length?yd(a,c,Me(y,2)):a}function OI(a,c,y){return a&&a.length&&c&&c.length?yd(a,c,n,y):a}var PI=po(function(a,c){var y=a==null?0:a.length,A=ud(a,c);return Q7(a,jt(c,function(R){return ho(R,y)?+R:R}).sort(l4)),A});function jI(a,c){var y=[];if(!(a&&a.length))return y;var A=-1,R=[],L=a.length;for(c=Me(c,3);++A<L;){var q=a[A];c(q,A,a)&&(y.push(q),R.push(A))}return Q7(a,R),y}function Bd(a){return a==null?a:SE.call(a)}function RI(a,c,y){var A=a==null?0:a.length;return A?(y&&typeof y!="number"&&Tn(a,c,y)?(c=0,y=A):(c=c==null?0:Ue(c),y=y===n?A:Ue(y)),pr(a,c,y)):[]}function MI(a,c){return H1(a,c)}function kI(a,c,y){return xd(a,c,Me(y,2))}function _I(a,c){var y=a==null?0:a.length;if(y){var A=H1(a,c);if(A<y&&kr(a[A],c))return A}return-1}function DI(a,c){return H1(a,c,!0)}function FI(a,c,y){return xd(a,c,Me(y,2),!0)}function LI(a,c){var y=a==null?0:a.length;if(y){var A=H1(a,c,!0)-1;if(kr(a[A],c))return A}return-1}function BI(a){return a&&a.length?e4(a):[]}function NI(a,c){return a&&a.length?e4(a,Me(c,2)):[]}function $I(a){var c=a==null?0:a.length;return c?pr(a,1,c):[]}function VI(a,c,y){return a&&a.length?(c=y||c===n?1:Ue(c),pr(a,0,c<0?0:c)):[]}function zI(a,c,y){var A=a==null?0:a.length;return A?(c=y||c===n?1:Ue(c),c=A-c,pr(a,c<0?0:c,A)):[]}function WI(a,c){return a&&a.length?G1(a,Me(c,3),!1,!0):[]}function UI(a,c){return a&&a.length?G1(a,Me(c,3)):[]}var HI=Ye(function(a){return Vo(ln(a,1,Wt,!0))}),GI=Ye(function(a){var c=hr(a);return Wt(c)&&(c=n),Vo(ln(a,1,Wt,!0),Me(c,2))}),qI=Ye(function(a){var c=hr(a);return c=typeof c=="function"?c:n,Vo(ln(a,1,Wt,!0),n,c)});function YI(a){return a&&a.length?Vo(a):[]}function KI(a,c){return a&&a.length?Vo(a,Me(c,2)):[]}function ZI(a,c){return c=typeof c=="function"?c:n,a&&a.length?Vo(a,n,c):[]}function Nd(a){if(!(a&&a.length))return[];var c=0;return a=Fo(a,function(y){if(Wt(y))return c=nn(y.length,c),!0}),nd(c,function(y){return jt(a,J3(y))})}function $4(a,c){if(!(a&&a.length))return[];var y=Nd(a);return c==null?y:jt(y,function(A){return Gn(c,n,A)})}var XI=Ye(function(a,c){return Wt(a)?Ua(a,c):[]}),QI=Ye(function(a){return Sd(Fo(a,Wt))}),JI=Ye(function(a){var c=hr(a);return Wt(c)&&(c=n),Sd(Fo(a,Wt),Me(c,2))}),eO=Ye(function(a){var c=hr(a);return c=typeof c=="function"?c:n,Sd(Fo(a,Wt),n,c)}),tO=Ye(Nd);function nO(a,c){return o4(a||[],c||[],Wa)}function rO(a,c){return o4(a||[],c||[],qa)}var oO=Ye(function(a){var c=a.length,y=c>1?a[c-1]:n;return y=typeof y=="function"?(a.pop(),y):n,$4(a,y)});function V4(a){var c=F(a);return c.__chain__=!0,c}function iO(a,c){return c(a),a}function tc(a,c){return c(a)}var sO=po(function(a){var c=a.length,y=c?a[0]:0,A=this.__wrapped__,R=function(L){return ud(L,a)};return c>1||this.__actions__.length||!(A instanceof Xe)||!ho(y)?this.thru(R):(A=A.slice(y,+y+(c?1:0)),A.__actions__.push({func:tc,args:[R],thisArg:n}),new dr(A,this.__chain__).thru(function(L){return c&&!L.length&&L.push(n),L}))});function aO(){return V4(this)}function lO(){return new dr(this.value(),this.__chain__)}function cO(){this.__values__===n&&(this.__values__=th(this.value()));var a=this.__index__>=this.__values__.length,c=a?n:this.__values__[this.__index__++];return{done:a,value:c}}function uO(){return this}function dO(a){for(var c,y=this;y instanceof $1;){var A=_4(y);A.__index__=0,A.__values__=n,c?R.__wrapped__=A:c=A;var R=A;y=y.__wrapped__}return R.__wrapped__=a,c}function fO(){var a=this.__wrapped__;if(a instanceof Xe){var c=a;return this.__actions__.length&&(c=new Xe(this)),c=c.reverse(),c.__actions__.push({func:tc,args:[Bd],thisArg:n}),new dr(c,this.__chain__)}return this.thru(Bd)}function pO(){return r4(this.__wrapped__,this.__actions__)}var hO=q1(function(a,c,y){yt.call(a,y)?++a[y]:uo(a,y,1)});function gO(a,c,y){var A=ze(a)?m7:iT;return y&&Tn(a,c,y)&&(c=n),A(a,Me(c,3))}function mO(a,c){var y=ze(a)?Fo:$7;return y(a,Me(c,3))}var vO=h4(D4),yO=h4(F4);function bO(a,c){return ln(nc(a,c),1)}function CO(a,c){return ln(nc(a,c),Z)}function xO(a,c,y){return y=y===n?1:Ue(y),ln(nc(a,c),y)}function z4(a,c){var y=ze(a)?cr:$o;return y(a,Me(c,3))}function W4(a,c){var y=ze(a)?$A:N7;return y(a,Me(c,3))}var wO=q1(function(a,c,y){yt.call(a,y)?a[y].push(c):uo(a,y,[c])});function SO(a,c,y,A){a=Mn(a)?a:Os(a),y=y&&!A?Ue(y):0;var R=a.length;return y<0&&(y=nn(R+y,0)),ac(a)?y<=R&&a.indexOf(c,y)>-1:!!R&&ms(a,c,y)>-1}var AO=Ye(function(a,c,y){var A=-1,R=typeof c=="function",L=Mn(a)?ae(a.length):[];return $o(a,function(q){L[++A]=R?Gn(c,q,y):Ha(q,c,y)}),L}),EO=q1(function(a,c,y){uo(a,y,c)});function nc(a,c){var y=ze(a)?jt:G7;return y(a,Me(c,3))}function TO(a,c,y,A){return a==null?[]:(ze(c)||(c=c==null?[]:[c]),y=A?n:y,ze(y)||(y=y==null?[]:[y]),Z7(a,c,y))}var IO=q1(function(a,c,y){a[y?0:1].push(c)},function(){return[[],[]]});function OO(a,c,y){var A=ze(a)?X3:C7,R=arguments.length<3;return A(a,Me(c,4),y,R,$o)}function PO(a,c,y){var A=ze(a)?VA:C7,R=arguments.length<3;return A(a,Me(c,4),y,R,N7)}function jO(a,c){var y=ze(a)?Fo:$7;return y(a,ic(Me(c,3)))}function RO(a){var c=ze(a)?D7:ST;return c(a)}function MO(a,c,y){(y?Tn(a,c,y):c===n)?c=1:c=Ue(c);var A=ze(a)?eT:AT;return A(a,c)}function kO(a){var c=ze(a)?tT:TT;return c(a)}function _O(a){if(a==null)return 0;if(Mn(a))return ac(a)?ys(a):a.length;var c=vn(a);return c==ve||c==Ke?a.size:md(a).length}function DO(a,c,y){var A=ze(a)?Q3:IT;return y&&Tn(a,c,y)&&(c=n),A(a,Me(c,3))}var FO=Ye(function(a,c){if(a==null)return[];var y=c.length;return y>1&&Tn(a,c[0],c[1])?c=[]:y>2&&Tn(c[0],c[1],c[2])&&(c=[c[0]]),Z7(a,ln(c,1),[])}),rc=mE||function(){return an.Date.now()};function LO(a,c){if(typeof c!="function")throw new ur(s);return a=Ue(a),function(){if(--a<1)return c.apply(this,arguments)}}function U4(a,c,y){return c=y?n:c,c=a&&c==null?a.length:c,fo(a,j,n,n,n,n,c)}function H4(a,c){var y;if(typeof c!="function")throw new ur(s);return a=Ue(a),function(){return--a>0&&(y=c.apply(this,arguments)),a<=1&&(c=n),y}}var $d=Ye(function(a,c,y){var A=x;if(y.length){var R=Bo(y,Ts($d));A|=P}return fo(a,A,c,y,R)}),G4=Ye(function(a,c,y){var A=x|S;if(y.length){var R=Bo(y,Ts(G4));A|=P}return fo(c,A,a,y,R)});function q4(a,c,y){c=y?n:c;var A=fo(a,w,n,n,n,n,n,c);return A.placeholder=q4.placeholder,A}function Y4(a,c,y){c=y?n:c;var A=fo(a,T,n,n,n,n,n,c);return A.placeholder=Y4.placeholder,A}function K4(a,c,y){var A,R,L,q,X,ie,ue=0,fe=!1,he=!1,we=!0;if(typeof a!="function")throw new ur(s);c=gr(c)||0,_t(y)&&(fe=!!y.leading,he="maxWait"in y,L=he?nn(gr(y.maxWait)||0,c):L,we="trailing"in y?!!y.trailing:we);function Te(Ut){var _r=A,vo=R;return A=R=n,ue=Ut,q=a.apply(vo,_r),q}function ke(Ut){return ue=Ut,X=Za(Ze,c),fe?Te(Ut):q}function Ge(Ut){var _r=Ut-ie,vo=Ut-ue,hh=c-_r;return he?mn(hh,L-vo):hh}function _e(Ut){var _r=Ut-ie,vo=Ut-ue;return ie===n||_r>=c||_r<0||he&&vo>=L}function Ze(){var Ut=rc();if(_e(Ut))return Je(Ut);X=Za(Ze,Ge(Ut))}function Je(Ut){return X=n,we&&A?Te(Ut):(A=R=n,q)}function Zn(){X!==n&&i4(X),ue=0,A=ie=R=X=n}function In(){return X===n?q:Je(rc())}function Xn(){var Ut=rc(),_r=_e(Ut);if(A=arguments,R=this,ie=Ut,_r){if(X===n)return ke(ie);if(he)return i4(X),X=Za(Ze,c),Te(ie)}return X===n&&(X=Za(Ze,c)),q}return Xn.cancel=Zn,Xn.flush=In,Xn}var BO=Ye(function(a,c){return B7(a,1,c)}),NO=Ye(function(a,c,y){return B7(a,gr(c)||0,y)});function $O(a){return fo(a,N)}function oc(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new ur(s);var y=function(){var A=arguments,R=c?c.apply(this,A):A[0],L=y.cache;if(L.has(R))return L.get(R);var q=a.apply(this,A);return y.cache=L.set(R,q)||L,q};return y.cache=new(oc.Cache||co),y}oc.Cache=co;function ic(a){if(typeof a!="function")throw new ur(s);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function VO(a){return H4(2,a)}var zO=OT(function(a,c){c=c.length==1&&ze(c[0])?jt(c[0],qn(Me())):jt(ln(c,1),qn(Me()));var y=c.length;return Ye(function(A){for(var R=-1,L=mn(A.length,y);++R<L;)A[R]=c[R].call(this,A[R]);return Gn(a,this,A)})}),Vd=Ye(function(a,c){var y=Bo(c,Ts(Vd));return fo(a,P,n,c,y)}),Z4=Ye(function(a,c){var y=Bo(c,Ts(Z4));return fo(a,M,n,c,y)}),WO=po(function(a,c){return fo(a,D,n,n,n,c)});function UO(a,c){if(typeof a!="function")throw new ur(s);return c=c===n?c:Ue(c),Ye(a,c)}function HO(a,c){if(typeof a!="function")throw new ur(s);return c=c==null?0:nn(Ue(c),0),Ye(function(y){var A=y[c],R=Wo(y,0,c);return A&&Lo(R,A),Gn(a,this,R)})}function GO(a,c,y){var A=!0,R=!0;if(typeof a!="function")throw new ur(s);return _t(y)&&(A="leading"in y?!!y.leading:A,R="trailing"in y?!!y.trailing:R),K4(a,c,{leading:A,maxWait:c,trailing:R})}function qO(a){return U4(a,1)}function YO(a,c){return Vd(Ed(c),a)}function KO(){if(!arguments.length)return[];var a=arguments[0];return ze(a)?a:[a]}function ZO(a){return fr(a,m)}function XO(a,c){return c=typeof c=="function"?c:n,fr(a,m,c)}function QO(a){return fr(a,g|m)}function JO(a,c){return c=typeof c=="function"?c:n,fr(a,g|m,c)}function eP(a,c){return c==null||L7(a,c,rn(c))}function kr(a,c){return a===c||a!==a&&c!==c}var tP=X1(pd),nP=X1(function(a,c){return a>=c}),Oi=W7(function(){return arguments}())?W7:function(a){return Lt(a)&&yt.call(a,"callee")&&!P7.call(a,"callee")},ze=ae.isArray,rP=u7?qn(u7):dT;function Mn(a){return a!=null&&sc(a.length)&&!go(a)}function Wt(a){return Lt(a)&&Mn(a)}function oP(a){return a===!0||a===!1||Lt(a)&&En(a)==ce}var Uo=yE||Qd,iP=d7?qn(d7):fT;function sP(a){return Lt(a)&&a.nodeType===1&&!Xa(a)}function aP(a){if(a==null)return!0;if(Mn(a)&&(ze(a)||typeof a=="string"||typeof a.splice=="function"||Uo(a)||Is(a)||Oi(a)))return!a.length;var c=vn(a);if(c==ve||c==Ke)return!a.size;if(Ka(a))return!md(a).length;for(var y in a)if(yt.call(a,y))return!1;return!0}function lP(a,c){return Ga(a,c)}function cP(a,c,y){y=typeof y=="function"?y:n;var A=y?y(a,c):n;return A===n?Ga(a,c,n,y):!!A}function zd(a){if(!Lt(a))return!1;var c=En(a);return c==Ee||c==Ce||typeof a.message=="string"&&typeof a.name=="string"&&!Xa(a)}function uP(a){return typeof a=="number"&&R7(a)}function go(a){if(!_t(a))return!1;var c=En(a);return c==me||c==Re||c==ye||c==sn}function X4(a){return typeof a=="number"&&a==Ue(a)}function sc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=W}function _t(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function Lt(a){return a!=null&&typeof a=="object"}var Q4=f7?qn(f7):hT;function dP(a,c){return a===c||gd(a,c,Md(c))}function fP(a,c,y){return y=typeof y=="function"?y:n,gd(a,c,Md(c),y)}function pP(a){return J4(a)&&a!=+a}function hP(a){if(XT(a))throw new Ne(i);return U7(a)}function gP(a){return a===null}function mP(a){return a==null}function J4(a){return typeof a=="number"||Lt(a)&&En(a)==qe}function Xa(a){if(!Lt(a)||En(a)!=bt)return!1;var c=k1(a);if(c===null)return!0;var y=yt.call(c,"constructor")&&c.constructor;return typeof y=="function"&&y instanceof y&&P1.call(y)==fE}var Wd=p7?qn(p7):gT;function vP(a){return X4(a)&&a>=-W&&a<=W}var eh=h7?qn(h7):mT;function ac(a){return typeof a=="string"||!ze(a)&&Lt(a)&&En(a)==kt}function Kn(a){return typeof a=="symbol"||Lt(a)&&En(a)==tt}var Is=g7?qn(g7):vT;function yP(a){return a===n}function bP(a){return Lt(a)&&vn(a)==St}function CP(a){return Lt(a)&&En(a)==Pe}var xP=X1(vd),wP=X1(function(a,c){return a<=c});function th(a){if(!a)return[];if(Mn(a))return ac(a)?Rr(a):Rn(a);if(Ba&&a[Ba])return eE(a[Ba]());var c=vn(a),y=c==ve?od:c==Ke?T1:Os;return y(a)}function mo(a){if(!a)return a===0?a:0;if(a=gr(a),a===Z||a===-Z){var c=a<0?-1:1;return c*se}return a===a?a:0}function Ue(a){var c=mo(a),y=c%1;return c===c?y?c-y:c:0}function nh(a){return a?Ai(Ue(a),0,$):0}function gr(a){if(typeof a=="number")return a;if(Kn(a))return K;if(_t(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=_t(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=x7(a);var y=V3.test(a);return y||We.test(a)?LA(a.slice(2),y?2:8):$3.test(a)?K:+a}function rh(a){return Wr(a,kn(a))}function SP(a){return a?Ai(Ue(a),-W,W):a===0?a:0}function dt(a){return a==null?"":Yn(a)}var AP=As(function(a,c){if(Ka(c)||Mn(c)){Wr(c,rn(c),a);return}for(var y in c)yt.call(c,y)&&Wa(a,y,c[y])}),oh=As(function(a,c){Wr(c,kn(c),a)}),lc=As(function(a,c,y,A){Wr(c,kn(c),a,A)}),EP=As(function(a,c,y,A){Wr(c,rn(c),a,A)}),TP=po(ud);function IP(a,c){var y=Ss(a);return c==null?y:F7(y,c)}var OP=Ye(function(a,c){a=xt(a);var y=-1,A=c.length,R=A>2?c[2]:n;for(R&&Tn(c[0],c[1],R)&&(A=1);++y<A;)for(var L=c[y],q=kn(L),X=-1,ie=q.length;++X<ie;){var ue=q[X],fe=a[ue];(fe===n||kr(fe,Cs[ue])&&!yt.call(a,ue))&&(a[ue]=L[ue])}return a}),PP=Ye(function(a){return a.push(n,x4),Gn(ih,n,a)});function jP(a,c){return v7(a,Me(c,3),zr)}function RP(a,c){return v7(a,Me(c,3),fd)}function MP(a,c){return a==null?a:dd(a,Me(c,3),kn)}function kP(a,c){return a==null?a:V7(a,Me(c,3),kn)}function _P(a,c){return a&&zr(a,Me(c,3))}function DP(a,c){return a&&fd(a,Me(c,3))}function FP(a){return a==null?[]:W1(a,rn(a))}function LP(a){return a==null?[]:W1(a,kn(a))}function Ud(a,c,y){var A=a==null?n:Ei(a,c);return A===n?y:A}function BP(a,c){return a!=null&&A4(a,c,aT)}function Hd(a,c){return a!=null&&A4(a,c,lT)}var NP=m4(function(a,c,y){c!=null&&typeof c.toString!="function"&&(c=j1.call(c)),a[c]=y},qd(_n)),$P=m4(function(a,c,y){c!=null&&typeof c.toString!="function"&&(c=j1.call(c)),yt.call(a,c)?a[c].push(y):a[c]=[y]},Me),VP=Ye(Ha);function rn(a){return Mn(a)?_7(a):md(a)}function kn(a){return Mn(a)?_7(a,!0):yT(a)}function zP(a,c){var y={};return c=Me(c,3),zr(a,function(A,R,L){uo(y,c(A,R,L),A)}),y}function WP(a,c){var y={};return c=Me(c,3),zr(a,function(A,R,L){uo(y,R,c(A,R,L))}),y}var UP=As(function(a,c,y){U1(a,c,y)}),ih=As(function(a,c,y,A){U1(a,c,y,A)}),HP=po(function(a,c){var y={};if(a==null)return y;var A=!1;c=jt(c,function(L){return L=zo(L,a),A||(A=L.length>1),L}),Wr(a,jd(a),y),A&&(y=fr(y,g|h|m,NT));for(var R=c.length;R--;)wd(y,c[R]);return y});function GP(a,c){return sh(a,ic(Me(c)))}var qP=po(function(a,c){return a==null?{}:CT(a,c)});function sh(a,c){if(a==null)return{};var y=jt(jd(a),function(A){return[A]});return c=Me(c),X7(a,y,function(A,R){return c(A,R[0])})}function YP(a,c,y){c=zo(c,a);var A=-1,R=c.length;for(R||(R=1,a=n);++A<R;){var L=a==null?n:a[Ur(c[A])];L===n&&(A=R,L=y),a=go(L)?L.call(a):L}return a}function KP(a,c,y){return a==null?a:qa(a,c,y)}function ZP(a,c,y,A){return A=typeof A=="function"?A:n,a==null?a:qa(a,c,y,A)}var ah=b4(rn),lh=b4(kn);function XP(a,c,y){var A=ze(a),R=A||Uo(a)||Is(a);if(c=Me(c,4),y==null){var L=a&&a.constructor;R?y=A?new L:[]:_t(a)?y=go(L)?Ss(k1(a)):{}:y={}}return(R?cr:zr)(a,function(q,X,ie){return c(y,q,X,ie)}),y}function QP(a,c){return a==null?!0:wd(a,c)}function JP(a,c,y){return a==null?a:n4(a,c,Ed(y))}function ej(a,c,y,A){return A=typeof A=="function"?A:n,a==null?a:n4(a,c,Ed(y),A)}function Os(a){return a==null?[]:rd(a,rn(a))}function tj(a){return a==null?[]:rd(a,kn(a))}function nj(a,c,y){return y===n&&(y=c,c=n),y!==n&&(y=gr(y),y=y===y?y:0),c!==n&&(c=gr(c),c=c===c?c:0),Ai(gr(a),c,y)}function rj(a,c,y){return c=mo(c),y===n?(y=c,c=0):y=mo(y),a=gr(a),cT(a,c,y)}function oj(a,c,y){if(y&&typeof y!="boolean"&&Tn(a,c,y)&&(c=y=n),y===n&&(typeof c=="boolean"?(y=c,c=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&c===n?(a=0,c=1):(a=mo(a),c===n?(c=a,a=0):c=mo(c)),a>c){var A=a;a=c,c=A}if(y||a%1||c%1){var R=M7();return mn(a+R*(c-a+FA("1e-"+((R+"").length-1))),c)}return bd(a,c)}var ij=Es(function(a,c,y){return c=c.toLowerCase(),a+(y?ch(c):c)});function ch(a){return Gd(dt(a).toLowerCase())}function uh(a){return a=dt(a),a&&a.replace(aA,KA).replace(TA,"")}function sj(a,c,y){a=dt(a),c=Yn(c);var A=a.length;y=y===n?A:Ai(Ue(y),0,A);var R=y;return y-=c.length,y>=0&&a.slice(y,R)==c}function aj(a){return a=dt(a),a&&ds.test(a)?a.replace(_o,ZA):a}function lj(a){return a=dt(a),a&&en.test(a)?a.replace(ar,"\\$&"):a}var cj=Es(function(a,c,y){return a+(y?"-":"")+c.toLowerCase()}),uj=Es(function(a,c,y){return a+(y?" ":"")+c.toLowerCase()}),dj=p4("toLowerCase");function fj(a,c,y){a=dt(a),c=Ue(c);var A=c?ys(a):0;if(!c||A>=c)return a;var R=(c-A)/2;return Z1(L1(R),y)+a+Z1(F1(R),y)}function pj(a,c,y){a=dt(a),c=Ue(c);var A=c?ys(a):0;return c&&A<c?a+Z1(c-A,y):a}function hj(a,c,y){a=dt(a),c=Ue(c);var A=c?ys(a):0;return c&&A<c?Z1(c-A,y)+a:a}function gj(a,c,y){return y||c==null?c=0:c&&(c=+c),wE(dt(a).replace(Tt,""),c||0)}function mj(a,c,y){return(y?Tn(a,c,y):c===n)?c=1:c=Ue(c),Cd(dt(a),c)}function vj(){var a=arguments,c=dt(a[0]);return a.length<3?c:c.replace(a[1],a[2])}var yj=Es(function(a,c,y){return a+(y?"_":"")+c.toLowerCase()});function bj(a,c,y){return y&&typeof y!="number"&&Tn(a,c,y)&&(c=y=n),y=y===n?$:y>>>0,y?(a=dt(a),a&&(typeof c=="string"||c!=null&&!Wd(c))&&(c=Yn(c),!c&&vs(a))?Wo(Rr(a),0,y):a.split(c,y)):[]}var Cj=Es(function(a,c,y){return a+(y?" ":"")+Gd(c)});function xj(a,c,y){return a=dt(a),y=y==null?0:Ai(Ue(y),0,a.length),c=Yn(c),a.slice(y,y+c.length)==c}function wj(a,c,y){var A=F.templateSettings;y&&Tn(a,c,y)&&(c=n),a=dt(a),c=lc({},c,A,C4);var R=lc({},c.imports,A.imports,C4),L=rn(R),q=rd(R,L),X,ie,ue=0,fe=c.interpolate||x1,he="__p += '",we=id((c.escape||x1).source+"|"+fe.source+"|"+(fe===hs?b1:x1).source+"|"+(c.evaluate||x1).source+"|$","g"),Te="//# sourceURL="+(yt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RA+"]")+`
204
+ `)}function YT(a){return ze(a)||Oi(a)||!!(j7&&a&&a[j7])}function ho(a,c){var y=typeof a;return c=c??W,!!c&&(y=="number"||y!="symbol"&&An.test(a))&&a>-1&&a%1==0&&a<c}function Tn(a,c,y){if(!_t(y))return!1;var A=typeof c;return(A=="number"?Mn(y)&&ho(c,y.length):A=="string"&&c in y)?kr(y[c],a):!1}function _d(a,c){if(ze(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||Kn(a)?!0:Do.test(a)||!ka.test(a)||c!=null&&a in xt(c)}function KT(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}function Dd(a){var c=Q1(a),y=F[c];if(typeof y!="function"||!(c in Xe.prototype))return!1;if(a===y)return!0;var A=Rd(y);return!!A&&a===A[0]}function ZT(a){return!!T7&&T7 in a}var XT=O1?go:Qd;function Ka(a){var c=a&&a.constructor,y=typeof c=="function"&&c.prototype||Cs;return a===y}function T4(a){return a===a&&!_t(a)}function I4(a,c){return function(y){return y==null?!1:y[a]===c&&(c!==n||a in xt(y))}}function QT(a){var c=oc(a,function(A){return y.size===u&&y.clear(),A}),y=c.cache;return c}function JT(a,c){var y=a[1],A=c[1],R=y|A,L=R<(x|S|j),q=A==j&&y==w||A==j&&y==_&&a[7].length<=c[8]||A==(j|_)&&c[7].length<=c[8]&&y==w;if(!(L||q))return a;A&x&&(a[2]=c[2],R|=y&x?0:I);var X=c[3];if(X){var ie=a[3];a[3]=ie?c4(ie,X,c[4]):X,a[4]=ie?Bo(a[3],p):c[4]}return X=c[5],X&&(ie=a[5],a[5]=ie?u4(ie,X,c[6]):X,a[6]=ie?Bo(a[5],p):c[6]),X=c[7],X&&(a[7]=X),A&j&&(a[8]=a[8]==null?c[8]:mn(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=R,a}function eI(a){var c=[];if(a!=null)for(var y in xt(a))c.push(y);return c}function tI(a){return j1.call(a)}function O4(a,c,y){return c=nn(c===n?a.length-1:c,0),function(){for(var A=arguments,R=-1,L=nn(A.length-c,0),q=ae(L);++R<L;)q[R]=A[c+R];R=-1;for(var X=ae(c+1);++R<c;)X[R]=A[R];return X[c]=y(q),Gn(a,this,X)}}function P4(a,c){return c.length<2?a:Ei(a,pr(c,0,-1))}function nI(a,c){for(var y=a.length,A=mn(c.length,y),R=Rn(a);A--;){var L=c[A];a[A]=ho(L,y)?R[L]:n}return a}function Fd(a,c){if(!(c==="constructor"&&typeof a[c]=="function")&&c!="__proto__")return a[c]}var j4=M4(J7),Za=vE||function(a,c){return an.setTimeout(a,c)},Ld=M4(ET);function R4(a,c,y){var A=c+"";return Ld(a,qT(A,rI(UT(A),y)))}function M4(a){var c=0,y=0;return function(){var A=xE(),R=H-(A-y);if(y=A,R>0){if(++c>=U)return arguments[0]}else c=0;return a.apply(n,arguments)}}function ec(a,c){var y=-1,A=a.length,R=A-1;for(c=c===n?A:c;++y<c;){var L=bd(y,R),q=a[L];a[L]=a[y],a[y]=q}return a.length=c,a}var k4=QT(function(a){var c=[];return a.charCodeAt(0)===46&&c.push(""),a.replace(_a,function(y,A,R,L){c.push(R?L.replace(y1,"$1"):A||y)}),c});function Ur(a){if(typeof a=="string"||Kn(a))return a;var c=a+"";return c=="0"&&1/a==-Z?"-0":c}function Ii(a){if(a!=null){try{return P1.call(a)}catch{}try{return a+""}catch{}}return""}function rI(a,c){return cr(Q,function(y){var A="_."+y[0];c&y[1]&&!A1(a,A)&&a.push(A)}),a.sort()}function _4(a){if(a instanceof Xe)return a.clone();var c=new dr(a.__wrapped__,a.__chain__);return c.__actions__=Rn(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}function oI(a,c,y){(y?Tn(a,c,y):c===n)?c=1:c=nn(Ue(c),0);var A=a==null?0:a.length;if(!A||c<1)return[];for(var R=0,L=0,q=ae(F1(A/c));R<A;)q[L++]=pr(a,R,R+=c);return q}function iI(a){for(var c=-1,y=a==null?0:a.length,A=0,R=[];++c<y;){var L=a[c];L&&(R[A++]=L)}return R}function sI(){var a=arguments.length;if(!a)return[];for(var c=ae(a-1),y=arguments[0],A=a;A--;)c[A-1]=arguments[A];return Lo(ze(y)?Rn(y):[y],ln(c,1))}var aI=Ye(function(a,c){return Wt(a)?Ua(a,ln(c,1,Wt,!0)):[]}),lI=Ye(function(a,c){var y=hr(c);return Wt(y)&&(y=n),Wt(a)?Ua(a,ln(c,1,Wt,!0),Me(y,2)):[]}),cI=Ye(function(a,c){var y=hr(c);return Wt(y)&&(y=n),Wt(a)?Ua(a,ln(c,1,Wt,!0),n,y):[]});function uI(a,c,y){var A=a==null?0:a.length;return A?(c=y||c===n?1:Ue(c),pr(a,c<0?0:c,A)):[]}function dI(a,c,y){var A=a==null?0:a.length;return A?(c=y||c===n?1:Ue(c),c=A-c,pr(a,0,c<0?0:c)):[]}function fI(a,c){return a&&a.length?G1(a,Me(c,3),!0,!0):[]}function pI(a,c){return a&&a.length?G1(a,Me(c,3),!0):[]}function hI(a,c,y,A){var R=a==null?0:a.length;return R?(y&&typeof y!="number"&&Tn(a,c,y)&&(y=0,A=R),sT(a,c,y,A)):[]}function D4(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=y==null?0:Ue(y);return R<0&&(R=nn(A+R,0)),E1(a,Me(c,3),R)}function F4(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=A-1;return y!==n&&(R=Ue(y),R=y<0?nn(A+R,0):mn(R,A-1)),E1(a,Me(c,3),R,!0)}function L4(a){var c=a==null?0:a.length;return c?ln(a,1):[]}function gI(a){var c=a==null?0:a.length;return c?ln(a,Z):[]}function mI(a,c){var y=a==null?0:a.length;return y?(c=c===n?1:Ue(c),ln(a,c)):[]}function vI(a){for(var c=-1,y=a==null?0:a.length,A={};++c<y;){var R=a[c];A[R[0]]=R[1]}return A}function B4(a){return a&&a.length?a[0]:n}function yI(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=y==null?0:Ue(y);return R<0&&(R=nn(A+R,0)),ms(a,c,R)}function bI(a){var c=a==null?0:a.length;return c?pr(a,0,-1):[]}var CI=Ye(function(a){var c=jt(a,Ad);return c.length&&c[0]===a[0]?hd(c):[]}),xI=Ye(function(a){var c=hr(a),y=jt(a,Ad);return c===hr(y)?c=n:y.pop(),y.length&&y[0]===a[0]?hd(y,Me(c,2)):[]}),wI=Ye(function(a){var c=hr(a),y=jt(a,Ad);return c=typeof c=="function"?c:n,c&&y.pop(),y.length&&y[0]===a[0]?hd(y,n,c):[]});function SI(a,c){return a==null?"":bE.call(a,c)}function hr(a){var c=a==null?0:a.length;return c?a[c-1]:n}function AI(a,c,y){var A=a==null?0:a.length;if(!A)return-1;var R=A;return y!==n&&(R=Ue(y),R=R<0?nn(A+R,0):mn(R,A-1)),c===c?rE(a,c,R):E1(a,y7,R,!0)}function EI(a,c){return a&&a.length?K7(a,Ue(c)):n}var TI=Ye(N4);function N4(a,c){return a&&a.length&&c&&c.length?yd(a,c):a}function II(a,c,y){return a&&a.length&&c&&c.length?yd(a,c,Me(y,2)):a}function OI(a,c,y){return a&&a.length&&c&&c.length?yd(a,c,n,y):a}var PI=po(function(a,c){var y=a==null?0:a.length,A=ud(a,c);return Q7(a,jt(c,function(R){return ho(R,y)?+R:R}).sort(l4)),A});function jI(a,c){var y=[];if(!(a&&a.length))return y;var A=-1,R=[],L=a.length;for(c=Me(c,3);++A<L;){var q=a[A];c(q,A,a)&&(y.push(q),R.push(A))}return Q7(a,R),y}function Bd(a){return a==null?a:SE.call(a)}function RI(a,c,y){var A=a==null?0:a.length;return A?(y&&typeof y!="number"&&Tn(a,c,y)?(c=0,y=A):(c=c==null?0:Ue(c),y=y===n?A:Ue(y)),pr(a,c,y)):[]}function MI(a,c){return H1(a,c)}function kI(a,c,y){return xd(a,c,Me(y,2))}function _I(a,c){var y=a==null?0:a.length;if(y){var A=H1(a,c);if(A<y&&kr(a[A],c))return A}return-1}function DI(a,c){return H1(a,c,!0)}function FI(a,c,y){return xd(a,c,Me(y,2),!0)}function LI(a,c){var y=a==null?0:a.length;if(y){var A=H1(a,c,!0)-1;if(kr(a[A],c))return A}return-1}function BI(a){return a&&a.length?e4(a):[]}function NI(a,c){return a&&a.length?e4(a,Me(c,2)):[]}function $I(a){var c=a==null?0:a.length;return c?pr(a,1,c):[]}function VI(a,c,y){return a&&a.length?(c=y||c===n?1:Ue(c),pr(a,0,c<0?0:c)):[]}function zI(a,c,y){var A=a==null?0:a.length;return A?(c=y||c===n?1:Ue(c),c=A-c,pr(a,c<0?0:c,A)):[]}function WI(a,c){return a&&a.length?G1(a,Me(c,3),!1,!0):[]}function UI(a,c){return a&&a.length?G1(a,Me(c,3)):[]}var HI=Ye(function(a){return Vo(ln(a,1,Wt,!0))}),GI=Ye(function(a){var c=hr(a);return Wt(c)&&(c=n),Vo(ln(a,1,Wt,!0),Me(c,2))}),qI=Ye(function(a){var c=hr(a);return c=typeof c=="function"?c:n,Vo(ln(a,1,Wt,!0),n,c)});function YI(a){return a&&a.length?Vo(a):[]}function KI(a,c){return a&&a.length?Vo(a,Me(c,2)):[]}function ZI(a,c){return c=typeof c=="function"?c:n,a&&a.length?Vo(a,n,c):[]}function Nd(a){if(!(a&&a.length))return[];var c=0;return a=Fo(a,function(y){if(Wt(y))return c=nn(y.length,c),!0}),nd(c,function(y){return jt(a,J3(y))})}function $4(a,c){if(!(a&&a.length))return[];var y=Nd(a);return c==null?y:jt(y,function(A){return Gn(c,n,A)})}var XI=Ye(function(a,c){return Wt(a)?Ua(a,c):[]}),QI=Ye(function(a){return Sd(Fo(a,Wt))}),JI=Ye(function(a){var c=hr(a);return Wt(c)&&(c=n),Sd(Fo(a,Wt),Me(c,2))}),eO=Ye(function(a){var c=hr(a);return c=typeof c=="function"?c:n,Sd(Fo(a,Wt),n,c)}),tO=Ye(Nd);function nO(a,c){return o4(a||[],c||[],Wa)}function rO(a,c){return o4(a||[],c||[],qa)}var oO=Ye(function(a){var c=a.length,y=c>1?a[c-1]:n;return y=typeof y=="function"?(a.pop(),y):n,$4(a,y)});function V4(a){var c=F(a);return c.__chain__=!0,c}function iO(a,c){return c(a),a}function tc(a,c){return c(a)}var sO=po(function(a){var c=a.length,y=c?a[0]:0,A=this.__wrapped__,R=function(L){return ud(L,a)};return c>1||this.__actions__.length||!(A instanceof Xe)||!ho(y)?this.thru(R):(A=A.slice(y,+y+(c?1:0)),A.__actions__.push({func:tc,args:[R],thisArg:n}),new dr(A,this.__chain__).thru(function(L){return c&&!L.length&&L.push(n),L}))});function aO(){return V4(this)}function lO(){return new dr(this.value(),this.__chain__)}function cO(){this.__values__===n&&(this.__values__=th(this.value()));var a=this.__index__>=this.__values__.length,c=a?n:this.__values__[this.__index__++];return{done:a,value:c}}function uO(){return this}function dO(a){for(var c,y=this;y instanceof $1;){var A=_4(y);A.__index__=0,A.__values__=n,c?R.__wrapped__=A:c=A;var R=A;y=y.__wrapped__}return R.__wrapped__=a,c}function fO(){var a=this.__wrapped__;if(a instanceof Xe){var c=a;return this.__actions__.length&&(c=new Xe(this)),c=c.reverse(),c.__actions__.push({func:tc,args:[Bd],thisArg:n}),new dr(c,this.__chain__)}return this.thru(Bd)}function pO(){return r4(this.__wrapped__,this.__actions__)}var hO=q1(function(a,c,y){yt.call(a,y)?++a[y]:uo(a,y,1)});function gO(a,c,y){var A=ze(a)?m7:iT;return y&&Tn(a,c,y)&&(c=n),A(a,Me(c,3))}function mO(a,c){var y=ze(a)?Fo:$7;return y(a,Me(c,3))}var vO=h4(D4),yO=h4(F4);function bO(a,c){return ln(nc(a,c),1)}function CO(a,c){return ln(nc(a,c),Z)}function xO(a,c,y){return y=y===n?1:Ue(y),ln(nc(a,c),y)}function z4(a,c){var y=ze(a)?cr:$o;return y(a,Me(c,3))}function W4(a,c){var y=ze(a)?$A:N7;return y(a,Me(c,3))}var wO=q1(function(a,c,y){yt.call(a,y)?a[y].push(c):uo(a,y,[c])});function SO(a,c,y,A){a=Mn(a)?a:Os(a),y=y&&!A?Ue(y):0;var R=a.length;return y<0&&(y=nn(R+y,0)),ac(a)?y<=R&&a.indexOf(c,y)>-1:!!R&&ms(a,c,y)>-1}var AO=Ye(function(a,c,y){var A=-1,R=typeof c=="function",L=Mn(a)?ae(a.length):[];return $o(a,function(q){L[++A]=R?Gn(c,q,y):Ha(q,c,y)}),L}),EO=q1(function(a,c,y){uo(a,y,c)});function nc(a,c){var y=ze(a)?jt:G7;return y(a,Me(c,3))}function TO(a,c,y,A){return a==null?[]:(ze(c)||(c=c==null?[]:[c]),y=A?n:y,ze(y)||(y=y==null?[]:[y]),Z7(a,c,y))}var IO=q1(function(a,c,y){a[y?0:1].push(c)},function(){return[[],[]]});function OO(a,c,y){var A=ze(a)?X3:C7,R=arguments.length<3;return A(a,Me(c,4),y,R,$o)}function PO(a,c,y){var A=ze(a)?VA:C7,R=arguments.length<3;return A(a,Me(c,4),y,R,N7)}function jO(a,c){var y=ze(a)?Fo:$7;return y(a,ic(Me(c,3)))}function RO(a){var c=ze(a)?D7:ST;return c(a)}function MO(a,c,y){(y?Tn(a,c,y):c===n)?c=1:c=Ue(c);var A=ze(a)?eT:AT;return A(a,c)}function kO(a){var c=ze(a)?tT:TT;return c(a)}function _O(a){if(a==null)return 0;if(Mn(a))return ac(a)?ys(a):a.length;var c=vn(a);return c==ve||c==Ke?a.size:md(a).length}function DO(a,c,y){var A=ze(a)?Q3:IT;return y&&Tn(a,c,y)&&(c=n),A(a,Me(c,3))}var FO=Ye(function(a,c){if(a==null)return[];var y=c.length;return y>1&&Tn(a,c[0],c[1])?c=[]:y>2&&Tn(c[0],c[1],c[2])&&(c=[c[0]]),Z7(a,ln(c,1),[])}),rc=mE||function(){return an.Date.now()};function LO(a,c){if(typeof c!="function")throw new ur(s);return a=Ue(a),function(){if(--a<1)return c.apply(this,arguments)}}function U4(a,c,y){return c=y?n:c,c=a&&c==null?a.length:c,fo(a,j,n,n,n,n,c)}function H4(a,c){var y;if(typeof c!="function")throw new ur(s);return a=Ue(a),function(){return--a>0&&(y=c.apply(this,arguments)),a<=1&&(c=n),y}}var $d=Ye(function(a,c,y){var A=x;if(y.length){var R=Bo(y,Ts($d));A|=P}return fo(a,A,c,y,R)}),G4=Ye(function(a,c,y){var A=x|S;if(y.length){var R=Bo(y,Ts(G4));A|=P}return fo(c,A,a,y,R)});function q4(a,c,y){c=y?n:c;var A=fo(a,w,n,n,n,n,n,c);return A.placeholder=q4.placeholder,A}function Y4(a,c,y){c=y?n:c;var A=fo(a,T,n,n,n,n,n,c);return A.placeholder=Y4.placeholder,A}function K4(a,c,y){var A,R,L,q,X,ie,ue=0,fe=!1,he=!1,we=!0;if(typeof a!="function")throw new ur(s);c=gr(c)||0,_t(y)&&(fe=!!y.leading,he="maxWait"in y,L=he?nn(gr(y.maxWait)||0,c):L,we="trailing"in y?!!y.trailing:we);function Te(Ut){var _r=A,vo=R;return A=R=n,ue=Ut,q=a.apply(vo,_r),q}function ke(Ut){return ue=Ut,X=Za(Ze,c),fe?Te(Ut):q}function Ge(Ut){var _r=Ut-ie,vo=Ut-ue,hh=c-_r;return he?mn(hh,L-vo):hh}function _e(Ut){var _r=Ut-ie,vo=Ut-ue;return ie===n||_r>=c||_r<0||he&&vo>=L}function Ze(){var Ut=rc();if(_e(Ut))return Je(Ut);X=Za(Ze,Ge(Ut))}function Je(Ut){return X=n,we&&A?Te(Ut):(A=R=n,q)}function Zn(){X!==n&&i4(X),ue=0,A=ie=R=X=n}function In(){return X===n?q:Je(rc())}function Xn(){var Ut=rc(),_r=_e(Ut);if(A=arguments,R=this,ie=Ut,_r){if(X===n)return ke(ie);if(he)return i4(X),X=Za(Ze,c),Te(ie)}return X===n&&(X=Za(Ze,c)),q}return Xn.cancel=Zn,Xn.flush=In,Xn}var BO=Ye(function(a,c){return B7(a,1,c)}),NO=Ye(function(a,c,y){return B7(a,gr(c)||0,y)});function $O(a){return fo(a,N)}function oc(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new ur(s);var y=function(){var A=arguments,R=c?c.apply(this,A):A[0],L=y.cache;if(L.has(R))return L.get(R);var q=a.apply(this,A);return y.cache=L.set(R,q)||L,q};return y.cache=new(oc.Cache||co),y}oc.Cache=co;function ic(a){if(typeof a!="function")throw new ur(s);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function VO(a){return H4(2,a)}var zO=OT(function(a,c){c=c.length==1&&ze(c[0])?jt(c[0],qn(Me())):jt(ln(c,1),qn(Me()));var y=c.length;return Ye(function(A){for(var R=-1,L=mn(A.length,y);++R<L;)A[R]=c[R].call(this,A[R]);return Gn(a,this,A)})}),Vd=Ye(function(a,c){var y=Bo(c,Ts(Vd));return fo(a,P,n,c,y)}),Z4=Ye(function(a,c){var y=Bo(c,Ts(Z4));return fo(a,M,n,c,y)}),WO=po(function(a,c){return fo(a,_,n,n,n,c)});function UO(a,c){if(typeof a!="function")throw new ur(s);return c=c===n?c:Ue(c),Ye(a,c)}function HO(a,c){if(typeof a!="function")throw new ur(s);return c=c==null?0:nn(Ue(c),0),Ye(function(y){var A=y[c],R=Wo(y,0,c);return A&&Lo(R,A),Gn(a,this,R)})}function GO(a,c,y){var A=!0,R=!0;if(typeof a!="function")throw new ur(s);return _t(y)&&(A="leading"in y?!!y.leading:A,R="trailing"in y?!!y.trailing:R),K4(a,c,{leading:A,maxWait:c,trailing:R})}function qO(a){return U4(a,1)}function YO(a,c){return Vd(Ed(c),a)}function KO(){if(!arguments.length)return[];var a=arguments[0];return ze(a)?a:[a]}function ZO(a){return fr(a,m)}function XO(a,c){return c=typeof c=="function"?c:n,fr(a,m,c)}function QO(a){return fr(a,g|m)}function JO(a,c){return c=typeof c=="function"?c:n,fr(a,g|m,c)}function eP(a,c){return c==null||L7(a,c,rn(c))}function kr(a,c){return a===c||a!==a&&c!==c}var tP=X1(pd),nP=X1(function(a,c){return a>=c}),Oi=W7(function(){return arguments}())?W7:function(a){return Lt(a)&&yt.call(a,"callee")&&!P7.call(a,"callee")},ze=ae.isArray,rP=u7?qn(u7):dT;function Mn(a){return a!=null&&sc(a.length)&&!go(a)}function Wt(a){return Lt(a)&&Mn(a)}function oP(a){return a===!0||a===!1||Lt(a)&&En(a)==ce}var Uo=yE||Qd,iP=d7?qn(d7):fT;function sP(a){return Lt(a)&&a.nodeType===1&&!Xa(a)}function aP(a){if(a==null)return!0;if(Mn(a)&&(ze(a)||typeof a=="string"||typeof a.splice=="function"||Uo(a)||Is(a)||Oi(a)))return!a.length;var c=vn(a);if(c==ve||c==Ke)return!a.size;if(Ka(a))return!md(a).length;for(var y in a)if(yt.call(a,y))return!1;return!0}function lP(a,c){return Ga(a,c)}function cP(a,c,y){y=typeof y=="function"?y:n;var A=y?y(a,c):n;return A===n?Ga(a,c,n,y):!!A}function zd(a){if(!Lt(a))return!1;var c=En(a);return c==Ee||c==Ce||typeof a.message=="string"&&typeof a.name=="string"&&!Xa(a)}function uP(a){return typeof a=="number"&&R7(a)}function go(a){if(!_t(a))return!1;var c=En(a);return c==me||c==Re||c==ye||c==sn}function X4(a){return typeof a=="number"&&a==Ue(a)}function sc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=W}function _t(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function Lt(a){return a!=null&&typeof a=="object"}var Q4=f7?qn(f7):hT;function dP(a,c){return a===c||gd(a,c,Md(c))}function fP(a,c,y){return y=typeof y=="function"?y:n,gd(a,c,Md(c),y)}function pP(a){return J4(a)&&a!=+a}function hP(a){if(XT(a))throw new Ne(i);return U7(a)}function gP(a){return a===null}function mP(a){return a==null}function J4(a){return typeof a=="number"||Lt(a)&&En(a)==qe}function Xa(a){if(!Lt(a)||En(a)!=bt)return!1;var c=k1(a);if(c===null)return!0;var y=yt.call(c,"constructor")&&c.constructor;return typeof y=="function"&&y instanceof y&&P1.call(y)==fE}var Wd=p7?qn(p7):gT;function vP(a){return X4(a)&&a>=-W&&a<=W}var eh=h7?qn(h7):mT;function ac(a){return typeof a=="string"||!ze(a)&&Lt(a)&&En(a)==kt}function Kn(a){return typeof a=="symbol"||Lt(a)&&En(a)==tt}var Is=g7?qn(g7):vT;function yP(a){return a===n}function bP(a){return Lt(a)&&vn(a)==St}function CP(a){return Lt(a)&&En(a)==Pe}var xP=X1(vd),wP=X1(function(a,c){return a<=c});function th(a){if(!a)return[];if(Mn(a))return ac(a)?Rr(a):Rn(a);if(Ba&&a[Ba])return eE(a[Ba]());var c=vn(a),y=c==ve?od:c==Ke?T1:Os;return y(a)}function mo(a){if(!a)return a===0?a:0;if(a=gr(a),a===Z||a===-Z){var c=a<0?-1:1;return c*se}return a===a?a:0}function Ue(a){var c=mo(a),y=c%1;return c===c?y?c-y:c:0}function nh(a){return a?Ai(Ue(a),0,$):0}function gr(a){if(typeof a=="number")return a;if(Kn(a))return K;if(_t(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=_t(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=x7(a);var y=V3.test(a);return y||We.test(a)?LA(a.slice(2),y?2:8):$3.test(a)?K:+a}function rh(a){return Wr(a,kn(a))}function SP(a){return a?Ai(Ue(a),-W,W):a===0?a:0}function dt(a){return a==null?"":Yn(a)}var AP=As(function(a,c){if(Ka(c)||Mn(c)){Wr(c,rn(c),a);return}for(var y in c)yt.call(c,y)&&Wa(a,y,c[y])}),oh=As(function(a,c){Wr(c,kn(c),a)}),lc=As(function(a,c,y,A){Wr(c,kn(c),a,A)}),EP=As(function(a,c,y,A){Wr(c,rn(c),a,A)}),TP=po(ud);function IP(a,c){var y=Ss(a);return c==null?y:F7(y,c)}var OP=Ye(function(a,c){a=xt(a);var y=-1,A=c.length,R=A>2?c[2]:n;for(R&&Tn(c[0],c[1],R)&&(A=1);++y<A;)for(var L=c[y],q=kn(L),X=-1,ie=q.length;++X<ie;){var ue=q[X],fe=a[ue];(fe===n||kr(fe,Cs[ue])&&!yt.call(a,ue))&&(a[ue]=L[ue])}return a}),PP=Ye(function(a){return a.push(n,x4),Gn(ih,n,a)});function jP(a,c){return v7(a,Me(c,3),zr)}function RP(a,c){return v7(a,Me(c,3),fd)}function MP(a,c){return a==null?a:dd(a,Me(c,3),kn)}function kP(a,c){return a==null?a:V7(a,Me(c,3),kn)}function _P(a,c){return a&&zr(a,Me(c,3))}function DP(a,c){return a&&fd(a,Me(c,3))}function FP(a){return a==null?[]:W1(a,rn(a))}function LP(a){return a==null?[]:W1(a,kn(a))}function Ud(a,c,y){var A=a==null?n:Ei(a,c);return A===n?y:A}function BP(a,c){return a!=null&&A4(a,c,aT)}function Hd(a,c){return a!=null&&A4(a,c,lT)}var NP=m4(function(a,c,y){c!=null&&typeof c.toString!="function"&&(c=j1.call(c)),a[c]=y},qd(_n)),$P=m4(function(a,c,y){c!=null&&typeof c.toString!="function"&&(c=j1.call(c)),yt.call(a,c)?a[c].push(y):a[c]=[y]},Me),VP=Ye(Ha);function rn(a){return Mn(a)?_7(a):md(a)}function kn(a){return Mn(a)?_7(a,!0):yT(a)}function zP(a,c){var y={};return c=Me(c,3),zr(a,function(A,R,L){uo(y,c(A,R,L),A)}),y}function WP(a,c){var y={};return c=Me(c,3),zr(a,function(A,R,L){uo(y,R,c(A,R,L))}),y}var UP=As(function(a,c,y){U1(a,c,y)}),ih=As(function(a,c,y,A){U1(a,c,y,A)}),HP=po(function(a,c){var y={};if(a==null)return y;var A=!1;c=jt(c,function(L){return L=zo(L,a),A||(A=L.length>1),L}),Wr(a,jd(a),y),A&&(y=fr(y,g|h|m,NT));for(var R=c.length;R--;)wd(y,c[R]);return y});function GP(a,c){return sh(a,ic(Me(c)))}var qP=po(function(a,c){return a==null?{}:CT(a,c)});function sh(a,c){if(a==null)return{};var y=jt(jd(a),function(A){return[A]});return c=Me(c),X7(a,y,function(A,R){return c(A,R[0])})}function YP(a,c,y){c=zo(c,a);var A=-1,R=c.length;for(R||(R=1,a=n);++A<R;){var L=a==null?n:a[Ur(c[A])];L===n&&(A=R,L=y),a=go(L)?L.call(a):L}return a}function KP(a,c,y){return a==null?a:qa(a,c,y)}function ZP(a,c,y,A){return A=typeof A=="function"?A:n,a==null?a:qa(a,c,y,A)}var ah=b4(rn),lh=b4(kn);function XP(a,c,y){var A=ze(a),R=A||Uo(a)||Is(a);if(c=Me(c,4),y==null){var L=a&&a.constructor;R?y=A?new L:[]:_t(a)?y=go(L)?Ss(k1(a)):{}:y={}}return(R?cr:zr)(a,function(q,X,ie){return c(y,q,X,ie)}),y}function QP(a,c){return a==null?!0:wd(a,c)}function JP(a,c,y){return a==null?a:n4(a,c,Ed(y))}function ej(a,c,y,A){return A=typeof A=="function"?A:n,a==null?a:n4(a,c,Ed(y),A)}function Os(a){return a==null?[]:rd(a,rn(a))}function tj(a){return a==null?[]:rd(a,kn(a))}function nj(a,c,y){return y===n&&(y=c,c=n),y!==n&&(y=gr(y),y=y===y?y:0),c!==n&&(c=gr(c),c=c===c?c:0),Ai(gr(a),c,y)}function rj(a,c,y){return c=mo(c),y===n?(y=c,c=0):y=mo(y),a=gr(a),cT(a,c,y)}function oj(a,c,y){if(y&&typeof y!="boolean"&&Tn(a,c,y)&&(c=y=n),y===n&&(typeof c=="boolean"?(y=c,c=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&c===n?(a=0,c=1):(a=mo(a),c===n?(c=a,a=0):c=mo(c)),a>c){var A=a;a=c,c=A}if(y||a%1||c%1){var R=M7();return mn(a+R*(c-a+FA("1e-"+((R+"").length-1))),c)}return bd(a,c)}var ij=Es(function(a,c,y){return c=c.toLowerCase(),a+(y?ch(c):c)});function ch(a){return Gd(dt(a).toLowerCase())}function uh(a){return a=dt(a),a&&a.replace(aA,KA).replace(TA,"")}function sj(a,c,y){a=dt(a),c=Yn(c);var A=a.length;y=y===n?A:Ai(Ue(y),0,A);var R=y;return y-=c.length,y>=0&&a.slice(y,R)==c}function aj(a){return a=dt(a),a&&ds.test(a)?a.replace(_o,ZA):a}function lj(a){return a=dt(a),a&&en.test(a)?a.replace(ar,"\\$&"):a}var cj=Es(function(a,c,y){return a+(y?"-":"")+c.toLowerCase()}),uj=Es(function(a,c,y){return a+(y?" ":"")+c.toLowerCase()}),dj=p4("toLowerCase");function fj(a,c,y){a=dt(a),c=Ue(c);var A=c?ys(a):0;if(!c||A>=c)return a;var R=(c-A)/2;return Z1(L1(R),y)+a+Z1(F1(R),y)}function pj(a,c,y){a=dt(a),c=Ue(c);var A=c?ys(a):0;return c&&A<c?a+Z1(c-A,y):a}function hj(a,c,y){a=dt(a),c=Ue(c);var A=c?ys(a):0;return c&&A<c?Z1(c-A,y)+a:a}function gj(a,c,y){return y||c==null?c=0:c&&(c=+c),wE(dt(a).replace(Tt,""),c||0)}function mj(a,c,y){return(y?Tn(a,c,y):c===n)?c=1:c=Ue(c),Cd(dt(a),c)}function vj(){var a=arguments,c=dt(a[0]);return a.length<3?c:c.replace(a[1],a[2])}var yj=Es(function(a,c,y){return a+(y?"_":"")+c.toLowerCase()});function bj(a,c,y){return y&&typeof y!="number"&&Tn(a,c,y)&&(c=y=n),y=y===n?$:y>>>0,y?(a=dt(a),a&&(typeof c=="string"||c!=null&&!Wd(c))&&(c=Yn(c),!c&&vs(a))?Wo(Rr(a),0,y):a.split(c,y)):[]}var Cj=Es(function(a,c,y){return a+(y?" ":"")+Gd(c)});function xj(a,c,y){return a=dt(a),y=y==null?0:Ai(Ue(y),0,a.length),c=Yn(c),a.slice(y,y+c.length)==c}function wj(a,c,y){var A=F.templateSettings;y&&Tn(a,c,y)&&(c=n),a=dt(a),c=lc({},c,A,C4);var R=lc({},c.imports,A.imports,C4),L=rn(R),q=rd(R,L),X,ie,ue=0,fe=c.interpolate||x1,he="__p += '",we=id((c.escape||x1).source+"|"+fe.source+"|"+(fe===hs?b1:x1).source+"|"+(c.evaluate||x1).source+"|$","g"),Te="//# sourceURL="+(yt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RA+"]")+`
205
205
  `;a.replace(we,function(_e,Ze,Je,Zn,In,Xn){return Je||(Je=Zn),he+=a.slice(ue,Xn).replace(lA,XA),Ze&&(X=!0,he+=`' +
206
206
  __e(`+Ze+`) +
207
207
  '`),In&&(ie=!0,he+=`';
@@ -218,10 +218,10 @@ __p += '`),Je&&(he+=`' +
218
218
  function print() { __p += __j.call(arguments, '') }
219
219
  `:`;
220
220
  `)+he+`return __p
221
- }`;var Ge=fh(function(){return at(L,Te+"return "+he).apply(n,q)});if(Ge.source=he,zd(Ge))throw Ge;return Ge}function Sj(a){return dt(a).toLowerCase()}function Aj(a){return dt(a).toUpperCase()}function Ej(a,c,y){if(a=dt(a),a&&(y||c===n))return x7(a);if(!a||!(c=Yn(c)))return a;var A=Rr(a),R=Rr(c),L=w7(A,R),q=S7(A,R)+1;return Wo(A,L,q).join("")}function Tj(a,c,y){if(a=dt(a),a&&(y||c===n))return a.slice(0,E7(a)+1);if(!a||!(c=Yn(c)))return a;var A=Rr(a),R=S7(A,Rr(c))+1;return Wo(A,0,R).join("")}function Ij(a,c,y){if(a=dt(a),a&&(y||c===n))return a.replace(Tt,"");if(!a||!(c=Yn(c)))return a;var A=Rr(a),R=w7(A,Rr(c));return Wo(A,R).join("")}function Oj(a,c){var y=k,A=_;if(_t(c)){var R="separator"in c?c.separator:R;y="length"in c?Ue(c.length):y,A="omission"in c?Yn(c.omission):A}a=dt(a);var L=a.length;if(vs(a)){var q=Rr(a);L=q.length}if(y>=L)return a;var X=y-ys(A);if(X<1)return A;var ie=q?Wo(q,0,X).join(""):a.slice(0,X);if(R===n)return ie+A;if(q&&(X+=ie.length-X),Wd(R)){if(a.slice(X).search(R)){var ue,fe=ie;for(R.global||(R=id(R.source,dt(C1.exec(R))+"g")),R.lastIndex=0;ue=R.exec(fe);)var he=ue.index;ie=ie.slice(0,he===n?X:he)}}else if(a.indexOf(Yn(R),X)!=X){var we=ie.lastIndexOf(R);we>-1&&(ie=ie.slice(0,we))}return ie+A}function Pj(a){return a=dt(a),a&&us.test(a)?a.replace(cs,oE):a}var jj=Es(function(a,c,y){return a+(y?" ":"")+c.toUpperCase()}),Gd=p4("toUpperCase");function dh(a,c,y){return a=dt(a),c=y?n:c,c===n?JA(a)?aE(a):UA(a):a.match(c)||[]}var fh=Ye(function(a,c){try{return Gn(a,n,c)}catch(y){return zd(y)?y:new Ne(y)}}),Rj=po(function(a,c){return cr(c,function(y){y=Ur(y),uo(a,y,$d(a[y],a))}),a});function Mj(a){var c=a==null?0:a.length,y=Me();return a=c?jt(a,function(A){if(typeof A[1]!="function")throw new ur(s);return[y(A[0]),A[1]]}):[],Ye(function(A){for(var R=-1;++R<c;){var L=a[R];if(Gn(L[0],this,A))return Gn(L[1],this,A)}})}function kj(a){return oT(fr(a,g))}function qd(a){return function(){return a}}function _j(a,c){return a==null||a!==a?c:a}var Dj=g4(),Fj=g4(!0);function _n(a){return a}function Yd(a){return H7(typeof a=="function"?a:fr(a,g))}function Lj(a){return q7(fr(a,g))}function Bj(a,c){return Y7(a,fr(c,g))}var Nj=Ye(function(a,c){return function(y){return Ha(y,a,c)}}),$j=Ye(function(a,c){return function(y){return Ha(a,y,c)}});function Kd(a,c,y){var A=rn(c),R=W1(c,A);y==null&&!(_t(c)&&(R.length||!A.length))&&(y=c,c=a,a=this,R=W1(c,rn(c)));var L=!(_t(y)&&"chain"in y)||!!y.chain,q=go(a);return cr(R,function(X){var ie=c[X];a[X]=ie,q&&(a.prototype[X]=function(){var ue=this.__chain__;if(L||ue){var fe=a(this.__wrapped__),he=fe.__actions__=Rn(this.__actions__);return he.push({func:ie,args:arguments,thisArg:a}),fe.__chain__=ue,fe}return ie.apply(a,Lo([this.value()],arguments))})}),a}function Vj(){return an._===this&&(an._=pE),this}function Zd(){}function zj(a){return a=Ue(a),Ye(function(c){return K7(c,a)})}var Wj=Id(jt),Uj=Id(m7),Hj=Id(Q3);function ph(a){return _d(a)?J3(Ur(a)):xT(a)}function Gj(a){return function(c){return a==null?n:Ei(a,c)}}var qj=v4(),Yj=v4(!0);function Xd(){return[]}function Qd(){return!1}function Kj(){return{}}function Zj(){return""}function Xj(){return!0}function Qj(a,c){if(a=Ue(a),a<1||a>W)return[];var y=$,A=mn(a,$);c=Me(c),a-=$;for(var R=nd(A,c);++y<a;)c(y);return R}function Jj(a){return ze(a)?jt(a,Ur):Kn(a)?[a]:Rn(k4(dt(a)))}function eR(a){var c=++dE;return dt(a)+c}var tR=K1(function(a,c){return a+c},0),nR=Od("ceil"),rR=K1(function(a,c){return a/c},1),oR=Od("floor");function iR(a){return a&&a.length?z1(a,_n,pd):n}function sR(a,c){return a&&a.length?z1(a,Me(c,2),pd):n}function aR(a){return b7(a,_n)}function lR(a,c){return b7(a,Me(c,2))}function cR(a){return a&&a.length?z1(a,_n,vd):n}function uR(a,c){return a&&a.length?z1(a,Me(c,2),vd):n}var dR=K1(function(a,c){return a*c},1),fR=Od("round"),pR=K1(function(a,c){return a-c},0);function hR(a){return a&&a.length?td(a,_n):0}function gR(a,c){return a&&a.length?td(a,Me(c,2)):0}return F.after=LO,F.ary=U4,F.assign=AP,F.assignIn=oh,F.assignInWith=lc,F.assignWith=EP,F.at=TP,F.before=H4,F.bind=$d,F.bindAll=Rj,F.bindKey=G4,F.castArray=KO,F.chain=V4,F.chunk=oI,F.compact=iI,F.concat=sI,F.cond=Mj,F.conforms=kj,F.constant=qd,F.countBy=hO,F.create=IP,F.curry=q4,F.curryRight=Y4,F.debounce=K4,F.defaults=OP,F.defaultsDeep=PP,F.defer=BO,F.delay=NO,F.difference=aI,F.differenceBy=lI,F.differenceWith=cI,F.drop=uI,F.dropRight=dI,F.dropRightWhile=fI,F.dropWhile=pI,F.fill=hI,F.filter=mO,F.flatMap=bO,F.flatMapDeep=CO,F.flatMapDepth=xO,F.flatten=L4,F.flattenDeep=gI,F.flattenDepth=mI,F.flip=$O,F.flow=Dj,F.flowRight=Fj,F.fromPairs=vI,F.functions=FP,F.functionsIn=LP,F.groupBy=wO,F.initial=bI,F.intersection=CI,F.intersectionBy=xI,F.intersectionWith=wI,F.invert=NP,F.invertBy=$P,F.invokeMap=AO,F.iteratee=Yd,F.keyBy=EO,F.keys=rn,F.keysIn=kn,F.map=nc,F.mapKeys=zP,F.mapValues=WP,F.matches=Lj,F.matchesProperty=Bj,F.memoize=oc,F.merge=UP,F.mergeWith=ih,F.method=Nj,F.methodOf=$j,F.mixin=Kd,F.negate=ic,F.nthArg=zj,F.omit=HP,F.omitBy=GP,F.once=VO,F.orderBy=TO,F.over=Wj,F.overArgs=zO,F.overEvery=Uj,F.overSome=Hj,F.partial=Vd,F.partialRight=Z4,F.partition=IO,F.pick=qP,F.pickBy=sh,F.property=ph,F.propertyOf=Gj,F.pull=TI,F.pullAll=N4,F.pullAllBy=II,F.pullAllWith=OI,F.pullAt=PI,F.range=qj,F.rangeRight=Yj,F.rearg=WO,F.reject=jO,F.remove=jI,F.rest=UO,F.reverse=Bd,F.sampleSize=MO,F.set=KP,F.setWith=ZP,F.shuffle=kO,F.slice=RI,F.sortBy=FO,F.sortedUniq=BI,F.sortedUniqBy=NI,F.split=bj,F.spread=HO,F.tail=$I,F.take=VI,F.takeRight=zI,F.takeRightWhile=WI,F.takeWhile=UI,F.tap=iO,F.throttle=GO,F.thru=tc,F.toArray=th,F.toPairs=ah,F.toPairsIn=lh,F.toPath=Jj,F.toPlainObject=rh,F.transform=XP,F.unary=qO,F.union=HI,F.unionBy=GI,F.unionWith=qI,F.uniq=YI,F.uniqBy=KI,F.uniqWith=ZI,F.unset=QP,F.unzip=Nd,F.unzipWith=$4,F.update=JP,F.updateWith=ej,F.values=Os,F.valuesIn=tj,F.without=XI,F.words=dh,F.wrap=YO,F.xor=QI,F.xorBy=JI,F.xorWith=eO,F.zip=tO,F.zipObject=nO,F.zipObjectDeep=rO,F.zipWith=oO,F.entries=ah,F.entriesIn=lh,F.extend=oh,F.extendWith=lc,Kd(F,F),F.add=tR,F.attempt=fh,F.camelCase=ij,F.capitalize=ch,F.ceil=nR,F.clamp=nj,F.clone=ZO,F.cloneDeep=QO,F.cloneDeepWith=JO,F.cloneWith=XO,F.conformsTo=eP,F.deburr=uh,F.defaultTo=_j,F.divide=rR,F.endsWith=sj,F.eq=kr,F.escape=aj,F.escapeRegExp=lj,F.every=gO,F.find=vO,F.findIndex=D4,F.findKey=jP,F.findLast=yO,F.findLastIndex=F4,F.findLastKey=RP,F.floor=oR,F.forEach=z4,F.forEachRight=W4,F.forIn=MP,F.forInRight=kP,F.forOwn=_P,F.forOwnRight=DP,F.get=Ud,F.gt=tP,F.gte=nP,F.has=BP,F.hasIn=Hd,F.head=B4,F.identity=_n,F.includes=SO,F.indexOf=yI,F.inRange=rj,F.invoke=VP,F.isArguments=Oi,F.isArray=ze,F.isArrayBuffer=rP,F.isArrayLike=Mn,F.isArrayLikeObject=Wt,F.isBoolean=oP,F.isBuffer=Uo,F.isDate=iP,F.isElement=sP,F.isEmpty=aP,F.isEqual=lP,F.isEqualWith=cP,F.isError=zd,F.isFinite=uP,F.isFunction=go,F.isInteger=X4,F.isLength=sc,F.isMap=Q4,F.isMatch=dP,F.isMatchWith=fP,F.isNaN=pP,F.isNative=hP,F.isNil=mP,F.isNull=gP,F.isNumber=J4,F.isObject=_t,F.isObjectLike=Lt,F.isPlainObject=Xa,F.isRegExp=Wd,F.isSafeInteger=vP,F.isSet=eh,F.isString=ac,F.isSymbol=Kn,F.isTypedArray=Is,F.isUndefined=yP,F.isWeakMap=bP,F.isWeakSet=CP,F.join=SI,F.kebabCase=cj,F.last=hr,F.lastIndexOf=AI,F.lowerCase=uj,F.lowerFirst=dj,F.lt=xP,F.lte=wP,F.max=iR,F.maxBy=sR,F.mean=aR,F.meanBy=lR,F.min=cR,F.minBy=uR,F.stubArray=Xd,F.stubFalse=Qd,F.stubObject=Kj,F.stubString=Zj,F.stubTrue=Xj,F.multiply=dR,F.nth=EI,F.noConflict=Vj,F.noop=Zd,F.now=rc,F.pad=fj,F.padEnd=pj,F.padStart=hj,F.parseInt=gj,F.random=oj,F.reduce=OO,F.reduceRight=PO,F.repeat=mj,F.replace=vj,F.result=YP,F.round=fR,F.runInContext=re,F.sample=RO,F.size=_O,F.snakeCase=yj,F.some=DO,F.sortedIndex=MI,F.sortedIndexBy=kI,F.sortedIndexOf=_I,F.sortedLastIndex=DI,F.sortedLastIndexBy=FI,F.sortedLastIndexOf=LI,F.startCase=Cj,F.startsWith=xj,F.subtract=pR,F.sum=hR,F.sumBy=gR,F.template=wj,F.times=Qj,F.toFinite=mo,F.toInteger=Ue,F.toLength=nh,F.toLower=Sj,F.toNumber=gr,F.toSafeInteger=SP,F.toString=dt,F.toUpper=Aj,F.trim=Ej,F.trimEnd=Tj,F.trimStart=Ij,F.truncate=Oj,F.unescape=Pj,F.uniqueId=eR,F.upperCase=jj,F.upperFirst=Gd,F.each=z4,F.eachRight=W4,F.first=B4,Kd(F,function(){var a={};return zr(F,function(c,y){yt.call(F.prototype,y)||(a[y]=c)}),a}(),{chain:!1}),F.VERSION=r,cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){F[a].placeholder=F}),cr(["drop","take"],function(a,c){Xe.prototype[a]=function(y){y=y===n?1:nn(Ue(y),0);var A=this.__filtered__&&!c?new Xe(this):this.clone();return A.__filtered__?A.__takeCount__=mn(y,A.__takeCount__):A.__views__.push({size:mn(y,$),type:a+(A.__dir__<0?"Right":"")}),A},Xe.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),cr(["filter","map","takeWhile"],function(a,c){var y=c+1,A=y==G||y==V;Xe.prototype[a]=function(R){var L=this.clone();return L.__iteratees__.push({iteratee:Me(R,3),type:y}),L.__filtered__=L.__filtered__||A,L}}),cr(["head","last"],function(a,c){var y="take"+(c?"Right":"");Xe.prototype[a]=function(){return this[y](1).value()[0]}}),cr(["initial","tail"],function(a,c){var y="drop"+(c?"":"Right");Xe.prototype[a]=function(){return this.__filtered__?new Xe(this):this[y](1)}}),Xe.prototype.compact=function(){return this.filter(_n)},Xe.prototype.find=function(a){return this.filter(a).head()},Xe.prototype.findLast=function(a){return this.reverse().find(a)},Xe.prototype.invokeMap=Ye(function(a,c){return typeof a=="function"?new Xe(this):this.map(function(y){return Ha(y,a,c)})}),Xe.prototype.reject=function(a){return this.filter(ic(Me(a)))},Xe.prototype.slice=function(a,c){a=Ue(a);var y=this;return y.__filtered__&&(a>0||c<0)?new Xe(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),c!==n&&(c=Ue(c),y=c<0?y.dropRight(-c):y.take(c-a)),y)},Xe.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Xe.prototype.toArray=function(){return this.take($)},zr(Xe.prototype,function(a,c){var y=/^(?:filter|find|map|reject)|While$/.test(c),A=/^(?:head|last)$/.test(c),R=F[A?"take"+(c=="last"?"Right":""):c],L=A||/^find/.test(c);R&&(F.prototype[c]=function(){var q=this.__wrapped__,X=A?[1]:arguments,ie=q instanceof Xe,ue=X[0],fe=ie||ze(q),he=function(Ze){var Je=R.apply(F,Lo([Ze],X));return A&&we?Je[0]:Je};fe&&y&&typeof ue=="function"&&ue.length!=1&&(ie=fe=!1);var we=this.__chain__,Te=!!this.__actions__.length,ke=L&&!we,Ge=ie&&!Te;if(!L&&fe){q=Ge?q:new Xe(this);var _e=a.apply(q,X);return _e.__actions__.push({func:tc,args:[he],thisArg:n}),new dr(_e,we)}return ke&&Ge?a.apply(this,X):(_e=this.thru(he),ke?A?_e.value()[0]:_e.value():_e)})}),cr(["pop","push","shift","sort","splice","unshift"],function(a){var c=I1[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",A=/^(?:pop|shift)$/.test(a);F.prototype[a]=function(){var R=arguments;if(A&&!this.__chain__){var L=this.value();return c.apply(ze(L)?L:[],R)}return this[y](function(q){return c.apply(ze(q)?q:[],R)})}}),zr(Xe.prototype,function(a,c){var y=F[c];if(y){var A=y.name+"";yt.call(ws,A)||(ws[A]=[]),ws[A].push({name:c,func:y})}}),ws[Y1(n,S).name]=[{name:"wrapper",func:n}],Xe.prototype.clone=PE,Xe.prototype.reverse=jE,Xe.prototype.value=RE,F.prototype.at=sO,F.prototype.chain=aO,F.prototype.commit=lO,F.prototype.next=cO,F.prototype.plant=dO,F.prototype.reverse=fO,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=pO,F.prototype.first=F.prototype.head,Ba&&(F.prototype[Ba]=uO),F},bs=lE();Ci?((Ci.exports=bs)._=bs,Y3._=bs):an._=bs}).call(Pn)})(ju,ju.exports);var Qe=ju.exports;const J=Nr(Qe),vne=["e-","entities/"];function yne(e){let t=e;return vne.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function bne(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 Cne(e,t){const n=yne(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function k0(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=k0(o.children,t),n))return n}return n}function fC(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&bne(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=fC(i.children,t),r))return r}return r}function pC(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=pC(o.children,t),n))return n}return n}function hC(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(hC)),e.children&&e.children.length>0):!1}function gC(e){return e.children&&e.children.forEach(t=>{t.parent=e,gC(t)}),e}function xne(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(h=>i(h)),g}const s=Object.keys(t);function l(g,h){return g.children&&(g.children=g.children.filter(m=>{if(m.resource===!1){const v=m.roles||[];return!!(v.length===0||v.some(b=>o.includes(b)))}return m.type==="item"?h.includes(m.id):(l(m,h),m.children&&m.children.length>0)})),g}const d=J.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>l(g,s)),u=Object.values(t).map(g=>{var h;return((h=g.options)==null?void 0:h.group)||"admin"}).filter((g,h,m)=>m.indexOf(g)===h).filter(g=>g!==void 0&&pC(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:He.AntDesignOutlined,children:[]})),p=[...d,...u];return Object.values(t).forEach(g=>{var I,w,T,P;const h=fC(p,g),m=(I=h==null?void 0:h.children)==null?void 0:I.find(M=>M.id===g.name),v=(w=h==null?void 0:h.children)==null?void 0:w.some(M=>M.id===g.name),b=(m==null?void 0:m.roles)||((T=g.options)==null?void 0:T.roles)||[],x=!b||b.length===0||b.some(M=>o.includes(M));if(!Cne(g,n)||g.list||!x){v&&h&&h.children&&((P=h==null?void 0:h.children)==null?void 0:P.length)>0&&(h.children=h.children.filter(M=>M.id!==g.name));return}h&&(h.children||(h.children=[]))}),p.filter(hC).map(gC)}function sl(){throw new Error("Not implemented")}const mC={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:sl,openDrawer:sl,activeID:sl,hasError:sl,setMenu:sl},vC=O.createContext(mC);function yC({menu:e,children:t}){const[n,r]=O.useState({...mC,menu:e});function o(u){r(p=>({...p,menu:u}))}function i(u){r(p=>({...p,openItem:u}))}function s(u){r(p=>({...p,selectedID:u}))}function l(u){r(p=>({...p,drawerOpen:u}))}function d(u){r(p=>({...p,error:u}))}return O.useEffect(()=>{o(e)},[e]),f.jsx(vC.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:l,activeID:s,hasError:d},children:t})}function I3(){return O.useContext(vC)}function tp(){const e=ne.useResourceDefinitions(),{isLoading:t,data:n}=ne.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=ne.usePermissions(r),{menu:i}=I3(),s=ne.useTranslate(),l=O.useMemo(()=>{if(t||!n)return null;const p=((n==null?void 0:n.roles)||[]).map(h=>h.id);return xne(i,e,o,s,p)},[t,n,e,o,s,i]),d=O.useMemo(()=>t,[t]);function u(p){if(l)return k0(l,p)}return{menu:l,isLoading:d,getItem:u,findInMenu:d?()=>{}:k0}}function bC(){const e=ne.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=tp(),{pathname:o}=Yi.useLocation();return O.useMemo(()=>{var h;const i=o.split("/").filter(m=>m),s=J.cloneDeep(n);let l=o,d=r(s,o);if((!d||d.type==="collapse"||d.type==="group")&&(d=r(s,i[i.length-1]),l=d?d.id:l),!d||d.type==="collapse"||d.type==="group")for(let m=i.length;m>=0;m--){const v=i.slice(0,m).join("/");if(d=r(s,v),d){l=d.id;break}}const u=(h=d==null?void 0:d.url)==null?void 0:h.split("/"),p=(u==null?void 0:u.length)||0;if(i.length>=p){const m=i[i.length-1];if(d){const v=m==="create"||o===d.url?"create":"edit",b=`resources.${l}.breadcrumbs.${v}`,x={id:`${l}-${v}`,type:"item",title:e(b,{_:e(b,{_:b})}),url:o,breadcrumbs:!0,parent:d};d.type="collapse",d.breadcrumbs=!0,d.children=d.children||[],d.children.push(x),d=x}}let g=[];if(d){let m={...d,last:!0};for(;m;)g.push(m),m=m.parent;g=g.reverse()}return{isLoading:t,navigation:{items:s},breadcrumbs:g}},[t,o,n,r,e])}function Vl(){return I3()}function $r(e,t,n){const r=J.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(s=>J.isFunction(s)?s:void 0).value();n!=null&&n.defaults?J.defaultsDeep(r,t):J.merge(r,t);const[o,i]=O.useState(r);return O.useEffect(()=>{J.isEqual(o,r)||i(r)},[o,r]),o}function np(e=!1){const[t,n]=O.useState(!!e),r=O.useCallback(l=>n(!!l),[n]),o=O.useCallback(()=>n(!0),[n]),i=O.useCallback(()=>n(!1),[n]),s=O.useCallback(()=>n(l=>!l),[n]);return{open:t,setOpen:r,handleOpen:o,handleClose:i,handleToggle:s}}function _0(){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 ns(e){this._maxSize=e,this.clear()}ns.prototype.clear=function(){this._size=0,this._values=Object.create(null)};ns.prototype.get=function(e){return this._values[e]};ns.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var wne=/[^.^\]^[]+|(?=\[\]|\.\.)/g,CC=/^\d+$/,Sne=/^\d/,Ane=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Ene=/^\s*(['"]?)(.*?)(\1)\s*$/,rp=512,w5=new ns(rp),S5=new ns(rp),A5=new ns(rp),qi={Cache:ns,split:D0,normalizePath:_f,setter:function(e){var t=_f(e);return S5.get(e)||S5.set(e,function(r,o){for(var i=0,s=t.length,l=r;i<s-1;){var d=t[i];if(d==="__proto__"||d==="constructor"||d==="prototype")return r;l=l[t[i++]]}l[t[i]]=o})},getter:function(e,t){var n=_f(e);return A5.get(e)||A5.set(e,function(o){for(var i=0,s=n.length;i<s;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(op(n)||CC.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){Tne(Array.isArray(e)?e:D0(e),t,n)}};function _f(e){return w5.get(e)||w5.set(e,D0(e).map(function(t){return t.replace(Ene,"$2")}))}function D0(e){return e.match(wne)||[""]}function Tne(e,t,n){var r=e.length,o,i,s,l;for(i=0;i<r;i++)o=e[i],o&&(Pne(o)&&(o='"'+o+'"'),l=op(o),s=!l&&/^\d+$/.test(o),t.call(n,o,l,s,i,e))}function op(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Ine(e){return e.match(Sne)&&!e.match(CC)}function One(e){return Ane.test(e)}function Pne(e){return!op(e)&&(Ine(e)||One(e))}const jne=/[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,O3=e=>e.match(jne)||[],P3=e=>e[0].toUpperCase()+e.slice(1),ip=(e,t)=>O3(e).join(t).toLowerCase(),xC=e=>O3(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Rne=e=>P3(xC(e)),Mne=e=>ip(e,"_"),kne=e=>ip(e,"-"),_ne=e=>P3(ip(e," ")),Dne=e=>O3(e).map(P3).join(" ");var Df={words:O3,upperFirst:P3,camelCase:xC,pascalCase:Rne,snakeCase:Mne,kebabCase:kne,sentenceCase:_ne,titleCase:Dne},sp={exports:{}};sp.exports=function(e){return wC(Fne(e),e)};sp.exports.array=wC;function wC(e,t){var n=e.length,r=new Array(n),o={},i=n,s=Lne(t),l=Bne(e);for(t.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||d(e[i],i,new Set);return r;function d(u,p,g){if(g.has(u)){var h;try{h=", node was:"+JSON.stringify(u)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[p]){o[p]=!0;var m=s.get(u)||new Set;if(m=Array.from(m),p=m.length){g.add(u);do{var v=m[--p];d(v,l.get(v),g)}while(p);g.delete(u)}r[--n]=u}}}function Fne(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 Lne(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 Bne(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var Nne=sp.exports;const $ne=Nr(Nne),Vne=Object.prototype.toString,zne=Error.prototype.toString,Wne=RegExp.prototype.toString,Une=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Hne=/^Symbol\((.*)\)(.*)$/;function Gne(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function E5(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Gne(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Une.call(e).replace(Hne,"Symbol($1)");const r=Vne.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+zne.call(e)+"]":r==="RegExp"?Wne.call(e):null}function ii(e,t){let n=E5(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=E5(this[r],t);return i!==null?i:o},2)}function SC(e){return e==null?[]:[].concat(e)}let AC,EC,TC,qne=/\$\{\s*(\w+)\s*\}/g;AC=Symbol.toStringTag;class T5{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[AC]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],SC(t).forEach(i=>{if(Ln.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}EC=Symbol.hasInstance;TC=Symbol.toStringTag;class Ln 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(qne,(o,i)=>ii(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const s=new T5(t,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[TC]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ln)}static[EC](t){return T5[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let qr={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 \`${ii(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ii(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${ii(n,!0)}\``+o}},Fn={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"},Zo={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"},F0={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Yne={isValue:"${path} field must be ${value}"},Hc={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Kne={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"},Zne={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: \`${ii(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: \`${ii(n,!0)}\``}return Ln.formatError(qr.notType,e)}};Object.assign(Object.create(null),{mixed:qr,string:Fn,number:Zo,date:F0,object:Hc,array:Kne,boolean:Yne,tuple:Zne});const ap=e=>e&&e.__isYupSchema__;class Ru{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,s=typeof r=="function"?r:(...l)=>l.every(d=>d===r);return new Ru(t,(l,d)=>{var u;let p=s(...l)?o:i;return(u=p==null?void 0:p(d))!=null?u:d})}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(!ap(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Oc={context:"$",value:"."};class rs{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]===Oc.context,this.isValue=this.key[0]===Oc.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Oc.context:this.isValue?Oc.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&qi.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}}rs.prototype.__isYupRef=!0;const Eo=e=>e==null;function Ds(e){function t({value:n,path:r="",options:o,originalValue:i,schema:s},l,d){const{name:u,test:p,params:g,message:h,skipAbsent:m}=e;let{parent:v,context:b,abortEarly:x=s.spec.abortEarly,disableStackTrace:S=s.spec.disableStackTrace}=o;function I(_){return rs.isRef(_)?_.getValue(n,v,b):_}function w(_={}){const U=Object.assign({value:n,originalValue:i,label:s.spec.label,path:_.path||r,spec:s.spec,disableStackTrace:_.disableStackTrace||S},g,_.params);for(const G of Object.keys(U))U[G]=I(U[G]);const H=new Ln(Ln.formatError(_.message||h,U),n,U.path,_.type||u,U.disableStackTrace);return H.params=U,H}const T=x?l:d;let P={path:r,parent:v,type:u,from:o.from,createError:w,resolve:I,options:o,originalValue:i,schema:s};const M=_=>{Ln.isError(_)?T(_):_?d(null):T(w())},j=_=>{Ln.isError(_)?T(_):l(_)};if(m&&Eo(n))return M(!0);let N;try{var k;if(N=p.call(P,n,P),typeof((k=N)==null?void 0:k.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(M,j)}}catch(_){j(_);return}M(N)}return t.OPTIONS=e,t}function Xne(e,t,n,r=n){let o,i,s;return t?(qi.forEach(t,(l,d,u)=>{let p=d?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",h=u?parseInt(p,10):0;if(e.innerType||g){if(g&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=g?e.spec.types[h]:e.innerType}if(!u){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}i=p,s=d?"["+l+"]":"."+l}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Mu extends Set{describe(){const t=[];for(const n of this.values())t.push(rs.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 Mu(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Xs(e,t=new Map){if(ap(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]=Xs(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,Xs(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Xs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Xs(o,t)}else throw Error(`Unable to clone ${e}`);return n}class Ir{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 Mu,this._blacklist=new Mu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(qr.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=Xs(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(s=>{i.test(s.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&&Eo(i))return i;let s=ii(t),l=ii(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 Ge=fh(function(){return at(L,Te+"return "+he).apply(n,q)});if(Ge.source=he,zd(Ge))throw Ge;return Ge}function Sj(a){return dt(a).toLowerCase()}function Aj(a){return dt(a).toUpperCase()}function Ej(a,c,y){if(a=dt(a),a&&(y||c===n))return x7(a);if(!a||!(c=Yn(c)))return a;var A=Rr(a),R=Rr(c),L=w7(A,R),q=S7(A,R)+1;return Wo(A,L,q).join("")}function Tj(a,c,y){if(a=dt(a),a&&(y||c===n))return a.slice(0,E7(a)+1);if(!a||!(c=Yn(c)))return a;var A=Rr(a),R=S7(A,Rr(c))+1;return Wo(A,0,R).join("")}function Ij(a,c,y){if(a=dt(a),a&&(y||c===n))return a.replace(Tt,"");if(!a||!(c=Yn(c)))return a;var A=Rr(a),R=w7(A,Rr(c));return Wo(A,R).join("")}function Oj(a,c){var y=k,A=D;if(_t(c)){var R="separator"in c?c.separator:R;y="length"in c?Ue(c.length):y,A="omission"in c?Yn(c.omission):A}a=dt(a);var L=a.length;if(vs(a)){var q=Rr(a);L=q.length}if(y>=L)return a;var X=y-ys(A);if(X<1)return A;var ie=q?Wo(q,0,X).join(""):a.slice(0,X);if(R===n)return ie+A;if(q&&(X+=ie.length-X),Wd(R)){if(a.slice(X).search(R)){var ue,fe=ie;for(R.global||(R=id(R.source,dt(C1.exec(R))+"g")),R.lastIndex=0;ue=R.exec(fe);)var he=ue.index;ie=ie.slice(0,he===n?X:he)}}else if(a.indexOf(Yn(R),X)!=X){var we=ie.lastIndexOf(R);we>-1&&(ie=ie.slice(0,we))}return ie+A}function Pj(a){return a=dt(a),a&&us.test(a)?a.replace(cs,oE):a}var jj=Es(function(a,c,y){return a+(y?" ":"")+c.toUpperCase()}),Gd=p4("toUpperCase");function dh(a,c,y){return a=dt(a),c=y?n:c,c===n?JA(a)?aE(a):UA(a):a.match(c)||[]}var fh=Ye(function(a,c){try{return Gn(a,n,c)}catch(y){return zd(y)?y:new Ne(y)}}),Rj=po(function(a,c){return cr(c,function(y){y=Ur(y),uo(a,y,$d(a[y],a))}),a});function Mj(a){var c=a==null?0:a.length,y=Me();return a=c?jt(a,function(A){if(typeof A[1]!="function")throw new ur(s);return[y(A[0]),A[1]]}):[],Ye(function(A){for(var R=-1;++R<c;){var L=a[R];if(Gn(L[0],this,A))return Gn(L[1],this,A)}})}function kj(a){return oT(fr(a,g))}function qd(a){return function(){return a}}function _j(a,c){return a==null||a!==a?c:a}var Dj=g4(),Fj=g4(!0);function _n(a){return a}function Yd(a){return H7(typeof a=="function"?a:fr(a,g))}function Lj(a){return q7(fr(a,g))}function Bj(a,c){return Y7(a,fr(c,g))}var Nj=Ye(function(a,c){return function(y){return Ha(y,a,c)}}),$j=Ye(function(a,c){return function(y){return Ha(a,y,c)}});function Kd(a,c,y){var A=rn(c),R=W1(c,A);y==null&&!(_t(c)&&(R.length||!A.length))&&(y=c,c=a,a=this,R=W1(c,rn(c)));var L=!(_t(y)&&"chain"in y)||!!y.chain,q=go(a);return cr(R,function(X){var ie=c[X];a[X]=ie,q&&(a.prototype[X]=function(){var ue=this.__chain__;if(L||ue){var fe=a(this.__wrapped__),he=fe.__actions__=Rn(this.__actions__);return he.push({func:ie,args:arguments,thisArg:a}),fe.__chain__=ue,fe}return ie.apply(a,Lo([this.value()],arguments))})}),a}function Vj(){return an._===this&&(an._=pE),this}function Zd(){}function zj(a){return a=Ue(a),Ye(function(c){return K7(c,a)})}var Wj=Id(jt),Uj=Id(m7),Hj=Id(Q3);function ph(a){return _d(a)?J3(Ur(a)):xT(a)}function Gj(a){return function(c){return a==null?n:Ei(a,c)}}var qj=v4(),Yj=v4(!0);function Xd(){return[]}function Qd(){return!1}function Kj(){return{}}function Zj(){return""}function Xj(){return!0}function Qj(a,c){if(a=Ue(a),a<1||a>W)return[];var y=$,A=mn(a,$);c=Me(c),a-=$;for(var R=nd(A,c);++y<a;)c(y);return R}function Jj(a){return ze(a)?jt(a,Ur):Kn(a)?[a]:Rn(k4(dt(a)))}function eR(a){var c=++dE;return dt(a)+c}var tR=K1(function(a,c){return a+c},0),nR=Od("ceil"),rR=K1(function(a,c){return a/c},1),oR=Od("floor");function iR(a){return a&&a.length?z1(a,_n,pd):n}function sR(a,c){return a&&a.length?z1(a,Me(c,2),pd):n}function aR(a){return b7(a,_n)}function lR(a,c){return b7(a,Me(c,2))}function cR(a){return a&&a.length?z1(a,_n,vd):n}function uR(a,c){return a&&a.length?z1(a,Me(c,2),vd):n}var dR=K1(function(a,c){return a*c},1),fR=Od("round"),pR=K1(function(a,c){return a-c},0);function hR(a){return a&&a.length?td(a,_n):0}function gR(a,c){return a&&a.length?td(a,Me(c,2)):0}return F.after=LO,F.ary=U4,F.assign=AP,F.assignIn=oh,F.assignInWith=lc,F.assignWith=EP,F.at=TP,F.before=H4,F.bind=$d,F.bindAll=Rj,F.bindKey=G4,F.castArray=KO,F.chain=V4,F.chunk=oI,F.compact=iI,F.concat=sI,F.cond=Mj,F.conforms=kj,F.constant=qd,F.countBy=hO,F.create=IP,F.curry=q4,F.curryRight=Y4,F.debounce=K4,F.defaults=OP,F.defaultsDeep=PP,F.defer=BO,F.delay=NO,F.difference=aI,F.differenceBy=lI,F.differenceWith=cI,F.drop=uI,F.dropRight=dI,F.dropRightWhile=fI,F.dropWhile=pI,F.fill=hI,F.filter=mO,F.flatMap=bO,F.flatMapDeep=CO,F.flatMapDepth=xO,F.flatten=L4,F.flattenDeep=gI,F.flattenDepth=mI,F.flip=$O,F.flow=Dj,F.flowRight=Fj,F.fromPairs=vI,F.functions=FP,F.functionsIn=LP,F.groupBy=wO,F.initial=bI,F.intersection=CI,F.intersectionBy=xI,F.intersectionWith=wI,F.invert=NP,F.invertBy=$P,F.invokeMap=AO,F.iteratee=Yd,F.keyBy=EO,F.keys=rn,F.keysIn=kn,F.map=nc,F.mapKeys=zP,F.mapValues=WP,F.matches=Lj,F.matchesProperty=Bj,F.memoize=oc,F.merge=UP,F.mergeWith=ih,F.method=Nj,F.methodOf=$j,F.mixin=Kd,F.negate=ic,F.nthArg=zj,F.omit=HP,F.omitBy=GP,F.once=VO,F.orderBy=TO,F.over=Wj,F.overArgs=zO,F.overEvery=Uj,F.overSome=Hj,F.partial=Vd,F.partialRight=Z4,F.partition=IO,F.pick=qP,F.pickBy=sh,F.property=ph,F.propertyOf=Gj,F.pull=TI,F.pullAll=N4,F.pullAllBy=II,F.pullAllWith=OI,F.pullAt=PI,F.range=qj,F.rangeRight=Yj,F.rearg=WO,F.reject=jO,F.remove=jI,F.rest=UO,F.reverse=Bd,F.sampleSize=MO,F.set=KP,F.setWith=ZP,F.shuffle=kO,F.slice=RI,F.sortBy=FO,F.sortedUniq=BI,F.sortedUniqBy=NI,F.split=bj,F.spread=HO,F.tail=$I,F.take=VI,F.takeRight=zI,F.takeRightWhile=WI,F.takeWhile=UI,F.tap=iO,F.throttle=GO,F.thru=tc,F.toArray=th,F.toPairs=ah,F.toPairsIn=lh,F.toPath=Jj,F.toPlainObject=rh,F.transform=XP,F.unary=qO,F.union=HI,F.unionBy=GI,F.unionWith=qI,F.uniq=YI,F.uniqBy=KI,F.uniqWith=ZI,F.unset=QP,F.unzip=Nd,F.unzipWith=$4,F.update=JP,F.updateWith=ej,F.values=Os,F.valuesIn=tj,F.without=XI,F.words=dh,F.wrap=YO,F.xor=QI,F.xorBy=JI,F.xorWith=eO,F.zip=tO,F.zipObject=nO,F.zipObjectDeep=rO,F.zipWith=oO,F.entries=ah,F.entriesIn=lh,F.extend=oh,F.extendWith=lc,Kd(F,F),F.add=tR,F.attempt=fh,F.camelCase=ij,F.capitalize=ch,F.ceil=nR,F.clamp=nj,F.clone=ZO,F.cloneDeep=QO,F.cloneDeepWith=JO,F.cloneWith=XO,F.conformsTo=eP,F.deburr=uh,F.defaultTo=_j,F.divide=rR,F.endsWith=sj,F.eq=kr,F.escape=aj,F.escapeRegExp=lj,F.every=gO,F.find=vO,F.findIndex=D4,F.findKey=jP,F.findLast=yO,F.findLastIndex=F4,F.findLastKey=RP,F.floor=oR,F.forEach=z4,F.forEachRight=W4,F.forIn=MP,F.forInRight=kP,F.forOwn=_P,F.forOwnRight=DP,F.get=Ud,F.gt=tP,F.gte=nP,F.has=BP,F.hasIn=Hd,F.head=B4,F.identity=_n,F.includes=SO,F.indexOf=yI,F.inRange=rj,F.invoke=VP,F.isArguments=Oi,F.isArray=ze,F.isArrayBuffer=rP,F.isArrayLike=Mn,F.isArrayLikeObject=Wt,F.isBoolean=oP,F.isBuffer=Uo,F.isDate=iP,F.isElement=sP,F.isEmpty=aP,F.isEqual=lP,F.isEqualWith=cP,F.isError=zd,F.isFinite=uP,F.isFunction=go,F.isInteger=X4,F.isLength=sc,F.isMap=Q4,F.isMatch=dP,F.isMatchWith=fP,F.isNaN=pP,F.isNative=hP,F.isNil=mP,F.isNull=gP,F.isNumber=J4,F.isObject=_t,F.isObjectLike=Lt,F.isPlainObject=Xa,F.isRegExp=Wd,F.isSafeInteger=vP,F.isSet=eh,F.isString=ac,F.isSymbol=Kn,F.isTypedArray=Is,F.isUndefined=yP,F.isWeakMap=bP,F.isWeakSet=CP,F.join=SI,F.kebabCase=cj,F.last=hr,F.lastIndexOf=AI,F.lowerCase=uj,F.lowerFirst=dj,F.lt=xP,F.lte=wP,F.max=iR,F.maxBy=sR,F.mean=aR,F.meanBy=lR,F.min=cR,F.minBy=uR,F.stubArray=Xd,F.stubFalse=Qd,F.stubObject=Kj,F.stubString=Zj,F.stubTrue=Xj,F.multiply=dR,F.nth=EI,F.noConflict=Vj,F.noop=Zd,F.now=rc,F.pad=fj,F.padEnd=pj,F.padStart=hj,F.parseInt=gj,F.random=oj,F.reduce=OO,F.reduceRight=PO,F.repeat=mj,F.replace=vj,F.result=YP,F.round=fR,F.runInContext=re,F.sample=RO,F.size=_O,F.snakeCase=yj,F.some=DO,F.sortedIndex=MI,F.sortedIndexBy=kI,F.sortedIndexOf=_I,F.sortedLastIndex=DI,F.sortedLastIndexBy=FI,F.sortedLastIndexOf=LI,F.startCase=Cj,F.startsWith=xj,F.subtract=pR,F.sum=hR,F.sumBy=gR,F.template=wj,F.times=Qj,F.toFinite=mo,F.toInteger=Ue,F.toLength=nh,F.toLower=Sj,F.toNumber=gr,F.toSafeInteger=SP,F.toString=dt,F.toUpper=Aj,F.trim=Ej,F.trimEnd=Tj,F.trimStart=Ij,F.truncate=Oj,F.unescape=Pj,F.uniqueId=eR,F.upperCase=jj,F.upperFirst=Gd,F.each=z4,F.eachRight=W4,F.first=B4,Kd(F,function(){var a={};return zr(F,function(c,y){yt.call(F.prototype,y)||(a[y]=c)}),a}(),{chain:!1}),F.VERSION=r,cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){F[a].placeholder=F}),cr(["drop","take"],function(a,c){Xe.prototype[a]=function(y){y=y===n?1:nn(Ue(y),0);var A=this.__filtered__&&!c?new Xe(this):this.clone();return A.__filtered__?A.__takeCount__=mn(y,A.__takeCount__):A.__views__.push({size:mn(y,$),type:a+(A.__dir__<0?"Right":"")}),A},Xe.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),cr(["filter","map","takeWhile"],function(a,c){var y=c+1,A=y==G||y==V;Xe.prototype[a]=function(R){var L=this.clone();return L.__iteratees__.push({iteratee:Me(R,3),type:y}),L.__filtered__=L.__filtered__||A,L}}),cr(["head","last"],function(a,c){var y="take"+(c?"Right":"");Xe.prototype[a]=function(){return this[y](1).value()[0]}}),cr(["initial","tail"],function(a,c){var y="drop"+(c?"":"Right");Xe.prototype[a]=function(){return this.__filtered__?new Xe(this):this[y](1)}}),Xe.prototype.compact=function(){return this.filter(_n)},Xe.prototype.find=function(a){return this.filter(a).head()},Xe.prototype.findLast=function(a){return this.reverse().find(a)},Xe.prototype.invokeMap=Ye(function(a,c){return typeof a=="function"?new Xe(this):this.map(function(y){return Ha(y,a,c)})}),Xe.prototype.reject=function(a){return this.filter(ic(Me(a)))},Xe.prototype.slice=function(a,c){a=Ue(a);var y=this;return y.__filtered__&&(a>0||c<0)?new Xe(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),c!==n&&(c=Ue(c),y=c<0?y.dropRight(-c):y.take(c-a)),y)},Xe.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Xe.prototype.toArray=function(){return this.take($)},zr(Xe.prototype,function(a,c){var y=/^(?:filter|find|map|reject)|While$/.test(c),A=/^(?:head|last)$/.test(c),R=F[A?"take"+(c=="last"?"Right":""):c],L=A||/^find/.test(c);R&&(F.prototype[c]=function(){var q=this.__wrapped__,X=A?[1]:arguments,ie=q instanceof Xe,ue=X[0],fe=ie||ze(q),he=function(Ze){var Je=R.apply(F,Lo([Ze],X));return A&&we?Je[0]:Je};fe&&y&&typeof ue=="function"&&ue.length!=1&&(ie=fe=!1);var we=this.__chain__,Te=!!this.__actions__.length,ke=L&&!we,Ge=ie&&!Te;if(!L&&fe){q=Ge?q:new Xe(this);var _e=a.apply(q,X);return _e.__actions__.push({func:tc,args:[he],thisArg:n}),new dr(_e,we)}return ke&&Ge?a.apply(this,X):(_e=this.thru(he),ke?A?_e.value()[0]:_e.value():_e)})}),cr(["pop","push","shift","sort","splice","unshift"],function(a){var c=I1[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",A=/^(?:pop|shift)$/.test(a);F.prototype[a]=function(){var R=arguments;if(A&&!this.__chain__){var L=this.value();return c.apply(ze(L)?L:[],R)}return this[y](function(q){return c.apply(ze(q)?q:[],R)})}}),zr(Xe.prototype,function(a,c){var y=F[c];if(y){var A=y.name+"";yt.call(ws,A)||(ws[A]=[]),ws[A].push({name:c,func:y})}}),ws[Y1(n,S).name]=[{name:"wrapper",func:n}],Xe.prototype.clone=PE,Xe.prototype.reverse=jE,Xe.prototype.value=RE,F.prototype.at=sO,F.prototype.chain=aO,F.prototype.commit=lO,F.prototype.next=cO,F.prototype.plant=dO,F.prototype.reverse=fO,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=pO,F.prototype.first=F.prototype.head,Ba&&(F.prototype[Ba]=uO),F},bs=lE();Ci?((Ci.exports=bs)._=bs,Y3._=bs):an._=bs}).call(Pn)})(ju,ju.exports);var Qe=ju.exports;const J=Nr(Qe),vne=["e-","entities/"];function yne(e){let t=e;return vne.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function bne(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 Cne(e,t){const n=yne(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function k0(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=k0(o.children,t),n))return n}return n}function fC(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&bne(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=fC(i.children,t),r))return r}return r}function pC(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=pC(o.children,t),n))return n}return n}function hC(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(hC)),e.children&&e.children.length>0):!1}function gC(e){return e.children&&e.children.forEach(t=>{t.parent=e,gC(t)}),e}function xne(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(h=>i(h)),g}const s=Object.keys(t);function l(g,h){return g.children&&(g.children=g.children.filter(m=>{if(m.resource===!1){const v=m.roles||[];return!!(v.length===0||v.some(b=>o.includes(b)))}return m.type==="item"?h.includes(m.id):(l(m,h),m.children&&m.children.length>0)})),g}const d=J.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>l(g,s)),u=Object.values(t).map(g=>{var h;return((h=g.options)==null?void 0:h.group)||"admin"}).filter((g,h,m)=>m.indexOf(g)===h).filter(g=>g!==void 0&&pC(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:He.AntDesignOutlined,children:[]})),p=[...d,...u];return Object.values(t).forEach(g=>{var I,w,T,P;const h=fC(p,g),m=(I=h==null?void 0:h.children)==null?void 0:I.find(M=>M.id===g.name),v=(w=h==null?void 0:h.children)==null?void 0:w.some(M=>M.id===g.name),b=(m==null?void 0:m.roles)||((T=g.options)==null?void 0:T.roles)||[],x=!b||b.length===0||b.some(M=>o.includes(M));if(!Cne(g,n)||g.list||!x){v&&h&&h.children&&((P=h==null?void 0:h.children)==null?void 0:P.length)>0&&(h.children=h.children.filter(M=>M.id!==g.name));return}h&&(h.children||(h.children=[]))}),p.filter(hC).map(gC)}function sl(){throw new Error("Not implemented")}const mC={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:sl,openDrawer:sl,activeID:sl,hasError:sl,setMenu:sl},vC=O.createContext(mC);function yC({menu:e,children:t}){const[n,r]=O.useState({...mC,menu:e});function o(u){r(p=>({...p,menu:u}))}function i(u){r(p=>({...p,openItem:u}))}function s(u){r(p=>({...p,selectedID:u}))}function l(u){r(p=>({...p,drawerOpen:u}))}function d(u){r(p=>({...p,error:u}))}return O.useEffect(()=>{o(e)},[e]),f.jsx(vC.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:l,activeID:s,hasError:d},children:t})}function I3(){return O.useContext(vC)}function tp(){const e=ne.useResourceDefinitions(),{isLoading:t,data:n}=ne.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=ne.usePermissions(r),{menu:i}=I3(),s=ne.useTranslate(),l=O.useMemo(()=>{if(t||!n)return null;const p=((n==null?void 0:n.roles)||[]).map(h=>h.id);return xne(i,e,o,s,p)},[t,n,e,o,s,i]),d=O.useMemo(()=>t,[t]);function u(p){if(l)return k0(l,p)}return{menu:l,isLoading:d,getItem:u,findInMenu:d?()=>{}:k0}}function bC(){const e=ne.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=tp(),{pathname:o}=Yi.useLocation();return O.useMemo(()=>{var h;const i=o.split("/").filter(m=>m),s=J.cloneDeep(n);let l=o,d=r(s,o);if((!d||d.type==="collapse"||d.type==="group")&&(d=r(s,i[i.length-1]),l=d?d.id:l),!d||d.type==="collapse"||d.type==="group")for(let m=i.length;m>=0;m--){const v=i.slice(0,m).join("/");if(d=r(s,v),d){l=d.id;break}}const u=(h=d==null?void 0:d.url)==null?void 0:h.split("/"),p=(u==null?void 0:u.length)||0;if(i.length>=p){const m=i[i.length-1];if(d){const v=m==="create"||o===d.url?"create":"edit",b=`resources.${l}.breadcrumbs.${v}`,x={id:`${l}-${v}`,type:"item",title:e(b,{_:e(b,{_:b})}),url:o,breadcrumbs:!0,parent:d};d.type="collapse",d.breadcrumbs=!0,d.children=d.children||[],d.children.push(x),d=x}}let g=[];if(d){let m={...d,last:!0};for(;m;)g.push(m),m=m.parent;g=g.reverse()}return{isLoading:t,navigation:{items:s},breadcrumbs:g}},[t,o,n,r,e])}function Vl(){return I3()}function $r(e,t,n){const r=J.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(s=>J.isFunction(s)?s:void 0).value();n!=null&&n.defaults?J.defaultsDeep(r,t):J.merge(r,t);const[o,i]=O.useState(r);return O.useEffect(()=>{J.isEqual(o,r)||i(r)},[o,r]),o}function np(e=!1){const[t,n]=O.useState(!!e),r=O.useCallback(l=>n(!!l),[n]),o=O.useCallback(()=>n(!0),[n]),i=O.useCallback(()=>n(!1),[n]),s=O.useCallback(()=>n(l=>!l),[n]);return{open:t,setOpen:r,handleOpen:o,handleClose:i,handleToggle:s}}function _0(){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 ns(e){this._maxSize=e,this.clear()}ns.prototype.clear=function(){this._size=0,this._values=Object.create(null)};ns.prototype.get=function(e){return this._values[e]};ns.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var wne=/[^.^\]^[]+|(?=\[\]|\.\.)/g,CC=/^\d+$/,Sne=/^\d/,Ane=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Ene=/^\s*(['"]?)(.*?)(\1)\s*$/,rp=512,w5=new ns(rp),S5=new ns(rp),A5=new ns(rp),qi={Cache:ns,split:D0,normalizePath:_f,setter:function(e){var t=_f(e);return S5.get(e)||S5.set(e,function(r,o){for(var i=0,s=t.length,l=r;i<s-1;){var d=t[i];if(d==="__proto__"||d==="constructor"||d==="prototype")return r;l=l[t[i++]]}l[t[i]]=o})},getter:function(e,t){var n=_f(e);return A5.get(e)||A5.set(e,function(o){for(var i=0,s=n.length;i<s;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(op(n)||CC.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){Tne(Array.isArray(e)?e:D0(e),t,n)}};function _f(e){return w5.get(e)||w5.set(e,D0(e).map(function(t){return t.replace(Ene,"$2")}))}function D0(e){return e.match(wne)||[""]}function Tne(e,t,n){var r=e.length,o,i,s,l;for(i=0;i<r;i++)o=e[i],o&&(Pne(o)&&(o='"'+o+'"'),l=op(o),s=!l&&/^\d+$/.test(o),t.call(n,o,l,s,i,e))}function op(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Ine(e){return e.match(Sne)&&!e.match(CC)}function One(e){return Ane.test(e)}function Pne(e){return!op(e)&&(Ine(e)||One(e))}const jne=/[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,O3=e=>e.match(jne)||[],P3=e=>e[0].toUpperCase()+e.slice(1),ip=(e,t)=>O3(e).join(t).toLowerCase(),xC=e=>O3(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Rne=e=>P3(xC(e)),Mne=e=>ip(e,"_"),kne=e=>ip(e,"-"),_ne=e=>P3(ip(e," ")),Dne=e=>O3(e).map(P3).join(" ");var Df={words:O3,upperFirst:P3,camelCase:xC,pascalCase:Rne,snakeCase:Mne,kebabCase:kne,sentenceCase:_ne,titleCase:Dne},sp={exports:{}};sp.exports=function(e){return wC(Fne(e),e)};sp.exports.array=wC;function wC(e,t){var n=e.length,r=new Array(n),o={},i=n,s=Lne(t),l=Bne(e);for(t.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||d(e[i],i,new Set);return r;function d(u,p,g){if(g.has(u)){var h;try{h=", node was:"+JSON.stringify(u)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[p]){o[p]=!0;var m=s.get(u)||new Set;if(m=Array.from(m),p=m.length){g.add(u);do{var v=m[--p];d(v,l.get(v),g)}while(p);g.delete(u)}r[--n]=u}}}function Fne(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 Lne(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 Bne(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var Nne=sp.exports;const $ne=Nr(Nne),Vne=Object.prototype.toString,zne=Error.prototype.toString,Wne=RegExp.prototype.toString,Une=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Hne=/^Symbol\((.*)\)(.*)$/;function Gne(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function E5(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Gne(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Une.call(e).replace(Hne,"Symbol($1)");const r=Vne.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+zne.call(e)+"]":r==="RegExp"?Wne.call(e):null}function ii(e,t){let n=E5(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=E5(this[r],t);return i!==null?i:o},2)}function SC(e){return e==null?[]:[].concat(e)}let AC,EC,TC,qne=/\$\{\s*(\w+)\s*\}/g;AC=Symbol.toStringTag;class T5{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[AC]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],SC(t).forEach(i=>{if(Ln.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}EC=Symbol.hasInstance;TC=Symbol.toStringTag;class Ln 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(qne,(o,i)=>ii(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const s=new T5(t,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[TC]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ln)}static[EC](t){return T5[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let qr={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 \`${ii(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ii(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${ii(n,!0)}\``+o}},Fn={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"},Zo={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"},F0={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Yne={isValue:"${path} field must be ${value}"},Hc={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Kne={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"},Zne={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: \`${ii(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: \`${ii(n,!0)}\``}return Ln.formatError(qr.notType,e)}};Object.assign(Object.create(null),{mixed:qr,string:Fn,number:Zo,date:F0,object:Hc,array:Kne,boolean:Yne,tuple:Zne});const ap=e=>e&&e.__isYupSchema__;class Ru{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,s=typeof r=="function"?r:(...l)=>l.every(d=>d===r);return new Ru(t,(l,d)=>{var u;let p=s(...l)?o:i;return(u=p==null?void 0:p(d))!=null?u:d})}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(!ap(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Oc={context:"$",value:"."};class rs{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]===Oc.context,this.isValue=this.key[0]===Oc.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Oc.context:this.isValue?Oc.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&qi.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}}rs.prototype.__isYupRef=!0;const Eo=e=>e==null;function Ds(e){function t({value:n,path:r="",options:o,originalValue:i,schema:s},l,d){const{name:u,test:p,params:g,message:h,skipAbsent:m}=e;let{parent:v,context:b,abortEarly:x=s.spec.abortEarly,disableStackTrace:S=s.spec.disableStackTrace}=o;function I(D){return rs.isRef(D)?D.getValue(n,v,b):D}function w(D={}){const U=Object.assign({value:n,originalValue:i,label:s.spec.label,path:D.path||r,spec:s.spec,disableStackTrace:D.disableStackTrace||S},g,D.params);for(const G of Object.keys(U))U[G]=I(U[G]);const H=new Ln(Ln.formatError(D.message||h,U),n,U.path,D.type||u,U.disableStackTrace);return H.params=U,H}const T=x?l:d;let P={path:r,parent:v,type:u,from:o.from,createError:w,resolve:I,options:o,originalValue:i,schema:s};const M=D=>{Ln.isError(D)?T(D):D?d(null):T(w())},j=D=>{Ln.isError(D)?T(D):l(D)};if(m&&Eo(n))return M(!0);let N;try{var k;if(N=p.call(P,n,P),typeof((k=N)==null?void 0:k.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(M,j)}}catch(D){j(D);return}M(N)}return t.OPTIONS=e,t}function Xne(e,t,n,r=n){let o,i,s;return t?(qi.forEach(t,(l,d,u)=>{let p=d?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",h=u?parseInt(p,10):0;if(e.innerType||g){if(g&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=g?e.spec.types[h]:e.innerType}if(!u){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}i=p,s=d?"["+l+"]":"."+l}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Mu extends Set{describe(){const t=[];for(const n of this.values())t.push(rs.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 Mu(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Xs(e,t=new Map){if(ap(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]=Xs(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,Xs(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Xs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Xs(o,t)}else throw Error(`Unable to clone ${e}`);return n}class Ir{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 Mu,this._blacklist=new Mu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(qr.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=Xs(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(s=>{i.test(s.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&&Eo(i))return i;let s=ii(t),l=ii(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: ${s}
224
- `+(l!==s?`result of cast: ${l}`:""))}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:s=t,strict:l=this.spec.strict}=n,d=t;l||(d=this._cast(d,Object.assign({assert:!1},n)));let u=[];for(let p of Object.values(this.internalTests))p&&u.push(p);this.runTests({path:i,value:d,originalValue:s,options:n,tests:u},r,p=>{if(p.length)return o(p,d);this.runTests({path:i,value:d,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:s,originalValue:l,path:d,options:u}=t,p=b=>{o||(o=!0,n(b,s))},g=b=>{o||(o=!0,r(b,s))},h=i.length,m=[];if(!h)return g([]);let v={value:s,originalValue:l,path:d,options:u,schema:this};for(let b=0;b<i.length;b++){const x=i[b];x(v,p,function(I){I&&(Array.isArray(I)?m.push(...I):m.push(I)),--h<=0&&g(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof l=="number";let u=r[l];const p=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:i[l],key:void 0,[d?"index":"key"]:l,path:d||l.includes(".")?`${o||""}[${d?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(g,h,m)=>this.resolve(p)._validate(u,p,h,m)}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((s,l)=>o._validate(t,n,(d,u)=>{Ln.isError(d)&&(d.value=u),l(d)},(d,u)=>{d.length?l(new Ln(d,u,void 0,void 0,i)):s(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,d)=>{throw Ln.isError(l)&&(l.value=d),l},(l,d)=>{if(l.length)throw new Ln(l,t,void 0,void 0,s);i=d}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Ln.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Ln.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Xs(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=Ds({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=Ds({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=qr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qr.notNull){return this.nullability(!1,t)}required(t=qr.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=qr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Ds(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(s=>!(s.OPTIONS.name===n.name&&(i||s.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=SC(t).map(i=>new rs(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Ru(o,n):Ru.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ds({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=qr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Ds({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(t,n=qr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Ds({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!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:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,u,p)=>p.findIndex(g=>g.name===d.name)===u)}}}Ir.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ir.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=Xne(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Ir.prototype[e]=Ir.prototype.oneOf;for(const e of["not","nope"])Ir.prototype[e]=Ir.prototype.notOneOf;const Qne=()=>!0;function lp(e){return new IC(e)}class IC extends Ir{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Qne},t))}}lp.prototype=IC.prototype;const Jne=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ere(e){const t=L0(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 L0(e){var t,n;const r=Jne.exec(e);return r?{year:Co(r[1]),month:Co(r[2],1)-1,day:Co(r[3],1),hour:Co(r[4]),minute:Co(r[5]),second:Co(r[6]),millisecond:r[7]?Co(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:Co(r[10]),minuteOffset:Co(r[11])}:null}function Co(e,t=0){return Number(e)||t}let tre=/^[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])?)*$/,nre=/^((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,rre=/^(?:[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,ore="^\\d{4}-\\d{2}-\\d{2}",ire="\\d{2}:\\d{2}:\\d{2}",sre="(([+-]\\d{2}(:?\\d{2})?)|Z)",are=new RegExp(`${ore}T${ire}(\\.\\d+)?${sre}$`),lre=e=>Eo(e)||e===e.trim(),cre={}.toString();function Bn(){return new OC}class OC extends Ir{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===cre?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||qr.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=Fn.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=Fn.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=Fn.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||Fn.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=Fn.email){return this.matches(tre,{name:"email",message:t,excludeEmptyString:!0})}url(t=Fn.url){return this.matches(nre,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Fn.uuid){return this.matches(rre,{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(are,{name:"datetime",message:n||Fn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Fn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=L0(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||Fn.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=L0(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Fn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:lre})}lowercase(t=Fn.lowercase){return this.transform(n=>Eo(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Eo(n)||n===n.toLowerCase()})}uppercase(t=Fn.uppercase){return this.transform(n=>Eo(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Eo(n)||n===n.toUpperCase()})}}Bn.prototype=OC.prototype;let ure=e=>e!=+e;function PC(){return new jC}class jC extends Ir{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!ure(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=Zo.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=Zo.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=Zo.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=Zo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Zo.positive){return this.moreThan(0,t)}negative(t=Zo.negative){return this.lessThan(0,t)}integer(t=Zo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Eo(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=>Eo(o)?o:Math[t](o))}}PC.prototype=jC.prototype;let dre=new Date(""),fre=e=>Object.prototype.toString.call(e)==="[object Date]";class j3 extends Ir{constructor(){super({type:"date",check(t){return fre(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ere(t),isNaN(t)?j3.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(rs.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=F0.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=F0.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)}})}}j3.INVALID_DATE=dre;j3.prototype;function pre(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([s,l])=>`${s}-${l}`));function i(s,l){let d=qi.split(s)[0];r.add(d),o.has(`${l}-${d}`)||n.push([l,d])}for(const s of Object.keys(e)){let l=e[s];r.add(s),rs.isRef(l)&&l.isSibling?i(l.path,s):ap(l)&&"deps"in l&&l.deps.forEach(d=>i(d,s))}return $ne.array(Array.from(r),n).reverse()}function I5(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 RC(e){return(t,n)=>I5(e,t)-I5(e,n)}const hre=(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 Gc(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Gc(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Gc(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Gc)}):"optional"in e?e.optional():e}const gre=(e,t)=>{const n=[...qi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=qi.getter(qi.join(n),!0)(e);return!!(o&&r in o)};let O5=e=>Object.prototype.toString.call(e)==="[object Object]";function P5(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const mre=RC([]);function cp(e){return new MC(e)}class MC extends Ir{constructor(t){super({type:"object",check(n){return O5(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=mre,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,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),d={},u=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),p=!1;for(const g of l){let h=i[g],m=g in o;if(h){let v,b=o[g];u.path=(n.path?`${n.path}.`:"")+g,h=h.resolve({value:b,context:n.context,parent:d});let x=h instanceof Ir?h.spec:void 0,S=x==null?void 0:x.strict;if(x!=null&&x.strip){p=p||g in o;continue}v=!n.__validating||!S?h.cast(o[g],u):o[g],v!==void 0&&(d[g]=v)}else m&&!s&&(d[g]=o[g]);(m!==g in d||d[g]!==o[g])&&(p=!0)}return p?d:o}_validate(t,n={},r,o){let{from:i=[],originalValue:s=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(d,u)=>{if(!l||!O5(u)){o(d,u);return}s=s||u;let p=[];for(let g of this._nodes){let h=this.fields[g];!h||rs.isRef(h)||p.push(h.asNestedTest({options:n,key:g,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:p,value:u,originalValue:s,options:n},r,g=>{o(g.sort(this._sortErrors).concat(d),u)})})}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 s=r[o];r[o]=s===void 0?i:s}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 s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=pre(t,n),r._sortErrors=RC(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 Gc(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=qi.getter(t,!0);return this.transform(i=>{if(!i)return i;let s=i;return gre(i,t)&&(s=Object.assign({},i),r||delete s[t],s[n]=o(i)),s})}json(){return this.transform(hre)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Hc.exact,test(n){if(n==null)return!0;const r=P5(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Hc.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=P5(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Hc.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(Df.camelCase)}snakeCase(){return this.transformKeys(Df.snakeCase)}constantCase(){return this.transformKeys(t=>Df.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}cp.prototype=MC.prototype;const j5=lp().test("function","Invalid function",e=>J.isFunction(e));var Qo,zi,ul;class kC{constructor(){Dr(this,zi);Dr(this,Qo,[])}get(t){if(Bn().required().validateSync(t),yo(this,zi,ul).call(this)){const n=localStorage.getItem(t);return J.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return Bn().required().validateSync(t),yo(this,zi,ul).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){Bn().required().validateSync(t),j5.validateSync(n),yo(this,zi,ul).call(this)&&(cn(this,Qo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){Bn().required().validateSync(t),j5.optional().default(J.identity).validateSync(n),yo(this,zi,ul).call(this)&&(n!==void 0?Hr(this,Qo,J.reject(cn(this,Qo),r=>r.key===t&&r.callback===n)):Hr(this,Qo,J.reject(cn(this,Qo),r=>r.key===t)))}}Qo=new WeakMap,zi=new WeakSet,ul=function(){return typeof window<"u"};function ku(e={},t=[],n={}){const{isEmpty:r=J.isEmpty}=n;return!J.some(t,o=>r((e??{})[o.locale]))}function _C(e={},t=[],n={}){const{isEmpty:r=J.isEmpty}=n;return J.some(t,o=>!r((e??{})[o.locale]))}function up(e,t,n){if(!J.isPlainObject(e)||t===void 0)return;const r=J.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const s=J.isArray(r.fallbackLocales)&&!J.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=J.chain(s).map(l=>e[String(l)]).reject(J.isUndefined).first().value(),i===void 0&&(i=J.chain(e).values().first().value())}return i}function R3(e=[],t){const n=J.isArray(e)?e:[e],r=J.filter(n,o=>O.isValidElement(o));J.each(r,o=>{var i;t(o),R3(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}const R5=lp().test("function","Invalid function",e=>J.isFunction(e));var Jo,Wi,dl;class DC{constructor(){Dr(this,Wi);Dr(this,Jo,[])}get(t){if(Bn().required().validateSync(t),yo(this,Wi,dl).call(this)){const n=sessionStorage.getItem(t);return J.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return Bn().required().validateSync(t),yo(this,Wi,dl).call(this)?(sessionStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){Bn().required().validateSync(t),R5.validateSync(n),yo(this,Wi,dl).call(this)&&(cn(this,Jo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===sessionStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){Bn().required().validateSync(t),R5.optional().default(J.identity).validateSync(n),yo(this,Wi,dl).call(this)&&(n!==void 0?Hr(this,Jo,J.reject(cn(this,Jo),r=>r.key===t&&r.callback===n)):Hr(this,Jo,J.reject(cn(this,Jo),r=>r.key===t)))}}Jo=new WeakMap,Wi=new WeakSet,dl=function(){return typeof window<"u"};var FC={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",d="hour",u="day",p="week",g="month",h="quarter",m="year",v="date",b="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,I={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(G){var Y=["th","st","nd","rd"],V=G%100;return"["+G+(Y[(V-20)%10]||Y[V]||Y[0])+"]"}},w=function(G,Y,V){var Z=String(G);return!Z||Z.length>=Y?G:""+Array(Y+1-Z.length).join(V)+G},T={s:w,z:function(G){var Y=-G.utcOffset(),V=Math.abs(Y),Z=Math.floor(V/60),W=V%60;return(Y<=0?"+":"-")+w(Z,2,"0")+":"+w(W,2,"0")},m:function G(Y,V){if(Y.date()<V.date())return-G(V,Y);var Z=12*(V.year()-Y.year())+(V.month()-Y.month()),W=Y.clone().add(Z,g),se=V-W<0,K=Y.clone().add(Z+(se?-1:1),g);return+(-(Z+(V-W)/(se?W-K:K-W))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:g,y:m,w:p,d:u,D:v,h:d,m:l,s,ms:i,Q:h}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},P="en",M={};M[P]=I;var j="$isDayjsObject",D=function(G){return G instanceof U||!(!G||!G[j])},N=function G(Y,V,Z){var W;if(!Y)return P;if(typeof Y=="string"){var se=Y.toLowerCase();M[se]&&(W=se),V&&(M[se]=V,W=se);var K=Y.split("-");if(!W&&K.length>1)return G(K[0])}else{var $=Y.name;M[$]=Y,W=$}return!Z&&W&&(P=W),W||!Z&&P},k=function(G,Y){if(D(G))return G.clone();var V=typeof Y=="object"?Y:{};return V.date=G,V.args=arguments,new U(V)},_=T;_.l=N,_.i=D,_.w=function(G,Y){return k(G,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var U=function(){function G(V){this.$L=N(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[j]=!0}var Y=G.prototype;return Y.parse=function(V){this.$d=function(Z){var W=Z.date,se=Z.utc;if(W===null)return new Date(NaN);if(_.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var K=W.match(x);if(K){var $=K[2]-1||0,te=(K[7]||"0").substring(0,3);return se?new Date(Date.UTC(K[1],$,K[3]||1,K[4]||0,K[5]||0,K[6]||0,te)):new Date(K[1],$,K[3]||1,K[4]||0,K[5]||0,K[6]||0,te)}}return new Date(W)}(V),this.init()},Y.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()},Y.$utils=function(){return _},Y.isValid=function(){return this.$d.toString()!==b},Y.isSame=function(V,Z){var W=k(V);return this.startOf(Z)<=W&&W<=this.endOf(Z)},Y.isAfter=function(V,Z){return k(V)<this.startOf(Z)},Y.isBefore=function(V,Z){return this.endOf(Z)<k(V)},Y.$g=function(V,Z,W){return _.u(V)?this[Z]:this.set(W,V)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(V,Z){var W=this,se=!!_.u(Z)||Z,K=_.p(V),$=function(be,Ce){var Ee=_.w(W.$u?Date.UTC(W.$y,Ce,be):new Date(W.$y,Ce,be),W);return se?Ee:Ee.endOf(u)},te=function(be,Ce){return _.w(W.toDate()[be].apply(W.toDate("s"),(se?[0,0,0,0]:[23,59,59,999]).slice(Ce)),W)},oe=this.$W,Q=this.$M,de=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case m:return se?$(1,0):$(31,11);case g:return se?$(1,Q):$(0,Q+1);case p:var ye=this.$locale().weekStart||0,ce=(oe<ye?oe+7:oe)-ye;return $(se?de-ce:de+(6-ce),Q);case u:case v:return te(pe+"Hours",0);case d:return te(pe+"Minutes",1);case l:return te(pe+"Seconds",2);case s:return te(pe+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(V){return this.startOf(V,!1)},Y.$set=function(V,Z){var W,se=_.p(V),K="set"+(this.$u?"UTC":""),$=(W={},W[u]=K+"Date",W[v]=K+"Date",W[g]=K+"Month",W[m]=K+"FullYear",W[d]=K+"Hours",W[l]=K+"Minutes",W[s]=K+"Seconds",W[i]=K+"Milliseconds",W)[se],te=se===u?this.$D+(Z-this.$W):Z;if(se===g||se===m){var oe=this.clone().set(v,1);oe.$d[$](te),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else $&&this.$d[$](te);return this.init(),this},Y.set=function(V,Z){return this.clone().$set(V,Z)},Y.get=function(V){return this[_.p(V)]()},Y.add=function(V,Z){var W,se=this;V=Number(V);var K=_.p(Z),$=function(Q){var de=k(se);return _.w(de.date(de.date()+Math.round(Q*V)),se)};if(K===g)return this.set(g,this.$M+V);if(K===m)return this.set(m,this.$y+V);if(K===u)return $(1);if(K===p)return $(7);var te=(W={},W[l]=r,W[d]=o,W[s]=n,W)[K]||1,oe=this.$d.getTime()+V*te;return _.w(oe,this)},Y.subtract=function(V,Z){return this.add(-1*V,Z)},Y.format=function(V){var Z=this,W=this.$locale();if(!this.isValid())return W.invalidDate||b;var se=V||"YYYY-MM-DDTHH:mm:ssZ",K=_.z(this),$=this.$H,te=this.$m,oe=this.$M,Q=W.weekdays,de=W.months,pe=W.meridiem,ye=function(Ce,Ee,me,Re){return Ce&&(Ce[Ee]||Ce(Z,se))||me[Ee].slice(0,Re)},ce=function(Ce){return _.s($%12||12,Ce,"0")},be=pe||function(Ce,Ee,me){var Re=Ce<12?"AM":"PM";return me?Re.toLowerCase():Re};return se.replace(S,function(Ce,Ee){return Ee||function(me){switch(me){case"YY":return String(Z.$y).slice(-2);case"YYYY":return _.s(Z.$y,4,"0");case"M":return oe+1;case"MM":return _.s(oe+1,2,"0");case"MMM":return ye(W.monthsShort,oe,de,3);case"MMMM":return ye(de,oe);case"D":return Z.$D;case"DD":return _.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return ye(W.weekdaysMin,Z.$W,Q,2);case"ddd":return ye(W.weekdaysShort,Z.$W,Q,3);case"dddd":return Q[Z.$W];case"H":return String($);case"HH":return _.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return be($,te,!0);case"A":return be($,te,!1);case"m":return String(te);case"mm":return _.s(te,2,"0");case"s":return String(Z.$s);case"ss":return _.s(Z.$s,2,"0");case"SSS":return _.s(Z.$ms,3,"0");case"Z":return K}return null}(Ce)||K.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(V,Z,W){var se,K=this,$=_.p(Z),te=k(V),oe=(te.utcOffset()-this.utcOffset())*r,Q=this-te,de=function(){return _.m(K,te)};switch($){case m:se=de()/12;break;case g:se=de();break;case h:se=de()/3;break;case p:se=(Q-oe)/6048e5;break;case u:se=(Q-oe)/864e5;break;case d:se=Q/o;break;case l:se=Q/r;break;case s:se=Q/n;break;default:se=Q}return W?se:_.a(se)},Y.daysInMonth=function(){return this.endOf(g).$D},Y.$locale=function(){return M[this.$L]},Y.locale=function(V,Z){if(!V)return this.$L;var W=this.clone(),se=N(V,Z,!0);return se&&(W.$L=se),W},Y.clone=function(){return _.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},G}(),H=U.prototype;return k.prototype=H,[["$ms",i],["$s",s],["$m",l],["$H",d],["$W",u],["$M",g],["$y",m],["$D",v]].forEach(function(G){H[G[1]]=function(Y){return this.$g(Y,G[0],G[1])}}),k.extend=function(G,Y){return G.$i||(G(Y,U,k),G.$i=!0),k},k.locale=N,k.isDayjs=D,k.unix=function(G){return k(1e3*G)},k.en=M[P],k.Ls=M,k.p={},k})})(FC);var LC=FC.exports;const Br=Nr(LC);function BC(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Br().hour(n).minute(r)}const fl=new kC;function vre(e,t,n){return function(r){const o=J.isFunction(r)?r(t):r;return fl.set(e,o),n(o),o}}function dp(e,t){var d;Bn().required().validateSync(e);const[n,r]=O.useState(fl.get(e)??t),o=O.useRef(t),i=J.isEqual(o.current,t)?o.current:t,s=O.useRef(),l=s.current;return O.useEffect(()=>{r(fl.get(e)??i)},[e,i,r]),O.useEffect(()=>{function u(p){r(p)}return fl.watch(e,u),()=>{fl.unwatch(e,u)}},[e,r]),(e!==(l==null?void 0:l.key)||!J.isEqual(n,l==null?void 0:l.value))&&(s.current={key:e,value:n,setter:vre(e,n,r)}),[n,((d=s.current)==null?void 0:d.setter)??J.noop]}function NC(e){const[t]=ne.useLocaleState();return e!==void 0?String(e):t}function yre(e,t){const n=NC(t==null?void 0:t.locale);return up(e,n,t)}function bre(e){const t=NC(e==null?void 0:e.locale);return O.useCallback(r=>up(r,t,e),[t,e])}function $C(e){if(!J.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=O.useState(e);return O.useEffect(()=>{J.isEqual(e,t)||n(e)},[e,t]),t}function Ta(){const[e,t]=O.useState(null),n=!!e,r=O.useCallback(s=>t((s==null?void 0:s.currentTarget)??null),[t]),o=O.useCallback(()=>t(null),[t]),i=O.useCallback(s=>{n?o():r(s)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function Cre(e,t){const[n,r]=O.useState({width:1,height:1}),o=e.current;return O.useEffect(()=>{function i(){var u;let l=0,d=0;switch(t){case"client":l=(o==null?void 0:o.clientWidth)??0,d=(o==null?void 0:o.clientHeight)??0;break;case"offset":l=(o==null?void 0:o.offsetWidth)??0,d=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":l=(o==null?void 0:o.scrollWidth)??0,d=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((u=e.current)==null?void 0:u.getBoundingClientRect())??{width:0,height:0};l=p.width,d=p.height;break}}r({width:l,height:d})}const s=new ResizeObserver(i);return J.isEmpty(e==null?void 0:e.current)||(s.observe(e==null?void 0:e.current),i()),()=>{s.disconnect()}},[o,t,e]),n}function fp(e){const t=z.useRecordContext(),n=z.useTranslate(),r=z.useResourceContext(),o=t!=null&&t.id?"edit":"create";return O.useMemo(()=>{if(e===!1)return;const s=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(s,{_:s}),...t})},[o,t,r,n,e])}const pl=new DC;function xre(e,t,n){return function(r){const o=J.isFunction(r)?r(t):r;return pl.set(e,o),n(o),o}}function B0(e,t){var d;Bn().required().validateSync(e);const[n,r]=O.useState(pl.get(e)??t),o=O.useRef(t),i=J.isEqual(o.current,t)?o.current:t,s=O.useRef(),l=s.current;return O.useEffect(()=>{r(pl.get(e)??i)},[e,i,r]),O.useEffect(()=>{function u(p){r(p)}return pl.watch(e,u),()=>{pl.unwatch(e,u)}},[e,r]),(e!==(l==null?void 0:l.key)||!J.isEqual(n,l==null?void 0:l.value))&&(s.current={key:e,value:n,setter:xre(e,n,r)}),[n,((d=s.current)==null?void 0:d.setter)??J.noop]}function VC(){const{mode:e}=jn(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=O.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=O.useRef(n);return O.useEffect(()=>{function i(){const l=t.matches?"dark":"light";l!==o.current&&(r(l),o.current=l)}i();const s=t;return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}},[t]),n}function zC(e){const[t,n]=O.useState(e??_0());return O.useEffect(()=>{n(e??_0())},[e]),t}function Gr(){throw new Error("Method must be implemented")}const WC={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:Gr,setMenuOrientation:Gr,setMiniDrawer:Gr,setContainer:Gr,setMode:Gr,setPresetColor:Gr,setThemeDirection:Gr,setAppDefaultPath:Gr,setDrawerWidth:Gr,setHorizontalMaxItems:Gr,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function wre(e){return e==="vertical"}function Sre(e){return e==="horizontal"}const pp=O.createContext(WC);function N0({initialConfig:e,children:t}){const[n,r]=dp("theme-config",{...WC,...e});function o(v){r(b=>({...b,fontFamily:v}))}function i(v){r(b=>({...b,menuOrientation:v}))}function s(v){r(b=>({...b,miniDrawer:v}))}function l(v){r(b=>({...b,container:v}))}function d(v){r(b=>({...b,mode:v}))}function u(v){r(b=>({...b,presetColor:v}))}function p(v){r(b=>({...b,themeDirection:v}))}function g(v){r(b=>({...b,appDefaultPath:v}))}function h(v){r(b=>({...b,drawerWidth:v}))}function m(v){r(b=>({...b,horizontalMaxItems:v}))}return f.jsx(pp.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:s,setContainer:l,setMode:d,setPresetColor:u,setThemeDirection:p,setAppDefaultPath:g,setDrawerWidth:h,setHorizontalMaxItems:m,isVerticalLayout:wre,isHorizontalLayout:Sre},children:t})}function hp(){return O.useContext(pp)}function jn(){return hp()}const Are=a1(z.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 gi(e){return f.jsx(Are,{...e})}function UC({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=jn();return f.jsx(Tre,{defaultValues:n,spacing:t||o,children:f.jsx(E.Grid,{container:!0,...r,spacing:t||o,children:e})})}function Ere({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:s=12,md:l=12,sm:d=12,xs:u=12,...p}){const g=z.useTranslate(),h=z.useResourceContext(),{cardTitle:m,cardSubheader:v}=O.useMemo(()=>{const b=n||`resources.${h}.title`;return{cardTitle:g(b,{_:b}),cardSubheader:r!==null?g(r,{_:r}):null}},[h,r,n,g]);return f.jsx(E.Grid,{item:!0,...p,lg:s,md:l,sm:d,xs:u,children:f.jsx(Nn,{content:t,title:m,subheader:v,secondary:o,divider:!0,children:f.jsxs(f.Fragment,{children:[e,i===!0?f.jsx(gi,{children:f.jsx(z.SaveButton,{})}):i]})})})}const Tre=ge(z.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"}}));UC.Section=Ere;function HC(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=jre,label:s="ra.action.delete",mutationMode:l="pessimistic",mutationOptions:d={},onClick:u,onSuccess:p,onError:g,...h}=e,{meta:m,...v}=d,{selectedIds:b,onUnselectItems:x}=ne.useListContext(e),[S,I]=ne.useSafeSetState(!1),w=ne.useNotify(),T=ne.useResourceContext(e),P=ne.useRefresh(),M=ne.useTranslate(),j=wt(),[D,{isLoading:N}]=ne.useDeleteMany(T,{ids:b,meta:m},{onSuccess:()=>{P(),w("ra.notification.deleted",{type:"info",messageArgs:{smart_count:b.length},undoable:l==="undoable"}),x(),I(!1),p&&J.isFunction(p)&&p()},onError:H=>{w(typeof H=="string"?H:H.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof H=="string"?H:H&&H.message?H.message:void 0}}),I(!1),g&&J.isFunction(g)&&g()},mutationMode:l,...v});function k(H){I(!0),H.stopPropagation()}function _(){I(!1)}function U(H){D(),typeof u=="function"&&u(H)}return f.jsxs(f.Fragment,{children:[f.jsx(Pre,{onClick:k,label:s,...Ire(h),children:i}),f.jsx(z.Confirm,{isOpen:S,loading:N,sx:o||{"& .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:t?typeof t=="string"?M(t):t:f.jsx(E.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(E.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(He.DeleteFilled,{})})}),content:n||f.jsx(E.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:M("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:b.length,name:M(`resources.${T}.forcedCaseName`,{smart_count:b.length,_:ei.humanize(M(`resources.${T}.name`,{smart_count:b.length,_:ei.inflect(T,b.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:b.length,name:M(`resources.${T}.forcedCaseName`,{smart_count:b.length,_:ei.humanize(M(`resources.${T}.name`,{smart_count:b.length,_:ei.inflect(T,b.length)}),!0)})},onConfirm:U,onClose:_})]})}function Ire({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const Ore="RaBulkDeleteWithConfirmButton",Pre=ge(z.Button,{name:Ore,overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:nt(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),jre=f.jsx(D2,{});HC.propTypes={confirmTitle:C.node,confirmContent:C.node,confirmColor:C.string,dialogSx:C.object,icon:C.element,label:C.string,mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),resource:C.string,selectedIds:C.arrayOf(C.any),onSuccess:C.func,onError:C.func};const Rre="RaButton";function Mre(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 kre=ge(E.Button,{name:Rre,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function os(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:s,disabled:l,alignIcon:d,to:u,...p}=e,g=z.useTranslate(),h=Mre(u);if(t){const m=n?g(n,{_:n}):void 0;return f.jsx(kre,{className:o,color:i,size:s,"aria-label":m,disabled:l,startIcon:d==="left"&&r?r:void 0,endIcon:d==="right"&&r?r:void 0,...h,...p,children:m})}return f.jsx(z.Button,{...e})}function GC(e){const{className:t,icon:n=_re,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:s,to:l,state:d={},disableFloatingButton:u=!1,...p}=e,g=ne.useResourceContext(e),h=ne.useCreatePath(),m=ne.useTranslate(),v=E.useMediaQuery(S=>S.breakpoints.down("md")),b=Eb({},Dre.get(String(i)),d),x=Nre(l);return!u&&v?f.jsx(Fre,{component:ut.Link,to:h({resource:g,type:"create"}),state:b,color:"primary",className:$e(Du.floating,t),"aria-label":r?m(r):"ra.action.create",...p,...x,children:n}):f.jsx(Lre,{component:ut.Link,to:h({resource:g,type:"create"}),state:b,className:$e(Du.root,t),label:r,variant:s,...p,...x,children:n})}const _re=f.jsx(C2,{}),Dre=new Map([["true",{_scrollToTop:!0}],["false",{}]]);GC.propTypes={resource:C.string,className:C.string,icon:C.element,label:C.string};const _u="RaCreateButton",Du={root:`${_u}-root`,floating:`${_u}-floating`},Fre=ge(E.Fab,{name:_u,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${Du.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),Lre=ge(os,{name:_u,overridesResolver:(e,t)=>t.root})({});function Bre(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&Nl(e.to,t.to)&&Nl(e.state,t.state)}const qC=B.memo(GC,Bre);function Nre(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 gp(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 $re(e,t){return e&&e.data?{data:gp(e.data,t),total:e.total+1}:e}function Vre(e,t){return e&&e.length>0?gp(e,t):e}function zre(e,t){return e&&e.data?{...e,data:gp(e.data,t),total:e.total+1}:e}function Wre(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=f.jsx(He.PlusCircleOutlined,{}),...o}=e,i=O.useCallback(s=>{var l;s.preventDefault(),(l=e==null?void 0:e.onClick)==null||l.call(e)},[e]);return t?f.jsx(os,{...o,onClick:i,label:n,children:r}):f.jsx(kX,{...e,onClick:i,label:n,children:r})}function Ure(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=fn.useFormContext(),o=ne.useTranslate(),i=O.useCallback(s=>{s.preventDefault(),s.stopPropagation(),r(l=>t(l,n))()},[r,t,n]);return f.jsx(E.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function Hre(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:s,scroll:l="body",...d}=e,u=Hi.useQueryClient(),p=ne.useResourceContext(),g=ne.useTranslate(),h=O.Children.only(t),[m,v]=O.useState(!1),b=ne.useNotify(),x=O.useCallback(()=>v(!0),[]),S=O.useCallback(()=>v(!1),[]),I=O.useCallback((w,T,P)=>{var D,N;const j=Date.now();u.setQueryData([p,"getOne",{id:w.id}],w),u.setQueriesData([p,"getList"],k=>zre(k,w),{updatedAt:j}),u.setQueriesData([p,"getMany"],k=>Vre(k,w),{updatedAt:j}),u.setQueriesData([p,"getManyReference"],k=>$re(k,w),{updatedAt:j}),S(),b("ra.notification.created",{messageArgs:{smart_count:1}}),(N=(D=e==null?void 0:e.mutationOptions)==null?void 0:D.onSuccess)==null||N.call(D,w,T,P)},[S,b,e.mutationOptions,u,p]);return f.jsxs(f.Fragment,{children:[f.jsx(Wre,{...d,onClick:x}),f.jsx(E.Dialog,{open:m,scroll:l,onClose:S,maxWidth:n,fullWidth:r,fullScreen:o,children:f.jsx(E.DialogContent,{sx:{m:0,p:0},children:f.jsx(ne.CreateBase,{...e,mutationOptions:{...s,onSuccess:I},children:O.isValidElement(h)?O.cloneElement(h,{...h.props,modal:!0,toolbar:f.jsxs(gi,{children:[f.jsx(E.Button,{variant:"text",size:"medium",onClick:S,children:g("ra.action.cancel")}),i?f.jsx(Ure,{onSubmit:i,closeDialog:S}):f.jsx(X2,{type:"button"})]})}):null})})})]})}function is(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:s,icon:l=f.jsx(D2,{}),label:d="ra.action.delete",mutationMode:u="pessimistic",mutationOptions:p,onClick:g,redirect:h="list",translateOptions:m={},onConfirm:v,...b}=e,x=ne.useTranslate(),S=ne.useRecordContext(e),I=ne.useResourceContext(e),w=E.useTheme(),{open:T,isLoading:P,handleDialogOpen:M,handleDialogClose:j,handleDelete:D}=ne.useDeleteWithConfirmController({record:S,redirect:h,mutationMode:u,onClick:g,mutationOptions:p,resource:I}),N=O.useCallback(k=>{v?v():D(k)},[D,v]);return f.jsxs(f.Fragment,{children:[f.jsx(os,{onClick:M,label:d,className:$e("ra-delete-button",t),color:i,...b,children:l},"button"),f.jsx(Nb,{isOpen:T,loading:P,sx:s||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:w.palette.primary.main,color:w.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:w.palette.primary.dark},"&.Mui-disabled":{backgroundColor:w.palette.action.disabled,color:w.palette.primary.contrastText,outline:"none",boxShadow:"none",border:`1px solid ${w.palette.action.disabled}`}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${w.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?x(n):n:f.jsx(E.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(E.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(He.DeleteFilled,{})})}),content:f.jsx(E.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:r||x("ra.message.delete_content",{_:"ra.message.delete_content",name:x(`resources.${I}.forcedCaseName`,{smart_count:1,_:ei.humanize(x(`resources.${I}.name`,{smart_count:1,_:ei.singularize(I)}),!0)}),id:S==null?void 0:S.id})}),confirmColor:o,translateOptions:{name:x(`resources.${I}.forcedCaseName`,{smart_count:1,_:ei.humanize(x(`resources.${I}.name`,{smart_count:1,_:ei.singularize(I)}),!0)}),id:S==null?void 0:S.id,...m},onConfirm:N,onClose:j})]})}is.propTypes={basePath:C.string,className:C.string,confirmColor:C.string,confirmContent:C.oneOfType([C.string,C.element]),confirmTitle:C.oneOfType([C.string,C.element]),icon:C.element,label:C.string,mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),onClick:C.func,record:C.any,redirect:C.oneOfType([C.string,C.bool,C.func]),resource:C.string,translateOptions:C.object};function Gre(e){const t=O.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return f.jsx(Yb,{...e,onClick:t})}function qre(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=fn.useFormContext(),o=O.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(s=>t(s,n))()},[r,t,n]);return f.jsx(os,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function Yre(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:s,scroll:l="body",...d}=e,u=ne.useNotify(),[p,g]=O.useState(!1),h=O.Children.only(t),m=O.useCallback(()=>g(!0),[]),v=O.useCallback(()=>g(!1),[]),b=O.useCallback((S,I,w)=>{var T,P;v(),u("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(P=(T=e==null?void 0:e.mutationOptions)==null?void 0:T.onSuccess)==null||P.call(T,S,I,w)},[v,u,e.mutationOptions,e.mutationMode]),x=ne.useRecordContext();return f.jsxs(f.Fragment,{children:[f.jsx(Gre,{...d,onClick:m}),f.jsx(E.Dialog,{open:p,scroll:l,onClose:v,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:f.jsx(E.DialogContent,{sx:{m:0,p:0},children:f.jsx(ne.EditBase,{...e,id:x.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:b},children:O.isValidElement(h)?O.cloneElement(h,{...h.props,modal:!0,toolbar:f.jsxs(gi,{children:[f.jsx(os,{disableIconOnly:!0,variant:"text",size:"medium",onClick:v,label:"ra.action.cancel"}),s?f.jsx(qre,{onSubmit:s,closeDialog:v}):f.jsx(X2,{type:"button"})]})}):null})})})]})}var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kre={exports:{}},M5={exports:{}},k5;function rt(){return k5||(k5=1,function(e,t){(function(n,r){e.exports=r()})(et,function(){var n=n||function(r,o){var i=Object.create||function(){function x(){}return function(S){var I;return x.prototype=S,I=new x,x.prototype=null,I}}(),s={},l=s.lib={},d=l.Base=function(){return{extend:function(x){var S=i(this);return x&&S.mixIn(x),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var S in x)x.hasOwnProperty(S)&&(this[S]=x[S]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=d.extend({init:function(x,S){x=this.words=x||[],S!=o?this.sigBytes=S:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var S=this.words,I=x.words,w=this.sigBytes,T=x.sigBytes;if(this.clamp(),w%4)for(var P=0;P<T;P++){var M=I[P>>>2]>>>24-P%4*8&255;S[w+P>>>2]|=M<<24-(w+P)%4*8}else for(var P=0;P<T;P+=4)S[w+P>>>2]=I[P>>>2];return this.sigBytes+=T,this},clamp:function(){var x=this.words,S=this.sigBytes;x[S>>>2]&=4294967295<<32-S%4*8,x.length=r.ceil(S/4)},clone:function(){var x=d.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var S=[],I=function(j){var j=j,D=987654321,N=4294967295;return function(){D=36969*(D&65535)+(D>>16)&N,j=18e3*(j&65535)+(j>>16)&N;var k=(D<<16)+j&N;return k/=4294967296,k+=.5,k*(r.random()>.5?1:-1)}},w=0,T;w<x;w+=4){var P=I((T||r.random())*4294967296);T=P()*987654071,S.push(P()*4294967296|0)}return new u.init(S,x)}}),p=s.enc={},g=p.Hex={stringify:function(x){for(var S=x.words,I=x.sigBytes,w=[],T=0;T<I;T++){var P=S[T>>>2]>>>24-T%4*8&255;w.push((P>>>4).toString(16)),w.push((P&15).toString(16))}return w.join("")},parse:function(x){for(var S=x.length,I=[],w=0;w<S;w+=2)I[w>>>3]|=parseInt(x.substr(w,2),16)<<24-w%8*4;return new u.init(I,S/2)}},h=p.Latin1={stringify:function(x){for(var S=x.words,I=x.sigBytes,w=[],T=0;T<I;T++){var P=S[T>>>2]>>>24-T%4*8&255;w.push(String.fromCharCode(P))}return w.join("")},parse:function(x){for(var S=x.length,I=[],w=0;w<S;w++)I[w>>>2]|=(x.charCodeAt(w)&255)<<24-w%4*8;return new u.init(I,S)}},m=p.Utf8={stringify:function(x){try{return decodeURIComponent(escape(h.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return h.parse(unescape(encodeURIComponent(x)))}},v=l.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=m.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var S=this._data,I=S.words,w=S.sigBytes,T=this.blockSize,P=T*4,M=w/P;x?M=r.ceil(M):M=r.max((M|0)-this._minBufferSize,0);var j=M*T,D=r.min(j*4,w);if(j){for(var N=0;N<j;N+=T)this._doProcessBlock(I,N);var k=I.splice(0,j);S.sigBytes-=D}return new u.init(k,D)},clone:function(){var x=d.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});l.Hasher=v.extend({cfg:d.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(x){return function(S,I){return new x.init(I).finalize(S)}},_createHmacHelper:function(x){return function(S,I){return new b.HMAC.init(x,I).finalize(S)}}});var b=s.algo={};return s}(Math);return n})}(M5)),M5.exports}var _5={exports:{}},D5;function M3(){return D5||(D5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.Base,l=i.WordArray,d=o.x64={};d.Word=s.extend({init:function(u,p){this.high=u,this.low=p}}),d.WordArray=s.extend({init:function(u,p){u=this.words=u||[],p!=r?this.sigBytes=p:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,p=u.length,g=[],h=0;h<p;h++){var m=u[h];g.push(m.high),g.push(m.low)}return l.create(g,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),p=u.words=this.words.slice(0),g=p.length,h=0;h<g;h++)p[h]=p[h].clone();return u}})}(),n})}(_5)),_5.exports}var F5={exports:{}},L5;function Zre(){return L5||(L5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var u=d.byteLength,p=[],g=0;g<u;g++)p[g>>>2]|=d[g]<<24-g%4*8;s.call(this,p,u)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(F5)),F5.exports}var B5={exports:{}},N5;function Xre(){return N5||(N5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var u=d.words,p=d.sigBytes,g=[],h=0;h<p;h+=2){var m=u[h>>>2]>>>16-h%4*8&65535;g.push(String.fromCharCode(m))}return g.join("")},parse:function(d){for(var u=d.length,p=[],g=0;g<u;g++)p[g>>>1]|=d.charCodeAt(g)<<16-g%2*16;return i.create(p,u*2)}},s.Utf16LE={stringify:function(d){for(var u=d.words,p=d.sigBytes,g=[],h=0;h<p;h+=2){var m=l(u[h>>>2]>>>16-h%4*8&65535);g.push(String.fromCharCode(m))}return g.join("")},parse:function(d){for(var u=d.length,p=[],g=0;g<u;g++)p[g>>>1]|=l(d.charCodeAt(g)<<16-g%2*16);return i.create(p,u*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(B5)),B5.exports}var $5={exports:{}},V5;function Ia(){return V5||(V5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Base64={stringify:function(d){var u=d.words,p=d.sigBytes,g=this._map;d.clamp();for(var h=[],m=0;m<p;m+=3)for(var v=u[m>>>2]>>>24-m%4*8&255,b=u[m+1>>>2]>>>24-(m+1)%4*8&255,x=u[m+2>>>2]>>>24-(m+2)%4*8&255,S=v<<16|b<<8|x,I=0;I<4&&m+I*.75<p;I++)h.push(g.charAt(S>>>6*(3-I)&63));var w=g.charAt(64);if(w)for(;h.length%4;)h.push(w);return h.join("")},parse:function(d){var u=d.length,p=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var h=0;h<p.length;h++)g[p.charCodeAt(h)]=h}var m=p.charAt(64);if(m){var v=d.indexOf(m);v!==-1&&(u=v)}return l(d,u,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,u,p){for(var g=[],h=0,m=0;m<u;m++)if(m%4){var v=p[d.charCodeAt(m-1)]<<m%4*2,b=p[d.charCodeAt(m)]>>>6-m%4*2;g[h>>>2]|=(v|b)<<24-h%4*8,h++}return i.create(g,h)}}(),n.enc.Base64})}($5)),$5.exports}var z5={exports:{}},W5;function Oa(){return W5||(W5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.algo,u=[];(function(){for(var b=0;b<64;b++)u[b]=r.abs(r.sin(b+1))*4294967296|0})();var p=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,x){for(var S=0;S<16;S++){var I=x+S,w=b[I];b[I]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var T=this._hash.words,P=b[x+0],M=b[x+1],j=b[x+2],D=b[x+3],N=b[x+4],k=b[x+5],_=b[x+6],U=b[x+7],H=b[x+8],G=b[x+9],Y=b[x+10],V=b[x+11],Z=b[x+12],W=b[x+13],se=b[x+14],K=b[x+15],$=T[0],te=T[1],oe=T[2],Q=T[3];$=g($,te,oe,Q,P,7,u[0]),Q=g(Q,$,te,oe,M,12,u[1]),oe=g(oe,Q,$,te,j,17,u[2]),te=g(te,oe,Q,$,D,22,u[3]),$=g($,te,oe,Q,N,7,u[4]),Q=g(Q,$,te,oe,k,12,u[5]),oe=g(oe,Q,$,te,_,17,u[6]),te=g(te,oe,Q,$,U,22,u[7]),$=g($,te,oe,Q,H,7,u[8]),Q=g(Q,$,te,oe,G,12,u[9]),oe=g(oe,Q,$,te,Y,17,u[10]),te=g(te,oe,Q,$,V,22,u[11]),$=g($,te,oe,Q,Z,7,u[12]),Q=g(Q,$,te,oe,W,12,u[13]),oe=g(oe,Q,$,te,se,17,u[14]),te=g(te,oe,Q,$,K,22,u[15]),$=h($,te,oe,Q,M,5,u[16]),Q=h(Q,$,te,oe,_,9,u[17]),oe=h(oe,Q,$,te,V,14,u[18]),te=h(te,oe,Q,$,P,20,u[19]),$=h($,te,oe,Q,k,5,u[20]),Q=h(Q,$,te,oe,Y,9,u[21]),oe=h(oe,Q,$,te,K,14,u[22]),te=h(te,oe,Q,$,N,20,u[23]),$=h($,te,oe,Q,G,5,u[24]),Q=h(Q,$,te,oe,se,9,u[25]),oe=h(oe,Q,$,te,D,14,u[26]),te=h(te,oe,Q,$,H,20,u[27]),$=h($,te,oe,Q,W,5,u[28]),Q=h(Q,$,te,oe,j,9,u[29]),oe=h(oe,Q,$,te,U,14,u[30]),te=h(te,oe,Q,$,Z,20,u[31]),$=m($,te,oe,Q,k,4,u[32]),Q=m(Q,$,te,oe,H,11,u[33]),oe=m(oe,Q,$,te,V,16,u[34]),te=m(te,oe,Q,$,se,23,u[35]),$=m($,te,oe,Q,M,4,u[36]),Q=m(Q,$,te,oe,N,11,u[37]),oe=m(oe,Q,$,te,U,16,u[38]),te=m(te,oe,Q,$,Y,23,u[39]),$=m($,te,oe,Q,W,4,u[40]),Q=m(Q,$,te,oe,P,11,u[41]),oe=m(oe,Q,$,te,D,16,u[42]),te=m(te,oe,Q,$,_,23,u[43]),$=m($,te,oe,Q,G,4,u[44]),Q=m(Q,$,te,oe,Z,11,u[45]),oe=m(oe,Q,$,te,K,16,u[46]),te=m(te,oe,Q,$,j,23,u[47]),$=v($,te,oe,Q,P,6,u[48]),Q=v(Q,$,te,oe,U,10,u[49]),oe=v(oe,Q,$,te,se,15,u[50]),te=v(te,oe,Q,$,k,21,u[51]),$=v($,te,oe,Q,Z,6,u[52]),Q=v(Q,$,te,oe,D,10,u[53]),oe=v(oe,Q,$,te,Y,15,u[54]),te=v(te,oe,Q,$,M,21,u[55]),$=v($,te,oe,Q,H,6,u[56]),Q=v(Q,$,te,oe,K,10,u[57]),oe=v(oe,Q,$,te,_,15,u[58]),te=v(te,oe,Q,$,W,21,u[59]),$=v($,te,oe,Q,N,6,u[60]),Q=v(Q,$,te,oe,V,10,u[61]),oe=v(oe,Q,$,te,j,15,u[62]),te=v(te,oe,Q,$,G,21,u[63]),T[0]=T[0]+$|0,T[1]=T[1]+te|0,T[2]=T[2]+oe|0,T[3]=T[3]+Q|0},_doFinalize:function(){var b=this._data,x=b.words,S=this._nDataBytes*8,I=b.sigBytes*8;x[I>>>5]|=128<<24-I%32;var w=r.floor(S/4294967296),T=S;x[(I+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,x[(I+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,b.sigBytes=(x.length+1)*4,this._process();for(var P=this._hash,M=P.words,j=0;j<4;j++){var D=M[j];M[j]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return P},clone:function(){var b=l.clone.call(this);return b._hash=this._hash.clone(),b}});function g(b,x,S,I,w,T,P){var M=b+(x&S|~x&I)+w+P;return(M<<T|M>>>32-T)+x}function h(b,x,S,I,w,T,P){var M=b+(x&I|S&~I)+w+P;return(M<<T|M>>>32-T)+x}function m(b,x,S,I,w,T,P){var M=b+(x^S^I)+w+P;return(M<<T|M>>>32-T)+x}function v(b,x,S,I,w,T,P){var M=b+(S^(x|~I))+w+P;return(M<<T|M>>>32-T)+x}o.MD5=l._createHelper(p),o.HmacMD5=l._createHmacHelper(p)}(Math),n.MD5})}(z5)),z5.exports}var U5={exports:{}},H5;function mp(){return H5||(H5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=o.Hasher,l=r.algo,d=[],u=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,g){for(var h=this._hash.words,m=h[0],v=h[1],b=h[2],x=h[3],S=h[4],I=0;I<80;I++){if(I<16)d[I]=p[g+I]|0;else{var w=d[I-3]^d[I-8]^d[I-14]^d[I-16];d[I]=w<<1|w>>>31}var T=(m<<5|m>>>27)+S+d[I];I<20?T+=(v&b|~v&x)+1518500249:I<40?T+=(v^b^x)+1859775393:I<60?T+=(v&b|v&x|b&x)-1894007588:T+=(v^b^x)-899497514,S=x,x=b,b=v<<30|v>>>2,v=m,m=T}h[0]=h[0]+m|0,h[1]=h[1]+v|0,h[2]=h[2]+b|0,h[3]=h[3]+x|0,h[4]=h[4]+S|0},_doFinalize:function(){var p=this._data,g=p.words,h=this._nDataBytes*8,m=p.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=Math.floor(h/4294967296),g[(m+64>>>9<<4)+15]=h,p.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});r.SHA1=s._createHelper(u),r.HmacSHA1=s._createHmacHelper(u)}(),n.SHA1})}(U5)),U5.exports}var G5={exports:{}},q5;function YC(){return q5||(q5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.algo,u=[],p=[];(function(){function m(S){for(var I=r.sqrt(S),w=2;w<=I;w++)if(!(S%w))return!1;return!0}function v(S){return(S-(S|0))*4294967296|0}for(var b=2,x=0;x<64;)m(b)&&(x<8&&(u[x]=v(r.pow(b,1/2))),p[x]=v(r.pow(b,1/3)),x++),b++})();var g=[],h=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(m,v){for(var b=this._hash.words,x=b[0],S=b[1],I=b[2],w=b[3],T=b[4],P=b[5],M=b[6],j=b[7],D=0;D<64;D++){if(D<16)g[D]=m[v+D]|0;else{var N=g[D-15],k=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,_=g[D-2],U=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;g[D]=k+g[D-7]+U+g[D-16]}var H=T&P^~T&M,G=x&S^x&I^S&I,Y=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),V=(T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25),Z=j+V+H+p[D]+g[D],W=Y+G;j=M,M=P,P=T,T=w+Z|0,w=I,I=S,S=x,x=Z+W|0}b[0]=b[0]+x|0,b[1]=b[1]+S|0,b[2]=b[2]+I|0,b[3]=b[3]+w|0,b[4]=b[4]+T|0,b[5]=b[5]+P|0,b[6]=b[6]+M|0,b[7]=b[7]+j|0},_doFinalize:function(){var m=this._data,v=m.words,b=this._nDataBytes*8,x=m.sigBytes*8;return v[x>>>5]|=128<<24-x%32,v[(x+64>>>9<<4)+14]=r.floor(b/4294967296),v[(x+64>>>9<<4)+15]=b,m.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=l._createHelper(h),o.HmacSHA256=l._createHmacHelper(h)}(Math),n.SHA256})}(G5)),G5.exports}var Y5={exports:{}},K5;function Qre(){return K5||(K5=1,function(e,t){(function(n,r,o){e.exports=r(rt(),YC())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=4,u}});r.SHA224=l._createHelper(d),r.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(Y5)),Y5.exports}var Z5={exports:{}},X5;function KC(){return X5||(X5=1,function(e,t){(function(n,r,o){e.exports=r(rt(),M3())})(et,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,s=r.x64,l=s.Word,d=s.WordArray,u=r.algo;function p(){return l.create.apply(l,arguments)}var g=[p(1116352408,3609767458),p(1899447441,602891725),p(3049323471,3964484399),p(3921009573,2173295548),p(961987163,4081628472),p(1508970993,3053834265),p(2453635748,2937671579),p(2870763221,3664609560),p(3624381080,2734883394),p(310598401,1164996542),p(607225278,1323610764),p(1426881987,3590304994),p(1925078388,4068182383),p(2162078206,991336113),p(2614888103,633803317),p(3248222580,3479774868),p(3835390401,2666613458),p(4022224774,944711139),p(264347078,2341262773),p(604807628,2007800933),p(770255983,1495990901),p(1249150122,1856431235),p(1555081692,3175218132),p(1996064986,2198950837),p(2554220882,3999719339),p(2821834349,766784016),p(2952996808,2566594879),p(3210313671,3203337956),p(3336571891,1034457026),p(3584528711,2466948901),p(113926993,3758326383),p(338241895,168717936),p(666307205,1188179964),p(773529912,1546045734),p(1294757372,1522805485),p(1396182291,2643833823),p(1695183700,2343527390),p(1986661051,1014477480),p(2177026350,1206759142),p(2456956037,344077627),p(2730485921,1290863460),p(2820302411,3158454273),p(3259730800,3505952657),p(3345764771,106217008),p(3516065817,3606008344),p(3600352804,1432725776),p(4094571909,1467031594),p(275423344,851169720),p(430227734,3100823752),p(506948616,1363258195),p(659060556,3750685593),p(883997877,3785050280),p(958139571,3318307427),p(1322822218,3812723403),p(1537002063,2003034995),p(1747873779,3602036899),p(1955562222,1575990012),p(2024104815,1125592928),p(2227730452,2716904306),p(2361852424,442776044),p(2428436474,593698344),p(2756734187,3733110249),p(3204031479,2999351573),p(3329325298,3815920427),p(3391569614,3928383900),p(3515267271,566280711),p(3940187606,3454069534),p(4118630271,4000239992),p(116418474,1914138554),p(174292421,2731055270),p(289380356,3203993006),p(460393269,320620315),p(685471733,587496836),p(852142971,1086792851),p(1017036298,365543100),p(1126000580,2618297676),p(1288033470,3409855158),p(1501505948,4234509866),p(1607167915,987167468),p(1816402316,1246189591)],h=[];(function(){for(var v=0;v<80;v++)h[v]=p()})();var m=u.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(v,b){for(var x=this._hash.words,S=x[0],I=x[1],w=x[2],T=x[3],P=x[4],M=x[5],j=x[6],D=x[7],N=S.high,k=S.low,_=I.high,U=I.low,H=w.high,G=w.low,Y=T.high,V=T.low,Z=P.high,W=P.low,se=M.high,K=M.low,$=j.high,te=j.low,oe=D.high,Q=D.low,de=N,pe=k,ye=_,ce=U,be=H,Ce=G,Ee=Y,me=V,Re=Z,ve=W,qe=se,Ft=K,bt=$,st=te,sn=oe,mt=Q,Ke=0;Ke<80;Ke++){var kt=h[Ke];if(Ke<16)var tt=kt.high=v[b+Ke*2]|0,ot=kt.low=v[b+Ke*2+1]|0;else{var St=h[Ke-15],Pe=St.high,je=St.low,Ie=(Pe>>>1|je<<31)^(Pe>>>8|je<<24)^Pe>>>7,xe=(je>>>1|Pe<<31)^(je>>>8|Pe<<24)^(je>>>7|Pe<<25),vt=h[Ke-2],Ct=vt.high,De=vt.low,Oe=(Ct>>>19|De<<13)^(Ct<<3|De>>>29)^Ct>>>6,Yt=(De>>>19|Ct<<13)^(De<<3|Ct>>>29)^(De>>>6|Ct<<26),Sn=h[Ke-7],Hn=Sn.high,ao=Sn.low,yi=h[Ke-16],Ma=yi.high,ls=yi.low,ot=xe+ao,tt=Ie+Hn+(ot>>>0<xe>>>0?1:0),ot=ot+Yt,tt=tt+Oe+(ot>>>0<Yt>>>0?1:0),ot=ot+ls,tt=tt+Ma+(ot>>>0<ls>>>0?1:0);kt.high=tt,kt.low=ot}var cs=Re&qe^~Re&bt,_o=ve&Ft^~ve&st,us=de&ye^de&be^ye&be,ds=pe&ce^pe&Ce^ce&Ce,fs=(de>>>28|pe<<4)^(de<<30|pe>>>2)^(de<<25|pe>>>7),ps=(pe>>>28|de<<4)^(pe<<30|de>>>2)^(pe<<25|de>>>7),hs=(Re>>>14|ve<<18)^(Re>>>18|ve<<14)^(Re<<23|ve>>>9),ka=(ve>>>14|Re<<18)^(ve>>>18|Re<<14)^(ve<<23|Re>>>9),Do=g[Ke],_a=Do.high,ar=Do.low,en=mt+ka,Tt=sn+hs+(en>>>0<mt>>>0?1:0),en=en+_o,Tt=Tt+cs+(en>>>0<_o>>>0?1:0),en=en+ar,Tt=Tt+_a+(en>>>0<ar>>>0?1:0),en=en+ot,Tt=Tt+tt+(en>>>0<ot>>>0?1:0),Vr=ps+ds,Da=fs+us+(Vr>>>0<ps>>>0?1:0);sn=bt,mt=st,bt=qe,st=Ft,qe=Re,Ft=ve,ve=me+en|0,Re=Ee+Tt+(ve>>>0<me>>>0?1:0)|0,Ee=be,me=Ce,be=ye,Ce=ce,ye=de,ce=pe,pe=en+Vr|0,de=Tt+Da+(pe>>>0<en>>>0?1:0)|0}k=S.low=k+pe,S.high=N+de+(k>>>0<pe>>>0?1:0),U=I.low=U+ce,I.high=_+ye+(U>>>0<ce>>>0?1:0),G=w.low=G+Ce,w.high=H+be+(G>>>0<Ce>>>0?1:0),V=T.low=V+me,T.high=Y+Ee+(V>>>0<me>>>0?1:0),W=P.low=W+ve,P.high=Z+Re+(W>>>0<ve>>>0?1:0),K=M.low=K+Ft,M.high=se+qe+(K>>>0<Ft>>>0?1:0),te=j.low=te+st,j.high=$+bt+(te>>>0<st>>>0?1:0),Q=D.low=Q+mt,D.high=oe+sn+(Q>>>0<mt>>>0?1:0)},_doFinalize:function(){var v=this._data,b=v.words,x=this._nDataBytes*8,S=v.sigBytes*8;b[S>>>5]|=128<<24-S%32,b[(S+128>>>10<<5)+30]=Math.floor(x/4294967296),b[(S+128>>>10<<5)+31]=x,v.sigBytes=b.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});r.SHA512=i._createHelper(m),r.HmacSHA512=i._createHmacHelper(m)}(),n.SHA512})}(Z5)),Z5.exports}var Q5={exports:{}},J5;function Jre(){return J5||(J5=1,function(e,t){(function(n,r,o){e.exports=r(rt(),M3(),KC())})(et,function(n){return function(){var r=n,o=r.x64,i=o.Word,s=o.WordArray,l=r.algo,d=l.SHA512,u=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var p=d._doFinalize.call(this);return p.sigBytes-=16,p}});r.SHA384=d._createHelper(u),r.HmacSHA384=d._createHmacHelper(u)}(),n.SHA384})}(Q5)),Q5.exports}var em={exports:{}},tm;function eoe(){return tm||(tm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),M3())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.x64,u=d.Word,p=o.algo,g=[],h=[],m=[];(function(){for(var x=1,S=0,I=0;I<24;I++){g[x+5*S]=(I+1)*(I+2)/2%64;var w=S%5,T=(2*x+3*S)%5;x=w,S=T}for(var x=0;x<5;x++)for(var S=0;S<5;S++)h[x+5*S]=S+(2*x+3*S)%5*5;for(var P=1,M=0;M<24;M++){for(var j=0,D=0,N=0;N<7;N++){if(P&1){var k=(1<<N)-1;k<32?D^=1<<k:j^=1<<k-32}P&128?P=P<<1^113:P<<=1}m[M]=u.create(j,D)}})();var v=[];(function(){for(var x=0;x<25;x++)v[x]=u.create()})();var b=p.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var x=this._state=[],S=0;S<25;S++)x[S]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(x,S){for(var I=this._state,w=this.blockSize/2,T=0;T<w;T++){var P=x[S+2*T],M=x[S+2*T+1];P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var j=I[T];j.high^=M,j.low^=P}for(var D=0;D<24;D++){for(var N=0;N<5;N++){for(var k=0,_=0,U=0;U<5;U++){var j=I[N+5*U];k^=j.high,_^=j.low}var H=v[N];H.high=k,H.low=_}for(var N=0;N<5;N++)for(var G=v[(N+4)%5],Y=v[(N+1)%5],V=Y.high,Z=Y.low,k=G.high^(V<<1|Z>>>31),_=G.low^(Z<<1|V>>>31),U=0;U<5;U++){var j=I[N+5*U];j.high^=k,j.low^=_}for(var W=1;W<25;W++){var j=I[W],se=j.high,K=j.low,$=g[W];if($<32)var k=se<<$|K>>>32-$,_=K<<$|se>>>32-$;else var k=K<<$-32|se>>>64-$,_=se<<$-32|K>>>64-$;var te=v[h[W]];te.high=k,te.low=_}var oe=v[0],Q=I[0];oe.high=Q.high,oe.low=Q.low;for(var N=0;N<5;N++)for(var U=0;U<5;U++){var W=N+5*U,j=I[W],de=v[W],pe=v[(N+1)%5+5*U],ye=v[(N+2)%5+5*U];j.high=de.high^~pe.high&ye.high,j.low=de.low^~pe.low&ye.low}var j=I[0],ce=m[D];j.high^=ce.high,j.low^=ce.low}},_doFinalize:function(){var x=this._data,S=x.words;this._nDataBytes*8;var I=x.sigBytes*8,w=this.blockSize*32;S[I>>>5]|=1<<24-I%32,S[(r.ceil((I+1)/w)*w>>>5)-1]|=128,x.sigBytes=S.length*4,this._process();for(var T=this._state,P=this.cfg.outputLength/8,M=P/8,j=[],D=0;D<M;D++){var N=T[D],k=N.high,_=N.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,j.push(_),j.push(k)}return new s.init(j,P)},clone:function(){for(var x=l.clone.call(this),S=x._state=this._state.slice(0),I=0;I<25;I++)S[I]=S[I].clone();return x}});o.SHA3=l._createHelper(b),o.HmacSHA3=l._createHmacHelper(b)}(Math),n.SHA3})}(em)),em.exports}var nm={exports:{}},rm;function toe(){return rm||(rm=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){/** @preserve
224
+ `+(l!==s?`result of cast: ${l}`:""))}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:s=t,strict:l=this.spec.strict}=n,d=t;l||(d=this._cast(d,Object.assign({assert:!1},n)));let u=[];for(let p of Object.values(this.internalTests))p&&u.push(p);this.runTests({path:i,value:d,originalValue:s,options:n,tests:u},r,p=>{if(p.length)return o(p,d);this.runTests({path:i,value:d,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:s,originalValue:l,path:d,options:u}=t,p=b=>{o||(o=!0,n(b,s))},g=b=>{o||(o=!0,r(b,s))},h=i.length,m=[];if(!h)return g([]);let v={value:s,originalValue:l,path:d,options:u,schema:this};for(let b=0;b<i.length;b++){const x=i[b];x(v,p,function(I){I&&(Array.isArray(I)?m.push(...I):m.push(I)),--h<=0&&g(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof l=="number";let u=r[l];const p=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:i[l],key:void 0,[d?"index":"key"]:l,path:d||l.includes(".")?`${o||""}[${d?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(g,h,m)=>this.resolve(p)._validate(u,p,h,m)}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((s,l)=>o._validate(t,n,(d,u)=>{Ln.isError(d)&&(d.value=u),l(d)},(d,u)=>{d.length?l(new Ln(d,u,void 0,void 0,i)):s(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,d)=>{throw Ln.isError(l)&&(l.value=d),l},(l,d)=>{if(l.length)throw new Ln(l,t,void 0,void 0,s);i=d}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Ln.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Ln.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Xs(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=Ds({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=Ds({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=qr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qr.notNull){return this.nullability(!1,t)}required(t=qr.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=qr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Ds(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(s=>!(s.OPTIONS.name===n.name&&(i||s.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=SC(t).map(i=>new rs(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Ru(o,n):Ru.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ds({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=qr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Ds({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(t,n=qr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Ds({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!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:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,u,p)=>p.findIndex(g=>g.name===d.name)===u)}}}Ir.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Ir.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:s}=Xne(this,t,n,r.context);return s[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Ir.prototype[e]=Ir.prototype.oneOf;for(const e of["not","nope"])Ir.prototype[e]=Ir.prototype.notOneOf;const Qne=()=>!0;function lp(e){return new IC(e)}class IC extends Ir{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Qne},t))}}lp.prototype=IC.prototype;const Jne=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ere(e){const t=L0(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 L0(e){var t,n;const r=Jne.exec(e);return r?{year:Co(r[1]),month:Co(r[2],1)-1,day:Co(r[3],1),hour:Co(r[4]),minute:Co(r[5]),second:Co(r[6]),millisecond:r[7]?Co(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:Co(r[10]),minuteOffset:Co(r[11])}:null}function Co(e,t=0){return Number(e)||t}let tre=/^[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])?)*$/,nre=/^((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,rre=/^(?:[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,ore="^\\d{4}-\\d{2}-\\d{2}",ire="\\d{2}:\\d{2}:\\d{2}",sre="(([+-]\\d{2}(:?\\d{2})?)|Z)",are=new RegExp(`${ore}T${ire}(\\.\\d+)?${sre}$`),lre=e=>Eo(e)||e===e.trim(),cre={}.toString();function Bn(){return new OC}class OC extends Ir{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===cre?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||qr.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=Fn.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=Fn.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=Fn.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||Fn.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=Fn.email){return this.matches(tre,{name:"email",message:t,excludeEmptyString:!0})}url(t=Fn.url){return this.matches(nre,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Fn.uuid){return this.matches(rre,{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(are,{name:"datetime",message:n||Fn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Fn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=L0(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||Fn.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=L0(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Fn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:lre})}lowercase(t=Fn.lowercase){return this.transform(n=>Eo(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Eo(n)||n===n.toLowerCase()})}uppercase(t=Fn.uppercase){return this.transform(n=>Eo(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Eo(n)||n===n.toUpperCase()})}}Bn.prototype=OC.prototype;let ure=e=>e!=+e;function PC(){return new jC}class jC extends Ir{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!ure(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=Zo.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=Zo.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=Zo.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=Zo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Zo.positive){return this.moreThan(0,t)}negative(t=Zo.negative){return this.lessThan(0,t)}integer(t=Zo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Eo(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=>Eo(o)?o:Math[t](o))}}PC.prototype=jC.prototype;let dre=new Date(""),fre=e=>Object.prototype.toString.call(e)==="[object Date]";class j3 extends Ir{constructor(){super({type:"date",check(t){return fre(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ere(t),isNaN(t)?j3.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(rs.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=F0.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=F0.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)}})}}j3.INVALID_DATE=dre;j3.prototype;function pre(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([s,l])=>`${s}-${l}`));function i(s,l){let d=qi.split(s)[0];r.add(d),o.has(`${l}-${d}`)||n.push([l,d])}for(const s of Object.keys(e)){let l=e[s];r.add(s),rs.isRef(l)&&l.isSibling?i(l.path,s):ap(l)&&"deps"in l&&l.deps.forEach(d=>i(d,s))}return $ne.array(Array.from(r),n).reverse()}function I5(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 RC(e){return(t,n)=>I5(e,t)-I5(e,n)}const hre=(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 Gc(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Gc(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Gc(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Gc)}):"optional"in e?e.optional():e}const gre=(e,t)=>{const n=[...qi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=qi.getter(qi.join(n),!0)(e);return!!(o&&r in o)};let O5=e=>Object.prototype.toString.call(e)==="[object Object]";function P5(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const mre=RC([]);function cp(e){return new MC(e)}class MC extends Ir{constructor(t){super({type:"object",check(n){return O5(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=mre,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,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),d={},u=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),p=!1;for(const g of l){let h=i[g],m=g in o;if(h){let v,b=o[g];u.path=(n.path?`${n.path}.`:"")+g,h=h.resolve({value:b,context:n.context,parent:d});let x=h instanceof Ir?h.spec:void 0,S=x==null?void 0:x.strict;if(x!=null&&x.strip){p=p||g in o;continue}v=!n.__validating||!S?h.cast(o[g],u):o[g],v!==void 0&&(d[g]=v)}else m&&!s&&(d[g]=o[g]);(m!==g in d||d[g]!==o[g])&&(p=!0)}return p?d:o}_validate(t,n={},r,o){let{from:i=[],originalValue:s=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(d,u)=>{if(!l||!O5(u)){o(d,u);return}s=s||u;let p=[];for(let g of this._nodes){let h=this.fields[g];!h||rs.isRef(h)||p.push(h.asNestedTest({options:n,key:g,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:p,value:u,originalValue:s,options:n},r,g=>{o(g.sort(this._sortErrors).concat(d),u)})})}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 s=r[o];r[o]=s===void 0?i:s}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 s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=pre(t,n),r._sortErrors=RC(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 Gc(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=qi.getter(t,!0);return this.transform(i=>{if(!i)return i;let s=i;return gre(i,t)&&(s=Object.assign({},i),r||delete s[t],s[n]=o(i)),s})}json(){return this.transform(hre)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Hc.exact,test(n){if(n==null)return!0;const r=P5(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Hc.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=P5(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Hc.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(Df.camelCase)}snakeCase(){return this.transformKeys(Df.snakeCase)}constantCase(){return this.transformKeys(t=>Df.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=s.describe(l)}return r}}cp.prototype=MC.prototype;const j5=lp().test("function","Invalid function",e=>J.isFunction(e));var Qo,zi,ul;class kC{constructor(){Dr(this,zi);Dr(this,Qo,[])}get(t){if(Bn().required().validateSync(t),yo(this,zi,ul).call(this)){const n=localStorage.getItem(t);return J.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return Bn().required().validateSync(t),yo(this,zi,ul).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){Bn().required().validateSync(t),j5.validateSync(n),yo(this,zi,ul).call(this)&&(cn(this,Qo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){Bn().required().validateSync(t),j5.optional().default(J.identity).validateSync(n),yo(this,zi,ul).call(this)&&(n!==void 0?Hr(this,Qo,J.reject(cn(this,Qo),r=>r.key===t&&r.callback===n)):Hr(this,Qo,J.reject(cn(this,Qo),r=>r.key===t)))}}Qo=new WeakMap,zi=new WeakSet,ul=function(){return typeof window<"u"};function ku(e={},t=[],n={}){const{isEmpty:r=J.isEmpty}=n;return!J.some(t,o=>r((e??{})[o.locale]))}function _C(e={},t=[],n={}){const{isEmpty:r=J.isEmpty}=n;return J.some(t,o=>!r((e??{})[o.locale]))}function up(e,t,n){if(!J.isPlainObject(e)||t===void 0)return;const r=J.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const s=J.isArray(r.fallbackLocales)&&!J.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=J.chain(s).map(l=>e[String(l)]).reject(J.isUndefined).first().value(),i===void 0&&(i=J.chain(e).values().first().value())}return i}function R3(e=[],t){const n=J.isArray(e)?e:[e],r=J.filter(n,o=>O.isValidElement(o));J.each(r,o=>{var i;t(o),R3(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}const R5=lp().test("function","Invalid function",e=>J.isFunction(e));var Jo,Wi,dl;class DC{constructor(){Dr(this,Wi);Dr(this,Jo,[])}get(t){if(Bn().required().validateSync(t),yo(this,Wi,dl).call(this)){const n=sessionStorage.getItem(t);return J.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return Bn().required().validateSync(t),yo(this,Wi,dl).call(this)?(sessionStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){Bn().required().validateSync(t),R5.validateSync(n),yo(this,Wi,dl).call(this)&&(cn(this,Jo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===sessionStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){Bn().required().validateSync(t),R5.optional().default(J.identity).validateSync(n),yo(this,Wi,dl).call(this)&&(n!==void 0?Hr(this,Jo,J.reject(cn(this,Jo),r=>r.key===t&&r.callback===n)):Hr(this,Jo,J.reject(cn(this,Jo),r=>r.key===t)))}}Jo=new WeakMap,Wi=new WeakSet,dl=function(){return typeof window<"u"};var FC={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",d="hour",u="day",p="week",g="month",h="quarter",m="year",v="date",b="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,I={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(G){var Y=["th","st","nd","rd"],V=G%100;return"["+G+(Y[(V-20)%10]||Y[V]||Y[0])+"]"}},w=function(G,Y,V){var Z=String(G);return!Z||Z.length>=Y?G:""+Array(Y+1-Z.length).join(V)+G},T={s:w,z:function(G){var Y=-G.utcOffset(),V=Math.abs(Y),Z=Math.floor(V/60),W=V%60;return(Y<=0?"+":"-")+w(Z,2,"0")+":"+w(W,2,"0")},m:function G(Y,V){if(Y.date()<V.date())return-G(V,Y);var Z=12*(V.year()-Y.year())+(V.month()-Y.month()),W=Y.clone().add(Z,g),se=V-W<0,K=Y.clone().add(Z+(se?-1:1),g);return+(-(Z+(V-W)/(se?W-K:K-W))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:g,y:m,w:p,d:u,D:v,h:d,m:l,s,ms:i,Q:h}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},P="en",M={};M[P]=I;var j="$isDayjsObject",_=function(G){return G instanceof U||!(!G||!G[j])},N=function G(Y,V,Z){var W;if(!Y)return P;if(typeof Y=="string"){var se=Y.toLowerCase();M[se]&&(W=se),V&&(M[se]=V,W=se);var K=Y.split("-");if(!W&&K.length>1)return G(K[0])}else{var $=Y.name;M[$]=Y,W=$}return!Z&&W&&(P=W),W||!Z&&P},k=function(G,Y){if(_(G))return G.clone();var V=typeof Y=="object"?Y:{};return V.date=G,V.args=arguments,new U(V)},D=T;D.l=N,D.i=_,D.w=function(G,Y){return k(G,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var U=function(){function G(V){this.$L=N(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[j]=!0}var Y=G.prototype;return Y.parse=function(V){this.$d=function(Z){var W=Z.date,se=Z.utc;if(W===null)return new Date(NaN);if(D.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var K=W.match(x);if(K){var $=K[2]-1||0,te=(K[7]||"0").substring(0,3);return se?new Date(Date.UTC(K[1],$,K[3]||1,K[4]||0,K[5]||0,K[6]||0,te)):new Date(K[1],$,K[3]||1,K[4]||0,K[5]||0,K[6]||0,te)}}return new Date(W)}(V),this.init()},Y.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()},Y.$utils=function(){return D},Y.isValid=function(){return this.$d.toString()!==b},Y.isSame=function(V,Z){var W=k(V);return this.startOf(Z)<=W&&W<=this.endOf(Z)},Y.isAfter=function(V,Z){return k(V)<this.startOf(Z)},Y.isBefore=function(V,Z){return this.endOf(Z)<k(V)},Y.$g=function(V,Z,W){return D.u(V)?this[Z]:this.set(W,V)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(V,Z){var W=this,se=!!D.u(Z)||Z,K=D.p(V),$=function(be,Ce){var Ee=D.w(W.$u?Date.UTC(W.$y,Ce,be):new Date(W.$y,Ce,be),W);return se?Ee:Ee.endOf(u)},te=function(be,Ce){return D.w(W.toDate()[be].apply(W.toDate("s"),(se?[0,0,0,0]:[23,59,59,999]).slice(Ce)),W)},oe=this.$W,Q=this.$M,de=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case m:return se?$(1,0):$(31,11);case g:return se?$(1,Q):$(0,Q+1);case p:var ye=this.$locale().weekStart||0,ce=(oe<ye?oe+7:oe)-ye;return $(se?de-ce:de+(6-ce),Q);case u:case v:return te(pe+"Hours",0);case d:return te(pe+"Minutes",1);case l:return te(pe+"Seconds",2);case s:return te(pe+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(V){return this.startOf(V,!1)},Y.$set=function(V,Z){var W,se=D.p(V),K="set"+(this.$u?"UTC":""),$=(W={},W[u]=K+"Date",W[v]=K+"Date",W[g]=K+"Month",W[m]=K+"FullYear",W[d]=K+"Hours",W[l]=K+"Minutes",W[s]=K+"Seconds",W[i]=K+"Milliseconds",W)[se],te=se===u?this.$D+(Z-this.$W):Z;if(se===g||se===m){var oe=this.clone().set(v,1);oe.$d[$](te),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else $&&this.$d[$](te);return this.init(),this},Y.set=function(V,Z){return this.clone().$set(V,Z)},Y.get=function(V){return this[D.p(V)]()},Y.add=function(V,Z){var W,se=this;V=Number(V);var K=D.p(Z),$=function(Q){var de=k(se);return D.w(de.date(de.date()+Math.round(Q*V)),se)};if(K===g)return this.set(g,this.$M+V);if(K===m)return this.set(m,this.$y+V);if(K===u)return $(1);if(K===p)return $(7);var te=(W={},W[l]=r,W[d]=o,W[s]=n,W)[K]||1,oe=this.$d.getTime()+V*te;return D.w(oe,this)},Y.subtract=function(V,Z){return this.add(-1*V,Z)},Y.format=function(V){var Z=this,W=this.$locale();if(!this.isValid())return W.invalidDate||b;var se=V||"YYYY-MM-DDTHH:mm:ssZ",K=D.z(this),$=this.$H,te=this.$m,oe=this.$M,Q=W.weekdays,de=W.months,pe=W.meridiem,ye=function(Ce,Ee,me,Re){return Ce&&(Ce[Ee]||Ce(Z,se))||me[Ee].slice(0,Re)},ce=function(Ce){return D.s($%12||12,Ce,"0")},be=pe||function(Ce,Ee,me){var Re=Ce<12?"AM":"PM";return me?Re.toLowerCase():Re};return se.replace(S,function(Ce,Ee){return Ee||function(me){switch(me){case"YY":return String(Z.$y).slice(-2);case"YYYY":return D.s(Z.$y,4,"0");case"M":return oe+1;case"MM":return D.s(oe+1,2,"0");case"MMM":return ye(W.monthsShort,oe,de,3);case"MMMM":return ye(de,oe);case"D":return Z.$D;case"DD":return D.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return ye(W.weekdaysMin,Z.$W,Q,2);case"ddd":return ye(W.weekdaysShort,Z.$W,Q,3);case"dddd":return Q[Z.$W];case"H":return String($);case"HH":return D.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return be($,te,!0);case"A":return be($,te,!1);case"m":return String(te);case"mm":return D.s(te,2,"0");case"s":return String(Z.$s);case"ss":return D.s(Z.$s,2,"0");case"SSS":return D.s(Z.$ms,3,"0");case"Z":return K}return null}(Ce)||K.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(V,Z,W){var se,K=this,$=D.p(Z),te=k(V),oe=(te.utcOffset()-this.utcOffset())*r,Q=this-te,de=function(){return D.m(K,te)};switch($){case m:se=de()/12;break;case g:se=de();break;case h:se=de()/3;break;case p:se=(Q-oe)/6048e5;break;case u:se=(Q-oe)/864e5;break;case d:se=Q/o;break;case l:se=Q/r;break;case s:se=Q/n;break;default:se=Q}return W?se:D.a(se)},Y.daysInMonth=function(){return this.endOf(g).$D},Y.$locale=function(){return M[this.$L]},Y.locale=function(V,Z){if(!V)return this.$L;var W=this.clone(),se=N(V,Z,!0);return se&&(W.$L=se),W},Y.clone=function(){return D.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},G}(),H=U.prototype;return k.prototype=H,[["$ms",i],["$s",s],["$m",l],["$H",d],["$W",u],["$M",g],["$y",m],["$D",v]].forEach(function(G){H[G[1]]=function(Y){return this.$g(Y,G[0],G[1])}}),k.extend=function(G,Y){return G.$i||(G(Y,U,k),G.$i=!0),k},k.locale=N,k.isDayjs=_,k.unix=function(G){return k(1e3*G)},k.en=M[P],k.Ls=M,k.p={},k})})(FC);var LC=FC.exports;const Br=Nr(LC);function BC(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Br().hour(n).minute(r)}const fl=new kC;function vre(e,t,n){return function(r){const o=J.isFunction(r)?r(t):r;return fl.set(e,o),n(o),o}}function dp(e,t){var d;Bn().required().validateSync(e);const[n,r]=O.useState(fl.get(e)??t),o=O.useRef(t),i=J.isEqual(o.current,t)?o.current:t,s=O.useRef(),l=s.current;return O.useEffect(()=>{r(fl.get(e)??i)},[e,i,r]),O.useEffect(()=>{function u(p){r(p)}return fl.watch(e,u),()=>{fl.unwatch(e,u)}},[e,r]),(e!==(l==null?void 0:l.key)||!J.isEqual(n,l==null?void 0:l.value))&&(s.current={key:e,value:n,setter:vre(e,n,r)}),[n,((d=s.current)==null?void 0:d.setter)??J.noop]}function NC(e){const[t]=ne.useLocaleState();return e!==void 0?String(e):t}function yre(e,t){const n=NC(t==null?void 0:t.locale);return up(e,n,t)}function bre(e){const t=NC(e==null?void 0:e.locale);return O.useCallback(r=>up(r,t,e),[t,e])}function $C(e){if(!J.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=O.useState(e);return O.useEffect(()=>{J.isEqual(e,t)||n(e)},[e,t]),t}function Ta(){const[e,t]=O.useState(null),n=!!e,r=O.useCallback(s=>t((s==null?void 0:s.currentTarget)??null),[t]),o=O.useCallback(()=>t(null),[t]),i=O.useCallback(s=>{n?o():r(s)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function Cre(e,t){const[n,r]=O.useState({width:1,height:1}),o=e.current;return O.useEffect(()=>{function i(){var u;let l=0,d=0;switch(t){case"client":l=(o==null?void 0:o.clientWidth)??0,d=(o==null?void 0:o.clientHeight)??0;break;case"offset":l=(o==null?void 0:o.offsetWidth)??0,d=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":l=(o==null?void 0:o.scrollWidth)??0,d=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((u=e.current)==null?void 0:u.getBoundingClientRect())??{width:0,height:0};l=p.width,d=p.height;break}}r({width:l,height:d})}const s=new ResizeObserver(i);return J.isEmpty(e==null?void 0:e.current)||(s.observe(e==null?void 0:e.current),i()),()=>{s.disconnect()}},[o,t,e]),n}function fp(e){const t=z.useRecordContext(),n=z.useTranslate(),r=z.useResourceContext(),o=t!=null&&t.id?"edit":"create";return O.useMemo(()=>{if(e===!1)return;const s=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(s,{_:s}),...t})},[o,t,r,n,e])}const pl=new DC;function xre(e,t,n){return function(r){const o=J.isFunction(r)?r(t):r;return pl.set(e,o),n(o),o}}function B0(e,t){var d;Bn().required().validateSync(e);const[n,r]=O.useState(pl.get(e)??t),o=O.useRef(t),i=J.isEqual(o.current,t)?o.current:t,s=O.useRef(),l=s.current;return O.useEffect(()=>{r(pl.get(e)??i)},[e,i,r]),O.useEffect(()=>{function u(p){r(p)}return pl.watch(e,u),()=>{pl.unwatch(e,u)}},[e,r]),(e!==(l==null?void 0:l.key)||!J.isEqual(n,l==null?void 0:l.value))&&(s.current={key:e,value:n,setter:xre(e,n,r)}),[n,((d=s.current)==null?void 0:d.setter)??J.noop]}function VC(){const{mode:e}=jn(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=O.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=O.useRef(n);return O.useEffect(()=>{function i(){const l=t.matches?"dark":"light";l!==o.current&&(r(l),o.current=l)}i();const s=t;return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}},[t]),n}function zC(e){const[t,n]=O.useState(e??_0());return O.useEffect(()=>{n(e??_0())},[e]),t}function Gr(){throw new Error("Method must be implemented")}const WC={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:Gr,setMenuOrientation:Gr,setMiniDrawer:Gr,setContainer:Gr,setMode:Gr,setPresetColor:Gr,setThemeDirection:Gr,setAppDefaultPath:Gr,setDrawerWidth:Gr,setHorizontalMaxItems:Gr,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function wre(e){return e==="vertical"}function Sre(e){return e==="horizontal"}const pp=O.createContext(WC);function N0({initialConfig:e,children:t}){const[n,r]=dp("theme-config",{...WC,...e});function o(v){r(b=>({...b,fontFamily:v}))}function i(v){r(b=>({...b,menuOrientation:v}))}function s(v){r(b=>({...b,miniDrawer:v}))}function l(v){r(b=>({...b,container:v}))}function d(v){r(b=>({...b,mode:v}))}function u(v){r(b=>({...b,presetColor:v}))}function p(v){r(b=>({...b,themeDirection:v}))}function g(v){r(b=>({...b,appDefaultPath:v}))}function h(v){r(b=>({...b,drawerWidth:v}))}function m(v){r(b=>({...b,horizontalMaxItems:v}))}return f.jsx(pp.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:s,setContainer:l,setMode:d,setPresetColor:u,setThemeDirection:p,setAppDefaultPath:g,setDrawerWidth:h,setHorizontalMaxItems:m,isVerticalLayout:wre,isHorizontalLayout:Sre},children:t})}function hp(){return O.useContext(pp)}function jn(){return hp()}const Are=a1(z.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 gi(e){return f.jsx(Are,{...e})}function UC({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=jn();return f.jsx(Tre,{defaultValues:n,spacing:t||o,children:f.jsx(E.Grid,{container:!0,...r,spacing:t||o,children:e})})}function Ere({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:s=12,md:l=12,sm:d=12,xs:u=12,...p}){const g=z.useTranslate(),h=z.useResourceContext(),{cardTitle:m,cardSubheader:v}=O.useMemo(()=>{const b=n||`resources.${h}.title`;return{cardTitle:g(b,{_:b}),cardSubheader:r!==null?g(r,{_:r}):null}},[h,r,n,g]);return f.jsx(E.Grid,{item:!0,...p,lg:s,md:l,sm:d,xs:u,children:f.jsx(Nn,{content:t,title:m,subheader:v,secondary:o,divider:!0,children:f.jsxs(f.Fragment,{children:[e,i===!0?f.jsx(gi,{children:f.jsx(z.SaveButton,{})}):i]})})})}const Tre=ge(z.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"}}));UC.Section=Ere;function HC(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=jre,label:s="ra.action.delete",mutationMode:l="pessimistic",mutationOptions:d={},onClick:u,onSuccess:p,onError:g,...h}=e,{meta:m,...v}=d,{selectedIds:b,onUnselectItems:x}=ne.useListContext(e),[S,I]=ne.useSafeSetState(!1),w=ne.useNotify(),T=ne.useResourceContext(e),P=ne.useRefresh(),M=ne.useTranslate(),j=wt(),[_,{isLoading:N}]=ne.useDeleteMany(T,{ids:b,meta:m},{onSuccess:()=>{P(),w("ra.notification.deleted",{type:"info",messageArgs:{smart_count:b.length},undoable:l==="undoable"}),x(),I(!1),p&&J.isFunction(p)&&p()},onError:H=>{w(typeof H=="string"?H:H.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof H=="string"?H:H&&H.message?H.message:void 0}}),I(!1),g&&J.isFunction(g)&&g()},mutationMode:l,...v});function k(H){I(!0),H.stopPropagation()}function D(){I(!1)}function U(H){_(),typeof u=="function"&&u(H)}return f.jsxs(f.Fragment,{children:[f.jsx(Pre,{onClick:k,label:s,...Ire(h),children:i}),f.jsx(z.Confirm,{isOpen:S,loading:N,sx:o||{"& .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:t?typeof t=="string"?M(t):t:f.jsx(E.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(E.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(He.DeleteFilled,{})})}),content:n||f.jsx(E.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:M("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:b.length,name:M(`resources.${T}.forcedCaseName`,{smart_count:b.length,_:ei.humanize(M(`resources.${T}.name`,{smart_count:b.length,_:ei.inflect(T,b.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:b.length,name:M(`resources.${T}.forcedCaseName`,{smart_count:b.length,_:ei.humanize(M(`resources.${T}.name`,{smart_count:b.length,_:ei.inflect(T,b.length)}),!0)})},onConfirm:U,onClose:D})]})}function Ire({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const Ore="RaBulkDeleteWithConfirmButton",Pre=ge(z.Button,{name:Ore,overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:nt(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),jre=f.jsx(D2,{});HC.propTypes={confirmTitle:C.node,confirmContent:C.node,confirmColor:C.string,dialogSx:C.object,icon:C.element,label:C.string,mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),resource:C.string,selectedIds:C.arrayOf(C.any),onSuccess:C.func,onError:C.func};const Rre="RaButton";function Mre(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 kre=ge(E.Button,{name:Rre,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function os(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:s,disabled:l,alignIcon:d,to:u,...p}=e,g=z.useTranslate(),h=Mre(u);if(t){const m=n?g(n,{_:n}):void 0;return f.jsx(kre,{className:o,color:i,size:s,"aria-label":m,disabled:l,startIcon:d==="left"&&r?r:void 0,endIcon:d==="right"&&r?r:void 0,...h,...p,children:m})}return f.jsx(z.Button,{...e})}function GC(e){const{className:t,icon:n=_re,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:s,to:l,state:d={},disableFloatingButton:u=!1,...p}=e,g=ne.useResourceContext(e),h=ne.useCreatePath(),m=ne.useTranslate(),v=E.useMediaQuery(S=>S.breakpoints.down("md")),b=Eb({},Dre.get(String(i)),d),x=Nre(l);return!u&&v?f.jsx(Fre,{component:ut.Link,to:h({resource:g,type:"create"}),state:b,color:"primary",className:$e(Du.floating,t),"aria-label":r?m(r):"ra.action.create",...p,...x,children:n}):f.jsx(Lre,{component:ut.Link,to:h({resource:g,type:"create"}),state:b,className:$e(Du.root,t),label:r,variant:s,...p,...x,children:n})}const _re=f.jsx(C2,{}),Dre=new Map([["true",{_scrollToTop:!0}],["false",{}]]);GC.propTypes={resource:C.string,className:C.string,icon:C.element,label:C.string};const _u="RaCreateButton",Du={root:`${_u}-root`,floating:`${_u}-floating`},Fre=ge(E.Fab,{name:_u,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${Du.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),Lre=ge(os,{name:_u,overridesResolver:(e,t)=>t.root})({});function Bre(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&Nl(e.to,t.to)&&Nl(e.state,t.state)}const qC=B.memo(GC,Bre);function Nre(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 gp(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 $re(e,t){return e&&e.data?{data:gp(e.data,t),total:e.total+1}:e}function Vre(e,t){return e&&e.length>0?gp(e,t):e}function zre(e,t){return e&&e.data?{...e,data:gp(e.data,t),total:e.total+1}:e}function Wre(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=f.jsx(He.PlusCircleOutlined,{}),...o}=e,i=O.useCallback(s=>{var l;s.preventDefault(),(l=e==null?void 0:e.onClick)==null||l.call(e)},[e]);return t?f.jsx(os,{...o,onClick:i,label:n,children:r}):f.jsx(kX,{...e,onClick:i,label:n,children:r})}function Ure(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=fn.useFormContext(),o=ne.useTranslate(),i=O.useCallback(s=>{s.preventDefault(),s.stopPropagation(),r(l=>t(l,n))()},[r,t,n]);return f.jsx(E.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function Hre(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:s,scroll:l="body",...d}=e,u=Hi.useQueryClient(),p=ne.useResourceContext(),g=ne.useTranslate(),h=O.Children.only(t),[m,v]=O.useState(!1),b=ne.useNotify(),x=O.useCallback(()=>v(!0),[]),S=O.useCallback(()=>v(!1),[]),I=O.useCallback((w,T,P)=>{var _,N;const j=Date.now();u.setQueryData([p,"getOne",{id:w.id}],w),u.setQueriesData([p,"getList"],k=>zre(k,w),{updatedAt:j}),u.setQueriesData([p,"getMany"],k=>Vre(k,w),{updatedAt:j}),u.setQueriesData([p,"getManyReference"],k=>$re(k,w),{updatedAt:j}),S(),b("ra.notification.created",{messageArgs:{smart_count:1}}),(N=(_=e==null?void 0:e.mutationOptions)==null?void 0:_.onSuccess)==null||N.call(_,w,T,P)},[S,b,e.mutationOptions,u,p]);return f.jsxs(f.Fragment,{children:[f.jsx(Wre,{...d,onClick:x}),f.jsx(E.Dialog,{open:m,scroll:l,onClose:S,maxWidth:n,fullWidth:r,fullScreen:o,children:f.jsx(E.DialogContent,{sx:{m:0,p:0},children:f.jsx(ne.CreateBase,{...e,mutationOptions:{...s,onSuccess:I},children:O.isValidElement(h)?O.cloneElement(h,{...h.props,modal:!0,toolbar:f.jsxs(gi,{children:[f.jsx(E.Button,{variant:"text",size:"medium",onClick:S,children:g("ra.action.cancel")}),i?f.jsx(Ure,{onSubmit:i,closeDialog:S}):f.jsx(X2,{type:"button"})]})}):null})})})]})}function is(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:s,icon:l=f.jsx(D2,{}),label:d="ra.action.delete",mutationMode:u="pessimistic",mutationOptions:p,onClick:g,redirect:h="list",translateOptions:m={},onConfirm:v,...b}=e,x=ne.useTranslate(),S=ne.useRecordContext(e),I=ne.useResourceContext(e),w=E.useTheme(),{open:T,isLoading:P,handleDialogOpen:M,handleDialogClose:j,handleDelete:_}=ne.useDeleteWithConfirmController({record:S,redirect:h,mutationMode:u,onClick:g,mutationOptions:p,resource:I}),N=O.useCallback(k=>{v?v():_(k)},[_,v]);return f.jsxs(f.Fragment,{children:[f.jsx(os,{onClick:M,label:d,className:$e("ra-delete-button",t),color:i,...b,children:l},"button"),f.jsx(Nb,{isOpen:T,loading:P,sx:s||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:w.palette.primary.main,color:w.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:w.palette.primary.dark},"&.Mui-disabled":{backgroundColor:w.palette.action.disabled,color:w.palette.primary.contrastText,outline:"none",boxShadow:"none",border:`1px solid ${w.palette.action.disabled}`}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${w.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?x(n):n:f.jsx(E.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(E.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(He.DeleteFilled,{})})}),content:f.jsx(E.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:r||x("ra.message.delete_content",{_:"ra.message.delete_content",name:x(`resources.${I}.forcedCaseName`,{smart_count:1,_:ei.humanize(x(`resources.${I}.name`,{smart_count:1,_:ei.singularize(I)}),!0)}),id:S==null?void 0:S.id})}),confirmColor:o,translateOptions:{name:x(`resources.${I}.forcedCaseName`,{smart_count:1,_:ei.humanize(x(`resources.${I}.name`,{smart_count:1,_:ei.singularize(I)}),!0)}),id:S==null?void 0:S.id,...m},onConfirm:N,onClose:j})]})}is.propTypes={basePath:C.string,className:C.string,confirmColor:C.string,confirmContent:C.oneOfType([C.string,C.element]),confirmTitle:C.oneOfType([C.string,C.element]),icon:C.element,label:C.string,mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),onClick:C.func,record:C.any,redirect:C.oneOfType([C.string,C.bool,C.func]),resource:C.string,translateOptions:C.object};function Gre(e){const t=O.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return f.jsx(Yb,{...e,onClick:t})}function qre(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=fn.useFormContext(),o=O.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(s=>t(s,n))()},[r,t,n]);return f.jsx(os,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function Yre(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:s,scroll:l="body",...d}=e,u=ne.useNotify(),[p,g]=O.useState(!1),h=O.Children.only(t),m=O.useCallback(()=>g(!0),[]),v=O.useCallback(()=>g(!1),[]),b=O.useCallback((S,I,w)=>{var T,P;v(),u("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(P=(T=e==null?void 0:e.mutationOptions)==null?void 0:T.onSuccess)==null||P.call(T,S,I,w)},[v,u,e.mutationOptions,e.mutationMode]),x=ne.useRecordContext();return f.jsxs(f.Fragment,{children:[f.jsx(Gre,{...d,onClick:m}),f.jsx(E.Dialog,{open:p,scroll:l,onClose:v,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:f.jsx(E.DialogContent,{sx:{m:0,p:0},children:f.jsx(ne.EditBase,{...e,id:x.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:b},children:O.isValidElement(h)?O.cloneElement(h,{...h.props,modal:!0,toolbar:f.jsxs(gi,{children:[f.jsx(os,{disableIconOnly:!0,variant:"text",size:"medium",onClick:v,label:"ra.action.cancel"}),s?f.jsx(qre,{onSubmit:s,closeDialog:v}):f.jsx(X2,{type:"button"})]})}):null})})})]})}var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kre={exports:{}},M5={exports:{}},k5;function rt(){return k5||(k5=1,function(e,t){(function(n,r){e.exports=r()})(et,function(){var n=n||function(r,o){var i=Object.create||function(){function x(){}return function(S){var I;return x.prototype=S,I=new x,x.prototype=null,I}}(),s={},l=s.lib={},d=l.Base=function(){return{extend:function(x){var S=i(this);return x&&S.mixIn(x),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var S in x)x.hasOwnProperty(S)&&(this[S]=x[S]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=d.extend({init:function(x,S){x=this.words=x||[],S!=o?this.sigBytes=S:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var S=this.words,I=x.words,w=this.sigBytes,T=x.sigBytes;if(this.clamp(),w%4)for(var P=0;P<T;P++){var M=I[P>>>2]>>>24-P%4*8&255;S[w+P>>>2]|=M<<24-(w+P)%4*8}else for(var P=0;P<T;P+=4)S[w+P>>>2]=I[P>>>2];return this.sigBytes+=T,this},clamp:function(){var x=this.words,S=this.sigBytes;x[S>>>2]&=4294967295<<32-S%4*8,x.length=r.ceil(S/4)},clone:function(){var x=d.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var S=[],I=function(j){var j=j,_=987654321,N=4294967295;return function(){_=36969*(_&65535)+(_>>16)&N,j=18e3*(j&65535)+(j>>16)&N;var k=(_<<16)+j&N;return k/=4294967296,k+=.5,k*(r.random()>.5?1:-1)}},w=0,T;w<x;w+=4){var P=I((T||r.random())*4294967296);T=P()*987654071,S.push(P()*4294967296|0)}return new u.init(S,x)}}),p=s.enc={},g=p.Hex={stringify:function(x){for(var S=x.words,I=x.sigBytes,w=[],T=0;T<I;T++){var P=S[T>>>2]>>>24-T%4*8&255;w.push((P>>>4).toString(16)),w.push((P&15).toString(16))}return w.join("")},parse:function(x){for(var S=x.length,I=[],w=0;w<S;w+=2)I[w>>>3]|=parseInt(x.substr(w,2),16)<<24-w%8*4;return new u.init(I,S/2)}},h=p.Latin1={stringify:function(x){for(var S=x.words,I=x.sigBytes,w=[],T=0;T<I;T++){var P=S[T>>>2]>>>24-T%4*8&255;w.push(String.fromCharCode(P))}return w.join("")},parse:function(x){for(var S=x.length,I=[],w=0;w<S;w++)I[w>>>2]|=(x.charCodeAt(w)&255)<<24-w%4*8;return new u.init(I,S)}},m=p.Utf8={stringify:function(x){try{return decodeURIComponent(escape(h.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return h.parse(unescape(encodeURIComponent(x)))}},v=l.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=m.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var S=this._data,I=S.words,w=S.sigBytes,T=this.blockSize,P=T*4,M=w/P;x?M=r.ceil(M):M=r.max((M|0)-this._minBufferSize,0);var j=M*T,_=r.min(j*4,w);if(j){for(var N=0;N<j;N+=T)this._doProcessBlock(I,N);var k=I.splice(0,j);S.sigBytes-=_}return new u.init(k,_)},clone:function(){var x=d.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});l.Hasher=v.extend({cfg:d.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(x){return function(S,I){return new x.init(I).finalize(S)}},_createHmacHelper:function(x){return function(S,I){return new b.HMAC.init(x,I).finalize(S)}}});var b=s.algo={};return s}(Math);return n})}(M5)),M5.exports}var _5={exports:{}},D5;function M3(){return D5||(D5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.Base,l=i.WordArray,d=o.x64={};d.Word=s.extend({init:function(u,p){this.high=u,this.low=p}}),d.WordArray=s.extend({init:function(u,p){u=this.words=u||[],p!=r?this.sigBytes=p:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,p=u.length,g=[],h=0;h<p;h++){var m=u[h];g.push(m.high),g.push(m.low)}return l.create(g,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),p=u.words=this.words.slice(0),g=p.length,h=0;h<g;h++)p[h]=p[h].clone();return u}})}(),n})}(_5)),_5.exports}var F5={exports:{}},L5;function Zre(){return L5||(L5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var u=d.byteLength,p=[],g=0;g<u;g++)p[g>>>2]|=d[g]<<24-g%4*8;s.call(this,p,u)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(F5)),F5.exports}var B5={exports:{}},N5;function Xre(){return N5||(N5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var u=d.words,p=d.sigBytes,g=[],h=0;h<p;h+=2){var m=u[h>>>2]>>>16-h%4*8&65535;g.push(String.fromCharCode(m))}return g.join("")},parse:function(d){for(var u=d.length,p=[],g=0;g<u;g++)p[g>>>1]|=d.charCodeAt(g)<<16-g%2*16;return i.create(p,u*2)}},s.Utf16LE={stringify:function(d){for(var u=d.words,p=d.sigBytes,g=[],h=0;h<p;h+=2){var m=l(u[h>>>2]>>>16-h%4*8&65535);g.push(String.fromCharCode(m))}return g.join("")},parse:function(d){for(var u=d.length,p=[],g=0;g<u;g++)p[g>>>1]|=l(d.charCodeAt(g)<<16-g%2*16);return i.create(p,u*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(B5)),B5.exports}var $5={exports:{}},V5;function Ia(){return V5||(V5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Base64={stringify:function(d){var u=d.words,p=d.sigBytes,g=this._map;d.clamp();for(var h=[],m=0;m<p;m+=3)for(var v=u[m>>>2]>>>24-m%4*8&255,b=u[m+1>>>2]>>>24-(m+1)%4*8&255,x=u[m+2>>>2]>>>24-(m+2)%4*8&255,S=v<<16|b<<8|x,I=0;I<4&&m+I*.75<p;I++)h.push(g.charAt(S>>>6*(3-I)&63));var w=g.charAt(64);if(w)for(;h.length%4;)h.push(w);return h.join("")},parse:function(d){var u=d.length,p=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var h=0;h<p.length;h++)g[p.charCodeAt(h)]=h}var m=p.charAt(64);if(m){var v=d.indexOf(m);v!==-1&&(u=v)}return l(d,u,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,u,p){for(var g=[],h=0,m=0;m<u;m++)if(m%4){var v=p[d.charCodeAt(m-1)]<<m%4*2,b=p[d.charCodeAt(m)]>>>6-m%4*2;g[h>>>2]|=(v|b)<<24-h%4*8,h++}return i.create(g,h)}}(),n.enc.Base64})}($5)),$5.exports}var z5={exports:{}},W5;function Oa(){return W5||(W5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.algo,u=[];(function(){for(var b=0;b<64;b++)u[b]=r.abs(r.sin(b+1))*4294967296|0})();var p=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,x){for(var S=0;S<16;S++){var I=x+S,w=b[I];b[I]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var T=this._hash.words,P=b[x+0],M=b[x+1],j=b[x+2],_=b[x+3],N=b[x+4],k=b[x+5],D=b[x+6],U=b[x+7],H=b[x+8],G=b[x+9],Y=b[x+10],V=b[x+11],Z=b[x+12],W=b[x+13],se=b[x+14],K=b[x+15],$=T[0],te=T[1],oe=T[2],Q=T[3];$=g($,te,oe,Q,P,7,u[0]),Q=g(Q,$,te,oe,M,12,u[1]),oe=g(oe,Q,$,te,j,17,u[2]),te=g(te,oe,Q,$,_,22,u[3]),$=g($,te,oe,Q,N,7,u[4]),Q=g(Q,$,te,oe,k,12,u[5]),oe=g(oe,Q,$,te,D,17,u[6]),te=g(te,oe,Q,$,U,22,u[7]),$=g($,te,oe,Q,H,7,u[8]),Q=g(Q,$,te,oe,G,12,u[9]),oe=g(oe,Q,$,te,Y,17,u[10]),te=g(te,oe,Q,$,V,22,u[11]),$=g($,te,oe,Q,Z,7,u[12]),Q=g(Q,$,te,oe,W,12,u[13]),oe=g(oe,Q,$,te,se,17,u[14]),te=g(te,oe,Q,$,K,22,u[15]),$=h($,te,oe,Q,M,5,u[16]),Q=h(Q,$,te,oe,D,9,u[17]),oe=h(oe,Q,$,te,V,14,u[18]),te=h(te,oe,Q,$,P,20,u[19]),$=h($,te,oe,Q,k,5,u[20]),Q=h(Q,$,te,oe,Y,9,u[21]),oe=h(oe,Q,$,te,K,14,u[22]),te=h(te,oe,Q,$,N,20,u[23]),$=h($,te,oe,Q,G,5,u[24]),Q=h(Q,$,te,oe,se,9,u[25]),oe=h(oe,Q,$,te,_,14,u[26]),te=h(te,oe,Q,$,H,20,u[27]),$=h($,te,oe,Q,W,5,u[28]),Q=h(Q,$,te,oe,j,9,u[29]),oe=h(oe,Q,$,te,U,14,u[30]),te=h(te,oe,Q,$,Z,20,u[31]),$=m($,te,oe,Q,k,4,u[32]),Q=m(Q,$,te,oe,H,11,u[33]),oe=m(oe,Q,$,te,V,16,u[34]),te=m(te,oe,Q,$,se,23,u[35]),$=m($,te,oe,Q,M,4,u[36]),Q=m(Q,$,te,oe,N,11,u[37]),oe=m(oe,Q,$,te,U,16,u[38]),te=m(te,oe,Q,$,Y,23,u[39]),$=m($,te,oe,Q,W,4,u[40]),Q=m(Q,$,te,oe,P,11,u[41]),oe=m(oe,Q,$,te,_,16,u[42]),te=m(te,oe,Q,$,D,23,u[43]),$=m($,te,oe,Q,G,4,u[44]),Q=m(Q,$,te,oe,Z,11,u[45]),oe=m(oe,Q,$,te,K,16,u[46]),te=m(te,oe,Q,$,j,23,u[47]),$=v($,te,oe,Q,P,6,u[48]),Q=v(Q,$,te,oe,U,10,u[49]),oe=v(oe,Q,$,te,se,15,u[50]),te=v(te,oe,Q,$,k,21,u[51]),$=v($,te,oe,Q,Z,6,u[52]),Q=v(Q,$,te,oe,_,10,u[53]),oe=v(oe,Q,$,te,Y,15,u[54]),te=v(te,oe,Q,$,M,21,u[55]),$=v($,te,oe,Q,H,6,u[56]),Q=v(Q,$,te,oe,K,10,u[57]),oe=v(oe,Q,$,te,D,15,u[58]),te=v(te,oe,Q,$,W,21,u[59]),$=v($,te,oe,Q,N,6,u[60]),Q=v(Q,$,te,oe,V,10,u[61]),oe=v(oe,Q,$,te,j,15,u[62]),te=v(te,oe,Q,$,G,21,u[63]),T[0]=T[0]+$|0,T[1]=T[1]+te|0,T[2]=T[2]+oe|0,T[3]=T[3]+Q|0},_doFinalize:function(){var b=this._data,x=b.words,S=this._nDataBytes*8,I=b.sigBytes*8;x[I>>>5]|=128<<24-I%32;var w=r.floor(S/4294967296),T=S;x[(I+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,x[(I+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,b.sigBytes=(x.length+1)*4,this._process();for(var P=this._hash,M=P.words,j=0;j<4;j++){var _=M[j];M[j]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return P},clone:function(){var b=l.clone.call(this);return b._hash=this._hash.clone(),b}});function g(b,x,S,I,w,T,P){var M=b+(x&S|~x&I)+w+P;return(M<<T|M>>>32-T)+x}function h(b,x,S,I,w,T,P){var M=b+(x&I|S&~I)+w+P;return(M<<T|M>>>32-T)+x}function m(b,x,S,I,w,T,P){var M=b+(x^S^I)+w+P;return(M<<T|M>>>32-T)+x}function v(b,x,S,I,w,T,P){var M=b+(S^(x|~I))+w+P;return(M<<T|M>>>32-T)+x}o.MD5=l._createHelper(p),o.HmacMD5=l._createHmacHelper(p)}(Math),n.MD5})}(z5)),z5.exports}var U5={exports:{}},H5;function mp(){return H5||(H5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=o.Hasher,l=r.algo,d=[],u=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,g){for(var h=this._hash.words,m=h[0],v=h[1],b=h[2],x=h[3],S=h[4],I=0;I<80;I++){if(I<16)d[I]=p[g+I]|0;else{var w=d[I-3]^d[I-8]^d[I-14]^d[I-16];d[I]=w<<1|w>>>31}var T=(m<<5|m>>>27)+S+d[I];I<20?T+=(v&b|~v&x)+1518500249:I<40?T+=(v^b^x)+1859775393:I<60?T+=(v&b|v&x|b&x)-1894007588:T+=(v^b^x)-899497514,S=x,x=b,b=v<<30|v>>>2,v=m,m=T}h[0]=h[0]+m|0,h[1]=h[1]+v|0,h[2]=h[2]+b|0,h[3]=h[3]+x|0,h[4]=h[4]+S|0},_doFinalize:function(){var p=this._data,g=p.words,h=this._nDataBytes*8,m=p.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=Math.floor(h/4294967296),g[(m+64>>>9<<4)+15]=h,p.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});r.SHA1=s._createHelper(u),r.HmacSHA1=s._createHmacHelper(u)}(),n.SHA1})}(U5)),U5.exports}var G5={exports:{}},q5;function YC(){return q5||(q5=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.algo,u=[],p=[];(function(){function m(S){for(var I=r.sqrt(S),w=2;w<=I;w++)if(!(S%w))return!1;return!0}function v(S){return(S-(S|0))*4294967296|0}for(var b=2,x=0;x<64;)m(b)&&(x<8&&(u[x]=v(r.pow(b,1/2))),p[x]=v(r.pow(b,1/3)),x++),b++})();var g=[],h=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(m,v){for(var b=this._hash.words,x=b[0],S=b[1],I=b[2],w=b[3],T=b[4],P=b[5],M=b[6],j=b[7],_=0;_<64;_++){if(_<16)g[_]=m[v+_]|0;else{var N=g[_-15],k=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,D=g[_-2],U=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;g[_]=k+g[_-7]+U+g[_-16]}var H=T&P^~T&M,G=x&S^x&I^S&I,Y=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),V=(T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25),Z=j+V+H+p[_]+g[_],W=Y+G;j=M,M=P,P=T,T=w+Z|0,w=I,I=S,S=x,x=Z+W|0}b[0]=b[0]+x|0,b[1]=b[1]+S|0,b[2]=b[2]+I|0,b[3]=b[3]+w|0,b[4]=b[4]+T|0,b[5]=b[5]+P|0,b[6]=b[6]+M|0,b[7]=b[7]+j|0},_doFinalize:function(){var m=this._data,v=m.words,b=this._nDataBytes*8,x=m.sigBytes*8;return v[x>>>5]|=128<<24-x%32,v[(x+64>>>9<<4)+14]=r.floor(b/4294967296),v[(x+64>>>9<<4)+15]=b,m.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});o.SHA256=l._createHelper(h),o.HmacSHA256=l._createHmacHelper(h)}(Math),n.SHA256})}(G5)),G5.exports}var Y5={exports:{}},K5;function Qre(){return K5||(K5=1,function(e,t){(function(n,r,o){e.exports=r(rt(),YC())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=r.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=4,u}});r.SHA224=l._createHelper(d),r.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(Y5)),Y5.exports}var Z5={exports:{}},X5;function KC(){return X5||(X5=1,function(e,t){(function(n,r,o){e.exports=r(rt(),M3())})(et,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,s=r.x64,l=s.Word,d=s.WordArray,u=r.algo;function p(){return l.create.apply(l,arguments)}var g=[p(1116352408,3609767458),p(1899447441,602891725),p(3049323471,3964484399),p(3921009573,2173295548),p(961987163,4081628472),p(1508970993,3053834265),p(2453635748,2937671579),p(2870763221,3664609560),p(3624381080,2734883394),p(310598401,1164996542),p(607225278,1323610764),p(1426881987,3590304994),p(1925078388,4068182383),p(2162078206,991336113),p(2614888103,633803317),p(3248222580,3479774868),p(3835390401,2666613458),p(4022224774,944711139),p(264347078,2341262773),p(604807628,2007800933),p(770255983,1495990901),p(1249150122,1856431235),p(1555081692,3175218132),p(1996064986,2198950837),p(2554220882,3999719339),p(2821834349,766784016),p(2952996808,2566594879),p(3210313671,3203337956),p(3336571891,1034457026),p(3584528711,2466948901),p(113926993,3758326383),p(338241895,168717936),p(666307205,1188179964),p(773529912,1546045734),p(1294757372,1522805485),p(1396182291,2643833823),p(1695183700,2343527390),p(1986661051,1014477480),p(2177026350,1206759142),p(2456956037,344077627),p(2730485921,1290863460),p(2820302411,3158454273),p(3259730800,3505952657),p(3345764771,106217008),p(3516065817,3606008344),p(3600352804,1432725776),p(4094571909,1467031594),p(275423344,851169720),p(430227734,3100823752),p(506948616,1363258195),p(659060556,3750685593),p(883997877,3785050280),p(958139571,3318307427),p(1322822218,3812723403),p(1537002063,2003034995),p(1747873779,3602036899),p(1955562222,1575990012),p(2024104815,1125592928),p(2227730452,2716904306),p(2361852424,442776044),p(2428436474,593698344),p(2756734187,3733110249),p(3204031479,2999351573),p(3329325298,3815920427),p(3391569614,3928383900),p(3515267271,566280711),p(3940187606,3454069534),p(4118630271,4000239992),p(116418474,1914138554),p(174292421,2731055270),p(289380356,3203993006),p(460393269,320620315),p(685471733,587496836),p(852142971,1086792851),p(1017036298,365543100),p(1126000580,2618297676),p(1288033470,3409855158),p(1501505948,4234509866),p(1607167915,987167468),p(1816402316,1246189591)],h=[];(function(){for(var v=0;v<80;v++)h[v]=p()})();var m=u.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(v,b){for(var x=this._hash.words,S=x[0],I=x[1],w=x[2],T=x[3],P=x[4],M=x[5],j=x[6],_=x[7],N=S.high,k=S.low,D=I.high,U=I.low,H=w.high,G=w.low,Y=T.high,V=T.low,Z=P.high,W=P.low,se=M.high,K=M.low,$=j.high,te=j.low,oe=_.high,Q=_.low,de=N,pe=k,ye=D,ce=U,be=H,Ce=G,Ee=Y,me=V,Re=Z,ve=W,qe=se,Ft=K,bt=$,st=te,sn=oe,mt=Q,Ke=0;Ke<80;Ke++){var kt=h[Ke];if(Ke<16)var tt=kt.high=v[b+Ke*2]|0,ot=kt.low=v[b+Ke*2+1]|0;else{var St=h[Ke-15],Pe=St.high,je=St.low,Ie=(Pe>>>1|je<<31)^(Pe>>>8|je<<24)^Pe>>>7,xe=(je>>>1|Pe<<31)^(je>>>8|Pe<<24)^(je>>>7|Pe<<25),vt=h[Ke-2],Ct=vt.high,De=vt.low,Oe=(Ct>>>19|De<<13)^(Ct<<3|De>>>29)^Ct>>>6,Yt=(De>>>19|Ct<<13)^(De<<3|Ct>>>29)^(De>>>6|Ct<<26),Sn=h[Ke-7],Hn=Sn.high,ao=Sn.low,yi=h[Ke-16],Ma=yi.high,ls=yi.low,ot=xe+ao,tt=Ie+Hn+(ot>>>0<xe>>>0?1:0),ot=ot+Yt,tt=tt+Oe+(ot>>>0<Yt>>>0?1:0),ot=ot+ls,tt=tt+Ma+(ot>>>0<ls>>>0?1:0);kt.high=tt,kt.low=ot}var cs=Re&qe^~Re&bt,_o=ve&Ft^~ve&st,us=de&ye^de&be^ye&be,ds=pe&ce^pe&Ce^ce&Ce,fs=(de>>>28|pe<<4)^(de<<30|pe>>>2)^(de<<25|pe>>>7),ps=(pe>>>28|de<<4)^(pe<<30|de>>>2)^(pe<<25|de>>>7),hs=(Re>>>14|ve<<18)^(Re>>>18|ve<<14)^(Re<<23|ve>>>9),ka=(ve>>>14|Re<<18)^(ve>>>18|Re<<14)^(ve<<23|Re>>>9),Do=g[Ke],_a=Do.high,ar=Do.low,en=mt+ka,Tt=sn+hs+(en>>>0<mt>>>0?1:0),en=en+_o,Tt=Tt+cs+(en>>>0<_o>>>0?1:0),en=en+ar,Tt=Tt+_a+(en>>>0<ar>>>0?1:0),en=en+ot,Tt=Tt+tt+(en>>>0<ot>>>0?1:0),Vr=ps+ds,Da=fs+us+(Vr>>>0<ps>>>0?1:0);sn=bt,mt=st,bt=qe,st=Ft,qe=Re,Ft=ve,ve=me+en|0,Re=Ee+Tt+(ve>>>0<me>>>0?1:0)|0,Ee=be,me=Ce,be=ye,Ce=ce,ye=de,ce=pe,pe=en+Vr|0,de=Tt+Da+(pe>>>0<en>>>0?1:0)|0}k=S.low=k+pe,S.high=N+de+(k>>>0<pe>>>0?1:0),U=I.low=U+ce,I.high=D+ye+(U>>>0<ce>>>0?1:0),G=w.low=G+Ce,w.high=H+be+(G>>>0<Ce>>>0?1:0),V=T.low=V+me,T.high=Y+Ee+(V>>>0<me>>>0?1:0),W=P.low=W+ve,P.high=Z+Re+(W>>>0<ve>>>0?1:0),K=M.low=K+Ft,M.high=se+qe+(K>>>0<Ft>>>0?1:0),te=j.low=te+st,j.high=$+bt+(te>>>0<st>>>0?1:0),Q=_.low=Q+mt,_.high=oe+sn+(Q>>>0<mt>>>0?1:0)},_doFinalize:function(){var v=this._data,b=v.words,x=this._nDataBytes*8,S=v.sigBytes*8;b[S>>>5]|=128<<24-S%32,b[(S+128>>>10<<5)+30]=Math.floor(x/4294967296),b[(S+128>>>10<<5)+31]=x,v.sigBytes=b.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});r.SHA512=i._createHelper(m),r.HmacSHA512=i._createHmacHelper(m)}(),n.SHA512})}(Z5)),Z5.exports}var Q5={exports:{}},J5;function Jre(){return J5||(J5=1,function(e,t){(function(n,r,o){e.exports=r(rt(),M3(),KC())})(et,function(n){return function(){var r=n,o=r.x64,i=o.Word,s=o.WordArray,l=r.algo,d=l.SHA512,u=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var p=d._doFinalize.call(this);return p.sigBytes-=16,p}});r.SHA384=d._createHelper(u),r.HmacSHA384=d._createHmacHelper(u)}(),n.SHA384})}(Q5)),Q5.exports}var em={exports:{}},tm;function eoe(){return tm||(tm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),M3())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.x64,u=d.Word,p=o.algo,g=[],h=[],m=[];(function(){for(var x=1,S=0,I=0;I<24;I++){g[x+5*S]=(I+1)*(I+2)/2%64;var w=S%5,T=(2*x+3*S)%5;x=w,S=T}for(var x=0;x<5;x++)for(var S=0;S<5;S++)h[x+5*S]=S+(2*x+3*S)%5*5;for(var P=1,M=0;M<24;M++){for(var j=0,_=0,N=0;N<7;N++){if(P&1){var k=(1<<N)-1;k<32?_^=1<<k:j^=1<<k-32}P&128?P=P<<1^113:P<<=1}m[M]=u.create(j,_)}})();var v=[];(function(){for(var x=0;x<25;x++)v[x]=u.create()})();var b=p.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var x=this._state=[],S=0;S<25;S++)x[S]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(x,S){for(var I=this._state,w=this.blockSize/2,T=0;T<w;T++){var P=x[S+2*T],M=x[S+2*T+1];P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var j=I[T];j.high^=M,j.low^=P}for(var _=0;_<24;_++){for(var N=0;N<5;N++){for(var k=0,D=0,U=0;U<5;U++){var j=I[N+5*U];k^=j.high,D^=j.low}var H=v[N];H.high=k,H.low=D}for(var N=0;N<5;N++)for(var G=v[(N+4)%5],Y=v[(N+1)%5],V=Y.high,Z=Y.low,k=G.high^(V<<1|Z>>>31),D=G.low^(Z<<1|V>>>31),U=0;U<5;U++){var j=I[N+5*U];j.high^=k,j.low^=D}for(var W=1;W<25;W++){var j=I[W],se=j.high,K=j.low,$=g[W];if($<32)var k=se<<$|K>>>32-$,D=K<<$|se>>>32-$;else var k=K<<$-32|se>>>64-$,D=se<<$-32|K>>>64-$;var te=v[h[W]];te.high=k,te.low=D}var oe=v[0],Q=I[0];oe.high=Q.high,oe.low=Q.low;for(var N=0;N<5;N++)for(var U=0;U<5;U++){var W=N+5*U,j=I[W],de=v[W],pe=v[(N+1)%5+5*U],ye=v[(N+2)%5+5*U];j.high=de.high^~pe.high&ye.high,j.low=de.low^~pe.low&ye.low}var j=I[0],ce=m[_];j.high^=ce.high,j.low^=ce.low}},_doFinalize:function(){var x=this._data,S=x.words;this._nDataBytes*8;var I=x.sigBytes*8,w=this.blockSize*32;S[I>>>5]|=1<<24-I%32,S[(r.ceil((I+1)/w)*w>>>5)-1]|=128,x.sigBytes=S.length*4,this._process();for(var T=this._state,P=this.cfg.outputLength/8,M=P/8,j=[],_=0;_<M;_++){var N=T[_],k=N.high,D=N.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,j.push(D),j.push(k)}return new s.init(j,P)},clone:function(){for(var x=l.clone.call(this),S=x._state=this._state.slice(0),I=0;I<25;I++)S[I]=S[I].clone();return x}});o.SHA3=l._createHelper(b),o.HmacSHA3=l._createHmacHelper(b)}(Math),n.SHA3})}(em)),em.exports}var nm={exports:{}},rm;function toe(){return rm||(rm=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){/** @preserve
225
225
  (c) 2012 by Cédric Mesnil. All rights reserved.
226
226
 
227
227
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -230,11 +230,11 @@ attempted value: ${s}
230
230
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
231
231
 
232
232
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
233
- */return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.algo,u=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),p=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),m=s.create([0,1518500249,1859775393,2400959708,2840853838]),v=s.create([1352829926,1548603684,1836072691,2053994217,0]),b=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,j){for(var D=0;D<16;D++){var N=j+D,k=M[N];M[N]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var _=this._hash.words,U=m.words,H=v.words,G=u.words,Y=p.words,V=g.words,Z=h.words,W,se,K,$,te,oe,Q,de,pe,ye;oe=W=_[0],Q=se=_[1],de=K=_[2],pe=$=_[3],ye=te=_[4];for(var ce,D=0;D<80;D+=1)ce=W+M[j+G[D]]|0,D<16?ce+=x(se,K,$)+U[0]:D<32?ce+=S(se,K,$)+U[1]:D<48?ce+=I(se,K,$)+U[2]:D<64?ce+=w(se,K,$)+U[3]:ce+=T(se,K,$)+U[4],ce=ce|0,ce=P(ce,V[D]),ce=ce+te|0,W=te,te=$,$=P(K,10),K=se,se=ce,ce=oe+M[j+Y[D]]|0,D<16?ce+=T(Q,de,pe)+H[0]:D<32?ce+=w(Q,de,pe)+H[1]:D<48?ce+=I(Q,de,pe)+H[2]:D<64?ce+=S(Q,de,pe)+H[3]:ce+=x(Q,de,pe)+H[4],ce=ce|0,ce=P(ce,Z[D]),ce=ce+ye|0,oe=ye,ye=pe,pe=P(de,10),de=Q,Q=ce;ce=_[1]+K+pe|0,_[1]=_[2]+$+ye|0,_[2]=_[3]+te+oe|0,_[3]=_[4]+W+Q|0,_[4]=_[0]+se+de|0,_[0]=ce},_doFinalize:function(){var M=this._data,j=M.words,D=this._nDataBytes*8,N=M.sigBytes*8;j[N>>>5]|=128<<24-N%32,j[(N+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M.sigBytes=(j.length+1)*4,this._process();for(var k=this._hash,_=k.words,U=0;U<5;U++){var H=_[U];_[U]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return k},clone:function(){var M=l.clone.call(this);return M._hash=this._hash.clone(),M}});function x(M,j,D){return M^j^D}function S(M,j,D){return M&j|~M&D}function I(M,j,D){return(M|~j)^D}function w(M,j,D){return M&D|j&~D}function T(M,j,D){return M^(j|~D)}function P(M,j){return M<<j|M>>>32-j}o.RIPEMD160=l._createHelper(b),o.HmacRIPEMD160=l._createHmacHelper(b)}(),n.RIPEMD160})}(nm)),nm.exports}var om={exports:{}},im;function vp(){return im||(im=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){(function(){var r=n,o=r.lib,i=o.Base,s=r.enc,l=s.Utf8,d=r.algo;d.HMAC=i.extend({init:function(u,p){u=this._hasher=new u.init,typeof p=="string"&&(p=l.parse(p));var g=u.blockSize,h=g*4;p.sigBytes>h&&(p=u.finalize(p)),p.clamp();for(var m=this._oKey=p.clone(),v=this._iKey=p.clone(),b=m.words,x=v.words,S=0;S<g;S++)b[S]^=1549556828,x[S]^=909522486;m.sigBytes=v.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var p=this._hasher,g=p.finalize(u);p.reset();var h=p.finalize(this._oKey.clone().concat(g));return h}})})()})}(om)),om.exports}var sm={exports:{}},am;function noe(){return am||(am=1,function(e,t){(function(n,r,o){e.exports=r(rt(),mp(),vp())})(et,function(n){return function(){var r=n,o=r.lib,i=o.Base,s=o.WordArray,l=r.algo,d=l.SHA1,u=l.HMAC,p=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,h){for(var m=this.cfg,v=u.create(m.hasher,g),b=s.create(),x=s.create([1]),S=b.words,I=x.words,w=m.keySize,T=m.iterations;S.length<w;){var P=v.update(h).finalize(x);v.reset();for(var M=P.words,j=M.length,D=P,N=1;N<T;N++){D=v.finalize(D),v.reset();for(var k=D.words,_=0;_<j;_++)M[_]^=k[_]}b.concat(P),I[0]++}return b.sigBytes=w*4,b}});r.PBKDF2=function(g,h,m){return p.create(m).compute(g,h)}}(),n.PBKDF2})}(sm)),sm.exports}var lm={exports:{}},cm;function ss(){return cm||(cm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),mp(),vp())})(et,function(n){return function(){var r=n,o=r.lib,i=o.Base,s=o.WordArray,l=r.algo,d=l.MD5,u=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,g){for(var h=this.cfg,m=h.hasher.create(),v=s.create(),b=v.words,x=h.keySize,S=h.iterations;b.length<x;){I&&m.update(I);var I=m.update(p).finalize(g);m.reset();for(var w=1;w<S;w++)I=m.finalize(I),m.reset();v.concat(I)}return v.sigBytes=x*4,v}});r.EvpKDF=function(p,g,h){return u.create(h).compute(p,g)}}(),n.EvpKDF})}(lm)),lm.exports}var um={exports:{}},dm;function gn(){return dm||(dm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),ss())})(et,function(n){n.lib.Cipher||function(r){var o=n,i=o.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,u=o.enc;u.Utf8;var p=u.Base64,g=o.algo,h=g.EvpKDF,m=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(k,_){return this.create(this._ENC_XFORM_MODE,k,_)},createDecryptor:function(k,_){return this.create(this._DEC_XFORM_MODE,k,_)},init:function(k,_,U){this.cfg=this.cfg.extend(U),this._xformMode=k,this._key=_,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(_){return typeof _=="string"?N:M}return function(_){return{encrypt:function(U,H,G){return k(H).encrypt(_,U,H,G)},decrypt:function(U,H,G){return k(H).decrypt(_,U,H,G)}}}}()});i.StreamCipher=m.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var v=o.mode={},b=i.BlockCipherMode=s.extend({createEncryptor:function(k,_){return this.Encryptor.create(k,_)},createDecryptor:function(k,_){return this.Decryptor.create(k,_)},init:function(k,_){this._cipher=k,this._iv=_}}),x=v.CBC=function(){var k=b.extend();k.Encryptor=k.extend({processBlock:function(U,H){var G=this._cipher,Y=G.blockSize;_.call(this,U,H,Y),G.encryptBlock(U,H),this._prevBlock=U.slice(H,H+Y)}}),k.Decryptor=k.extend({processBlock:function(U,H){var G=this._cipher,Y=G.blockSize,V=U.slice(H,H+Y);G.decryptBlock(U,H),_.call(this,U,H,Y),this._prevBlock=V}});function _(U,H,G){var Y=this._iv;if(Y){var V=Y;this._iv=r}else var V=this._prevBlock;for(var Z=0;Z<G;Z++)U[H+Z]^=V[Z]}return k}(),S=o.pad={},I=S.Pkcs7={pad:function(k,_){for(var U=_*4,H=U-k.sigBytes%U,G=H<<24|H<<16|H<<8|H,Y=[],V=0;V<H;V+=4)Y.push(G);var Z=l.create(Y,H);k.concat(Z)},unpad:function(k){var _=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=_}};i.BlockCipher=m.extend({cfg:m.cfg.extend({mode:x,padding:I}),reset:function(){m.reset.call(this);var k=this.cfg,_=k.iv,U=k.mode;if(this._xformMode==this._ENC_XFORM_MODE)var H=U.createEncryptor;else{var H=U.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==H?this._mode.init(this,_&&_.words):(this._mode=H.call(U,this,_&&_.words),this._mode.__creator=H)},_doProcessBlock:function(k,_){this._mode.processBlock(k,_)},_doFinalize:function(){var k=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){k.pad(this._data,this.blockSize);var _=this._process(!0)}else{var _=this._process(!0);k.unpad(_)}return _},blockSize:128/32});var w=i.CipherParams=s.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),T=o.format={},P=T.OpenSSL={stringify:function(k){var _=k.ciphertext,U=k.salt;if(U)var H=l.create([1398893684,1701076831]).concat(U).concat(_);else var H=_;return H.toString(p)},parse:function(k){var _=p.parse(k),U=_.words;if(U[0]==1398893684&&U[1]==1701076831){var H=l.create(U.slice(2,4));U.splice(0,4),_.sigBytes-=16}return w.create({ciphertext:_,salt:H})}},M=i.SerializableCipher=s.extend({cfg:s.extend({format:P}),encrypt:function(k,_,U,H){H=this.cfg.extend(H);var G=k.createEncryptor(U,H),Y=G.finalize(_),V=G.cfg;return w.create({ciphertext:Y,key:U,iv:V.iv,algorithm:k,mode:V.mode,padding:V.padding,blockSize:k.blockSize,formatter:H.format})},decrypt:function(k,_,U,H){H=this.cfg.extend(H),_=this._parse(_,H.format);var G=k.createDecryptor(U,H).finalize(_.ciphertext);return G},_parse:function(k,_){return typeof k=="string"?_.parse(k,this):k}}),j=o.kdf={},D=j.OpenSSL={execute:function(k,_,U,H){H||(H=l.random(64/8));var G=h.create({keySize:_+U}).compute(k,H),Y=l.create(G.words.slice(_),U*4);return G.sigBytes=_*4,w.create({key:G,iv:Y,salt:H})}},N=i.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:D}),encrypt:function(k,_,U,H){H=this.cfg.extend(H);var G=H.kdf.execute(U,k.keySize,k.ivSize);H.iv=G.iv;var Y=M.encrypt.call(this,k,_,G.key,H);return Y.mixIn(G),Y},decrypt:function(k,_,U,H){H=this.cfg.extend(H),_=this._parse(_,H.format);var G=H.kdf.execute(U,k.keySize,k.ivSize,_.salt);H.iv=G.iv;var Y=M.decrypt.call(this,k,_,G.key,H);return Y}})}()})}(um)),um.exports}var fm={exports:{}},pm;function roe(){return pm||(pm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;o.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),r.Decryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,u=i.slice(s,s+d);o.call(this,i,s,d,l),this._prevBlock=u}});function o(i,s,l,d){var u=this._iv;if(u){var p=u.slice(0);this._iv=void 0}else var p=this._prevBlock;d.encryptBlock(p,0);for(var g=0;g<l;g++)i[s+g]^=p[g]}return r}(),n.mode.CFB})}(fm)),fm.exports}var hm={exports:{}},gm;function ooe(){return gm||(gm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,u=this._iv,p=this._counter;u&&(p=this._counter=u.slice(0),this._iv=void 0);var g=p.slice(0);l.encryptBlock(g,0),p[d-1]=p[d-1]+1|0;for(var h=0;h<d;h++)i[s+h]^=g[h]}});return r.Decryptor=o,r}(),n.mode.CTR})}(hm)),hm.exports}var mm={exports:{}},vm;function ioe(){return vm||(vm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){/** @preserve
233
+ */return function(r){var o=n,i=o.lib,s=i.WordArray,l=i.Hasher,d=o.algo,u=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),p=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),m=s.create([0,1518500249,1859775393,2400959708,2840853838]),v=s.create([1352829926,1548603684,1836072691,2053994217,0]),b=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,j){for(var _=0;_<16;_++){var N=j+_,k=M[N];M[N]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var D=this._hash.words,U=m.words,H=v.words,G=u.words,Y=p.words,V=g.words,Z=h.words,W,se,K,$,te,oe,Q,de,pe,ye;oe=W=D[0],Q=se=D[1],de=K=D[2],pe=$=D[3],ye=te=D[4];for(var ce,_=0;_<80;_+=1)ce=W+M[j+G[_]]|0,_<16?ce+=x(se,K,$)+U[0]:_<32?ce+=S(se,K,$)+U[1]:_<48?ce+=I(se,K,$)+U[2]:_<64?ce+=w(se,K,$)+U[3]:ce+=T(se,K,$)+U[4],ce=ce|0,ce=P(ce,V[_]),ce=ce+te|0,W=te,te=$,$=P(K,10),K=se,se=ce,ce=oe+M[j+Y[_]]|0,_<16?ce+=T(Q,de,pe)+H[0]:_<32?ce+=w(Q,de,pe)+H[1]:_<48?ce+=I(Q,de,pe)+H[2]:_<64?ce+=S(Q,de,pe)+H[3]:ce+=x(Q,de,pe)+H[4],ce=ce|0,ce=P(ce,Z[_]),ce=ce+ye|0,oe=ye,ye=pe,pe=P(de,10),de=Q,Q=ce;ce=D[1]+K+pe|0,D[1]=D[2]+$+ye|0,D[2]=D[3]+te+oe|0,D[3]=D[4]+W+Q|0,D[4]=D[0]+se+de|0,D[0]=ce},_doFinalize:function(){var M=this._data,j=M.words,_=this._nDataBytes*8,N=M.sigBytes*8;j[N>>>5]|=128<<24-N%32,j[(N+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,M.sigBytes=(j.length+1)*4,this._process();for(var k=this._hash,D=k.words,U=0;U<5;U++){var H=D[U];D[U]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return k},clone:function(){var M=l.clone.call(this);return M._hash=this._hash.clone(),M}});function x(M,j,_){return M^j^_}function S(M,j,_){return M&j|~M&_}function I(M,j,_){return(M|~j)^_}function w(M,j,_){return M&_|j&~_}function T(M,j,_){return M^(j|~_)}function P(M,j){return M<<j|M>>>32-j}o.RIPEMD160=l._createHelper(b),o.HmacRIPEMD160=l._createHmacHelper(b)}(),n.RIPEMD160})}(nm)),nm.exports}var om={exports:{}},im;function vp(){return im||(im=1,function(e,t){(function(n,r){e.exports=r(rt())})(et,function(n){(function(){var r=n,o=r.lib,i=o.Base,s=r.enc,l=s.Utf8,d=r.algo;d.HMAC=i.extend({init:function(u,p){u=this._hasher=new u.init,typeof p=="string"&&(p=l.parse(p));var g=u.blockSize,h=g*4;p.sigBytes>h&&(p=u.finalize(p)),p.clamp();for(var m=this._oKey=p.clone(),v=this._iKey=p.clone(),b=m.words,x=v.words,S=0;S<g;S++)b[S]^=1549556828,x[S]^=909522486;m.sigBytes=v.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var p=this._hasher,g=p.finalize(u);p.reset();var h=p.finalize(this._oKey.clone().concat(g));return h}})})()})}(om)),om.exports}var sm={exports:{}},am;function noe(){return am||(am=1,function(e,t){(function(n,r,o){e.exports=r(rt(),mp(),vp())})(et,function(n){return function(){var r=n,o=r.lib,i=o.Base,s=o.WordArray,l=r.algo,d=l.SHA1,u=l.HMAC,p=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,h){for(var m=this.cfg,v=u.create(m.hasher,g),b=s.create(),x=s.create([1]),S=b.words,I=x.words,w=m.keySize,T=m.iterations;S.length<w;){var P=v.update(h).finalize(x);v.reset();for(var M=P.words,j=M.length,_=P,N=1;N<T;N++){_=v.finalize(_),v.reset();for(var k=_.words,D=0;D<j;D++)M[D]^=k[D]}b.concat(P),I[0]++}return b.sigBytes=w*4,b}});r.PBKDF2=function(g,h,m){return p.create(m).compute(g,h)}}(),n.PBKDF2})}(sm)),sm.exports}var lm={exports:{}},cm;function ss(){return cm||(cm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),mp(),vp())})(et,function(n){return function(){var r=n,o=r.lib,i=o.Base,s=o.WordArray,l=r.algo,d=l.MD5,u=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,g){for(var h=this.cfg,m=h.hasher.create(),v=s.create(),b=v.words,x=h.keySize,S=h.iterations;b.length<x;){I&&m.update(I);var I=m.update(p).finalize(g);m.reset();for(var w=1;w<S;w++)I=m.finalize(I),m.reset();v.concat(I)}return v.sigBytes=x*4,v}});r.EvpKDF=function(p,g,h){return u.create(h).compute(p,g)}}(),n.EvpKDF})}(lm)),lm.exports}var um={exports:{}},dm;function gn(){return dm||(dm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),ss())})(et,function(n){n.lib.Cipher||function(r){var o=n,i=o.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,u=o.enc;u.Utf8;var p=u.Base64,g=o.algo,h=g.EvpKDF,m=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(k,D){return this.create(this._ENC_XFORM_MODE,k,D)},createDecryptor:function(k,D){return this.create(this._DEC_XFORM_MODE,k,D)},init:function(k,D,U){this.cfg=this.cfg.extend(U),this._xformMode=k,this._key=D,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(D){return typeof D=="string"?N:M}return function(D){return{encrypt:function(U,H,G){return k(H).encrypt(D,U,H,G)},decrypt:function(U,H,G){return k(H).decrypt(D,U,H,G)}}}}()});i.StreamCipher=m.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var v=o.mode={},b=i.BlockCipherMode=s.extend({createEncryptor:function(k,D){return this.Encryptor.create(k,D)},createDecryptor:function(k,D){return this.Decryptor.create(k,D)},init:function(k,D){this._cipher=k,this._iv=D}}),x=v.CBC=function(){var k=b.extend();k.Encryptor=k.extend({processBlock:function(U,H){var G=this._cipher,Y=G.blockSize;D.call(this,U,H,Y),G.encryptBlock(U,H),this._prevBlock=U.slice(H,H+Y)}}),k.Decryptor=k.extend({processBlock:function(U,H){var G=this._cipher,Y=G.blockSize,V=U.slice(H,H+Y);G.decryptBlock(U,H),D.call(this,U,H,Y),this._prevBlock=V}});function D(U,H,G){var Y=this._iv;if(Y){var V=Y;this._iv=r}else var V=this._prevBlock;for(var Z=0;Z<G;Z++)U[H+Z]^=V[Z]}return k}(),S=o.pad={},I=S.Pkcs7={pad:function(k,D){for(var U=D*4,H=U-k.sigBytes%U,G=H<<24|H<<16|H<<8|H,Y=[],V=0;V<H;V+=4)Y.push(G);var Z=l.create(Y,H);k.concat(Z)},unpad:function(k){var D=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=D}};i.BlockCipher=m.extend({cfg:m.cfg.extend({mode:x,padding:I}),reset:function(){m.reset.call(this);var k=this.cfg,D=k.iv,U=k.mode;if(this._xformMode==this._ENC_XFORM_MODE)var H=U.createEncryptor;else{var H=U.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==H?this._mode.init(this,D&&D.words):(this._mode=H.call(U,this,D&&D.words),this._mode.__creator=H)},_doProcessBlock:function(k,D){this._mode.processBlock(k,D)},_doFinalize:function(){var k=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){k.pad(this._data,this.blockSize);var D=this._process(!0)}else{var D=this._process(!0);k.unpad(D)}return D},blockSize:128/32});var w=i.CipherParams=s.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),T=o.format={},P=T.OpenSSL={stringify:function(k){var D=k.ciphertext,U=k.salt;if(U)var H=l.create([1398893684,1701076831]).concat(U).concat(D);else var H=D;return H.toString(p)},parse:function(k){var D=p.parse(k),U=D.words;if(U[0]==1398893684&&U[1]==1701076831){var H=l.create(U.slice(2,4));U.splice(0,4),D.sigBytes-=16}return w.create({ciphertext:D,salt:H})}},M=i.SerializableCipher=s.extend({cfg:s.extend({format:P}),encrypt:function(k,D,U,H){H=this.cfg.extend(H);var G=k.createEncryptor(U,H),Y=G.finalize(D),V=G.cfg;return w.create({ciphertext:Y,key:U,iv:V.iv,algorithm:k,mode:V.mode,padding:V.padding,blockSize:k.blockSize,formatter:H.format})},decrypt:function(k,D,U,H){H=this.cfg.extend(H),D=this._parse(D,H.format);var G=k.createDecryptor(U,H).finalize(D.ciphertext);return G},_parse:function(k,D){return typeof k=="string"?D.parse(k,this):k}}),j=o.kdf={},_=j.OpenSSL={execute:function(k,D,U,H){H||(H=l.random(64/8));var G=h.create({keySize:D+U}).compute(k,H),Y=l.create(G.words.slice(D),U*4);return G.sigBytes=D*4,w.create({key:G,iv:Y,salt:H})}},N=i.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:_}),encrypt:function(k,D,U,H){H=this.cfg.extend(H);var G=H.kdf.execute(U,k.keySize,k.ivSize);H.iv=G.iv;var Y=M.encrypt.call(this,k,D,G.key,H);return Y.mixIn(G),Y},decrypt:function(k,D,U,H){H=this.cfg.extend(H),D=this._parse(D,H.format);var G=H.kdf.execute(U,k.keySize,k.ivSize,D.salt);H.iv=G.iv;var Y=M.decrypt.call(this,k,D,G.key,H);return Y}})}()})}(um)),um.exports}var fm={exports:{}},pm;function roe(){return pm||(pm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;o.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),r.Decryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,u=i.slice(s,s+d);o.call(this,i,s,d,l),this._prevBlock=u}});function o(i,s,l,d){var u=this._iv;if(u){var p=u.slice(0);this._iv=void 0}else var p=this._prevBlock;d.encryptBlock(p,0);for(var g=0;g<l;g++)i[s+g]^=p[g]}return r}(),n.mode.CFB})}(fm)),fm.exports}var hm={exports:{}},gm;function ooe(){return gm||(gm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,u=this._iv,p=this._counter;u&&(p=this._counter=u.slice(0),this._iv=void 0);var g=p.slice(0);l.encryptBlock(g,0),p[d-1]=p[d-1]+1|0;for(var h=0;h<d;h++)i[s+h]^=g[h]}});return r.Decryptor=o,r}(),n.mode.CTR})}(hm)),hm.exports}var mm={exports:{}},vm;function ioe(){return vm||(vm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){/** @preserve
234
234
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
235
235
  * derived from CryptoJS.mode.CTR
236
236
  * Jan Hruby jhruby.web@gmail.com
237
- */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function o(l){if((l>>24&255)===255){var d=l>>16&255,u=l>>8&255,p=l&255;d===255?(d=0,u===255?(u=0,p===255?p=0:++p):++u):++d,l=0,l+=d<<16,l+=u<<8,l+=p}else l+=1<<24;return l}function i(l){return(l[0]=o(l[0]))===0&&(l[1]=o(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,d){var u=this._cipher,p=u.blockSize,g=this._iv,h=this._counter;g&&(h=this._counter=g.slice(0),this._iv=void 0),i(h);var m=h.slice(0);u.encryptBlock(m,0);for(var v=0;v<p;v++)l[d+v]^=m[v]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(mm)),mm.exports}var ym={exports:{}},bm;function soe(){return bm||(bm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,u=this._iv,p=this._keystream;u&&(p=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(p,0);for(var g=0;g<d;g++)i[s+g]^=p[g]}});return r.Decryptor=o,r}(),n.mode.OFB})}(ym)),ym.exports}var Cm={exports:{}},xm;function aoe(){return xm||(xm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),r.Decryptor=r.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),r}(),n.mode.ECB})}(Cm)),Cm.exports}var wm={exports:{}},Sm;function loe(){return Sm||(Sm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.AnsiX923={pad:function(r,o){var i=r.sigBytes,s=o*4,l=s-i%s,d=i+l-1;r.clamp(),r.words[d>>>2]|=l<<24-d%4*8,r.sigBytes+=l},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})}(wm)),wm.exports}var Am={exports:{}},Em;function coe(){return Em||(Em=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.Iso10126={pad:function(r,o){var i=o*4,s=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Iso10126})}(Am)),Am.exports}var Tm={exports:{}},Im;function uoe(){return Im||(Im=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.Iso97971={pad:function(r,o){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,o)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Tm)),Tm.exports}var Om={exports:{}},Pm;function doe(){return Pm||(Pm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.ZeroPadding={pad:function(r,o){var i=o*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var o=r.words,i=r.sigBytes-1;!(o[i>>>2]>>>24-i%4*8&255);)i--;r.sigBytes=i+1}},n.pad.ZeroPadding})}(Om)),Om.exports}var jm={exports:{}},Rm;function foe(){return Rm||(Rm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(jm)),jm.exports}var Mm={exports:{}},km;function poe(){return km||(km=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.CipherParams,l=o.enc,d=l.Hex,u=o.format;u.Hex={stringify:function(p){return p.ciphertext.toString(d)},parse:function(p){var g=d.parse(p);return s.create({ciphertext:g})}}}(),n.format.Hex})}(Mm)),Mm.exports}var _m={exports:{}},Dm;function hoe(){return Dm||(Dm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.BlockCipher,s=r.algo,l=[],d=[],u=[],p=[],g=[],h=[],m=[],v=[],b=[],x=[];(function(){for(var w=[],T=0;T<256;T++)T<128?w[T]=T<<1:w[T]=T<<1^283;for(var P=0,M=0,T=0;T<256;T++){var j=M^M<<1^M<<2^M<<3^M<<4;j=j>>>8^j&255^99,l[P]=j,d[j]=P;var D=w[P],N=w[D],k=w[N],_=w[j]*257^j*16843008;u[P]=_<<24|_>>>8,p[P]=_<<16|_>>>16,g[P]=_<<8|_>>>24,h[P]=_;var _=k*16843009^N*65537^D*257^P*16843008;m[j]=_<<24|_>>>8,v[j]=_<<16|_>>>16,b[j]=_<<8|_>>>24,x[j]=_,P?(P=D^w[w[w[k^D]]],M^=w[w[M]]):P=M=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],I=s.AES=i.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,T=w.words,P=w.sigBytes/4,M=this._nRounds=P+6,j=(M+1)*4,D=this._keySchedule=[],N=0;N<j;N++)if(N<P)D[N]=T[N];else{var k=D[N-1];N%P?P>6&&N%P==4&&(k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255]):(k=k<<8|k>>>24,k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255],k^=S[N/P|0]<<24),D[N]=D[N-P]^k}for(var _=this._invKeySchedule=[],U=0;U<j;U++){var N=j-U;if(U%4)var k=D[N];else var k=D[N-4];U<4||N<=4?_[U]=k:_[U]=m[l[k>>>24]]^v[l[k>>>16&255]]^b[l[k>>>8&255]]^x[l[k&255]]}}},encryptBlock:function(w,T){this._doCryptBlock(w,T,this._keySchedule,u,p,g,h,l)},decryptBlock:function(w,T){var P=w[T+1];w[T+1]=w[T+3],w[T+3]=P,this._doCryptBlock(w,T,this._invKeySchedule,m,v,b,x,d);var P=w[T+1];w[T+1]=w[T+3],w[T+3]=P},_doCryptBlock:function(w,T,P,M,j,D,N,k){for(var _=this._nRounds,U=w[T]^P[0],H=w[T+1]^P[1],G=w[T+2]^P[2],Y=w[T+3]^P[3],V=4,Z=1;Z<_;Z++){var W=M[U>>>24]^j[H>>>16&255]^D[G>>>8&255]^N[Y&255]^P[V++],se=M[H>>>24]^j[G>>>16&255]^D[Y>>>8&255]^N[U&255]^P[V++],K=M[G>>>24]^j[Y>>>16&255]^D[U>>>8&255]^N[H&255]^P[V++],$=M[Y>>>24]^j[U>>>16&255]^D[H>>>8&255]^N[G&255]^P[V++];U=W,H=se,G=K,Y=$}var W=(k[U>>>24]<<24|k[H>>>16&255]<<16|k[G>>>8&255]<<8|k[Y&255])^P[V++],se=(k[H>>>24]<<24|k[G>>>16&255]<<16|k[Y>>>8&255]<<8|k[U&255])^P[V++],K=(k[G>>>24]<<24|k[Y>>>16&255]<<16|k[U>>>8&255]<<8|k[H&255])^P[V++],$=(k[Y>>>24]<<24|k[U>>>16&255]<<16|k[H>>>8&255]<<8|k[G&255])^P[V++];w[T]=W,w[T+1]=se,w[T+2]=K,w[T+3]=$},keySize:256/32});r.AES=i._createHelper(I)}(),n.AES})}(_m)),_m.exports}var Fm={exports:{}},Lm;function goe(){return Lm||(Lm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=o.BlockCipher,l=r.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=l.DES=s.extend({_doReset:function(){for(var S=this._key,I=S.words,w=[],T=0;T<56;T++){var P=d[T]-1;w[T]=I[P>>>5]>>>31-P%32&1}for(var M=this._subKeys=[],j=0;j<16;j++){for(var D=M[j]=[],N=p[j],T=0;T<24;T++)D[T/6|0]|=w[(u[T]-1+N)%28]<<31-T%6,D[4+(T/6|0)]|=w[28+(u[T+24]-1+N)%28]<<31-T%6;D[0]=D[0]<<1|D[0]>>>31;for(var T=1;T<7;T++)D[T]=D[T]>>>(T-1)*4+3;D[7]=D[7]<<5|D[7]>>>27}for(var k=this._invSubKeys=[],T=0;T<16;T++)k[T]=M[15-T]},encryptBlock:function(S,I){this._doCryptBlock(S,I,this._subKeys)},decryptBlock:function(S,I){this._doCryptBlock(S,I,this._invSubKeys)},_doCryptBlock:function(S,I,w){this._lBlock=S[I],this._rBlock=S[I+1],v.call(this,4,252645135),v.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),v.call(this,1,1431655765);for(var T=0;T<16;T++){for(var P=w[T],M=this._lBlock,j=this._rBlock,D=0,N=0;N<8;N++)D|=g[N][((j^P[N])&h[N])>>>0];this._lBlock=j,this._rBlock=M^D}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,v.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),S[I]=this._lBlock,S[I+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(S,I){var w=(this._lBlock>>>S^this._rBlock)&I;this._rBlock^=w,this._lBlock^=w<<S}function b(S,I){var w=(this._rBlock>>>S^this._lBlock)&I;this._lBlock^=w,this._rBlock^=w<<S}r.DES=s._createHelper(m);var x=l.TripleDES=s.extend({_doReset:function(){var S=this._key,I=S.words;this._des1=m.createEncryptor(i.create(I.slice(0,2))),this._des2=m.createEncryptor(i.create(I.slice(2,4))),this._des3=m.createEncryptor(i.create(I.slice(4,6)))},encryptBlock:function(S,I){this._des1.encryptBlock(S,I),this._des2.decryptBlock(S,I),this._des3.encryptBlock(S,I)},decryptBlock:function(S,I){this._des3.decryptBlock(S,I),this._des2.encryptBlock(S,I),this._des1.decryptBlock(S,I)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(x)}(),n.TripleDES})}(Fm)),Fm.exports}var Bm={exports:{}},Nm;function moe(){return Nm||(Nm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,l=s.RC4=i.extend({_doReset:function(){for(var p=this._key,g=p.words,h=p.sigBytes,m=this._S=[],v=0;v<256;v++)m[v]=v;for(var v=0,b=0;v<256;v++){var x=v%h,S=g[x>>>2]>>>24-x%4*8&255;b=(b+m[v]+S)%256;var I=m[v];m[v]=m[b],m[b]=I}this._i=this._j=0},_doProcessBlock:function(p,g){p[g]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var p=this._S,g=this._i,h=this._j,m=0,v=0;v<4;v++){g=(g+1)%256,h=(h+p[g])%256;var b=p[g];p[g]=p[h],p[h]=b,m|=p[(p[g]+p[h])%256]<<24-v*8}return this._i=g,this._j=h,m}r.RC4=i._createHelper(l);var u=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)d.call(this)}});r.RC4Drop=i._createHelper(u)}(),n.RC4})}(Bm)),Bm.exports}var $m={exports:{}},Vm;function voe(){return Vm||(Vm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,l=[],d=[],u=[],p=s.Rabbit=i.extend({_doReset:function(){for(var h=this._key.words,m=this.cfg.iv,v=0;v<4;v++)h[v]=(h[v]<<8|h[v]>>>24)&16711935|(h[v]<<24|h[v]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],x=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)x[v]^=b[v+4&7];if(m){var S=m.words,I=S[0],w=S[1],T=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M=T>>>16|P&4294901760,j=P<<16|T&65535;x[0]^=T,x[1]^=M,x[2]^=P,x[3]^=j,x[4]^=T,x[5]^=M,x[6]^=P,x[7]^=j;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(h,m){var v=this._X;g.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var b=0;b<4;b++)l[b]=(l[b]<<8|l[b]>>>24)&16711935|(l[b]<<24|l[b]>>>8)&4278255360,h[m+b]^=l[b]},blockSize:128/32,ivSize:64/32});function g(){for(var h=this._X,m=this._C,v=0;v<8;v++)d[v]=m[v];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var v=0;v<8;v++){var b=h[v]+m[v],x=b&65535,S=b>>>16,I=((x*x>>>17)+x*S>>>15)+S*S,w=((b&4294901760)*b|0)+((b&65535)*b|0);u[v]=I^w}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.Rabbit=i._createHelper(p)}(),n.Rabbit})}($m)),$m.exports}var zm={exports:{}},Wm;function yoe(){return Wm||(Wm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,l=[],d=[],u=[],p=s.RabbitLegacy=i.extend({_doReset:function(){var h=this._key.words,m=this.cfg.iv,v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var x=0;x<4;x++)g.call(this);for(var x=0;x<8;x++)b[x]^=v[x+4&7];if(m){var S=m.words,I=S[0],w=S[1],T=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M=T>>>16|P&4294901760,j=P<<16|T&65535;b[0]^=T,b[1]^=M,b[2]^=P,b[3]^=j,b[4]^=T,b[5]^=M,b[6]^=P,b[7]^=j;for(var x=0;x<4;x++)g.call(this)}},_doProcessBlock:function(h,m){var v=this._X;g.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var b=0;b<4;b++)l[b]=(l[b]<<8|l[b]>>>24)&16711935|(l[b]<<24|l[b]>>>8)&4278255360,h[m+b]^=l[b]},blockSize:128/32,ivSize:64/32});function g(){for(var h=this._X,m=this._C,v=0;v<8;v++)d[v]=m[v];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var v=0;v<8;v++){var b=h[v]+m[v],x=b&65535,S=b>>>16,I=((x*x>>>17)+x*S>>>15)+S*S,w=((b&4294901760)*b|0)+((b&65535)*b|0);u[v]=I^w}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.RabbitLegacy=i._createHelper(p)}(),n.RabbitLegacy})}(zm)),zm.exports}(function(e,t){(function(n,r,o){e.exports=r(rt(),M3(),Zre(),Xre(),Ia(),Oa(),mp(),YC(),Qre(),KC(),Jre(),eoe(),toe(),vp(),noe(),ss(),gn(),roe(),ooe(),ioe(),soe(),aoe(),loe(),coe(),uoe(),doe(),foe(),poe(),hoe(),goe(),moe(),voe(),yoe())})(et,function(n){return n})})(Kre);var ZC=(e=>(e.GOOGLE="google",e))(ZC||{});function boe(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[o,i]=O.useState(!1),s=O.useRef(n);s.current=n;const l=O.useRef(r);return l.current=r,O.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",d.async=!0,d.defer=!0,d.nonce=t,d.onload=()=>{var u;i(!0),(u=s.current)===null||u===void 0||u.call(s)},d.onerror=()=>{var u;i(!1),(u=l.current)===null||u===void 0||u.call(l)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[t]),o}const XC=O.createContext(null);function Coe({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:o}){const i=boe({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),s=O.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return O.createElement(XC.Provider,{value:s},o)}function xoe(){const e=O.useContext(XC);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function woe(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const Soe={large:40,medium:32,small:20};function Aoe({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:r,type:o="standard",theme:i="outline",size:s="large",text:l,shape:d,logo_alignment:u,width:p,locale:g,click_listener:h,containerProps:m,...v}){const b=O.useRef(null),{clientId:x,scriptLoadedSuccessfully:S}=xoe(),I=O.useRef(e);I.current=e;const w=O.useRef(t);w.current=t;const T=O.useRef(r);return T.current=r,O.useEffect(()=>{var P,M,j,D,N,k,_,U,H;if(S)return(j=(M=(P=window==null?void 0:window.google)===null||P===void 0?void 0:P.accounts)===null||M===void 0?void 0:M.id)===null||j===void 0||j.initialize({client_id:x,callback:G=>{var Y;if(!(G!=null&&G.credential))return(Y=w.current)===null||Y===void 0?void 0:Y.call(w);const{credential:V,select_by:Z}=G;I.current({credential:V,clientId:woe(G),select_by:Z})},...v}),(k=(N=(D=window==null?void 0:window.google)===null||D===void 0?void 0:D.accounts)===null||N===void 0?void 0:N.id)===null||k===void 0||k.renderButton(b.current,{type:o,theme:i,size:s,text:l,shape:d,logo_alignment:u,width:p,locale:g,click_listener:h}),n&&((H=(U=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||U===void 0?void 0:U.id)===null||H===void 0||H.prompt(T.current)),()=>{var G,Y,V;n&&((V=(Y=(G=window==null?void 0:window.google)===null||G===void 0?void 0:G.accounts)===null||Y===void 0?void 0:Y.id)===null||V===void 0||V.cancel())}},[x,S,n,o,i,s,l,d,u,p,g]),O.createElement("div",{...m,ref:b,style:{height:Soe[s],...m==null?void 0:m.style}})}function QC({setLoading:e}){const n=E.useTheme().palette.mode==="dark",r=ne.useAuthProvider(),o=ne.useNotify(),i=ut.useNavigate(),[s,l]=O.useState(395),d=O.useRef(null);O.useEffect(()=>{const g=Qe.debounce(()=>{d!=null&&d.current&&l(d.current.offsetWidth)},100);return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g),g.cancel()}},[d]);function u(g){e(!0),r.thirdPartyLogin({provider:ZC.GOOGLE,payload:{credential:g.credential}}).then(()=>{e(!1),i("/")}).catch(h=>{e(!1),o(typeof h=="string"?h:typeof h>"u"||!h.message?"ra.auth.sign_in_error":h.message,{type:"error",messageArgs:{_:typeof h=="string"?h:h&&h.message?h.message:void 0}})})}function p(){o("ra.auth.sign_in_error",{type:"error"})}return f.jsx(E.Box,{sx:{colorScheme:n?"light":"dark",width:"100%"},ref:d,children:f.jsx(Aoe,{theme:"outline",width:s,onSuccess:u,onError:p})})}function Eoe({label:e="ra.auth.sign_in",redirect:t="/",...n}){const r=z.useRecordContext(),[o,i]=O.useState(!1),s=z.useAuthProvider(),l=O.useCallback(d=>{d.stopPropagation(),d.preventDefault(),i(!0),s.impersonate(r==null?void 0:r.id).then(()=>{i(!1),document.location.href=t})},[s,r==null?void 0:r.id,t]);return f.jsx(z.Button,{disabled:o||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:l,...n,children:f.jsx(Vt.VpnKey,{})})}const Toe=a1(z.SimpleForm,{slot:"Root"})(({theme:e})=>({[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}}));function yp({title:e,modal:t=!1,content:n=!1,subheader:r=null,toolbar:o=f.jsx(gi,{children:f.jsx(z.SaveButton,{type:"button"})}),secondary:i=f.jsx(ui,{children:f.jsx(is,{})}),sx:s,...l}){const d=fp(e),u=z.useRecordContext(),p=Y6();return f.jsx(Nn,{content:n,title:d,subheader:r,secondary:u!=null&&u.id?i:null,sx:{...s,"& .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(Toe,{toolbar:o,...l})})}const JC={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}`)}},ex=O.createContext(JC);function Ioe(e){const[t,n]=O.useState(JC);function r(s,l){n(d=>({...d,openDialogs:[...d.openDialogs,s]})),l&&l()}function o(s,l){n(d=>({...d,openDialogs:d.openDialogs.filter(u=>u!==s)})),l&&l()}function i(){return t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null}return f.jsx(ex.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:i},children:e.children})}function tx(){const e=O.useContext(ex);if(e===void 0)throw new Error("useAppState must be used within an AppStateProvider");return e}function bp(){return tx()}function nx({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:s=!1,fullWidth:l,...d}){const u=dn.useTheme(),{getCurrentDialog:p}=bp(),{source:g,resource:h,isRequired:m}=d,{getFieldState:v,formState:b}=fn.useFormContext(),{error:x}=v(g,b),S=p();return f.jsxs(E.Stack,{spacing:1,sx:{"& .MuiFormHelperText-root":{color:x?u.palette.error.main:u.palette.text.secondary,"& span":{display:"none"}},width:l?"100%":"auto",...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(E.InputLabel,{error:!!x,sx:{borderBottom:s?`1px solid ${u.palette.divider}`:"none",pb:s?1:0,mt:s?1:0,pt:1},children:f.jsx(z.FieldTitle,{label:e,source:g,resource:S||h,isRequired:m})}),O.isValidElement(t)?O.cloneElement(t,{...t.props,...d,label:n==="legend"?e:!1}):t,n==="label"&&r?f.jsx(E.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:!!x,children:r}):null]})}const Ooe=ge(z.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 Poe({label:e,addLabel:t,source:n,helperText:r,divider:o=!0,...i}){return f.jsx(nx,{label:e,addLabel:t,source:n,helperText:r,divider:o,fullWidth:i==null?void 0:i.fullWidth,children:f.jsx(Ooe,{source:n,label:!1,...i})})}function joe({canEdit:e=!0,canDelete:t=!0,canClone:n=!1}){return!e&&!t&&!n?null:f.jsxs(ui,{children:[e?f.jsx(z.EditButton,{}):null,t?f.jsx(is,{}):null,n?f.jsx(z.CloneButton,{}):null]})}const Um=ge("div",{overridesResolver:(e,t)=>t.root})({display:"inline-block"}),Roe=ge("ul")({display:"inline-block"});function Moe(e){var p;const{className:t,emptyText:n,source:r,title:o,...i}=e,s=ne.useRecordContext(e),l=Qe.get(s,r),d=ne.useTranslate();if(!l)return n?f.jsx(E.Typography,{component:"span",variant:"body2",className:t,...i,children:n?d(n,{_:n}):null}):f.jsx(Um,{className:t,...i});if(Array.isArray(l))return f.jsx(Roe,{className:t,...i,children:l.map((g,h)=>{var v;const m=o instanceof String?(v=Qe.get(g,o))==null?void 0:v.toString():o;return f.jsx("li",{children:m},h)})});const u=o instanceof String?(p=Qe.get(s,o))==null?void 0:p.toString():o;return f.jsx(Um,{className:t,...i,children:u})}function rx({entityId:e,property:t,disabled:n,showUser:r=!1,userResource:o="entities/user",resource:i,...s}){const[l,d]=O.useState(null),u=z.useRecordContext(s),p=z.useDataProvider(),g=z.useResourceContext(),h=z.useNotify(),m=O.useCallback(async x=>{x.preventDefault(),x.stopPropagation(),h("ra.notification.download",{type:"info"});const S=Qe.get(u,s==null?void 0:s.source),I=(i||g).replace("entities/",""),w=e||(u==null?void 0:u.id),T=await p.getFile(`/attachments/${I}/${w}/${t||(s==null?void 0:s.source)}/${(S==null?void 0:S.id)||(u==null?void 0:u.id)}`),P=document.createElement("a");P.href=T,P.download=Qe.get(u,(s==null?void 0:s.title)||(s==null?void 0:s.source)),P.click()},[p,u,e,g,i,t,s==null?void 0:s.source,s==null?void 0:s.title,h]),v=O.useMemo(()=>({...u,[s==null?void 0:s.source]:(u==null?void 0:u.src)||Qe.get(u,s==null?void 0:s.source),[s==null?void 0:s.title]:(u==null?void 0:u.title)||Qe.get(u,(s==null?void 0:s.title)||(s==null?void 0:s.source))}),[u,s==null?void 0:s.source,s==null?void 0:s.title]),b=z.useTranslate();return O.useEffect(()=>{!u||!(u!=null&&u.userId)||r===!1||p.getOne(o,{id:u==null?void 0:u.userId}).then(({data:x})=>d(x)).catch(()=>d(null))},[u,p,o,r]),f.jsx(Moe,{...s,disabled:n,record:v,onClick:m,title:f.jsxs(E.Box,{sx:{cursor:"pointer"},children:[f.jsx(E.Typography,{variant:"subtitle1",children:Qe.get(v,(s==null?void 0:s.title)||(s==null?void 0:s.source))}),f.jsxs(E.Typography,{variant:"caption",color:"secondary",children:[Qe.get(v,"sizeDescription"),r&&l?" | ":null,r&&l?b("ra.attachment.info",{user:l==null?void 0:l.name,created:Br(v==null?void 0:v.createdAt).format("DD/MM/YYYY HH:mm")}):null]})]})})}const koe=ge(z.ImageField,{slot:"root"})(()=>({}));function ox(e){const t=`_${e==null?void 0:e.source}`;return f.jsx(koe,{...e,source:t})}function ix({width:e=150,height:t=150,circle:n=!1,justify:r="flex-start",record:o,sx:i,...s}){const l=O.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]),d=z.useRecordContext(),u=o||d;return f.jsx(ox,{sx:p=>({margin:0,display:"flex",justifyContent:r,"& img":{margin:"0px !important",border:`1px solid ${p.palette.divider}`,objectFit:"cover !important",...l,minWidth:l.width,minHeight:l.height}}),...s,record:u})}var _oe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pn,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])+"]"}}})})(_oe);var Doe={exports:{}};(function(e,t){(function(n,r){e.exports=r(LC)})(Pn,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}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(s){return s+"º"}};return o.default.locale(i,null,!0),i})})(Doe);var sx={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pn,function(){return function(n,r,o){n=n||{};var i=r.prototype,s={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 l(u,p,g,h){return i.fromToBase(u,p,g,h)}o.en.relativeTime=s,i.fromToBase=function(u,p,g,h,m){for(var v,b,x,S=g.$locale().relativeTime||s,I=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"}],w=I.length,T=0;T<w;T+=1){var P=I[T];P.d&&(v=h?o(u).diff(g,P.d,!0):g.diff(u,P.d,!0));var M=(n.rounding||Math.round)(Math.abs(v));if(x=v>0,M<=P.r||!P.r){M<=1&&T>0&&(P=I[T-1]);var j=S[P.l];m&&(M=m(""+M)),b=typeof j=="string"?j.replace("%d",M):j(M,p,P.l,x);break}}if(p)return b;var D=x?S.future:S.past;return typeof D=="function"?D(b):D.replace("%s",b)},i.to=function(u,p){return l(u,p,this,!0)},i.from=function(u,p){return l(u,p,this)};var d=function(u){return u.$u?o.utc():o()};i.toNow=function(u){return this.to(d(this),u)},i.fromNow=function(u){return this.from(d(this),u)}}})})(sx);var Foe=sx.exports;const Loe=Nr(Foe);Br.extend(Loe);function ax(e){const t=z.useRecordContext(e),[n]=z.useLocaleState(),r=O.useMemo(()=>Br(Qe.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(z.DateField,{record:t,source:e.source,showTime:!0}),f.jsx("br",{}),f.jsx(E.Typography,{variant:"caption",color:"textSecondary",children:r})]})}const Boe=ge(z.DateField,{slot:"Root"})(()=>({}));function Noe({variant:e="body1",...t}){return f.jsx(Boe,{...t,variant:e})}const $oe=ge(z.EmailField,{slot:"Root"})(()=>({}));function Voe({variant:e="body1",...t}){return f.jsx($oe,{...t,variant:e})}const zoe=ge(z.FileField,{slot:"root"})(()=>({}));function lx({...e}){const t=z.useRecordContext(e),n=O.useCallback(r=>{r.preventDefault(),r.stopPropagation();const o=Qe.get(t,`_${e==null?void 0:e.source}`,Qe.get(t,e==null?void 0:e.source)),i=Qe.get(t,(e==null?void 0:e.title)||(e==null?void 0:e.source))||(e==null?void 0:e.title),s=document.createElement("a");s.href=o,s.download=i,s.click()},[e==null?void 0:e.source,t,e==null?void 0:e.title]);return f.jsx(zoe,{...e,record:t,onClick:n})}function $0({variant:e="body1",...t}){return f.jsx(z.FunctionField,{...t,variant:e})}function cx(e){var g;const{resource:t,source:n}=e,r=z.useDataProvider(),o=z.useResourceContext(),i=J.isNil(t)?(g=o==null?void 0:o.match(new RegExp("(?<=\\/)[^\\/]+$")))==null?void 0:g[0]:t,s=z.useRecordContext(e),l=s==null?void 0:s.id,d=s==null?void 0:s[n??""],[u,p]=O.useState(null);return O.useEffect(()=>{if(J.isNil(d)||J.isNil(r)||J.isNil(i)||J.isNil(l)||J.isNil(n))return;const h=`/attachments/${i}/${l}/${n}/`;function m(v){return r.getFile(`${h}${v==null?void 0:v.id}`).then(b=>({url:b,title:v==null?void 0:v.name}))}J.isArray(d)?Promise.all(d.map(m)).then(v=>{p({image:v})}):m(d).then(v=>{p({image:v})})},[d,r,i,l,n]),J.isNil(u)?null:f.jsx(z.ImageField,{...e,src:"url",source:J.isArray(d)?"image":"image.url",title:"image.title",record:u})}const Woe=ge(z.TextField,{slot:"Root"})(()=>({}));function ux({variant:e="body1",...t}){return f.jsx(Woe,{...t,variant:e})}function Uoe(e){const t=E.useTheme(),n=ne.useLocales(),{source:r=""}=e,i=ne.useRecordContext(e)[r],s=!ku(i,n),l=$r(e,{flex:1}),[d]=ne.useLocaleState(),u=O.useMemo(()=>s?f.jsx(He.FlagFilled,{style:{color:t.palette.warning.main}}):f.jsx(He.FlagOutlined,{}),[s,t.palette.warning.main]),p=O.useMemo(()=>f.jsx(E.Stack,{children:J.map(n,(g,h)=>f.jsx(E.Typography,{children:`${g.locale.toUpperCase()}: ${(i??{})[g.locale]??""}`},h))}),[i,n]);return f.jsx(b3,{title:p,arrow:!1,children:f.jsxs(E.Stack,{alignItems:"center",direction:"row",gap:1,children:[u,f.jsx(ux,{...e,source:`${r}.${d}`,sx:l})]})})}const Hoe=ge("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 Goe({source:e,defaultValue:t="&nbsp;",...n}){const r=z.useRecordContext(n),o=Qe.get(r,e,t);return f.jsx(E.Typography,{...n,dangerouslySetInnerHTML:{__html:o&&o!==null?o:t}})}function qoe({title:e,children:t}){return t==null?null:typeof e=="string"||e===!0?f.jsx(E.Tooltip,{title:e,placement:"top",children:t}):t}function Yoe({label:e,source:t,defaultValue:n="&nbsp;",children:r=f.jsx(Goe,{source:"",defaultValue:void 0,record:void 0}),tooltip:o,...i}){const s=O.Children.only(r),{getCurrentDialog:l}=tx(),d=z.useRecordContext(i),u=z.useResourceContext(i),p=l(),g=O.useMemo(()=>o===!1?!1:typeof o=="function"?o(d):typeof o=="string"?Qe.get(d,o,o):o,[d,o]),h=$r(i,{width:i!=null&&i.fullWidth?"100%":"auto"});return f.jsx(qoe,{title:g,children:f.jsxs(f.Fragment,{children:[f.jsx(E.InputLabel,{sx:{pt:1},children:f.jsx(z.FieldTitle,{label:e,source:t,resource:p||u})}),f.jsx(Hoe,{...i,children:O.isValidElement(s)?O.cloneElement(s,{...s.props,source:t,record:d,defaultValue:n,resource:p||u,sx:h}):null})]})})}function Koe({children:e=null,className:t=""}){return f.jsx("div",{className:t,children:e})}const Zoe=a1(Koe,{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 dx(e){return f.jsx(Zoe,{...e,children:f.jsx(z.ReferenceManyField,{pagination:f.jsx(z.Pagination,{}),...e})})}function Xoe({source:e,...t}){const n=z.useRecordContext(t),r=Qe.get(n,e,0),o=r/1024,i=o/1024,s=i/1024,l=s>1?`${s.toFixed(2)} GB`:i>1?`${i.toFixed(2)} MB`:o>1?`${o.toFixed(2)} KB`:`${r.toFixed(2)} B`;return f.jsx(E.Typography,{component:"span",variant:"body1",...t,children:l})}function on({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:s=!1,...l}){const d=wt(),{getCurrentDialog:u}=bp(),{source:p,resource:g,isRequired:h,chip:m}=l,{fieldState:{invalid:v}}=z.useInput(l),b=u();return f.jsxs(E.Stack,{spacing:1,sx:{width:l!=null&&l.fullWidth?"100%":"auto","& .MuiFormHelperText-root":{pb:0,color:v?d.palette.error.main:d.palette.text.secondary,"& span":{display:"none"}},...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(E.InputLabel,{error:v===!0,sx:{borderBottom:s?`1px solid ${d.palette.divider}`:"none",pt:.5,pb:s?1:0,mt:s?1:0},children:f.jsx(z.FieldTitle,{label:e,source:p,resource:b||g,isRequired:h})}),O.isValidElement(t)?O.cloneElement(t,{...t.props,...l,chip:m&&typeof m=="function"?O.createElement(m):m,label:n==="legend"?e:!1}):t,r?f.jsx(E.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:v===!0,children:r}):null]})}function Qoe(e){return e?{"& .RaFileInput-removeButton > .RaFileInputPreview-removeButton":{display:"none",visiblity:"hidden"},"& .RaFileInput-dropZone":{display:"none",visiblity:"hidden"}}:{}}const Joe=ge(z.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}},...Qoe(e)}));function fx({children:e=f.jsx(rx,{title:"name",source:"path"}),multiple:t=!1,disabled:n=!1,type:r="attachment",...o}){const i=z.useRecordContext(o),s=o==null?void 0:o.source,l=i==null?void 0:i.id;return z.useInput({source:`__${r}__${o==null?void 0:o.source}`,defaultValue:o==null?void 0:o.source}),f.jsx(on,{...o,disabled:n,children:f.jsx(Joe,{type:r,multiple:t,disabled:n,children:O.cloneElement(e,{entityId:l,property:s,...e.props})})})}const eie=ge(z.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 tie({size:e="small",...t}){return f.jsx(on,{...t,children:f.jsx(eie,{size:e})})}const nie=ge(z.AutocompleteInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"}}));function rie({size:e="small",...t}){const{perPage:n,...r}=t;return f.jsx(on,{...r,children:f.jsx(nie,{size:e})})}const oie=ge(z.BooleanInput,{slot:"Root"})(()=>({marginTop:"0 !important"}));function iie({...e}){const t=dn.useTheme();return f.jsx(on,{...e,children:f.jsx(oie,{sx:{"& .MuiFormControlLabel-root":{marginLeft:"0 !important",marginRight:"0 !important"},"& .MuiSwitch-root":{margin:"0 !important",marginRight:"6px !important",marginTop:e.display==="legend"?0:`${t.spacing(1)} !important`}}})})}const sie=4,aie=ge(z.DateInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function lie(e){const[t,n]=O.useState(""),r=O.useCallback(o=>{const i=o.target.value;Br(i).year().toString().length>sie?o.target.value=t:n(i)},[t]);return f.jsx(on,{...e,children:f.jsx(aie,{...e,onInput:r})})}const cie=ge(z.DateTimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function uie(e){return f.jsx(on,{...e,children:f.jsx(cie,{})})}const die=ge(z.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 fie({children:e=f.jsx(lx,{source:"",title:""}),title:t,...n}){const r=fn.useWatch({name:n.source}),o=z.useRecordContext(n),{source:i}=n,s=O.useMemo(()=>{if(r&&(r!=null&&r.title))return r==null?void 0:r.title;const l=Qe.get(o,i);if(l){const d=l.split("__");return d.length>0?d[d.length-1]:l}return l},[o,i,r]);return f.jsx(on,{...n,children:f.jsx(die,{children:O.cloneElement(e,{...e.props,title:t||i,source:i,record:{...o,[i]:(r==null?void 0:r.title)||Qe.get(o,i),[`_${i}`]:(r==null?void 0:r.src)||Qe.get(o,`_${i}`),[t||i]:s}})})})}function pie(e){const{source:t}=e,n=ne.useRecordContext(e),{id:r}=n??{};return f.jsx(fx,{...e,children:f.jsx(hie,{entityId:String(r),source:t})})}function hie(e){const t=ne.useRecordContext();return J.isNil(t==null?void 0:t.rawFile)?f.jsx(gie,{...e}):f.jsx(J2,{...e,title:"title",source:"src"})}function gie(e){const{entityId:t,...n}=e,r=e.source??"",o=ne.useRecordContext(),[i,s]=O.useState(r?{id:t,[r]:o}:{id:t});return O.useEffect(()=>{s({id:t,[r]:o})},[o,t,r]),f.jsx(ne.RecordContextProvider,{value:i,children:f.jsx(cx,{...n})})}function mie({children:e=f.jsx(ix,{}),title:t,multiple:n=!1,...r}){const o=fn.useWatch({name:r.source}),i=z.useRecordContext(r),{source:s}=r;return z.useInput({source:`__image__${r==null?void 0:r.source}`,defaultValue:r==null?void 0:r.source}),f.jsx(on,{...r,multiple:n,children:f.jsx(z.ImageInput,{accept:"image/*",children:O.cloneElement(e,{...e.props,title:t,source:s,record:{...i,[s]:(o==null?void 0:o.title)||Qe.get(i,s),[`_${s}`]:(o==null?void 0:o.src)||Qe.get(i,`_${s}`)}})})})}function Sr(e){return f.jsx(on,{...e,children:f.jsx(z.TextInput,{})})}const vie={vertical:"bottom",horizontal:"right"},yie={vertical:"top",horizontal:"right"};function bie({requiredAtLeastOneLocale:e,requiredLocale:t,validate:n,required:r,...o}){const{source:i}=o,s=ne.useLocales(),l=O.useCallback((M="ra.validation.required",j="ra.validation.required_locale")=>D=>{if(e&&!t&&!_C(D,s))return M;if(t&&(!J.has(D,t)||J.isEmpty(J.get(D,t))))return{message:j,args:{locale:t}};if(!e&&r&&!ku(D,s))return M},[e,t,s,r]),d=O.useMemo(()=>ne.composeValidators(n,l()),[n,l]),{fieldState:u}=ne.useInput({...o,validate:d}),{error:p}=u,g=fn.useWatch({name:i}),h=!ku(g,s),[m]=ne.useLocaleState(),[v,b]=O.useState(m),[x,S]=O.useState(null),I=!!x,w=O.useCallback(M=>S(I?null:M.currentTarget),[I,S]),T=O.useCallback(()=>S(null),[S]),P=O.useMemo(()=>J.map(s,(M,j)=>f.jsx(E.MenuItem,{onClick:()=>{b(M.locale),T()},children:f.jsx(E.ListItemText,{primary:`${M.locale.toUpperCase()}: ${(g??{})[M.locale]??""}`})},j)),[s,b,T,g]);return f.jsx(on,{...o,validate:d,helperText:p!=null&&p.message?f.jsx(ne.ValidationError,{error:p==null?void 0:p.message}):o==null?void 0:o.helperText,children:f.jsx(f.Fragment,{children:f.jsxs(E.Box,{flex:1,children:[J.map(s,(M,j)=>f.jsx(Sr,{...o,source:`${i}.${M.locale}`,sx:{width:"100%",display:M.locale===v?"inline-flex":"none"},label:!1,helperText:!1,required:!1,InputProps:{endAdornment:f.jsx(E.Chip,{label:f.jsx(E.Typography,{variant:"button",children:v}),size:"small",onClick:w,color:h?"warning":void 0})}},j)),f.jsx(E.Menu,{anchorEl:x,open:I,anchorOrigin:vie,transformOrigin:yie,onClose:T,children:P})]})})})}const Cie=ge(z.NumberInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function xie(e){return f.jsx(on,{...e,children:f.jsx(Cie,{})})}const wie=ge(z.RadioButtonGroupInput,{slot:"root"})(()=>({marginTop:"0 !important","& .MuiFormControlLabel-root":{marginLeft:-8}}));function Sie(e){return f.jsx(on,{...e,children:f.jsx(wie,{})})}function Aie({source:e,minWidth:t=300,children:n}){const r=z.useResourceContext(),o=z.useRecordContext(),[i,s]=O.useState(Qe.get(o,e,"")),[l,d]=O.useState(!1),u=O.useCallback(v=>s(v.target.value),[]),p=z.useDataProvider(),g=O.useCallback(v=>{v.key==="Enter"&&(d(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>d(!1)))},[i,p,r,o,e]),h=O.useCallback(()=>{Qe.get(o,e)!==i&&(d(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>d(!1)))},[i,p,r,e,o]),m=O.useCallback(v=>{d(!0),p.update(r,{id:o.id,data:{...o,[e]:v,_changed:e},previousData:o}).then(()=>d(!1))},[p,r,e,o]);return O.useEffect(()=>s(Qe.get(o,e)),[o,e]),n?O.cloneElement(n,{...n.props,source:e,value:i,onChange:m}):f.jsx(E.TextField,{value:i,disabled:l,onChange:u,onKeyPress:g,onBlur:h,style:{minWidth:t,width:"100%"},multiline:!0,InputProps:{"arial-label":"naked"},size:"small"})}function Eie({children:e,...t}){const n=O.Children.only(e);return f.jsx(z.ReferenceArrayInput,{...t,children:O.cloneElement(n,{...t,source:n.props.source||t.source})})}function Tie({children:e,...t}){const n=O.Children.only(e);return f.jsx(z.ReferenceInput,{...t,children:O.cloneElement(n,{...t,source:n.props.source||t.source})})}const Iie=ge(z.SearchInput,{slot:"root"})(()=>({}));function Cp(e){return f.jsx(Iie,{...e})}const xp=O.memo(e=>{const{page:t,rowsPerPage:n,count:r,onPageChange:o,size:i="small",className:s,...l}=e,d=ne.useTranslate(),u=Math.ceil(r/n)||1;if(u===1)return f.jsx(Hm,{className:s});function p(g,h,m){return g==="page"?m?d("ra.navigation.current_page",{page:h,_:`page ${h}`}):d("ra.navigation.page",{page:h,_:`Go to page ${h}`}):d(`ra.navigation.${g}`,{_:`Go to ${g} page`})}return f.jsx(Hm,{className:s,children:f.jsx(E.Pagination,{size:i,count:u,page:t+1,onChange:(g,h)=>o(g,h-1),...Pie(l),getItemAriaLabel:p})})});xp.propTypes={count:C.number.isRequired,onPageChange:C.func.isRequired,page:C.number.isRequired,rowsPerPage:C.number.isRequired,color:C.oneOf(["primary","secondary","standard"]),size:C.oneOf(["small","medium","large"])};const Oie="RaPaginationActions",Hm=ge("div",{name:Oie,overridesResolver:e=>e.root})(()=>({flexShrink:0,ml:4}));function Pie({nextIconButtonProps:e,backIconButtonProps:t,slotProps:n,...r}){return r}const k3=O.memo(e=>{const{rowsPerPageOptions:t=jie,actions:n,limit:r=null,...o}=e,{isLoading:i,hasNextPage:s,page:l,perPage:d,total:u,setPage:p,setPerPage:g}=ne.useListPaginationContext(e),h=ne.useTranslate(),m=E.useMediaQuery(_=>_.breakpoints.down("md")),[v,b]=O.useState(l-1),{hasCreate:x}=ne.useResourceDefinition(e),[S,I]=O.useState(!1),w=E.useTheme();O.useEffect(()=>{l!==v+1&&!S&&b(l-1)},[v,S,l]),O.useEffect(()=>{I(!1)},[l]);const T=O.useMemo(()=>u!=null?Math.ceil(u/d):void 0,[d,u]),P=O.useCallback(Qe.debounce(_=>{p(_+1)},500),[p]),M=O.useCallback((_,U)=>{var Y,V;if(!_)return;if(_.preventDefault(),U<0||T!==void 0&&U>T-1)throw new Error(h("ra.navigation.page_out_of_boundaries",{page:U+1}));const H=(((Y=_.target.dataset)==null?void 0:Y.testid)||((V=_.target.classList)==null?void 0:V.value))??"",G=H.includes("MuiPaginationItem-previousNext")||H.includes("NavigateBeforeIcon")||H.includes("NavigateNextIcon")||H.includes("KeyboardArrowLeftIcon")||H.includes("KeyboardArrowRightIcon");b(U),I(!0),G?P(U):p(U+1)},[P,p,h,T,I]),j=O.useCallback(_=>{g(Number(_.target.value))},[g]),D=O.useCallback(({from:_,to:U,count:H})=>H===-1&&s?h("ra.navigation.partial_page_range_info",{offsetBegin:_,offsetEnd:U,_:"%{from}-%{to} of more than %{to}"}):h("ra.navigation.page_range_info",{offsetBegin:_,offsetEnd:U,total:H===-1?U:H,_:"%{from}-%{to} of %{count === -1 ? to : count}"}),[h,s]),N=O.useCallback(_=>h(`ra.navigation.${_}`,{_:`Go to ${_} page`}),[h]);if(i)return f.jsx(E.Toolbar,{variant:"dense"});if(u===0||l<1||T!==void 0&&l>T)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(m)return f.jsx(E.TablePagination,{count:u??-1,rowsPerPage:d,page:v,onPageChange:M,rowsPerPageOptions:Rie,component:"span",labelDisplayedRows:D,sx:{justifyContent:x?"flex-start":"flex-end",display:x?"flex":"block",...e.displayStyle!=="text"&&{".MuiTablePagination-actions":{display:"flex",flexDirection:"row",gap:"4px"},"& button":{border:`1px solid ${w.palette.divider}`}}},...ne.sanitizeListRestProps(o)});const k=n||(!i&&u!=null?xp:void 0);return f.jsx(E.TablePagination,{count:u??-1,rowsPerPage:d,page:v,onPageChange:M,onRowsPerPageChange:j,ActionsComponent:k,nextIconButtonProps:{disabled:!s},component:"span",labelRowsPerPage:h("ra.navigation.page_rows_per_page"),labelDisplayedRows:D,getItemAriaLabel:N,rowsPerPageOptions:t,sx:e.displayStyle!=="text"?{".MuiInputBase-root":{border:`1px solid ${w.palette.divider}`,borderRadius:"4px"},".MuiTablePagination-spacer":{display:"none"},".MuiTablePagination-selectLabel":{color:w.palette.text.secondary},".MuiTablePagination-actions":{flex:1,position:"absolute",right:24},"& button":{border:`1px solid ${w.palette.divider}`,"&.Mui-selected":{fontSize:"0.875rem",fontWeight:"regular",backgroundColor:"trasparent",border:`1px solid ${w.palette.primary.main}`,color:w.palette.primary.main}}}:{},...ne.sanitizeListRestProps(o)})});k3.propTypes={actions:ne.ComponentPropType,limit:C.element,rowsPerPageOptions:C.arrayOf(C.oneOfType([C.number,C.shape({label:C.string.isRequired,value:C.number.isRequired})]))};const jie=[5,10,25,50],Rie=[];function px(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:i,resource:s,selectedIds:l=[],onUnselectItems:d}=ne.useListContext(e),u=ne.useTranslate(),p=O.useCallback(()=>{d()},[d]);return f.jsx(Mie,{className:r,children:f.jsxs(E.Toolbar,{"data-test":"bulk-actions-toolbar",className:$e(Fr.toolbar,{[Fr.collapsed]:l.length===0}),...ne.sanitizeListRestProps(o),children:[f.jsxs("div",{className:Fr.title,children:[f.jsx(E.IconButton,{className:Fr.icon,"aria-label":u("ra.action.unselect"),title:u("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(Vt.Close,{fontSize:"small"})}),f.jsx(E.Typography,{color:"inherit",variant:"subtitle1",children:u(t,{_:t,smart_count:l.length})})]}),f.jsx(z.TopToolbar,{className:Fr.topToolbar,children:O.Children.map(n,g=>O.isValidElement(g)?O.cloneElement(g,{filterValues:i,resource:s,selectedIds:l}):null)})]})})}const Bi="RaBulkActionsToolbar",Fr={toolbar:`${Bi}-toolbar`,topToolbar:`${Bi}-topToolbar`,buttons:`${Bi}-buttons`,collapsed:`${Bi}-collapsed`,title:`${Bi}-title`,icon:`${Bi}-icon`},Mie=ge("div",{name:Bi,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${Fr.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"?f0(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},[`& .${Fr.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${Fr.buttons}`]:{},[`& .${Fr.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${Fr.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${Fr.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),Ff={p:0,m:0},Gm={p:2,m:0,borderRadius:0,width:"100%"};function kie(e){const{children:t}=e,[n,r]=B.useState(null);function o(v){r(v.currentTarget)}function i(){r(null)}const s=E.useMediaQuery(v=>v.breakpoints.down("md")),{filterValues:l,resource:d,selectedIds:u=[],onUnselectItems:p}=z.useListContext(e),g=!!n&&u!==void 0&&u.length>0,h=g?"simple-popover":void 0,m=B.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(E.Fade,{in:u!==void 0&&u.length>0,children:f.jsxs(E.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(E.Fab,{color:"primary","aria-label":"manage",onClick:o,children:u==null?void 0:u.length}),f.jsx(E.Popover,{id:h,open:g,anchorEl:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:s?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:s?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(E.List,{sx:Ff,children:[f.jsx(E.ListItem,{sx:Ff,children:f.jsx(z.Button,{onClick:m,sx:Gm,label:"ra.action.unselect",startIcon:f.jsx(R0,{}),children:f.jsx(R0,{})})}),B.Children.map(t,v=>{var b;return f.jsx(E.ListItem,{sx:Ff,children:B.isValidElement(v)?B.cloneElement(v,{filterValues:l,resource:d,selectedIds:u,sx:Gm,...(b=v.props)!=null&&b.popover?{closePopover:i}:{}}):null})})]})})]})})}const hx=O.createContext({});hx.displayName="DatagridContext";function _ie({children:e,value:t}){return f.jsx(hx.Provider,{value:t,children:e})}function Die({width:e=250,height:t=250,className:n=""}){return f.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 1600.000000 1600.000000",preserveAspectRatio:"xMidYMid meet",className:n,children:f.jsxs("g",{transform:"translate(0.000000,1600.000000) scale(0.100000,-0.100000)",stroke:"none",children:[f.jsx("path",{d:`M7380 13469 c-469 -10 -920 -27 -1300 -50 -179 -10 -351 -19 -383
237
+ */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function o(l){if((l>>24&255)===255){var d=l>>16&255,u=l>>8&255,p=l&255;d===255?(d=0,u===255?(u=0,p===255?p=0:++p):++u):++d,l=0,l+=d<<16,l+=u<<8,l+=p}else l+=1<<24;return l}function i(l){return(l[0]=o(l[0]))===0&&(l[1]=o(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,d){var u=this._cipher,p=u.blockSize,g=this._iv,h=this._counter;g&&(h=this._counter=g.slice(0),this._iv=void 0),i(h);var m=h.slice(0);u.encryptBlock(m,0);for(var v=0;v<p;v++)l[d+v]^=m[v]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(mm)),mm.exports}var ym={exports:{}},bm;function soe(){return bm||(bm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,u=this._iv,p=this._keystream;u&&(p=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(p,0);for(var g=0;g<d;g++)i[s+g]^=p[g]}});return r.Decryptor=o,r}(),n.mode.OFB})}(ym)),ym.exports}var Cm={exports:{}},xm;function aoe(){return xm||(xm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),r.Decryptor=r.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),r}(),n.mode.ECB})}(Cm)),Cm.exports}var wm={exports:{}},Sm;function loe(){return Sm||(Sm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.AnsiX923={pad:function(r,o){var i=r.sigBytes,s=o*4,l=s-i%s,d=i+l-1;r.clamp(),r.words[d>>>2]|=l<<24-d%4*8,r.sigBytes+=l},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})}(wm)),wm.exports}var Am={exports:{}},Em;function coe(){return Em||(Em=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.Iso10126={pad:function(r,o){var i=o*4,s=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Iso10126})}(Am)),Am.exports}var Tm={exports:{}},Im;function uoe(){return Im||(Im=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.Iso97971={pad:function(r,o){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,o)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Tm)),Tm.exports}var Om={exports:{}},Pm;function doe(){return Pm||(Pm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.ZeroPadding={pad:function(r,o){var i=o*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var o=r.words,i=r.sigBytes-1;!(o[i>>>2]>>>24-i%4*8&255);)i--;r.sigBytes=i+1}},n.pad.ZeroPadding})}(Om)),Om.exports}var jm={exports:{}},Rm;function foe(){return Rm||(Rm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(jm)),jm.exports}var Mm={exports:{}},km;function poe(){return km||(km=1,function(e,t){(function(n,r,o){e.exports=r(rt(),gn())})(et,function(n){return function(r){var o=n,i=o.lib,s=i.CipherParams,l=o.enc,d=l.Hex,u=o.format;u.Hex={stringify:function(p){return p.ciphertext.toString(d)},parse:function(p){var g=d.parse(p);return s.create({ciphertext:g})}}}(),n.format.Hex})}(Mm)),Mm.exports}var _m={exports:{}},Dm;function hoe(){return Dm||(Dm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.BlockCipher,s=r.algo,l=[],d=[],u=[],p=[],g=[],h=[],m=[],v=[],b=[],x=[];(function(){for(var w=[],T=0;T<256;T++)T<128?w[T]=T<<1:w[T]=T<<1^283;for(var P=0,M=0,T=0;T<256;T++){var j=M^M<<1^M<<2^M<<3^M<<4;j=j>>>8^j&255^99,l[P]=j,d[j]=P;var _=w[P],N=w[_],k=w[N],D=w[j]*257^j*16843008;u[P]=D<<24|D>>>8,p[P]=D<<16|D>>>16,g[P]=D<<8|D>>>24,h[P]=D;var D=k*16843009^N*65537^_*257^P*16843008;m[j]=D<<24|D>>>8,v[j]=D<<16|D>>>16,b[j]=D<<8|D>>>24,x[j]=D,P?(P=_^w[w[w[k^_]]],M^=w[w[M]]):P=M=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],I=s.AES=i.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,T=w.words,P=w.sigBytes/4,M=this._nRounds=P+6,j=(M+1)*4,_=this._keySchedule=[],N=0;N<j;N++)if(N<P)_[N]=T[N];else{var k=_[N-1];N%P?P>6&&N%P==4&&(k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255]):(k=k<<8|k>>>24,k=l[k>>>24]<<24|l[k>>>16&255]<<16|l[k>>>8&255]<<8|l[k&255],k^=S[N/P|0]<<24),_[N]=_[N-P]^k}for(var D=this._invKeySchedule=[],U=0;U<j;U++){var N=j-U;if(U%4)var k=_[N];else var k=_[N-4];U<4||N<=4?D[U]=k:D[U]=m[l[k>>>24]]^v[l[k>>>16&255]]^b[l[k>>>8&255]]^x[l[k&255]]}}},encryptBlock:function(w,T){this._doCryptBlock(w,T,this._keySchedule,u,p,g,h,l)},decryptBlock:function(w,T){var P=w[T+1];w[T+1]=w[T+3],w[T+3]=P,this._doCryptBlock(w,T,this._invKeySchedule,m,v,b,x,d);var P=w[T+1];w[T+1]=w[T+3],w[T+3]=P},_doCryptBlock:function(w,T,P,M,j,_,N,k){for(var D=this._nRounds,U=w[T]^P[0],H=w[T+1]^P[1],G=w[T+2]^P[2],Y=w[T+3]^P[3],V=4,Z=1;Z<D;Z++){var W=M[U>>>24]^j[H>>>16&255]^_[G>>>8&255]^N[Y&255]^P[V++],se=M[H>>>24]^j[G>>>16&255]^_[Y>>>8&255]^N[U&255]^P[V++],K=M[G>>>24]^j[Y>>>16&255]^_[U>>>8&255]^N[H&255]^P[V++],$=M[Y>>>24]^j[U>>>16&255]^_[H>>>8&255]^N[G&255]^P[V++];U=W,H=se,G=K,Y=$}var W=(k[U>>>24]<<24|k[H>>>16&255]<<16|k[G>>>8&255]<<8|k[Y&255])^P[V++],se=(k[H>>>24]<<24|k[G>>>16&255]<<16|k[Y>>>8&255]<<8|k[U&255])^P[V++],K=(k[G>>>24]<<24|k[Y>>>16&255]<<16|k[U>>>8&255]<<8|k[H&255])^P[V++],$=(k[Y>>>24]<<24|k[U>>>16&255]<<16|k[H>>>8&255]<<8|k[G&255])^P[V++];w[T]=W,w[T+1]=se,w[T+2]=K,w[T+3]=$},keySize:256/32});r.AES=i._createHelper(I)}(),n.AES})}(_m)),_m.exports}var Fm={exports:{}},Lm;function goe(){return Lm||(Lm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,s=o.BlockCipher,l=r.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=l.DES=s.extend({_doReset:function(){for(var S=this._key,I=S.words,w=[],T=0;T<56;T++){var P=d[T]-1;w[T]=I[P>>>5]>>>31-P%32&1}for(var M=this._subKeys=[],j=0;j<16;j++){for(var _=M[j]=[],N=p[j],T=0;T<24;T++)_[T/6|0]|=w[(u[T]-1+N)%28]<<31-T%6,_[4+(T/6|0)]|=w[28+(u[T+24]-1+N)%28]<<31-T%6;_[0]=_[0]<<1|_[0]>>>31;for(var T=1;T<7;T++)_[T]=_[T]>>>(T-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var k=this._invSubKeys=[],T=0;T<16;T++)k[T]=M[15-T]},encryptBlock:function(S,I){this._doCryptBlock(S,I,this._subKeys)},decryptBlock:function(S,I){this._doCryptBlock(S,I,this._invSubKeys)},_doCryptBlock:function(S,I,w){this._lBlock=S[I],this._rBlock=S[I+1],v.call(this,4,252645135),v.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),v.call(this,1,1431655765);for(var T=0;T<16;T++){for(var P=w[T],M=this._lBlock,j=this._rBlock,_=0,N=0;N<8;N++)_|=g[N][((j^P[N])&h[N])>>>0];this._lBlock=j,this._rBlock=M^_}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,v.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),S[I]=this._lBlock,S[I+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(S,I){var w=(this._lBlock>>>S^this._rBlock)&I;this._rBlock^=w,this._lBlock^=w<<S}function b(S,I){var w=(this._rBlock>>>S^this._lBlock)&I;this._lBlock^=w,this._rBlock^=w<<S}r.DES=s._createHelper(m);var x=l.TripleDES=s.extend({_doReset:function(){var S=this._key,I=S.words;this._des1=m.createEncryptor(i.create(I.slice(0,2))),this._des2=m.createEncryptor(i.create(I.slice(2,4))),this._des3=m.createEncryptor(i.create(I.slice(4,6)))},encryptBlock:function(S,I){this._des1.encryptBlock(S,I),this._des2.decryptBlock(S,I),this._des3.encryptBlock(S,I)},decryptBlock:function(S,I){this._des3.decryptBlock(S,I),this._des2.encryptBlock(S,I),this._des1.decryptBlock(S,I)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(x)}(),n.TripleDES})}(Fm)),Fm.exports}var Bm={exports:{}},Nm;function moe(){return Nm||(Nm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,l=s.RC4=i.extend({_doReset:function(){for(var p=this._key,g=p.words,h=p.sigBytes,m=this._S=[],v=0;v<256;v++)m[v]=v;for(var v=0,b=0;v<256;v++){var x=v%h,S=g[x>>>2]>>>24-x%4*8&255;b=(b+m[v]+S)%256;var I=m[v];m[v]=m[b],m[b]=I}this._i=this._j=0},_doProcessBlock:function(p,g){p[g]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var p=this._S,g=this._i,h=this._j,m=0,v=0;v<4;v++){g=(g+1)%256,h=(h+p[g])%256;var b=p[g];p[g]=p[h],p[h]=b,m|=p[(p[g]+p[h])%256]<<24-v*8}return this._i=g,this._j=h,m}r.RC4=i._createHelper(l);var u=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)d.call(this)}});r.RC4Drop=i._createHelper(u)}(),n.RC4})}(Bm)),Bm.exports}var $m={exports:{}},Vm;function voe(){return Vm||(Vm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,l=[],d=[],u=[],p=s.Rabbit=i.extend({_doReset:function(){for(var h=this._key.words,m=this.cfg.iv,v=0;v<4;v++)h[v]=(h[v]<<8|h[v]>>>24)&16711935|(h[v]<<24|h[v]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],x=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)x[v]^=b[v+4&7];if(m){var S=m.words,I=S[0],w=S[1],T=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M=T>>>16|P&4294901760,j=P<<16|T&65535;x[0]^=T,x[1]^=M,x[2]^=P,x[3]^=j,x[4]^=T,x[5]^=M,x[6]^=P,x[7]^=j;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(h,m){var v=this._X;g.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var b=0;b<4;b++)l[b]=(l[b]<<8|l[b]>>>24)&16711935|(l[b]<<24|l[b]>>>8)&4278255360,h[m+b]^=l[b]},blockSize:128/32,ivSize:64/32});function g(){for(var h=this._X,m=this._C,v=0;v<8;v++)d[v]=m[v];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var v=0;v<8;v++){var b=h[v]+m[v],x=b&65535,S=b>>>16,I=((x*x>>>17)+x*S>>>15)+S*S,w=((b&4294901760)*b|0)+((b&65535)*b|0);u[v]=I^w}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.Rabbit=i._createHelper(p)}(),n.Rabbit})}($m)),$m.exports}var zm={exports:{}},Wm;function yoe(){return Wm||(Wm=1,function(e,t){(function(n,r,o){e.exports=r(rt(),Ia(),Oa(),ss(),gn())})(et,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,l=[],d=[],u=[],p=s.RabbitLegacy=i.extend({_doReset:function(){var h=this._key.words,m=this.cfg.iv,v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var x=0;x<4;x++)g.call(this);for(var x=0;x<8;x++)b[x]^=v[x+4&7];if(m){var S=m.words,I=S[0],w=S[1],T=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,M=T>>>16|P&4294901760,j=P<<16|T&65535;b[0]^=T,b[1]^=M,b[2]^=P,b[3]^=j,b[4]^=T,b[5]^=M,b[6]^=P,b[7]^=j;for(var x=0;x<4;x++)g.call(this)}},_doProcessBlock:function(h,m){var v=this._X;g.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var b=0;b<4;b++)l[b]=(l[b]<<8|l[b]>>>24)&16711935|(l[b]<<24|l[b]>>>8)&4278255360,h[m+b]^=l[b]},blockSize:128/32,ivSize:64/32});function g(){for(var h=this._X,m=this._C,v=0;v<8;v++)d[v]=m[v];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var v=0;v<8;v++){var b=h[v]+m[v],x=b&65535,S=b>>>16,I=((x*x>>>17)+x*S>>>15)+S*S,w=((b&4294901760)*b|0)+((b&65535)*b|0);u[v]=I^w}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}r.RabbitLegacy=i._createHelper(p)}(),n.RabbitLegacy})}(zm)),zm.exports}(function(e,t){(function(n,r,o){e.exports=r(rt(),M3(),Zre(),Xre(),Ia(),Oa(),mp(),YC(),Qre(),KC(),Jre(),eoe(),toe(),vp(),noe(),ss(),gn(),roe(),ooe(),ioe(),soe(),aoe(),loe(),coe(),uoe(),doe(),foe(),poe(),hoe(),goe(),moe(),voe(),yoe())})(et,function(n){return n})})(Kre);var ZC=(e=>(e.GOOGLE="google",e))(ZC||{});function boe(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[o,i]=O.useState(!1),s=O.useRef(n);s.current=n;const l=O.useRef(r);return l.current=r,O.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",d.async=!0,d.defer=!0,d.nonce=t,d.onload=()=>{var u;i(!0),(u=s.current)===null||u===void 0||u.call(s)},d.onerror=()=>{var u;i(!1),(u=l.current)===null||u===void 0||u.call(l)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[t]),o}const XC=O.createContext(null);function Coe({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:o}){const i=boe({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),s=O.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return O.createElement(XC.Provider,{value:s},o)}function xoe(){const e=O.useContext(XC);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function woe(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const Soe={large:40,medium:32,small:20};function Aoe({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:r,type:o="standard",theme:i="outline",size:s="large",text:l,shape:d,logo_alignment:u,width:p,locale:g,click_listener:h,containerProps:m,...v}){const b=O.useRef(null),{clientId:x,scriptLoadedSuccessfully:S}=xoe(),I=O.useRef(e);I.current=e;const w=O.useRef(t);w.current=t;const T=O.useRef(r);return T.current=r,O.useEffect(()=>{var P,M,j,_,N,k,D,U,H;if(S)return(j=(M=(P=window==null?void 0:window.google)===null||P===void 0?void 0:P.accounts)===null||M===void 0?void 0:M.id)===null||j===void 0||j.initialize({client_id:x,callback:G=>{var Y;if(!(G!=null&&G.credential))return(Y=w.current)===null||Y===void 0?void 0:Y.call(w);const{credential:V,select_by:Z}=G;I.current({credential:V,clientId:woe(G),select_by:Z})},...v}),(k=(N=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||N===void 0?void 0:N.id)===null||k===void 0||k.renderButton(b.current,{type:o,theme:i,size:s,text:l,shape:d,logo_alignment:u,width:p,locale:g,click_listener:h}),n&&((H=(U=(D=window==null?void 0:window.google)===null||D===void 0?void 0:D.accounts)===null||U===void 0?void 0:U.id)===null||H===void 0||H.prompt(T.current)),()=>{var G,Y,V;n&&((V=(Y=(G=window==null?void 0:window.google)===null||G===void 0?void 0:G.accounts)===null||Y===void 0?void 0:Y.id)===null||V===void 0||V.cancel())}},[x,S,n,o,i,s,l,d,u,p,g]),O.createElement("div",{...m,ref:b,style:{height:Soe[s],...m==null?void 0:m.style}})}function QC({setLoading:e}){const n=E.useTheme().palette.mode==="dark",r=ne.useAuthProvider(),o=ne.useNotify(),i=ut.useNavigate(),[s,l]=O.useState(395),d=O.useRef(null);O.useEffect(()=>{const g=Qe.debounce(()=>{d!=null&&d.current&&l(d.current.offsetWidth)},100);return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g),g.cancel()}},[d]);function u(g){e(!0),r.thirdPartyLogin({provider:ZC.GOOGLE,payload:{credential:g.credential}}).then(()=>{e(!1),i("/")}).catch(h=>{e(!1),o(typeof h=="string"?h:typeof h>"u"||!h.message?"ra.auth.sign_in_error":h.message,{type:"error",messageArgs:{_:typeof h=="string"?h:h&&h.message?h.message:void 0}})})}function p(){o("ra.auth.sign_in_error",{type:"error"})}return f.jsx(E.Box,{sx:{colorScheme:n?"light":"dark",width:"100%"},ref:d,children:f.jsx(Aoe,{theme:"outline",width:s,onSuccess:u,onError:p})})}function Eoe({label:e="ra.auth.sign_in",redirect:t="/",...n}){const r=z.useRecordContext(),[o,i]=O.useState(!1),s=z.useAuthProvider(),l=O.useCallback(d=>{d.stopPropagation(),d.preventDefault(),i(!0),s.impersonate(r==null?void 0:r.id).then(()=>{i(!1),document.location.href=t})},[s,r==null?void 0:r.id,t]);return f.jsx(z.Button,{disabled:o||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:l,...n,children:f.jsx(Vt.VpnKey,{})})}const Toe=a1(z.SimpleForm,{slot:"Root"})(({theme:e})=>({[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}}));function yp({title:e,modal:t=!1,content:n=!1,subheader:r=null,toolbar:o=f.jsx(gi,{children:f.jsx(z.SaveButton,{type:"button"})}),secondary:i=f.jsx(ui,{children:f.jsx(is,{})}),sx:s,...l}){const d=fp(e),u=z.useRecordContext(),p=Y6();return f.jsx(Nn,{content:n,title:d,subheader:r,secondary:u!=null&&u.id?i:null,sx:{...s,"& .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(Toe,{toolbar:o,...l})})}const JC={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}`)}},ex=O.createContext(JC);function Ioe(e){const[t,n]=O.useState(JC);function r(s,l){n(d=>({...d,openDialogs:[...d.openDialogs,s]})),l&&l()}function o(s,l){n(d=>({...d,openDialogs:d.openDialogs.filter(u=>u!==s)})),l&&l()}function i(){return t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null}return f.jsx(ex.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:i},children:e.children})}function tx(){const e=O.useContext(ex);if(e===void 0)throw new Error("useAppState must be used within an AppStateProvider");return e}function bp(){return tx()}function nx({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:s=!1,fullWidth:l,...d}){const u=dn.useTheme(),p=z.useTranslate(),{getCurrentDialog:g}=bp(),{source:h,resource:m,isRequired:v}=d,{getFieldState:b,formState:x}=fn.useFormContext(),{error:S}=b(h,x),I=g();return f.jsxs(E.Stack,{spacing:1,sx:{"& .MuiFormHelperText-root":{color:S?u.palette.error.main:u.palette.text.secondary,"& span":{display:"none"}},width:l?"100%":"auto",...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(E.InputLabel,{error:!!S,sx:{borderBottom:s?`1px solid ${u.palette.divider}`:"none",pb:s?1:0,mt:s?1:0,pt:1},children:f.jsx(z.FieldTitle,{label:e,source:h,resource:I||m,isRequired:v})}),O.isValidElement(t)?O.cloneElement(t,{...t.props,...d,label:n==="legend"?e:!1}):t,n==="label"&&r?f.jsx(E.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:!!S,children:O.isValidElement(r)?r:typeof r=="string"?p(r,{_:r}):r}):null]})}const Ooe=ge(z.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 Poe({label:e,addLabel:t,source:n,helperText:r,divider:o=!0,...i}){return f.jsx(nx,{label:e,addLabel:t,source:n,helperText:r,divider:o,fullWidth:i==null?void 0:i.fullWidth,children:f.jsx(Ooe,{source:n,label:!1,...i})})}function joe({canEdit:e=!0,canDelete:t=!0,canClone:n=!1}){return!e&&!t&&!n?null:f.jsxs(ui,{children:[e?f.jsx(z.EditButton,{}):null,t?f.jsx(is,{}):null,n?f.jsx(z.CloneButton,{}):null]})}const Um=ge("div",{overridesResolver:(e,t)=>t.root})({display:"inline-block"}),Roe=ge("ul")({display:"inline-block"});function Moe(e){var p;const{className:t,emptyText:n,source:r,title:o,...i}=e,s=ne.useRecordContext(e),l=Qe.get(s,r),d=ne.useTranslate();if(!l)return n?f.jsx(E.Typography,{component:"span",variant:"body2",className:t,...i,children:n?d(n,{_:n}):null}):f.jsx(Um,{className:t,...i});if(Array.isArray(l))return f.jsx(Roe,{className:t,...i,children:l.map((g,h)=>{var v;const m=o instanceof String?(v=Qe.get(g,o))==null?void 0:v.toString():o;return f.jsx("li",{children:m},h)})});const u=o instanceof String?(p=Qe.get(s,o))==null?void 0:p.toString():o;return f.jsx(Um,{className:t,...i,children:u})}function rx({entityId:e,property:t,disabled:n,showUser:r=!1,userResource:o="entities/user",resource:i,...s}){const[l,d]=O.useState(null),u=z.useRecordContext(s),p=z.useDataProvider(),g=z.useResourceContext(),h=z.useNotify(),m=O.useCallback(async x=>{x.preventDefault(),x.stopPropagation(),h("ra.notification.download",{type:"info"});const S=Qe.get(u,s==null?void 0:s.source),I=(i||g).replace("entities/",""),w=e||(u==null?void 0:u.id),T=await p.getFile(`/attachments/${I}/${w}/${t||(s==null?void 0:s.source)}/${(S==null?void 0:S.id)||(u==null?void 0:u.id)}`),P=document.createElement("a");P.href=T,P.download=Qe.get(u,(s==null?void 0:s.title)||(s==null?void 0:s.source)),P.click()},[p,u,e,g,i,t,s==null?void 0:s.source,s==null?void 0:s.title,h]),v=O.useMemo(()=>({...u,[s==null?void 0:s.source]:(u==null?void 0:u.src)||Qe.get(u,s==null?void 0:s.source),[s==null?void 0:s.title]:(u==null?void 0:u.title)||Qe.get(u,(s==null?void 0:s.title)||(s==null?void 0:s.source))}),[u,s==null?void 0:s.source,s==null?void 0:s.title]),b=z.useTranslate();return O.useEffect(()=>{!u||!(u!=null&&u.userId)||r===!1||p.getOne(o,{id:u==null?void 0:u.userId}).then(({data:x})=>d(x)).catch(()=>d(null))},[u,p,o,r]),f.jsx(Moe,{...s,disabled:n,record:v,onClick:m,title:f.jsxs(E.Box,{sx:{cursor:"pointer"},children:[f.jsx(E.Typography,{variant:"subtitle1",children:Qe.get(v,(s==null?void 0:s.title)||(s==null?void 0:s.source))}),f.jsxs(E.Typography,{variant:"caption",color:"secondary",children:[Qe.get(v,"sizeDescription"),r&&l?" | ":null,r&&l?b("ra.attachment.info",{user:l==null?void 0:l.name,created:Br(v==null?void 0:v.createdAt).format("DD/MM/YYYY HH:mm")}):null]})]})})}const koe=ge(z.ImageField,{slot:"root"})(()=>({}));function ox(e){const t=`_${e==null?void 0:e.source}`;return f.jsx(koe,{...e,source:t})}function ix({width:e=150,height:t=150,circle:n=!1,justify:r="flex-start",record:o,sx:i,...s}){const l=O.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]),d=z.useRecordContext(),u=o||d;return f.jsx(ox,{sx:p=>({margin:0,display:"flex",justifyContent:r,"& img":{margin:"0px !important",border:`1px solid ${p.palette.divider}`,objectFit:"cover !important",...l,minWidth:l.width,minHeight:l.height}}),...s,record:u})}var _oe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pn,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])+"]"}}})})(_oe);var Doe={exports:{}};(function(e,t){(function(n,r){e.exports=r(LC)})(Pn,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}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(s){return s+"º"}};return o.default.locale(i,null,!0),i})})(Doe);var sx={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pn,function(){return function(n,r,o){n=n||{};var i=r.prototype,s={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 l(u,p,g,h){return i.fromToBase(u,p,g,h)}o.en.relativeTime=s,i.fromToBase=function(u,p,g,h,m){for(var v,b,x,S=g.$locale().relativeTime||s,I=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"}],w=I.length,T=0;T<w;T+=1){var P=I[T];P.d&&(v=h?o(u).diff(g,P.d,!0):g.diff(u,P.d,!0));var M=(n.rounding||Math.round)(Math.abs(v));if(x=v>0,M<=P.r||!P.r){M<=1&&T>0&&(P=I[T-1]);var j=S[P.l];m&&(M=m(""+M)),b=typeof j=="string"?j.replace("%d",M):j(M,p,P.l,x);break}}if(p)return b;var _=x?S.future:S.past;return typeof _=="function"?_(b):_.replace("%s",b)},i.to=function(u,p){return l(u,p,this,!0)},i.from=function(u,p){return l(u,p,this)};var d=function(u){return u.$u?o.utc():o()};i.toNow=function(u){return this.to(d(this),u)},i.fromNow=function(u){return this.from(d(this),u)}}})})(sx);var Foe=sx.exports;const Loe=Nr(Foe);Br.extend(Loe);function ax(e){const t=z.useRecordContext(e),[n]=z.useLocaleState(),r=O.useMemo(()=>Br(Qe.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(z.DateField,{record:t,source:e.source,showTime:!0}),f.jsx("br",{}),f.jsx(E.Typography,{variant:"caption",color:"textSecondary",children:r})]})}const Boe=ge(z.DateField,{slot:"Root"})(()=>({}));function Noe({variant:e="body1",...t}){return f.jsx(Boe,{...t,variant:e})}const $oe=ge(z.EmailField,{slot:"Root"})(()=>({}));function Voe({variant:e="body1",...t}){return f.jsx($oe,{...t,variant:e})}const zoe=ge(z.FileField,{slot:"root"})(()=>({}));function lx({...e}){const t=z.useRecordContext(e),n=O.useCallback(r=>{r.preventDefault(),r.stopPropagation();const o=Qe.get(t,`_${e==null?void 0:e.source}`,Qe.get(t,e==null?void 0:e.source)),i=Qe.get(t,(e==null?void 0:e.title)||(e==null?void 0:e.source))||(e==null?void 0:e.title),s=document.createElement("a");s.href=o,s.download=i,s.click()},[e==null?void 0:e.source,t,e==null?void 0:e.title]);return f.jsx(zoe,{...e,record:t,onClick:n})}function $0({variant:e="body1",...t}){return f.jsx(z.FunctionField,{...t,variant:e})}function cx(e){var g;const{resource:t,source:n}=e,r=z.useDataProvider(),o=z.useResourceContext(),i=J.isNil(t)?(g=o==null?void 0:o.match(new RegExp("(?<=\\/)[^\\/]+$")))==null?void 0:g[0]:t,s=z.useRecordContext(e),l=s==null?void 0:s.id,d=s==null?void 0:s[n??""],[u,p]=O.useState(null);return O.useEffect(()=>{if(J.isNil(d)||J.isNil(r)||J.isNil(i)||J.isNil(l)||J.isNil(n))return;const h=`/attachments/${i}/${l}/${n}/`;function m(v){return r.getFile(`${h}${v==null?void 0:v.id}`).then(b=>({url:b,title:v==null?void 0:v.name}))}J.isArray(d)?Promise.all(d.map(m)).then(v=>{p({image:v})}):m(d).then(v=>{p({image:v})})},[d,r,i,l,n]),J.isNil(u)?null:f.jsx(z.ImageField,{...e,src:"url",source:J.isArray(d)?"image":"image.url",title:"image.title",record:u})}const Woe=ge(z.TextField,{slot:"Root"})(()=>({}));function ux({variant:e="body1",...t}){return f.jsx(Woe,{...t,variant:e})}function Uoe(e){const t=E.useTheme(),n=ne.useLocales(),{source:r=""}=e,i=ne.useRecordContext(e)[r],s=!ku(i,n),l=$r(e,{flex:1}),[d]=ne.useLocaleState(),u=O.useMemo(()=>s?f.jsx(He.FlagFilled,{style:{color:t.palette.warning.main}}):f.jsx(He.FlagOutlined,{}),[s,t.palette.warning.main]),p=O.useMemo(()=>f.jsx(E.Stack,{children:J.map(n,(g,h)=>f.jsx(E.Typography,{children:`${g.locale.toUpperCase()}: ${(i??{})[g.locale]??""}`},h))}),[i,n]);return f.jsx(b3,{title:p,arrow:!1,children:f.jsxs(E.Stack,{alignItems:"center",direction:"row",gap:1,children:[u,f.jsx(ux,{...e,source:`${r}.${d}`,sx:l})]})})}const Hoe=ge("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 Goe({source:e,defaultValue:t="&nbsp;",...n}){const r=z.useRecordContext(n),o=Qe.get(r,e,t);return f.jsx(E.Typography,{...n,dangerouslySetInnerHTML:{__html:o&&o!==null?o:t}})}function qoe({title:e,children:t}){return t==null?null:typeof e=="string"||e===!0?f.jsx(E.Tooltip,{title:e,placement:"top",children:t}):t}function Yoe({label:e,source:t,defaultValue:n="&nbsp;",children:r=f.jsx(Goe,{source:"",defaultValue:void 0,record:void 0}),tooltip:o,...i}){const s=O.Children.only(r),{getCurrentDialog:l}=tx(),d=z.useRecordContext(i),u=z.useResourceContext(i),p=l(),g=O.useMemo(()=>o===!1?!1:typeof o=="function"?o(d):typeof o=="string"?Qe.get(d,o,o):o,[d,o]),h=$r(i,{width:i!=null&&i.fullWidth?"100%":"auto"});return f.jsx(qoe,{title:g,children:f.jsxs(f.Fragment,{children:[f.jsx(E.InputLabel,{sx:{pt:1},children:f.jsx(z.FieldTitle,{label:e,source:t,resource:p||u})}),f.jsx(Hoe,{...i,children:O.isValidElement(s)?O.cloneElement(s,{...s.props,source:t,record:d,defaultValue:n,resource:p||u,sx:h}):null})]})})}function Koe({children:e=null,className:t=""}){return f.jsx("div",{className:t,children:e})}const Zoe=a1(Koe,{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 dx(e){return f.jsx(Zoe,{...e,children:f.jsx(z.ReferenceManyField,{pagination:f.jsx(z.Pagination,{}),...e})})}function Xoe({source:e,...t}){const n=z.useRecordContext(t),r=Qe.get(n,e,0),o=r/1024,i=o/1024,s=i/1024,l=s>1?`${s.toFixed(2)} GB`:i>1?`${i.toFixed(2)} MB`:o>1?`${o.toFixed(2)} KB`:`${r.toFixed(2)} B`;return f.jsx(E.Typography,{component:"span",variant:"body1",...t,children:l})}function on({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:s=!1,...l}){const d=wt(),u=z.useTranslate(),{getCurrentDialog:p}=bp(),{source:g,resource:h,isRequired:m,chip:v}=l,{fieldState:{invalid:b}}=z.useInput(l),x=p();return f.jsxs(E.Stack,{spacing:1,sx:{width:l!=null&&l.fullWidth?"100%":"auto","& .MuiFormHelperText-root":{pb:0,color:b?d.palette.error.main:d.palette.text.secondary,"& span":{display:"none"}},...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(E.InputLabel,{error:b===!0,sx:{borderBottom:s?`1px solid ${d.palette.divider}`:"none",pt:.5,pb:s?1:0,mt:s?1:0},children:f.jsx(z.FieldTitle,{label:e,source:g,resource:x||h,isRequired:m})}),O.isValidElement(t)?O.cloneElement(t,{...t.props,...l,chip:v&&typeof v=="function"?O.createElement(v):v,label:n==="legend"?e:!1}):t,r?f.jsx(E.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:b===!0,children:O.isValidElement(r)?r:typeof r=="string"?u(r,{_:r}):r}):null]})}function Qoe(e){return e?{"& .RaFileInput-removeButton > .RaFileInputPreview-removeButton":{display:"none",visiblity:"hidden"},"& .RaFileInput-dropZone":{display:"none",visiblity:"hidden"}}:{}}const Joe=ge(z.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}},...Qoe(e)}));function fx({children:e=f.jsx(rx,{title:"name",source:"path"}),multiple:t=!1,disabled:n=!1,type:r="attachment",...o}){const i=z.useRecordContext(o),s=o==null?void 0:o.source,l=i==null?void 0:i.id;return z.useInput({source:`__${r}__${o==null?void 0:o.source}`,defaultValue:o==null?void 0:o.source}),f.jsx(on,{...o,disabled:n,children:f.jsx(Joe,{type:r,multiple:t,disabled:n,children:O.cloneElement(e,{entityId:l,property:s,...e.props})})})}const eie=ge(z.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 tie({size:e="small",...t}){return f.jsx(on,{...t,children:f.jsx(eie,{size:e})})}const nie=ge(z.AutocompleteInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"}}));function rie({size:e="small",...t}){const{perPage:n,...r}=t;return f.jsx(on,{...r,children:f.jsx(nie,{size:e})})}const oie=ge(z.BooleanInput,{slot:"Root"})(()=>({marginTop:"0 !important"}));function iie({...e}){const t=dn.useTheme();return f.jsx(on,{...e,children:f.jsx(oie,{sx:{"& .MuiFormControlLabel-root":{marginLeft:"0 !important",marginRight:"0 !important"},"& .MuiSwitch-root":{margin:"0 !important",marginRight:"6px !important",marginTop:e.display==="legend"?0:`${t.spacing(1)} !important`}}})})}const sie=4,aie=ge(z.DateInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function lie(e){const[t,n]=O.useState(""),r=O.useCallback(o=>{const i=o.target.value;Br(i).year().toString().length>sie?o.target.value=t:n(i)},[t]);return f.jsx(on,{...e,children:f.jsx(aie,{...e,onInput:r})})}const cie=ge(z.DateTimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function uie(e){return f.jsx(on,{...e,children:f.jsx(cie,{})})}const die=ge(z.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 fie({children:e=f.jsx(lx,{source:"",title:""}),title:t,...n}){const r=fn.useWatch({name:n.source}),o=z.useRecordContext(n),{source:i}=n,s=O.useMemo(()=>{if(r&&(r!=null&&r.title))return r==null?void 0:r.title;const l=Qe.get(o,i);if(l){const d=l.split("__");return d.length>0?d[d.length-1]:l}return l},[o,i,r]);return f.jsx(on,{...n,children:f.jsx(die,{children:O.cloneElement(e,{...e.props,title:t||i,source:i,record:{...o,[i]:(r==null?void 0:r.title)||Qe.get(o,i),[`_${i}`]:(r==null?void 0:r.src)||Qe.get(o,`_${i}`),[t||i]:s}})})})}function pie(e){const{source:t}=e,n=ne.useRecordContext(e),{id:r}=n??{};return f.jsx(fx,{...e,children:f.jsx(hie,{entityId:String(r),source:t})})}function hie(e){const t=ne.useRecordContext();return J.isNil(t==null?void 0:t.rawFile)?f.jsx(gie,{...e}):f.jsx(J2,{...e,title:"title",source:"src"})}function gie(e){const{entityId:t,...n}=e,r=e.source??"",o=ne.useRecordContext(),[i,s]=O.useState(r?{id:t,[r]:o}:{id:t});return O.useEffect(()=>{s({id:t,[r]:o})},[o,t,r]),f.jsx(ne.RecordContextProvider,{value:i,children:f.jsx(cx,{...n})})}function mie({children:e=f.jsx(ix,{}),title:t,multiple:n=!1,...r}){const o=fn.useWatch({name:r.source}),i=z.useRecordContext(r),{source:s}=r;return z.useInput({source:`__image__${r==null?void 0:r.source}`,defaultValue:r==null?void 0:r.source}),f.jsx(on,{...r,multiple:n,children:f.jsx(z.ImageInput,{accept:"image/*",children:O.cloneElement(e,{...e.props,title:t,source:s,record:{...i,[s]:(o==null?void 0:o.title)||Qe.get(i,s),[`_${s}`]:(o==null?void 0:o.src)||Qe.get(i,`_${s}`)}})})})}function Sr(e){return f.jsx(on,{...e,children:f.jsx(z.TextInput,{})})}const vie={vertical:"bottom",horizontal:"right"},yie={vertical:"top",horizontal:"right"};function bie({requiredAtLeastOneLocale:e,requiredLocale:t,validate:n,required:r,...o}){const{source:i}=o,s=ne.useLocales(),l=O.useCallback((M="ra.validation.required",j="ra.validation.required_locale")=>_=>{if(e&&!t&&!_C(_,s))return M;if(t&&(!J.has(_,t)||J.isEmpty(J.get(_,t))))return{message:j,args:{locale:t}};if(!e&&r&&!ku(_,s))return M},[e,t,s,r]),d=O.useMemo(()=>ne.composeValidators(n,l()),[n,l]),{fieldState:u}=ne.useInput({...o,validate:d}),{error:p}=u,g=fn.useWatch({name:i}),h=!ku(g,s),[m]=ne.useLocaleState(),[v,b]=O.useState(m),[x,S]=O.useState(null),I=!!x,w=O.useCallback(M=>S(I?null:M.currentTarget),[I,S]),T=O.useCallback(()=>S(null),[S]),P=O.useMemo(()=>J.map(s,(M,j)=>f.jsx(E.MenuItem,{onClick:()=>{b(M.locale),T()},children:f.jsx(E.ListItemText,{primary:`${M.locale.toUpperCase()}: ${(g??{})[M.locale]??""}`})},j)),[s,b,T,g]);return f.jsx(on,{...o,validate:d,helperText:p!=null&&p.message?f.jsx(ne.ValidationError,{error:p==null?void 0:p.message}):o==null?void 0:o.helperText,children:f.jsx(f.Fragment,{children:f.jsxs(E.Box,{flex:1,children:[J.map(s,(M,j)=>f.jsx(Sr,{...o,source:`${i}.${M.locale}`,sx:{width:"100%",display:M.locale===v?"inline-flex":"none"},label:!1,helperText:!1,required:!1,InputProps:{endAdornment:f.jsx(E.Chip,{label:f.jsx(E.Typography,{variant:"button",children:v}),size:"small",onClick:w,color:h?"warning":void 0})}},j)),f.jsx(E.Menu,{anchorEl:x,open:I,anchorOrigin:vie,transformOrigin:yie,onClose:T,children:P})]})})})}const Cie=ge(z.NumberInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function xie(e){return f.jsx(on,{...e,children:f.jsx(Cie,{})})}const wie=ge(z.RadioButtonGroupInput,{slot:"root"})(()=>({marginTop:"0 !important","& .MuiFormControlLabel-root":{marginLeft:-8}}));function Sie(e){return f.jsx(on,{...e,children:f.jsx(wie,{})})}function Aie({source:e,minWidth:t=300,children:n}){const r=z.useResourceContext(),o=z.useRecordContext(),[i,s]=O.useState(Qe.get(o,e,"")),[l,d]=O.useState(!1),u=O.useCallback(v=>s(v.target.value),[]),p=z.useDataProvider(),g=O.useCallback(v=>{v.key==="Enter"&&(d(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>d(!1)))},[i,p,r,o,e]),h=O.useCallback(()=>{Qe.get(o,e)!==i&&(d(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>d(!1)))},[i,p,r,e,o]),m=O.useCallback(v=>{d(!0),p.update(r,{id:o.id,data:{...o,[e]:v,_changed:e},previousData:o}).then(()=>d(!1))},[p,r,e,o]);return O.useEffect(()=>s(Qe.get(o,e)),[o,e]),n?O.cloneElement(n,{...n.props,source:e,value:i,onChange:m}):f.jsx(E.TextField,{value:i,disabled:l,onChange:u,onKeyPress:g,onBlur:h,style:{minWidth:t,width:"100%"},multiline:!0,InputProps:{"arial-label":"naked"},size:"small"})}function Eie({children:e,...t}){const n=O.Children.only(e);return f.jsx(z.ReferenceArrayInput,{...t,children:O.cloneElement(n,{...t,source:n.props.source||t.source})})}function Tie({children:e,...t}){const n=O.Children.only(e);return f.jsx(z.ReferenceInput,{...t,children:O.cloneElement(n,{...t,source:n.props.source||t.source})})}const Iie=ge(z.SearchInput,{slot:"root"})(()=>({}));function Cp(e){return f.jsx(Iie,{...e})}const xp=O.memo(e=>{const{page:t,rowsPerPage:n,count:r,onPageChange:o,size:i="small",className:s,...l}=e,d=ne.useTranslate(),u=Math.ceil(r/n)||1;if(u===1)return f.jsx(Hm,{className:s});function p(g,h,m){return g==="page"?m?d("ra.navigation.current_page",{page:h,_:`page ${h}`}):d("ra.navigation.page",{page:h,_:`Go to page ${h}`}):d(`ra.navigation.${g}`,{_:`Go to ${g} page`})}return f.jsx(Hm,{className:s,children:f.jsx(E.Pagination,{size:i,count:u,page:t+1,onChange:(g,h)=>o(g,h-1),...Pie(l),getItemAriaLabel:p})})});xp.propTypes={count:C.number.isRequired,onPageChange:C.func.isRequired,page:C.number.isRequired,rowsPerPage:C.number.isRequired,color:C.oneOf(["primary","secondary","standard"]),size:C.oneOf(["small","medium","large"])};const Oie="RaPaginationActions",Hm=ge("div",{name:Oie,overridesResolver:e=>e.root})(()=>({flexShrink:0,ml:4}));function Pie({nextIconButtonProps:e,backIconButtonProps:t,slotProps:n,...r}){return r}const k3=O.memo(e=>{const{rowsPerPageOptions:t=jie,actions:n,limit:r=null,...o}=e,{isLoading:i,hasNextPage:s,page:l,perPage:d,total:u,setPage:p,setPerPage:g}=ne.useListPaginationContext(e),h=ne.useTranslate(),m=E.useMediaQuery(D=>D.breakpoints.down("md")),[v,b]=O.useState(l-1),{hasCreate:x}=ne.useResourceDefinition(e),[S,I]=O.useState(!1),w=E.useTheme();O.useEffect(()=>{l!==v+1&&!S&&b(l-1)},[v,S,l]),O.useEffect(()=>{I(!1)},[l]);const T=O.useMemo(()=>u!=null?Math.ceil(u/d):void 0,[d,u]),P=O.useCallback(Qe.debounce(D=>{p(D+1)},500),[p]),M=O.useCallback((D,U)=>{var Y,V;if(!D)return;if(D.preventDefault(),U<0||T!==void 0&&U>T-1)throw new Error(h("ra.navigation.page_out_of_boundaries",{page:U+1}));const H=(((Y=D.target.dataset)==null?void 0:Y.testid)||((V=D.target.classList)==null?void 0:V.value))??"",G=H.includes("MuiPaginationItem-previousNext")||H.includes("NavigateBeforeIcon")||H.includes("NavigateNextIcon")||H.includes("KeyboardArrowLeftIcon")||H.includes("KeyboardArrowRightIcon");b(U),I(!0),G?P(U):p(U+1)},[P,p,h,T,I]),j=O.useCallback(D=>{g(Number(D.target.value))},[g]),_=O.useCallback(({from:D,to:U,count:H})=>H===-1&&s?h("ra.navigation.partial_page_range_info",{offsetBegin:D,offsetEnd:U,_:"%{from}-%{to} of more than %{to}"}):h("ra.navigation.page_range_info",{offsetBegin:D,offsetEnd:U,total:H===-1?U:H,_:"%{from}-%{to} of %{count === -1 ? to : count}"}),[h,s]),N=O.useCallback(D=>h(`ra.navigation.${D}`,{_:`Go to ${D} page`}),[h]);if(i)return f.jsx(E.Toolbar,{variant:"dense"});if(u===0||l<1||T!==void 0&&l>T)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(m)return f.jsx(E.TablePagination,{count:u??-1,rowsPerPage:d,page:v,onPageChange:M,rowsPerPageOptions:Rie,component:"span",labelDisplayedRows:_,sx:{justifyContent:x?"flex-start":"flex-end",display:x?"flex":"block",...e.displayStyle!=="text"&&{".MuiTablePagination-actions":{display:"flex",flexDirection:"row",gap:"4px"},"& button":{border:`1px solid ${w.palette.divider}`}}},...ne.sanitizeListRestProps(o)});const k=n||(!i&&u!=null?xp:void 0);return f.jsx(E.TablePagination,{count:u??-1,rowsPerPage:d,page:v,onPageChange:M,onRowsPerPageChange:j,ActionsComponent:k,nextIconButtonProps:{disabled:!s},component:"span",labelRowsPerPage:h("ra.navigation.page_rows_per_page"),labelDisplayedRows:_,getItemAriaLabel:N,rowsPerPageOptions:t,sx:e.displayStyle!=="text"?{".MuiInputBase-root":{border:`1px solid ${w.palette.divider}`,borderRadius:"4px"},".MuiTablePagination-spacer":{display:"none"},".MuiTablePagination-selectLabel":{color:w.palette.text.secondary},".MuiTablePagination-actions":{flex:1,position:"absolute",right:24},"& button":{border:`1px solid ${w.palette.divider}`,"&.Mui-selected":{fontSize:"0.875rem",fontWeight:"regular",backgroundColor:"trasparent",border:`1px solid ${w.palette.primary.main}`,color:w.palette.primary.main}}}:{},...ne.sanitizeListRestProps(o)})});k3.propTypes={actions:ne.ComponentPropType,limit:C.element,rowsPerPageOptions:C.arrayOf(C.oneOfType([C.number,C.shape({label:C.string.isRequired,value:C.number.isRequired})]))};const jie=[5,10,25,50],Rie=[];function px(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:i,resource:s,selectedIds:l=[],onUnselectItems:d}=ne.useListContext(e),u=ne.useTranslate(),p=O.useCallback(()=>{d()},[d]);return f.jsx(Mie,{className:r,children:f.jsxs(E.Toolbar,{"data-test":"bulk-actions-toolbar",className:$e(Fr.toolbar,{[Fr.collapsed]:l.length===0}),...ne.sanitizeListRestProps(o),children:[f.jsxs("div",{className:Fr.title,children:[f.jsx(E.IconButton,{className:Fr.icon,"aria-label":u("ra.action.unselect"),title:u("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(Vt.Close,{fontSize:"small"})}),f.jsx(E.Typography,{color:"inherit",variant:"subtitle1",children:u(t,{_:t,smart_count:l.length})})]}),f.jsx(z.TopToolbar,{className:Fr.topToolbar,children:O.Children.map(n,g=>O.isValidElement(g)?O.cloneElement(g,{filterValues:i,resource:s,selectedIds:l}):null)})]})})}const Bi="RaBulkActionsToolbar",Fr={toolbar:`${Bi}-toolbar`,topToolbar:`${Bi}-topToolbar`,buttons:`${Bi}-buttons`,collapsed:`${Bi}-collapsed`,title:`${Bi}-title`,icon:`${Bi}-icon`},Mie=ge("div",{name:Bi,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${Fr.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"?f0(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},[`& .${Fr.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${Fr.buttons}`]:{},[`& .${Fr.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${Fr.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${Fr.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),Ff={p:0,m:0},Gm={p:2,m:0,borderRadius:0,width:"100%"};function kie(e){const{children:t}=e,[n,r]=B.useState(null);function o(v){r(v.currentTarget)}function i(){r(null)}const s=E.useMediaQuery(v=>v.breakpoints.down("md")),{filterValues:l,resource:d,selectedIds:u=[],onUnselectItems:p}=z.useListContext(e),g=!!n&&u!==void 0&&u.length>0,h=g?"simple-popover":void 0,m=B.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(E.Fade,{in:u!==void 0&&u.length>0,children:f.jsxs(E.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(E.Fab,{color:"primary","aria-label":"manage",onClick:o,children:u==null?void 0:u.length}),f.jsx(E.Popover,{id:h,open:g,anchorEl:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:s?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:s?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(E.List,{sx:Ff,children:[f.jsx(E.ListItem,{sx:Ff,children:f.jsx(z.Button,{onClick:m,sx:Gm,label:"ra.action.unselect",startIcon:f.jsx(R0,{}),children:f.jsx(R0,{})})}),B.Children.map(t,v=>{var b;return f.jsx(E.ListItem,{sx:Ff,children:B.isValidElement(v)?B.cloneElement(v,{filterValues:l,resource:d,selectedIds:u,sx:Gm,...(b=v.props)!=null&&b.popover?{closePopover:i}:{}}):null})})]})})]})})}const hx=O.createContext({});hx.displayName="DatagridContext";function _ie({children:e,value:t}){return f.jsx(hx.Provider,{value:t,children:e})}function Die({width:e=250,height:t=250,className:n=""}){return f.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 1600.000000 1600.000000",preserveAspectRatio:"xMidYMid meet",className:n,children:f.jsxs("g",{transform:"translate(0.000000,1600.000000) scale(0.100000,-0.100000)",stroke:"none",children:[f.jsx("path",{d:`M7380 13469 c-469 -10 -920 -27 -1300 -50 -179 -10 -351 -19 -383
238
238
  -19 -64 0 -165 -35 -205 -73 -14 -12 -40 -46 -59 -75 l-34 -53 -10 -177 c-6
239
239
  -101 -16 -190 -24 -208 -17 -39 -32 -41 -348 -50 -144 -5 -233 -11 -243 -19
240
240
  -12 -8 -20 -57 -34 -210 -25 -277 -59 -480 -120 -725 -11 -41 -22 -91 -26
@@ -621,6 +621,6 @@ c-172 118 -186 134 -132 145 15 3 52 12 82 20 105 26 292 47 380 42 116 -7
621
621
  -28 15 -28 96 -3 33 11 112 27 175 36 103 14 128 14 248 1 74 -9 156 -23 182
622
622
  -32 74 -25 93 14 24 48 -73 36 -346 66 -432 47z`,fill:"currentColor"}),f.jsx("path",{d:`M4714 6090 c-25 -10 -54 -47 -54 -69 0 -8 18 -31 40 -53 35 -32 48
623
623
  -38 85 -38 105 0 144 109 55 155 -32 16 -92 19 -126 5z`,fill:"currentColor"}),f.jsx("path",{d:`M4711 5211 c-44 -42 -43 -83 6 -127 45 -41 80 -44 139 -9 67 40 74
624
- 84 21 143 -17 18 -31 22 -78 22 -49 0 -61 -4 -88 -29z`,fill:"currentColor"})]})})}function Fie({width:e=250,height:t=250,className:n=""}){return f.jsxs("svg",{width:e,height:t,viewBox:"0 0 2134 2134",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M1045.33 52.933C1017.87 55.733 987.333 72.133 969.466 93.733C960.533 104.533 961.199 103.733 956.666 111.333C953.066 117.2 952.666 119.2 952.666 128.666C952.666 138.666 952.933 139.733 957.199 145.733C959.733 149.2 966.666 155.733 972.533 160.266C989.999 173.466 999.066 183.733 1003.6 194.933C1006.93 203.733 1007.33 206.133 1007.2 220C1007.2 232 1006.4 237.6 1004.13 245.333C997.733 266.266 997.733 266.266 1019.6 263.466C1049.47 259.6 1074.4 253.333 1089.73 245.866C1109.87 236.133 1125.2 220 1132.53 200.666C1136 191.466 1136.27 189.6 1135.73 176.933C1135.2 165.066 1134.53 161.866 1131.07 154.533C1125.47 142.533 1120.67 137.6 1100.53 122.533C1076.27 104.666 1071.6 97.1996 1066.67 69.5996C1063.47 51.733 1062.8 51.0663 1045.33 52.933ZM1055.87 61.733C1056.67 62.7996 1058.13 68.2663 1059.33 73.9996C1061.33 84.6663 1064.8 95.1996 1069.2 103.733C1071.87 108.933 1086 123.2 1092.67 127.333C1098 130.666 1110.4 141.066 1114.93 146C1116.93 148.133 1120.27 153.333 1122.27 157.333C1125.73 164 1126 165.866 1126 179.333C1126 192.933 1125.73 194.666 1121.87 202.666C1119.6 207.466 1115.33 214.4 1112.27 218.133C1106.67 225.2 1092.13 235.866 1083.2 239.333C1080.27 240.533 1077.07 241.866 1076 242.533C1074.8 243.2 1071.2 244.133 1068 244.666C1064.67 245.2 1059.73 246.533 1056.8 247.466C1054 248.533 1048.27 249.866 1044.13 250.666C1040 251.333 1032.13 252.933 1026.67 254C1021.2 255.066 1015.6 256 1014.27 256C1011.2 256 1010 252.533 1011.87 248.933C1015.47 241.866 1017.07 216.8 1014.53 203.6C1011.33 186.133 1004.4 176.133 984.266 159.866C965.333 144.666 962.133 141.2 960.133 133.733C958.399 127.466 960.266 117.2 963.466 114.533C964.533 113.733 965.333 112.266 965.333 111.333C965.333 108.533 986.799 86.6663 994.933 81.1996C1009.73 71.4663 1026 64.933 1044.67 61.333C1052.8 59.733 1054.27 59.8663 1055.87 61.733Z",fill:"currentColor"}),f.jsx("path",{d:"M672 182C669.333 185.2 671.733 186.4 682.666 186.933C691.066 187.333 693.6 188 698.666 191.333C705.466 196 711.333 204 712.8 210.666C713.333 213.2 713.866 227.333 713.866 242C714 274.266 714.4 275.466 731.466 293.333C737.6 299.866 743.2 306.666 743.866 308.4C744.533 310.133 744.8 315.333 744.4 319.733C743.466 329.6 745.6 333.6 753.066 336.666C762.933 340.8 768 348.4 768 358.8C768 362.266 768.533 365.466 769.2 365.866C772.666 368.133 777.333 361.733 777.333 354.933C777.2 348.133 770.533 336.933 763.733 332.4C760.266 330.133 756.666 328 755.866 327.733C754.8 327.333 753.866 322.533 753.333 315.2C752.4 301.733 750.533 298.266 738.666 287.6C724 274.4 720.933 265.6 722.133 240.4C723.733 207.6 718 193.066 699.733 183.866C693.466 180.666 690.4 180 682.933 180C676.133 180 673.2 180.533 672 182Z",fill:"currentColor"}),f.jsx("path",{d:"M896.8 223.066C891.333 231.2 889.2 244.4 891.866 252.8C892.533 254.933 895.066 262.933 897.333 270.4C904.666 294.266 902.133 303.333 883.866 317.2C873.866 324.8 872.266 326.533 867.2 335.333C863.733 341.466 863.333 343.066 863.333 354.666C863.466 366.666 863.6 367.733 867.733 374.266C872 380.933 875.866 383.733 878.666 382C880.8 380.666 880.133 374.666 877.466 371.066C873.333 365.866 871.2 354.266 873.066 347.066C875.066 339.733 881.466 331.066 890.133 324.266C904.266 313.066 910.666 302.8 910.666 291.2C910.666 285.866 908 274.133 904.133 262.666C898.666 246.533 898.266 242.666 901.333 234C906.133 220.533 906.133 220 902.133 220C900 220 898 221.2 896.8 223.066Z",fill:"currentColor"}),f.jsx("path",{d:"M1431.33 248.133C1429.87 248.933 1422.13 256.4 1414 264.533C1379.87 299.467 1350.13 321.333 1313.33 339.067C1281.73 354.267 1246.67 364.667 1216 368.133C1187.33 371.333 1186.8 371.6 1192.53 383.6C1199.73 398.267 1211.2 414 1226 429.067C1250 453.867 1252.4 454.533 1292.4 450.667C1308 449.2 1330.13 446.4 1341.73 444.533C1380.8 438.4 1436.53 424.667 1446.93 418.667C1448.27 417.867 1450 417.333 1450.8 417.333C1452.53 417.333 1457.87 415.067 1476 406.267C1510.67 389.6 1542.8 362.133 1560.53 334.133C1563.73 329.2 1561.73 325.333 1554.13 321.6C1551.2 320.133 1545.07 317.2 1540.67 315.067C1504.8 297.733 1475.87 278.933 1454 258.533C1440.93 246.4 1437.47 244.8 1431.33 248.133ZM1447.07 263.733C1451.6 268 1458.4 273.867 1462 276.667C1465.73 279.6 1469.87 283.067 1471.2 284.267C1478 290.4 1499.87 303.733 1524.67 316.667C1531.33 320.133 1539.6 324.533 1543.33 326.533C1546.93 328.4 1550.13 331.067 1550.4 332.267C1551.07 335.867 1537.6 351.733 1524.53 362.667C1518 368.133 1511.87 373.467 1510.8 374.4C1504.13 380.8 1468.13 401.067 1455.07 405.867C1452.27 406.8 1444.27 409.867 1437.07 412.4C1416.8 419.867 1381.2 429.067 1348.67 435.2C1314.67 441.6 1267.07 446.267 1258.67 444C1251.47 442 1242.93 435.333 1227.87 420C1215.6 407.467 1200 386.267 1200 382.267C1200 378.667 1203.33 377.6 1220.67 375.333C1246.27 372.133 1274 364.8 1297.33 355.333C1308.27 350.933 1334 338 1338.8 334.533C1340.8 333.2 1342.8 332 1343.33 332C1343.73 332 1346.13 330.533 1348.53 328.667C1350.93 326.8 1353.33 325.333 1353.87 325.333C1357.07 325.333 1394.8 294.133 1412.67 276.8C1424.4 265.467 1435.07 256.133 1436.4 256.133C1437.73 256 1442.53 259.467 1447.07 263.733Z",fill:"currentColor"}),f.jsx("path",{d:"M1422.67 316.933C1422.67 319.067 1435.47 330.4 1439.33 331.867C1440.13 332.133 1441.6 333.067 1442.67 334C1447.87 338.267 1464.67 345.733 1476.67 349.2C1491.87 353.467 1495.2 353.867 1497.33 351.333C1499.07 349.333 1498.93 348.667 1496.27 346.667C1494.67 345.2 1489.87 343.467 1485.6 342.667C1475.07 340.533 1463.6 336.4 1452.67 330.933C1442.67 326 1432 319.067 1430.27 316.267C1428.53 313.733 1422.67 314.267 1422.67 316.933Z",fill:"currentColor"}),f.jsx("path",{d:"M1354.67 350.533C1354.67 354.133 1365.33 365.466 1376.27 373.466C1387.47 381.6 1397.33 386.666 1410.8 391.2C1419.47 394.133 1420.93 394.266 1422.67 392.533C1424.13 391.066 1424.27 390 1423.2 388.4C1421.47 385.6 1420.4 385.066 1408.13 381.2C1395.2 377.066 1377.87 366.8 1366.67 356.266C1357.2 347.6 1354.67 346.4 1354.67 350.533Z",fill:"currentColor"}),f.jsx("path",{d:"M1293.33 369.2C1293.33 372.933 1305.2 387.866 1313.6 394.666C1322.27 401.6 1336.93 410 1342.4 411.333C1345.07 411.866 1346.8 411.466 1348 410C1350.4 407.066 1348.4 405.333 1334.13 398C1321.47 391.6 1305.87 378.8 1300.67 370.266C1298 366.133 1293.33 365.333 1293.33 369.2Z",fill:"currentColor"}),f.jsx("path",{d:"M1249.33 385.6C1249.2 390.4 1260.13 408 1269.2 417.466C1278.93 428 1282.27 429.733 1285.33 426C1287.6 423.2 1286.27 420.666 1279.73 416C1276.53 413.733 1271.73 409.066 1268.93 405.6C1266.27 402.133 1263.33 398.666 1262.67 397.733C1261.87 396.8 1260.67 394.4 1259.73 392.4C1258.8 390.4 1257.33 387.6 1256.27 386.266C1254 383.6 1249.33 383.2 1249.33 385.6Z",fill:"currentColor"}),f.jsx("path",{d:"M1005.33 316.666C1004.4 317.733 1002.93 318.666 1002.13 318.666C999.333 318.666 987.333 325.6 982.933 329.866C975.466 336.8 974.133 340.533 973.999 354.8C973.866 366.266 973.466 368 970.533 371.733C968.799 374 963.599 377.866 959.066 380.266C952.666 383.6 950.666 385.333 950.666 387.6C950.666 393.866 959.599 392.266 971.066 384C980.266 377.466 981.866 373.6 982.666 356C983.199 342.8 983.733 340 986.266 336.933C989.599 332.533 999.733 325.333 1002.53 325.333C1003.6 325.333 1006.4 323.733 1008.93 321.866C1012.53 319.066 1013.2 318 1011.87 316.533C1009.87 314.133 1007.47 314.133 1005.33 316.666Z",fill:"currentColor"}),f.jsx("path",{d:"M298 343.066C282.4 352.533 272.133 356.266 252.133 359.466C235.867 362.133 211.2 361.466 194 358C178.267 354.933 174.667 356.533 179.2 365.066C180.267 367.066 185.733 378.266 191.333 390C196.933 401.733 202.8 413.066 204.4 415.333C206.133 417.466 208.133 420.8 209.067 422.666C212.533 429.466 228.267 450.4 240.933 465.066C253.867 480 269.2 494.933 282.933 505.6C286.8 508.666 290.8 512 291.733 512.8C294.133 515.2 322 533.6 330.667 538.533C355.2 552.4 386.533 565.2 412.4 572C428.933 576.4 434.8 573.6 458 551.066C476.267 533.2 487.2 515.333 492 495.333C495.333 481.466 495.6 473.066 492.8 463.733C490 454.133 487.067 451.866 470.533 446.133C442.667 436.4 406 419.333 390.933 409.2C387.733 407.066 384.933 405.333 384.533 405.333C383.467 405.333 362.8 390.933 356.4 385.733C346.267 377.6 327.2 358 319.333 347.6C315.2 342 310.667 337.333 309.467 337.333C308.267 337.333 303.067 339.866 298 343.066ZM316.8 358.133C324.4 368.533 338.667 382.933 351.867 393.466C360.4 400.4 379.2 413.866 384 416.4C385.867 417.466 394.8 422.4 404 427.466C417.867 435.2 449.333 450 467.867 457.466C470.4 458.533 475.467 460.8 479.2 462.666C485.333 465.733 486 466.4 486.4 471.066C487.467 483.2 481.733 501.2 469.733 523.333C466.133 530 435.867 559.2 429.333 562.4C422.933 565.466 423.467 565.466 406.667 560.666C369.067 550.133 334.667 532.133 299.067 504.4C275.467 486 265.067 475.733 236.667 442.8C227.733 432.533 208.667 403.066 199.6 385.6C193.067 373.2 192 370.266 193.467 368.533C194.4 367.466 196 366.933 197.067 367.333C202.533 369.466 229.6 370.533 242.667 369.2C270.133 366.4 296.4 358.266 303.6 350.266C304.8 349.066 306.533 348 307.467 348C308.4 348 312.667 352.533 316.8 358.133Z",fill:"currentColor"}),f.jsx("path",{d:"M307.733 393.867C305.6 394.933 303.2 396.267 302.4 396.933C296.533 400.533 286 402.933 272.667 403.6C264.667 404 256.8 404.933 255.467 405.733C252.933 406.933 252.933 407.067 255.333 408.8C259.6 412 286.533 411.333 296.533 407.867C313.867 401.867 318.667 397.867 314.4 393.6C312.4 391.6 312.133 391.6 307.733 393.867Z",fill:"currentColor"}),f.jsx("path",{d:"M348.667 437.867C336.8 450 324.8 456.933 313.067 458.267C306.133 459.067 303.2 461.333 304.533 464.8C306.667 470.133 331.067 463.467 344 454C354.533 446.267 364.267 434.933 363.733 430.8C363.467 428.933 362.4 427.2 361.333 427.067C360.267 426.933 354.533 431.733 348.667 437.867Z",fill:"currentColor"}),f.jsx("path",{d:"M394.133 454.933C393.067 456.667 391.867 459.467 391.333 461.333C387.6 474.267 374.267 497.6 366.133 505.2C362.533 508.533 361.6 513.867 364.133 515.467C367.733 517.6 385.867 495.067 394.267 478C401.2 464.133 403.467 456.533 401.467 454.133C398.933 451.2 396.4 451.467 394.133 454.933Z",fill:"currentColor"}),f.jsx("path",{d:"M444.4 474.4C443.6 474.933 438.533 484.667 432.933 496C427.467 507.333 419.2 522.267 414.667 528.933C406.533 541.2 405.867 544 410.8 544C417.6 544 449.2 490.267 449.333 478.533C449.333 474.933 446.8 472.933 444.4 474.4Z",fill:"currentColor"}),f.jsx("path",{d:"M1788.93 343.733C1787.6 345.067 1786.67 347.333 1786.67 348.8C1786.67 353.333 1780.13 371.867 1774.8 382.4C1762.93 406.4 1739.87 433.733 1717.07 451.2C1714.13 453.333 1712 456.133 1712 457.6C1712 459.067 1715.2 464.533 1719.07 469.867C1731.87 487.067 1739.87 506.667 1742.8 527.6C1744.27 538.933 1746.13 542.133 1750.4 540.8C1754.4 539.467 1780.4 520.667 1794 509.2C1829.47 479.067 1849.33 448.533 1849.33 424.133C1849.2 401.333 1838.13 381.733 1810.4 355.333C1802.27 347.6 1794.67 341.333 1793.33 341.333C1792.13 341.333 1790.13 342.4 1788.93 343.733ZM1811.47 368.533C1824 381.467 1835.2 396.8 1838.13 405.2C1840.53 411.867 1840.4 426.8 1837.87 435.733C1831.6 457.467 1816.67 477.067 1786.67 503.2C1762.53 524.133 1756.13 528.8 1752.8 527.6C1751.87 527.2 1750.67 523.733 1750.13 519.867C1748.13 504.667 1738.13 480.8 1728.53 468.267C1723.07 461.067 1722.93 458.267 1727.73 454.267C1740.67 443.733 1759.73 423.333 1767.33 412C1778.27 395.6 1792 368.667 1792 363.733C1792 360.667 1794.93 356 1796.93 356C1798.27 356 1804.8 361.6 1811.47 368.533Z",fill:"currentColor"}),f.jsx("path",{d:"M518.667 392C513.467 393.733 509.867 396.133 506.267 400.267C498.267 409.467 501.333 416.267 509.6 407.333C514.667 401.6 522.4 397.333 527.467 397.333C532.933 397.333 540.4 402.267 544.4 408.533C546.4 411.733 548 414.933 548 415.733C548 420.267 555.733 435.467 560.8 441.2C572 453.733 586 456.533 607.733 450.8C614.533 448.933 620.267 448.133 622.667 448.667C626.8 449.6 632.667 454.8 638.533 462.667C645.2 471.6 656.4 474.667 662.8 469.6C667.467 465.733 665.333 462.133 659.067 463.067C654.667 463.867 649.733 462.4 648 460C642.533 452.133 632.267 442.533 627.6 440.933C621.867 439.067 621.467 439.067 598 442.8C584.4 444.933 576.533 443.733 570.4 438.667C565.867 434.933 563.867 431.6 557.2 416.267C550.667 401.333 546.533 396 538.133 391.867C531.6 388.667 528 388.667 518.667 392Z",fill:"currentColor"}),f.jsx("path",{d:"M833.866 414.8C823.333 418 815.733 422.4 806.933 429.866C799.333 436.4 796.666 437.2 792.533 434C788.266 430.666 772.666 431.466 764.4 435.333C756.666 438.933 749.333 445.466 746 452C744.666 454.533 741.866 456.933 738.933 458.266C726.933 463.2 720.133 472.4 720 483.466C720 488.533 719.466 489.466 712.933 494.533C703.733 501.6 699.066 510 697.866 521.866C697.066 529.6 696.4 531.6 693.2 534.266C688.133 538.933 684 548.133 684 555.2C684 560.4 683.466 561.333 679.733 563.733C677.333 565.2 669.866 571.066 663.333 576.8C656.666 582.666 648.533 589.333 645.333 591.866C642 594.4 638.8 597.066 638 597.866C637.333 598.666 628.533 606.533 618.666 615.333C573.866 654.933 547.6 683.6 523.6 719.066C516.4 729.733 504.8 754.4 500.933 767.2C497.6 778.4 496.8 783.733 496.4 798.8C495.6 821.733 498 832.533 509.333 855.333C515.866 868.666 519.6 874 531.066 887.333C538.8 896.133 548.4 906.133 552.533 909.6C556.666 913.066 567.466 922.8 576.4 931.466C596.133 950.266 628 975.066 646.133 985.733C650.266 988 655.733 991.333 658.4 992.933C664.666 996.8 701.333 1014.8 709.333 1018C712.666 1019.33 717.2 1021.2 719.6 1022.13C721.866 1023.2 724.666 1024 725.6 1024C726.666 1024 728.666 1025.2 730 1026.67C732 1028.93 732.133 1029.87 730.933 1032.67C729.066 1036.8 728.533 1036.8 719.733 1032.93C715.866 1031.2 706.933 1027.73 700 1025.33C693.066 1022.93 686.8 1020.53 686 1020C685.333 1019.47 682.533 1018.53 680 1018C677.466 1017.47 674.533 1016.4 673.333 1015.87C671.066 1014.4 631.6 1000.27 614 994.533C607.466 992.266 600.8 990 599.333 989.2C597.866 988.533 592.533 986.8 587.333 985.2C557.066 976.266 555.6 976 540.933 976C528 976 496.266 979.066 471.333 982.666C466.266 983.333 456.266 984.533 449.333 985.333C442.4 986.133 430.133 987.733 422 988.8C414 989.733 402.266 991.2 396 991.866C389.733 992.666 369.333 995.066 350.666 997.333C332 999.466 313.733 1001.73 310 1002.13C306.4 1002.4 296.4 1003.6 288 1004.8C279.6 1005.87 260.133 1008.13 244.666 1010C218.133 1013.2 171.066 1019.07 137.333 1023.33C114.266 1026.27 95.7331 1029.33 92.3997 1030.67L89.3331 1032V1090.67V1149.47L82.5331 1156C78.6664 1159.73 75.9997 1163.47 76.2664 1164.8C76.5331 1166 79.0664 1167.73 81.8664 1168.67C84.6664 1169.73 87.5997 1171.33 88.1331 1172.27C88.7997 1173.2 89.3331 1184.53 89.3331 1197.33C89.4664 1238.27 91.8664 1344.67 92.6664 1346.8C93.4664 1348.8 103.6 1354.67 106.266 1354.67C107.066 1354.67 108.4 1355.6 109.333 1356.67C110.266 1357.73 113.333 1359.33 116.266 1360C119.333 1360.93 121.333 1362.13 120.933 1363.07C120.133 1365.73 115.866 1365.73 110.133 1362.93C102.666 1359.33 96.7997 1358.4 93.9997 1360.53C91.7331 1362.13 91.7331 1364.53 93.0664 1399.87C94.6664 1441.73 94.9331 1442.53 103.6 1445.33C106.4 1446.27 110.533 1447.73 112.666 1448.67C118.933 1451.2 129.866 1455.33 148.666 1462.13C158.266 1465.47 167.866 1469.2 170.266 1470.13C172.533 1471.2 174.8 1472 175.466 1472C176 1472 180.933 1473.73 186.533 1475.87C192.133 1478 202.933 1482 210.666 1484.67C218.4 1487.47 226.533 1490.4 228.933 1491.47C231.2 1492.53 233.6 1493.33 234.133 1493.33C234.8 1493.33 238.266 1494.53 242 1496C245.6 1497.47 256.533 1501.33 266 1504.8C275.6 1508.13 284.533 1511.47 286 1512.13C287.466 1512.8 291.333 1514.13 294.666 1515.2C298 1516.27 304.933 1518.67 310 1520.67C315.2 1522.53 325.333 1526.27 332.666 1528.93L345.866 1533.6L355.333 1530.93C372.4 1526.13 384.533 1522.67 398 1518.53C405.333 1516.27 417.333 1512.67 424.666 1510.53C432 1508.27 442.533 1505.07 448 1503.33C453.466 1501.73 463.066 1498.8 469.333 1496.93C475.6 1495.07 487.866 1491.33 496.666 1488.67C505.466 1486 517.733 1482.27 524 1480.4C530.266 1478.53 540.8 1475.33 547.333 1473.33C572.4 1465.73 604.133 1456 627.333 1449.07C634.666 1446.93 642.533 1444.4 644.666 1443.47C646.933 1442.4 650.8 1441.2 653.333 1440.8C658.533 1439.73 684.933 1431.73 695.733 1427.87C706.666 1424 707.2 1424.53 705.866 1441.2C704.4 1458.53 704.266 1524.13 705.6 1541.07C706.533 1551.87 706.4 1553.47 704.4 1554.27C702.266 1555.07 688.266 1553.73 659.866 1550C652.133 1548.93 640.533 1547.47 633.866 1546.67C627.333 1546 608.266 1543.47 591.333 1541.33C574.533 1539.07 553.466 1536.27 544.666 1535.2C535.866 1534 526.266 1533.2 523.333 1533.2C518.533 1533.33 516.4 1532.27 506.133 1524.4C478.933 1503.47 475.466 1503.07 461.2 1519.33C453.6 1528.13 445.333 1538 439.733 1544.93C437.333 1548 426.933 1560.8 416.666 1573.33C406.4 1585.87 397.066 1597.47 396 1599.07C394.933 1600.67 392.4 1604 390.4 1606.4C386.266 1611.2 385.733 1613.6 388.4 1615.87C390.4 1617.47 397.866 1616.67 421.333 1612.27C429.066 1610.8 441.333 1608.67 448.666 1607.33C456 1606.13 464.266 1604.53 466.933 1603.73C470.8 1602.53 473.733 1602.67 479.333 1604C489.466 1606.4 490 1607.33 487.6 1618.93C483.866 1636.53 483.6 1640.67 486.266 1642.93C488.533 1644.8 509.066 1657.2 513.333 1659.07C514.4 1659.6 519.866 1662.93 525.333 1666.53C530.8 1670.27 537.733 1674.53 540.666 1676C543.6 1677.6 563.466 1690.53 584.666 1704.8C619.466 1728 634.933 1738.93 677.066 1770.27C717.333 1800.13 745.333 1816 770.666 1823.2C774 1824.13 778 1825.6 779.333 1826.27C780.8 1827.07 784.666 1828.13 788 1828.67C791.333 1829.2 797.066 1830.4 800.666 1831.47C811.066 1834.27 840.533 1836.4 855.733 1835.33C882.933 1833.6 905.2 1826.27 927.333 1811.87C940.266 1803.47 947.866 1796.27 956.533 1784.67C974.266 1761.2 981.466 1744.67 990.533 1706C991.333 1702.8 991.333 1693.33 990.666 1682C988.133 1641.87 989.6 1598 995.333 1544.67C1004.67 1458.67 1004.8 1457.2 1008.27 1446C1010.8 1438 1012.4 1435.47 1019.2 1428.67C1033.2 1414.8 1064.13 1387.87 1067.73 1386.53C1072.53 1384.67 1077.07 1386.93 1078.13 1391.6C1079.6 1397.2 1075.07 1403.47 1061.2 1415.07C1026.93 1443.6 1025.6 1445.2 1024 1462.8C1021.47 1489.6 1016.53 1576.4 1013.87 1638.93L1012.93 1660L1028.8 1675.73C1057.6 1704.53 1082.27 1717.33 1108.27 1717.33C1141.73 1717.33 1170.4 1694.4 1192.27 1650.13C1198.53 1637.2 1205.33 1614.67 1205.33 1606.27C1205.33 1601.33 1208 1600.67 1214.13 1603.87C1216.93 1605.47 1220.27 1606.67 1221.33 1606.67C1222.4 1606.67 1224.93 1607.47 1226.93 1608.53C1228.93 1609.6 1232.27 1610.8 1234.53 1611.33C1236.8 1611.87 1239.2 1613.2 1239.87 1614.53C1240.53 1615.73 1241.73 1632.67 1242.53 1652C1243.33 1671.47 1244.93 1702.53 1246 1721.2C1247.33 1741.87 1247.6 1755.6 1246.8 1756.4C1246.13 1757.07 1238.13 1753.87 1226.4 1748.13C1215.73 1742.93 1206.13 1738.67 1204.8 1738.67C1203.6 1738.67 1199.73 1740.27 1196.27 1742.27C1192.8 1744.13 1187.73 1747.07 1185.07 1748.53C1170.67 1756.67 1155.07 1766 1153.33 1767.33C1152.27 1768.27 1148 1770.8 1144 1772.93C1135.47 1777.73 1096.8 1800.67 1092 1803.87C1090.13 1805.2 1083.07 1809.47 1076.27 1813.47C1069.47 1817.47 1059.33 1823.47 1053.6 1826.93C1048 1830.4 1042.4 1833.73 1041.33 1834.27C1040.27 1834.8 1033.33 1838.67 1026 1842.93C1011.2 1851.6 1012 1851.2 1000 1858.4C995.2 1861.33 989.2 1864.93 986.666 1866.4C984.133 1867.73 977.333 1871.87 971.466 1875.2C965.733 1878.67 958 1883.2 954.133 1885.2C940.933 1892.4 937.333 1894.93 937.333 1897.33C937.333 1898.67 938.133 1900.4 939.2 1901.2C940.933 1902.67 952.266 1906.93 961.333 1909.47C963.866 1910.13 968.133 1911.6 970.666 1912.67C975.333 1914.53 977.6 1915.2 1011.33 1925.33C1021.6 1928.4 1035.73 1932.67 1042.67 1934.8C1049.6 1936.93 1058.67 1939.47 1062.67 1940.53C1066.67 1941.47 1071.47 1943.07 1073.33 1943.73C1075.2 1944.53 1082.4 1946.67 1089.33 1948.53C1096.27 1950.53 1105.87 1953.2 1110.67 1954.67C1115.47 1956 1127.73 1959.6 1138 1962.53C1148.27 1965.47 1165.07 1970.27 1175.33 1973.2C1185.6 1976.13 1198.8 1979.73 1204.67 1981.33C1210.53 1983.07 1217.73 1985.07 1220.67 1986.13C1223.6 1987.07 1232 1989.47 1239.33 1991.33C1246.67 1993.33 1256.27 1996 1260.67 1997.33C1265.07 1998.67 1273.73 2001.07 1280 2002.67C1286.27 2004.27 1294.93 2006.67 1299.33 2008.13C1306.27 2010.27 1335.6 2018.27 1347.33 2021.33C1349.6 2021.87 1352.27 2022.8 1353.47 2023.2C1354.67 2023.73 1364.27 2026.4 1374.8 2029.33C1385.33 2032.13 1403.07 2036.93 1414.27 2039.87C1433.07 2044.93 1434.93 2045.33 1438.93 2043.6C1442.27 2042.13 1449.07 2034.13 1467.2 2009.87C1480.4 1992.4 1492.53 1976.4 1494.4 1974.4C1496.27 1972.4 1499.87 1967.73 1502.53 1964.13C1512.8 1949.87 1552.53 1897.87 1555.47 1894.67L1558.67 1891.47L1587.6 1897.2C1603.6 1900.27 1632 1905.87 1650.67 1909.47C1669.33 1913.07 1688.53 1916.93 1693.33 1918C1698.13 1919.07 1708 1920.93 1715.33 1922.13L1728.67 1924.4L1744.67 1919.47C1753.47 1916.8 1762.8 1913.73 1765.33 1912.67C1767.87 1911.6 1772.67 1910.13 1776 1909.33C1779.33 1908.4 1788 1905.73 1795.33 1903.33C1810 1898.53 1832.27 1891.47 1860 1882.67C1869.87 1879.6 1880.13 1876.27 1882.67 1875.33C1889.07 1872.93 1898.93 1869.73 1909.33 1866.8C1914.13 1865.33 1919.87 1863.6 1922 1862.8C1924.27 1862 1936.13 1858 1948.4 1854.13C1960.8 1850.13 1973.2 1845.2 1976.13 1843.2C1979.47 1840.93 1982.67 1836.93 1984.93 1832.13L1988.67 1824.67L1989.6 1755.33C1990 1717.2 1991.07 1670.13 1991.87 1650.67C1995.07 1572.53 1996.27 1547.2 1999.33 1480.67C2001.2 1442.53 2003.33 1400.27 2004.13 1386.8C2005.6 1364.67 2005.47 1362.13 2003.6 1360.67C2002.4 1359.87 1993.73 1358.13 1984.4 1356.8C1934.67 1350.13 1891.6 1344.4 1868 1341.33C1856.67 1339.87 1838.4 1337.47 1827.33 1336.13C1807.87 1333.6 1776.13 1329.47 1750.67 1326.27L1738 1324.67L1738.13 1293.33C1738.27 1276.13 1739.07 1231.2 1739.87 1193.6C1741.47 1122 1741.33 1117.47 1736 1112.67C1732.67 1109.73 1706.53 1104.67 1660.93 1098.13C1654.53 1097.2 1648.67 1095.87 1647.73 1094.93C1646.67 1093.87 1646.8 1089.33 1648.53 1077.07C1664.4 961.866 1669.47 871.866 1666.67 746.666C1665.33 682.933 1664.53 670.133 1662.27 668.266C1660.4 666.933 1642.53 663.6 1615.33 659.733C1605.07 658.4 1588.53 656 1578.67 654.533C1568.8 653.066 1556.53 651.333 1551.33 650.666C1542.13 649.466 1526.4 647.2 1500.67 643.066C1493.33 642 1481.33 640.266 1474 639.2C1466.67 638.266 1442.13 634.666 1419.33 631.333C1396.67 627.866 1372 624.266 1364.67 623.333C1357.33 622.266 1347.73 620.8 1343.33 620C1338.93 619.333 1323.07 616.8 1308 614.666C1292.93 612.533 1277.73 610.133 1274 609.466C1263.2 607.466 1240.4 603.866 1225.33 601.866C1217.73 600.8 1210 599.066 1208.4 598C1205.6 596.133 1205.47 595.333 1206.13 585.6C1207.47 568 1204 556.4 1192.8 541.333C1179.73 523.866 1162.27 506.8 1146.13 496.133C1138 490.8 1120 480 1119.2 480C1118.8 480 1115.87 478.8 1112.53 477.333C1097.6 470.533 1095.07 469.6 1090.67 468.666C1088.13 468.133 1084.53 466.933 1082.67 466C1078.13 463.733 1056.4 459.066 1042.67 457.333C1010.67 453.466 968 458.133 960.266 466.266C957.466 469.066 956.133 469.466 949.066 469.066C943.466 468.8 940.666 468 940 466.666C939.466 465.6 938.133 462.8 937.2 460.666C934.266 454.4 921.333 442.266 915.333 440.133C912.4 439.2 907.066 435.466 903.333 432.133C884.266 414.266 856.933 407.466 833.866 414.8ZM1049.33 468.8C1073.6 472.666 1090.13 477.733 1111.73 488C1142.93 502.8 1178.27 531.333 1189.73 551.066C1194.53 559.2 1198.67 572.533 1198.67 580C1198.67 588.133 1194.8 603.066 1188 620.666C1184.93 628.666 1181.6 637.466 1180.67 640C1176.53 651.066 1170.53 665.466 1166 675.333C1163.33 681.2 1159.07 690.533 1156.53 696C1154 701.466 1150.67 708.4 1149.2 711.333C1140.93 727.466 1139.07 730.8 1134.67 738.666C1132 743.466 1127.87 750.666 1125.73 754.666C1120 765.066 1117.73 768.933 1108.27 783.6C1103.6 790.8 1099.2 797.866 1098.27 799.333C1088.4 815.466 1084.93 817.333 1083.33 807.333C1082.13 799.333 1076.4 786.266 1074.27 787.066C1071.87 787.733 1071.6 795.333 1073.73 799.6C1074.8 801.6 1076.13 806.266 1076.67 810C1077.2 813.6 1078.13 817.733 1078.93 819.066C1079.6 820.4 1081.07 825.2 1082 829.733C1083.07 834.266 1086.4 847.333 1089.33 858.666C1094.4 877.866 1098.93 896.133 1103.33 915.333C1104.27 919.733 1106.67 929.866 1108.53 938C1116.53 971.333 1132.53 1052.93 1139.33 1094.67C1143.47 1119.2 1147.6 1144.13 1148.8 1150C1154.27 1179.2 1154 1197.33 1147.33 1216.13C1141.47 1232.93 1139.47 1235.6 1122.93 1246.8C1105.33 1258.8 1102.27 1260.53 1074.67 1274.4C1049.73 1286.67 1043.6 1289.33 1029.07 1294C1023.07 1296 1016.27 1298.4 1014 1299.33C1006.93 1302.27 963.866 1311.73 949.333 1313.6C930.8 1315.87 886.8 1315.87 870.666 1313.47C850.4 1310.53 831.733 1305.73 806.666 1296.67C791.466 1291.2 756.8 1271.33 752.4 1265.73C751.466 1264.53 749.2 1258.8 747.2 1252.8C744.133 1243.33 742.8 1237.47 738.666 1214.67C738 1211.33 736.8 1196 735.866 1180.67C733.6 1142.8 737.066 1032.27 740.533 1030.4C741.733 1029.73 742.666 1027.73 742.666 1026C742.666 1023.6 741.333 1022.27 737.066 1020.27C730 1017.07 723.466 1014.27 717.333 1012C713.466 1010.4 681.733 994.533 667.333 986.933C657.333 981.6 612.666 952 610.666 949.466C610.266 948.933 604 943.866 596.666 938.133C578.4 923.733 532.666 877.6 524.933 865.6C510.666 843.466 506 827.733 506 801.333C506 784 506.4 780.666 509.866 769.6C511.866 762.8 514.4 755.6 515.466 753.6C516.533 751.6 517.333 749.333 517.333 748.666C517.333 746.8 534.266 717.466 537.333 714C538.666 712.533 542 708 544.666 704C560.666 680.933 605.2 636.666 653.333 596C657.333 592.666 665.466 585.6 671.6 580.266C677.733 575.066 683.6 570.666 684.666 570.666C685.733 570.666 691.466 578 697.466 586.933C703.466 596 711.066 606.933 714.533 611.333C723.333 622.666 723.2 622 719.466 630C717.6 633.866 716 638.533 716 640.266C716 642 711.733 649.733 706.4 657.466C691.066 679.866 667.466 715.333 665.2 719.466C664 721.6 657.866 731.866 651.466 742.133C642.8 756.533 640 762.266 640 765.733C640 773.866 639.333 773.6 683.333 784C695.866 786.933 710.533 790.533 716 791.866C721.466 793.333 730.8 795.466 736.666 796.666C742.533 798 750.933 799.866 755.333 800.8C759.733 801.866 769.6 804.133 777.333 805.866C795.2 809.866 798 811.066 800.266 815.466C802.133 819.333 810.133 824.133 822 828.533C825.733 829.866 831.866 832.4 835.733 834.133C839.6 835.866 843.333 837.333 844.133 837.333C844.933 837.333 847.466 838.266 849.733 839.333C852.133 840.4 856.4 842 859.333 843.066C867.733 846 890.933 854.8 895.6 856.8C897.866 857.866 900.4 858.666 901.2 858.666C902 858.666 904.533 859.466 906.933 860.533C909.333 861.6 915.466 863.733 920.4 865.333C931.466 868.8 933.333 867.866 933.333 858.8C933.333 851.066 934.8 848.8 938.666 850C942.133 851.066 956.266 848.533 962 845.6C974.4 839.466 985.066 825.733 986.533 814.133C987.466 806.666 987.733 806.533 999.2 808.8C1003.47 809.6 1004.67 809.333 1006.13 807.333C1010 802.133 1007.07 780.666 1000 761.6C998.533 757.866 996.133 751.466 994.8 747.6C985.466 722.266 980.8 712 977.2 708.533C973.333 704.933 972.133 699.6 974.666 698C975.466 697.6 976 696.133 976 694.8C976 693.6 977.866 688.933 980.133 684.533C982.4 680.266 985.2 674.8 986.4 672.666C987.466 670.4 989.733 667.066 991.2 665.2C992.8 663.333 994.933 660.4 996 658.666C998.133 655.333 1009.2 641.733 1017.33 632C1020.13 628.666 1027.6 619.466 1033.87 611.6C1047.6 594.266 1048.13 591.733 1039.73 584.933C1031.2 578.133 971.2 537.333 969.733 537.333C969.333 537.333 967.333 536.133 965.2 534.533C960.933 531.466 960.4 528.4 963.333 522.266C966.666 515.066 970.133 492.266 969.2 482C968.8 476.8 968.933 472.266 969.333 471.6C970.533 470.133 984.133 468 999.333 466.8C1016 465.6 1032.93 466.266 1049.33 468.8ZM960 479.466C961.733 483.866 961.733 492.533 959.866 504.4C957.733 518.4 954.266 521.333 945.733 516C942.266 514 941.333 512.4 941.333 509.333C941.333 507.2 940.666 502.8 939.733 499.466C938.4 494.533 938.533 492.533 940.533 486.133C943.2 477.6 945.066 476.133 953.066 476C958 476 958.933 476.533 960 479.466ZM778.4 509.466C791.6 512.8 790.933 516.133 776.533 518.133C757.066 520.933 746.666 525.2 746.666 530.266C746.666 533.066 750.533 533.866 753.066 531.6C756.133 528.8 770.4 525.866 786 524.666C797.066 523.866 798.266 524 800.533 526.533C804.8 531.2 802.533 532.8 790.4 533.733C777.6 534.666 764.266 537.866 761.466 540.666C758.133 544 763.2 544.533 780.266 542.8C796.8 540.933 799.333 541.466 798.4 546.133C798.133 547.6 795.866 549.066 792 550.133C781.466 552.933 776.8 555.066 768.666 560.8C758.133 568.133 755.333 571.333 745.466 587.466C735.6 603.6 728 611.6 724.666 609.733C723.466 609.066 718.266 602.533 713.333 595.2C708.266 588 702.266 579.466 700 576.4C693.866 567.866 693.866 567.466 700.4 560.4C705.733 554.666 709.066 549.733 712.933 541.866C713.733 540.4 715.066 537.866 716 536C717.066 534.133 718.666 531.2 719.6 529.333C723.733 521.6 728.933 515.466 733.466 513.066C742.133 508.533 766.533 506.666 778.4 509.466ZM948.933 526C950.533 527.066 952.133 529.733 952.666 531.733C953.2 534.533 956 537.2 963.733 542.4C969.333 546.133 978.266 552.133 983.466 555.733C988.8 559.333 998.933 566.4 1006.13 571.333C1024.27 583.866 1034.8 592 1035.6 594.133C1036.13 595.6 1023.87 612.8 1020 616C1018.4 617.333 997.733 643.333 991.066 652.533C987.2 657.733 983.6 662.666 982.8 663.466C981.066 665.6 968 692.4 968 694C968 694.666 966.8 696.8 965.333 698.666C963.333 701.333 962.533 701.733 961.066 700.266C959.6 698.8 959.866 697.6 962.133 693.6C967.866 683.866 967.6 671.466 961.466 649.333C960 643.866 957.733 635.733 956.533 631.333C955.333 626.933 954 622.666 953.466 622C952.933 621.2 951.733 618.266 950.8 615.333C949.2 610.4 947.6 606.533 941.733 593.333C937.066 582.533 932.4 573.333 926.4 562.933C922.933 556.8 920 550.933 920 550C920 548.933 922.266 546.533 924.933 544.666C930.8 540.666 938.666 531.2 938.666 528C938.666 526.8 939.066 525.333 939.6 524.933C941.066 523.333 946 523.866 948.933 526ZM923.866 575.733C939.6 609.066 940.933 612.266 947.733 632.666C955.066 654.4 958 672.266 956 682C955.066 686.266 952.933 691.066 950.933 693.6C947.466 697.6 947.333 698.666 946.533 717.2C945.466 741.733 940.266 762.533 933.733 768.266C930.4 771.2 927.733 771.866 912.533 773.333C895.6 774.933 876.666 773.066 856.533 768.133C839.6 763.866 835.2 761.6 833.2 756.266C831.6 752 829.066 746.533 818.4 724.4C814.133 715.466 810.666 707.733 810.666 707.066C810.533 706.533 809.466 703.6 808 700.666C806.533 697.733 805.466 693.466 805.333 691.2C805.333 686.133 803.6 684.533 796.133 682.8C785.066 680.4 776.533 668.8 778.133 658.533C778.933 654.133 780 652.533 784.133 649.866C790.666 645.733 793.2 645.866 801.6 650.266C820 660.266 822.266 661.2 827.866 661.2C834.4 661.333 840 657.6 840 653.2C840 650.8 833.466 645.333 830.666 645.333C828.266 645.333 816.533 632.8 813.6 627.2C807.733 615.466 806.666 600.133 811.6 595.333C813.466 593.466 814 593.466 816.933 595.466C822 598.666 838 598.266 846 594.666C857.066 589.6 863.466 582 869.2 567.466C870.4 564.4 871.333 563.866 873.733 564.666C884.266 567.866 887.866 568.133 894.8 566C898.8 564.8 903.866 562.4 906 560.666C913.333 554.666 914.4 555.6 923.866 575.733ZM1238 612.133C1255.6 615.066 1273.87 618 1278.67 618.8C1283.47 619.466 1290.93 620.533 1295.33 621.333C1299.73 622 1310 623.6 1318 624.666C1326.13 625.733 1334.13 627.066 1336 627.466C1337.87 627.866 1345.33 629.066 1352.67 630C1360 631.066 1375.87 633.466 1388 635.333C1400.13 637.2 1416.53 639.6 1424.67 640.666C1432.67 641.733 1442.27 643.2 1446 643.866C1449.6 644.666 1458.13 645.866 1464.67 646.666C1471.33 647.466 1480 648.666 1484 649.333C1490.93 650.533 1500.53 652 1548 658.666C1558.67 660.266 1575.2 662.666 1584.67 664C1594.27 665.333 1607.2 667.2 1613.6 668C1625.33 669.6 1631.2 672 1628.67 674.4C1628 675.066 1621.07 677.6 1613.33 680C1605.6 682.533 1597.87 685.333 1596 686.266C1594.13 687.2 1592.13 688 1591.6 688C1590.93 688 1582.27 691.066 1572.27 694.8C1562.13 698.533 1551.07 702.666 1547.33 704C1536.53 707.733 1514.4 716.133 1509.73 718.133C1507.47 719.2 1504.8 720 1503.73 720C1502.67 720 1501.33 720.533 1500.53 721.066C1499.87 721.733 1490.67 725.333 1480 729.2C1469.33 733.066 1459.47 736.8 1458 737.466C1456.53 738 1450.27 740.4 1444 742.8C1437.73 745.066 1431.2 747.6 1429.33 748.4C1414.8 754.533 1404.93 756 1394.8 753.466C1392.13 752.8 1384.93 751.466 1378.67 750.666C1372.4 749.866 1365.6 748.666 1363.33 748C1359.6 746.933 1351.73 745.333 1327.33 740.666C1314.13 738.266 1298 734.933 1288.67 732.666C1284.27 731.733 1274.8 729.6 1267.73 728.133C1260.53 726.533 1249.07 724.133 1242.4 722.666C1224.13 718.666 1211.2 716 1200 714C1194.53 712.933 1186.13 711.2 1181.33 710.133C1176.53 708.933 1170.8 708 1168.4 708C1162.8 708 1161.6 704.266 1165.2 697.733C1166.67 694.933 1169.47 689.066 1171.33 684.666C1180.13 664.666 1180 664.8 1196.67 655.066C1198.13 654.133 1204.13 650.533 1210 647.066C1215.87 643.6 1221.33 640.4 1222 640.133C1222.8 639.866 1224.27 638.933 1225.33 638C1226.4 637.066 1230.53 634.666 1234.4 632.666C1242.13 628.666 1243.87 626.4 1241.33 623.333C1239.47 621.066 1238.4 621.466 1221.73 630.933C1214.27 635.2 1207.07 639.066 1205.73 639.6C1204.4 640 1201.6 641.733 1199.33 643.466C1197.2 645.066 1194 646.8 1192.4 647.333C1189.73 648 1189.33 647.733 1189.33 644.666C1189.33 642.8 1190.53 638.933 1192 636C1193.47 633.066 1194.67 630 1194.67 629.066C1194.67 628.133 1195.47 625.733 1196.53 623.733C1197.6 621.733 1198.8 618.266 1199.33 615.866C1200.53 610.533 1202.8 606.666 1204.67 606.666C1205.33 606.666 1220.4 609.066 1238 612.133ZM721.066 662C727.466 676 756.266 694.266 789.866 705.6L802.933 710L808.266 721.333C811.2 727.6 816.666 738.933 820.4 746.533C826.666 759.733 826.933 760.533 824.533 762.266C823.2 763.2 821.466 764 820.533 764C818.266 764 813.066 771.6 808.8 781.333C801.866 797.6 799.2 802 796.533 801.733C795.066 801.6 788.666 800.266 782 798.666C775.466 797.2 767.2 795.333 763.733 794.666C760.266 794 754 792.533 749.733 791.466C741.066 789.2 684.933 775.066 676.666 773.2C670.533 771.733 659.733 768.4 654.4 766.4C651.866 765.466 650.666 764 650.666 762.133C650.8 756.666 713.866 658.8 717.466 658.8C718.666 658.666 720.266 660.133 721.066 662ZM1656.4 685.333C1658.27 697.333 1658.13 882.666 1656.27 910.666C1655.47 924.266 1654.13 944.666 1653.33 956C1652.13 974.8 1651.33 984.133 1646.53 1028C1645.33 1039.87 1640.67 1073.47 1638 1089.33C1636.27 1100 1637.6 1099.2 1588.67 1121.2C1576.93 1126.53 1566.27 1131.47 1565.07 1132.13C1563.73 1132.8 1556.93 1136 1549.73 1139.2C1524.4 1150.53 1520.67 1152.27 1514 1155.33C1502.93 1160.53 1490.8 1165.87 1475.33 1172.53C1467.33 1176 1459.6 1179.47 1458.27 1180.13C1449.47 1184.8 1416.27 1198.67 1413.87 1198.67H1411.07L1410.13 1120.13C1409.2 1041.73 1409.47 1036 1413.47 1036C1414.27 1036 1420.4 1033.33 1427.07 1030.13C1453.6 1017.47 1470.13 1009.6 1474.4 1008C1477.2 1006.93 1478.67 1005.6 1478.4 1004.13C1477.73 1001.33 1470.27 1001.87 1459.47 1005.47C1455.07 1006.8 1450.27 1008 1448.53 1008C1446.93 1008 1441.87 1009.07 1437.2 1010.53C1423.6 1014.53 1413.73 1016.4 1411.47 1015.6C1409.6 1014.8 1409.33 1007.07 1409.33 940.8C1409.33 894.8 1409.87 866.533 1410.67 866C1412.4 864.933 1440.4 854.933 1448 852.666C1451.33 851.733 1457.33 849.6 1461.33 848C1465.33 846.533 1474.13 843.466 1480.67 841.2C1487.33 839.066 1493.6 836.8 1494.67 836.133C1495.73 835.6 1499.87 834.266 1503.6 833.333C1507.87 832.133 1512 830 1514.27 827.733L1517.87 824L1511.2 824.8C1507.6 825.2 1501.07 826.4 1496.67 827.333C1485.07 830 1476.4 831.466 1454.67 834.533C1416.27 840 1414.4 840.133 1412.53 838.533C1411.07 837.333 1410.67 829.866 1410.67 800.8V764.533L1416.53 761.6C1419.73 760 1423.07 758.666 1424 758.666C1424.8 758.666 1427.47 757.866 1429.73 756.8C1432.13 755.733 1436.67 754 1440 752.8C1443.33 751.733 1450.27 749.2 1455.33 747.333C1460.53 745.333 1467.33 742.933 1470.67 741.866C1474 740.8 1477.87 739.466 1479.33 738.8C1480.8 738.133 1488.27 735.333 1496 732.666C1503.73 730 1514.53 726 1520.13 723.866C1525.73 721.733 1530.67 720 1531.2 720C1531.87 720 1534.13 719.2 1536.4 718.133C1538.8 717.066 1542.8 715.6 1545.33 714.8C1547.87 714.133 1554.8 711.733 1560.67 709.6C1583.6 701.066 1602.27 694.4 1606.67 693.066C1609.2 692.4 1612 691.333 1612.67 690.666C1613.47 690.133 1616.4 689.066 1619.33 688.266C1626.13 686.4 1646.8 678.933 1647.87 678C1648.27 677.6 1650.13 677.333 1652 677.6C1654.93 678 1655.47 678.8 1656.4 685.333ZM968.933 713.6C973.733 716.4 975.866 720.666 984.133 742.666C989.466 757.066 996.4 781.6 998 791.6C998.8 796.8 998.666 797.333 996.133 797.333C994.666 797.333 987.066 794.266 979.466 790.666C971.866 786.933 965.066 784 964.4 784C963.866 784 961.866 782.8 960 781.333C958.133 779.866 955.866 778.666 954.933 778.666C951.866 778.666 944 772.666 944 770.4C944 769.066 945.066 766.133 946.4 763.733C950 757.2 954.4 738.266 955.333 724.666C955.866 718 956.4 711.866 956.8 710.933C957.466 708.8 963.066 710 968.933 713.6ZM1172.67 715.466C1177.07 716.4 1181.6 717.466 1182.67 717.866C1183.73 718.4 1189.2 719.6 1194.67 720.533C1200.13 721.6 1211.87 724 1220.67 726C1229.47 727.866 1241.07 730.266 1246.4 731.333C1251.73 732.4 1256.67 733.6 1257.33 734C1258 734.4 1263.33 735.6 1268.93 736.666C1279.2 738.4 1299.07 742.533 1324 748.133C1330.93 749.6 1340 751.466 1344 752.133C1348 752.8 1355.2 754.266 1360 755.333C1372 758.133 1389.07 761.6 1394.67 762.266C1397.2 762.666 1400.13 763.6 1401.07 764.266C1402.8 765.733 1403.07 798.133 1401.47 826L1400.67 840.666L1388.67 840.266C1343.2 838.666 1174.67 826.666 1158.13 823.733C1156.8 823.466 1155.33 824 1155.07 824.8C1154.27 827.2 1166.93 831.6 1181.33 833.866C1189.07 835.066 1202.27 837.2 1210.67 838.666C1219.07 840.266 1229.6 842 1234 842.666C1238.4 843.2 1247.47 844.666 1254 845.733C1260.67 846.933 1275.07 849.066 1286 850.666C1297.07 852.266 1313.87 854.666 1323.33 856C1332.93 857.333 1351.2 859.733 1364 861.333C1376.8 862.933 1390.4 864.666 1394 865.066L1400.67 866V941.333V1016.67L1396 1016.53C1393.47 1016.4 1384.8 1015.33 1376.67 1014.13C1331.07 1007.33 1289.6 1006 1295.07 1011.47C1295.47 1012 1307.73 1014.8 1322.27 1017.6C1355.47 1024.27 1355.33 1024.27 1371.33 1028.53C1378.67 1030.53 1388 1033.07 1391.87 1034.13C1395.87 1035.2 1399.73 1036.53 1400.27 1037.07C1400.93 1037.73 1401.2 1074.4 1401.07 1118.8L1400.67 1199.33L1397.07 1199.73C1395.07 1200 1387.87 1198.93 1381.07 1197.33C1374.27 1195.73 1363.33 1193.2 1356.67 1191.73C1350.13 1190.27 1339.73 1187.87 1333.73 1186.53C1327.6 1185.2 1317.73 1182.8 1311.73 1181.47C1290.53 1176.67 1276.53 1173.47 1263.33 1170.67C1256 1169.07 1245.47 1166.67 1240 1165.33C1228.27 1162.53 1195.33 1154.93 1186.67 1153.07C1175.33 1150.67 1159.33 1146.27 1157.87 1145.2C1157.07 1144.53 1155.47 1137.07 1154.13 1128.4C1152.93 1119.73 1151.33 1110 1150.67 1106.67C1149.87 1103.33 1148.8 1096.13 1148 1090.67C1146.4 1079.6 1143.87 1065.07 1136 1023.33C1130.4 993.733 1129.6 990.133 1122 957.333C1119.33 946 1115.87 931.2 1114.4 924.666C1108.93 900.266 1109.33 901.866 1096.67 855.333C1093.2 842.8 1090.13 831.333 1089.73 829.6C1089.2 827.333 1092.27 821.733 1102 806.933C1109.2 796.133 1116.4 785.2 1118 782.666C1119.6 780.133 1122 776.133 1123.47 774C1124.8 771.733 1127.07 767.866 1128.4 765.333C1129.73 762.8 1131.87 759.2 1133.07 757.333C1134.27 755.466 1136.13 752.133 1137.33 750C1138.53 747.733 1141.87 741.733 1144.67 736.666C1147.47 731.466 1151.2 724.666 1152.93 721.333C1156.8 714.266 1159.87 711.6 1162.67 712.8C1163.73 713.333 1168.27 714.4 1172.67 715.466ZM839.333 773.333C842.266 774 851.6 776.533 860 778.933C874.8 782.933 876.266 783.2 899.333 783.066C912.533 782.933 925.733 782.666 928.666 782.4L934 782L933.6 790.666C933.466 795.466 932.4 805.333 931.333 812.666C930.266 820 928.8 831.333 928 838C927.2 844.533 926.266 851.066 925.866 852.266C924.8 855.6 920 855.333 909.6 851.2C904.666 849.333 897.333 846.533 893.333 845.066C889.333 843.466 883.466 841.2 880.4 839.733C877.2 838.4 874 837.333 873.066 837.333C872.133 837.2 868.933 836.133 866 834.666C863.066 833.2 860.133 832.133 859.333 832C858.666 832 852 829.6 844.666 826.533C805.6 810.533 806.8 811.333 810 801.733C813.2 792.533 822.533 772.933 824.4 771.733C826 770.533 829.866 770.933 839.333 773.333ZM584 993.733C615.6 1004.4 633.6 1010.67 636.666 1012C638.133 1012.67 641.466 1013.73 644 1014.53C649.866 1016.13 659.866 1019.73 663.333 1021.33C664.8 1022 669.333 1023.73 673.333 1025.07C703.2 1035.2 710.266 1037.87 711.733 1039.73C714 1042.67 712.533 1043.6 703.333 1045.07C690.933 1047.07 673.066 1050.67 668.666 1052C666.533 1052.67 660.533 1053.87 655.333 1054.67C650.266 1055.47 642.666 1057.07 638.666 1058C634.666 1059.07 626.533 1060.8 620.666 1062C614.8 1063.2 600.133 1066.27 588 1068.8C575.866 1071.33 559.866 1074.67 552.266 1076C544.666 1077.47 538 1078.93 537.466 1079.33C536.8 1079.6 531.6 1080.8 525.866 1081.87C516.8 1083.47 498 1087.33 431.333 1101.33C424 1102.93 412.266 1105.33 405.333 1106.8C398.4 1108.13 389.866 1110 386.533 1110.8C368.8 1114.8 358 1116.4 344.666 1116.93L330 1117.47L310.666 1110.93C300 1107.2 285.333 1102 278 1099.33C270.666 1096.67 263.2 1094 261.333 1093.33C259.466 1092.67 253.866 1090.53 248.666 1088.53C243.6 1086.67 236.4 1084 232.666 1082.67C229.066 1081.33 222.666 1078.93 218.666 1077.33C211.333 1074.53 203.2 1071.47 192 1067.47C188.666 1066.27 184.8 1064.67 183.333 1064C181.866 1063.33 178.266 1061.87 175.333 1060.93C164.8 1057.2 115.333 1038.4 114.666 1037.73C113.333 1036.53 118 1034.93 125.2 1034.13C136.4 1032.8 163.466 1029.6 186.666 1026.53C228.266 1021.33 446.666 994.4 484.666 990C515.466 986.266 527.066 985.466 544.666 985.866C561.733 986.266 562.4 986.4 584 993.733ZM107.2 1045.2C111.733 1047.33 119.6 1050.67 124.666 1052.53C129.866 1054.53 135.866 1056.93 138 1057.87C140.266 1058.93 146.266 1061.33 151.333 1063.2C156.533 1065.2 162.8 1067.73 165.333 1068.93C167.866 1070 174.266 1072.4 179.333 1074.27C184.533 1076.13 190.533 1078.4 192.666 1079.33C197.733 1081.47 221.6 1090.53 228.666 1092.93C231.6 1093.87 235.2 1095.33 236.666 1096C241.866 1098.27 286.133 1113.6 297.2 1116.8C303.333 1118.67 311.866 1121.33 316.133 1122.67C320.4 1124.13 325.733 1125.33 327.866 1125.33C336 1125.33 336 1125.2 336 1171.87C336 1205.2 335.6 1214.67 334.266 1215.73C332.533 1217.2 323.466 1216.67 298 1213.33C285.733 1211.73 249.2 1208.27 239.466 1207.73C235.866 1207.6 232.666 1208 232.4 1208.67C231.866 1210.53 240.666 1214.4 250 1216.67C254.4 1217.6 262.266 1219.73 267.333 1221.2C272.533 1222.8 279.733 1224.93 283.333 1226C287.066 1227.07 294.933 1229.47 301.066 1231.33C307.066 1233.2 316.933 1236.13 322.8 1237.87C328.8 1239.6 334.266 1241.87 334.8 1242.93C335.466 1243.87 336 1266 336 1292.13C336 1328.53 335.6 1340 334.4 1341.07C333.2 1342 329.733 1341.47 322.666 1339.07C317.2 1337.2 308.8 1334.67 304 1333.2C299.2 1331.87 285.733 1328 274 1324.53C262.266 1321.2 249.333 1317.87 245.333 1317.07C241.333 1316.4 236.666 1315.2 235.066 1314.4C233.333 1313.6 231.6 1313.33 231.066 1313.87C229.866 1315.07 238.533 1322.53 240.933 1322.67C242.4 1322.67 273.866 1335.2 286 1340.53C288.266 1341.6 293.6 1343.87 298 1345.73C309.733 1350.53 323.866 1356.53 330.4 1359.47C333.866 1360.93 336.266 1362.93 336.666 1364.67C336.933 1366.13 337.733 1391.07 338.666 1420C339.466 1448.93 340.4 1483.87 340.933 1497.6C341.6 1518.27 341.466 1522.67 339.866 1522.67C338.933 1522.67 331.733 1520.27 324 1517.47C316.266 1514.53 303.733 1510 296 1507.33C288.266 1504.67 280.8 1501.87 279.333 1501.33C273.066 1498.53 255.2 1492 254 1492C253.333 1491.87 250.266 1490.8 247.333 1489.33C244.4 1487.87 241.066 1486.67 240 1486.67C238.933 1486.67 236.4 1485.87 234.4 1484.8C232.4 1483.73 228.8 1482.53 226.4 1482C224 1481.47 221.333 1480.53 220.533 1479.87C219.733 1479.2 216.4 1477.87 213.2 1476.8C210 1475.73 203.2 1473.33 198 1471.33C185.733 1466.67 175.066 1462.8 169.333 1461.07C166.8 1460.4 164.133 1459.2 163.333 1458.67C162.666 1458.13 160.533 1457.2 158.666 1456.67C155.066 1455.6 123.733 1444.4 119.333 1442.67C105.333 1436.8 104 1436 103.466 1433.07C102.133 1426.8 101.333 1372.67 102.4 1370.93C103.466 1369.47 106 1369.87 116.133 1373.2C138.266 1380.53 158 1386.4 163.066 1387.33C167.333 1388.13 168 1388 168 1385.73C168 1383.87 164.133 1380.8 153.733 1374.53C146 1369.87 138.933 1365.73 138.133 1365.47C137.333 1365.2 134.933 1363.6 132.666 1362C130.533 1360.4 127.733 1358.67 126.666 1358.13C125.6 1357.6 122.266 1355.73 119.333 1354C116.4 1352.27 112.133 1349.87 109.866 1348.67C107.6 1347.47 104.4 1345.2 102.933 1343.6C100.4 1340.8 100.266 1337.2 98.1331 1258.67C96.3997 1190.93 96.2664 1176.53 97.7331 1175.07C99.1997 1173.6 100.533 1173.6 105.333 1175.33C108.666 1176.53 115.733 1178.27 121.333 1179.33C126.8 1180.4 136.133 1182.13 142 1183.33C161.6 1187.47 162.666 1187.47 162.666 1183.6C162.666 1181.07 160.933 1179.33 154.4 1175.33C149.733 1172.53 136.533 1164 125.066 1156.4C113.6 1148.8 102.933 1142.67 101.466 1142.67C95.8664 1142.67 95.3331 1139.33 95.9997 1112.93C96.3997 1099.33 97.0664 1087.73 97.5997 1087.2C98.5331 1086.4 101.333 1087.2 111.333 1091.33C113.6 1092.13 120.8 1094.93 127.333 1097.33C134 1099.6 140.533 1102.13 142 1102.8C145.733 1104.4 155.733 1107.87 161.333 1109.6C163.866 1110.27 166.933 1111.73 168.133 1112.8C169.2 1113.87 172.133 1114.67 174.533 1114.67C180.133 1114.67 179.733 1110.8 174 1108.93C171.866 1108.27 169.066 1106.93 168 1106C166.933 1105.07 164.533 1103.87 162.666 1103.33C160.8 1102.8 156 1100.93 152 1099.07C148 1097.2 143.466 1095.33 142 1094.8C140.533 1094.27 136.666 1092.53 133.333 1091.07C130 1089.6 120.8 1085.73 112.666 1082.67C104.666 1079.6 97.5997 1076.4 97.0664 1075.6C95.7331 1073.6 95.7331 1043.47 96.9331 1042.27C98.1331 1040.93 98.2664 1040.93 107.2 1045.2ZM730.133 1051.33C730.533 1053.2 730.133 1068.27 729.2 1084.93C726.8 1125.33 727.066 1187.6 729.733 1209.33C731.866 1226.27 735.333 1243.47 739.466 1258.13C741.733 1266 741.733 1266.4 738.8 1276.13C737.066 1281.6 734.933 1288.13 734 1290.67C731.2 1297.87 721.466 1335.2 718.133 1352C715.333 1365.47 710.933 1393.47 709.866 1403.73C709.333 1408.27 708.266 1412.93 707.466 1414.13C706.533 1415.2 698.666 1418.27 690 1420.93C674 1425.6 664.4 1428.53 642 1435.33C635.466 1437.33 624.266 1440.67 617.333 1442.8C610.4 1444.93 601.733 1447.47 598 1448.67C594.4 1449.87 587.2 1452 582 1453.47C576.933 1455.07 571.2 1456.8 569.333 1457.33C567.466 1457.87 560 1460.27 552.666 1462.4C545.333 1464.67 531.6 1468.93 522 1471.87C512.533 1474.8 499.6 1478.67 493.333 1480.53C487.066 1482.4 479.333 1484.8 476 1485.87C470.533 1487.6 462.266 1490.13 438 1497.47C421.6 1502.4 412.533 1505.2 408.666 1506.53C406.533 1507.33 398.4 1509.73 390.666 1512.13C382.933 1514.4 372.8 1517.47 368 1518.93C353.466 1523.33 352.266 1523.47 351.466 1519.87C350.4 1514.67 345.066 1367.87 345.866 1364.8C346.533 1361.87 350.8 1360 386.666 1346.4C390.666 1344.8 396.4 1342.4 399.466 1341.07C402.4 1339.73 406 1338.67 407.466 1338.67C411.066 1338.67 413.866 1336.53 412.8 1334.8C411.6 1332.93 404 1332.93 399.466 1334.67C397.6 1335.33 389.733 1336.8 381.733 1338C373.866 1339.07 363.2 1340.67 358.133 1341.33C350.533 1342.53 348.533 1342.4 346.933 1340.8C345.333 1339.33 345.066 1330.4 344.8 1291.2L344.666 1243.47L350.666 1241.07C354 1239.87 362.666 1237.2 370 1235.33C377.333 1233.47 387.2 1230.67 392 1229.2C396.8 1227.87 401.466 1226.67 402.4 1226.67C403.466 1226.67 408.533 1225.47 413.733 1224.13C424.8 1221.07 440.933 1217.07 453.333 1214.13C458.133 1212.93 468.4 1210.53 476.133 1208.67C484 1206.8 491.6 1205.33 493.066 1205.33C496.933 1205.33 502.8 1202.53 501.866 1201.2C500.933 1199.6 485.066 1199.73 477.333 1201.33C474 1202 457.6 1204.4 440.666 1206.53C369.733 1215.87 350 1217.87 346.4 1215.87C344.133 1214.67 344 1211.6 344 1171.2V1128L347.466 1126.67C349.333 1125.87 352.666 1125.33 355.066 1125.33C359.066 1125.33 372.933 1122.8 398 1117.33C410.133 1114.8 424.133 1111.87 448.666 1106.67C456 1105.2 467.466 1102.8 474 1101.47C480.666 1100 490.533 1098 496 1096.8C512.266 1093.47 537.333 1088 546.666 1086C558 1083.6 574.933 1080.13 583.333 1078.53C587.066 1077.87 592.666 1076.67 596 1075.73C602.933 1074.13 612.666 1072 631.333 1068.13C657.866 1062.8 664.933 1061.33 677.333 1058.67C684.266 1057.07 694.266 1054.93 699.333 1053.87C704.533 1052.8 712 1051.07 716 1050.13C727.333 1047.33 729.2 1047.47 730.133 1051.33ZM1672.27 1109.47C1687.2 1111.87 1703.33 1114.13 1708.4 1114.67C1713.33 1115.2 1717.87 1116 1718.4 1116.53C1719.87 1118.13 1713.2 1122.4 1706.67 1124C1703.33 1124.8 1700.13 1126 1699.33 1126.53C1698.67 1127.2 1691.47 1129.87 1683.33 1132.67C1675.33 1135.33 1668.13 1138.13 1667.33 1138.67C1666.67 1139.2 1663.87 1140.13 1661.33 1140.67C1658.8 1141.2 1654.93 1142.53 1652.67 1143.47C1650.53 1144.4 1637.33 1149.2 1623.33 1154C1609.47 1158.8 1596.27 1163.6 1594 1164.67C1591.87 1165.6 1588.53 1166.8 1586.67 1167.33C1584.8 1167.73 1581.2 1168.93 1578.67 1170C1576.13 1170.93 1562.67 1175.73 1548.67 1180.67C1534.8 1185.47 1521.6 1190.27 1519.33 1191.33C1517.2 1192.4 1513.2 1193.73 1510.67 1194.53C1508.13 1195.2 1500.93 1197.73 1494.67 1200C1479.73 1205.6 1477.73 1206 1470.67 1203.33C1467.33 1202.13 1462.27 1200.67 1459.33 1200.13C1451.73 1198.8 1450.4 1197.73 1452 1194.53C1452.8 1193.2 1454 1192 1454.67 1192C1456 1192 1532.27 1158.4 1548.67 1150.53C1553.07 1148.53 1560.53 1145.07 1565.33 1142.8C1570.13 1140.67 1580.53 1135.87 1588.53 1132.13C1596.4 1128.4 1603.2 1125.33 1603.6 1125.33C1604.93 1125.33 1634 1110.4 1637.07 1108.13C1639.07 1106.67 1641.73 1105.33 1642.93 1105.33C1644.13 1105.33 1657.33 1107.2 1672.27 1109.47ZM1731.07 1125.73C1732.27 1128.8 1727.87 1320.53 1726.53 1321.87C1725.87 1322.67 1717.87 1322.27 1705.73 1320.8C1608.8 1309.33 1570.4 1308.13 1533.87 1315.47C1518.4 1318.53 1492.13 1325.2 1489.07 1326.8C1484.53 1329.2 1482.67 1327.33 1482.67 1320.13C1482.67 1311.87 1484.27 1310.27 1494.13 1308.13C1498.53 1307.2 1504.67 1305.6 1508 1304.53C1511.33 1303.6 1520.27 1301.2 1528 1299.33C1544.67 1295.07 1579.33 1285.87 1588.67 1283.2C1592.4 1282.13 1598.13 1280.8 1601.6 1280.13C1605.07 1279.6 1609.47 1278 1611.2 1276.8C1613.07 1275.6 1615.87 1274.67 1617.33 1274.67C1619.33 1274.67 1620 1274 1619.73 1272.27C1619.47 1270.8 1618.27 1270.13 1616.67 1270.4C1615.2 1270.67 1606.27 1272 1596.67 1273.2C1578.8 1275.73 1558.4 1278.8 1538.67 1282C1532.4 1283.07 1520.13 1284.8 1511.33 1286C1502.53 1287.2 1493.33 1288.8 1490.93 1289.6C1482.67 1292.13 1482.67 1292 1482.67 1250.53V1213.33L1486.4 1211.87C1488.4 1211.07 1491.87 1209.6 1494 1208.67C1496.27 1207.6 1500.67 1206.13 1503.87 1205.33C1507.07 1204.53 1510.67 1203.33 1511.87 1202.67C1514.53 1201.2 1540.53 1192 1541.87 1192C1543.07 1192 1563.2 1184.4 1568.67 1182C1570.93 1180.93 1574.8 1179.6 1577.33 1178.8C1579.87 1178.13 1585.33 1176.27 1589.33 1174.8C1614.8 1165.87 1627.87 1161.07 1631.6 1159.33C1633.87 1158.27 1636.4 1157.33 1637.33 1157.33C1638.27 1157.33 1640.8 1156.53 1643.07 1155.47C1645.47 1154.4 1652.13 1152 1658 1150C1663.87 1148.13 1669.87 1146 1671.33 1145.33C1672.8 1144.67 1680 1142 1687.33 1139.47C1694.67 1136.8 1701.6 1134.13 1702.67 1133.47C1703.87 1132.8 1706.8 1131.87 1709.33 1131.33C1711.87 1130.8 1714.8 1129.73 1716 1129.2C1718 1128 1727.87 1124.27 1729.47 1124.13C1730 1124 1730.67 1124.8 1731.07 1125.73ZM108.133 1155.73C112.533 1158.93 126.8 1167.33 129.733 1168.4C132.533 1169.47 132.666 1171.87 129.866 1172.93C127.333 1173.87 96.1331 1165.33 93.8664 1162.93C91.5997 1160.67 92.5331 1158.53 97.0664 1155.73C101.866 1152.8 104.266 1152.8 108.133 1155.73ZM1169.87 1193.2C1173.87 1194.53 1187.2 1197.2 1216.67 1202.67C1224.8 1204.27 1234.4 1206 1238 1206.8C1246.67 1208.4 1282.13 1214.67 1287.33 1215.47C1289.6 1215.87 1298.4 1217.33 1306.93 1218.8C1331.2 1222.8 1352.4 1226.4 1371.33 1229.6C1396.93 1233.87 1411.33 1233.2 1432.67 1227.2C1440.13 1225.07 1443.33 1220.93 1444.8 1211.87C1445.33 1208.93 1446.13 1206.27 1446.8 1206C1448.13 1205.07 1470.8 1211.6 1472.53 1213.33C1473.33 1214.13 1474.13 1230.27 1474.4 1252L1474.93 1289.2L1471.6 1290C1469.73 1290.53 1454.53 1289.6 1437.73 1288.13C1421.07 1286.67 1392.93 1284.13 1375.33 1282.53C1357.73 1281.07 1334.67 1278.93 1324 1277.87C1298 1275.07 1294.4 1275.07 1293.73 1276.93C1293.33 1277.87 1293.87 1278.93 1294.93 1279.2C1295.87 1279.47 1301.2 1280.93 1306.67 1282.53C1312.13 1284 1323.6 1286.53 1332 1288C1340.4 1289.47 1350.67 1291.2 1354.67 1292C1358.67 1292.8 1367.2 1294.27 1373.6 1295.33C1380 1296.27 1390.53 1298.13 1396.93 1299.2C1415.47 1302.4 1439.6 1306.27 1452.67 1308C1459.33 1308.93 1466.67 1310.53 1469.07 1311.47C1473.2 1313.2 1473.33 1313.33 1473.33 1321.73C1473.33 1329.2 1472.93 1330.4 1470.4 1331.6C1467.6 1332.93 1444.67 1340.27 1410 1350.8C1402.67 1353.07 1394.53 1355.73 1392 1356.8C1389.47 1357.73 1384.67 1359.2 1381.33 1360C1378 1360.8 1372.93 1362.27 1370 1363.33C1362.8 1365.73 1335.47 1374.4 1313.33 1381.33C1303.47 1384.4 1293.2 1387.73 1290.67 1388.67C1288.13 1389.73 1283.33 1391.2 1280 1392.13C1276.67 1392.93 1273.47 1394 1272.67 1394.67C1272 1395.2 1269.2 1396.13 1266.67 1396.67C1264.13 1397.2 1258.27 1399.33 1253.87 1401.33C1246.27 1404.8 1245.6 1405.47 1244.8 1410.27C1242.27 1427.07 1240.8 1472.4 1240.67 1534.4V1604.27L1237.33 1603.6C1233.33 1602.8 1222.8 1599.07 1219.87 1597.47C1218.67 1596.8 1215.33 1595.6 1212.4 1594.8L1207.07 1593.33L1206.13 1568.27C1204.13 1511.73 1196.27 1439.73 1187.07 1394C1186 1388.13 1184.53 1380 1183.87 1376C1183.33 1372 1181.87 1364.8 1180.8 1360C1172 1322.67 1166.4 1300 1164.8 1296C1163.73 1293.47 1161.07 1285.6 1158.8 1278.67C1153.47 1261.87 1150.93 1254.8 1148.67 1249.73C1146 1244 1146.13 1239.6 1149.33 1235.6C1150.8 1233.73 1152 1231.47 1152 1230.4C1152 1229.47 1152.93 1226.8 1154.13 1224.67C1155.33 1222.4 1157.33 1215.47 1158.67 1209.2C1160.93 1198 1163.2 1192 1164.93 1192C1165.47 1192 1167.6 1192.53 1169.87 1193.2ZM1637.07 1323.33C1676 1326.93 1733.47 1333.87 1822 1345.33C1833.73 1346.8 1847.6 1348.67 1852.67 1349.33C1857.87 1350 1876.13 1352.4 1893.33 1354.67C1910.53 1356.93 1934.53 1360 1946.67 1361.47C1978.4 1365.2 1985.2 1367.6 1973.07 1370.67C1969.87 1371.47 1965.2 1372.93 1962.67 1374C1954.93 1377.07 1933.2 1385.47 1925.33 1388.27C1921.33 1389.73 1914.8 1392.4 1910.93 1394.13C1907.07 1395.87 1903.33 1397.33 1902.53 1397.33C1901.73 1397.33 1899.2 1398.13 1896.93 1399.2C1887.87 1403.33 1880.13 1406.53 1866.67 1412C1847.87 1419.47 1825.47 1429.07 1821.33 1431.33C1819.47 1432.27 1814.93 1434.27 1811.33 1435.73C1807.6 1437.2 1801.07 1440 1796.67 1442C1792.27 1444 1786.93 1446.4 1784.67 1447.33C1782.53 1448.4 1777.2 1450.67 1772.93 1452.53C1768.67 1454.4 1764.93 1456 1764.53 1456C1764.13 1456 1761.87 1456.93 1759.6 1458C1752.93 1460.93 1734.8 1465.33 1728.67 1465.33C1725.6 1465.33 1714.27 1463.87 1703.2 1462C1684.4 1458.8 1644 1452.4 1635.33 1451.07C1628.4 1450.13 1598.53 1445.47 1584.67 1443.33C1577.33 1442.13 1566.8 1440.67 1561.33 1440C1555.87 1439.33 1545.33 1437.87 1538 1436.67C1486.53 1428.8 1366.93 1413.33 1306.93 1406.8C1285.73 1404.53 1278.93 1402.67 1280.67 1400C1281.07 1399.33 1283.87 1398.53 1287.07 1398C1290.13 1397.47 1293.87 1396.4 1295.33 1395.6C1296.67 1394.93 1301.87 1393.2 1306.67 1391.87C1318.67 1388.67 1326.27 1386.27 1374 1371.47C1379.87 1369.6 1389.47 1366.67 1395.33 1364.8C1401.2 1363.07 1412.93 1359.33 1421.33 1356.67C1429.73 1354 1440.27 1350.8 1444.67 1349.47C1449.07 1348.13 1457.47 1345.47 1463.33 1343.73C1508.67 1329.6 1526.67 1324.93 1543.73 1322.8C1550.13 1322 1556.8 1321.07 1558.67 1320.8C1565.07 1319.6 1615.6 1321.2 1637.07 1323.33ZM126.666 1368C126.666 1368.67 126.133 1369.33 125.466 1369.33C124.666 1369.33 123.733 1368.67 123.333 1368C122.933 1367.2 123.466 1366.67 124.533 1366.67C125.733 1366.67 126.666 1367.2 126.666 1368ZM885.066 1377.6C885.733 1385.07 874.4 1407.6 864.8 1418.27C858.4 1425.2 840.266 1440 838 1440C837.6 1440 834.8 1441.2 831.6 1442.53C821.733 1447.07 811.733 1449.47 799.066 1450.27C785.6 1451.07 782.666 1450.13 782.666 1444.67C782.666 1440.13 785.2 1438.93 795.333 1438C819.6 1435.87 837.2 1428.4 852.533 1413.73C863.2 1403.33 868.933 1394.93 875.2 1379.33C878.933 1370.27 884.4 1369.33 885.066 1377.6ZM1996.67 1376.93C1996.13 1379.73 1995.33 1387.33 1994.8 1394L1994 1405.87L1984.53 1410.93C1975.87 1415.47 1950.4 1426.8 1900.67 1448.13C1890.4 1452.53 1880.8 1456.67 1879.33 1457.33C1867.07 1462.8 1857.33 1466.67 1856.27 1466.67C1855.6 1466.67 1854.27 1467.47 1853.47 1468.53C1852.53 1469.6 1850 1470.93 1847.73 1471.47C1845.47 1471.87 1841.73 1473.47 1839.47 1474.8C1837.2 1476.13 1834.27 1477.33 1833.07 1477.33C1830.67 1477.33 1826.67 1480.8 1826.67 1482.8C1826.67 1484.93 1833.2 1484.13 1838.67 1481.33C1841.6 1479.87 1844.67 1478.67 1845.47 1478.67C1846.27 1478.67 1849.47 1477.6 1852.53 1476.13C1860.67 1472.4 1875.87 1466.67 1877.47 1466.67C1878.27 1466.67 1880.8 1465.87 1883.07 1464.8C1885.47 1463.73 1899.07 1458.67 1913.33 1453.33C1927.6 1448.13 1941.2 1442.93 1943.33 1442C1945.6 1441.07 1950.4 1438.93 1954 1437.2C1962.4 1433.6 1982.53 1423.6 1986.13 1421.33C1990.13 1418.93 1993.6 1420.53 1992.8 1424.27C1989.47 1439.73 1982.67 1602.4 1980.53 1716.67C1979.73 1761.2 1979.6 1763.47 1976.93 1766.4C1975.47 1768 1973.73 1769.33 1973.07 1769.33C1971.87 1769.33 1966.8 1771.47 1950.67 1778.93C1945.87 1781.2 1937.2 1785.07 1931.33 1787.6C1925.47 1790.13 1919.47 1792.67 1918 1793.33C1908.93 1797.2 1898.93 1801.33 1896.4 1802C1892.53 1803.07 1889.33 1806.27 1889.33 1808.93C1889.33 1811.33 1895.2 1810.4 1903.33 1806.67C1906.27 1805.33 1910.13 1803.87 1912 1803.33C1913.87 1802.93 1916.53 1802 1918 1801.33C1919.47 1800.67 1926.13 1798 1932.67 1795.47C1946 1790.4 1965.2 1782.27 1971.47 1779.07C1973.73 1777.87 1976.67 1777.33 1978 1777.87C1980.13 1778.67 1980.27 1780.67 1979.73 1801.73C1979.2 1825.47 1978.53 1828.4 1972.67 1833.6C1967.73 1838 1963.47 1839.6 1886.67 1864C1872.4 1868.53 1858.53 1873.07 1856 1874.13C1853.47 1875.07 1849.87 1876.27 1848 1876.67C1846.13 1877.07 1842.53 1878.27 1840 1879.33C1837.47 1880.27 1829.07 1883.07 1821.33 1885.33C1813.6 1887.73 1801.33 1891.6 1794 1894C1786.67 1896.4 1772 1901.2 1761.47 1904.67C1750.8 1908.13 1740.8 1911.6 1739.07 1912.4C1731.87 1915.6 1732 1917.2 1734.13 1828C1736.13 1746 1736.13 1746 1739.07 1743.73C1740.67 1742.4 1742.4 1741.33 1742.93 1741.33C1743.73 1741.33 1765.2 1732 1788 1721.73C1792.8 1719.6 1800.93 1716 1806 1714C1811.2 1711.87 1815.6 1709.73 1816 1709.2C1816.4 1708.67 1818.8 1707.73 1821.33 1707.07C1827.87 1705.33 1828.53 1701.33 1822.13 1701.33C1819.6 1701.33 1817.2 1701.87 1816.67 1702.53C1816.27 1703.2 1814 1704.13 1811.6 1704.67C1806.4 1705.73 1787.73 1711.6 1781.33 1714C1778.8 1715.07 1773.33 1716.8 1769.33 1717.87C1761.07 1720.13 1750 1723.73 1746 1725.47C1743.33 1726.53 1740.4 1727.07 1738 1726.8C1737.2 1726.67 1736.8 1717.6 1737.07 1701.73C1737.6 1672.4 1737.2 1673.2 1751.33 1670.27C1756.53 1669.2 1767.6 1666.4 1776 1664C1784.4 1661.6 1793.87 1659.2 1797.07 1658.53C1800.13 1657.87 1803.73 1656.93 1805.07 1656.27C1806.27 1655.6 1814 1653.2 1822 1650.8C1841.2 1645.47 1866.53 1637.07 1881.73 1631.2C1917.6 1617.33 1926.67 1612.67 1926.67 1608.27C1926.67 1605.6 1922.67 1606.53 1900 1614.53C1889.33 1618.13 1872.53 1623.73 1862.67 1626.67C1852.8 1629.73 1842 1633.07 1838.67 1634.13C1831.73 1636.4 1826.8 1637.87 1803.33 1644.53C1793.87 1647.33 1783.87 1650.27 1781.33 1651.33C1778.8 1652.27 1771.6 1654.4 1765.33 1656C1759.07 1657.6 1751.47 1659.87 1748.27 1660.93C1737.87 1664.53 1738.27 1666.67 1739.33 1618.93C1739.73 1595.73 1740.53 1575.73 1740.8 1574.53C1741.2 1573.33 1744.53 1570.93 1748.4 1569.47C1752.27 1567.87 1756.53 1566 1758 1565.33C1759.47 1564.67 1765.47 1562.27 1771.33 1560C1777.2 1557.73 1783.87 1555.07 1786.27 1554C1788.53 1552.93 1790.8 1552 1791.2 1552C1792.13 1552 1815.73 1541.47 1830.27 1534.53C1834.8 1532.4 1839.33 1530.67 1840.4 1530.67C1841.47 1530.67 1842.67 1529.73 1843.07 1528.67C1843.6 1527.6 1845.87 1526.27 1848.27 1525.6C1853.07 1524.4 1854.4 1520.53 1850 1520.93C1847.07 1521.2 1836.4 1524.53 1830 1527.33C1827.87 1528.27 1823.87 1529.47 1821.33 1530C1818.8 1530.53 1815.2 1531.73 1813.33 1532.67C1811.47 1533.6 1807.07 1534.93 1803.33 1535.87C1799.73 1536.67 1794.53 1538.27 1792 1539.2C1789.47 1540.27 1777.87 1543.87 1766.27 1547.33C1749.33 1552.27 1744.8 1553.2 1743.2 1551.87C1741.6 1550.53 1741.33 1544.27 1741.6 1512.13L1742 1474L1756 1468.4C1763.73 1465.2 1770.53 1462.67 1771.07 1462.67C1771.73 1462.67 1775.47 1461.2 1779.47 1459.33C1783.47 1457.47 1787.07 1456 1787.47 1456C1787.87 1456 1790.13 1455.2 1792.4 1454.13C1796.27 1452.27 1824.53 1440.8 1840.4 1434.53C1863.07 1425.47 1882.4 1417.6 1887.6 1415.2C1889.87 1414.13 1892.13 1413.33 1892.53 1413.33C1892.93 1413.33 1895.87 1412.13 1899.07 1410.8C1902.13 1409.33 1911.6 1405.33 1920 1402C1928.4 1398.67 1937.2 1395.07 1939.33 1394C1941.6 1393.07 1946.67 1390.93 1950.67 1389.33C1954.67 1387.73 1961.6 1384.93 1966 1383.07C1970.4 1381.2 1975.87 1379.07 1978 1378.13C1980.27 1377.2 1984.13 1375.47 1986.67 1374.27C1989.2 1373.2 1992.8 1372.13 1994.53 1372.13C1997.47 1372 1997.6 1372.4 1996.67 1376.93ZM1267.2 1412C1271.73 1412.67 1284.93 1414.53 1296.67 1416C1341.73 1422 1387.33 1428.13 1410.67 1431.47C1419.07 1432.53 1428.4 1433.87 1431.33 1434.27C1438.13 1435.07 1469.47 1439.2 1494.67 1442.67C1505.33 1444.13 1523.33 1446.53 1534.67 1448C1546 1449.47 1561.6 1451.6 1569.33 1452.67C1577.07 1453.87 1587.87 1455.33 1593.33 1456C1598.8 1456.67 1625.87 1460.27 1653.33 1464C1680.8 1467.87 1709.47 1471.6 1717.07 1472.4C1727.33 1473.47 1731.07 1474.27 1731.73 1475.87C1732.27 1477.07 1732.4 1495.33 1732 1516.67L1731.33 1555.33L1720.67 1555.07C1706.67 1554.8 1671.47 1550.67 1629.33 1544.53C1568.8 1535.87 1552.27 1534.13 1547.2 1536.13L1543.33 1537.6L1547.33 1539.47C1549.6 1540.4 1552.8 1541.2 1554.67 1541.33C1556.4 1541.33 1563.07 1542.53 1569.33 1544C1581.87 1546.8 1601.2 1550.67 1607.33 1551.47C1609.6 1551.87 1617.33 1553.2 1624.67 1554.67C1632 1556.13 1644.67 1558.53 1652.67 1559.87C1660.8 1561.33 1674 1563.73 1682 1565.2C1690.13 1566.67 1703.47 1568.93 1711.73 1570.13C1720 1571.33 1727.73 1573.2 1728.93 1574C1730.93 1575.47 1730.93 1581.07 1729.47 1646.8C1728.53 1686 1727.33 1720.13 1726.8 1722.67C1726.13 1726.27 1725.2 1727.47 1722.67 1727.87C1718.4 1728.4 1700 1725.73 1685.33 1722.4C1679.07 1721.07 1669.2 1718.93 1663.33 1717.87C1657.47 1716.67 1651.6 1715.2 1650.4 1714.53C1647.07 1712.8 1643.73 1713.07 1644.27 1714.93C1644.67 1715.87 1646 1716.93 1647.47 1717.33C1648.8 1717.73 1651.47 1718.93 1653.33 1720.27C1655.2 1721.47 1658.8 1722.8 1661.33 1723.33C1663.87 1723.87 1666.67 1724.8 1667.33 1725.33C1668.13 1726 1672 1727.33 1676 1728.4C1680 1729.6 1686.67 1731.73 1690.67 1733.33C1694.67 1734.93 1701.07 1737.07 1704.67 1738.13C1708.4 1739.07 1712.53 1740.53 1714 1741.2C1715.47 1742 1718.93 1743.47 1721.87 1744.67L1727.07 1746.67L1726.27 1755.07C1725.73 1759.6 1724.93 1796.8 1724.53 1837.73C1723.73 1898.13 1723.2 1912.27 1721.73 1913.6C1720.4 1914.67 1717.33 1914.53 1709.6 1912.67C1698.8 1910.27 1679.87 1906.53 1662 1903.2C1656.13 1902.13 1650.53 1901.07 1649.6 1900.67C1648.67 1900.27 1628 1896.13 1603.6 1891.33C1579.2 1886.4 1555.47 1881.73 1550.67 1880.67C1545.87 1879.6 1482 1866.8 1408.67 1852.13C1335.33 1837.33 1273.33 1824.93 1270.8 1824.27C1263.2 1822.53 1261.07 1818.13 1259.87 1802.4C1259.33 1794.93 1259.33 1788 1259.6 1787.07C1260.4 1784.93 1269.2 1784.93 1318.67 1786.67C1355.33 1788.13 1363.2 1787.73 1362.27 1784.93C1362 1784 1353.47 1781.07 1343.2 1778.4C1333.07 1775.73 1321.73 1772.53 1318 1771.47C1314.4 1770.4 1305.6 1768 1298.67 1766C1261.6 1755.47 1258.93 1754.67 1257.6 1752.93C1255.6 1750.53 1251.07 1634.13 1250.4 1567.33L1250 1536.67L1287.73 1536.27C1323.47 1536 1325.33 1535.87 1325.33 1533.47C1325.33 1531.6 1324 1530.67 1320.4 1530.13C1314.8 1529.07 1287.33 1520.8 1280 1517.87C1277.47 1516.93 1272 1515.2 1268 1514.27C1264 1513.2 1258.27 1511.2 1255.33 1509.87L1250 1507.33L1250.4 1490C1250.93 1464.53 1253.33 1415.73 1254.13 1412.93C1254.93 1410.27 1256.13 1410.27 1267.2 1412ZM486.933 1520.13C496.266 1526.13 496.666 1527.47 490.8 1534.53C479.6 1548.13 474.666 1561.47 473.466 1580.53L472.666 1593.87L463.333 1596.13C454.4 1598.53 409.066 1606.67 405.733 1606.67C401.733 1606.67 404.666 1600.67 414.4 1588.93C440.266 1557.33 447.866 1548.13 455.6 1538.53C467.333 1523.87 475.2 1516 478 1516C479.333 1516 483.333 1517.87 486.933 1520.13ZM510.533 1540L515.066 1543.87L510.266 1554.27C507.6 1560 504.266 1568 502.666 1572C501.2 1576 499.066 1581.2 498 1583.6C496.933 1585.87 496 1588.4 496 1589.2C496 1589.87 495.333 1592.13 494.4 1594C492.666 1597.87 486.8 1598.67 483.466 1595.2C478.4 1590.27 482.8 1562.93 490.8 1549.6C499.6 1534.8 502.666 1533.33 510.533 1540ZM1214.13 1750.13C1226.93 1755.73 1245.87 1765.33 1247.47 1767.07C1248.4 1768 1250 1780.53 1251.33 1795.33C1252.53 1810 1254.13 1822.93 1254.67 1824C1258.8 1831.6 1254.67 1830.53 1404.13 1860.53C1482 1876.13 1546 1889.47 1546.27 1890.13C1546.67 1891.33 1541.33 1898.8 1530.67 1912C1528.53 1914.53 1517.47 1928.93 1506.13 1944C1494.67 1959.07 1482.8 1974.53 1479.73 1978.53C1476.53 1982.53 1471.6 1988.93 1468.67 1992.8C1444.53 2024.8 1437.73 2033.33 1436 2034C1434.8 2034.4 1424.93 2032.13 1414 2029.2C1402.93 2026.13 1385.6 2021.33 1375.33 2018.53C1365.07 2015.73 1351.33 2011.87 1344.67 2010C1309.47 2000 1297.73 1996.67 1281.33 1992C1271.47 1989.2 1254.67 1984.53 1244 1981.47C1233.33 1978.4 1219.33 1974.4 1212.67 1972.53C1206.13 1970.67 1198 1968.27 1194.67 1967.33C1191.33 1966.4 1182.93 1964 1176 1962C1169.07 1960 1160.67 1957.6 1157.33 1956.67C1154 1955.73 1142.67 1952.53 1132 1949.47C1121.33 1946.4 1104.27 1941.6 1094 1938.67C1083.73 1935.73 1068.8 1931.47 1060.67 1929.2C1052.67 1927.07 1042.4 1924 1038 1922.67C1033.6 1921.33 1021.33 1917.73 1010.67 1914.67C955.733 1899.07 953.333 1898.27 953.333 1896.13C953.333 1895.47 956.533 1893.47 960.4 1891.47C966.666 1888.4 980.4 1880.67 991.333 1874.13C993.6 1872.93 998.4 1870 1002 1867.87C1005.73 1865.73 1009.6 1863.47 1010.67 1862.67C1011.73 1862 1018.93 1857.73 1026.67 1853.33C1034.4 1848.93 1041.6 1844.8 1042.67 1844.13C1048.27 1840.67 1090 1815.2 1108.8 1803.87C1120.67 1796.8 1137.6 1786.4 1146.53 1780.8C1155.47 1775.2 1163.33 1770.67 1164 1770.67C1164.67 1770.67 1165.33 1770.13 1165.6 1769.6C1165.87 1768.93 1169.33 1766.53 1173.33 1764.13C1177.33 1761.73 1183.33 1758.13 1186.67 1756C1196.8 1749.47 1201.87 1746.8 1204.13 1746.8C1205.33 1746.67 1209.87 1748.27 1214.13 1750.13Z",fill:"currentColor"}),f.jsx("path",{d:"M985.733 845.2C984.4 847.333 981.467 850.533 979.2 852.533C973.6 857.066 960.4 864 957.067 864C948.667 864 947.2 870 953.067 881.333C955.2 885.333 958 891.6 959.333 895.333C960.667 898.933 962.267 902.533 962.667 903.333C964.267 905.466 974.533 938.8 976.133 946.666C976.933 950.666 978.133 956.4 978.8 959.333C982 974 984.133 999.866 984.133 1024C984.133 1071.33 989.2 1104.13 1002.4 1141.33C1005.2 1149.33 1012.67 1167.07 1015.07 1171.33C1015.87 1172.8 1017.07 1175.2 1017.87 1176.67C1021.33 1183.07 1024.13 1185.6 1028.93 1186.8C1031.73 1187.47 1046.27 1188.4 1061.33 1188.93C1086.93 1189.6 1088.8 1189.47 1090.8 1187.2C1093.33 1184 1098.27 1153.33 1102.13 1115.2L1102.93 1107.07L1095.73 1098.53C1085.73 1086.53 1069.47 1061.87 1061.87 1046.67C1053.6 1030.13 1040.13 988.8 1040 979.866C1040 977.866 1038.93 972.533 1037.47 967.866C1036.13 963.2 1034 954.8 1032.8 949.333C1030.67 939.733 1025.47 921.733 1022 912C1013.73 889.066 1011.47 883.466 1006 871.333C1004.27 867.6 1000.93 860.4 998.667 855.333C994.533 846.266 991.2 841.333 989.2 841.333C988.667 841.333 987.2 843.066 985.733 845.2Z",fill:"currentColor"}),f.jsx("path",{d:"M910.667 976.133C898.934 981.467 888.534 984.933 876.667 987.467C860.667 990.8 835.467 990.8 819.734 987.6C804.8 984.4 801.867 985.467 803.334 993.733C803.867 996.8 804.8 1003.2 805.334 1008C805.867 1012.8 806.667 1017.6 807.067 1018.67C807.467 1019.73 809.2 1032.4 810.8 1046.67C812.667 1063.47 814.4 1073.6 815.734 1075.73C818 1079.2 826.534 1083.87 838.134 1087.87C842.4 1089.33 849.334 1091.87 853.334 1093.33C881.734 1104.27 884.267 1104.67 891.6 1098.4C903.067 1088.53 928.8 1063.2 931.2 1059.47C933.334 1055.87 933.6 1053.6 932.8 1041.6C931.2 1015.33 926.534 982.267 923.734 977.6C920.667 972.667 918.8 972.4 910.667 976.133ZM918.534 993.6C919.467 998.933 920.667 1006.67 921.334 1010.67C922 1014.67 922.934 1026.27 923.467 1036.27L924.267 1054.53L915.867 1063.47C911.2 1068.4 902 1077.2 895.467 1082.93C884.267 1093.07 883.467 1093.6 878.534 1092.93C875.734 1092.53 871.6 1091.33 869.2 1090.13C866.8 1088.93 864.4 1088 863.6 1088C862.934 1088 860.534 1087.07 858.267 1086C855.867 1084.93 847.734 1081.73 840.134 1078.8C824 1072.53 821.334 1070.53 821.334 1064.67C821.334 1062.27 819.734 1048.4 817.867 1033.87C815.867 1019.2 814.267 1004.67 814.134 1001.33C814 996 814.267 995.333 816.667 995.733C829.867 997.333 852 998.4 860.667 997.867C876.667 996.667 905.334 989.2 910 985.067C910.667 984.533 912.534 984 914.134 984C916.8 984 917.2 985.067 918.534 993.6Z",fill:"currentColor"}),f.jsx("path",{d:"M891.467 582.533C889.6 585.466 892.4 587.733 898.4 588.4C901.867 588.666 906.667 589.733 908.934 590.8C912.4 592.266 913.6 592.266 914.934 590.933C916.267 589.6 915.734 588.4 912.4 585.333C908.667 581.866 907.2 581.333 900.134 581.333C895.734 581.333 891.867 581.866 891.467 582.533Z",fill:"currentColor"}),f.jsx("path",{d:"M906.666 599.867C906.666 601.2 908.666 605.867 911.066 610.133C914.533 616.4 916.133 618 918.666 618C924.133 618 923.733 612.933 917.333 604.533C911.733 597.067 906.666 594.933 906.666 599.867Z",fill:"currentColor"}),f.jsx("path",{d:"M837.333 610.533C832.4 615.733 830 622.133 831.6 626C832.667 629.067 836.533 627.867 837.067 624.267C837.333 622.667 840.267 618.533 843.6 615.333C848.933 610.4 849.6 609.2 848 607.467C845.333 604.133 842.667 604.933 837.333 610.533Z",fill:"currentColor"}),f.jsx("path",{d:"M848.933 619.466C846.933 621.466 848.133 626.666 852.533 635.6C857.999 646.533 860.399 649.066 863.333 646.666C865.999 644.533 865.866 641.333 863.066 637.333C861.733 635.6 858.799 630.8 856.666 626.8C852.666 619.6 850.666 617.733 848.933 619.466Z",fill:"currentColor"}),f.jsx("path",{d:"M886 630.667C884.8 632.667 886.533 634.533 895.333 640.667C902.133 645.6 902.667 646.267 901.867 650C900.4 657.067 900.667 658 903.333 658.4C905.2 658.667 907.067 657.067 909.733 653.067C911.733 650 913.333 646.4 913.333 645.2C913.333 642.533 908.933 639.2 898 633.467C889.467 629.067 887.333 628.533 886 630.667Z",fill:"currentColor"}),f.jsx("path",{d:"M889.599 682.8C882.799 686.266 875.199 694.8 873.866 700.533C873.466 702.8 872.133 706.266 871.066 708.4C869.466 711.6 869.466 712.666 871.333 716.533C876.266 726.8 887.866 724 893.599 711.066C895.999 705.733 895.999 705.466 893.333 699.333C891.866 695.866 890.666 692.266 890.666 691.333C890.666 689.2 895.066 687.6 900.399 687.733C904.666 687.866 906.399 684.933 903.999 682C901.733 679.2 896.266 679.466 889.599 682.8ZM886.666 700.666C888.666 703.066 887.466 711.066 884.666 713.333C882.266 715.333 877.333 713.866 877.333 711.066C877.333 707.6 881.733 698.666 883.466 698.666C884.266 698.666 885.733 699.6 886.666 700.666Z",fill:"currentColor"}),f.jsx("path",{d:"M1286 634.533C1282.93 635.467 1262.53 645.867 1252.67 651.333C1230.27 663.733 1230 664 1208.4 677.867C1199.33 683.6 1192 688.933 1192 689.867C1192 692 1194.8 694.667 1196.8 694.667C1197.73 694.667 1202 692.4 1206.27 689.467C1213.2 684.933 1236 670.8 1242.27 667.333C1256.8 659.2 1275.73 648.8 1282.67 645.333C1293.33 639.733 1296 637.6 1295.07 635.2C1294.4 633.2 1290.67 632.933 1286 634.533Z",fill:"currentColor"}),f.jsx("path",{d:"M1363.47 646.533C1363.07 647.2 1358.27 649.867 1353.07 652.533C1347.73 655.2 1339.2 659.733 1334 662.4C1328.93 665.2 1318.13 671.067 1310 675.333C1302 679.733 1292.4 684.933 1288.67 686.933C1285.07 688.933 1279.87 691.733 1277.33 693.2C1270.27 697.067 1267.2 700.8 1269.33 703.333C1271.6 706.133 1273.87 705.867 1280 702C1282.93 700.133 1285.6 698.667 1286.13 698.667C1286.53 698.667 1288.53 697.6 1290.4 696.133C1292.4 694.8 1296.67 692.267 1300 690.4C1303.33 688.533 1307.87 685.867 1310.27 684.533C1315.2 681.467 1328.8 673.733 1338 668.667C1341.73 666.667 1347.07 663.6 1350 661.867C1352.93 660.133 1356.8 658 1358.67 657.067C1371.73 650.533 1375.87 645.333 1368.13 645.333C1365.87 645.333 1363.87 645.867 1363.47 646.533Z",fill:"currentColor"}),f.jsx("path",{d:"M1421.6 656.266C1420.8 657.2 1415.73 660.4 1410.4 663.2C1405.07 666 1399.73 668.8 1398.67 669.466C1397.6 670.133 1384.4 677.6 1369.33 686.133C1354.27 694.666 1340.4 702.666 1338.53 703.866C1336.67 705.066 1331.73 708 1327.73 710.4C1318.67 715.733 1313.33 720.533 1313.33 723.333C1313.33 727.466 1319.73 726.266 1329.87 720.133C1334.27 717.333 1338.93 714.8 1340 714.266C1341.07 713.733 1344.4 711.866 1347.33 710C1350.27 708.266 1354.8 705.466 1357.33 704C1359.87 702.533 1362.93 700.666 1364 700C1365.07 699.333 1371.73 695.2 1378.67 690.933C1405.47 674.266 1421.6 664.533 1426.13 662.266C1429.2 660.666 1430.67 659.066 1430.4 657.6C1429.87 654.8 1423.6 653.866 1421.6 656.266Z",fill:"currentColor"}),f.jsx("path",{d:"M1491.2 665.6C1487.47 668 1483.33 670.8 1481.87 671.6C1480.53 672.533 1477.2 674.533 1474.67 676C1472.13 677.466 1467.87 680 1465.2 681.733C1457.2 686.666 1423.07 707.066 1405.73 717.2C1396.67 722.4 1389.33 727.466 1389.33 728.4C1389.33 730.666 1392.13 733.333 1394.4 733.333C1396 733.333 1409.47 726.266 1417.87 720.933C1419.33 720 1427.2 715.2 1435.2 710.133C1451.47 700 1472.4 686.533 1484.4 678.533C1488.67 675.6 1492.53 673.333 1493.07 673.333C1495.33 673.2 1504.27 664.266 1503.47 662.8C1501.87 660.266 1498.27 661.2 1491.2 665.6Z",fill:"currentColor"}),f.jsx("path",{d:"M1615.07 742.8C1614.27 743.6 1609.07 745.067 1603.73 746C1585.87 749.067 1542.27 761.867 1517.07 771.6C1507.6 775.2 1505.33 777.867 1508.67 781.2C1510.8 783.333 1509.47 783.733 1536 773.733C1540.8 771.867 1547.73 769.467 1551.33 768.4C1555.07 767.2 1558.67 765.867 1559.33 765.333C1560.13 764.8 1562.8 763.867 1565.33 763.333C1567.87 762.8 1571.47 761.733 1573.33 760.933C1575.2 760.133 1579.73 758.8 1583.33 757.867C1587.07 756.933 1593.87 755.2 1598.67 754C1615.47 749.733 1620.67 747.467 1620.67 744.667C1620.67 741.6 1617.33 740.533 1615.07 742.8Z",fill:"currentColor"}),f.jsx("path",{d:"M1614 827.2C1612.53 828.267 1608.67 829.867 1605.33 830.8C1602 831.733 1598.8 832.933 1598 833.333C1597.33 833.867 1593.33 835.067 1589.33 836C1585.33 836.933 1581.33 838.133 1580.67 838.8C1579.87 839.333 1576.27 840.533 1572.67 841.467C1568.93 842.267 1565.47 843.467 1564.67 844.133C1564 844.667 1559.47 846.133 1554.93 847.333C1550.27 848.533 1545.47 850 1544.27 850.667C1542.93 851.333 1536.67 853.467 1530 855.333C1523.47 857.333 1512.67 860.533 1506 862.667C1499.47 864.667 1487.47 868.4 1479.47 870.8C1471.47 873.333 1464.67 876.133 1464.4 877.067C1463.47 879.2 1466.4 882.667 1469.07 882.667C1472.27 882.667 1524.4 866.267 1532.67 862.667C1534.13 862 1541.33 859.6 1548.67 857.333C1556 855.067 1563.2 852.533 1564.67 851.733C1566.13 850.933 1570 849.467 1573.33 848.533C1582.93 845.733 1594.93 841.467 1596.53 840.133C1597.33 839.467 1600.53 838.533 1603.6 838C1606.53 837.6 1610.13 836.267 1611.6 835.333C1612.93 834.267 1614.93 833.333 1616.13 833.333C1617.2 833.333 1619.33 832.4 1620.8 831.333C1623.33 829.333 1623.33 829.333 1620.8 827.333C1617.6 824.933 1617.2 824.933 1614 827.2Z",fill:"currentColor"}),f.jsx("path",{d:"M1120.4 890.266C1117.87 891.2 1118.27 895.733 1121.07 897.066C1127.6 900.533 1218.67 922 1283.33 935.466C1299.33 938.8 1329.87 942.533 1331.07 941.333C1331.73 940.8 1332 939.2 1331.73 937.866C1331.33 935.2 1330.8 935.066 1308.67 930.666C1300.67 929.066 1289.2 926.533 1283.33 925.2C1277.47 923.866 1265.47 921.2 1256.67 919.333C1247.87 917.466 1237.07 915.066 1232.67 914C1222.4 911.6 1184.13 903.2 1168.67 899.866C1162.13 898.4 1149.33 895.466 1140.27 893.333C1123.07 889.2 1122.93 889.2 1120.4 890.266Z",fill:"currentColor"}),f.jsx("path",{d:"M531.599 998.267C531.066 998.667 530.666 999.6 530.666 1000.13C530.666 1001.33 542.399 1008 544.533 1008C545.333 1008 547.733 1008.93 549.999 1010.13C554.666 1012.53 569.866 1018.67 571.199 1018.67C571.733 1018.67 574.666 1019.73 577.733 1021.2C585.066 1024.53 608.666 1032.8 621.999 1036.8C633.066 1040 641.999 1040.93 643.199 1038.8C645.733 1034.8 639.199 1031.33 618.799 1025.33C610.533 1022.93 606.399 1021.6 591.066 1016.53C587.466 1015.47 581.999 1013.73 578.666 1012.67C565.066 1008.4 559.199 1006.4 555.733 1004.53C553.866 1003.47 551.466 1002.67 550.399 1002.67C549.333 1002.67 546.266 1001.47 543.333 1000C537.999 997.333 533.199 996.533 531.599 998.267Z",fill:"currentColor"}),f.jsx("path",{d:"M480.533 1004.67C479.466 1007.33 483.866 1010.93 496 1017.2C519.333 1029.07 575.733 1056.93 579.6 1058.53C585.066 1060.8 588 1059.6 588 1055.33C588 1052.53 586.666 1051.33 579.066 1047.87C545.333 1032.27 528 1024.13 516.666 1018.67C510.8 1015.87 502 1011.6 496.933 1009.33C492 1006.93 487.6 1004.53 487.2 1003.87C486 1001.87 481.333 1002.53 480.533 1004.67Z",fill:"currentColor"}),f.jsx("path",{d:"M431.333 1013.33C430 1015.6 431.733 1017.07 442.4 1022.4C448 1025.33 461.733 1032.27 472.667 1038C507.067 1055.87 523.733 1064 525.733 1064C528.933 1064 529.733 1059.73 527.067 1057.2C524.8 1054.93 506.267 1045.6 465.333 1025.73C455.467 1020.93 445.2 1015.87 442.533 1014.53C437.2 1011.73 432.667 1011.33 431.333 1013.33Z",fill:"currentColor"}),f.jsx("path",{d:"M349.333 1024.53C349.333 1027.07 351.733 1028.53 358.666 1030.53C362 1031.47 365.333 1032.67 366 1033.33C366.8 1033.87 369.2 1034.67 371.333 1035.2C373.6 1035.73 377.2 1036.93 379.333 1037.87C381.6 1038.8 388.4 1041.47 394.666 1043.87C409.333 1049.47 416 1052 419.333 1053.47C420.8 1054.13 426.8 1056.4 432.666 1058.67C438.533 1060.93 445.2 1063.6 447.333 1064.53C449.6 1065.47 453.466 1067.07 456 1068C458.533 1068.93 461.2 1070.27 462 1070.93C465.866 1074.27 470.933 1069.6 467.733 1065.6C465.6 1063.07 445.333 1053.6 425.333 1045.73C416.933 1042.53 407.866 1039.07 405.333 1038C402.8 1037.07 395.866 1034.67 390 1032.8C358.4 1022.53 349.333 1020.8 349.333 1024.53Z",fill:"currentColor"}),f.jsx("path",{d:"M258.666 1032.4C258.666 1034.13 265.599 1040 267.466 1040C267.999 1040 271.466 1041.47 275.199 1043.2C287.866 1049.07 293.999 1051.6 315.333 1060C327.066 1064.67 337.866 1068.93 339.333 1069.47C349.599 1073.73 388.399 1086.67 390.933 1086.67C393.999 1086.67 395.599 1083.07 393.733 1080.27C393.066 1079.07 389.733 1077.33 386.533 1076.53C378.133 1074.13 367.999 1070.67 363.066 1068.53C360.799 1067.47 358.266 1066.67 357.466 1066.67C356.666 1066.67 354.133 1065.87 351.733 1064.8C349.333 1063.73 338.666 1059.73 327.999 1056C317.333 1052.27 307.066 1048.27 305.066 1047.2C303.199 1046.13 300.799 1045.33 299.733 1045.33C298.799 1045.33 295.066 1043.87 291.333 1042C287.733 1040.27 283.999 1038.67 283.199 1038.67C282.399 1038.67 277.733 1036.8 272.933 1034.67C263.466 1030.4 258.666 1029.6 258.666 1032.4Z",fill:"currentColor"}),f.jsx("path",{d:"M181.733 1039.6C178.799 1040.67 179.866 1044 183.733 1045.6C189.999 1048.27 201.866 1053.47 204.266 1054.8C205.599 1055.47 207.333 1056 208.266 1056C209.199 1056 211.866 1056.93 213.999 1058.13C216.266 1059.33 223.066 1062.27 229.333 1064.67C235.599 1067.07 242.533 1070 244.666 1071.2C246.933 1072.4 249.333 1073.33 250.133 1073.33C251.599 1073.33 259.333 1076.4 268.666 1080.53C270.933 1081.6 280.799 1085.47 290.666 1089.2C300.533 1093.07 309.866 1096.67 311.333 1097.2C330.533 1105.2 337.333 1106.27 337.333 1101.33C337.333 1097.87 334.533 1096 320.933 1091.2C314.266 1088.8 303.599 1084.93 297.333 1082.67C291.066 1080.4 283.866 1077.87 281.333 1077.07C278.799 1076.4 276.133 1075.33 275.333 1074.8C274.666 1074.27 271.066 1072.67 267.333 1071.47C263.733 1070.13 258.799 1068.27 256.399 1067.2C254.133 1066.13 251.333 1065.33 250.266 1065.33C249.066 1065.33 247.866 1064.8 247.466 1064.13C247.066 1063.47 245.066 1062.53 243.066 1062.13C240.933 1061.6 236.933 1060.13 233.999 1058.8C225.866 1055.2 214.133 1050.67 212.799 1050.67C212.133 1050.67 209.199 1049.47 206.133 1048.13C195.999 1043.33 185.066 1038.67 184.133 1038.8C183.733 1038.8 182.533 1039.2 181.733 1039.6Z",fill:"currentColor"}),f.jsx("path",{d:"M705.333 1184.27C690.133 1191.47 671.466 1200.27 668.666 1201.33C667.2 1202 661.466 1204.4 656 1206.67C650.533 1208.93 644.8 1211.33 643.333 1212C641.866 1212.67 634.4 1215.33 626.666 1218C618.933 1220.67 611.2 1223.47 609.333 1224.27C604.266 1226.4 580.133 1233.2 560 1238.13C528.133 1246 524.8 1246.8 517.333 1248C513.333 1248.53 504.666 1250 498 1251.07C471.066 1255.6 452.8 1257.73 431.333 1258.67C418.933 1259.33 408.533 1259.73 408.4 1259.87C407.466 1260.27 408.133 1265.33 409.2 1265.87C411.2 1267.2 465.2 1264 487.333 1261.33C521.6 1257.07 552 1251.07 582.666 1242.4C601.733 1237.07 635.2 1225.33 649.333 1219.07C671.2 1209.47 681.866 1204.27 705.2 1191.73C712 1188.13 717.333 1183.6 717.333 1181.47C717.333 1179.2 714.666 1179.73 705.333 1184.27Z",fill:"currentColor"}),f.jsx("path",{d:"M1662.13 1190.53C1661.6 1191.2 1659.33 1192.27 1656.93 1192.8C1654.67 1193.2 1649.6 1195.07 1645.73 1196.8C1642 1198.53 1638.13 1200 1637.33 1200C1636.4 1200 1633.87 1200.8 1631.6 1201.87C1627.33 1203.73 1619.2 1206.53 1608 1210C1597.47 1213.2 1588.8 1216.13 1584 1218C1581.47 1219.07 1576.93 1220.53 1574 1221.33C1565.07 1223.73 1559.33 1227.07 1559.33 1230C1559.33 1233.6 1566.8 1234.27 1574.8 1231.33C1578 1230.13 1582.8 1228.53 1585.33 1227.87C1587.87 1227.07 1596.27 1224 1604 1221.07C1666.93 1196.93 1671.33 1194.93 1671.33 1192C1671.33 1189.73 1663.47 1188.4 1662.13 1190.53Z",fill:"currentColor"}),f.jsx("path",{d:"M1184.4 1320.8C1183.47 1321.2 1182.67 1322.67 1182.67 1324C1182.67 1325.87 1183.87 1326.67 1187.07 1327.2C1197.73 1328.67 1244.27 1333.6 1266 1335.33C1295.73 1337.87 1370.8 1340.8 1373.87 1339.6C1375.33 1339.07 1376 1337.6 1375.73 1335.73C1375.33 1332.8 1374.53 1332.67 1359.33 1331.73C1285.73 1327.47 1221.47 1323.33 1192.67 1320.8C1189.07 1320.4 1185.2 1320.53 1184.4 1320.8Z",fill:"currentColor"}),f.jsx("path",{d:"M1544.67 1332C1543.2 1332.67 1534.8 1335.87 1526 1339.33C1517.2 1342.67 1508.8 1346 1507.33 1346.67C1505.87 1347.33 1499.87 1349.73 1494 1352C1488.13 1354.27 1482.13 1356.67 1480.67 1357.33C1479.2 1358 1473.2 1360.4 1467.33 1362.67C1461.47 1364.93 1455.47 1367.33 1454 1368C1450.67 1369.47 1429.33 1378.53 1416.67 1383.6C1402.53 1389.47 1398.67 1391.73 1398.67 1394.67C1398.67 1400.53 1405.47 1399.2 1427.33 1389.33C1428.8 1388.67 1437.2 1385.33 1446 1381.87C1469.2 1372.93 1478.67 1369.2 1483.33 1367.33C1485.47 1366.4 1490.67 1364.27 1494.67 1362.67C1498.67 1361.07 1504.4 1358.67 1507.33 1357.33C1510.27 1356.13 1515.33 1353.87 1518.67 1352.53C1530.27 1347.6 1548.67 1338.4 1551.07 1336.4C1556 1331.87 1551.73 1328.93 1544.67 1332Z",fill:"currentColor"}),f.jsx("path",{d:"M1631.2 1340.67C1629.87 1341.73 1627.87 1342.67 1626.8 1342.67C1625.73 1342.67 1622.53 1343.87 1619.47 1345.2C1616.4 1346.67 1607.47 1350.67 1599.33 1354C1591.33 1357.47 1582.8 1361.07 1580.67 1362C1578.4 1363.07 1571.87 1365.73 1566 1368C1560.27 1370.4 1554.53 1372.8 1553.47 1373.47C1552.27 1374 1548.67 1375.73 1545.33 1377.07C1497.6 1397.47 1489.87 1401.73 1493.33 1405.87C1495.47 1408.67 1496.93 1408.53 1503.33 1405.33C1511.73 1401.2 1527.87 1394 1537.33 1390.13C1545.07 1386.93 1553.47 1383.07 1560.4 1379.73C1561.73 1379.07 1569.87 1375.6 1578.4 1371.87C1586.93 1368.13 1596.67 1363.87 1600 1362.4C1603.33 1360.8 1607.87 1358.8 1610 1357.87C1612.27 1356.93 1619.33 1353.73 1625.73 1350.8C1632.27 1347.73 1638 1345.33 1638.67 1345.33C1640.13 1345.33 1641.47 1341.33 1640.53 1339.87C1639.47 1338 1634.13 1338.4 1631.2 1340.67Z",fill:"currentColor"}),f.jsx("path",{d:"M1720.67 1350.13C1717.73 1351.2 1713.6 1352.67 1711.33 1353.2C1702.8 1355.47 1675.2 1364.67 1668.67 1367.47C1666.53 1368.4 1662.53 1369.73 1660 1370.53C1653.2 1372.53 1642.27 1376.4 1628 1382C1621.07 1384.67 1611.47 1388.4 1606.67 1390.27C1602 1392.13 1596.27 1394.4 1594 1395.33C1591.87 1396.27 1586.67 1398.4 1582.67 1400C1563.87 1407.47 1562 1408.8 1563.47 1412.67C1564.67 1415.87 1571.07 1414.67 1585.33 1408.53C1591.6 1406 1598.53 1403.2 1600.93 1402.53C1603.33 1401.87 1606.93 1400.4 1608.93 1399.33C1610.93 1398.27 1613.33 1397.33 1614.27 1397.33C1615.2 1397.33 1619.07 1395.87 1622.93 1394.13C1626.8 1392.4 1639.87 1387.33 1652 1382.8C1664.13 1378.27 1675.07 1374 1676.27 1373.33C1677.6 1372.53 1679.33 1372 1680.13 1372C1680.93 1372 1683.47 1371.2 1685.73 1370.13C1688.13 1369.2 1692.13 1367.6 1694.67 1366.67C1697.2 1365.73 1701.2 1364.13 1703.33 1363.2C1707.33 1361.6 1710.8 1360.4 1723.33 1356C1728.13 1354.4 1730 1353.07 1730 1351.2C1730 1347.87 1727.2 1347.6 1720.67 1350.13Z",fill:"currentColor"}),f.jsx("path",{d:"M1811.33 1358.93C1809.2 1359.73 1806.4 1361.2 1805.2 1362.13C1804.13 1363.2 1802.53 1364 1801.73 1364C1800.53 1364 1771.47 1375.07 1763.33 1378.67C1761.87 1379.33 1754.93 1381.73 1748 1384C1741.07 1386.4 1733.6 1389.07 1731.33 1390C1729.2 1390.8 1723.73 1392.93 1719.33 1394.53C1704.4 1400.13 1678.8 1411.07 1672 1414.8C1653.6 1424.93 1650.4 1427.87 1653.6 1431.6C1655.73 1434.27 1657.73 1433.6 1678.67 1424C1688.53 1419.47 1698.8 1414.93 1701.33 1413.87C1703.87 1412.67 1707.2 1411.33 1708.67 1410.67C1716.67 1407.07 1740.27 1397.33 1740.8 1397.33C1741.2 1397.33 1743.47 1396.53 1745.73 1395.47C1748.13 1394.4 1756.8 1390.8 1764.93 1387.47C1782 1380.53 1805.07 1369.6 1806 1368C1806.4 1367.33 1808.67 1366.4 1811.07 1366C1816.4 1364.8 1818.67 1363.07 1818.67 1359.87C1818.67 1357.07 1817.2 1356.93 1811.33 1358.93Z",fill:"currentColor"}),f.jsx("path",{d:"M1888.67 1372C1885.73 1373.47 1882.93 1374.67 1882.27 1374.67C1881.6 1374.67 1879.2 1375.6 1876.93 1376.67C1874.53 1377.73 1864 1381.87 1853.33 1386C1842.67 1390.13 1832.13 1394.27 1829.73 1395.33C1827.47 1396.4 1825.2 1397.33 1824.67 1397.33C1823.47 1397.33 1794.67 1408.53 1788.4 1411.33C1786.13 1412.4 1783.6 1413.33 1782.8 1413.33C1782 1413.33 1778.8 1414.53 1775.6 1416C1772.53 1417.33 1762.8 1421.33 1754 1424.67C1745.2 1428 1736.13 1431.6 1733.73 1432.67C1731.47 1433.73 1728.67 1434.67 1727.73 1434.67C1725.2 1434.67 1721.33 1438.93 1721.33 1441.73C1721.33 1445.47 1725.47 1446.67 1730.67 1444.4C1733.2 1443.33 1746.4 1438.27 1760 1433.07C1773.6 1427.87 1786.53 1422.93 1788.67 1421.87C1790.93 1420.93 1797.47 1418.27 1803.33 1416C1809.2 1413.73 1815.2 1411.33 1816.67 1410.67C1818.13 1410 1824.13 1407.6 1830 1405.33C1835.87 1403.07 1841.87 1400.67 1843.33 1400C1844.8 1399.33 1849.07 1397.6 1852.8 1396.13C1856.53 1394.67 1862.53 1392.13 1866.13 1390.53C1869.73 1388.93 1876 1386.13 1880 1384.4C1896.27 1377.33 1901.33 1373.2 1897.33 1370.67C1894.67 1368.93 1894.67 1368.93 1888.67 1372Z",fill:"currentColor"}),f.jsx("path",{d:"M1352.67 1598.53C1351.73 1600.27 1355.47 1603.87 1359.07 1604.67C1362.67 1605.47 1364.27 1605.87 1410.67 1617.47C1467.2 1631.6 1467.47 1631.6 1483.33 1634.67C1491.47 1636.27 1503.47 1638.67 1510 1640C1551.6 1648.4 1607.2 1655.2 1641.6 1656.27C1656.4 1656.67 1659.47 1655.73 1657.87 1651.6C1656.93 1648.93 1655.73 1648.67 1638.67 1646.67C1631.73 1645.87 1622.67 1644.67 1618.67 1644C1614.67 1643.2 1603.6 1641.47 1594 1640C1573.2 1636.67 1548.53 1632.53 1534 1629.73C1528.13 1628.67 1519.73 1627.33 1515.33 1626.67C1510.93 1626.13 1502.27 1624.67 1496 1623.47C1489.73 1622.4 1477.73 1620.13 1469.33 1618.67C1460.93 1617.2 1442.67 1613.73 1428.67 1611.2C1414.8 1608.67 1398.27 1605.6 1392 1604.53C1385.73 1603.47 1379.73 1602.27 1378.67 1601.87C1376.8 1601.2 1356.27 1597.33 1354.4 1597.33C1353.87 1597.33 1353.2 1597.87 1352.67 1598.53Z",fill:"currentColor"}),f.jsx("path",{d:"M1318.93 1732.4C1316.4 1735.33 1319.87 1738.13 1328.67 1740.4C1333.07 1741.47 1342.93 1744.27 1350.67 1746.53C1368.67 1751.6 1397.2 1759.07 1413.33 1762.67C1420.27 1764.27 1430.8 1766.67 1436.67 1768C1450.13 1771.07 1467.33 1774.27 1479.33 1775.87C1484.53 1776.53 1495.87 1778.13 1504.67 1779.33C1513.47 1780.53 1529.73 1781.6 1540.67 1781.73C1560.53 1782 1560.67 1782 1561.07 1778.93C1561.47 1776.67 1560.93 1776 1558.4 1776C1551.07 1776 1500.53 1767.2 1440 1755.2C1426.4 1752.53 1412 1749.87 1408 1749.33C1399.47 1748.13 1381.73 1744.53 1355.33 1738.67C1345.07 1736.27 1334 1733.87 1330.67 1733.2C1327.33 1732.53 1323.73 1731.6 1322.53 1731.33C1321.33 1730.93 1319.73 1731.47 1318.93 1732.4Z",fill:"currentColor"}),f.jsx("path",{d:"M1220.67 1816C1213.33 1821.07 1205.6 1826.27 1203.33 1827.47C1201.2 1828.8 1196.27 1832 1192.53 1834.93C1188.8 1837.73 1185.33 1840 1184.8 1840C1184.27 1840 1180 1842.93 1175.2 1846.67C1170.4 1850.27 1165.2 1854 1163.73 1854.8C1162.13 1855.73 1160.13 1856.93 1159.47 1857.6C1158.67 1858.27 1149.33 1865.07 1138.8 1872.67C1128.13 1880.27 1118.93 1887.6 1118.27 1888.8C1116.4 1892.13 1120.93 1895.33 1124.13 1892.93C1138.93 1882.53 1151.47 1873.47 1158 1868.53C1177.87 1853.6 1194.13 1841.73 1196 1840.93C1197.07 1840.4 1201.6 1837.33 1206 1834C1213.33 1828.4 1221.47 1822.8 1226.8 1819.33C1236.53 1813.2 1240.13 1810.27 1239.6 1808.93C1238.4 1805.33 1233.2 1807.2 1220.67 1816Z",fill:"currentColor"}),f.jsx("path",{d:"M1285.87 1861.07C1275.47 1871.07 1272.13 1874.13 1247.87 1894.8C1210.13 1927.07 1204 1932.53 1204 1933.47C1204 1936.13 1205.87 1938.67 1207.87 1938.67C1212.67 1938.67 1301.33 1857.6 1301.33 1853.2C1301.33 1848.4 1296.67 1850.67 1285.87 1861.07Z",fill:"currentColor"}),f.jsx("path",{d:"M1407.6 1880.93C1406.8 1882.93 1405.2 1885.6 1404.27 1886.67C1403.33 1887.73 1399.47 1892.53 1395.6 1897.33C1391.87 1902.13 1377.07 1917.73 1362.93 1932C1348.67 1946.27 1336.67 1958.93 1336.13 1960C1334.53 1962.93 1335.87 1965.33 1339.07 1965.33C1344.27 1965.33 1401.87 1902.67 1411.87 1886.27C1414.4 1882.27 1414.67 1880.93 1413.33 1879.33C1410.93 1876.4 1409.47 1876.93 1407.6 1880.93Z",fill:"currentColor"}),f.jsx("path",{d:"M409.067 754C408.667 754.4 404.533 755.333 399.867 756.133C387.2 758.133 372.533 762.933 355.333 770.666C308.4 791.866 289.333 798.933 272.666 801.333C251.866 804.266 240.533 802.266 220.8 792.4C213.733 788.8 206.667 786.266 203.867 786.133C198.133 786 193.066 789.066 122.666 834.666C113.066 840.933 104.133 846.533 102.8 847.333C88.3998 855.733 84.2665 859.733 86.2665 863.2C89.3332 868.266 116.666 888.8 129.2 895.466C132.533 897.2 136.266 899.2 137.333 900C138.4 900.666 142.133 902.4 145.733 904C149.2 905.466 154.666 907.866 157.866 909.333C161.2 910.8 164.533 912 165.333 912C166.266 912 168.8 912.8 171.067 913.866C179.2 917.6 203.467 922.4 222 924.133C240.667 925.733 270.666 924.4 282.666 921.466C285.2 920.933 290.666 919.6 294.666 918.8C303.333 916.8 330.533 908.133 347.333 902C371.467 893.066 384.4 890.4 402.667 890.266C414.533 890.133 421.467 890.8 427.067 892.4C446.267 898 448.8 898.533 452.667 897.6C456.8 896.4 462.267 889.733 463.2 884.8C464 880.666 469.2 857.066 472.133 844C474.4 833.733 478 813.466 479.467 803.333C479.867 801.066 481.067 793.066 482.267 785.2C483.467 777.466 484 769.6 483.6 767.733C481.6 759.733 456.8 753.333 427.867 753.333C417.867 753.333 409.467 753.6 409.067 754ZM462 766C467.2 767.333 472.133 769.066 473.067 769.866C474.4 771.2 473.867 777.066 470.667 799.333C468.4 814.8 465.067 834.8 463.2 844C461.333 853.2 458.933 865.2 458 870.8C457.067 876.4 455.333 882.933 454 885.2C451.467 890.133 453.2 890.266 432 884.133C420.267 880.666 415.733 880 404 880C383.733 880.133 370.4 883.333 328 898.666C276.933 917.066 232 919.866 184.667 907.333C168.4 903.066 163.2 901.066 144.666 892.133C126.666 883.466 99.9998 865.2 99.9998 861.733C99.9998 861.066 106.8 856.533 115.066 851.466C123.2 846.266 143.866 833.066 160.666 821.866C192.4 801.066 200.933 796 204.8 796C206 796 210.933 798.133 215.867 800.666C233.733 809.866 239.866 811.333 261.333 811.2C277.333 811.066 282.266 810.533 290 808.133C303.066 804 310.533 801.333 316.666 798.666C319.6 797.333 331.067 792.4 342 787.6C371.6 774.666 381.6 771.066 396.533 767.333C414.133 763.066 416.4 762.933 436 763.333C446.533 763.466 456.133 764.533 462 766Z",fill:"currentColor"}),f.jsx("path",{d:"M2044.27 784.8C2040.4 787.2 2037.07 789.333 2036.67 789.333C2036.4 789.333 2032.67 791.733 2028.4 794.666C2024.13 797.6 2019.73 800.666 2018.67 801.333C2017.6 802.133 2012 806 2006.27 810C1964.8 839.333 1945.07 846.666 1897.47 850.533C1885.6 851.466 1881.73 852.266 1879.87 854.266C1878.67 855.6 1875.73 862.4 1873.33 869.333C1871.07 876.266 1868.67 882.533 1868.13 883.333C1867.47 884 1866.53 886.133 1866 888C1864 895.2 1858.4 908.4 1854.67 914.8C1852.4 918.4 1850.67 922 1850.67 922.533C1850.67 924 1839.6 940.266 1833.73 947.6C1827.87 954.8 1828.13 958.8 1834.67 960.266C1850.93 964.133 1865.07 965.6 1891.33 966.266C1923.87 967.066 1957.6 965.2 1968.4 961.866C1979.2 958.666 1993.07 951.866 2000.8 946C2007.2 941.2 2021.33 924.4 2021.33 921.733C2021.33 921.066 2022.4 919.066 2023.73 917.333C2024.93 915.466 2026.67 912.133 2027.47 910C2028.27 907.733 2030.8 901.466 2032.93 896C2039.2 880.133 2045.33 858.533 2048.67 840C2049.2 837.466 2050.4 831.733 2051.33 827.333C2054 815.333 2057.87 784.533 2056.93 782.133C2055.6 778.933 2052.13 779.6 2044.27 784.8ZM2046 801.6C2043.07 824.666 2033.73 865.333 2027.2 883.333C2025.33 888.4 2022.93 895.333 2022 898.666C2020.93 902 2019.2 905.866 2018.13 907.333C2016.93 908.8 2016 910.8 2016 911.733C2016 912.666 2013.2 917.733 2009.73 922.933C1995.07 945.2 1972 954.933 1928.67 957.333C1901.33 958.8 1845.33 955.866 1842.8 952.8C1841.87 951.733 1843.73 947.733 1848.53 940.666C1856.27 929.066 1869.33 904.8 1869.33 902C1869.33 901.066 1870.27 898.533 1871.33 896.533C1872.4 894.4 1873.33 891.6 1873.33 890.4C1873.33 889.2 1873.87 887.866 1874.53 887.466C1875.07 887.066 1877.6 880.666 1880 873.333C1884.93 858.133 1883.33 859.2 1902 858.133C1924.8 856.666 1947.33 851.866 1962.67 845.066C1968.8 842.4 1969.6 842 1979.87 836.266C1985.73 833.066 2011.2 816.533 2014 814.266C2019.87 809.333 2042.53 794.8 2044.4 794.8C2046.67 794.666 2046.8 795.466 2046 801.6Z",fill:"currentColor"}),f.jsx("path",{d:"M359.334 1671.6C356.934 1672.13 329.734 1684.27 306 1695.33C285.734 1704.8 275.067 1709.73 268 1712.93C260.667 1716.27 254.8 1718.93 235.334 1728.13C229.467 1730.8 220.8 1734.93 216 1737.07C179.067 1754 142.8 1771.2 120.267 1782.4C102.934 1791.07 99.7335 1794.4 103.2 1801.07C105.6 1805.73 142.8 1840.67 193.067 1885.6C197.2 1889.33 200 1892.8 200 1894.53C200 1896.13 199.467 1897.33 198.667 1897.33C198 1897.33 194.267 1899.87 190.4 1902.93C186.4 1906.13 180.267 1910.8 176.667 1913.2C170.534 1917.47 163.6 1923.33 138.934 1944.93C134.4 1948.93 130.667 1953.33 130.667 1954.53C130.667 1957.6 134.8 1961.33 144.4 1966.8C148.667 1969.33 153.2 1972 154.4 1972.67C169.6 1981.87 191.067 1994.4 195.334 1996.8C198.267 1998.27 212.4 2006.27 226.667 2014.27C240.934 2022.4 256.934 2031.2 262 2034C267.2 2036.8 273.2 2040.13 275.334 2041.33C277.6 2042.67 282.934 2045.6 287.334 2048C297.067 2053.2 310.934 2060.67 323.334 2067.33C340.534 2076.67 350 2081.33 352.134 2081.33C353.467 2081.33 360.267 2074.13 367.467 2065.07C374.8 2056.13 382.8 2046.4 385.467 2043.47C388 2040.4 393.867 2033.2 398.534 2027.33C403.067 2021.47 411.867 2010.4 418 2002.67C424.267 1994.93 431.867 1985.33 434.934 1981.33C454.134 1956.53 459.867 1949.33 464.8 1943.33C467.734 1939.6 474.4 1931.2 479.334 1924.67C484.4 1918 488.934 1912.4 489.334 1912C489.734 1911.6 493.067 1907.47 496.667 1902.67C500.267 1897.87 510.534 1884.27 519.6 1872.4C528.667 1860.53 536 1849.87 536 1848.8C536 1846.27 527.2 1841.07 515.067 1836.53C504 1832.53 503.2 1830.93 509.2 1824.53C512.534 1820.93 528 1799.07 528 1798C528 1797.73 530.534 1793.2 533.734 1787.73C542.134 1773.6 546 1766.67 555.734 1748C560.534 1738.8 565.734 1729.2 567.334 1726.67C568.934 1724.13 570.534 1720.93 571.067 1719.6C572.134 1716.67 567.734 1712 563.734 1712C560.134 1712 541.2 1708.4 474.667 1695.2C424.934 1685.33 414.4 1683.2 382.667 1675.73C373.467 1673.6 365.067 1671.73 364 1671.47C362.934 1671.2 360.8 1671.33 359.334 1671.6ZM376.667 1683.33C381.067 1684.27 392.534 1686.67 402 1688.67C417.867 1691.87 429.6 1694.27 453.334 1699.33C463.334 1701.47 478.934 1704.53 493.334 1707.33C498.8 1708.4 510.8 1710.8 520 1712.8C529.2 1714.67 540.667 1716.93 545.734 1717.87C558.534 1720.27 558.934 1720.8 552.934 1732.4C550.267 1737.6 547.067 1743.47 546 1745.33C534.4 1765.2 528 1776.4 528 1776.8C528 1777.2 526.8 1779.07 525.467 1781.07C524.134 1783.07 516.534 1794.4 508.8 1806.27C500.267 1819.33 493.867 1828 492.534 1828C491.334 1828 480.667 1824.8 468.8 1820.8C442.134 1811.87 418.534 1804.27 410.667 1802C407.334 1801.07 398.534 1798.4 390.934 1796.13C372.534 1790.53 365.867 1790.67 353.2 1796.8C347.734 1799.47 342.134 1802.13 340.667 1802.8C339.2 1803.47 335.734 1805.33 333.067 1806.93C330.4 1808.67 322.534 1813.2 315.734 1817.2C308.934 1821.2 301.867 1825.47 300 1826.8C286 1836.27 247.734 1861.33 245.334 1862.67C242.134 1864.4 240.934 1863.73 216 1846.13C189.867 1827.6 172.8 1810.67 163.334 1794C158.134 1784.93 157.467 1784 155.2 1784.93C152.4 1786 152.934 1790.13 156.934 1797.07C169.2 1818.4 197.867 1845.47 226.534 1862.93C231.067 1865.6 234.667 1868.53 234.667 1869.33C234.667 1870.13 231.867 1872.67 228.4 1875.07C225.067 1877.33 219.6 1881.33 216.4 1883.6C213.2 1886 210 1888 209.2 1888C208.4 1888 201.734 1882.4 194.267 1875.6C179.067 1862 168.667 1852.67 143.867 1830.93C126.8 1816.13 115.334 1805.2 112.134 1801.07C108.134 1795.73 111.6 1793.73 162 1770.67C167.2 1768.4 174.4 1765.07 178 1763.33C192 1756.8 204.934 1750.93 211.334 1748.13C215.067 1746.53 219.067 1744.67 220.267 1744C221.6 1743.33 228.534 1740 235.734 1736.8C249.067 1730.8 258.534 1726.4 278.4 1717.2C284.4 1714.27 289.6 1712 290 1712C290.4 1712 306.667 1704.67 319.334 1698.67C322.267 1697.2 330.4 1693.47 337.334 1690.4C344.267 1687.2 352.134 1683.6 354.667 1682.4C359.6 1680 362.534 1680.13 376.667 1683.33ZM383.734 1802.67C389.334 1804.27 396.4 1806.27 399.334 1807.2C402.267 1808.13 408.267 1810 412.667 1811.33C417.067 1812.53 424 1814.67 428 1816C432 1817.33 440.8 1820.13 447.334 1822C454 1824 461.2 1826.4 463.334 1827.33C465.6 1828.27 469.467 1829.47 472 1830C474.534 1830.53 477.334 1831.47 478 1832C478.8 1832.67 482 1833.73 485.334 1834.53C488.667 1835.47 493.467 1836.93 496 1837.87C498.534 1838.93 505.867 1841.73 512.4 1844.13C520.267 1847.07 524 1849.2 524 1850.53C524 1852.27 487.467 1902.13 473.067 1920.13C471.067 1922.67 466.8 1927.87 463.734 1931.87C427.734 1977.33 421.6 1984.93 407.334 2002.53C400 2011.6 392.267 2021.2 390 2024C387.867 2026.8 381.2 2034.8 375.334 2042C369.467 2049.2 361.867 2058.53 358.4 2062.67C354.934 2066.93 351.467 2070.8 350.8 2071.33C350 2071.73 342.4 2068.4 333.734 2063.87C325.067 2059.33 316.267 2054.67 314 2053.6C311.867 2052.53 301.067 2046.4 290 2040.27C279.067 2034 267.867 2027.73 265.334 2026.4C260.667 2023.87 254.8 2020.53 244.667 2014.67C241.734 2012.93 237.867 2010.67 236 2009.73C234.134 2008.67 230.934 2006.8 228.667 2005.47C226.534 2004.13 218.667 1999.6 211.334 1995.33C204 1991.2 197.067 1986.8 195.867 1985.87C194.8 1984.8 193.334 1984 192.8 1984C192.267 1984 185.867 1980.4 178.534 1976C171.2 1971.6 164.934 1968 164.534 1968C164.134 1968 161.867 1966.53 159.6 1964.8C157.2 1963.07 152.8 1960.4 149.6 1958.8C146.534 1957.2 144 1955.2 144 1954.27C144 1952.4 151.734 1945.33 172.4 1928.8C188.934 1915.6 230.934 1883.87 242.134 1876.27C246.667 1873.2 251.067 1869.73 252 1868.67C252.934 1867.6 254.134 1866.67 254.667 1866.67C255.2 1866.67 264.934 1860.53 276.134 1852.93C318.4 1824.53 361.334 1800.13 369.067 1800C371.467 1800 378 1801.2 383.734 1802.67Z",fill:"currentColor"}),f.jsx("path",{d:"M271.2 1740.13C269.6 1742.8 293.066 1764.53 307.333 1773.33C316.266 1778.93 322.666 1782.27 337.6 1789.2C344.133 1792.27 349.333 1792 349.333 1788.67C349.333 1786.4 343.066 1781.87 338.266 1780.67C334.8 1779.73 327.466 1776.13 314 1768.67C305.466 1764 292 1753.73 283.2 1745.2C276.4 1738.8 273.066 1737.33 271.2 1740.13Z",fill:"currentColor"}),f.jsx("path",{d:"M193.867 1767.33C191.6 1773.07 228.667 1803.47 251.867 1814.8C259.6 1818.53 267.867 1822.53 270.134 1823.73C275.067 1826.13 278.667 1825.2 278.667 1821.47C278.667 1819.47 274.667 1816.93 261.734 1810.53C236 1798 227.467 1792.4 210.267 1776.93C206 1773.2 200.8 1768.93 198.667 1767.6C194.934 1765.33 194.667 1765.2 193.867 1767.33Z",fill:"currentColor"}),f.jsx("path",{d:"M363.066 1876.93C359.866 1878.13 361.333 1881.2 367.066 1884.93C370.133 1887.07 373.6 1889.2 374.666 1889.73C375.733 1890.4 379.066 1892.27 382 1893.87C394.266 1901.2 425.733 1916 428.667 1916C429.6 1916 431.066 1915.07 432 1914C433.333 1912.4 433.333 1911.6 432 1910C430.266 1908 423.067 1904 421.067 1904C417.6 1904 376.933 1883.73 369.466 1878.27C366.133 1875.87 365.733 1875.73 363.066 1876.93Z",fill:"currentColor"}),f.jsx("path",{d:"M276 1904.93C276.133 1907.87 297.867 1926.53 313.6 1937.2C326.533 1946 345.333 1956.8 355.333 1961.2C359.067 1962.93 363.867 1965.07 366 1966C372.133 1968.8 390.667 1974.67 393.333 1974.67C394.667 1974.67 396.4 1973.73 397.333 1972.67C399.6 1970 397.2 1967.2 391.867 1966C389.733 1965.47 387.733 1964.53 387.333 1963.87C386.8 1963.2 385.6 1962.67 384.533 1962.67C381.733 1962.67 373.333 1959.07 350.667 1947.73C328.4 1936.8 306.4 1922.93 291.067 1910.53C281.467 1902.53 276 1900.53 276 1904.93Z",fill:"currentColor"}),f.jsx("path",{d:"M206.666 1937.07C206.666 1939.47 208.799 1941.33 225.999 1953.33C231.199 1956.93 235.999 1960.4 236.666 1960.93C237.466 1961.6 239.466 1962.8 241.333 1963.6C243.199 1964.53 248.933 1968 253.999 1971.2C262.266 1976.4 292.533 1992 305.333 1997.73C331.199 2009.2 333.599 2009.73 334.399 2004.27C334.799 2002.13 333.866 2000.93 331.066 1999.87C329.066 1999.2 325.599 1997.73 323.333 1996.67C321.199 1995.73 315.466 1993.2 310.666 1991.2C286.399 1980.67 254.799 1963.87 236.133 1951.33C228.533 1946.13 221.199 1941.33 219.866 1940.53C218.533 1939.73 216.266 1938.13 214.933 1936.93C211.599 1933.87 206.666 1934 206.666 1937.07Z",fill:"currentColor"})]})}const Lie=E.styled("div")(({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center",gap:e.spacing(2)})),Tl="ApplicaEmpty",si={message:`${Tl}-message`,icon:`${Tl}-icon`,toolbar:`${Tl}-toolbar`},Bie=E.styled("span",{name:Tl,slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,height:"calc(100vh - 200px)",[`& .${si.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?1:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${si.icon}`]:{fontSize:"9em",marginTop:"16px",marginBottom:"16px"},[`& .${si.toolbar}`]:{textAlign:"center"}}));function Nie({icon:e,className:t}){return e!==void 0?e:t!=null&&t.includes("RaList-noResults")?f.jsx(Fie,{className:si.icon}):f.jsx(Die,{className:si.icon})}function f1({actions:e,className:t,hasCreate:n,icon:r,title:o,subtitle:i,sx:s,...l}){const{hasCreate:d}=ne.useResourceDefinition(l),u=n!==void 0?n:d,p=ne.useResourceContext(l),g=ne.useTranslate(),h=ne.useGetResourceLabel(),m=p?g(`resources.${p}.name`,{smart_count:0,_:h(p,0)}):g("ra.empty.no_resource"),v=g("ra.page.empty",{name:m}),b=g("ra.page.invite");return f.jsxs(Bie,{className:$e(`${Tl}-root`,t),sx:s,children:[f.jsxs(E.Box,{className:si.message,children:[Nie({icon:r,className:t}),f.jsx(E.Typography,{variant:"h4",paragraph:!0,children:o||g(`resources.${p}.empty`,{_:v})}),i||(u?f.jsx(E.Typography,{variant:"body1",children:g(`resources.${p}.invite`,{_:b})}):null)]}),f.jsx(Lie,{className:si.toolbar,children:e||(u?f.jsx(qC,{variant:"contained",size:"medium",disableFloatingButton:!0}):null)})]})}const qm=f.jsx(z.BulkDeleteButton,{}),gx=B.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?z.PureDatagridBody:z.DatagridBody,header:o=z.DatagridHeader,children:i,className:s,empty:l,expand:d,bulkActionsToolbar:u=!1,bulkActionButtons:p=qm,hover:g,isRowSelectable:h,isRowExpandable:m,resource:v,rowClick:b,rowSx:x,rowStyle:S,size:I="small",sx:w,expandSingle:T=!1,...P}=e,M=ne.useTranslate(),{sort:j,data:D,isLoading:N,onSelect:k,onToggleItem:_,selectedIds:U,setSort:H,total:G}=ne.useListContext(e),Y=!!p,V=O.useMemo(()=>({isRowExpandable:m,expandSingle:T}),[m,T]),Z=O.useRef(null);O.useEffect(()=>{(!U||U.length===0)&&(Z.current=null)},[JSON.stringify(U)]);const W=O.useCallback((K,$)=>{const te=D.map(Q=>Q.id),oe=te.indexOf(Z.current);if(Z.current=$.target.checked?K:null,$.shiftKey&&oe!==-1){const Q=te.indexOf(K),de=te.slice(Math.min(oe,Q),Math.max(oe,Q)+1),pe=$.target.checked?qte(U,de):lne(U,de);k(h?pe.filter(ye=>h(D.find(ce=>ce.id===ye))):pe)}else _(K)},[D,h,k,_,U]),se=f.jsx(f1,{hasCreate:!1,sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:M("ra.navigation.no_results")});return N===!0?f.jsx(z.DatagridLoading,{className:s,expand:d,hasBulkActions:Y,nbChildren:B.Children.count(i),size:I}):D==null||D.length===0||G===0?l||se:f.jsx(_ie,{value:V,children:f.jsxs(z.DatagridRoot,{sx:w,className:$e(z.DatagridClasses.root,s),children:[u!=null&&O.isValidElement(u)?O.cloneElement(u,{selectedIds:U,total:G}):p!==!1?f.jsx(px,{children:O.isValidElement(p)?p:qm}):null,f.jsx("div",{className:z.DatagridClasses.tableWrapper,children:f.jsxs(E.Table,{ref:t,className:z.DatagridClasses.table,size:I,...Vie(P),children:[Ym(o,{children:i,sort:j,data:D,hasExpand:!!d,hasBulkActions:Y,isRowSelectable:h,onSelect:k,resource:v,selectedIds:U,setSort:H},i),Ym(r,{expand:d,rowClick:b,data:D,hasBulkActions:Y,hover:g,onToggleItem:W,resource:v,rowSx:x,rowStyle:S,selectedIds:U,isRowSelectable:h},i)]})})]})})});function Ym(e,t,n){return O.isValidElement(e)?O.cloneElement(e,t,n):O.createElement(e,t,n)}const $ie=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"];function Vie(e){return Object.keys(ne.sanitizeListRestProps(e)).filter(t=>!$ie.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{})}gx.displayName="Datagrid";const zie=ge(gx,{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 mx(e){return f.jsx(zie,{...e})}const wp=O.createContext({hasFilterSidebar:!1});function vx(){var e;return((e=O.useContext(wp))==null?void 0:e.hasFilterSidebar)??!1}function Sp({source:e,value:t}){const n=O.useContext(z.FilterContext),r=z.useResourceContext(),o=O.useMemo(()=>n.find(d=>{var u,p;return O.isValidElement(d)&&(((u=d.props)==null?void 0:u.source)===e||(e==null?void 0:e.includes((p=d.props)==null?void 0:p.source)))}),[n,e]),i=O.useMemo(()=>O.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 s={...i,specificSource:e,record:{[e]:t},value:t,resource:r};return O.isValidElement(i.chip)?O.cloneElement(i.chip,s):Qe.isFunction(i.chip)?O.createElement(i.chip,s):null}function Wie(e){const{value:t,source:n,lastItem:r}=e,o=Sp({source:n,value:t});return f.jsxs(E.Stack,{children:[f.jsx(E.ListItem,{alignItems:"flex-start",sx:{pl:0},children:f.jsx(E.ListItemText,{primary:o,sx:{my:0}})}),r===n?null:f.jsx(E.Divider,{})]})}function Uie(){const{filterValues:e}=ne.useListContext(),t=ne.useTranslate();return f.jsxs(E.Stack,{mt:4,width:"100%",children:[f.jsx(E.Typography,{variant:"h6",fontWeight:"bold",color:"secondary",children:t("ra.title.selected_filters")}),f.jsx(E.List,{sx:{bgcolor:"background.paper",pt:0,overflowY:"auto",maxHeight:400},children:e?Object.entries(e).map(([n,r])=>{const o=Object.entries(e).pop(),i=o?o[0]:"";return f.jsx(Wie,{lastItem:i,value:r,source:n},n)}):null})]})}function Hie(e){const{onClose:t,addQuery:n}=e,r=ne.useTranslate(),{handleSubmit:o}=fn.useFormContext(),i=O.useCallback(s=>{n(s.queryName)},[n]);return f.jsxs(E.Toolbar,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[f.jsx(E.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(E.Button,{variant:"contained",onClick:o(i),children:r("ra.action.save")})]})}function yx(e){const{open:t,onClose:n}=e,{filterValues:r,sort:o,perPage:i,displayedFilters:s,resource:l}=ne.useListContext(),[d,u]=uC(l),p=ne.useTranslate(),g=O.useCallback(m=>{const v={label:m.trim(),value:{filter:r,sort:o,perPage:i,displayedFilters:s}},b=dC(d);u(b.concat(v)),n()},[r,o,i,s,d,u,n]),h=O.useCallback(()=>m=>{if(d.some(v=>v.label===(m==null?void 0:m.trim())))return"ra.validation.already_exists"},[d]);return f.jsx(E.Dialog,{open:t,onClose:n,maxWidth:"xs",fullWidth:!0,children:f.jsxs(yp,{toolbar:f.jsx(Hie,{addQuery:g,onClose:n}),title:p("ra.title.save_favorite_filter"),modal:!0,children:[f.jsx(Sr,{fullWidth:!0,source:"queryName",label:p("ra.input.query_name"),placeholder:p("ra.input.query_name_placeholder"),validate:[ne.required(),h()]}),f.jsx(Uie,{})]})})}function bx(){const[e,t]=O.useState(!1),n=ne.useTranslate(),r=O.useCallback(()=>{t(!1)},[]),o=O.useCallback(()=>{t(!0)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(E.Button,{sx:{height:"36px"},variant:"contained",onClick:o,children:n("ra.action.save_filter")}),f.jsx(yx,{open:e,onClose:r})]})}function Gie(e){const{onDelete:t,value:n,source:r}=e,o=Sp({source:r,value:n});return o&&f.jsx(E.Chip,{label:o,variant:"combined",color:"primary",sx:{height:"36px","& .MuiChip-deleteIcon":{fontSize:"1rem !important",mr:1}},deleteIcon:f.jsx(Vt.Close,{}),onDelete:t})}function qie(){const{filterValues:e,setFilters:t}=ne.useListContext(),n=E.useTheme(),r=E.useMediaQuery(n.breakpoints.down("sm")),o=ne.useTranslate(),i=O.useCallback(()=>{t({})},[t]),s=O.useCallback(d=>{const u={...e};delete u[d],t(u)},[e,t]),l=O.useCallback(()=>f.jsxs(E.Stack,{flexDirection:"row",gap:2,children:[f.jsx(bx,{}),f.jsx(E.Button,{variant:"outlined",onClick:i,children:o("ra.action.reset_filters")})]}),[i,o]);return f.jsxs(E.Stack,{gap:2,flexDirection:r?"column":"row",children:[f.jsxs(E.Stack,{flexDirection:"row",flexWrap:r?"nowrap":"wrap",gap:2,py:.5,overflow:"auto",width:r?window.innerWidth-58:"auto",children:[Object.entries(e).map(([d,u])=>f.jsx(Gie,{source:d,value:u,onDelete:()=>s(d)},d)),r?null:f.jsx(l,{})]}),r?f.jsx(l,{}):null]})}function V0(){const{filterValues:e}=ne.useListContext(),t=E.useTheme(),n=E.useMediaQuery(t.breakpoints.down("sm")),r=ne.useTranslate();return e&&!Qe.isEmpty(e)?f.jsxs(E.Stack,{sx:{backgroundColor:t.palette.background.paper},flexDirection:n?"column":"row",alignItems:"baseline",gap:2,p:n?2:0,children:[f.jsx(E.Typography,{variant:"h6",color:"secondary",whiteSpace:"nowrap",children:r("ra.title.active_filters")}),f.jsx(qie,{})]}):null}function Cx({open:e,onClose:t,filterToRemove:n}){var v;const r=ne.useTranslate(),{resource:o,filterValues:i,sort:s,perPage:l,displayedFilters:d}=ne.useListContext(),u=((v=n==null?void 0:n.value)==null?void 0:v.filter)||i,p=(n==null?void 0:n.label)??"",[g,h]=z.useSavedQueries(o);function m(){const b={filter:u,sort:s,perPage:l,displayedFilters:d},x=z.extractValidSavedQueries(g),S=x.findIndex(I=>Nl(I.value,b));h([...x.slice(0,S),...x.slice(S+1)]),t()}return f.jsxs(E.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[f.jsx(E.DialogTitle,{id:"alert-dialog-title",children:r("ra.saved_queries.remove_dialog_title",{label:p,_:"Remove saved query?"})}),f.jsx(E.DialogContent,{children:f.jsx(E.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(E.DialogActions,{children:[f.jsx(E.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(E.Button,{onClick:m,color:"primary",autoFocus:!0,children:r("ra.action.confirm")})]})]})}function Yie(e){const{query:t}=e,[n,r]=O.useState(!1),o=O.useCallback(()=>{r(s=>!s)},[]),i=ne.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(E.Button,{size:"small",color:"primary",onClick:o,children:i("ra.action.delete")}),f.jsx(Cx,{open:n,onClose:o,filterToRemove:t})]})}function xx(e){const{closeSidebar:t}=e,{resource:n,setFilters:r,setSort:o,setPage:i,setPerPage:s}=ne.useListContext(),[l,d]=O.useState(!1),u=wt(),[p]=uC(n),g=dC(p),h=ne.useTranslate(),m=O.useCallback(()=>{d(b=>!b)},[]),v=O.useCallback(b=>{const{value:x}=b;r(x.filter),o({field:x.sort.field,order:x.sort.order}),i(1),s(x.perPage),t()},[r,o,i,s,t]);return p&&p.length>0?f.jsx(E.Box,{sx:{mt:"-1px",mb:2,"& .MuiAccordion-root":{borderColor:u.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:u.palette.divider},"& .MuiAccordionSummary-expandIconWrapper":{color:u.palette.text.primary,"&.Mui-expanded":{transform:"rotate(180deg)"}}}},children:f.jsxs(E.Accordion,{expanded:l,onChange:m,children:[f.jsx(E.AccordionSummary,{sx:{px:"20px"},expandIcon:f.jsx($b,{fontSize:"small"}),children:f.jsxs(E.Typography,{variant:"h5",fontWeight:"bold",children:[h("ra.action.saved_filters")," (",g.length,")"]})}),g==null?void 0:g.map((b,x)=>f.jsxs(E.AccordionDetails,{sx:{display:"flex",justifyContent:"space-between",px:"20px",alignItems:"center"},children:[f.jsx(E.Typography,{variant:"body1",children:b.label}),f.jsxs(E.Stack,{flexDirection:"row",alignItems:"center",children:[f.jsx(Yie,{query:b}),f.jsx(E.Button,{size:"small",color:"primary",onClick:()=>v({value:b.value}),children:h("ra.action.apply")})]})]},x))]})}):f.jsx(E.Box,{height:16})}function Kie(e){const{sx:t}=e;return f.jsx(E.Box,{sx:{...t,flex:"1 1 auto",backgroundColor:"background.paper",overflowY:"auto"},children:e.children})}const Zie=444;function Xie(e){const{sx:t,anchor:n="right",variant:r="temporary",open:o=!1,onClose:i,keepMounted:s=!1}=e,l=E.useTheme(),u=E.useMediaQuery(l.breakpoints.down("sm"))?"bottom":n,p=O.useCallback(()=>{i&&i()},[i]),g=O.useMemo(()=>({backgroundImage:"none",boxShadow:"-10px 4px 42px 0px rgba(0, 0, 0, 0.25)",width:{sm:"30%"},maxWidth:{sm:Zie},[l.breakpoints.down("sm")]:{width:"100% !important",maxWidth:"100% !important"}}),[l.breakpoints]);return f.jsx(E.Drawer,{...e,anchor:u,onClose:p,open:o,PaperProps:{sx:{...g,...t}},variant:r,keepMounted:s,children:e.children})}const Qie=O.memo(Xie);function Jie(e){return f.jsxs(E.Box,{children:[f.jsx(E.Divider,{}),f.jsx(E.Box,{bgcolor:"background.paper",px:2,py:2.5,children:e.children})]})}function ese(e){const{sx:t}=e;return f.jsxs(E.Box,{children:[f.jsx(E.Stack,{alignItems:"center",bgcolor:"background.paper",direction:"row",px:2.5,py:2,spacing:2,minHeight:"64px",sx:t,children:e.children}),f.jsx(E.Divider,{sx:{opacity:.6}})]})}function tse(e){const{primary:t,secondary:n}=e;return f.jsxs(E.Box,{display:"inline-flex",flexGrow:1,flexShrink:1,flexDirection:"column",children:[t?f.jsx(E.Typography,{variant:"h5",children:t}):null,n?f.jsx(E.Typography,{variant:"h6",children:n}):null]})}function nse(e){return f.jsx(E.Box,{display:"inline-flex",flexGrow:0,flexShrink:0,children:e.children})}const xr=Qie;xr.Content=Kie;xr.Footer=Jie;xr.Header=ese;xr.HeaderText=tse;xr.HeaderAction=nse;function rse(e){const{form:t,filters:n}=e,r=ne.useResourceContext();return f.jsx(z.FilterContext.Provider,{value:Array.isArray(n)?n:[n],children:f.jsx(fn.FormProvider,{...t,children:f.jsx(E.Box,{px:"20px",children:n?(Array.isArray(n)?n:[n]).map((o,i)=>{const s={...o.props,display:"label"};return O.isValidElement(o)?f.jsx(E.Box,{mb:1,children:O.cloneElement(o,{...s,resource:r})},i):null}):null})})})}function ose(e){const{filters:t,keepMounted:n=!1}=e,[r,o]=O.useState(!1),{setSidebarOpen:i,sidebarOpen:s}=_3(),{filterValues:l,setFilters:d}=ne.useListContext(),u=ne.useTranslate(),p=O.useMemo(()=>t?(Array.isArray(t)?t:[t]).reduce((w,T)=>(w[T.props.source]=(l==null?void 0:l[T.props.source])??"",w),{}):{},[t,l]),g=fn.useForm({defaultValues:l,values:p}),{handleSubmit:h,getValues:m,reset:v}=g;O.useEffect(()=>{const w=z.getFilterFormValues(m(),l),T=m();Qe.isEqual(w,T)||v(w)},[JSON.stringify(l),l,m,v]);const b=O.useCallback(()=>{i&&i(!1)},[i]),x=O.useCallback(w=>{Object.keys(w).forEach(T=>{(Qe.isNull(w[T])||Qe.isUndefined(w[T])||w[T]==="")&&delete w[T]}),d(w),b()},[d,b]),S=O.useCallback(()=>{v({}),d({})},[v,d]),I=O.useCallback(()=>{o(w=>!w),S(),setTimeout(()=>o(!1),1e3)},[S]);return f.jsxs(xr,{sx:{height:"100%"},open:s,onClose:b,keepMounted:n,children:[f.jsxs(xr.Header,{children:[f.jsx(xr.HeaderText,{primary:u("ra.action.add_filter")}),f.jsx(xr.HeaderAction,{children:f.jsx(Yy,{variant:"text",loading:r,loadingPosition:"start",startIcon:f.jsx(He.ReloadOutlined,{}),onClick:I,children:u("ra.action.reset_filters")})})]}),f.jsxs(xr.Content,{children:[f.jsx(xx,{closeSidebar:b}),f.jsx(rse,{form:g,filters:t})]}),f.jsx(xr.Footer,{children:f.jsxs(E.Stack,{direction:"row",spacing:2,children:[f.jsx(E.Button,{fullWidth:!0,onClick:()=>{v({}),b()},children:u("ra.action.close")}),f.jsx(E.Button,{fullWidth:!0,variant:"contained",color:"primary",onClick:h(x),children:u("ra.action.apply_filters")})]})})]})}const qc=O.memo(ose);function ise(){const{setSidebarOpen:e}=_3(),t=O.useContext(z.FilterContext),n=vx(),r=z.useTranslate(),o=E.useTheme(),i=E.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 s=O.useCallback(()=>{Qe.isFunction(e)&&e(!0)},[e]);return i?f.jsxs(E.Button,{className:"add-filter",onClick:s,children:[f.jsx(Vt.FilterList,{sx:{fontSize:"1rem",mr:.5}}),f.jsx(E.Typography,{variant:"h6",children:r("ra.action.add_filter")})]}):f.jsx(os,{label:"ra.action.add_filter",onClick:s,children:f.jsx(Vt.FilterList,{})})}const wx=O.createContext({sidebarOpen:!1,setSidebarOpen:()=>{},currentTabKey:"",setCurrentTabKey:()=>{}});function Sx(e){const[t,n]=O.useState(!1),[r,o]=O.useState("");return f.jsx(wx.Provider,{value:{currentTabKey:r,setCurrentTabKey:o,sidebarOpen:t,setSidebarOpen:n},children:e.children})}function _3(){return O.useContext(wx)}function z0(e){const{tabs:t=[]}=e,{setFilters:n,filterValues:r,displayedFilters:o}=z.useListContext(),i=O.useMemo(()=>t.findIndex(j=>j.default)??0,[t]),{setCurrentTabKey:s}=_3(),l=z.useResourceContext(),d=wt(),[u,p]=ut.useSearchParams();if(t.length>0&&t.some(j=>!j.key))throw new Error("ListTabsToolbar: Each tab must have a unique key.");const g=O.useMemo(()=>`${l.replace(/^entities\//,"")}-tab-group`,[l]),h=O.useMemo(()=>`${l.replace(/^entities\//,"")}-tab-filters`,[l]),[m,v]=B0(g,i),[b,x]=B0(h,{}),S=O.useRef(!1),I=O.useCallback(j=>{const D={filterValues:{...r},displayedFilters:{...o}};x(N=>({...N,[j]:D}))},[r,o,x]),w=O.useCallback((j,D,N)=>{const k=b==null?void 0:b[j];if(k)n(k.filterValues,k.displayedFilters||{},N);else{const _={...D};n(_,{},N)}},[b,n]),T=O.useCallback((j,D,N=!0)=>{var U;const k=(U=t[Number(m)])==null?void 0:U.key,_=t[j].key;N&&k&&k!==_&&I(k),s&&s(_),w(_,t[j].filter,D)},[t,m,I,s,w]),P=O.useCallback(j=>{const D=new URLSearchParams(u.toString());D.set(g,String(j)),p(D,{replace:!0})},[u,p,g]);O.useEffect(()=>{const j=u.get(g);String(j)!==String(m)&&P(Number(m))},[r]),O.useEffect(()=>{if(!S.current){const j=u.get(g),D=j!=null?Number(j):Number(m);j!=null&&String(D)!==String(m)&&v(D),T(D,!1,!1),S.current=!0}},[u,p,g,m,v,T]);const M=O.useCallback((j,D)=>{v(D),T(D,!0,!0)},[T,v]);return f.jsx(E.Box,{sx:{width:"100%"},children:t.length>0?f.jsx(E.Tabs,{value:Number(m),onChange:M,allowScrollButtonsMobile:!0,variant:"scrollable",scrollButtons:"auto",sx:{width:"100%",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.2}},children:t.map(j=>f.jsx(E.Tab,{icon:j.icon,label:j.label,sx:{flex:"0 0 auto",lineHeight:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& .MuiTab-iconWrapper":{marginRight:d.spacing(.5)}}},j.key))}):null})}function Ax(e){const{filters:t,actions:n,className:r,hasFilterSidebar:o,tabs:i,...s}=e,l=wt(),d=E.useMediaQuery(l.breakpoints.down("sm")),u=n?O.cloneElement(n,{...s,...n.props}):null,{filterValues:p,data:g,isLoading:h}=ne.useListContext(),m=!h&&g&&g.length===0,v=i&&i.length>0;return Array.isArray(t)?f.jsx(wp.Provider,{value:{hasFilterSidebar:o},children:f.jsx(z.FilterContext.Provider,{value:t,children:f.jsx(Km,{className:r,children:f.jsxs(E.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",gap:2},children:[i?f.jsx(z0,{tabs:i}):null,f.jsx(E.Box,{children:d&&o?f.jsxs(E.Box,{sx:{border:d&&m?"1px solid":0,borderColor:l.palette.mode==="dark"?l.palette.divider:l.palette.grey.A800},children:[u,Qe.isEmpty(p)?null:f.jsxs(E.Box,{children:[f.jsx(E.Divider,{}),f.jsx(V0,{})]})]}):f.jsxs(E.Box,{sx:{display:"flex",flexDirection:d?"column":"row",alignItems:d?"flex-start":"center",gap:2,px:2.5,py:2.5},children:[o?f.jsx(V0,{}):f.jsx(z.FilterForm,{}),d?null:f.jsx(E.Box,{sx:{flex:1}}),u]})})]})})})}):f.jsx(Km,{className:r,children:f.jsxs(E.Box,{sx:{display:"flex",flex:1,flexDirection:"column",gap:2,width:"100%"},children:[i?f.jsx(z0,{tabs:i}):null,f.jsxs(E.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:2,p:v?0:l.spacing(2.5),px:l.spacing(2.5),pb:l.spacing(2.5),width:"100%"},children:[t?O.cloneElement(t,{...s,context:"form"}):null,f.jsx("span",{}),n?O.cloneElement(n,{...s,filters:t,...n.props}):null]})]})})}Ax.propTypes={filters:C.oneOfType([C.element,C.arrayOf(C.element)]),actions:C.oneOfType([C.bool,C.element]),exporter:C.oneOfType([C.func,C.bool])};const sse="RaListToolbar",Km=ge("div",{name:sse,overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%",padding:0,[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"}})),Ap=O.memo(Ax),ase=f.jsx(z.ListActions,{}),lse=f.jsx(z.Pagination,{}),cse=f.jsx(f1,{}),use=E.Card;function dse(e){const{actions:t=ase,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:i,hasCreate:s,pagination:l=lse,children:d,className:u,component:p=use,title:g,empty:h=cse,tabs:m,...v}=e,{defaultTitle:b,data:x,error:S,isLoading:I,filterValues:w,resource:T}=ne.useListContext(e),P=wt(),M=B.isValidElement(n)&&(n==null?void 0:n.type)!==qc,j=B.isValidElement(n)&&(n==null?void 0:n.type)===qc;if(!d||!x&&I&&i)return null;function D(V){return f.jsxs("div",{className:Kr.main,style:{border:M?"1px solid":"none",borderRadius:M?4:0,borderColor:M?P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800:"transparent",backgroundColor:M?P.palette.background.paper:"transparent"},children:[r||t?f.jsx(Ap,{className:Kr.actions,filters:r,actions:t,hasCreate:s,hasFilterSidebar:j,tabs:m}):null,!S&&f.jsx(p,{className:Kr.content,sx:V?{background:"transparent"}:{},children:o&&d&&B.isValidElement(d)?O.cloneElement(d,{bulkActionButtons:o}):d}),S?f.jsx(ep,{error:S,resetErrorBoundary:null}):l!==!1&&l]})}function N(){return h!==!1&&O.cloneElement(h,{className:Kr.noResults,hasCreate:s})}const k=!I&&(x==null?void 0:x.length)===0,_=!I&&(x==null?void 0:x.length)===0&&!Object.keys(w).length&&h!==!1,U=B.isValidElement(n),H=U&&(n==null?void 0:n.type)===qc,G=I||_||U&&!H?B.Fragment:Nn,Y=!I&&!_&&(!n||H)?{content:!1}:void 0;return f.jsxs(pse,{className:$e("list-page",u),...v,sx:k?{"& .MuiPaper-root":{backgroundColor:"transparent",border:"none",borderRadius:0},"& .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(z.Title,{title:g,defaultTitle:b,preferenceKey:`${T}.list.title`}),f.jsx(G,{...Y,children:I?f.jsx(E.CircularProgress,{sx:{position:"absolute",top:"50%",left:"50%",marginTop:"-20px",marginLeft:"-20px"}}):_?N():D(k)}),M?f.jsx(fse,{aside:n}):null,j?B.cloneElement(n,{filters:r}):null]})}function fse({aside:e}){var r;const t=((r=e==null?void 0:e.props)==null?void 0:r.order)??-1,n=wt();return f.jsx(E.Card,{className:Kr.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(E.CardContent,{sx:{pt:1},children:O.cloneElement(e,{})})})}const zs="RaList",Kr={main:`${zs}-main`,content:`${zs}-content`,actions:`${zs}-actions`,noResults:`${zs}-noResults`,asideCard:`${zs}-asideCard`},pse=ge("div",{name:zs,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex","& >.MuiPaper-root":{flex:1},[`& .${Kr.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${Kr.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${Kr.actions}`]:{},[`& .${Kr.noResults}`]:{alignContent:"center"},[`& .${Kr.asideCard}`]:{[e.breakpoints.down("md")]:{display:"none"},[`& .${z.SavedQueriesListClasses.floatingIcon}`]:{fontSize:"1.125rem"},[`& .${z.SavedQueriesListClasses.floatingTooltip}`]:{top:"-1.2em"},"& form":{marginTop:e.spacing(2)}}}));function hse({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=gse,filterDefaultValues:i,perPage:s=10,queryOptions:l,resource:d,sort:u,storeKey:p,...g}){return f.jsx(ne.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:i,perPage:s,queryOptions:l,resource:d,sort:u,storeKey:p,children:f.jsx(Sx,{children:f.jsx(dse,{...g})})})}const gse={},mse=a1(hse,{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",borderTopLeftRadius:`${e.shape.borderRadius}px`,borderTopRightRadius:`${e.shape.borderRadius}px`,borderBottomLeftRadius:0,borderBottomRightRadius:0,[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)",backgroundColor:e.palette.background.paper,border:"1px solid",borderTop:"none",borderColor:e.palette.mode==="dark"?e.palette.divider:e.palette.grey.A800,borderBottomLeftRadius:`${e.shape.borderRadius}px`,borderBottomRightRadius:`${e.shape.borderRadius}px`}},"& .RaList-noResults":{backgroundColor:e.palette.background.paper,border:"1px solid",borderColor:e.palette.mode==="dark"?e.palette.divider:e.palette.grey.A800,borderRadius:`${e.shape.borderRadius}px`},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function vse(e){const t={...e,pagination:e.pagination??f.jsx(k3,{})};return f.jsx(mse,{...t})}function yse(){const e=z.useRefresh(),t=z.useNotify(),n=z.useResourceContext(),r=z.useUnselectAll(n),{selectedIds:o,data:i}=z.useListContext(),s=z.useRecordContext(),l=o.map(g=>i.find(h=>h.id===g)),[d,{isLoading:u}]=z.useUpdateMany(n,{ids:o.length>0?o:[s==null?void 0:s.id],data:{readed:Br().toISOString()},rows:l},{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=O.useCallback(()=>{d()},[d]);return f.jsx(z.Button,{label:"ra.notification.mark_as_readed",disabled:u||(s==null?void 0:s.readed)!==null,onClick:p,children:f.jsx(Vt.Email,{})})}function bse(){const e=z.useRefresh(),t=z.useNotify(),n=z.useResourceContext(),r=z.useUnselectAll(n),{selectedIds:o,data:i}=z.useListContext(),s=z.useRecordContext(),l=o.map(g=>i.find(h=>h.id===g)).concat([s]),[d,{isLoading:u}]=z.useUpdateMany(n,{ids:o.length>0?o:[s==null?void 0:s.id],data:{readed:null},rows:l},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=O.useCallback(()=>{d()},[d]);return f.jsx(z.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:u||s&&!(s!=null&&s.readed),onClick:p,children:f.jsx(Vt.Drafts,{})})}function Cse(e){const t=z.useRecordContext(e),n=z.useResourceContext(e),r=z.useRedirect(),o=z.useNotify(),i=z.useTranslate(),[s]=z.useLocaleState(),l=O.useMemo(()=>t!=null&&t.readed?Br(t==null?void 0:t.readed).locale(s).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,s]),[d]=z.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Br().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"})}}),u=O.useCallback(()=>d(),[d]);return f.jsxs("div",{onClick:u,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(E.Typography,{variant:"subtitle1",children:f.jsxs(E.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(E.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),l?f.jsx(E.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:i("ra.notification.readed",{readed:l})}):null]})}function xse({...e}){const t=E.useTheme(),{mode:n,colorize:r,density:o}=O.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?E.darken:E.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]);function i(s){return{backgroundColor:s!=null&&s.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)}}return f.jsxs(z.Datagrid,{...e,rowSx:i,children:[f.jsx(Cse,{source:"notification",sortable:!1}),f.jsx(ax,{source:"created"}),f.jsxs(ui,{children:[f.jsx(yse,{}),f.jsx(bse,{})]})]})}function wse({empty:e,...t}){const n=z.useTranslate(),r=f.jsx(f1,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(E.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:n("ra.navigation.no_results")})});return f.jsx(z.SimpleList,{...t,empty:e||r})}function Ex(e){const{id:t,onClick:n,onDelete:r,recordRepresentation:o,resource:i}=e,s=ne.useGetRecordRepresentation(i),{data:l,isLoading:d,error:u}=ne.useGetMany(i,{ids:[t]}),p=J.find(l??[],{id:t}),g=!J.isNil(p)&&J.isFunction(r),h=O.useCallback(()=>{g&&r(p)},[r,p,g]),m=!J.isNil(p)&&J.isFunction(n),v=O.useCallback(()=>{m&&n(p)},[n,p,m]);if(d)return null;if(u||J.isNil(p))return f.jsx(Vt.Error,{color:"error"});{const b=J.isFunction(o)?o(p):s(p);return f.jsx(E.Chip,{label:b,onDelete:g?h:void 0,onClick:m?v:void 0})}}function Tx(e){const t=zC(),n=ne.useTranslate(),{children:r,multiple:o,onCancel:i,onConfirm:s,slotProps:l}=e,{dialogContent:d={},listToolbar:u={},pagination:p}=l??{},g=J.chain(l==null?void 0:l.list).defaults({disableSyncWithLocation:!0,emptyWhileLoading:!0,exporter:!1}).value(),h=!J.isNil(u.filters),m=J.chain(l==null?void 0:l.dialog).defaults({disableEscapeKeyDown:!0,fullWidth:!0,keepMounted:!1,open:!1}).value(),v=J.chain(l==null?void 0:l.dataGrid).defaults({}).extend({bulkActionButtons:!1,rowClick:"toggleSelection"}).value(),b=O.useCallback((x,S)=>o?J.includes(x,S)?J.without(x,S):J.concat(x,S):J.includes(x,S)?[]:[S],[o]);return f.jsx(ne.ListBase,{...g,storeKey:`reference-lookup-input-${t}`,children:f.jsx(ne.WithListContext,{render:({onSelect:x,selectedIds:S,onUnselectItems:I})=>f.jsx(E.Dialog,{...m,onClose:()=>{I(),i()},children:f.jsx(E.DialogContent,{...d,children:f.jsxs(E.Stack,{spacing:2,flexDirection:"column",children:[h?f.jsx(Ap,{...u}):null,f.jsxs(mx,{...v,onToggleItem:w=>x(b(S,w)),children:[f.jsx($0,{render:w=>J.includes(S,w.id)?f.jsx(Vt.CheckBox,{}):f.jsx(Vt.CheckBoxOutlineBlankOutlined,{})}),r??f.jsx($0,{label:n("ra.input.referenceLookup.dialog.defaultField"),render:w=>f.jsx(ne.RecordRepresentation,{record:w})})]}),f.jsx(k3,{...p}),f.jsxs(E.DialogActions,{children:[f.jsx(E.Button,{onClick:()=>{I(),i()},children:n("ra.input.referenceLookup.dialog.cancel")}),f.jsx(E.Button,{disabled:J.isEmpty(S),onClick:()=>{s(S),I()},color:"primary",children:n("ra.input.referenceLookup.dialog.confirm")})]})]})})})})})}function Sse(e){const{children:t,filter:n,filterDefaultValues:r,filters:o,recordRepresentation:i,reference:s,source:l}=e,{field:d}=ne.useInput({source:l}),{value:u,onChange:p}=d??{},g=!J.isEmpty(u),{open:h,handleOpen:m,handleClose:v}=np(!1),b=O.useMemo(()=>J.isEmpty(u)?n:J.chain(n??{}).clone().extend({id__ne:u}).value(),[n,u]),x=O.useMemo(()=>o??[f.jsx(Cp,{source:"keyword",alwaysOn:!0},"keyword")],[o]),S=O.useCallback(w=>{const T=J.first(w);return v(),p(T),T},[p,v]),I=O.useCallback(()=>p(null),[p]);return f.jsx(on,{...e,children:f.jsxs(E.Stack,{alignItems:"center",direction:"row",spacing:1,children:[g?f.jsx(Ex,{id:u,onClick:m,onDelete:I,recordRepresentation:i,resource:s}):null,!g&&f.jsx(ba,{onClick:m,children:f.jsx(Vt.AddCircleRounded,{})}),f.jsx(Tx,{onCancel:v,onConfirm:S,multiple:!1,slotProps:{dialog:{open:h,onClose:v},list:{filter:b,filterDefaultValues:r,resource:s},listToolbar:{filters:x}},children:t})]})})}function Ase(e){const{children:t,filter:n,filterDefaultValues:r,filters:o,recordRepresentation:i,reference:s,source:l}=e,{field:d}=ne.useInput({source:l}),{value:u,onChange:p}=d??{},g=!J.isEmpty(u),{open:h,handleOpen:m,handleClose:v}=np(!1),b=O.useMemo(()=>J.isEmpty(u)?n:J.chain(n??{}).clone().extend({id__nin:u}).value(),[n,u]),x=O.useMemo(()=>o??[f.jsx(Cp,{source:"keyword",alwaysOn:!0},"keyword")],[o]),S=O.useCallback(w=>{const T=J.union(u??[],w);return v(),p(T),T},[p,v,u]),I=O.useCallback(w=>p(J.without(u??[],w.id)),[p,u]);return f.jsx(on,{...e,children:f.jsxs(E.Stack,{alignItems:"center",direction:"row",spacing:1,children:[g?J.map(u??[],(w,T)=>f.jsx(Ex,{id:w,onDelete:I,recordRepresentation:i,resource:s},T)):null,f.jsx(ba,{onClick:m,children:f.jsx(Vt.AddCircleRounded,{})}),f.jsx(Tx,{onCancel:v,onConfirm:S,multiple:!0,slotProps:{dialog:{open:h,onClose:v},list:{filter:b,filterDefaultValues:r,resource:s},listToolbar:{filters:x}},children:t})]})})}function Ese({reference:e,target:t,children:n,filters:r,actions:o,...i}){return f.jsx(z.ResourceContextProvider,{value:e,children:f.jsx(dx,{perPage:5,pagination:f.jsx(z.Pagination,{}),...i,reference:e,target:t,children:f.jsxs(f.Fragment,{children:[f.jsx(z.ListToolbar,{filters:r,actions:o}),n]})})})}const Tse=ge(z.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 Ise({optionText:e="name",optionValue:t="id",...n}){return f.jsx(on,{...n,children:f.jsx(Tse,{optionText:e,optionValue:t,options:{autoWidth:!1}})})}const Ose=ge(z.SelectInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1||e===null?0:"auto"}}));function Pse(e){return f.jsx(on,{...e,children:f.jsx(Ose,{})})}function jse({multiline:e=!1,...t}){var d,u;const n=z.useTranslate(),r=z.maxLength(t==null?void 0:t.maxLength,"app.input.max_length_error"),o=(u=(d=fn.useController({name:t==null?void 0:t.source}))==null?void 0:d.field)==null?void 0:u.value;let i=t.helperText,s=t.validate;s?Array.isArray(s)&&s.indexOf(r)===-1&&s.push(r):s=[r];const l=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?`${l} - ${n(i)}`:l),f.jsx(Sr,{...t,validate:s,helperText:i,multiline:e,inputProps:{maxLength:t==null?void 0:t.maxLength}})}function Rse(e){if(!e)return"";const t=BC(e);return t?t.format("HH:mm"):""}function Mse(e){return e}const kse=ge(z.TimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function _se({parse:e=Mse,format:t=Rse,...n}){return f.jsx(on,{...n,children:f.jsx(kse,{parse:e,format:t,...n})})}function Ep({onSuccess:e,firstAccess:t}){const{spacing:n}=jn(),[r,o]=O.useState(!1),i=ne.useAuthProvider(),s=ne.useTranslate(),l=ne.useNotify(),d=Hi.useQueryClient(),u=O.useCallback(p=>{const{oldPassword:g,newPassword:h}=p;o(!0),i==null||i.changePassword(g,h).then(()=>{l("ra.auth.password_changed"),d.invalidateQueries(["auth","getIdentity"]),e()}).catch(m=>{l((m==null?void 0:m.message)||(m==null?void 0:m.toString()),{type:"error"})}).finally(()=>o(!1))},[i,e,l,d]);return f.jsx(ne.ResourceContextProvider,{value:"user/change-password",children:f.jsx(ne.EditContextProvider,{value:{record:{},resource:"user/change-password",save:u},children:f.jsx(yp,{onSubmit:u,toolbar:f.jsx(gi,{children:f.jsx(z.SaveButton,{disabled:r})}),children:f.jsxs(E.Grid,{container:!0,spacing:n,children:[t===!0&&f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Alert,{severity:"warning",children:[f.jsx(E.AlertTitle,{children:s("ra.auth.first_access.change_password")}),s("ra.auth.first_access.change_password_helper")]})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsx(Sr,{source:"oldPassword",type:"password",validate:ne.required()})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsx(Sr,{source:"newPassword",type:"password",validate:ne.required()})})]})})})})}const Ix=O.createContext({});function Dse(e){const{useDefaults:t=!1,queryOptions:n={}}=e,r=z.useResourceContext(),o=z.useDataProvider(),{search:i}=Yi.useLocation(),s=`${r}/new`,l=O.useCallback(()=>{if(!t||!J.isFunction(o.get))return Promise.resolve({});const h={};return new URLSearchParams(i??"").forEach((m,v)=>{h[v]=m}),o.get(s,h).then(m=>m.data).then(m=>{const{responseCode:v,value:b}=m;return v==="ok"?b:Promise.reject(m)})},[t,i,o,s]),d=O.useMemo(()=>J.chain(n).extend({queryKey:[r,i],queryFn:l}).value(),[r,i,l,n]),{data:u,isLoading:p}=Hi.useQuery(d),g=J.omit(e,["useDefaults"]);return p?f.jsx(E.Stack,{alignItems:"center",justifyContent:"center",flex:1,p:2,children:f.jsx(E.CircularProgress,{})}):f.jsx(Ix.Provider,{value:u??{},children:f.jsx(z.Create,{...g,children:e.children})})}const Fse=ge(Dse,{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 Lse(){return O.useContext(Ix)}const Bse=ge(z.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 Nse(e){return f.jsx(Bse,{...e})}const $se=ge(E.CardHeader)(({theme:e})=>({marginTop:e.spacing(2.5),marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0})),Vse=ge(E.Divider)(({theme:e})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,marginBottom:e.spacing(2),width:`calc(100% + ${e.spacing(5)})`}));function zse({title:e,divider:t=!0,variant:n="h5"}){const r=z.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx($se,{title:r(e,{_:e}),titleTypographyProps:{variant:n}}),t?f.jsx(Vse,{}):null]})}function W0(e){return e.id??e.label}function Ox(e,t){const n=`^${e}.`.replaceAll(".","\\."),r=new RegExp(n,"g");return t.match(r)!==null}function Wse(e){return J.map(e,"id")}function Fu(e){const t=e.match(new RegExp("[^.]+","g"));return t===null?0:t.length}function Px(e,t){const n=e!==void 0?Fu(e):0;return J.chain(t).filter(o=>e!==void 0?Ox(e,o.id):!0).filter(o=>Fu(o.id)===n+1).value()}function Use(e,t){var i;const n=J.clone(e),{type:r,payload:o}=t;switch(r){case"setFormRootPath":return J.extend(n,{formRootPath:o});case"setSyncWithLocation":return J.extend(n,{syncWithLocation:o});case"setErrorCount":return J.extend(n,{errorCount:o});case"setActiveItem":return J.includes(Wse(e.items),o)?J.extend(n,{activeItem:o}):n;case"addItem":{const{id:s}=o;return J.extend(n,{items:J.chain(n.items).clone().reject(l=>l.id===s).concat([o]).orderBy(l=>l.index).value()})}case"removeItem":{const s=J.isString(o)?o:o.id,l=J.chain(n.items).clone().reject(d=>d.id===s).value();return J.extend(n,{items:l}),n.activeItem===s&&J.extend(n,{activeItem:((i=J.first(l))==null?void 0:i.id)??void 0}),n}default:return n}}const Hse={syncWithLocation:!0,errorCount:!0,items:[],activeItem:void 0},jx=O.createContext(void 0);function Rx(e){const t=!!(e.syncWithLocation??!0),n=!!(e.errorCount??!0),{rootMatchString:r}=e,{pathname:o}=Yi.useLocation(),[i,s]=O.useReducer(Use,J.cloneDeep(Hse)),{formRootPath:l,items:d}=i,u=O.useMemo(()=>({state:i,dispatch:s}),[i,s]);return O.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=J.chain(p).map(m=>Yi.matchPath(m,o)).reject(m=>m===null).first().value(),h=g==null?void 0:g.pathnameBase;h!==void 0&&h!==l&&s({type:"setFormRootPath",payload:h})},[o,l,r]),O.useEffect(()=>{s({type:"setSyncWithLocation",payload:!!t})},[t,s]),O.useEffect(()=>{s({type:"setErrorCount",payload:!!n})},[n,s]),O.useEffect(()=>{var p;if(t&&l!==void 0){let g=o.replace(l,"").replace(new RegExp(/^\/?/),"");J.isEmpty(g)&&(g=((p=J.chain(d).filter(h=>Px(h.id,d).length===0).orderBy([h=>Fu(h.id),h=>h.index]).first().value())==null?void 0:p.id)??void 0),s({type:"setActiveItem",payload:g})}},[s,l,o,d,t]),f.jsx(jx.Provider,{value:u,children:e.children})}function Mx(){const e=O.useContext(jx);if(e===void 0)throw new Error("[LongForm] useFormContext: context undefined. Please provide a valid Context using LongForm.Provider");return e}function p1(){return Mx().state}function Tp(){return Mx().dispatch}function kx(){return p1().formRootPath}function _x(){return p1().activeItem}function Dx(){return p1().items}function Fx(){return p1().syncWithLocation}function Lx(){return p1().errorCount}function Bx(){const e=Tp();return O.useCallback(n=>{e({type:"setActiveItem",payload:n})},[e])}function Nx(){const e=Tp();return O.useCallback(n=>{e({type:"addItem",payload:n})},[e])}function $x(){const e=Tp();return O.useCallback(n=>{e({type:"removeItem",payload:n})},[e])}const Gse=ge(E.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 Vx(e){const{spacing:t}=jn(),{spacing:n=t}=e,r=J.omit(e,["spacing"]);return f.jsx(z.Form,{...r,className:"LongFormView",children:f.jsx(Gse,{container:!0,spacing:n*2,children:e.children})})}function zx(e){const{disposition:t={xl:9,lg:9,md:8,sm:8,xs:12}}=e,n=J.omit(e,["disposition"]);return f.jsx(E.Grid,{...n,item:!0,...t,children:e.children})}function Wx(e){const t=_x();return t===void 0?!1:e===t||Ox(e,t)}function Ux(e){const t=Dx();return O.useMemo(()=>Px(e,t),[t,e])}function qse(){const e=kx(),{search:t}=Yi.useLocation(),n=Yi.useNavigate();return O.useCallback(o=>{n(`${e}/${o}${t}`)},[e,n,t])}function Hx(){const e=Ux();return f.jsx(E.Card,{variant:"outlined",children:f.jsx(E.List,{sx:{"& .MuiListItemButton-root.Mui-selected":{borderColor:"palette.primary.main",borderRightStyle:"solid",borderRightWidth:2},"& .MuiListItemAvatar-root":{minWidth:24}},children:J.map(e,(t,n)=>f.jsx(Ip,{...t},n))})})}function Ip(e){const t=ne.useTranslate()??J.identity,n=Gx(e),{selected:r,label:o,icon:i,onClick:s,badge:l,items:d,isGroup:u,level:p,errors:g=0}=n,{spacing:h}=jn(),[m,v]=O.useState(r),b=O.useCallback(I=>{v(!m),s(I)},[s,m]),x=i!==void 0,S=J.omit(e,["label","icon","selected","badge"]);return O.useEffect(()=>{r&&!m&&v(r)},[r,m,v]),f.jsxs(f.Fragment,{children:[f.jsx(E.ListItem,{...S,disablePadding:!0,children:f.jsxs(E.ListItemButton,{selected:r?!u:null,onClick:b,sx:{pl:h*p},children:[x?f.jsx(E.ListItemIcon,{children:i}):null,f.jsx(E.ListItemText,{inset:!x,primary:g===0?t(o):f.jsx(E.Badge,{variant:"dot",color:"error",sx:{"& > .MuiBadge-badge":{transform:"scale(1) translate(125%, 0)"}},children:t(o)})}),l?f.jsx(E.ListItemAvatar,{children:f.jsx(du,{type:"filled",size:"xs",color:l.color??"default",children:l.content})}):null,u?m?f.jsx(Vt.ExpandLess,{}):f.jsx(Vt.ExpandMore,{}):null]})}),u?f.jsx(E.Collapse,{in:m,timeout:"auto",children:f.jsx(E.List,{children:J.map(d,(I,w)=>f.jsx(Ip,{...I},w))})}):null]})}function Gx(e){const{id:t}=e,n=Wx(t),r=Fu(t),o=qse(),i=Fx(),s=Bx(),l=Ux(t),d=!J.isEmpty(l),u=O.useCallback(g=>{d||(i?o(e.id):s(e.id)),J.isFunction(e.onClick)&&e.onClick(g)},[s,o,e,i,d]);return O.useMemo(()=>({...e,selected:n,onClick:u,items:l,isGroup:d,level:r}),[e,n,u,l,d,r])}var Yse=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},qx=e=>e.firstChild?e.firstChild.offsetParent===e:!0,Kse=(e,t)=>{let n=e,r=0;qx(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},Zse=e=>{let t=e.parentElement;for(;t&&getComputedStyle(t,null).getPropertyValue("display")==="contents";)t=t.parentElement;return t||window},zl=null;typeof CSS<"u"&&CSS.supports&&(CSS.supports("position","sticky")?zl="sticky":CSS.supports("position","-webkit-sticky")&&(zl="-webkit-sticky"));var Lu=!1;try{const e=Object.defineProperty({},"passive",{get(){Lu={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch{}var Lf=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}),s=o(i()),l=()=>{Object.assign(s,o(i())),n()};return window.addEventListener("resize",l,Lu),r.push(()=>window.removeEventListener("resize",l)),s}else{const i=o(t.getBoundingClientRect()),s=()=>{Object.assign(i,o(t.getBoundingClientRect())),n()},l=new ResizeObserver(s);return l.observe(t),r.push(()=>l.disconnect()),i}},Xse=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}},Qse=(e,t,n)=>{const{bottom:r,offsetBottom:o,offsetTop:i}=n,s=Yse(e);let l=!1;const d=()=>{l||requestAnimationFrame(()=>{const j=g();j!==w&&T(j),l=!1}),l=!0};let u=s===window?window.scrollY:s.scrollTop;const p=j=>{const{offsetTop:D,height:N}=m,{naturalTop:k}=x,{height:_}=S;return j+D+N>=k+_+I+o},g=()=>{const{height:j}=m,{height:D}=S;return D+i+o<=j?3:p(u)?1:2},h=s!==window&&qx(s),m=Lf({el:s,onChange:d,unsubs:t,measure:({height:j,top:D})=>({height:j,offsetTop:h?D:0})}),v=Zse(e),b=v===window?{top:0,bottom:0}:Xse(v),x=Lf({el:v,onChange:d,unsubs:t,measure:({height:j})=>({height:j-b.top-b.bottom,naturalTop:v===window?0:Kse(v,s)+b.top+m.offsetTop})}),S=Lf({el:e,onChange:d,unsubs:t,measure:({height:j})=>({height:j})});let I=0,w=g();const T=j=>{const D=w;if(w=j,D===2&&(I=-1),j===3){e.style.position=zl,r?e.style.bottom=`${o}px`:e.style.top=`${i}px`;return}const{height:N,offsetTop:k}=m,{height:_,naturalTop:U}=x,{height:H}=S;if(j===2)if(e.style.position="relative",I=D===0?Math.max(0,k+u-U+i):Math.max(0,k+u+N-(U+H+o)),r){const G=Math.max(0,_-H-I);e.style.bottom=`${G}px`}else e.style.top=`${I}px`;else e.style.position=zl,j===1?r?e.style.bottom=`${o}px`:e.style.top=`${N-H-o}px`:r?e.style.bottom=`${N-H-o}px`:e.style.top=`${i}px`};T(w);const P=j=>{if(j===u)return;const D=j-u;if(u=j,w===3)return;const{offsetTop:N,height:k}=m,{naturalTop:_,height:U}=x,{height:H}=S;if(D>0)if(w===0){if(j+N+i>_){const G=Math.max(0,N+u-_+i);j+N+k<=_+H+G+o?T(2):T(1)}}else w===2&&p(j)&&T(1);else if(w===1){if(N+j+k<_+U+o){const G=Math.max(0,N+u+k-(_+H+o));N+j+i>=_+G?T(2):T(0)}}else w===2&&N+j+i<_+I&&T(0)},M=s===window?()=>P(window.scrollY):()=>P(s.scrollTop);s.addEventListener("scroll",M,Lu),s.addEventListener("mousewheel",M,Lu),t.push(()=>s.removeEventListener("scroll",M),()=>s.removeEventListener("mousewheel",M))},Jse=({offsetTop:e=0,offsetBottom:t=0,bottom:n=!1}={})=>{const[r,o]=O.useState(null);return O.useEffect(()=>{if(!r||!zl)return;const i=[];return Qse(r,i,{offsetBottom:t,offsetTop:e,bottom:n}),()=>{i.forEach(s=>s())}},[r,t,e,n]),o},eae=e=>{const{offsetTop:t,offsetBottom:n,bottom:r,children:o,className:i,style:s}=e,l=Jse({offsetTop:t,offsetBottom:n,bottom:r});return f.jsx("div",{className:i,style:s,ref:l,children:o})},tae=eae,Yx=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(Yx||{});function Kx(e){const{sticky:t=!0,disposition:n={xl:3,lg:3,md:4,sm:4,xs:12},spacing:r=2}=e,o=J.omit(e,["sticky","disposition","spacing"]),i=t?tae:E.Box,s=O.useMemo(()=>t?{offsetTop:74,offsetBottom:r*2}:{},[t,r]);return f.jsx(E.Grid,{...o,item:!0,...n,children:f.jsx(i,{...s,children:f.jsx(E.Stack,{spacing:r,children:e.children})})})}function Zx(e){return f.jsx(f.Fragment,{children:e.children})}function Xx(e){const{children:t}=e;return O.useMemo(()=>{const r={top:[],bottom:[]};return O.Children.forEach(t,o=>{if(O.isValidElement(o)&&(o==null?void 0:o.type)===Zx){const{position:i}=o.props;switch(i){case"top":r.top.push(o);break;case"bottom":r.bottom.push(o);break}}}),r},[t])}function Qx(e){const{errors:t}=fn.useFormState(),n=Lx(),{label:r,icon:o,badge:i,index:s=0,children:l}=e,d=W0(e),u=Nx(),p=$x(),g=Wx(d),h=[];n&&(e.sources!==void 0?h.push(...e.sources):R3(l,v=>{var b;((b=v==null?void 0:v.props)==null?void 0:b.source)!==void 0&&h.push(v.props.source)}));const m=J.chain(h).uniq().map(v=>J.get(t,v)).reject(v=>v===void 0).value().length;return O.useEffect(()=>{u({id:d,index:s,label:r,icon:o,badge:i,errors:m})},[u,p,r,o,d,i,s,m]),O.useEffect(()=>()=>{p(d)},[d,p]),f.jsx(E.Box,{display:g?"unset":"none",children:e.children})}function Jx(e){const t=Op(e),n=W0(e);return f.jsx(Qx,{...e,id:n,children:O.Children.map(t,r=>{const o=W0(r.props);return O.cloneElement(r,{id:`${n}.${o}`})})})}function ew(e){return f.jsx(Qx,{...e})}function Op(e){const{children:t}=e;return O.useMemo(()=>J.chain(O.Children.toArray(t)).filter(r=>O.isValidElement(r)&&((r==null?void 0:r.type)===ew||(r==null?void 0:r.type)===Jx)).map((r,o)=>O.cloneElement(r,{index:o})).value(),[t])}function nae(e){const{tabsDisposition:t,contentDisposition:n,spacing:r=2}=e,o=J.pick(e,["syncWithLocation","errorCount"]),i=J.omit(e,["tabsDisposition","contentDisposition","syncWithLocation"]),{top:s,bottom:l}=Xx(e),d=Op(e);return f.jsx(Rx,{...o,children:f.jsxs(Vx,{...i,spacing:r,children:[f.jsxs(Kx,{disposition:t,spacing:r,children:[s,f.jsx(Hx,{}),l]}),f.jsx(zx,{disposition:n,children:d})]})})}const zt=nae;zt.BaseForm=Vx;zt.Content=zx;zt.Provider=Rx;zt.useItems=Dx;zt.useSyncWithLocation=Fx;zt.useErrorCount=Lx;zt.useFormRootPath=kx;zt.useActiveItem=_x;zt.useSetActiveItem=Bx;zt.useAddItem=Nx;zt.useRemoveItem=$x;zt.Sidebar=Kx;zt.SidebarSection=Zx;zt.SidebarSectionPosition=Yx;zt.useSidebarChildren=Xx;zt.NavMenu=Hx;zt.NavMenuItem=Ip;zt.useNavMenuItem=Gx;zt.Tab=ew;zt.Group=Jx;zt.useBaseItemChildren=Op;const rae=ge(z.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 oae(e){return f.jsx(rae,{...e})}const iae=ge(z.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 sae(e){return f.jsx(iae,{...e})}const aae=a1(z.TabbedForm,{slot:"Root"})(({theme:e})=>({"& .MuiGrid-root.MuiGrid-container":{paddingBottom:0},[e.breakpoints.down("sm")]:{paddingBottom:0,"& .MuiTableContainer-root":{paddingBottom:e.spacing(1)}}}));function lae({children:e}){return f.jsx(f.Fragment,{children:e})}function Pp(e){const{title:t,modal:n,content:r,subheader:o,secondary:i=f.jsx(ui,{children:f.jsx(is,{})}),sx:s,noPadding:l,toolbar:d=f.jsx(gi,{children:f.jsx(z.SaveButton,{type:"button"})}),...u}=e,p=fp(t),g=E.useTheme();return f.jsx(Nn,{title:p,modal:n,content:r,subheader:o,secondary:i,sx:{...s,"& .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(aae,{toolbar:d,component:l?lae:void 0,...u})})}function cae({children:e,...t}){return f.jsx(z.TabbedForm.Tab,{...t,children:f.jsx(E.Box,{sx:{width:"100%",p:2.5},children:e})})}Pp.Tab=z.TabbedForm.Tab;Pp.TabStack=cae;function jp(e){const{label:t,disableAdd:n,onClick:r,inset:o}=e,i=E.useTheme(),s=i.palette.mode==="dark"?i.palette.grey.A400:i.palette.grey.A800,l=i.palette.mode==="light"?"#000000":"#FFFFFF";return f.jsxs(E.Stack,{justifyContent:"space-between",alignItems:"center",flexDirection:"row",sx:o?{p:2.5}:{pt:2},children:[t!==!1&&f.jsx(E.Typography,{children:t}),!n&&(O.isValidElement(e==null?void 0:e.customButton)?O.cloneElement(e==null?void 0:e.customButton,{onClick:r}):f.jsx(E.IconButton,{color:"secondary",sx:{border:`1px solid ${s}`},onClick:r,children:f.jsx(He.PlusCircleOutlined,{style:{color:l}})}))]})}const Rp=O.createContext(void 0);function tw(){return O.useContext(Rp)}function Bu(e){const{children:t}=e,{item:n,index:r}=tw(),[o,i]=O.useState(!1),{update:s}=z.useArrayInput(),l=z.useTranslate(),d=O.useCallback(u=>(i(!1),s(r,u),Promise.resolve()),[r,s]);return f.jsxs(f.Fragment,{children:[f.jsx(E.Button,{color:"primary",onClick:()=>i(!0),sx:{justifyContent:"flex-start"},children:l("ra.action.edit")}),f.jsx(E.Dialog,{open:o,onClose:()=>i(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(z.EditContextProvider,{value:{record:n,save:d},children:t})})]})}function nw({source:e,children:t}){const n=O.Children.only(t),{getValues:r}=fn.useFormContext(),o=z.useRecordContext({record:r()});return O.isValidElement(n)?O.cloneElement(n,{source:e,record:o}):null}function Mp(e){const{label:t,disableAdd:n,inset:r,source:o,template:i}=e,[s,l]=O.useState(!1),{append:d}=z.useArrayInput(),u=O.useCallback(()=>{l(g=>!g)},[l]),p=O.useCallback(g=>(l(!1),d(g),Promise.resolve()),[l,d]);return f.jsxs(f.Fragment,{children:[O.cloneElement(f.jsx(jp,{}),{label:t,source:o,disableAdd:n,template:i,onClick:u,inset:r}),f.jsx(E.Dialog,{open:s,onClose:u,maxWidth:"xs",children:f.jsx(ne.CreateContextProvider,{value:{save:p},children:e.children})})]})}const kp=O.createContext(void 0);function rw(){return O.useContext(kp)}const ow=B.forwardRef((e,t)=>{const{children:n,disabled:r,disableRemove:o=!1,index:i,member:s,resource:l,record:d}=e,u=z.useTranslate(),{total:p,remove:g}=rw(),h=B.useCallback(()=>{g(i)},[i,g]),m=O.useMemo(()=>({index:i,total:p,item:d,remove:()=>g(i)}),[i,p,g,d]),v=O.useMemo(()=>O.Children.map(n,b=>O.isValidElement(b)&&(b==null?void 0:b.type)===Bu&&B.isValidElement(b)?b:null),[n]);return f.jsxs(Rp.Provider,{value:m,children:[O.Children.map(n,(b,x)=>{if(b.type===Bu||!O.isValidElement(b))return null;const{source:S,...I}=b.props;return f.jsx(E.TableCell,{children:O.cloneElement(b,{source:S?`${s}.${S}`:s,index:S?void 0:x,resource:l,disabled:r,...I,label:""})})}),!o&&f.jsx(E.TableCell,{children:f.jsx(E.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsxs(ui,{horizontal:!0,children:[f.jsx(is,{onConfirm:h,confirmContent:u("ra.message.remove_item")}),v]})})}),o&&v?f.jsx(E.TableCell,{children:f.jsx(E.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsx(ui,{horizontal:!0,children:v})})}):null]})});function uae(e){var Y,V;const{children:t,resource:n,source:r,label:o,disableAdd:i=!1,disableRemove:s=!1,enableClearAll:l=!1,className:d,empty:u,template:p={},addButton:g=f.jsx(jp,{}),inset:h,sx:m}=e,{fields:v,remove:b,replace:x,append:S}=z.useArrayInput(e),{resetField:I}=fn.useFormContext(),w=wt(),T=ne.useTranslate(),P=O.useRef(p||{}),M=ne.useTranslateLabel(),j=O.useCallback(Z=>{b(Z)},[b]);if(v.length>0){const{...Z}=v[0];P.current=Z;for(const W in P.current)P.current[W]=null}const D=O.useCallback((Z=void 0)=>{let W=Z;Z==null&&(W=P.current,O.Children.count(t)===1&&B.isValidElement(O.Children.only(t))&&!O.Children.only(t).props.source&&O.Children.map(t,K=>B.isValidElement(K)&&K.type!==ne.FormDataConsumer).some(Boolean)?W="":(W=W||{},O.Children.forEach(t,K=>{B.isValidElement(K)&&K.type!==ne.FormDataConsumer&&K.props.source&&(W[K.props.source]=K.props.defaultValue??null)})));const se={...W,...p};S(se),I(`${r}.${v.length}`,{defaultValue:W})},[S,t,I,r,v.length,p]);function N(Z){return W=>{D(),Z&&Z(W)}}const k=O.useCallback(()=>{x([])},[x]),_=O.useMemo(()=>({total:v.length,remove:j,source:r}),[v.length,j,r]),U=w.palette.mode==="dark"?w.palette.grey.A400:w.palette.grey.A800,H=v.length>0&&l,G=h===!0?{borderRadius:0,borderBottom:`1px solid ${w.palette.divider}`}:{mt:2,border:`1px solid ${U}`,boxShadow:w.customShadows.z0};return v?f.jsx(kp.Provider,{value:_,children:f.jsxs("div",{className:d,children:[B.cloneElement(g,{label:o,source:r,disableAdd:i,template:p,onClick:(g==null?void 0:g.type)!==Mp?N((V=(Y=e==null?void 0:e.addButton)==null?void 0:Y.props)==null?void 0:V.onClick):void 0,inset:h}),f.jsx(E.TableContainer,{component:E.Paper,sx:{...G,boxShadow:w.customShadows.z0,...m},children:f.jsxs(E.Table,{size:"small",children:[f.jsx(E.TableHead,{sx:h===!0?{}:{borderTop:0,borderBottom:`1px solid ${U}`},children:f.jsxs(E.TableRow,{children:[O.Children.map(t,(Z,W)=>{if(Z.type===Bu||!B.isValidElement(Z))return null;const se=f.jsx(E.Typography,{display:"flex",variant:"subtitle1",color:"text.primary",textTransform:"none",children:M({...Z.props,resource:n})});return f.jsx(E.TableCell,{children:Z.props.title?f.jsx(b3,{title:Z.props.title,arrow:!0,children:se}):se},W)}),!s&&H?f.jsx(E.TableCell,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(ui,{horizontal:!0,children:f.jsx(is,{onConfirm:k,confirmContent:T("ra.message.clear_array_input")})})},"actions"):f.jsx(E.TableCell,{},"empty_actions")]})}),f.jsxs(E.TableBody,{children:[v.length===0&&f.jsx(E.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:f.jsx(E.TableCell,{colSpan:4+(s?0:1),align:"center",children:u||f.jsx(E.Typography,{variant:"body1",color:"text.secondary",children:"-"})})}),v.length>0&&v.map((Z,W)=>f.jsx(E.TableRow,{sx:{borderBottom:0},children:f.jsx(ow,{disableRemove:s,index:W,member:`${r}.${W}`,onRemoveField:j,record:v&&v[W]||{},resource:n,source:r,children:t})},Z.id))]})]})})]})}):null}const dae=ge(uae,{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}}})),D3=dae;D3.CreateButton=Mp;D3.EditButton=Bu;D3.Field=nw;const iw=O.createContext(void 0);function F3(){const e=O.useContext(iw);if(!e)throw new Error("useWizardFormContext must be used within a WizardFormProvider");return e}function fae({value:e,children:t}){return f.jsx(iw.Provider,{value:e,children:t})}function pae({cancelButton:e,...t}){const{hasNextStep:n,hasPreviousStep:r,goToNextStep:o,goToPreviousStep:i}=F3(),s=ne.useTranslate(),{handleSubmit:l}=fn.useFormContext(),d=O.useCallback(()=>{o()},[o]);return f.jsxs(gi,{...t,children:[f.jsx(E.Box,{sx:{"& .MuiButtonBase-root":{ml:0}},children:e?O.cloneElement(e):null}),f.jsx(E.Box,{sx:{flex:"1 1 auto"}}),r()&&f.jsx(E.Button,{variant:"text",color:"primary",onClick:i,children:s("ra.action.back")}),n()?f.jsx(E.Button,{variant:"contained",color:"primary",onClick:l(d),children:s("ra.action.next")}):f.jsx(z.SaveButton,{})]})}const hae=E.styled(E.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}})),gae=E.styled(E.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 mae({completed:e,active:t,error:n,icon:r,className:o}){return f.jsx(gae,{ownerState:{completed:e,active:t,error:n},className:o,children:n?"!":r})}function vae({isHorizontal:e,setCurrentStep:t,stepFields:n}){const{currentStep:r,steps:o}=F3(),{errors:i}=fn.useFormState();function s(l){l<=r&&t(l)}return f.jsx(hae,{activeStep:r,orientation:e?"horizontal":"vertical",isHorizontal:e,sx:{p:3,mt:1},children:o.map((l,d)=>{const u=n[d].some(h=>J.get(i,h)),{label:p,icon:g}=l.props;return f.jsx(E.Step,{children:f.jsx(E.StepLabel,{StepIconComponent:mae,error:u,icon:g,onClick:()=>s(d),style:{cursor:d<=r?"pointer":"default"},children:e?null:p})},d)})})}function yae({title:e,subheader:t,secondary:n,toolbar:r,progress:o,isSmall:i,modal:s,sx:l,setCurrentStep:d}){const{currentStep:u,steps:p}=F3(),g=z.useTranslate(),h=E.useTheme(),m=i||s,v=O.useMemo(()=>r?O.Children.toArray(r.props.children).find(x=>{var S;return O.isValidElement(x)&&x.type===E.Button&&((S=x.props)==null?void 0:S.children)===g("ra.action.cancel")}):null,[r,g]),b=p.map(x=>{const S=[],{sources:I}=x.props;return I!==void 0?S.push(...I):R3(x,w=>{var T;((T=w==null?void 0:w.props)==null?void 0:T.source)!==void 0&&S.push(w.props.source)}),S});return f.jsxs(E.Grid,{container:!0,spacing:2,sx:l,children:[f.jsx(E.Grid,{item:!0,xl:s?12:2,lg:s?12:3,md:s?12:3,sm:s?12:4,xs:12,children:o||f.jsx(vae,{isHorizontal:m,setCurrentStep:d,stepFields:b})}),s?f.jsx(E.Divider,{sx:{width:"100%"}}):null,f.jsx(E.Grid,{item:!0,xl:s?12:10,lg:s?12:9,md:s?12:9,sm:s?12:8,xs:12,sx:{paddingTop:s?"0 !important":null},children:f.jsxs(Nn,{title:e||p[u].props.label,subheader:t,secondary:n,border:!s,divider:!0,children:[f.jsx(E.Box,{children:p[u]}),f.jsx(E.Box,{sx:{"& .MuiToolbar-root":{paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:h.spacing(2)}},children:r&&!v?r:f.jsx(pae,{cancelButton:v})})]})})]})}const bae=E.styled(z.Form,{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({[e.breakpoints.down("sm")]:t?{}:{paddingBottom:`${e.spacing(2.5)}`}}));function sw({children:e,toolbar:t,progress:n,title:r,subheader:o=null,secondary:i=null,sx:s,modal:l=!1,...d}){const[u,p]=O.useState(0),g=O.Children.toArray(e),h=E.useMediaQuery(I=>I.breakpoints.down("sm"));function m(){return u<g.length-1}function v(){return u>0}function b(){p(I=>Math.min(I+1,g.length-1))}function x(){p(I=>Math.max(I-1,0))}const S={currentStep:u,steps:g,hasNextStep:m,hasPreviousStep:v,goToNextStep:b,goToPreviousStep:x};return f.jsx(fae,{value:S,children:f.jsx(bae,{...d,modal:l,children:f.jsx(yae,{title:r,subheader:o,secondary:i,modal:l,sx:s,toolbar:t,progress:n,isSmall:h,setCurrentStep:p})})})}function Cae({children:e}){return f.jsx(f.Fragment,{children:e})}sw.Step=Cae;function xae(e,t){const n=J.clone(e),{type:r,payload:o}=t;switch(r){case"updateMedia":{const i=J.chain(n.media).clone().extend(o).value();return J.extend(n,{media:i})}case"updateDrawer":{const i=J.chain(n.drawer).clone().extend(o).value();return J.extend(n,{drawer:i})}case"updateLogo":{const i=J.chain(n.logo).clone().extend(o).value();return J.extend(n,{logo:i})}case"updateNotifications":{const i=J.chain(n.notifications).clone().extend(o).value();return J.extend(n,{notifications:i})}case"updateTheme":{const i=J.chain(n.theme).clone().extend(o).value();return J.extend(n,{theme:i})}default:return n}}const wae={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"}},aw=O.createContext(void 0);function lw(e){var k;const t=ne.useAuthProvider(),n=ne.useGetIdentity(),r=E.useTheme(),o=E.useMediaQuery(r.breakpoints.down("md")),i=E.useMediaQuery(r.breakpoints.down("lg")),s=E.useMediaQuery(r.breakpoints.down("xl")),{miniDrawer:l,isHorizontalLayout:d,themeDirection:u,drawerWidth:p}=hp(),g=d(u)&&!i,{drawerOpen:h,openDrawer:m}=I3(),v=O.useCallback(()=>{m(!h)},[h,m]),[b,x]=O.useState(!1),[S,I]=O.useReducer(xae,J.chain(wae).clone().merge({drawer:{open:!l||h}}).value()),w=O.useCallback(()=>x(!1),[]),T=O.useMemo(()=>({state:S,dispatch:I}),[S,I]),{logoIcon:P,logoMain:M,enableNotification:j,notification:D}=e,N=z.useLoading();return O.useEffect(()=>{I({type:"updateMedia",payload:{downMd:o,downLg:i,downXl:s,horizontal:g}})},[o,i,s,g]),O.useEffect(()=>{I({type:"updateDrawer",payload:{open:h,width:p,handleDrawerToggle:v}})},[h,p,v]),O.useEffect(()=>{l||m(!s)},[s,l]),O.useEffect(()=>{I({type:"updateLogo",payload:{main:M,icon:P}})},[P,M]),O.useEffect(()=>{I({type:"updateNotifications",payload:{enable:j,resource:D??"entities/notification"}})},[j,D]),O.useEffect(()=>{I({type:"updateTheme",payload:{iconColorOpen:r.palette.mode==="dark"?"grey.200":"grey.300",iconColor:r.palette.mode==="dark"?"background.default":"grey.100"}})},[r.palette.mode]),O.useEffect(()=>{if(!N){if(!t.isImpersonating){console.warn("authProvider does not contain a method called isImpersonating",t);return}t==null||t.isImpersonating().then(_=>{var U;x(!_&&((U=n==null?void 0:n.data)==null?void 0:U.needToChangePassword)===!0)})}},[(k=n==null?void 0:n.data)==null?void 0:k.needToChangePassword,t,N]),f.jsxs(aw.Provider,{value:T,children:[f.jsx(E.Dialog,{open:b,maxWidth:"xs",fullWidth:!0,children:f.jsx(Ep,{onSuccess:w,firstAccess:!0})}),e.children]})}function cw(e){return O.forwardRef((t,n)=>{const{logoIcon:r,logoMain:o,enableNotification:i,notification:s}=t;return f.jsx(lw,{logoIcon:r,logoMain:o,enableNotification:i,notification:s,children:f.jsx(e,{ref:n,...t})})})}function _p(){const e=O.useContext(aw);if(e===void 0)throw new Error("[Layout] useLayoutContext: context undefined. Please provide a valid LayoutContext using LayoutProvider");return e}function Sae(){return _p().dispatch}function Pa(){return _p().state}function ir(){return Pa().media}function as(){return Pa().drawer}function uw(){return Pa().logo}function L3(){return Pa().notifications}function Aae(){return Pa().theme}function dw(e){const{width:t}=as(),{horizontal:n}=ir(),{container:r}=jn(),[o,i]=O.useState(null);function s(d,u){i(u)}const l=wt();return f.jsx(pJ,{onError:s,fallbackRender:({error:d,resetErrorBoundary:u})=>f.jsx(ep,{error:d,errorComponent:e.error,errorInfo:o,resetErrorBoundary:u}),children:f.jsx(O.Suspense,{fallback:f.jsx(Gb,{}),children:f.jsxs(E.Box,{component:"main",sx:{width:`calc(100% - ${t}px)`,flexGrow:1,p:{xs:0,sm:2,lg:1},pt:{lg:2}},children:[f.jsx(E.Toolbar,{sx:{mt:n?8:"inherit"}})," ",f.jsx(E.Container,{maxWidth:r?"xl":!1,sx:{...r&&{px:{xs:0,sm:2}},position:"relative",minHeight:"calc(100vh - 110px)",display:"flex",flexDirection:"column",[l.breakpoints.down("sm")]:{px:"12px"}},children:e.children})]})})})}const fw=ge(E.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 pw({isIcon:e,sx:t,to:n,logoIcon:r,logoMain:o}){const{appDefaultPath:i}=jn();return f.jsx(E.ButtonBase,{disableRipple:!0,component:ut.Link,to:n||i,sx:t,children:e?r:o})}function hw(e){const t=E.useTheme(),{horizontal:n}=ir(),{open:r}=as(),{icon:o,main:i}=uw(),s=$r(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(fw,{theme:t,open:r,sx:s,children:f.jsx(pw,{to:"/",isIcon:!r,sx:{width:r?"auto":35,height:35},logoMain:i,logoIcon:o})})}function Zm(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 Xm(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 Eae=ge(E.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=jn();return{width:n,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...Zm(e,n),"& .MuiDrawer-paper":Zm(e,n)},...!t&&{...Xm(e),"& .MuiDrawer-paper":Xm(e)}}});var Ae={},U0={exports:{}};(function(e,t){(function(n,r){var o="1.0.39",i="",s="?",l="function",d="undefined",u="object",p="string",g="major",h="model",m="name",v="type",b="vendor",x="version",S="architecture",I="console",w="mobile",T="tablet",P="smarttv",M="wearable",j="embedded",D=500,N="Amazon",k="Apple",_="ASUS",U="BlackBerry",H="Browser",G="Chrome",Y="Edge",V="Firefox",Z="Google",W="Huawei",se="LG",K="Microsoft",$="Motorola",te="Opera",oe="Samsung",Q="Sharp",de="Sony",pe="Xiaomi",ye="Zebra",ce="Facebook",be="Chromium OS",Ce="Mac OS",Ee=" Browser",me=function(Pe,je){var Ie={};for(var xe in Pe)je[xe]&&je[xe].length%2===0?Ie[xe]=je[xe].concat(Pe[xe]):Ie[xe]=Pe[xe];return Ie},Re=function(Pe){for(var je={},Ie=0;Ie<Pe.length;Ie++)je[Pe[Ie].toUpperCase()]=Pe[Ie];return je},ve=function(Pe,je){return typeof Pe===p?qe(je).indexOf(qe(Pe))!==-1:!1},qe=function(Pe){return Pe.toLowerCase()},Ft=function(Pe){return typeof Pe===p?Pe.replace(/[^\d\.]/g,i).split(".")[0]:r},bt=function(Pe,je){if(typeof Pe===p)return Pe=Pe.replace(/^\s\s*/,i),typeof je===d?Pe:Pe.substring(0,D)},st=function(Pe,je){for(var Ie=0,xe,vt,Ct,De,Oe,Yt;Ie<je.length&&!Oe;){var Sn=je[Ie],Hn=je[Ie+1];for(xe=vt=0;xe<Sn.length&&!Oe&&Sn[xe];)if(Oe=Sn[xe++].exec(Pe),Oe)for(Ct=0;Ct<Hn.length;Ct++)Yt=Oe[++vt],De=Hn[Ct],typeof De===u&&De.length>0?De.length===2?typeof De[1]==l?this[De[0]]=De[1].call(this,Yt):this[De[0]]=De[1]:De.length===3?typeof De[1]===l&&!(De[1].exec&&De[1].test)?this[De[0]]=Yt?De[1].call(this,Yt,De[2]):r:this[De[0]]=Yt?Yt.replace(De[1],De[2]):r:De.length===4&&(this[De[0]]=Yt?De[3].call(this,Yt.replace(De[1],De[2])):r):this[De]=Yt||r;Ie+=2}},sn=function(Pe,je){for(var Ie in je)if(typeof je[Ie]===u&&je[Ie].length>0){for(var xe=0;xe<je[Ie].length;xe++)if(ve(je[Ie][xe],Pe))return Ie===s?r:Ie}else if(ve(je[Ie],Pe))return Ie===s?r:Ie;return je.hasOwnProperty("*")?je["*"]:Pe},mt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ke={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"},kt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,x],[/opios[\/ ]+([\w\.]+)/i],[x,[m,te+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[x,[m,te+" GX"]],[/\bopr\/([\w\.]+)/i],[x,[m,te]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[x,[m,"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],[m,x],[/quark(?:pc)?\/([-\w\.]+)/i],[x,[m,"Quark"]],[/\bddg\/([\w\.]+)/i],[x,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[m,"UC"+H]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[x,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[x,[m,"Smart Lenovo "+H]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+H],x],[/\bfocus\/([\w\.]+)/i],[x,[m,V+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[m,te+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[m,te+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[m,"MIUI "+H]],[/fxios\/([-\w\.]+)/i],[x,[m,V]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360"+Ee]],[/\b(qq)\/([\w\.]+)/i],[[m,/(.+)/,"$1Browser"],x],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1"+Ee],x],[/samsungbrowser\/([\w\.]+)/i],[x,[m,oe+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],x],[/metasr[\/ ]?([\d\.]+)/i],[x,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,x],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,ce],x],[/(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],[m,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[x,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[m,G+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,G+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[m,"Android "+H]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[x,sn,mt]],[/(webkit|khtml)\/([\w\.]+)/i],[m,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],x],[/(wolvic)\/([\w\.]+)/i],[m,x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[m,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],[m,[x,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[m,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[S,"amd64"]],[/(ia32(?=;))/i],[[S,qe]],[/((?:i[346]|x)86)[;\)]/i],[[S,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/windows (ce|mobile); ppc;/i],[[S,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[S,/ower/,i,qe]],[/(sun4\w)[;\)]/i],[[S,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[S,qe]]],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],[h,[b,oe],[v,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[h,[b,oe],[v,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[b,k],[v,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[b,k],[v,T]],[/(macintosh);/i],[h,[b,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[b,Q],[v,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[b,W],[v,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[b,W],[v,w]],[/\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],[[h,/_/g," "],[b,pe],[v,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[b,pe],[v,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[b,"OPPO"],[v,w]],[/\b(opd2\d{3}a?) bui/i],[h,[b,"OPPO"],[v,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[b,"Vivo"],[v,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[b,"Realme"],[v,w]],[/\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],[h,[b,$],[v,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[b,$],[v,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[b,se],[v,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[b,se],[v,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[b,"Lenovo"],[v,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[b,"Nokia"],[v,w]],[/(pixel c)\b/i],[h,[b,Z],[v,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[b,Z],[v,w]],[/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],[h,[b,de],[v,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[b,de],[v,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[b,"OnePlus"],[v,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[b,N],[v,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[b,N],[v,w]],[/(playbook);[-\w\),; ]+(rim)/i],[h,b,[v,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[b,U],[v,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[b,_],[v,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[b,_],[v,w]],[/(nexus 9)/i],[h,[b,"HTC"],[v,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[h,/_/g," "],[v,w]],[/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],[h,[b,"TCL"],[v,T]],[/(itel) ((\w+))/i],[[b,qe],h,[v,sn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[b,"Acer"],[v,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[b,"Meizu"],[v,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[b,"Ulefone"],[v,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[h,[b,"Nothing"],[v,w]],[/(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],[b,h,[v,w]],[/(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],[b,h,[v,T]],[/(surface duo)/i],[h,[b,K],[v,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[b,"Fairphone"],[v,w]],[/(u304aa)/i],[h,[b,"AT&T"],[v,w]],[/\bsie-(\w*)/i],[h,[b,"Siemens"],[v,w]],[/\b(rct\w+) b/i],[h,[b,"RCA"],[v,T]],[/\b(venue[\d ]{2,7}) b/i],[h,[b,"Dell"],[v,T]],[/\b(q(?:mv|ta)\w+) b/i],[h,[b,"Verizon"],[v,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[b,"Barnes & Noble"],[v,T]],[/\b(tm\d{3}\w+) b/i],[h,[b,"NuVision"],[v,T]],[/\b(k88) b/i],[h,[b,"ZTE"],[v,T]],[/\b(nx\d{3}j) b/i],[h,[b,"ZTE"],[v,w]],[/\b(gen\d{3}) b.+49h/i],[h,[b,"Swiss"],[v,w]],[/\b(zur\d{3}) b/i],[h,[b,"Swiss"],[v,T]],[/\b((zeki)?tb.*\b) b/i],[h,[b,"Zeki"],[v,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],h,[v,T]],[/\b(ns-?\w{0,9}) b/i],[h,[b,"Insignia"],[v,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[b,"NextBook"],[v,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],h,[v,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],h,[v,w]],[/\b(ph-1) /i],[h,[b,"Essential"],[v,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[b,"Envizen"],[v,T]],[/\b(trio[-\w\. ]+) b/i],[h,[b,"MachSpeed"],[v,T]],[/\btu_(1491) b/i],[h,[b,"Rotor"],[v,T]],[/(shield[\w ]+) b/i],[h,[b,"Nvidia"],[v,T]],[/(sprint) (\w+)/i],[b,h,[v,w]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[b,K],[v,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[b,ye],[v,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[b,ye],[v,w]],[/smart-tv.+(samsung)/i],[b,[v,P]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[b,oe],[v,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,se],[v,P]],[/(apple) ?tv/i],[b,[h,k+" TV"],[v,P]],[/crkey/i],[[h,G+"cast"],[b,Z],[v,P]],[/droid.+aft(\w+)( bui|\))/i],[h,[b,N],[v,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[b,Q],[v,P]],[/(bravia[\w ]+)( bui|\))/i],[h,[b,de],[v,P]],[/(mitv-\w{5}) bui/i],[h,[b,pe],[v,P]],[/Hbbtv.*(technisat) (.*);/i],[b,h,[v,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,bt],[h,bt],[v,P]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,h,[v,I]],[/droid.+; (shield) bui/i],[h,[b,"Nvidia"],[v,I]],[/(playstation [345portablevi]+)/i],[h,[b,de],[v,I]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[b,K],[v,I]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[h,[b,oe],[v,M]],[/((pebble))app/i],[b,h,[v,M]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[b,k],[v,M]],[/droid.+; (glass) \d/i],[h,[b,Z],[v,M]],[/droid.+; (wt63?0{2,3})\)/i],[h,[b,ye],[v,M]],[/(quest( \d| pro)?)/i],[h,[b,ce],[v,M]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[v,j]],[/(aeobc)\b/i],[h,[b,N],[v,j]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[v,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[v,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,w]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[m,Y+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[m,"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],[m,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,x],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[x,sn,Ke]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[x,sn,Ke],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,Ce],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,x],[/\(bb(10);/i],[x,[m,U]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[m,V+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[x,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[x,[m,G+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,be],x],[/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],[m,x],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,x]]},tt=function(Pe,je){if(typeof Pe===u&&(je=Pe,Pe=r),!(this instanceof tt))return new tt(Pe,je).getResult();var Ie=typeof n!==d&&n.navigator?n.navigator:r,xe=Pe||(Ie&&Ie.userAgent?Ie.userAgent:i),vt=Ie&&Ie.userAgentData?Ie.userAgentData:r,Ct=je?me(kt,je):kt,De=Ie&&Ie.userAgent==xe;return this.getBrowser=function(){var Oe={};return Oe[m]=r,Oe[x]=r,st.call(Oe,xe,Ct.browser),Oe[g]=Ft(Oe[x]),De&&Ie&&Ie.brave&&typeof Ie.brave.isBrave==l&&(Oe[m]="Brave"),Oe},this.getCPU=function(){var Oe={};return Oe[S]=r,st.call(Oe,xe,Ct.cpu),Oe},this.getDevice=function(){var Oe={};return Oe[b]=r,Oe[h]=r,Oe[v]=r,st.call(Oe,xe,Ct.device),De&&!Oe[v]&&vt&&vt.mobile&&(Oe[v]=w),De&&Oe[h]=="Macintosh"&&Ie&&typeof Ie.standalone!==d&&Ie.maxTouchPoints&&Ie.maxTouchPoints>2&&(Oe[h]="iPad",Oe[v]=T),Oe},this.getEngine=function(){var Oe={};return Oe[m]=r,Oe[x]=r,st.call(Oe,xe,Ct.engine),Oe},this.getOS=function(){var Oe={};return Oe[m]=r,Oe[x]=r,st.call(Oe,xe,Ct.os),De&&!Oe[m]&&vt&&vt.platform&&vt.platform!="Unknown"&&(Oe[m]=vt.platform.replace(/chrome os/i,be).replace(/macos/i,Ce)),Oe},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 xe},this.setUA=function(Oe){return xe=typeof Oe===p&&Oe.length>D?bt(Oe,D):Oe,this},this.setUA(xe),this};tt.VERSION=o,tt.BROWSER=Re([m,x,g]),tt.CPU=Re([S]),tt.DEVICE=Re([h,b,v,I,w,P,T,M,j]),tt.ENGINE=tt.OS=Re([m,x]),e.exports&&(t=e.exports=tt),t.UAParser=tt;var ot=typeof n!==d&&(n.jQuery||n.Zepto);if(ot&&!ot.ua){var St=new tt;ot.ua=St.getResult(),ot.ua.get=function(){return St.getUA()},ot.ua.set=function(Pe){St.setUA(Pe);var je=St.getResult();for(var Ie in je)ot.ua[Ie]=je[Ie]}}})(typeof window=="object"?window:Pn)})(U0,U0.exports);var Tae=U0.exports;Object.defineProperty(Ae,"__esModule",{value:!0});function Iae(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var xn=O,Et=Iae(xn),gw=Tae,mi=new gw,wn=mi.getBrowser(),Oae=mi.getCPU(),sr=mi.getDevice(),Dp=mi.getEngine(),vi=mi.getOS(),h1=mi.getUA(),mw=function(t){return mi.setUA(t)},g1=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new gw(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)}}},vw=Object.freeze({ClientUAInstance:mi,browser:wn,cpu:Oae,device:sr,engine:Dp,os:vi,ua:h1,setUa:mw,parseUserAgent:g1});function Qm(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 Pae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(n),!0).forEach(function(r){kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Il(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Il=function(t){return typeof t}:Il=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rae(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 Mae(e,t,n){return t&&Rae(e.prototype,t),e}function kae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(){return H0=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},H0.apply(this,arguments)}function _ae(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&&q0(e,t)}function G0(e){return G0=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},G0(e)}function q0(e,t){return q0=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},q0(e,t)}function Dae(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 jr(e,t){if(e==null)return{};var n=Dae(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 Yc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fae(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 Yc(e)}function Lae(e,t){return Bae(e)||Nae(e,t)||$ae(e,t)||Vae()}function Bae(e){if(Array.isArray(e))return e}function Nae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(d){i=!0,l=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function $ae(e,t){if(e){if(typeof e=="string")return Jm(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 Jm(e,t)}}function Jm(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 Vae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
625
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Cn={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Un={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"},ja={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},zae={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Wae=function(t){switch(t){case Cn.Mobile:return{isMobile:!0};case Cn.Tablet:return{isTablet:!0};case Cn.SmartTv:return{isSmartTV:!0};case Cn.Console:return{isConsole:!0};case Cn.Wearable:return{isWearable:!0};case Cn.Browser:return{isBrowser:!0};case Cn.Embedded:return{isEmbedded:!0};default:return zae}},Uae=function(t){return mw(t)},Le=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},Fp=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},Lp=function(t){var n=Fp();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},Hae=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:Le(n.major),browserFullVersion:Le(n.version),browserName:Le(n.name),engineName:Le(r.name),engineVersion:Le(r.version),osName:Le(o.name),osVersion:Le(o.version),userAgent:Le(i)}},e9=function(t,n,r,o){return Pae({},t,{vendor:Le(n.vendor),model:Le(n.model),os:Le(r.name),osVersion:Le(r.version),ua:Le(o)})},Gae=function(t,n,r,o){return{isSmartTV:t,engineName:Le(n.name),engineVersion:Le(n.version),osName:Le(r.name),osVersion:Le(r.version),userAgent:Le(o)}},qae=function(t,n,r,o){return{isConsole:t,engineName:Le(n.name),engineVersion:Le(n.version),osName:Le(r.name),osVersion:Le(r.version),userAgent:Le(o)}},Yae=function(t,n,r,o){return{isWearable:t,engineName:Le(n.name),engineVersion:Le(n.version),osName:Le(r.name),osVersion:Le(r.version),userAgent:Le(o)}},Kae=function(t,n,r,o,i){return{isEmbedded:t,vendor:Le(n.vendor),model:Le(n.model),engineName:Le(r.name),engineVersion:Le(r.version),osName:Le(o.name),osVersion:Le(o.version),userAgent:Le(i)}};function Zae(e){var t=e?g1(e):vw,n=t.device,r=t.browser,o=t.engine,i=t.os,s=t.ua,l=Wae(n.type),d=l.isBrowser,u=l.isMobile,p=l.isTablet,g=l.isSmartTV,h=l.isConsole,m=l.isWearable,v=l.isEmbedded;if(d)return Hae(d,r,o,i,s);if(g)return Gae(g,o,i,s);if(h)return qae(h,o,i,s);if(u||p)return e9(l,n,i,s);if(m)return Yae(m,o,i,s);if(v)return Kae(v,n,o,i,s)}var yw=function(t){var n=t.type;return n===Cn.Mobile},bw=function(t){var n=t.type;return n===Cn.Tablet},Cw=function(t){var n=t.type;return n===Cn.Mobile||n===Cn.Tablet},xw=function(t){var n=t.type;return n===Cn.SmartTv},Nu=function(t){var n=t.type;return n===Cn.Browser},ww=function(t){var n=t.type;return n===Cn.Wearable},Sw=function(t){var n=t.type;return n===Cn.Console},Aw=function(t){var n=t.type;return n===Cn.Embedded},Ew=function(t){var n=t.vendor;return Le(n)},Tw=function(t){var n=t.model;return Le(n)},Iw=function(t){var n=t.type;return Le(n,"browser")},Ow=function(t){var n=t.name;return n===ja.Android},Pw=function(t){var n=t.name;return n===ja.Windows},jw=function(t){var n=t.name;return n===ja.MAC_OS},Rw=function(t){var n=t.name;return n===ja.WindowsPhone},Mw=function(t){var n=t.name;return n===ja.IOS},kw=function(t){var n=t.version;return Le(n)},_w=function(t){var n=t.name;return Le(n)},Dw=function(t){var n=t.name;return n===Un.Chrome},Fw=function(t){var n=t.name;return n===Un.Firefox},Lw=function(t){var n=t.name;return n===Un.Chromium},$u=function(t){var n=t.name;return n===Un.Edge},Bw=function(t){var n=t.name;return n===Un.Yandex},Nw=function(t){var n=t.name;return n===Un.Safari||n===Un.MobileSafari},$w=function(t){var n=t.name;return n===Un.MobileSafari},Vw=function(t){var n=t.name;return n===Un.Opera},zw=function(t){var n=t.name;return n===Un.InternetExplorer||n===Un.Ie},Ww=function(t){var n=t.name;return n===Un.MIUI},Uw=function(t){var n=t.name;return n===Un.SamsungBrowser},Hw=function(t){var n=t.version;return Le(n)},Gw=function(t){var n=t.major;return Le(n)},qw=function(t){var n=t.name;return Le(n)},Yw=function(t){var n=t.name;return Le(n)},Kw=function(t){var n=t.version;return Le(n)},Zw=function(){var t=Fp(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},na=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},Xw=function(){var t=Fp();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Zr=function(){return Lp("iPad")},Qw=function(){return Lp("iPhone")},Jw=function(){return Lp("iPod")},eS=function(t){return Le(t)};function tS(e){var t=e||vw,n=t.device,r=t.browser,o=t.os,i=t.engine,s=t.ua;return{isSmartTV:xw(n),isConsole:Sw(n),isWearable:ww(n),isEmbedded:Aw(n),isMobileSafari:$w(r)||Zr(),isChromium:Lw(r),isMobile:Cw(n)||Zr(),isMobileOnly:yw(n),isTablet:bw(n)||Zr(),isBrowser:Nu(n),isDesktop:Nu(n),isAndroid:Ow(o),isWinPhone:Rw(o),isIOS:Mw(o)||Zr(),isChrome:Dw(r),isFirefox:Fw(r),isSafari:Nw(r),isOpera:Vw(r),isIE:zw(r),osVersion:kw(o),osName:_w(o),fullBrowserVersion:Hw(r),browserVersion:Gw(r),browserName:qw(r),mobileVendor:Ew(n),mobileModel:Tw(n),engineName:Yw(i),engineVersion:Kw(i),getUA:eS(s),isEdge:$u(r)||na(s),isYandex:Bw(r),deviceType:Iw(n),isIOS13:Xw(),isIPad13:Zr(),isIPhone13:Qw(),isIPod13:Jw(),isElectron:Zw(),isEdgeChromium:na(s),isLegacyEdge:$u(r)&&!na(s),isWindows:Pw(o),isMacOs:jw(o),isMIUI:Ww(r),isSamsungBrowser:Uw(r)}}var nS=xw(sr),rS=Sw(sr),oS=ww(sr),Xae=Aw(sr),Qae=$w(wn)||Zr(),Jae=Lw(wn),B3=Cw(sr)||Zr(),iS=yw(sr),sS=bw(sr)||Zr(),aS=Nu(sr),ele=Nu(sr),lS=Ow(vi),cS=Rw(vi),uS=Mw(vi)||Zr(),tle=Dw(wn),nle=Fw(wn),rle=Nw(wn),ole=Vw(wn),dS=zw(wn),ile=kw(vi),sle=_w(vi),ale=Hw(wn),lle=Gw(wn),cle=qw(wn),ule=Ew(sr),dle=Tw(sr),fle=Yw(Dp),ple=Kw(Dp),hle=eS(h1),gle=$u(wn)||na(h1),mle=Bw(wn),vle=Iw(sr),yle=Xw(),ble=Zr(),Cle=Qw(),xle=Jw(),wle=Zw(),Sle=na(h1),Ale=$u(wn)&&!na(h1),Ele=Pw(vi),Tle=jw(vi),Ile=Ww(wn),Ole=Uw(wn),Ple=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=g1(t),r=n.device,o=n.browser,i=n.os,s=n.engine,l=n.ua;return tS({device:r,browser:o,os:i,engine:s,ua:l})},jle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return lS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Rle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return aS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Mle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return dS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},kle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return uS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},_le=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return B3?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Dle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return sS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Fle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return cS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Lle=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=jr(t,["renderWithFragment","children","viewClassName","style"]);return iS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Ble=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return nS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Nle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return rS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},$le=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return oS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Vle=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=jr(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",i,r):null};function zle(e){return function(t){_ae(n,t);function n(r){var o;return jae(this,n),o=Fae(this,G0(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(Yc(o)),o.onOrientationChange=o.onOrientationChange.bind(Yc(o)),o.onPageLoad=o.onPageLoad.bind(Yc(o)),o.state={isLandscape:!1,isPortrait:!1},o}return Mae(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":Il(window))!==void 0&&B3&&(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 Et.createElement(e,H0({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(Et.Component)}function Wle(){var e=xn.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=Lae(e,2),n=t[0],r=t[1],o=xn.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,s={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==s.orientation&&r(s)},[n.orientation]);return xn.useEffect(function(){return(typeof window>"u"?"undefined":Il(window))!==void 0&&B3&&(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 fS(e){var t=e||window.navigator.userAgent;return g1(t)}function Ule(e){var t=e||window.navigator.userAgent,n=fS(t),r=tS(n);return[r,n]}Ae.AndroidView=jle;Ae.BrowserTypes=Un;var Hle=Ae.BrowserView=Rle;Ae.ConsoleView=Nle;Ae.CustomView=Vle;Ae.IEView=Mle;Ae.IOSView=kle;Ae.MobileOnlyView=Lle;var Gle=Ae.MobileView=_le;Ae.OsTypes=ja;Ae.SmartTVView=Ble;Ae.TabletView=Dle;Ae.WearableView=$le;Ae.WinPhoneView=Fle;Ae.browserName=cle;Ae.browserVersion=lle;Ae.deviceDetect=Zae;Ae.deviceType=vle;Ae.engineName=fle;Ae.engineVersion=ple;Ae.fullBrowserVersion=ale;Ae.getSelectorsByUserAgent=Ple;Ae.getUA=hle;Ae.isAndroid=lS;Ae.isBrowser=aS;Ae.isChrome=tle;Ae.isChromium=Jae;Ae.isConsole=rS;Ae.isDesktop=ele;Ae.isEdge=gle;Ae.isEdgeChromium=Sle;Ae.isElectron=wle;Ae.isEmbedded=Xae;Ae.isFirefox=nle;Ae.isIE=dS;Ae.isIOS=uS;Ae.isIOS13=yle;Ae.isIPad13=ble;Ae.isIPhone13=Cle;Ae.isIPod13=xle;Ae.isLegacyEdge=Ale;Ae.isMIUI=Ile;Ae.isMacOs=Tle;Ae.isMobile=B3;Ae.isMobileOnly=iS;Ae.isMobileSafari=Qae;Ae.isOpera=ole;Ae.isSafari=rle;Ae.isSamsungBrowser=Ole;Ae.isSmartTV=nS;Ae.isTablet=sS;Ae.isWearable=oS;Ae.isWinPhone=cS;Ae.isWindows=Ele;Ae.isYandex=mle;Ae.mobileModel=dle;Ae.mobileVendor=ule;Ae.osName=sle;Ae.osVersion=ile;Ae.parseUserAgent=g1;Ae.setUserAgent=Uae;Ae.useDeviceData=fS;Ae.useDeviceSelectors=Ule;Ae.useMobileOrientation=Wle;Ae.withOrientationChange=zle;var qle=typeof global=="object"&&global&&global.Object===Object&&global,Yle=typeof self=="object"&&self&&self.Object===Object&&self,pS=qle||Yle||Function("return this")(),Vu=pS.Symbol,hS=Object.prototype,Kle=hS.hasOwnProperty,Zle=hS.toString,al=Vu?Vu.toStringTag:void 0;function Xle(e){var t=Kle.call(e,al),n=e[al];try{e[al]=void 0;var r=!0}catch{}var o=Zle.call(e);return r&&(t?e[al]=n:delete e[al]),o}var Qle=Object.prototype,Jle=Qle.toString;function e1e(e){return Jle.call(e)}var t1e="[object Null]",n1e="[object Undefined]",t9=Vu?Vu.toStringTag:void 0;function r1e(e){return e==null?e===void 0?n1e:t1e:t9&&t9 in Object(e)?Xle(e):e1e(e)}function o1e(e){return e!=null&&typeof e=="object"}var i1e="[object Symbol]";function s1e(e){return typeof e=="symbol"||o1e(e)&&r1e(e)==i1e}var a1e=/\s/;function l1e(e){for(var t=e.length;t--&&a1e.test(e.charAt(t)););return t}var c1e=/^\s+/;function u1e(e){return e&&e.slice(0,l1e(e)+1).replace(c1e,"")}function zu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var n9=NaN,d1e=/^[-+]0x[0-9a-f]+$/i,f1e=/^0b[01]+$/i,p1e=/^0o[0-7]+$/i,h1e=parseInt;function r9(e){if(typeof e=="number")return e;if(s1e(e))return n9;if(zu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=u1e(e);var n=f1e.test(e);return n||p1e.test(e)?h1e(e.slice(2),n?2:8):d1e.test(e)?n9:+e}var Bf=function(){return pS.Date.now()},g1e="Expected a function",m1e=Math.max,v1e=Math.min;function Kc(e,t,n){var r,o,i,s,l,d,u=0,p=!1,g=!1,h=!0;if(typeof e!="function")throw new TypeError(g1e);t=r9(t)||0,zu(n)&&(p=!!n.leading,g="maxWait"in n,i=g?m1e(r9(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function m(M){var j=r,D=o;return r=o=void 0,u=M,s=e.apply(D,j),s}function v(M){return u=M,l=setTimeout(S,t),p?m(M):s}function b(M){var j=M-d,D=M-u,N=t-j;return g?v1e(N,i-D):N}function x(M){var j=M-d,D=M-u;return d===void 0||j>=t||j<0||g&&D>=i}function S(){var M=Bf();if(x(M))return I(M);l=setTimeout(S,b(M))}function I(M){return l=void 0,h&&r?m(M):(r=o=void 0,s)}function w(){l!==void 0&&clearTimeout(l),u=0,r=d=o=l=void 0}function T(){return l===void 0?s:I(Bf())}function P(){var M=Bf(),j=x(M);if(r=arguments,o=this,d=M,j){if(l===void 0)return v(d);if(g)return clearTimeout(l),l=setTimeout(S,t),m(d)}return l===void 0&&(l=setTimeout(S,t)),s}return P.cancel=w,P.flush=T,P}var y1e="Expected a function";function b1e(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(y1e);return zu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Kc(e,t,{leading:r,maxWait:t,trailing:o})}var Qs=function(){return Qs=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},Qs.apply(this,arguments)};function gS(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function mS(e){return!e||!e.ownerDocument?document:e.ownerDocument}var vS=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(l,d){return d.toUpperCase()});switch(o.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=o.value}}return r},t);return n};function yS(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function bS(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function CS(e){return".".concat(e.split(" ").join("."))}var Bp=!!(typeof window<"u"&&window.document&&window.document.createElement),C1e=Object.freeze({__proto__:null,addClasses:yS,canUseDOM:Bp,classNamesToQuery:CS,getElementDocument:mS,getElementWindow:gS,getOptions:vS,removeClasses:bS}),Ws=null,o9=null;Bp&&window.addEventListener("resize",function(){o9!==window.devicePixelRatio&&(o9=window.devicePixelRatio,Ws=null)});function i9(){if(Ws===null){if(typeof document>"u")return Ws=0,Ws;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),Ws=n}return Ws}var Go=gS,Nf=mS,x1e=vS,qo=yS,Yo=bS,Dn=CS,Pc=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=Go(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,qo(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(){Yo(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(qo(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Yo(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,s;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)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(i||s)&&(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")),s&&(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,s,l,d,u,p,g,h,m,v,b;if(!(!r.draggedAxis||!r.contentWrapperEl)){var x,S=r.axis[r.draggedAxis].track,I=(s=(i=S.rect)===null||i===void 0?void 0:i[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,w=r.axis[r.draggedAxis].scrollbar,T=(d=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,P=parseInt((p=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?x=o.pageY:x=o.pageX;var M=x-((h=(g=S.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;M=r.draggedAxis==="x"&&r.isRtl?((v=(m=S.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].sizeAttr])!==null&&v!==void 0?v:0)-w.size-M:M;var j=M/(I-w.size),D=j*(T-P);r.draggedAxis==="x"&&r.isRtl&&(D=!((b=e.getRtlHelpers())===null||b===void 0)&&b.isScrollingToNegative?-D:D),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=D}},this.onEndDrag=function(o){r.isDragging=!1;var i=Nf(r.el),s=Go(r.el);o.preventDefault(),o.stopPropagation(),Yo(r.el,r.classNames.dragging),r.onStopScrolling(),i.removeEventListener("mousemove",r.drag,!0),i.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.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=Qs(Qs({},e.defaultOptions),n),this.classNames=Qs(Qs({},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=b1e(this._onMouseMove,64),this.onWindowResize=Kc(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Kc(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Kc(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 s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==s.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:i9()}catch{return i9()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Nf(t),o=Go(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Bp&&(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(Dn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Dn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Dn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Dn(this.classNames.offset)),this.maskEl=this.el.querySelector(Dn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Dn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Dn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Dn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Dn(this.classNames.track)).concat(Dn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Dn(this.classNames.track)).concat(Dn(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Dn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Dn(this.classNames.scrollbar)))||null,this.options.autoHide||(qo(this.axis.x.scrollbar.el,this.classNames.visible),qo(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Go(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=Go(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,s=this.elStyles.overflowX,l=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 d=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=d>p,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="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,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>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,s=i/o,l;return l=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},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 s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?u:-u);var p=u/(s-d),g=~~((l-i.size)*p);g=t==="x"&&this.isRtl?-g+(l-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&&(qo(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&&(Yo(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),qo(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?qo(n.scrollbar.el,this.classNames.hover):Yo(n.scrollbar.el,this.classNames.hover)):(Yo(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Yo(this.axis[t].track.el,this.classNames.hover),Yo(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=Nf(this.el),i=Go(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,qo(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,s,l;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=Go(this.el);this.axis[n].scrollbar.rect=d.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,h=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],v=n==="y"?this.mouseY-g:this.mouseX-g,b=v<0?-1:1,x=b===-1?m-h:m+h,S=40,I=function(){r.contentWrapperEl&&(b===-1?m>x&&(m-=S,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,u.requestAnimationFrame(I)):m<x&&(m+=S,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,u.requestAnimationFrame(I)))};I()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Go(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=x1e,e.helpers=C1e,e}(),Jn=function(){return Jn=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},Jn.apply(this,arguments)};function w1e(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 xS=B.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,i=w1e(e,["children","scrollableNodeProps"]),s=B.useRef(),l=B.useRef(),d=B.useRef(),u={},p={};Object.keys(i).forEach(function(m){Object.prototype.hasOwnProperty.call(Pc.defaultOptions,m)?u[m]=i[m]:p[m]=i[m]});var g=Jn(Jn({},Pc.defaultOptions.classNames),u.classNames),h=Jn(Jn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||Pc.defaultOptions.ariaLabel});return B.useEffect(function(){var m;return l.current=h.ref?h.ref.current:l.current,s.current&&(m=new Pc(s.current,Jn(Jn(Jn({},u),l.current&&{scrollableNode:l.current}),d.current&&{contentNode:d.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),B.createElement("div",Jn({"data-simplebar":"init",ref:s},p),B.createElement("div",{className:g.wrapper},B.createElement("div",{className:g.heightAutoObserverWrapperEl},B.createElement("div",{className:g.heightAutoObserverEl})),B.createElement("div",{className:g.mask},B.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Jn(Jn({},h),{ref:l}),contentNodeRef:d,contentNodeProps:{className:g.contentEl,ref:d}}):B.createElement("div",Jn({},h),B.createElement("div",{className:g.contentEl},n)))),B.createElement("div",{className:g.placeholder})),B.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},B.createElement("div",{className:g.scrollbar})),B.createElement("div",{className:"".concat(g.track," simplebar-vertical")},B.createElement("div",{className:g.scrollbar})))});xS.displayName="SimpleBar";const S1e=ge(Hle)({flexGrow:1,height:"100%",overflow:"hidden"}),A1e=ge(xS)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:nt(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 wS({children:e,sx:t,...n}){return f.jsxs(f.Fragment,{children:[f.jsx(S1e,{children:f.jsx(A1e,{timeout:500,clickOnTrack:!1,sx:t,...n,children:e})}),f.jsx(Gle,{children:f.jsx(E.Box,{sx:{overflowX:"auto",...t},...n,children:e})})]})}function SS(e){const t=E.useTheme(),n=$r(e,{flexShrink:{md:0},zIndex:1200}),{downLg:r}=ir(),{open:o,handleDrawerToggle:i,width:s}=as(),l=r?E.Drawer:Eae,d=document.body,u=O.useMemo(()=>r?{container:d,variant:"temporary",onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",lg:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:s,borderRight:`1px solid ${t.palette.divider}`,backgroundImage:"none",boxShadow:"inherit",overflow:"auto"}}}:{variant:"permanent"},[r,d,i,s,t.palette.divider]);return f.jsx(E.Box,{component:"nav",sx:n,"aria-label":"mailbox folders",children:f.jsxs(l,{...u,open:o,children:[f.jsx(hw,{}),f.jsx(wS,{sx:{"& .simplebar-content":{display:"flex",flexDirection:"column"}},children:e.children})]})})}function Np(e){const{name:t,version:n,copy:r="&copy; Applica Software Guru for"}=e;return f.jsx(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",flexGrow:1,height:"auto",sx:{pt:1},children:f.jsxs(E.Typography,{variant:"caption",children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:r||""}})," ",t," - ",n]})})}const AS=ge(E.AppBar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=jn();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})}}}),ES=O.forwardRef(function(t,n){const r=$r(t,{color:"text.primary"},{defaults:!0});return f.jsx(E.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),E1e=O.forwardRef(function(t,n){const r=$r(t,{color:"text.primary"},{defaults:!0});return f.jsx(ba,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),Ra=O.forwardRef(function(t,n){const r=$r(t,{color:"text.primary",borderStyle:"none",padding:1,fontSize:"1.5rem",width:36,height:36},{defaults:!0});return f.jsx(E.ToggleButton,{ref:n,...t,color:"secondary",sx:r})});function TS({onClick:e=void 0}){const{open:t,anchorEl:n,handleClose:r,handleToggle:o}=Ta(),[i,s]=ne.useLocaleState(),l=ne.useLocales();if(l.length===0)return null;function d(u){if(e){e(u,r);return}s(u),r()}return f.jsxs(f.Fragment,{children:[f.jsx(ES,{value:"locale",onClick:o,sx:{minWidth:"auto"},children:f.jsxs(E.Stack,{direction:"row",spacing:.5,children:[f.jsx(E.Typography,{variant:"body1",children:i.toUpperCase()}),t?f.jsx(He.CaretUpOutlined,{}):f.jsx(He.CaretDownOutlined,{})]})}),f.jsx(E.Menu,{id:"menu-appbar",anchorEl:n,keepMounted:!0,open:t,onClose:r,children:l.map((u,p)=>f.jsx(E.MenuItem,{onClick:()=>d(u.locale),children:u.name},p))})]})}const T1e={ml:{xs:0,lg:-2}};function IS(){const{open:e,handleDrawerToggle:t}=as();return f.jsx(Ra,{value:"drawer","aria-label":"open drawer",sx:T1e,onChange:t,selected:e,children:e?f.jsx(He.MenuFoldOutlined,{}):f.jsx(He.MenuUnfoldOutlined,{})})}function OS(e){const t=O.useRef(),n=E.useTheme(),{downLg:r,horizontal:o}=ir(),{open:i,width:s}=as(),l=r?E.AppBar:AS,u={position:"fixed",color:"inherit",elevation:0,sx:$r(e,{borderBottom:`1px solid ${n.palette.divider}`,zIndex:1200,width:o?"100%":i?`calc(100% - ${s}px)`:{xs:"100%",lg:"calc(100% - 60px)"}})};return r||J.extend(u,{open:i}),f.jsx(l,{ref:t,...u,children:f.jsxs(E.Toolbar,{sx:{"& > *":{marginX:n.spacing(.325)}},children:[!o&&f.jsx(IS,{}),e.children]})})}function I1e(e){const t=E.useTheme(),{notification:n,onClick:r,selected:o,divider:i}=e,{resource:s}=L3(),l=ne.useNotify(),d=ne.useRedirect(),[u]=ne.useUpdate(s,{id:n==null?void 0:n.id,data:{...n,readed:Br().toISOString()}},{onSuccess:()=>{n!=null&&n.resource?n!=null&&n.resource.startsWith("/")?(d(n==null?void 0:n.resource),r()):(r(),document.location.href=n==null?void 0:n.resource):r()},onFailure:()=>{l("resources.notifications.messages.readed.error","warning")}}),p=O.useCallback(()=>u(),[u]),[g]=ne.useLocaleState(),h=O.useMemo(()=>Br(n.created).locale(g).fromNow(),[n,g]);return f.jsx(E.ListItem,{disablePadding:!0,divider:i,children:f.jsxs(E.ListItemButton,{selected:o,onClick:p,children:[f.jsx(E.ListItemAvatar,{children:f.jsx(E.Avatar,{sx:{color:"primary.main",bgcolor:"primary.lighter"},children:f.jsx(He.MessageOutlined,{})})}),f.jsx(E.ListItemText,{sx:{overflow:"hidden",wordBreak:"break-word",width:"90%"},primary:n.title,secondary:n.content}),f.jsx(E.Box,{flexGrow:1,flexShrink:1,minWidth:t.spacing(2)}),f.jsx(E.ListItemText,{sx:{overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},primary:h,primaryTypographyProps:{variant:"caption"}})]})})}const O1e={width:36,height:36,fontSize:"1rem"},P1e={mt:"6px",ml:1,top:"auto",right:"auto",alignSelf:"flex-start",transform:"none"};function PS(){const{enable:e}=L3();return e?f.jsx(j1e,{}):null}function j1e(){const e=ne.useTranslate(),t=E.useTheme(),n=ne.useRefresh(),r=ne.useNotify(),{downMd:o}=ir(),{resource:i}=L3(),[s,l]=O.useState([]),{data:d,isLoading:u}=ne.useGetList(i,{pagination:{page:1,perPage:25},sort:{field:"created",order:"DESC"},filter:{readed:!1}}),p=s.filter(I=>I.readed===null).length,{open:g,anchorEl:h,handleClose:m,handleToggle:v}=Ta();O.useEffect(()=>{!u&&d&&l(d??[])},[d,u]);const b=s.filter(I=>!I.readed).map(I=>I.id),[x]=ne.useUpdateMany(i,{ids:b,data:{readed:Br().toISOString()}},{onSuccess:()=>{n(),r("resources.notifications.messages.readed.done")},onError:()=>r("ra.notification.readed_error")}),S=O.useCallback(()=>{x()},[x]);return f.jsxs(f.Fragment,{children:[f.jsx(Ra,{value:"notifications",selected:g,onChange:v,children:f.jsx(E.Badge,{badgeContent:p,color:"primary",children:f.jsx(He.BellOutlined,{})})}),f.jsx(E.Popper,{placement:o?"bottom":"bottom-end",open:g,anchorEl:h,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:I})=>f.jsx(ci,{type:"grow",position:o?"top":"top-right",in:g,...I,children:f.jsx(E.Paper,{sx:{marginTop:1,boxShadow:t.customShadows.z1,width:"100%",minWidth:285,maxWidth:420,[t.breakpoints.down("md")]:{maxWidth:285}},children:f.jsx(E.ClickAwayListener,{onClickAway:m,children:f.jsxs(Nn,{title:e("ra.notification.title"),elevation:0,border:!1,content:!1,secondary:f.jsx(f.Fragment,{children:p>0&&f.jsx(E.Tooltip,{title:e("ra.notification.mark-as-read"),onClick:S,children:f.jsx(ba,{color:"success",size:"small",children:f.jsx(He.CheckCircleOutlined,{style:{fontSize:"1.15rem"}})})})}),children:[s.length===0?f.jsx(f1,{hasCreate:!1,title:f.jsx(E.Typography,{variant:"h5",children:e("ra.notification.empty")}),sx:{"& .ApplicaEmpty-icon":{fontSize:"60px"},"& .ApplicaEmpty-toolbar":{display:"none"}}}):f.jsxs(f.Fragment,{children:[f.jsx(E.List,{component:"nav",sx:{p:0,"& .MuiListItemButton-root":{py:.5,"&.Mui-selected":{bgcolor:"grey.50",color:"text.primary"},"& .MuiAvatar-root":O1e,"& .MuiListItemSecondaryAction-root":{...P1e,position:"relative"}},maxHeight:"calc(100vh - 240px)",overflow:"auto"},children:s.map((w,T)=>f.jsx(I1e,{selected:p>0,notification:w,onClick:m,divider:T<s.length-1},w.id))}),f.jsx(E.ListItemButton,{sx:{textAlign:"center",py:"12px !important"},to:`/${i}`,LinkComponent:ut.Link,onClick:m,children:f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",color:"primary",children:e("ra.notification.view_all")})})})]}),f.jsx(E.Divider,{})]})})})})})]})}function jS(){const[e,t]=O.useState(!1),n=O.useCallback(()=>t(!1),[t]),r=O.useCallback(()=>t(!0),[t]),o=ne.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsxs(E.ListItemButton,{onClick:r,children:[f.jsx(E.ListItemIcon,{children:f.jsx(Vt.Key,{})}),f.jsx(E.ListItemText,{primary:o("ra.auth.change_password")})]}),f.jsx(E.Dialog,{open:e,onClose:()=>t(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(Ep,{onSuccess:n})})]})}function RS(){const e=ne.useLogout(),t=ne.useTranslate();return f.jsx(f.Fragment,{children:f.jsxs(E.ListItemButton,{onClick:e,children:[f.jsx(E.ListItemIcon,{children:f.jsx(Vt.LogoutOutlined,{})}),f.jsx(E.ListItemText,{primary:t("ra.auth.logout")})]})})}function MS(){const e=ne.useTranslate(),t=ne.useAuthProvider(),n=O.useCallback(()=>t.stopImpersonate().then(()=>document.location.href="/"),[t]),[r,o]=O.useState(!1);return O.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(E.ListItemButton,{onClick:n,children:[f.jsx(E.ListItemIcon,{children:f.jsx(Vt.LogoutOutlined,{})}),f.jsx(E.ListItemText,{primary:e("ra.auth.stop_impersonate")})]})}):null}function kS(e){var b;const{roles:t}=e,n=E.useTheme(),r=ne.useDataProvider(),{identity:o}=ne.useGetIdentity(),i=o!==void 0&&o.image&&o.image!==null&&o.image!=="",[s,l]=O.useState(null),{open:d,anchorEl:u,handleToggle:p,handleClose:g}=Ta(),h=ne.useLogout(),m=O.useCallback(()=>{h()},[h]);O.useEffect(()=>{i&&r.getFile("/profile/me/image").then(x=>l(x))},[r,i]);const v=O.useMemo(()=>{var x;return O.isValidElement(t)?t:t?f.jsx(f.Fragment,{children:t}):(x=o==null?void 0:o.roles)==null?void 0:x.map(S=>S.name.replace("ROLE_","")).join(",")},[t,o]);return f.jsxs(f.Fragment,{children:[f.jsx(Ra,{sx:{p:.25,width:"auto"},onClick:p,value:"profile",selected:d,children:f.jsxs(E.Stack,{direction:"row",spacing:2,alignItems:"center",sx:{p:.5},children:[f.jsx(du,{alt:(b=o==null?void 0:o.name)==null?void 0:b.toUpperCase(),src:s,size:"xs"}),f.jsx(E.Typography,{variant:"subtitle1",children:o==null?void 0:o.name})]})}),f.jsx(v2,{placement:"bottom-end",open:d,anchorEl:u,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:x})=>f.jsx(ci,{type:"grow",position:"top-right",in:d,...x,children:f.jsx(E.Paper,{sx:{boxShadow:n.customShadows.z1,width:290,minWidth:240,maxWidth:290,[n.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(E.ClickAwayListener,{onClickAway:g,children:f.jsxs(Nn,{elevation:0,border:!1,content:!1,children:[f.jsx(E.CardContent,{sx:{px:2.5,pt:3},children:f.jsxs(E.Grid,{container:!0,justifyContent:"space-between",alignItems:"center",children:[f.jsx(E.Grid,{item:!0,children:f.jsxs(E.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[f.jsx(du,{alt:"profile user",src:s,sx:{width:32,height:32}}),f.jsxs(E.Stack,{children:[f.jsx(E.Typography,{variant:"h6",children:o==null?void 0:o.name}),f.jsx(E.Typography,{variant:"body2",color:"textSecondary",children:v})]})]})}),f.jsx(E.Grid,{item:!0,children:f.jsx(E.Tooltip,{title:"Logout",children:f.jsx(ba,{size:"large",sx:{color:"text.primary"},onClick:m,children:f.jsx(He.LogoutOutlined,{})})})})]})}),f.jsx(E.Grid,{container:!0,children:f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.List,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32}},children:[f.jsx(jS,{}),f.jsx(RS,{}),f.jsx(MS,{})]})})})]})})})})})]})}function _S(e){const t=wt(),{downMd:n}=ir(),{open:r,anchorEl:o,handleToggle:i,handleClose:s}=Ta();return n?f.jsxs(f.Fragment,{children:[f.jsx(Ra,{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(He.MoreOutlined,{})}),f.jsx(E.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:l})=>f.jsx(ci,{type:"fade",in:r,...l,children:f.jsx(E.Paper,{sx:{boxShadow:t.customShadows.z1},children:f.jsx(E.ClickAwayListener,{onClickAway:s,children:f.jsx(E.AppBar,{color:"inherit",children:f.jsx(E.Toolbar,{children:e.children})})})})})})]}):f.jsx(f.Fragment,{children:e.children})}function DS(e){return f.jsx(E.Box,{...e,flex:1})}function FS(e){const t=E.useTheme(),n=E.useScrollTrigger({disableHysteresis:!0,threshold:0}),{container:r}=jn();return t.shadows[4]=t.customShadows.z1,f.jsx(E.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(E.Container,{maxWidth:r?"xl":!1,children:f.jsx(E.Box,{sx:{display:"flex",alignItems:"center"},children:e.children})})})}function LS(e){const{horizontal:t}=ir();return t?f.jsx(FS,{children:e.children}):f.jsx(SS,{children:e.children})}function Ol({item:e,level:t}){const n=wt(),{horizontal:r,downLg:o}=ir(),{drawerOpen:i,openItem:s,activeItem:l,openDrawer:d}=Vl();let u="_self";e.target&&(u="_blank");const p=(e==null?void 0:e.external)!==!1?{component:O.forwardRef((S,I)=>f.jsx(ut.Link,{...S,to:e.url,target:u,ref:I}))}:{component:"a",href:e.url,target:u},g=e.icon,h=e.icon?f.jsx(g,{style:{fontSize:i?"1rem":"1.25rem"}}):!1,m=s.findIndex(S=>S===e.id)>-1,{pathname:v}=ut.useLocation();O.useEffect(()=>{v.endsWith(e.url)&&l([e.id])},[v]);const b=n.palette.mode==="dark"?"grey.400":"text.primary",x=n.palette.mode==="dark"&&i?"text.primary":"primary.main";return f.jsx(f.Fragment,{children:r?f.jsxs(E.ListItemButton,{...p,disabled:e.disabled,selected:m,sx:{zIndex:1201,...i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{bgcolor:"transparent",color:x,"&:hover":{color:x,bgcolor:"transparent"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[h?f.jsx(E.ListItemIcon,{sx:{minWidth:36,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&m&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:h}):null,!h&&f.jsx(E.ListItemIcon,{sx:{color:m?"primary.main":"secondary.main",...!i&&{borderRadius:1.5,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&m&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:f.jsx(l2,{size:4,color:m?"primary":"secondary"})}),f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",color:"inherit",children:e.title})}),(i||!i&&t!==1)&&e.chip?f.jsx(E.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(E.Avatar,{children:e.chip.avatar}):null}):null]}):f.jsxs(E.ListItemButton,{...p,disabled:e.disabled,selected:m,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:x,"&:hover":{color:x,bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},...o&&{onClick:()=>d(!1)},children:[h?f.jsx(E.ListItemIcon,{sx:{minWidth:28,color:m?x:b,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:n.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!i&&m&&{bgcolor:n.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:n.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:h}):null,i||!i&&t!==1?f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",sx:{color:m?x:b},children:e.title})}):null,(i||!i&&t!==1)&&e.chip?f.jsx(E.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(E.Avatar,{children:e.chip.avatar}):null}):null]})})}const s9=ge(E.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 Pl({menu:e,level:t,parentId:n,setSelectedItems:r,selectedItems:o,setSelectedLevel:i,selectedLevel:s}){var W;const l=wt(),{activeItem:d}=Vl(),{horizontal:u}=ir(),{drawerOpen:p}=Vl(),g=ut.useNavigate(),[h,m]=O.useState(!1),[v,b]=O.useState(null),[x,S]=O.useState(null);function I(se){S(null),i(t),p?(m(!h),b(v?null:e.id),r(v?"":e.id),e.url&&g(`${e.url}`)):S(se==null?void 0:se.currentTarget)}function w(){p||e.url&&g(`${e.url}`)}function T(se){S(se==null?void 0:se.currentTarget)}function P(){m(!1),b(null),S(null)}O.useMemo(()=>{v===o?t===1&&m(!0):t===s&&(m(!1),b(null))},[o,t,v,s]);const{pathname:M}=ut.useLocation(),j=!!x;function D(se,K){se.forEach($=>{$.url===M&&(m(!0),b(K))})}O.useEffect(()=>{m(!1),b(null),j&&S(null),e.children&&e.children.forEach(se=>{var K;(K=se.children)!=null&&K.length&&D(se.children,e.id),se.url===M&&(b(e.id),m(!0)),M.includes(se.url)&&(b(e.id),m(!0))})},[M,e.children]),O.useEffect(()=>{e.url===M&&v!==e.id&&(d([e.id]),b(e.id),S(null),m(!0))},[M,e,v,d]);const N=(W=e.children)==null?void 0:W.map(se=>{switch(se.type){case"collapse":return f.jsx(Pl,{setSelectedItems:r,setSelectedLevel:i,selectedLevel:s,selectedItems:o,menu:se,level:t+1,parentId:n},se.id);case"item":return f.jsx(Ol,{item:se,level:t+1},se.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Collapse or Item"},se.id)}}),k=v===e.id,_=t===1?f.jsx(He.BorderOutlined,{style:{fontSize:"1rem"}}):!1,U=e.icon,H=e.icon?f.jsx(U,{style:{fontSize:p?"1rem":"1.25rem"}}):_,G=l.palette.mode==="dark"?"grey.400":"text.primary",Y=l.palette.mode==="dark"&&p?l.palette.text.primary:l.palette.primary.main,V=j?`collapse-pop-${e.id}`:void 0,Z={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"};return f.jsx(f.Fragment,{children:u?f.jsx(f.Fragment,{children:f.jsxs(E.ListItemButton,{id:`boundary-${V}`,disableRipple:!0,selected:k,onMouseEnter:T,onMouseLeave:P,onClick:T,"aria-describedby":V,sx:{"&.Mui-selected":{bgcolor:"transparent"}},children:[f.jsxs(E.Box,{onClick:w,sx:Z,children:[H?f.jsx(E.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,color:l.palette.secondary.dark},children:H}):null,!H&&t!==1&&f.jsx(E.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,bgcolor:"transparent","&:hover":{bgcolor:"transparent"}},children:f.jsx(l2,{size:4,color:k?"primary":"secondary"})}),f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"body1",color:"inherit",sx:{my:"auto"},children:e.title})}),j?f.jsx(He.RightOutlined,{}):f.jsx(He.DownOutlined,{})]}),x?f.jsx(s9,{id:V,open:j,anchorEl:x,placement:"right-start",style:{zIndex:2001},modifiers:[{name:"offset",options:{offset:[-10,0]}}],children:({TransitionProps:se})=>f.jsx(ci,{in:j,...se,children:f.jsx(E.Paper,{sx:{overflow:"hidden",mt:1.5,py:.5,boxShadow:l.shadows[8],backgroundImage:"none"},children:f.jsx(E.ClickAwayListener,{onClickAway:P,children:f.jsx(E.Box,{children:N})})})})}):null]})}):f.jsxs(f.Fragment,{children:[f.jsxs(E.ListItemButton,{disableRipple:!0,selected:v===e.id,...!p&&{onMouseEnter:I,onMouseLeave:P},onClick:I,sx:{pl:p?`${t*28}px`:1.5,py:!p&&t===1?1.25:1,...p&&{"&:hover":{bgcolor:l.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:"transparent",color:Y,"&:hover":{color:Y,bgcolor:l.palette.mode==="dark"?"divider":"transparent"}}},...!p&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[H?f.jsx(E.ListItemIcon,{onClick:w,sx:{minWidth:28,color:v===e.id?"primary.main":G,...!p&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:l.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!p&&v===e.id&&{bgcolor:l.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:l.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:H}):null,p||!p&&t!==1?f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",color:v===e.id?"primary":G,children:e.title}),secondary:e.caption?f.jsx(E.Typography,{variant:"caption",color:"secondary",children:e.caption}):null}):null,p||!p&&t!==1?j||h?f.jsx(He.UpOutlined,{style:{fontSize:"0.625rem",marginLeft:1,color:l.palette.primary.main}}):f.jsx(He.DownOutlined,{style:{fontSize:"0.625rem",marginLeft:1}}):null,!p&&f.jsx(s9,{open:j,anchorEl:x,placement:"right-start",style:{zIndex:2001},popperOptions:{modifiers:[{name:"offset",options:{offset:[-12,1]}}]},children:({TransitionProps:se})=>f.jsx(ci,{in:j,...se,children:f.jsx(E.Paper,{sx:{overflow:"hidden",mt:1.5,boxShadow:l.customShadows.z1,backgroundImage:"none",border:`1px solid ${l.palette.divider}`},children:f.jsx(E.ClickAwayListener,{onClickAway:P,children:f.jsx(E.Box,{children:N})})})})})]}),p?f.jsx(E.Collapse,{in:h,timeout:"auto",unmountOnExit:!0,children:f.jsx(E.List,{sx:{p:0},children:N})}):null]})})}const R1e=ge(E.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 BS({item:e,lastItem:t,remItems:n,lastItemId:r,setSelectedItems:o,selectedItems:i,setSelectedLevel:s,selectedLevel:l}){var V,Z;const d=wt(),u=z.useTranslate(),{pathname:p}={pathname:""},{horizontal:g,downLg:h}=ir(),m=Vl(),{drawerOpen:v,selectedID:b,activeID:x}=m,[S,I]=O.useState(null),[w,T]=O.useState(e),P=!!S;O.useEffect(()=>{if(t)if(e.id===r){const W={...e},se=n.map(K=>K.elements);W.children=se.flat(1),T(W)}else T(e)},[e,t,h]);function M(W,se){W.forEach(K=>{var $;($=K.children)!=null&&$.length&&M(K.children,w.id),K.url===p&&x(se)})}function j(W){(W.children?W.children:[]).forEach(K=>{var $;($=K.children)!=null&&$.length&&M(K.children,w.id),K.url===p&&x(w.id)})}O.useEffect(()=>{j(w),P&&I(null)},[p,w]);function D(W){P||I(W==null?void 0:W.currentTarget)}function N(){I(null)}const k=w==null?void 0:w.icon,_=w!=null&&w.icon?f.jsx(k,{style:{fontSize:20,stroke:"1.5",color:b===w.id?d.palette.primary.main:d.palette.secondary.dark}}):null,U=(V=e.children)==null?void 0:V.map(W=>{switch(W.type){case"collapse":return f.jsx(Pl,{menu:W,setSelectedItems:o,setSelectedLevel:s,selectedLevel:l,selectedItems:i,level:1,parentId:w.id},W.id);case"item":return f.jsx(Ol,{item:W,level:1},W.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),H=n.map((W,se)=>{var K;return f.jsxs(O.Fragment,{children:[W.title?f.jsx(E.Typography,{variant:"caption",sx:{pl:2},children:W.title}):null,(K=W==null?void 0:W.elements)==null?void 0:K.map($=>{switch($.type){case"collapse":return f.jsx(Pl,{menu:$,level:1,parentId:w.id,setSelectedItems:o,setSelectedLevel:s,selectedLevel:l,selectedItems:i},$.id);case"item":return f.jsx(Ol,{item:$,level:1},$.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},$.id)}})]},se)}),G=(Z=w.children)==null?void 0:Z.map(W=>{switch(W.type){case"collapse":return f.jsx(Pl,{menu:W,level:1,parentId:w.id,setSelectedItems:o,setSelectedLevel:s,selectedLevel:l,selectedItems:i},W.id);case"item":return f.jsx(Ol,{item:W,level:1},W.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),Y=P?`group-pop-${e.id}`:void 0;return f.jsx(f.Fragment,{children:g?f.jsx(E.List,{children:f.jsxs(E.ListItemButton,{selected:b===w.id,sx:{p:1,my:.5,mr:1,display:"flex",alignItems:"center",backgroundColor:"inherit","&.Mui-selected":{bgcolor:"transparent"}},onMouseEnter:D,onClick:D,onMouseLeave:N,"aria-describedby":Y,children:[_?f.jsx(E.ListItemIcon,{sx:{minWidth:28},children:w.id===r?f.jsx(He.DownOutlined,{style:{fontSize:20,stroke:"1.5"}}):_}):null,f.jsx(E.ListItemText,{sx:{mr:1},primary:f.jsx(E.Typography,{variant:"body1",color:b===w.id?d.palette.primary.main:d.palette.secondary.dark,children:w.id===r?u("ra.actions.more"):w.title})}),P?f.jsx(He.DownOutlined,{style:{fontSize:16,stroke:"1.5"}}):f.jsx(He.RightOutlined,{style:{fontSize:16,stroke:"1.5"}}),S?f.jsx(R1e,{id:Y,open:P,anchorEl:S,placement:"bottom-start",style:{zIndex:2001},children:({TransitionProps:W})=>f.jsx(ci,{in:P,...W,children:f.jsx(E.Paper,{sx:{mt:.5,py:1.25,boxShadow:d.shadows[8],backgroundImage:"none"},children:f.jsx(E.ClickAwayListener,{onClickAway:N,children:f.jsx(E.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:d.palette.divider,borderRadius:4}},children:w.id!==r?G:H})})})})}):null]})}):f.jsx(E.List,{subheader:e.title&&v?f.jsxs(E.Box,{sx:{pl:3,mb:1.5},children:[f.jsx(E.Typography,{variant:"subtitle2",color:d.palette.mode==="dark"?"textSecondary":"text.secondary",children:e.title}),e.caption?f.jsx(E.Typography,{variant:"caption",color:"secondary",children:e.caption}):null]}):null,sx:{mt:v&&e.title?1.5:0,py:0,zIndex:0},children:U})})}function NS(e){const{horizontal:t}=ir(),{open:n}=as(),r=$r(e,{pt:n?t?0:2:0,"& > ul:first-of-type":{mt:0},display:t?{xs:"block",lg:"flex"}:"block"});return f.jsx(E.Box,{sx:r,children:e.children})}function $S(e){const{horizontal:t}=ir(),{menu:n,isLoading:r}=tp(),[o,i]=O.useState(""),[s,l]=O.useState(0),{horizontalMaxItems:d}=jn(),u=t?d:void 0;let p=r?0:(n??[]).length-1,g=[],h;return!r&&u&&u<(n??[]).length&&(h=(n??[])[u-1].id,p=u-1,g=(n??[]).slice(u-1,(n??[]).length).map(m=>({title:m.title,elements:m.children,icon:m.icon}))),f.jsx(NS,{...e,children:!r&&J.map((n??[]).slice(0,p+1),m=>{const{type:v}=m;switch(v){case"group":return f.jsx(BS,{item:m,setSelectedItems:i,setSelectedLevel:l,selectedLevel:s,selectedItems:o,lastItem:u,remItems:g,lastItemId:h},m.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Navigation Group"},m.id)}})})}function M1e({open:e,anchorEl:t,handleClose:n,theme:r,mode:o,toggleThemeMode:i}){const s=ne.useTranslate();return f.jsx(v2,{placement:"bottom-end",open:e,anchorEl:t,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:l})=>f.jsx(ci,{type:"grow",position:"top-right",in:e,...l,children:f.jsx(E.Paper,{sx:{boxShadow:r.customShadows.z1,minWidth:200,[r.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(E.ClickAwayListener,{onClickAway:n,children:f.jsx(Nn,{elevation:0,border:!1,content:!1,children:f.jsxs(E.List,{children:[f.jsxs(E.ListItemButton,{selected:o==="light",onClick:()=>i("light"),children:[f.jsx(He.SunOutlined,{}),f.jsx(E.Typography,{variant:"subtitle1",ml:1,children:s("ra.preferences.theme.light")})]}),f.jsxs(E.ListItemButton,{selected:o==="dark",onClick:()=>i("dark"),children:[f.jsx(He.MoonOutlined,{}),f.jsx(E.Typography,{variant:"subtitle1",ml:1,children:s("ra.preferences.theme.dark")})]}),f.jsxs(E.ListItemButton,{selected:o==="auto",onClick:()=>i("auto"),children:[f.jsx(Vt.Brightness6,{}),f.jsx(E.Typography,{variant:"subtitle1",ml:1,textTransform:"none",children:s("ra.preferences.theme.auto")})]})]})})})})})})}function VS(){const e=E.useTheme(),{mode:t,setMode:n}=jn(),{open:r,anchorEl:o,handleToggle:i,handleClose:s}=Ta(),l=O.useCallback(u=>{n(u)},[n]),d=O.useCallback(()=>{switch(t){case"light":return f.jsx(He.SunOutlined,{});case"dark":return f.jsx(He.MoonOutlined,{});default:return f.jsx(Vt.Brightness6,{})}},[t]);return f.jsxs(Ra,{value:"theme-mode","aria-label":"toggle mode",onClick:i,selected:!1,children:[f.jsx(d,{}),r?f.jsx(M1e,{open:r,anchorEl:o,handleClose:s,theme:e,mode:t,toggleThemeMode:l}):null]})}const zS=O.forwardRef((e,t)=>{const n=$r(e,{display:"flex",width:"100%"});return f.jsx(E.Box,{ref:t,...e,sx:n,children:e.children})});function $p({source:e="paper"}){const{mode:t}=jn(),n=E.useTheme();return O.useEffect(()=>{var o;const r=J.get(n.palette.background,e);(o=document.querySelector('meta[name="theme-color"]'))==null||o.setAttribute("content",r)},[t,n,e]),null}const WS=cw(function(t){const{name:n,version:r,enableThemeToggler:o,enableNotification:i,enableLocaleSwitcher:s}=t,{isLoading:l,navigation:d,breadcrumbs:u}=bC();return f.jsxs(zS,{children:[f.jsxs(OS,{children:[f.jsx(DS,{}),s?f.jsx(TS,{}):null,o?f.jsx(VS,{}):null,f.jsx($p,{}),f.jsx(Pb,{}),i?f.jsx(PS,{}):null,f.jsx(_S,{children:f.jsx(kS,{})})]}),f.jsx(LS,{children:f.jsx($S,{})}),f.jsxs(dw,{error:t.error,children:[!l&&f.jsx(ky,{titleBottom:!0,mode:"breadcrumbs",navigation:d,breadcrumbs:u,card:!1,divider:!1,icon:!0,icons:!0}),t.children,f.jsx(ut.Outlet,{}),f.jsx(Np,{name:n,version:r,copy:t==null?void 0:t.copy})]})]})});function US(e){const t=E.useMediaQuery(n=>n.breakpoints.down("sm"));return f.jsx(_1e,{disableGutters:!0,variant:t?"regular":"dense",...D1e(e)})}US.propTypes={children:C.node,className:C.string};const k1e="RaTopToolbar",_1e=E.styled(E.Toolbar,{name:k1e,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 D1e({hasCreate:e,...t}){return t}const F1e=ge("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}}));function HS(){return f.jsx(F1e,{children:f.jsx(E.LinearProgress,{color:"primary"})})}function L1e(e){return t=>f.jsx(O.Suspense,{fallback:f.jsx(HS,{}),children:f.jsx(e,{...t})})}function Vp({title:e}){return f.jsxs(E.Stack,{direction:"row",children:[f.jsx(E.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(E.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]})}const B1e=ge(z.Notification,{})(({theme:e})=>({zIndex:2e3,"& *":{fontSize:e.typography.body1.fontSize}}));function GS(e){return f.jsx(B1e,{...e})}var Wl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(Wl||{});const qS=Bn().required(),YS=Bn().oneOf(Object.values(Wl));function N1e(e){var S;const t=Hi.useQueryClient(),[n,r]=O.useState(!1),[o,i]=O.useState(()=>()=>Promise.resolve()),s=ne.useGetIdentity(),l=(S=s==null?void 0:s.data)==null?void 0:S.email,d=ne.useDataProvider(),u=O.useCallback(()=>l?d.get("onboarding").then(I=>{var w;return(w=I==null?void 0:I.data)==null?void 0:w.value}):Promise.reject(),[d,l]),{data:p,isLoading:g,isError:h}=Hi.useQuery({queryKey:["GET","onboarding",l],queryFn:u,staleTime:24*60*60*1e3,retry:l!==void 0}),[m,v]=O.useState(()=>()=>Promise.resolve()),x=Hi.useMutation({mutationFn:m}).mutateAsync;return O.useEffect(()=>{function I(){const w=J.chain(p??{}).clone().extend({[e]:Date.now()}).value();return d.post("onboarding",w).then(()=>{t.invalidateQueries(["GET","onboarding",l])})}v(()=>I)},[d,p,e,t,l]),O.useEffect(()=>{r(J.isNil((p??{})[e]))},[p,e,r]),O.useEffect(()=>{i(()=>()=>x())},[x]),{loading:g,error:h,onboardingRequired:n,acknowledgeOnboarding:o}}function $1e(e){const[t,n]=dp("onboarding",{}),[r,o]=O.useState(!1),[i,s]=O.useState(()=>()=>Promise.resolve());return O.useEffect(()=>{o(J.isNil((t??{})[e]))},[t,e,o]),O.useEffect(()=>{s(()=>()=>(n(l=>J.extend(l,{[e]:Date.now()})),Promise.resolve()))},[e,n,s]),{onboardingRequired:r,acknowledgeOnboarding:i}}function V1e(){return{onboardingRequired:!1,acknowledgeOnboarding:O.useRef(()=>Promise.resolve()).current}}function KS(e,t){cp({mode:YS,topic:qS}).validateSync({mode:e,topic:t});const n=N1e(t),r=$1e(t),o=V1e();switch(e){case Wl.USER:return n.loading?o:n.error?r:J.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case Wl.BROWSER:return r;default:return o}}var ra=(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))(ra||{});function z1e(e,t){var o;const n=J.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:i}=t;return J.extend(n,{show:i})}case"REGISTER_TIP":{const{payload:i}=t,{id:s}=i,l=J.chain(n.tips).clone().reject(p=>p.id===s).value(),d=J.find(n.tips,{id:s}),u=J.chain(d??{}).clone().extend(i).value();return l.push(u),J.extend(n,{tips:J.sortBy(l,["step"])})}case"UNREGISTER_TIP":{const{payload:i}=t,s=J.isString(i)?i:i.id,l=J.chain(n.tips).reject(d=>d.id===s).sortBy(["step"]).value();return J.extend(n,{tips:l})}case"DISMISS_TIP":{const{payload:i}=t,s=J.isString(i)?i:i.id,l=J.chain(n.tips).reject(h=>h.id===s).value(),d=J.find(n.tips,{id:s});if(J.isNil(d))return n;const u=J.chain(d).clone().extend({dismissed:!0}).value();l.push(u);const p=((o=J.chain(l).reject(h=>h.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(u==null?void 0:u.completeOnboarding)&&J.chain(l).reject(h=>h.step<p).reject(h=>h.dismissed??!1).isEmpty().value()&&e.onComplete(),J.extend(n,{tips:J.sortBy(l,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:i}=t;return J.extend(n,{onComplete:i})}case"RESTART":{const i=J.chain(n.tips).clone().map(s=>J.omit(s,"dismissed")).value();return J.extend(n,{tips:i,currentStep:0})}default:return n}}const zp=O.createContext(void 0);function W1e(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=KS(t,n),[i,s]=O.useReducer(z1e,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),l=O.useMemo(()=>({state:i,dispatch:s}),[i,s]);return O.useEffect(()=>{s({type:"SET_SHOW",payload:r})},[r,s]),O.useEffect(()=>{function d(){o().then(()=>{s({type:"SET_SHOW",payload:!1})})}s({type:"SET_ON_COMPLETE",payload:d})},[o,s]),f.jsx(zp.Provider,{value:l,children:e.children})}function ZS(){const e=O.useContext(zp);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function U1e(){return ZS().state}function XS(){return ZS().dispatch}function QS(e){cp({id:Bn().required(),step:PC().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:i,currentStep:s}=U1e(),l=J.find(i,{id:t}),{dismissed:d}=l??{},u=XS(),p=O.useCallback(()=>{u({type:ra.DISMISS_TIP,payload:t})},[u,t]);return O.useEffect(()=>{(J.isNil(l)||n!==(l==null?void 0:l.step))&&u({type:ra.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,l,u]),O.useEffect(()=>()=>{u({type:ra.UNREGISTER_TIP,payload:t})},[t,u]),{tip:J.chain(l??e).clone().extend({open:o&&!J.isNil(l)&&s===n&&!d}).value(),dismiss:p}}function H1e(){const e=XS();return O.useCallback(()=>{e({type:ra.RESTART})},[e])}function G1e(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:i,dismiss:s}=QS({id:t,step:n,completeOnboarding:o}),{open:l}=i,d=J.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(b3,{...d,arrow:!0,open:l,title:f.jsxs(E.Stack,{gap:1,children:[f.jsx(E.Typography,{children:r}),f.jsx(E.Button,{onClick:s,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const q1e=E.styled(G1e)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${E.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${E.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${E.tooltipClasses.arrow}`]:{color:r.main}}});function JS({children:e}){const t=ut.useLocation(),{pathname:n}=t;return O.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),f.jsx(f.Fragment,{children:e})}const Y1e=ge("div")({width:"100%",overflowX:"auto",display:"block"});function K1e({shadow:e,children:t,...n}){return f.jsx(Nn,{content:!1,border:!1,shadow:e,boxShadow:!0,...n,children:t})}function eA({title:e}){return f.jsx(E.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substring(0,1).toUpperCase()})}function Z1e({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:i,component:s,leftIcon:l,rightIcon:d,button:u,buttonProps:p,...g}){const{getCurrentDialog:h}=bp(),m=ne.useResourceContext(g),v=h(),b=ne.useRecordContext(),x=r||b,S=Qe.get(x,e||"");return f.jsxs(E.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:I=>({pt:1,pb:1,borderBottom:`1px solid ${I.palette.divider}`,...o&&{mb:2},...i&&{mt:2}}),children:[f.jsxs(E.Stack,{direction:"row",alignItems:"start",children:[l?O.isValidElement(l)?O.cloneElement(l,{style:jc}):O.createElement(l,{style:jc}):null,f.jsx(ne.FieldTitle,{label:t,source:e,resource:v||m})]}),f.jsxs(E.Stack,{direction:"row",alignItems:"center",children:[s?O.isValidElement(s)?O.cloneElement(s,{record:x,resource:m,value:S}):O.createElement(s,{source:e,record:x,resource:m,value:S}):f.jsx(E.Typography,{variant:n,children:S}),d?O.isValidElement(d)?O.cloneElement(d,{style:jc}):O.createElement(d,{style:jc}):null,u?f.jsx(E.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:u}):null]})]})}const jc={width:"1.5rem",alignSelf:"center"};function X1e({children:e}){const t=wt();return f.jsx(Nn,{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(E.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})}function N3({version:e,name:t,copy:n,children:r,logo:o,background:i=C3,footer:s=!0}){return f.jsxs(E.Box,{children:[f.jsx($p,{source:"default"}),O.isValidElement(i)?i:O.createElement(i),f.jsxs(E.Grid,{container:!0,direction:"column",justifyContent:"flex-end",children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(Vp,{title:t})}),f.jsxs(E.Grid,{item:!0,xs:12,children:[f.jsx(E.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(E.Grid,{item:!0,children:f.jsx(X1e,{children:r})})}),s?f.jsx(E.Grid,{item:!0,sx:{pb:1,position:"absolute",bottom:0,ml:2},children:f.jsx(Np,{name:t,copy:n,version:e})}):null]})]})]})}function Q1e({name:e,copy:t,logo:n,version:r,background:o}){const i=ne.useTranslate(),s=ne.useAuthProvider(),l=ne.useNotify(),d=ut.useNavigate(),{token:u}=ut.useParams();return O.useEffect(()=>{if(typeof s.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");s.activate(u).then(()=>{l("ra.auth.activate_success",{type:"info"}),J.delay(()=>d("/login"),1e3)}).catch(p=>{l(p,{type:"error"}),J.delay(()=>d("/login"),1e3)})},[u,s,l,d]),f.jsx(N3,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:i("ra.auth.activate")}),f.jsx(E.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),f.jsx(E.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})}function tA(){const e=O.useCallback(()=>location.reload(),[]);return f.jsx(E.Container,{children:f.jsxs(E.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{alt:"Error",src:Qy,style:{width:"100%",maxWidth:450}}),f.jsx(E.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(E.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(E.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}function nA({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:i=!1,oauth:s={},redirectTo:l,background:d=f.jsx(C3,{})}){const[u,p]=ne.useSafeSetState(!1),g=ne.useLogin(),h=ne.useTranslate(),m=ne.useNotify(),v=ne.useCheckAuth(),b=ut.useNavigate();O.useEffect(()=>{v({},!1).then(()=>{b("/")}).catch(()=>{})},[v,b]);function x(S){p(!0),g(S,l).then(()=>{p(!1)}).catch(I=>{p(!1),m(typeof I=="string"?I:typeof I>"u"||!I.message?"ra.auth.sign_in_error":I.message,{type:"error",messageArgs:{_:typeof I=="string"?I:I&&I.message?I.message:void 0}})})}return f.jsx(N3,{name:t,version:e,copy:n,logo:r,background:d,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:"Login"}),i?f.jsx(E.Typography,{component:ut.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")}):null]})}),f.jsxs(E.Grid,{item:!0,xs:12,children:[f.jsxs(ne.Form,{onSubmit:x,children:[f.jsxs(E.Grid,{container:!0,children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(Sr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ne.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(Sr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ne.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o?f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(E.Link,{variant:"h6",component:ut.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}):null,f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(E.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]}),J.isEmpty(s)?null:f.jsxs(f.Fragment,{children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:2},children:f.jsx(E.Divider,{})}),s.google?f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:2,width:"100%"},children:f.jsx(QC,{setLoading:p})}):null]})]})]})})}function J1e({name:e,copy:t,logo:n,version:r,background:o}){const[i,s]=O.useState(!1),l=ne.useTranslate(),d=ne.useRedirect(),u=ne.useNotify(),p=ne.useAuthProvider();function g({email:h}){s(!0),p.recover(h).then(m=>{const v=`ra.auth.recover_${m.responseCode}`,b=m.responseCode==="ok"?"info":"error";u(v,{type:b}),d("/login")}).catch(m=>{u((m==null?void 0:m.message)||(m==null?void 0:m.toString()),{type:"error"})}).finally(()=>s(!1))}return f.jsx(N3,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:l("ra.auth.recover.title")}),f.jsx(E.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.back_to_login")})]})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(z.Form,{onSubmit:g,children:[f.jsx(E.Grid,{container:!0,children:f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"email",validate:[ne.required(),ne.email()]})})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(E.Typography,{variant:"caption",children:l("ra.auth.recover.inbox_help")})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(E.CircularProgress,{size:19,thickness:3}):l("ra.auth.recover")})})]})})]})})}function ece({name:e,copy:t,version:n,logo:r,background:o}){const[i,s]=O.useState(!1),l=ne.useTranslate(),d=ne.useRedirect(),u=ne.useNotify(),p=ne.useAuthProvider();function g(h){s(!0),p.register(h).then(m=>{const v=`ra.auth.register_${m.responseCode}`,b=m.responseCode==="ok"?"info":"error";u(v,{type:b}),d("/login")}).catch(m=>{u(m.message||m,{type:"error"})}).finally(()=>s(!1))}return f.jsx(N3,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:l("ra.auth.register.title")}),f.jsx(E.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.already_have_account")})]})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(z.Form,{onSubmit:g,children:[f.jsxs(E.Grid,{container:!0,children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"name",label:l("ra.register.name"),validate:ne.required()})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"email",type:"email",validate:[ne.required(),ne.email()]})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"password",type:"password",validate:ne.required()})})]}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(E.CircularProgress,{size:19,thickness:3}):l("ra.auth.create_account")})})]})})]})})}function tce(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 nce(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function rce(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(He.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 ji({color:e,theme:t}){const n=hn(t,e),{lighter:r,light:o,main:i}=n;return{borderColor:nt(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:i}}}function oce(e){const t=ji({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":ji({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":ji({color:"secondary",theme:e}),"&.MuiAlert-borderError":ji({color:"error",theme:e}),"&.MuiAlert-borderSuccess":ji({color:"success",theme:e}),"&.MuiAlert-borderInfo":ji({color:"info",theme:e}),"&.MuiAlert-borderWarning":ji({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 ice(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function sce(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 Ri({color:e,theme:t}){const n=hn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function ace(e){const t=Ri({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Ri({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Ri({color:"secondary",theme:e}),"&.MuiBadge-colorError":Ri({color:"error",theme:e}),"&.MuiBadge-colorInfo":Ri({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Ri({color:"success",theme:e}),"&.MuiBadge-colorWarning":Ri({color:"warning",theme:e})}}}}}function it({variant:e,color:t,theme:n}){const r=hn(n,t),{lighter:o,main:i,dark:s,contrastText:l}=r,d=`${t}Button`,u=ya(n,d),p={"&::after":{boxShadow:`0 0 5px 5px ${nt(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${nt(i,.9)}`},"&:focus-visible":{outline:`2px solid ${s}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:s},...p};case"shadow":return{color:l,backgroundColor:i,boxShadow:u,"&:hover":{boxShadow:"none",backgroundColor:s},...p};case"outlined":return{borderColor:i,"&:hover":{color:s,backgroundColor:"transparent",borderColor:s},...p};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:s,borderColor:s},...p};case"text":default:return{"&:hover":{color:s,backgroundColor:o},...p}}}function lce(e){const t=it({variant:"dashed",color:"primary",theme:e}),n=it({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":it({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":it({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":it({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":it({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":it({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":it({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":it({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":it({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":it({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":it({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":it({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":it({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:it({variant:"contained",color:"primary",theme:e}),containedSecondary:it({variant:"contained",color:"secondary",theme:e}),containedError:it({variant:"contained",color:"error",theme:e}),containedSuccess:it({variant:"contained",color:"success",theme:e}),containedInfo:it({variant:"contained",color:"info",theme:e}),containedWarning:it({variant:"contained",color:"warning",theme:e}),outlinedPrimary:it({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:it({variant:"outlined",color:"secondary",theme:e}),outlinedError:it({variant:"outlined",color:"error",theme:e}),outlinedSuccess:it({variant:"outlined",color:"success",theme:e}),outlinedInfo:it({variant:"outlined",color:"info",theme:e}),outlinedWarning:it({variant:"outlined",color:"warning",theme:e}),textPrimary:it({variant:"text",color:"primary",theme:e}),textSecondary:it({variant:"text",color:"secondary",theme:e}),textError:it({variant:"text",color:"error",theme:e}),textSuccess:it({variant:"text",color:"success",theme:e}),textInfo:it({variant:"text",color:"info",theme:e}),textWarning:it({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function cce(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function uce(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function dce(){return{MuiCard:{styleOverrides:{root:{boxShadow:"none"}}}}}function fce(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Fs({color:e,theme:t}){const n=hn(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 pce(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 $f(e){const t=pce(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function hce(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(He.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(He.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...$f("small")},"&.size-medium":{...$f("medium")},"&.size-large":{...$f("large")}},colorPrimary:Fs({color:"primary",theme:e}),colorSecondary:Fs({color:"secondary",theme:e}),colorSuccess:Fs({color:"success",theme:e}),colorWarning:Fs({color:"warning",theme:e}),colorInfo:Fs({color:"info",theme:e}),colorError:Fs({color:"error",theme:e})}}}}function Ls({color:e,theme:t}){const n=hn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Qn({color:e,theme:t}){const n=hn(t,e),{light:r,lighter:o,main:i}=n;return{color:i,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:i,"&:hover":{color:r}}}}function gce(e){const t=Qn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Ls({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Ls({color:"secondary",theme:e}),"&.MuiChip-colorError":Ls({color:"error",theme:e}),"&.MuiChip-colorInfo":Ls({color:"info",theme:e}),"&.MuiChip-colorSuccess":Ls({color:"success",theme:e}),"&.MuiChip-colorWarning":Ls({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Qn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Qn({color:"secondary",theme:e}),"&.MuiChip-lightError":Qn({color:"error",theme:e}),"&.MuiChip-lightInfo":Qn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Qn({color:"success",theme:e}),"&.MuiChip-lightWarning":Qn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Qn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Qn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Qn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Qn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Qn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Qn({color:"warning",theme:e})}}}}}function mce(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:nt("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function vce(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function yce(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Bs({color:e,theme:t}){const n=hn(t,e),{main:r,dark:o,contrastText:i}=n,s=`${e}Button`,l=ya(t,s);return{color:i,backgroundColor:r,boxShadow:l,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${nt(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${nt(r,.9)}`}}}function bce(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Bs({color:"primary",theme:e}),"&.MuiFab-secondary":Bs({color:"secondary",theme:e}),"&.Mui-error":Bs({color:"error",theme:e}),"&.MuiFab-success":Bs({color:"success",theme:e}),"&.MuiFab-info":Bs({color:"info",theme:e}),"&.MuiFab-warning":Bs({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 Cce(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 xce(e){return{MuiInputBase:{styleOverrides:{}}}}function wce(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 Sce(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function Ace(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Ece(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function Tce(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function Ice(e){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function Oce(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function Mi({variant:e,theme:t}){const n=hn(t,e),{light:r}=n,o=ya(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function Pce(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:{...Mi({variant:"primary",theme:e}),"&.Mui-error":{...Mi({variant:"error",theme:e})}},inputSizeSmall:{padding:"9px 8px 9px 12px"},inputMultiline:{padding:0},colorSecondary:Mi({variant:"secondary",theme:e}),colorError:Mi({variant:"error",theme:e}),colorWarning:Mi({variant:"warning",theme:e}),colorInfo:Mi({variant:"info",theme:e}),colorSuccess:Mi({variant:"success",theme:e})}}}}function jce(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function Mt({variant:e,color:t,theme:n}){const r=hn(n,t),{lighter:o,light:i,dark:s,main:l,contrastText:d}=r,u={"&:focus-visible":{outline:`2px solid ${s}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:d,backgroundColor:l,"&:hover":{backgroundColor:i},...u};case"outlined":return{borderColor:l,"&:hover":{backgroundColor:o,borderColor:i},...u};case"text":default:return{color:l,"&:hover":{backgroundColor:l,color:o},...u}}}function Rce(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":Mt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":Mt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":Mt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":Mt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":Mt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":Mt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":Mt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":Mt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":Mt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":Mt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":Mt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":Mt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":Mt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":Mt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":Mt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":Mt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":Mt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":Mt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":Mt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":Mt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":Mt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":Mt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":Mt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":Mt({variant:"outlined",color:"warning",theme:e})}}}}}}function Mce(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Ns({color:e,theme:t}){const n=hn(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 kce(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 Vf(e){const t=kce(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function _ce(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(E.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":{...Vf("small")},"&.size-medium":{...Vf("medium")},"&.size-large":{...Vf("large")}},colorPrimary:Ns({color:"primary",theme:e}),colorSecondary:Ns({color:"secondary",theme:e}),colorSuccess:Ns({color:"success",theme:e}),colorWarning:Ns({color:"warning",theme:e}),colorInfo:Ns({color:"info",theme:e}),colorError:Ns({color:"error",theme:e})}}}}function $s({color:e,theme:t}){const n=hn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function Dce(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":$s({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":$s({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":$s({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":$s({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":$s({color:"info",theme:e}),"&.MuiSlider-thumbColorError":$s({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 Fce(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 zf(e,t){const n=Fce(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 Lce(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},...zf(e,"medium")},sizeLarge:{...zf(e,"large")},sizeSmall:{...zf(e,"small")}}}}}function Bce(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 Nce(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 $ce(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 Vce(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function zce(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function Wce(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},toolbar:{paddingRight:"16px !important"},displayedRows:{fontSize:"0.875rem"}}}}}function Uce(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function Hce(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function Gce(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 qce(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function Yce(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function Kce(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function Zce(e){return Qe.merge(tce(e),nce(e),rce(e),oce(e),ice(),sce(e),ace(e),lce(e),cce(),uce(),dce(),fce(),hce(e),gce(e),mce(e),vce(e),yce(),bce(e),Cce(e),xce(),wce(e),Sce(),Ace(),Ece(e),Tce(e),Ice(),Oce(),Pce(e),jce(),Rce(e),Mce(e),_ce(e),Dce(e),Lce(e),Bce(e),Nce(e),$ce(e),Vce(e),zce(e),Wce(),Uce(),Hce(),Gce(e),qce(e),Yce(),Kce())}function Xce(e){const{blue:t,red:n,gold:r,cyan:o,green:i,grey:s}=e,l={0:s[0],50:s[1],100:s[2],200:s[3],300:s[4],400:s[5],500:s[6],600:s[7],700:s[8],800:s[9],900:s[10],A50:s[15],A100:s[11],A200:s[12],A400:s[13],A700:s[14],A800:s[16]},d="#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:d},secondary:{lighter:l[100],100:l[100],200:l[200],light:l[300],400:l[400],main:l[500],600:l[600],dark:l[700],800:l[800],darker:l[900],A100:l[0],A200:l.A400,A300:l.A700,contrastText:l[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:d},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:l[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:d},success:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:d},grey:l}}function Qce(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"],s=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],l=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],d=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],u=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(i=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],s=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],l=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],d=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function Jce(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function eue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function tue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function nue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function rue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function oue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function iue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function sue(e,t,n){switch(t){case"theme1":return Qce(e,n);case"theme2":return Jce(e,n);case"theme3":return eue(e,n);case"theme4":return tue(e,n);case"theme5":return nue(e,n);case"theme6":return rue(e,n);case"theme7":return oue(e,n);case"theme8":return iue(e,n);default:return Xce(e)}}var Y0=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Y0.primary=Y0[5];var K0=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];K0.primary=K0[5];var Z0=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Z0.primary=Z0[5];var X0=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];X0.primary=X0[5];var Q0=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Q0.primary=Q0[5];var J0=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];J0.primary=J0[5];var e6=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];e6.primary=e6[5];var t6=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];t6.primary=t6[5];var n6=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];n6.primary=n6[5];var r6=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];r6.primary=r6[5];var o6=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];o6.primary=o6[5];var i6=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];i6.primary=i6[5];var s6=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];s6.primary=s6[5];var aue={red:Y0,volcano:K0,orange:Z0,gold:X0,yellow:Q0,lime:J0,green:e6,cyan:t6,blue:n6,geekblue:r6,purple:o6,magenta:i6,grey:s6},a6=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];a6.primary=a6[5];var l6=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];l6.primary=l6[5];var c6=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];c6.primary=c6[5];var u6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];u6.primary=u6[5];var d6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];d6.primary=d6[5];var f6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];f6.primary=f6[5];var p6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];p6.primary=p6[5];var h6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];h6.primary=h6[5];var g6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];g6.primary=g6[5];var m6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];m6.primary=m6[5];var v6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];v6.primary=v6[5];var y6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];y6.primary=y6[5];var b6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];b6.primary=b6[5];var lue={red:a6,volcano:l6,orange:c6,gold:u6,yellow:d6,lime:f6,green:p6,cyan:h6,blue:g6,geekblue:m6,purple:v6,magenta:y6,grey:b6};function cue(e,t){const n=e==="dark"?lue:aue;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 s=sue(n,t,e);return Q6({palette:{mode:e,common:{black:"#000",white:"#fff"},...s,text:{primary:e==="dark"?nt(s.grey[900],.87):s.grey[700],secondary:e==="dark"?nt(s.grey[900],.45):s.grey[500],disabled:e==="dark"?nt(s.grey[900],.1):s.grey[400]},action:{disabled:s.grey[300]},divider:e==="dark"?nt(s.grey[900],.05):s.grey[200],background:{paper:e==="dark"?s.grey[100]:s.grey[0],default:s.grey.A50}}})}function uue(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 ${nt(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${nt(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${nt(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${nt(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${nt(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${nt(e.palette.info.main,.2)}`,success:`0 0 0 2px ${nt(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${nt(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${nt(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${nt(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${nt(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${nt(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${nt(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${nt(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${nt(e.palette.grey[500],.2)}`}}function due(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 Wp({themeOverrides:e,children:t}){const n=jn(),{themeDirection:r,mode:o,presetColor:i,fontFamily:s}=n,l=VC(),d=O.useMemo(()=>o==="auto"?l:o,[o,l]),u=O.useMemo(()=>cue(d,i),[d,i]),p=O.useMemo(()=>due(s),[s]),g=O.useMemo(()=>uue(u),[u]),h=O.useMemo(()=>J.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:u.palette,customShadows:g,typography:p,components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:u.spacing(2.6875),height:u.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(u):e),[r,u,p,g,e]),m=Q6(h),v=J.cloneDeep(m.components??{});return m.components=J.merge(Zce(m),v),f.jsx(E.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(Py,{theme:m,children:[f.jsx(E.CssBaseline,{enableColorScheme:!0}),t]})})}function fue({children:e,theme:t,...n}){return f.jsx(z.CoreAdminContext,{...n,children:f.jsx(Wp,{themeOverrides:t,children:f.jsx(JS,{children:e})})})}function rA(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:i,disableTelemetry:s,history:l,i18nProvider:d,layout:u,loading:p,loginPage:g,authCallbackPage:h,menu:m,notification:v,queryClient:b,requireAuth:x,store:S=z.localStorageStore(),ready:I,theme:w,title:T="React Admin"}=e;return f.jsx(fue,{authProvider:t,dataProvider:i,i18nProvider:d,store:S,history:l,queryClient:b,theme:w,children:f.jsx(z.AdminUI,{layout:u,dashboard:o,disableTelemetry:s,menu:m,catchAll:n,title:T,loading:p,loginPage:g,authCallbackPage:h,notification:v,requireAuth:x,ready:I,children:r})})}class oA{constructor({catch:t,display:n,log:r,error:o}){Qa(this,"catch");Qa(this,"display");Qa(this,"log");Qa(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}}var Ul,Hl,oa;class pue{constructor(t){Dr(this,Ul);Dr(this,Hl);Dr(this,oa,new Set);const{apiUrl:n}=t??{};if(!J.isString(n)||J.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");Hr(this,Hl,n),Hr(this,Ul,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var l;const{message:n,filename:r,lineno:o,colno:i}=t,s=`${n}${r}${o}${i}`;cn(this,oa).has(s)||(cn(this,oa).add(s),fetch(`${cn(this,Hl)}/ui/error-log`,{method:"PUT",headers:cn(this,Ul),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(l=t.error)==null?void 0:l.stack})}).catch(d=>{console.warn("Unable to send error to server",d),cn(this,oa).delete(s)}))}}Ul=new WeakMap,Hl=new WeakMap,oa=new WeakMap;function hue({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=i=>new oA({catch:i!=null,display:!1,log:i!=null,error:i}),...o}){const i=B.useMemo(()=>o.errorHandler?o.errorHandler:new pue({apiUrl:t}),[t,o.errorHandler]),s=console.error,l=B.useCallback(function(d,...u){var g;if(!d)return!1;const p=r(d instanceof ErrorEvent?d:(g=d==null?void 0:d.toString())==null?void 0:g.replace(/%s/g,()=>u.shift()));return p.isCatched()||(p.logError()&&(d instanceof ErrorEvent?i.handle(d):i.handle(new ErrorEvent("window.onerror",{error:d,message:d.toString()}))),p.displayError()&&s.apply(console,arguments)),!1},[r,i,s]);return B.useEffect(()=>(window.removeEventListener("error",l),window.addEventListener("error",l),console.error=l,()=>{window.removeEventListener("error",l),console.error=s}),[l,s]),!0}var Gl,ql,Ui;class gue{constructor(t){Dr(this,Gl);Dr(this,ql);Dr(this,Ui,[]);const{apiUrl:n}=t??{};if(!J.isString(n)||J.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");Hr(this,ql,n),Hr(this,Gl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!J.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!J.isString(n)||J.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!J.isString(r)||J.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!J.some(cn(this,Ui),o=>J.isEqual(o,{code:n,lang:r}))){cn(this,Ui).push({code:n,lang:r}),fetch(`${cn(this,ql)}/i18n/message`,{method:"put",headers:cn(this,Gl),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),Hr(this,Ui,J.reject(cn(this,Ui),i=>J.isEqual(i,{code:n,lang:r})))});return}}}Gl=new WeakMap,ql=new WeakMap,Ui=new WeakMap;function iA(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,i=[{locale:n,name:n}],s=new Headers({Accept:"application/json","Content-Type":"application/json"}),l=new gue({apiUrl:t});function d(){return fetch(`${t}/i18n/languages`,{headers:s,method:"get"}).then(g=>g.json()).catch(()=>Promise.resolve(i))}function u(){return fetch(`${t}/i18n/messages`,{headers:s,method:"get"}).then(g=>g.json()).then(g=>g.reduce((h,m)=>({...h,[m.lang]:{...h[m.lang]||{},[m.code]:m.text}}),{}))}function p(g,h,m){return r||console.error(`Warning: Missing translation for key: "${g}"`),o&&(J.isString(g)?g.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${g}`):l.handleMessage({code:g,lang:m}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),g}return Promise.all([d(),u()]).then(g=>{const[h,m]=g;function v(b){return J.get(m,b,{})}return a9(v,n,h,{allowMissing:r||o,onMissingKey:p})})}function mue(e){const{locales:t,defaultLocale:n,path:r}=e,o=new Headers({Accept:"application/json","Content-Type":"application/json"});function i(s){return fetch(`${r}/${s.locale}.json`,{headers:o,method:"get"}).then(l=>l.json()).then(l=>l.reduce((d,u)=>({...d,[u.lang]:{...d[u.lang]||{},[u.code]:u.text}}),{}))}return Promise.all(t.map(i)).then(s=>J.reduce(s,(l,d)=>({...l,...d}),{})).then(s=>{function l(d){return J.get(s,d,{})}return a9(l,n,t,{allowMissing:!0})})}function vue({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})}){const[r,o]=O.useState({loading:!0,languages:null});return O.useEffect(()=>{const i=new Headers;i.append("Accept","application/json"),i.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:i}).then(s=>s.json()).then(s=>o({loading:!1,...n(s)}))},[e,t,n]),r}function sA(e){const[t,n]=O.useState(),r=$C(e);return O.useEffect(()=>{if(e.customProvider!==void 0){e.customProvider.then(n);return}iA(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r,e==null?void 0:e.customProvider]),t}const yue=new Hi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function bue({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:i,logoIcon:s,loginPage:l=f.jsx(nA,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(C3,{})}),menu:d,name:u,copy:p,version:g="0.0.0",dataProvider:h,authProvider:m,i18nProvider:v,errorHandler:b,error:x,enableNotification:S=!1,enableRegistration:I=!1,enablePasswordRecover:w=!1,enableThemeToggler:T=!1,enableLocaleSwitcher:P=!1,oauth:M={},queryClient:j=yue,background:D,notificationAPI:N="entities/notification",...k}){var Y;hue({apiUrl:n,errorHandler:b,catcherFn:V=>{const Z=V==null?void 0:V.toString(),se=["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($=>Z==null?void 0:Z.includes($));return new oA({catch:se,display:!se,log:!se&&o===!0,error:Z})}});const _=O.useMemo(()=>O.isValidElement(l)?O.cloneElement(l,{name:u,copy:p,logo:i,version:g,background:D,enableRegistration:I,enablePasswordRecover:w,oauth:M}):l,[l,u,g,p,D,i,I,w,M]),U=O.useMemo(()=>V=>{const Z=u?f.jsx(Vp,{title:u}):i,W=u?f.jsx(eA,{title:u}):s;return f.jsx(WS,{...V,name:u,copy:p,version:g,logoMain:Z,logoIcon:W,notification:N,enableThemeToggler:T,enableNotification:S,enableLocaleSwitcher:P,error:x})},[i,s,u,p,g,x,N,S,T,P]),H=sA({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o,customProvider:v});if(H===void 0)return f.jsx(f.Fragment,{});if(H.error)return f.jsx(N0,{initialConfig:t,children:f.jsx(Wp,{themeOverrides:e,children:f.jsx(tA,{})})});const G=f.jsx(Ioe,{children:f.jsx(yC,{menu:d,children:f.jsx(N0,{initialConfig:t,children:f.jsx(rA,{theme:e,layout:U,notification:GS,queryClient:j,dataProvider:h,authProvider:m,i18nProvider:H,loginPage:_,...k})})})});return(Y=M.google)!=null&&Y.clientId?f.jsx(Coe,{clientId:M.google.clientId,children:G}):G}Object.defineProperty(exports,"ArrayField",{enumerable:!0,get:()=>z.ArrayField});Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>z.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>z.BooleanField});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>z.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>z.Confirm});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>z.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>z.CustomRoutes});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>z.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>z.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>z.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>z.FieldTitle});Object.defineProperty(exports,"FilterButton",{enumerable:!0,get:()=>z.FilterButton});Object.defineProperty(exports,"FilterList",{enumerable:!0,get:()=>z.FilterList});Object.defineProperty(exports,"FilterListItem",{enumerable:!0,get:()=>z.FilterListItem});Object.defineProperty(exports,"FilterLiveSearch",{enumerable:!0,get:()=>z.FilterLiveSearch});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>z.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>z.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>z.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>z.I18nContextProvider});Object.defineProperty(exports,"ListBase",{enumerable:!0,get:()=>z.ListBase});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>z.LoadingIndicator});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>z.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>z.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>z.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>z.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>z.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>z.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>z.SaveButton});Object.defineProperty(exports,"SavedQueriesList",{enumerable:!0,get:()=>z.SavedQueriesList});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>z.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleShowLayout",{enumerable:!0,get:()=>z.SimpleShowLayout});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>z.SingleFieldList});Object.defineProperty(exports,"TabbedFormTabs",{enumerable:!0,get:()=>z.TabbedFormTabs});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>z.UrlField});Object.defineProperty(exports,"ValidationError",{enumerable:!0,get:()=>z.ValidationError});Object.defineProperty(exports,"WithListContext",{enumerable:!0,get:()=>z.WithListContext});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>z.choices});Object.defineProperty(exports,"downloadCSV",{enumerable:!0,get:()=>z.downloadCSV});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>z.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>z.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>z.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>z.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>z.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>z.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>z.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>z.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>z.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>z.useAuthProvider});Object.defineProperty(exports,"useCheckAuth",{enumerable:!0,get:()=>z.useCheckAuth});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>z.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>z.useChoicesContext});Object.defineProperty(exports,"useCreate",{enumerable:!0,get:()=>z.useCreate});Object.defineProperty(exports,"useCreateContext",{enumerable:!0,get:()=>z.useCreateContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>z.useCreateController});Object.defineProperty(exports,"useCreateSuggestionContext",{enumerable:!0,get:()=>z.useCreateSuggestionContext});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>z.useDataProvider});Object.defineProperty(exports,"useDeleteMany",{enumerable:!0,get:()=>z.useDeleteMany});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>z.useEditContext});Object.defineProperty(exports,"useEditController",{enumerable:!0,get:()=>z.useEditController});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>z.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>z.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>z.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>z.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>z.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>z.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>z.useListContext});Object.defineProperty(exports,"useListController",{enumerable:!0,get:()=>z.useListController});Object.defineProperty(exports,"useLocaleState",{enumerable:!0,get:()=>z.useLocaleState});Object.defineProperty(exports,"useLocales",{enumerable:!0,get:()=>z.useLocales});Object.defineProperty(exports,"useLogin",{enumerable:!0,get:()=>z.useLogin});Object.defineProperty(exports,"useLogout",{enumerable:!0,get:()=>z.useLogout});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>z.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>z.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>z.useRecordContext});Object.defineProperty(exports,"useReferenceArrayFieldController",{enumerable:!0,get:()=>z.useReferenceArrayFieldController});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>z.useRefresh});Object.defineProperty(exports,"useRemoveFromStore",{enumerable:!0,get:()=>z.useRemoveFromStore});Object.defineProperty(exports,"useResetStore",{enumerable:!0,get:()=>z.useResetStore});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>z.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>z.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>z.useResourceDefinitions});Object.defineProperty(exports,"useSafeSetState",{enumerable:!0,get:()=>z.useSafeSetState});Object.defineProperty(exports,"useSaveContext",{enumerable:!0,get:()=>z.useSaveContext});Object.defineProperty(exports,"useShowContext",{enumerable:!0,get:()=>z.useShowContext});Object.defineProperty(exports,"useShowController",{enumerable:!0,get:()=>z.useShowController});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>z.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>z.useSimpleFormIteratorItem});Object.defineProperty(exports,"useStore",{enumerable:!0,get:()=>z.useStore});Object.defineProperty(exports,"useStoreContext",{enumerable:!0,get:()=>z.useStoreContext});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>z.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>z.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>z.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>z.useUnselectAll});Object.defineProperty(exports,"useUpdate",{enumerable:!0,get:()=>z.useUpdate});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>z.useUpdateMany});Object.defineProperty(exports,"withLifecycleCallbacks",{enumerable:!0,get:()=>z.withLifecycleCallbacks});exports.ActionsField=joe;exports.ActionsMenu=ui;exports.ActivatePage=Q1e;exports.ActiveFiltersChips=V0;exports.AddTableRow=jp;exports.Admin=rA;exports.AnimateButton=jD;exports.AppBarStyled=AS;exports.ApplicaAdmin=bue;exports.ArrayInput=Poe;exports.AttachmentField=rx;exports.AttachmentInput=fx;exports.AuthBackground=C3;exports.AutocompleteArrayInput=tie;exports.AutocompleteInput=rie;exports.Avatar=du;exports.BooleanInput=iie;exports.Breadcrumbs=ky;exports.BulkActionsToolbar=px;exports.BulkDeleteWithConfirmButton=HC;exports.BulkFloatingActionsToolbar=kie;exports.Button=os;exports.CardForm=UC;exports.ChangePasswordButton=jS;exports.ChangePasswordForm=Ep;exports.CircularWithLabel=_z;exports.CircularWithPath=Dz;exports.CoverField=ix;exports.Create=Fse;exports.CreateButton=qC;exports.CreateButtonClasses=Du;exports.CreateInDialogButton=Hre;exports.Datagrid=mx;exports.DateAgoField=ax;exports.DateField=Noe;exports.DateInput=lie;exports.DateTimeInput=uie;exports.DeleteWithConfirmButton=is;exports.Dot=l2;exports.Drawer=SS;exports.DrawerHeader=hw;exports.DrawerHeaderStyled=fw;exports.DrawerToggle=IS;exports.Edit=Nse;exports.EditInDialogButton=Yre;exports.EmailField=Voe;exports.Empty=f1;exports.EmptyClasses=si;exports.Error=ep;exports.Field=nw;exports.FileField=lx;exports.FileInput=fie;exports.FilterSidebar=qc;exports.FilterSidebarButton=ise;exports.FilterSidebarContext=wp;exports.Footer=Np;exports.FormHeader=zse;exports.FunctionField=$0;exports.GenericErrorPage=tA;exports.GoogleLoginButton=QC;exports.Header=OS;exports.HeaderButton=ES;exports.HeaderIconButton=E1e;exports.HeaderNotification=PS;exports.HeaderProfile=kS;exports.HeaderSpacer=DS;exports.HeaderToggleButton=Ra;exports.HorizontalBar=FS;exports.IconButton=ba;exports.ImageAttachmentField=cx;exports.ImageAttachmentInput=pie;exports.ImageField=ox;exports.ImageInput=mie;exports.ImpersonateUserButton=Eoe;exports.LabeledArrayInput=nx;exports.LabeledInput=on;exports.Layout=WS;exports.LayoutContent=dw;exports.LayoutProvider=lw;exports.LayoutWrapper=zS;exports.LinearWithIcon=Fz;exports.LinearWithLabel=Lz;exports.List=vse;exports.ListItem=Z1e;exports.ListTabsToolbar=z0;exports.ListToolbar=Ap;exports.ListViewProvider=Sx;exports.Loadable=L1e;exports.Loader=HS;exports.LoadingButton=Yy;exports.LocalStorage=kC;exports.LocaleButton=TS;exports.LocalizedTextField=Uoe;exports.LocalizedTextInput=bie;exports.LoginPage=nA;exports.Logo=pw;exports.LogoutButton=RS;exports.LongForm=zt;exports.MainCard=Nn;exports.MainIcon=Vp;exports.MenuConfigProvider=yC;exports.MenuPopover=Xy;exports.NavCollapse=Pl;exports.NavGroup=BS;exports.NavItem=Ol;exports.NavList=NS;exports.NavMenu=LS;exports.Navigation=$S;exports.Notification=GS;exports.NotificationList=xse;exports.NumberInput=xie;exports.OnboardingActionType=ra;exports.OnboardingContext=zp;exports.OnboardingModes=Wl;exports.OnboardingProvider=W1e;exports.OnboardingTip=q1e;exports.Pagination=k3;exports.PaginationActions=xp;exports.PopupTransition=kz;exports.RadioButtonGroupInput=Sie;exports.ReadonlyField=Yoe;exports.RecordInput=Aie;exports.RecoverPage=J1e;exports.ReferenceArrayInput=Eie;exports.ReferenceInput=Tie;exports.ReferenceLookupInput=Sse;exports.ReferenceManyField=dx;exports.ReferenceManyInput=Ese;exports.ReferenceManyLookupInput=Ase;exports.RegisterPage=ece;exports.RemoveSavedQueryDialog=Cx;exports.ResponsiveSection=_S;exports.SaveFiltersButton=bx;exports.SaveFiltersDialog=yx;exports.SavedFiltersList=xx;exports.ScrollTop=JS;exports.ScrollX=Y1e;exports.SearchInput=Cp;exports.SelectArrayInput=Ise;exports.SelectInput=Pse;exports.SessionStorage=DC;exports.ShadowBox=K1e;exports.Show=oae;exports.Sidebar=xr;exports.SimpleBar=wS;exports.SimpleForm=yp;exports.SimpleFormIterator=sae;exports.SimpleList=wse;exports.SizeField=Xoe;exports.SmallIcon=eA;exports.SmartTextInput=jse;exports.StopImpersonateButton=MS;exports.StyledArrow=Ky;exports.TabbedForm=Pp;exports.TableCreateButton=Mp;exports.TableFormIterator=D3;exports.TableFormIteratorContext=kp;exports.TableFormIteratorItem=ow;exports.TableFormIteratorItemContext=Rp;exports.TextField=ux;exports.TextInput=Sr;exports.ThemeColor=$p;exports.ThemeContext=pp;exports.ThemeCustomizationProvider=Wp;exports.ThemeProvider=N0;exports.ThemeToggler=VS;exports.TimeInput=_se;exports.Toolbar=gi;exports.Tooltip=b3;exports.TopToolbar=US;exports.Transitions=ci;exports.WizardForm=sw;exports.createI18nProvider=iA;exports.createJsonI18nProvider=mue;exports.getLocalizedValue=up;exports.getPosition=Zy;exports.getThemeColor=hn;exports.getThemeShadow=ya;exports.localizedValueHasAllLocales=ku;exports.localizedValueHasAtLeastOneLocale=_C;exports.onboardingModesSchema=YS;exports.onboardingTopicSchema=qS;exports.parseTime=BC;exports.useBreadcrumbs=bC;exports.useDialogState=np;exports.useGetChipValue=Sp;exports.useGetLocalizedValue=bre;exports.useI18nLanguages=vue;exports.useI18nProvider=sA;exports.useIsEnabledSidebarFilter=vx;exports.useLayoutContext=_p;exports.useLayoutDispatch=Sae;exports.useLayoutDrawerState=as;exports.useLayoutLogoState=uw;exports.useLayoutMediaState=ir;exports.useLayoutNotificationsState=L3;exports.useLayoutState=Pa;exports.useLayoutThemeState=Aae;exports.useListViewContext=_3;exports.useLocalStorage=dp;exports.useLocalizedValue=yre;exports.useMemoizedObject=$C;exports.useMenu=tp;exports.useMenuConfig=Vl;exports.useMenuContext=I3;exports.useOnboardingDataProvider=KS;exports.useOnboardingTip=QS;exports.usePopoverState=Ta;exports.useRefDimensions=Cre;exports.useResourceDefaultValues=Lse;exports.useResourceTitle=fp;exports.useRestartOnboarding=H1e;exports.useSessionStorage=B0;exports.useSx=$r;exports.useSystemTheme=VC;exports.useTableFormIterator=rw;exports.useTableFormIteratorItem=tw;exports.useThemeConfig=jn;exports.useThemeContext=hp;exports.useUuid=zC;exports.useWizardFormContext=F3;exports.uuid=_0;exports.walkChildren=R3;exports.withLayoutProvider=cw;
624
+ 84 21 143 -17 18 -31 22 -78 22 -49 0 -61 -4 -88 -29z`,fill:"currentColor"})]})})}function Fie({width:e=250,height:t=250,className:n=""}){return f.jsxs("svg",{width:e,height:t,viewBox:"0 0 2134 2134",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M1045.33 52.933C1017.87 55.733 987.333 72.133 969.466 93.733C960.533 104.533 961.199 103.733 956.666 111.333C953.066 117.2 952.666 119.2 952.666 128.666C952.666 138.666 952.933 139.733 957.199 145.733C959.733 149.2 966.666 155.733 972.533 160.266C989.999 173.466 999.066 183.733 1003.6 194.933C1006.93 203.733 1007.33 206.133 1007.2 220C1007.2 232 1006.4 237.6 1004.13 245.333C997.733 266.266 997.733 266.266 1019.6 263.466C1049.47 259.6 1074.4 253.333 1089.73 245.866C1109.87 236.133 1125.2 220 1132.53 200.666C1136 191.466 1136.27 189.6 1135.73 176.933C1135.2 165.066 1134.53 161.866 1131.07 154.533C1125.47 142.533 1120.67 137.6 1100.53 122.533C1076.27 104.666 1071.6 97.1996 1066.67 69.5996C1063.47 51.733 1062.8 51.0663 1045.33 52.933ZM1055.87 61.733C1056.67 62.7996 1058.13 68.2663 1059.33 73.9996C1061.33 84.6663 1064.8 95.1996 1069.2 103.733C1071.87 108.933 1086 123.2 1092.67 127.333C1098 130.666 1110.4 141.066 1114.93 146C1116.93 148.133 1120.27 153.333 1122.27 157.333C1125.73 164 1126 165.866 1126 179.333C1126 192.933 1125.73 194.666 1121.87 202.666C1119.6 207.466 1115.33 214.4 1112.27 218.133C1106.67 225.2 1092.13 235.866 1083.2 239.333C1080.27 240.533 1077.07 241.866 1076 242.533C1074.8 243.2 1071.2 244.133 1068 244.666C1064.67 245.2 1059.73 246.533 1056.8 247.466C1054 248.533 1048.27 249.866 1044.13 250.666C1040 251.333 1032.13 252.933 1026.67 254C1021.2 255.066 1015.6 256 1014.27 256C1011.2 256 1010 252.533 1011.87 248.933C1015.47 241.866 1017.07 216.8 1014.53 203.6C1011.33 186.133 1004.4 176.133 984.266 159.866C965.333 144.666 962.133 141.2 960.133 133.733C958.399 127.466 960.266 117.2 963.466 114.533C964.533 113.733 965.333 112.266 965.333 111.333C965.333 108.533 986.799 86.6663 994.933 81.1996C1009.73 71.4663 1026 64.933 1044.67 61.333C1052.8 59.733 1054.27 59.8663 1055.87 61.733Z",fill:"currentColor"}),f.jsx("path",{d:"M672 182C669.333 185.2 671.733 186.4 682.666 186.933C691.066 187.333 693.6 188 698.666 191.333C705.466 196 711.333 204 712.8 210.666C713.333 213.2 713.866 227.333 713.866 242C714 274.266 714.4 275.466 731.466 293.333C737.6 299.866 743.2 306.666 743.866 308.4C744.533 310.133 744.8 315.333 744.4 319.733C743.466 329.6 745.6 333.6 753.066 336.666C762.933 340.8 768 348.4 768 358.8C768 362.266 768.533 365.466 769.2 365.866C772.666 368.133 777.333 361.733 777.333 354.933C777.2 348.133 770.533 336.933 763.733 332.4C760.266 330.133 756.666 328 755.866 327.733C754.8 327.333 753.866 322.533 753.333 315.2C752.4 301.733 750.533 298.266 738.666 287.6C724 274.4 720.933 265.6 722.133 240.4C723.733 207.6 718 193.066 699.733 183.866C693.466 180.666 690.4 180 682.933 180C676.133 180 673.2 180.533 672 182Z",fill:"currentColor"}),f.jsx("path",{d:"M896.8 223.066C891.333 231.2 889.2 244.4 891.866 252.8C892.533 254.933 895.066 262.933 897.333 270.4C904.666 294.266 902.133 303.333 883.866 317.2C873.866 324.8 872.266 326.533 867.2 335.333C863.733 341.466 863.333 343.066 863.333 354.666C863.466 366.666 863.6 367.733 867.733 374.266C872 380.933 875.866 383.733 878.666 382C880.8 380.666 880.133 374.666 877.466 371.066C873.333 365.866 871.2 354.266 873.066 347.066C875.066 339.733 881.466 331.066 890.133 324.266C904.266 313.066 910.666 302.8 910.666 291.2C910.666 285.866 908 274.133 904.133 262.666C898.666 246.533 898.266 242.666 901.333 234C906.133 220.533 906.133 220 902.133 220C900 220 898 221.2 896.8 223.066Z",fill:"currentColor"}),f.jsx("path",{d:"M1431.33 248.133C1429.87 248.933 1422.13 256.4 1414 264.533C1379.87 299.467 1350.13 321.333 1313.33 339.067C1281.73 354.267 1246.67 364.667 1216 368.133C1187.33 371.333 1186.8 371.6 1192.53 383.6C1199.73 398.267 1211.2 414 1226 429.067C1250 453.867 1252.4 454.533 1292.4 450.667C1308 449.2 1330.13 446.4 1341.73 444.533C1380.8 438.4 1436.53 424.667 1446.93 418.667C1448.27 417.867 1450 417.333 1450.8 417.333C1452.53 417.333 1457.87 415.067 1476 406.267C1510.67 389.6 1542.8 362.133 1560.53 334.133C1563.73 329.2 1561.73 325.333 1554.13 321.6C1551.2 320.133 1545.07 317.2 1540.67 315.067C1504.8 297.733 1475.87 278.933 1454 258.533C1440.93 246.4 1437.47 244.8 1431.33 248.133ZM1447.07 263.733C1451.6 268 1458.4 273.867 1462 276.667C1465.73 279.6 1469.87 283.067 1471.2 284.267C1478 290.4 1499.87 303.733 1524.67 316.667C1531.33 320.133 1539.6 324.533 1543.33 326.533C1546.93 328.4 1550.13 331.067 1550.4 332.267C1551.07 335.867 1537.6 351.733 1524.53 362.667C1518 368.133 1511.87 373.467 1510.8 374.4C1504.13 380.8 1468.13 401.067 1455.07 405.867C1452.27 406.8 1444.27 409.867 1437.07 412.4C1416.8 419.867 1381.2 429.067 1348.67 435.2C1314.67 441.6 1267.07 446.267 1258.67 444C1251.47 442 1242.93 435.333 1227.87 420C1215.6 407.467 1200 386.267 1200 382.267C1200 378.667 1203.33 377.6 1220.67 375.333C1246.27 372.133 1274 364.8 1297.33 355.333C1308.27 350.933 1334 338 1338.8 334.533C1340.8 333.2 1342.8 332 1343.33 332C1343.73 332 1346.13 330.533 1348.53 328.667C1350.93 326.8 1353.33 325.333 1353.87 325.333C1357.07 325.333 1394.8 294.133 1412.67 276.8C1424.4 265.467 1435.07 256.133 1436.4 256.133C1437.73 256 1442.53 259.467 1447.07 263.733Z",fill:"currentColor"}),f.jsx("path",{d:"M1422.67 316.933C1422.67 319.067 1435.47 330.4 1439.33 331.867C1440.13 332.133 1441.6 333.067 1442.67 334C1447.87 338.267 1464.67 345.733 1476.67 349.2C1491.87 353.467 1495.2 353.867 1497.33 351.333C1499.07 349.333 1498.93 348.667 1496.27 346.667C1494.67 345.2 1489.87 343.467 1485.6 342.667C1475.07 340.533 1463.6 336.4 1452.67 330.933C1442.67 326 1432 319.067 1430.27 316.267C1428.53 313.733 1422.67 314.267 1422.67 316.933Z",fill:"currentColor"}),f.jsx("path",{d:"M1354.67 350.533C1354.67 354.133 1365.33 365.466 1376.27 373.466C1387.47 381.6 1397.33 386.666 1410.8 391.2C1419.47 394.133 1420.93 394.266 1422.67 392.533C1424.13 391.066 1424.27 390 1423.2 388.4C1421.47 385.6 1420.4 385.066 1408.13 381.2C1395.2 377.066 1377.87 366.8 1366.67 356.266C1357.2 347.6 1354.67 346.4 1354.67 350.533Z",fill:"currentColor"}),f.jsx("path",{d:"M1293.33 369.2C1293.33 372.933 1305.2 387.866 1313.6 394.666C1322.27 401.6 1336.93 410 1342.4 411.333C1345.07 411.866 1346.8 411.466 1348 410C1350.4 407.066 1348.4 405.333 1334.13 398C1321.47 391.6 1305.87 378.8 1300.67 370.266C1298 366.133 1293.33 365.333 1293.33 369.2Z",fill:"currentColor"}),f.jsx("path",{d:"M1249.33 385.6C1249.2 390.4 1260.13 408 1269.2 417.466C1278.93 428 1282.27 429.733 1285.33 426C1287.6 423.2 1286.27 420.666 1279.73 416C1276.53 413.733 1271.73 409.066 1268.93 405.6C1266.27 402.133 1263.33 398.666 1262.67 397.733C1261.87 396.8 1260.67 394.4 1259.73 392.4C1258.8 390.4 1257.33 387.6 1256.27 386.266C1254 383.6 1249.33 383.2 1249.33 385.6Z",fill:"currentColor"}),f.jsx("path",{d:"M1005.33 316.666C1004.4 317.733 1002.93 318.666 1002.13 318.666C999.333 318.666 987.333 325.6 982.933 329.866C975.466 336.8 974.133 340.533 973.999 354.8C973.866 366.266 973.466 368 970.533 371.733C968.799 374 963.599 377.866 959.066 380.266C952.666 383.6 950.666 385.333 950.666 387.6C950.666 393.866 959.599 392.266 971.066 384C980.266 377.466 981.866 373.6 982.666 356C983.199 342.8 983.733 340 986.266 336.933C989.599 332.533 999.733 325.333 1002.53 325.333C1003.6 325.333 1006.4 323.733 1008.93 321.866C1012.53 319.066 1013.2 318 1011.87 316.533C1009.87 314.133 1007.47 314.133 1005.33 316.666Z",fill:"currentColor"}),f.jsx("path",{d:"M298 343.066C282.4 352.533 272.133 356.266 252.133 359.466C235.867 362.133 211.2 361.466 194 358C178.267 354.933 174.667 356.533 179.2 365.066C180.267 367.066 185.733 378.266 191.333 390C196.933 401.733 202.8 413.066 204.4 415.333C206.133 417.466 208.133 420.8 209.067 422.666C212.533 429.466 228.267 450.4 240.933 465.066C253.867 480 269.2 494.933 282.933 505.6C286.8 508.666 290.8 512 291.733 512.8C294.133 515.2 322 533.6 330.667 538.533C355.2 552.4 386.533 565.2 412.4 572C428.933 576.4 434.8 573.6 458 551.066C476.267 533.2 487.2 515.333 492 495.333C495.333 481.466 495.6 473.066 492.8 463.733C490 454.133 487.067 451.866 470.533 446.133C442.667 436.4 406 419.333 390.933 409.2C387.733 407.066 384.933 405.333 384.533 405.333C383.467 405.333 362.8 390.933 356.4 385.733C346.267 377.6 327.2 358 319.333 347.6C315.2 342 310.667 337.333 309.467 337.333C308.267 337.333 303.067 339.866 298 343.066ZM316.8 358.133C324.4 368.533 338.667 382.933 351.867 393.466C360.4 400.4 379.2 413.866 384 416.4C385.867 417.466 394.8 422.4 404 427.466C417.867 435.2 449.333 450 467.867 457.466C470.4 458.533 475.467 460.8 479.2 462.666C485.333 465.733 486 466.4 486.4 471.066C487.467 483.2 481.733 501.2 469.733 523.333C466.133 530 435.867 559.2 429.333 562.4C422.933 565.466 423.467 565.466 406.667 560.666C369.067 550.133 334.667 532.133 299.067 504.4C275.467 486 265.067 475.733 236.667 442.8C227.733 432.533 208.667 403.066 199.6 385.6C193.067 373.2 192 370.266 193.467 368.533C194.4 367.466 196 366.933 197.067 367.333C202.533 369.466 229.6 370.533 242.667 369.2C270.133 366.4 296.4 358.266 303.6 350.266C304.8 349.066 306.533 348 307.467 348C308.4 348 312.667 352.533 316.8 358.133Z",fill:"currentColor"}),f.jsx("path",{d:"M307.733 393.867C305.6 394.933 303.2 396.267 302.4 396.933C296.533 400.533 286 402.933 272.667 403.6C264.667 404 256.8 404.933 255.467 405.733C252.933 406.933 252.933 407.067 255.333 408.8C259.6 412 286.533 411.333 296.533 407.867C313.867 401.867 318.667 397.867 314.4 393.6C312.4 391.6 312.133 391.6 307.733 393.867Z",fill:"currentColor"}),f.jsx("path",{d:"M348.667 437.867C336.8 450 324.8 456.933 313.067 458.267C306.133 459.067 303.2 461.333 304.533 464.8C306.667 470.133 331.067 463.467 344 454C354.533 446.267 364.267 434.933 363.733 430.8C363.467 428.933 362.4 427.2 361.333 427.067C360.267 426.933 354.533 431.733 348.667 437.867Z",fill:"currentColor"}),f.jsx("path",{d:"M394.133 454.933C393.067 456.667 391.867 459.467 391.333 461.333C387.6 474.267 374.267 497.6 366.133 505.2C362.533 508.533 361.6 513.867 364.133 515.467C367.733 517.6 385.867 495.067 394.267 478C401.2 464.133 403.467 456.533 401.467 454.133C398.933 451.2 396.4 451.467 394.133 454.933Z",fill:"currentColor"}),f.jsx("path",{d:"M444.4 474.4C443.6 474.933 438.533 484.667 432.933 496C427.467 507.333 419.2 522.267 414.667 528.933C406.533 541.2 405.867 544 410.8 544C417.6 544 449.2 490.267 449.333 478.533C449.333 474.933 446.8 472.933 444.4 474.4Z",fill:"currentColor"}),f.jsx("path",{d:"M1788.93 343.733C1787.6 345.067 1786.67 347.333 1786.67 348.8C1786.67 353.333 1780.13 371.867 1774.8 382.4C1762.93 406.4 1739.87 433.733 1717.07 451.2C1714.13 453.333 1712 456.133 1712 457.6C1712 459.067 1715.2 464.533 1719.07 469.867C1731.87 487.067 1739.87 506.667 1742.8 527.6C1744.27 538.933 1746.13 542.133 1750.4 540.8C1754.4 539.467 1780.4 520.667 1794 509.2C1829.47 479.067 1849.33 448.533 1849.33 424.133C1849.2 401.333 1838.13 381.733 1810.4 355.333C1802.27 347.6 1794.67 341.333 1793.33 341.333C1792.13 341.333 1790.13 342.4 1788.93 343.733ZM1811.47 368.533C1824 381.467 1835.2 396.8 1838.13 405.2C1840.53 411.867 1840.4 426.8 1837.87 435.733C1831.6 457.467 1816.67 477.067 1786.67 503.2C1762.53 524.133 1756.13 528.8 1752.8 527.6C1751.87 527.2 1750.67 523.733 1750.13 519.867C1748.13 504.667 1738.13 480.8 1728.53 468.267C1723.07 461.067 1722.93 458.267 1727.73 454.267C1740.67 443.733 1759.73 423.333 1767.33 412C1778.27 395.6 1792 368.667 1792 363.733C1792 360.667 1794.93 356 1796.93 356C1798.27 356 1804.8 361.6 1811.47 368.533Z",fill:"currentColor"}),f.jsx("path",{d:"M518.667 392C513.467 393.733 509.867 396.133 506.267 400.267C498.267 409.467 501.333 416.267 509.6 407.333C514.667 401.6 522.4 397.333 527.467 397.333C532.933 397.333 540.4 402.267 544.4 408.533C546.4 411.733 548 414.933 548 415.733C548 420.267 555.733 435.467 560.8 441.2C572 453.733 586 456.533 607.733 450.8C614.533 448.933 620.267 448.133 622.667 448.667C626.8 449.6 632.667 454.8 638.533 462.667C645.2 471.6 656.4 474.667 662.8 469.6C667.467 465.733 665.333 462.133 659.067 463.067C654.667 463.867 649.733 462.4 648 460C642.533 452.133 632.267 442.533 627.6 440.933C621.867 439.067 621.467 439.067 598 442.8C584.4 444.933 576.533 443.733 570.4 438.667C565.867 434.933 563.867 431.6 557.2 416.267C550.667 401.333 546.533 396 538.133 391.867C531.6 388.667 528 388.667 518.667 392Z",fill:"currentColor"}),f.jsx("path",{d:"M833.866 414.8C823.333 418 815.733 422.4 806.933 429.866C799.333 436.4 796.666 437.2 792.533 434C788.266 430.666 772.666 431.466 764.4 435.333C756.666 438.933 749.333 445.466 746 452C744.666 454.533 741.866 456.933 738.933 458.266C726.933 463.2 720.133 472.4 720 483.466C720 488.533 719.466 489.466 712.933 494.533C703.733 501.6 699.066 510 697.866 521.866C697.066 529.6 696.4 531.6 693.2 534.266C688.133 538.933 684 548.133 684 555.2C684 560.4 683.466 561.333 679.733 563.733C677.333 565.2 669.866 571.066 663.333 576.8C656.666 582.666 648.533 589.333 645.333 591.866C642 594.4 638.8 597.066 638 597.866C637.333 598.666 628.533 606.533 618.666 615.333C573.866 654.933 547.6 683.6 523.6 719.066C516.4 729.733 504.8 754.4 500.933 767.2C497.6 778.4 496.8 783.733 496.4 798.8C495.6 821.733 498 832.533 509.333 855.333C515.866 868.666 519.6 874 531.066 887.333C538.8 896.133 548.4 906.133 552.533 909.6C556.666 913.066 567.466 922.8 576.4 931.466C596.133 950.266 628 975.066 646.133 985.733C650.266 988 655.733 991.333 658.4 992.933C664.666 996.8 701.333 1014.8 709.333 1018C712.666 1019.33 717.2 1021.2 719.6 1022.13C721.866 1023.2 724.666 1024 725.6 1024C726.666 1024 728.666 1025.2 730 1026.67C732 1028.93 732.133 1029.87 730.933 1032.67C729.066 1036.8 728.533 1036.8 719.733 1032.93C715.866 1031.2 706.933 1027.73 700 1025.33C693.066 1022.93 686.8 1020.53 686 1020C685.333 1019.47 682.533 1018.53 680 1018C677.466 1017.47 674.533 1016.4 673.333 1015.87C671.066 1014.4 631.6 1000.27 614 994.533C607.466 992.266 600.8 990 599.333 989.2C597.866 988.533 592.533 986.8 587.333 985.2C557.066 976.266 555.6 976 540.933 976C528 976 496.266 979.066 471.333 982.666C466.266 983.333 456.266 984.533 449.333 985.333C442.4 986.133 430.133 987.733 422 988.8C414 989.733 402.266 991.2 396 991.866C389.733 992.666 369.333 995.066 350.666 997.333C332 999.466 313.733 1001.73 310 1002.13C306.4 1002.4 296.4 1003.6 288 1004.8C279.6 1005.87 260.133 1008.13 244.666 1010C218.133 1013.2 171.066 1019.07 137.333 1023.33C114.266 1026.27 95.7331 1029.33 92.3997 1030.67L89.3331 1032V1090.67V1149.47L82.5331 1156C78.6664 1159.73 75.9997 1163.47 76.2664 1164.8C76.5331 1166 79.0664 1167.73 81.8664 1168.67C84.6664 1169.73 87.5997 1171.33 88.1331 1172.27C88.7997 1173.2 89.3331 1184.53 89.3331 1197.33C89.4664 1238.27 91.8664 1344.67 92.6664 1346.8C93.4664 1348.8 103.6 1354.67 106.266 1354.67C107.066 1354.67 108.4 1355.6 109.333 1356.67C110.266 1357.73 113.333 1359.33 116.266 1360C119.333 1360.93 121.333 1362.13 120.933 1363.07C120.133 1365.73 115.866 1365.73 110.133 1362.93C102.666 1359.33 96.7997 1358.4 93.9997 1360.53C91.7331 1362.13 91.7331 1364.53 93.0664 1399.87C94.6664 1441.73 94.9331 1442.53 103.6 1445.33C106.4 1446.27 110.533 1447.73 112.666 1448.67C118.933 1451.2 129.866 1455.33 148.666 1462.13C158.266 1465.47 167.866 1469.2 170.266 1470.13C172.533 1471.2 174.8 1472 175.466 1472C176 1472 180.933 1473.73 186.533 1475.87C192.133 1478 202.933 1482 210.666 1484.67C218.4 1487.47 226.533 1490.4 228.933 1491.47C231.2 1492.53 233.6 1493.33 234.133 1493.33C234.8 1493.33 238.266 1494.53 242 1496C245.6 1497.47 256.533 1501.33 266 1504.8C275.6 1508.13 284.533 1511.47 286 1512.13C287.466 1512.8 291.333 1514.13 294.666 1515.2C298 1516.27 304.933 1518.67 310 1520.67C315.2 1522.53 325.333 1526.27 332.666 1528.93L345.866 1533.6L355.333 1530.93C372.4 1526.13 384.533 1522.67 398 1518.53C405.333 1516.27 417.333 1512.67 424.666 1510.53C432 1508.27 442.533 1505.07 448 1503.33C453.466 1501.73 463.066 1498.8 469.333 1496.93C475.6 1495.07 487.866 1491.33 496.666 1488.67C505.466 1486 517.733 1482.27 524 1480.4C530.266 1478.53 540.8 1475.33 547.333 1473.33C572.4 1465.73 604.133 1456 627.333 1449.07C634.666 1446.93 642.533 1444.4 644.666 1443.47C646.933 1442.4 650.8 1441.2 653.333 1440.8C658.533 1439.73 684.933 1431.73 695.733 1427.87C706.666 1424 707.2 1424.53 705.866 1441.2C704.4 1458.53 704.266 1524.13 705.6 1541.07C706.533 1551.87 706.4 1553.47 704.4 1554.27C702.266 1555.07 688.266 1553.73 659.866 1550C652.133 1548.93 640.533 1547.47 633.866 1546.67C627.333 1546 608.266 1543.47 591.333 1541.33C574.533 1539.07 553.466 1536.27 544.666 1535.2C535.866 1534 526.266 1533.2 523.333 1533.2C518.533 1533.33 516.4 1532.27 506.133 1524.4C478.933 1503.47 475.466 1503.07 461.2 1519.33C453.6 1528.13 445.333 1538 439.733 1544.93C437.333 1548 426.933 1560.8 416.666 1573.33C406.4 1585.87 397.066 1597.47 396 1599.07C394.933 1600.67 392.4 1604 390.4 1606.4C386.266 1611.2 385.733 1613.6 388.4 1615.87C390.4 1617.47 397.866 1616.67 421.333 1612.27C429.066 1610.8 441.333 1608.67 448.666 1607.33C456 1606.13 464.266 1604.53 466.933 1603.73C470.8 1602.53 473.733 1602.67 479.333 1604C489.466 1606.4 490 1607.33 487.6 1618.93C483.866 1636.53 483.6 1640.67 486.266 1642.93C488.533 1644.8 509.066 1657.2 513.333 1659.07C514.4 1659.6 519.866 1662.93 525.333 1666.53C530.8 1670.27 537.733 1674.53 540.666 1676C543.6 1677.6 563.466 1690.53 584.666 1704.8C619.466 1728 634.933 1738.93 677.066 1770.27C717.333 1800.13 745.333 1816 770.666 1823.2C774 1824.13 778 1825.6 779.333 1826.27C780.8 1827.07 784.666 1828.13 788 1828.67C791.333 1829.2 797.066 1830.4 800.666 1831.47C811.066 1834.27 840.533 1836.4 855.733 1835.33C882.933 1833.6 905.2 1826.27 927.333 1811.87C940.266 1803.47 947.866 1796.27 956.533 1784.67C974.266 1761.2 981.466 1744.67 990.533 1706C991.333 1702.8 991.333 1693.33 990.666 1682C988.133 1641.87 989.6 1598 995.333 1544.67C1004.67 1458.67 1004.8 1457.2 1008.27 1446C1010.8 1438 1012.4 1435.47 1019.2 1428.67C1033.2 1414.8 1064.13 1387.87 1067.73 1386.53C1072.53 1384.67 1077.07 1386.93 1078.13 1391.6C1079.6 1397.2 1075.07 1403.47 1061.2 1415.07C1026.93 1443.6 1025.6 1445.2 1024 1462.8C1021.47 1489.6 1016.53 1576.4 1013.87 1638.93L1012.93 1660L1028.8 1675.73C1057.6 1704.53 1082.27 1717.33 1108.27 1717.33C1141.73 1717.33 1170.4 1694.4 1192.27 1650.13C1198.53 1637.2 1205.33 1614.67 1205.33 1606.27C1205.33 1601.33 1208 1600.67 1214.13 1603.87C1216.93 1605.47 1220.27 1606.67 1221.33 1606.67C1222.4 1606.67 1224.93 1607.47 1226.93 1608.53C1228.93 1609.6 1232.27 1610.8 1234.53 1611.33C1236.8 1611.87 1239.2 1613.2 1239.87 1614.53C1240.53 1615.73 1241.73 1632.67 1242.53 1652C1243.33 1671.47 1244.93 1702.53 1246 1721.2C1247.33 1741.87 1247.6 1755.6 1246.8 1756.4C1246.13 1757.07 1238.13 1753.87 1226.4 1748.13C1215.73 1742.93 1206.13 1738.67 1204.8 1738.67C1203.6 1738.67 1199.73 1740.27 1196.27 1742.27C1192.8 1744.13 1187.73 1747.07 1185.07 1748.53C1170.67 1756.67 1155.07 1766 1153.33 1767.33C1152.27 1768.27 1148 1770.8 1144 1772.93C1135.47 1777.73 1096.8 1800.67 1092 1803.87C1090.13 1805.2 1083.07 1809.47 1076.27 1813.47C1069.47 1817.47 1059.33 1823.47 1053.6 1826.93C1048 1830.4 1042.4 1833.73 1041.33 1834.27C1040.27 1834.8 1033.33 1838.67 1026 1842.93C1011.2 1851.6 1012 1851.2 1000 1858.4C995.2 1861.33 989.2 1864.93 986.666 1866.4C984.133 1867.73 977.333 1871.87 971.466 1875.2C965.733 1878.67 958 1883.2 954.133 1885.2C940.933 1892.4 937.333 1894.93 937.333 1897.33C937.333 1898.67 938.133 1900.4 939.2 1901.2C940.933 1902.67 952.266 1906.93 961.333 1909.47C963.866 1910.13 968.133 1911.6 970.666 1912.67C975.333 1914.53 977.6 1915.2 1011.33 1925.33C1021.6 1928.4 1035.73 1932.67 1042.67 1934.8C1049.6 1936.93 1058.67 1939.47 1062.67 1940.53C1066.67 1941.47 1071.47 1943.07 1073.33 1943.73C1075.2 1944.53 1082.4 1946.67 1089.33 1948.53C1096.27 1950.53 1105.87 1953.2 1110.67 1954.67C1115.47 1956 1127.73 1959.6 1138 1962.53C1148.27 1965.47 1165.07 1970.27 1175.33 1973.2C1185.6 1976.13 1198.8 1979.73 1204.67 1981.33C1210.53 1983.07 1217.73 1985.07 1220.67 1986.13C1223.6 1987.07 1232 1989.47 1239.33 1991.33C1246.67 1993.33 1256.27 1996 1260.67 1997.33C1265.07 1998.67 1273.73 2001.07 1280 2002.67C1286.27 2004.27 1294.93 2006.67 1299.33 2008.13C1306.27 2010.27 1335.6 2018.27 1347.33 2021.33C1349.6 2021.87 1352.27 2022.8 1353.47 2023.2C1354.67 2023.73 1364.27 2026.4 1374.8 2029.33C1385.33 2032.13 1403.07 2036.93 1414.27 2039.87C1433.07 2044.93 1434.93 2045.33 1438.93 2043.6C1442.27 2042.13 1449.07 2034.13 1467.2 2009.87C1480.4 1992.4 1492.53 1976.4 1494.4 1974.4C1496.27 1972.4 1499.87 1967.73 1502.53 1964.13C1512.8 1949.87 1552.53 1897.87 1555.47 1894.67L1558.67 1891.47L1587.6 1897.2C1603.6 1900.27 1632 1905.87 1650.67 1909.47C1669.33 1913.07 1688.53 1916.93 1693.33 1918C1698.13 1919.07 1708 1920.93 1715.33 1922.13L1728.67 1924.4L1744.67 1919.47C1753.47 1916.8 1762.8 1913.73 1765.33 1912.67C1767.87 1911.6 1772.67 1910.13 1776 1909.33C1779.33 1908.4 1788 1905.73 1795.33 1903.33C1810 1898.53 1832.27 1891.47 1860 1882.67C1869.87 1879.6 1880.13 1876.27 1882.67 1875.33C1889.07 1872.93 1898.93 1869.73 1909.33 1866.8C1914.13 1865.33 1919.87 1863.6 1922 1862.8C1924.27 1862 1936.13 1858 1948.4 1854.13C1960.8 1850.13 1973.2 1845.2 1976.13 1843.2C1979.47 1840.93 1982.67 1836.93 1984.93 1832.13L1988.67 1824.67L1989.6 1755.33C1990 1717.2 1991.07 1670.13 1991.87 1650.67C1995.07 1572.53 1996.27 1547.2 1999.33 1480.67C2001.2 1442.53 2003.33 1400.27 2004.13 1386.8C2005.6 1364.67 2005.47 1362.13 2003.6 1360.67C2002.4 1359.87 1993.73 1358.13 1984.4 1356.8C1934.67 1350.13 1891.6 1344.4 1868 1341.33C1856.67 1339.87 1838.4 1337.47 1827.33 1336.13C1807.87 1333.6 1776.13 1329.47 1750.67 1326.27L1738 1324.67L1738.13 1293.33C1738.27 1276.13 1739.07 1231.2 1739.87 1193.6C1741.47 1122 1741.33 1117.47 1736 1112.67C1732.67 1109.73 1706.53 1104.67 1660.93 1098.13C1654.53 1097.2 1648.67 1095.87 1647.73 1094.93C1646.67 1093.87 1646.8 1089.33 1648.53 1077.07C1664.4 961.866 1669.47 871.866 1666.67 746.666C1665.33 682.933 1664.53 670.133 1662.27 668.266C1660.4 666.933 1642.53 663.6 1615.33 659.733C1605.07 658.4 1588.53 656 1578.67 654.533C1568.8 653.066 1556.53 651.333 1551.33 650.666C1542.13 649.466 1526.4 647.2 1500.67 643.066C1493.33 642 1481.33 640.266 1474 639.2C1466.67 638.266 1442.13 634.666 1419.33 631.333C1396.67 627.866 1372 624.266 1364.67 623.333C1357.33 622.266 1347.73 620.8 1343.33 620C1338.93 619.333 1323.07 616.8 1308 614.666C1292.93 612.533 1277.73 610.133 1274 609.466C1263.2 607.466 1240.4 603.866 1225.33 601.866C1217.73 600.8 1210 599.066 1208.4 598C1205.6 596.133 1205.47 595.333 1206.13 585.6C1207.47 568 1204 556.4 1192.8 541.333C1179.73 523.866 1162.27 506.8 1146.13 496.133C1138 490.8 1120 480 1119.2 480C1118.8 480 1115.87 478.8 1112.53 477.333C1097.6 470.533 1095.07 469.6 1090.67 468.666C1088.13 468.133 1084.53 466.933 1082.67 466C1078.13 463.733 1056.4 459.066 1042.67 457.333C1010.67 453.466 968 458.133 960.266 466.266C957.466 469.066 956.133 469.466 949.066 469.066C943.466 468.8 940.666 468 940 466.666C939.466 465.6 938.133 462.8 937.2 460.666C934.266 454.4 921.333 442.266 915.333 440.133C912.4 439.2 907.066 435.466 903.333 432.133C884.266 414.266 856.933 407.466 833.866 414.8ZM1049.33 468.8C1073.6 472.666 1090.13 477.733 1111.73 488C1142.93 502.8 1178.27 531.333 1189.73 551.066C1194.53 559.2 1198.67 572.533 1198.67 580C1198.67 588.133 1194.8 603.066 1188 620.666C1184.93 628.666 1181.6 637.466 1180.67 640C1176.53 651.066 1170.53 665.466 1166 675.333C1163.33 681.2 1159.07 690.533 1156.53 696C1154 701.466 1150.67 708.4 1149.2 711.333C1140.93 727.466 1139.07 730.8 1134.67 738.666C1132 743.466 1127.87 750.666 1125.73 754.666C1120 765.066 1117.73 768.933 1108.27 783.6C1103.6 790.8 1099.2 797.866 1098.27 799.333C1088.4 815.466 1084.93 817.333 1083.33 807.333C1082.13 799.333 1076.4 786.266 1074.27 787.066C1071.87 787.733 1071.6 795.333 1073.73 799.6C1074.8 801.6 1076.13 806.266 1076.67 810C1077.2 813.6 1078.13 817.733 1078.93 819.066C1079.6 820.4 1081.07 825.2 1082 829.733C1083.07 834.266 1086.4 847.333 1089.33 858.666C1094.4 877.866 1098.93 896.133 1103.33 915.333C1104.27 919.733 1106.67 929.866 1108.53 938C1116.53 971.333 1132.53 1052.93 1139.33 1094.67C1143.47 1119.2 1147.6 1144.13 1148.8 1150C1154.27 1179.2 1154 1197.33 1147.33 1216.13C1141.47 1232.93 1139.47 1235.6 1122.93 1246.8C1105.33 1258.8 1102.27 1260.53 1074.67 1274.4C1049.73 1286.67 1043.6 1289.33 1029.07 1294C1023.07 1296 1016.27 1298.4 1014 1299.33C1006.93 1302.27 963.866 1311.73 949.333 1313.6C930.8 1315.87 886.8 1315.87 870.666 1313.47C850.4 1310.53 831.733 1305.73 806.666 1296.67C791.466 1291.2 756.8 1271.33 752.4 1265.73C751.466 1264.53 749.2 1258.8 747.2 1252.8C744.133 1243.33 742.8 1237.47 738.666 1214.67C738 1211.33 736.8 1196 735.866 1180.67C733.6 1142.8 737.066 1032.27 740.533 1030.4C741.733 1029.73 742.666 1027.73 742.666 1026C742.666 1023.6 741.333 1022.27 737.066 1020.27C730 1017.07 723.466 1014.27 717.333 1012C713.466 1010.4 681.733 994.533 667.333 986.933C657.333 981.6 612.666 952 610.666 949.466C610.266 948.933 604 943.866 596.666 938.133C578.4 923.733 532.666 877.6 524.933 865.6C510.666 843.466 506 827.733 506 801.333C506 784 506.4 780.666 509.866 769.6C511.866 762.8 514.4 755.6 515.466 753.6C516.533 751.6 517.333 749.333 517.333 748.666C517.333 746.8 534.266 717.466 537.333 714C538.666 712.533 542 708 544.666 704C560.666 680.933 605.2 636.666 653.333 596C657.333 592.666 665.466 585.6 671.6 580.266C677.733 575.066 683.6 570.666 684.666 570.666C685.733 570.666 691.466 578 697.466 586.933C703.466 596 711.066 606.933 714.533 611.333C723.333 622.666 723.2 622 719.466 630C717.6 633.866 716 638.533 716 640.266C716 642 711.733 649.733 706.4 657.466C691.066 679.866 667.466 715.333 665.2 719.466C664 721.6 657.866 731.866 651.466 742.133C642.8 756.533 640 762.266 640 765.733C640 773.866 639.333 773.6 683.333 784C695.866 786.933 710.533 790.533 716 791.866C721.466 793.333 730.8 795.466 736.666 796.666C742.533 798 750.933 799.866 755.333 800.8C759.733 801.866 769.6 804.133 777.333 805.866C795.2 809.866 798 811.066 800.266 815.466C802.133 819.333 810.133 824.133 822 828.533C825.733 829.866 831.866 832.4 835.733 834.133C839.6 835.866 843.333 837.333 844.133 837.333C844.933 837.333 847.466 838.266 849.733 839.333C852.133 840.4 856.4 842 859.333 843.066C867.733 846 890.933 854.8 895.6 856.8C897.866 857.866 900.4 858.666 901.2 858.666C902 858.666 904.533 859.466 906.933 860.533C909.333 861.6 915.466 863.733 920.4 865.333C931.466 868.8 933.333 867.866 933.333 858.8C933.333 851.066 934.8 848.8 938.666 850C942.133 851.066 956.266 848.533 962 845.6C974.4 839.466 985.066 825.733 986.533 814.133C987.466 806.666 987.733 806.533 999.2 808.8C1003.47 809.6 1004.67 809.333 1006.13 807.333C1010 802.133 1007.07 780.666 1000 761.6C998.533 757.866 996.133 751.466 994.8 747.6C985.466 722.266 980.8 712 977.2 708.533C973.333 704.933 972.133 699.6 974.666 698C975.466 697.6 976 696.133 976 694.8C976 693.6 977.866 688.933 980.133 684.533C982.4 680.266 985.2 674.8 986.4 672.666C987.466 670.4 989.733 667.066 991.2 665.2C992.8 663.333 994.933 660.4 996 658.666C998.133 655.333 1009.2 641.733 1017.33 632C1020.13 628.666 1027.6 619.466 1033.87 611.6C1047.6 594.266 1048.13 591.733 1039.73 584.933C1031.2 578.133 971.2 537.333 969.733 537.333C969.333 537.333 967.333 536.133 965.2 534.533C960.933 531.466 960.4 528.4 963.333 522.266C966.666 515.066 970.133 492.266 969.2 482C968.8 476.8 968.933 472.266 969.333 471.6C970.533 470.133 984.133 468 999.333 466.8C1016 465.6 1032.93 466.266 1049.33 468.8ZM960 479.466C961.733 483.866 961.733 492.533 959.866 504.4C957.733 518.4 954.266 521.333 945.733 516C942.266 514 941.333 512.4 941.333 509.333C941.333 507.2 940.666 502.8 939.733 499.466C938.4 494.533 938.533 492.533 940.533 486.133C943.2 477.6 945.066 476.133 953.066 476C958 476 958.933 476.533 960 479.466ZM778.4 509.466C791.6 512.8 790.933 516.133 776.533 518.133C757.066 520.933 746.666 525.2 746.666 530.266C746.666 533.066 750.533 533.866 753.066 531.6C756.133 528.8 770.4 525.866 786 524.666C797.066 523.866 798.266 524 800.533 526.533C804.8 531.2 802.533 532.8 790.4 533.733C777.6 534.666 764.266 537.866 761.466 540.666C758.133 544 763.2 544.533 780.266 542.8C796.8 540.933 799.333 541.466 798.4 546.133C798.133 547.6 795.866 549.066 792 550.133C781.466 552.933 776.8 555.066 768.666 560.8C758.133 568.133 755.333 571.333 745.466 587.466C735.6 603.6 728 611.6 724.666 609.733C723.466 609.066 718.266 602.533 713.333 595.2C708.266 588 702.266 579.466 700 576.4C693.866 567.866 693.866 567.466 700.4 560.4C705.733 554.666 709.066 549.733 712.933 541.866C713.733 540.4 715.066 537.866 716 536C717.066 534.133 718.666 531.2 719.6 529.333C723.733 521.6 728.933 515.466 733.466 513.066C742.133 508.533 766.533 506.666 778.4 509.466ZM948.933 526C950.533 527.066 952.133 529.733 952.666 531.733C953.2 534.533 956 537.2 963.733 542.4C969.333 546.133 978.266 552.133 983.466 555.733C988.8 559.333 998.933 566.4 1006.13 571.333C1024.27 583.866 1034.8 592 1035.6 594.133C1036.13 595.6 1023.87 612.8 1020 616C1018.4 617.333 997.733 643.333 991.066 652.533C987.2 657.733 983.6 662.666 982.8 663.466C981.066 665.6 968 692.4 968 694C968 694.666 966.8 696.8 965.333 698.666C963.333 701.333 962.533 701.733 961.066 700.266C959.6 698.8 959.866 697.6 962.133 693.6C967.866 683.866 967.6 671.466 961.466 649.333C960 643.866 957.733 635.733 956.533 631.333C955.333 626.933 954 622.666 953.466 622C952.933 621.2 951.733 618.266 950.8 615.333C949.2 610.4 947.6 606.533 941.733 593.333C937.066 582.533 932.4 573.333 926.4 562.933C922.933 556.8 920 550.933 920 550C920 548.933 922.266 546.533 924.933 544.666C930.8 540.666 938.666 531.2 938.666 528C938.666 526.8 939.066 525.333 939.6 524.933C941.066 523.333 946 523.866 948.933 526ZM923.866 575.733C939.6 609.066 940.933 612.266 947.733 632.666C955.066 654.4 958 672.266 956 682C955.066 686.266 952.933 691.066 950.933 693.6C947.466 697.6 947.333 698.666 946.533 717.2C945.466 741.733 940.266 762.533 933.733 768.266C930.4 771.2 927.733 771.866 912.533 773.333C895.6 774.933 876.666 773.066 856.533 768.133C839.6 763.866 835.2 761.6 833.2 756.266C831.6 752 829.066 746.533 818.4 724.4C814.133 715.466 810.666 707.733 810.666 707.066C810.533 706.533 809.466 703.6 808 700.666C806.533 697.733 805.466 693.466 805.333 691.2C805.333 686.133 803.6 684.533 796.133 682.8C785.066 680.4 776.533 668.8 778.133 658.533C778.933 654.133 780 652.533 784.133 649.866C790.666 645.733 793.2 645.866 801.6 650.266C820 660.266 822.266 661.2 827.866 661.2C834.4 661.333 840 657.6 840 653.2C840 650.8 833.466 645.333 830.666 645.333C828.266 645.333 816.533 632.8 813.6 627.2C807.733 615.466 806.666 600.133 811.6 595.333C813.466 593.466 814 593.466 816.933 595.466C822 598.666 838 598.266 846 594.666C857.066 589.6 863.466 582 869.2 567.466C870.4 564.4 871.333 563.866 873.733 564.666C884.266 567.866 887.866 568.133 894.8 566C898.8 564.8 903.866 562.4 906 560.666C913.333 554.666 914.4 555.6 923.866 575.733ZM1238 612.133C1255.6 615.066 1273.87 618 1278.67 618.8C1283.47 619.466 1290.93 620.533 1295.33 621.333C1299.73 622 1310 623.6 1318 624.666C1326.13 625.733 1334.13 627.066 1336 627.466C1337.87 627.866 1345.33 629.066 1352.67 630C1360 631.066 1375.87 633.466 1388 635.333C1400.13 637.2 1416.53 639.6 1424.67 640.666C1432.67 641.733 1442.27 643.2 1446 643.866C1449.6 644.666 1458.13 645.866 1464.67 646.666C1471.33 647.466 1480 648.666 1484 649.333C1490.93 650.533 1500.53 652 1548 658.666C1558.67 660.266 1575.2 662.666 1584.67 664C1594.27 665.333 1607.2 667.2 1613.6 668C1625.33 669.6 1631.2 672 1628.67 674.4C1628 675.066 1621.07 677.6 1613.33 680C1605.6 682.533 1597.87 685.333 1596 686.266C1594.13 687.2 1592.13 688 1591.6 688C1590.93 688 1582.27 691.066 1572.27 694.8C1562.13 698.533 1551.07 702.666 1547.33 704C1536.53 707.733 1514.4 716.133 1509.73 718.133C1507.47 719.2 1504.8 720 1503.73 720C1502.67 720 1501.33 720.533 1500.53 721.066C1499.87 721.733 1490.67 725.333 1480 729.2C1469.33 733.066 1459.47 736.8 1458 737.466C1456.53 738 1450.27 740.4 1444 742.8C1437.73 745.066 1431.2 747.6 1429.33 748.4C1414.8 754.533 1404.93 756 1394.8 753.466C1392.13 752.8 1384.93 751.466 1378.67 750.666C1372.4 749.866 1365.6 748.666 1363.33 748C1359.6 746.933 1351.73 745.333 1327.33 740.666C1314.13 738.266 1298 734.933 1288.67 732.666C1284.27 731.733 1274.8 729.6 1267.73 728.133C1260.53 726.533 1249.07 724.133 1242.4 722.666C1224.13 718.666 1211.2 716 1200 714C1194.53 712.933 1186.13 711.2 1181.33 710.133C1176.53 708.933 1170.8 708 1168.4 708C1162.8 708 1161.6 704.266 1165.2 697.733C1166.67 694.933 1169.47 689.066 1171.33 684.666C1180.13 664.666 1180 664.8 1196.67 655.066C1198.13 654.133 1204.13 650.533 1210 647.066C1215.87 643.6 1221.33 640.4 1222 640.133C1222.8 639.866 1224.27 638.933 1225.33 638C1226.4 637.066 1230.53 634.666 1234.4 632.666C1242.13 628.666 1243.87 626.4 1241.33 623.333C1239.47 621.066 1238.4 621.466 1221.73 630.933C1214.27 635.2 1207.07 639.066 1205.73 639.6C1204.4 640 1201.6 641.733 1199.33 643.466C1197.2 645.066 1194 646.8 1192.4 647.333C1189.73 648 1189.33 647.733 1189.33 644.666C1189.33 642.8 1190.53 638.933 1192 636C1193.47 633.066 1194.67 630 1194.67 629.066C1194.67 628.133 1195.47 625.733 1196.53 623.733C1197.6 621.733 1198.8 618.266 1199.33 615.866C1200.53 610.533 1202.8 606.666 1204.67 606.666C1205.33 606.666 1220.4 609.066 1238 612.133ZM721.066 662C727.466 676 756.266 694.266 789.866 705.6L802.933 710L808.266 721.333C811.2 727.6 816.666 738.933 820.4 746.533C826.666 759.733 826.933 760.533 824.533 762.266C823.2 763.2 821.466 764 820.533 764C818.266 764 813.066 771.6 808.8 781.333C801.866 797.6 799.2 802 796.533 801.733C795.066 801.6 788.666 800.266 782 798.666C775.466 797.2 767.2 795.333 763.733 794.666C760.266 794 754 792.533 749.733 791.466C741.066 789.2 684.933 775.066 676.666 773.2C670.533 771.733 659.733 768.4 654.4 766.4C651.866 765.466 650.666 764 650.666 762.133C650.8 756.666 713.866 658.8 717.466 658.8C718.666 658.666 720.266 660.133 721.066 662ZM1656.4 685.333C1658.27 697.333 1658.13 882.666 1656.27 910.666C1655.47 924.266 1654.13 944.666 1653.33 956C1652.13 974.8 1651.33 984.133 1646.53 1028C1645.33 1039.87 1640.67 1073.47 1638 1089.33C1636.27 1100 1637.6 1099.2 1588.67 1121.2C1576.93 1126.53 1566.27 1131.47 1565.07 1132.13C1563.73 1132.8 1556.93 1136 1549.73 1139.2C1524.4 1150.53 1520.67 1152.27 1514 1155.33C1502.93 1160.53 1490.8 1165.87 1475.33 1172.53C1467.33 1176 1459.6 1179.47 1458.27 1180.13C1449.47 1184.8 1416.27 1198.67 1413.87 1198.67H1411.07L1410.13 1120.13C1409.2 1041.73 1409.47 1036 1413.47 1036C1414.27 1036 1420.4 1033.33 1427.07 1030.13C1453.6 1017.47 1470.13 1009.6 1474.4 1008C1477.2 1006.93 1478.67 1005.6 1478.4 1004.13C1477.73 1001.33 1470.27 1001.87 1459.47 1005.47C1455.07 1006.8 1450.27 1008 1448.53 1008C1446.93 1008 1441.87 1009.07 1437.2 1010.53C1423.6 1014.53 1413.73 1016.4 1411.47 1015.6C1409.6 1014.8 1409.33 1007.07 1409.33 940.8C1409.33 894.8 1409.87 866.533 1410.67 866C1412.4 864.933 1440.4 854.933 1448 852.666C1451.33 851.733 1457.33 849.6 1461.33 848C1465.33 846.533 1474.13 843.466 1480.67 841.2C1487.33 839.066 1493.6 836.8 1494.67 836.133C1495.73 835.6 1499.87 834.266 1503.6 833.333C1507.87 832.133 1512 830 1514.27 827.733L1517.87 824L1511.2 824.8C1507.6 825.2 1501.07 826.4 1496.67 827.333C1485.07 830 1476.4 831.466 1454.67 834.533C1416.27 840 1414.4 840.133 1412.53 838.533C1411.07 837.333 1410.67 829.866 1410.67 800.8V764.533L1416.53 761.6C1419.73 760 1423.07 758.666 1424 758.666C1424.8 758.666 1427.47 757.866 1429.73 756.8C1432.13 755.733 1436.67 754 1440 752.8C1443.33 751.733 1450.27 749.2 1455.33 747.333C1460.53 745.333 1467.33 742.933 1470.67 741.866C1474 740.8 1477.87 739.466 1479.33 738.8C1480.8 738.133 1488.27 735.333 1496 732.666C1503.73 730 1514.53 726 1520.13 723.866C1525.73 721.733 1530.67 720 1531.2 720C1531.87 720 1534.13 719.2 1536.4 718.133C1538.8 717.066 1542.8 715.6 1545.33 714.8C1547.87 714.133 1554.8 711.733 1560.67 709.6C1583.6 701.066 1602.27 694.4 1606.67 693.066C1609.2 692.4 1612 691.333 1612.67 690.666C1613.47 690.133 1616.4 689.066 1619.33 688.266C1626.13 686.4 1646.8 678.933 1647.87 678C1648.27 677.6 1650.13 677.333 1652 677.6C1654.93 678 1655.47 678.8 1656.4 685.333ZM968.933 713.6C973.733 716.4 975.866 720.666 984.133 742.666C989.466 757.066 996.4 781.6 998 791.6C998.8 796.8 998.666 797.333 996.133 797.333C994.666 797.333 987.066 794.266 979.466 790.666C971.866 786.933 965.066 784 964.4 784C963.866 784 961.866 782.8 960 781.333C958.133 779.866 955.866 778.666 954.933 778.666C951.866 778.666 944 772.666 944 770.4C944 769.066 945.066 766.133 946.4 763.733C950 757.2 954.4 738.266 955.333 724.666C955.866 718 956.4 711.866 956.8 710.933C957.466 708.8 963.066 710 968.933 713.6ZM1172.67 715.466C1177.07 716.4 1181.6 717.466 1182.67 717.866C1183.73 718.4 1189.2 719.6 1194.67 720.533C1200.13 721.6 1211.87 724 1220.67 726C1229.47 727.866 1241.07 730.266 1246.4 731.333C1251.73 732.4 1256.67 733.6 1257.33 734C1258 734.4 1263.33 735.6 1268.93 736.666C1279.2 738.4 1299.07 742.533 1324 748.133C1330.93 749.6 1340 751.466 1344 752.133C1348 752.8 1355.2 754.266 1360 755.333C1372 758.133 1389.07 761.6 1394.67 762.266C1397.2 762.666 1400.13 763.6 1401.07 764.266C1402.8 765.733 1403.07 798.133 1401.47 826L1400.67 840.666L1388.67 840.266C1343.2 838.666 1174.67 826.666 1158.13 823.733C1156.8 823.466 1155.33 824 1155.07 824.8C1154.27 827.2 1166.93 831.6 1181.33 833.866C1189.07 835.066 1202.27 837.2 1210.67 838.666C1219.07 840.266 1229.6 842 1234 842.666C1238.4 843.2 1247.47 844.666 1254 845.733C1260.67 846.933 1275.07 849.066 1286 850.666C1297.07 852.266 1313.87 854.666 1323.33 856C1332.93 857.333 1351.2 859.733 1364 861.333C1376.8 862.933 1390.4 864.666 1394 865.066L1400.67 866V941.333V1016.67L1396 1016.53C1393.47 1016.4 1384.8 1015.33 1376.67 1014.13C1331.07 1007.33 1289.6 1006 1295.07 1011.47C1295.47 1012 1307.73 1014.8 1322.27 1017.6C1355.47 1024.27 1355.33 1024.27 1371.33 1028.53C1378.67 1030.53 1388 1033.07 1391.87 1034.13C1395.87 1035.2 1399.73 1036.53 1400.27 1037.07C1400.93 1037.73 1401.2 1074.4 1401.07 1118.8L1400.67 1199.33L1397.07 1199.73C1395.07 1200 1387.87 1198.93 1381.07 1197.33C1374.27 1195.73 1363.33 1193.2 1356.67 1191.73C1350.13 1190.27 1339.73 1187.87 1333.73 1186.53C1327.6 1185.2 1317.73 1182.8 1311.73 1181.47C1290.53 1176.67 1276.53 1173.47 1263.33 1170.67C1256 1169.07 1245.47 1166.67 1240 1165.33C1228.27 1162.53 1195.33 1154.93 1186.67 1153.07C1175.33 1150.67 1159.33 1146.27 1157.87 1145.2C1157.07 1144.53 1155.47 1137.07 1154.13 1128.4C1152.93 1119.73 1151.33 1110 1150.67 1106.67C1149.87 1103.33 1148.8 1096.13 1148 1090.67C1146.4 1079.6 1143.87 1065.07 1136 1023.33C1130.4 993.733 1129.6 990.133 1122 957.333C1119.33 946 1115.87 931.2 1114.4 924.666C1108.93 900.266 1109.33 901.866 1096.67 855.333C1093.2 842.8 1090.13 831.333 1089.73 829.6C1089.2 827.333 1092.27 821.733 1102 806.933C1109.2 796.133 1116.4 785.2 1118 782.666C1119.6 780.133 1122 776.133 1123.47 774C1124.8 771.733 1127.07 767.866 1128.4 765.333C1129.73 762.8 1131.87 759.2 1133.07 757.333C1134.27 755.466 1136.13 752.133 1137.33 750C1138.53 747.733 1141.87 741.733 1144.67 736.666C1147.47 731.466 1151.2 724.666 1152.93 721.333C1156.8 714.266 1159.87 711.6 1162.67 712.8C1163.73 713.333 1168.27 714.4 1172.67 715.466ZM839.333 773.333C842.266 774 851.6 776.533 860 778.933C874.8 782.933 876.266 783.2 899.333 783.066C912.533 782.933 925.733 782.666 928.666 782.4L934 782L933.6 790.666C933.466 795.466 932.4 805.333 931.333 812.666C930.266 820 928.8 831.333 928 838C927.2 844.533 926.266 851.066 925.866 852.266C924.8 855.6 920 855.333 909.6 851.2C904.666 849.333 897.333 846.533 893.333 845.066C889.333 843.466 883.466 841.2 880.4 839.733C877.2 838.4 874 837.333 873.066 837.333C872.133 837.2 868.933 836.133 866 834.666C863.066 833.2 860.133 832.133 859.333 832C858.666 832 852 829.6 844.666 826.533C805.6 810.533 806.8 811.333 810 801.733C813.2 792.533 822.533 772.933 824.4 771.733C826 770.533 829.866 770.933 839.333 773.333ZM584 993.733C615.6 1004.4 633.6 1010.67 636.666 1012C638.133 1012.67 641.466 1013.73 644 1014.53C649.866 1016.13 659.866 1019.73 663.333 1021.33C664.8 1022 669.333 1023.73 673.333 1025.07C703.2 1035.2 710.266 1037.87 711.733 1039.73C714 1042.67 712.533 1043.6 703.333 1045.07C690.933 1047.07 673.066 1050.67 668.666 1052C666.533 1052.67 660.533 1053.87 655.333 1054.67C650.266 1055.47 642.666 1057.07 638.666 1058C634.666 1059.07 626.533 1060.8 620.666 1062C614.8 1063.2 600.133 1066.27 588 1068.8C575.866 1071.33 559.866 1074.67 552.266 1076C544.666 1077.47 538 1078.93 537.466 1079.33C536.8 1079.6 531.6 1080.8 525.866 1081.87C516.8 1083.47 498 1087.33 431.333 1101.33C424 1102.93 412.266 1105.33 405.333 1106.8C398.4 1108.13 389.866 1110 386.533 1110.8C368.8 1114.8 358 1116.4 344.666 1116.93L330 1117.47L310.666 1110.93C300 1107.2 285.333 1102 278 1099.33C270.666 1096.67 263.2 1094 261.333 1093.33C259.466 1092.67 253.866 1090.53 248.666 1088.53C243.6 1086.67 236.4 1084 232.666 1082.67C229.066 1081.33 222.666 1078.93 218.666 1077.33C211.333 1074.53 203.2 1071.47 192 1067.47C188.666 1066.27 184.8 1064.67 183.333 1064C181.866 1063.33 178.266 1061.87 175.333 1060.93C164.8 1057.2 115.333 1038.4 114.666 1037.73C113.333 1036.53 118 1034.93 125.2 1034.13C136.4 1032.8 163.466 1029.6 186.666 1026.53C228.266 1021.33 446.666 994.4 484.666 990C515.466 986.266 527.066 985.466 544.666 985.866C561.733 986.266 562.4 986.4 584 993.733ZM107.2 1045.2C111.733 1047.33 119.6 1050.67 124.666 1052.53C129.866 1054.53 135.866 1056.93 138 1057.87C140.266 1058.93 146.266 1061.33 151.333 1063.2C156.533 1065.2 162.8 1067.73 165.333 1068.93C167.866 1070 174.266 1072.4 179.333 1074.27C184.533 1076.13 190.533 1078.4 192.666 1079.33C197.733 1081.47 221.6 1090.53 228.666 1092.93C231.6 1093.87 235.2 1095.33 236.666 1096C241.866 1098.27 286.133 1113.6 297.2 1116.8C303.333 1118.67 311.866 1121.33 316.133 1122.67C320.4 1124.13 325.733 1125.33 327.866 1125.33C336 1125.33 336 1125.2 336 1171.87C336 1205.2 335.6 1214.67 334.266 1215.73C332.533 1217.2 323.466 1216.67 298 1213.33C285.733 1211.73 249.2 1208.27 239.466 1207.73C235.866 1207.6 232.666 1208 232.4 1208.67C231.866 1210.53 240.666 1214.4 250 1216.67C254.4 1217.6 262.266 1219.73 267.333 1221.2C272.533 1222.8 279.733 1224.93 283.333 1226C287.066 1227.07 294.933 1229.47 301.066 1231.33C307.066 1233.2 316.933 1236.13 322.8 1237.87C328.8 1239.6 334.266 1241.87 334.8 1242.93C335.466 1243.87 336 1266 336 1292.13C336 1328.53 335.6 1340 334.4 1341.07C333.2 1342 329.733 1341.47 322.666 1339.07C317.2 1337.2 308.8 1334.67 304 1333.2C299.2 1331.87 285.733 1328 274 1324.53C262.266 1321.2 249.333 1317.87 245.333 1317.07C241.333 1316.4 236.666 1315.2 235.066 1314.4C233.333 1313.6 231.6 1313.33 231.066 1313.87C229.866 1315.07 238.533 1322.53 240.933 1322.67C242.4 1322.67 273.866 1335.2 286 1340.53C288.266 1341.6 293.6 1343.87 298 1345.73C309.733 1350.53 323.866 1356.53 330.4 1359.47C333.866 1360.93 336.266 1362.93 336.666 1364.67C336.933 1366.13 337.733 1391.07 338.666 1420C339.466 1448.93 340.4 1483.87 340.933 1497.6C341.6 1518.27 341.466 1522.67 339.866 1522.67C338.933 1522.67 331.733 1520.27 324 1517.47C316.266 1514.53 303.733 1510 296 1507.33C288.266 1504.67 280.8 1501.87 279.333 1501.33C273.066 1498.53 255.2 1492 254 1492C253.333 1491.87 250.266 1490.8 247.333 1489.33C244.4 1487.87 241.066 1486.67 240 1486.67C238.933 1486.67 236.4 1485.87 234.4 1484.8C232.4 1483.73 228.8 1482.53 226.4 1482C224 1481.47 221.333 1480.53 220.533 1479.87C219.733 1479.2 216.4 1477.87 213.2 1476.8C210 1475.73 203.2 1473.33 198 1471.33C185.733 1466.67 175.066 1462.8 169.333 1461.07C166.8 1460.4 164.133 1459.2 163.333 1458.67C162.666 1458.13 160.533 1457.2 158.666 1456.67C155.066 1455.6 123.733 1444.4 119.333 1442.67C105.333 1436.8 104 1436 103.466 1433.07C102.133 1426.8 101.333 1372.67 102.4 1370.93C103.466 1369.47 106 1369.87 116.133 1373.2C138.266 1380.53 158 1386.4 163.066 1387.33C167.333 1388.13 168 1388 168 1385.73C168 1383.87 164.133 1380.8 153.733 1374.53C146 1369.87 138.933 1365.73 138.133 1365.47C137.333 1365.2 134.933 1363.6 132.666 1362C130.533 1360.4 127.733 1358.67 126.666 1358.13C125.6 1357.6 122.266 1355.73 119.333 1354C116.4 1352.27 112.133 1349.87 109.866 1348.67C107.6 1347.47 104.4 1345.2 102.933 1343.6C100.4 1340.8 100.266 1337.2 98.1331 1258.67C96.3997 1190.93 96.2664 1176.53 97.7331 1175.07C99.1997 1173.6 100.533 1173.6 105.333 1175.33C108.666 1176.53 115.733 1178.27 121.333 1179.33C126.8 1180.4 136.133 1182.13 142 1183.33C161.6 1187.47 162.666 1187.47 162.666 1183.6C162.666 1181.07 160.933 1179.33 154.4 1175.33C149.733 1172.53 136.533 1164 125.066 1156.4C113.6 1148.8 102.933 1142.67 101.466 1142.67C95.8664 1142.67 95.3331 1139.33 95.9997 1112.93C96.3997 1099.33 97.0664 1087.73 97.5997 1087.2C98.5331 1086.4 101.333 1087.2 111.333 1091.33C113.6 1092.13 120.8 1094.93 127.333 1097.33C134 1099.6 140.533 1102.13 142 1102.8C145.733 1104.4 155.733 1107.87 161.333 1109.6C163.866 1110.27 166.933 1111.73 168.133 1112.8C169.2 1113.87 172.133 1114.67 174.533 1114.67C180.133 1114.67 179.733 1110.8 174 1108.93C171.866 1108.27 169.066 1106.93 168 1106C166.933 1105.07 164.533 1103.87 162.666 1103.33C160.8 1102.8 156 1100.93 152 1099.07C148 1097.2 143.466 1095.33 142 1094.8C140.533 1094.27 136.666 1092.53 133.333 1091.07C130 1089.6 120.8 1085.73 112.666 1082.67C104.666 1079.6 97.5997 1076.4 97.0664 1075.6C95.7331 1073.6 95.7331 1043.47 96.9331 1042.27C98.1331 1040.93 98.2664 1040.93 107.2 1045.2ZM730.133 1051.33C730.533 1053.2 730.133 1068.27 729.2 1084.93C726.8 1125.33 727.066 1187.6 729.733 1209.33C731.866 1226.27 735.333 1243.47 739.466 1258.13C741.733 1266 741.733 1266.4 738.8 1276.13C737.066 1281.6 734.933 1288.13 734 1290.67C731.2 1297.87 721.466 1335.2 718.133 1352C715.333 1365.47 710.933 1393.47 709.866 1403.73C709.333 1408.27 708.266 1412.93 707.466 1414.13C706.533 1415.2 698.666 1418.27 690 1420.93C674 1425.6 664.4 1428.53 642 1435.33C635.466 1437.33 624.266 1440.67 617.333 1442.8C610.4 1444.93 601.733 1447.47 598 1448.67C594.4 1449.87 587.2 1452 582 1453.47C576.933 1455.07 571.2 1456.8 569.333 1457.33C567.466 1457.87 560 1460.27 552.666 1462.4C545.333 1464.67 531.6 1468.93 522 1471.87C512.533 1474.8 499.6 1478.67 493.333 1480.53C487.066 1482.4 479.333 1484.8 476 1485.87C470.533 1487.6 462.266 1490.13 438 1497.47C421.6 1502.4 412.533 1505.2 408.666 1506.53C406.533 1507.33 398.4 1509.73 390.666 1512.13C382.933 1514.4 372.8 1517.47 368 1518.93C353.466 1523.33 352.266 1523.47 351.466 1519.87C350.4 1514.67 345.066 1367.87 345.866 1364.8C346.533 1361.87 350.8 1360 386.666 1346.4C390.666 1344.8 396.4 1342.4 399.466 1341.07C402.4 1339.73 406 1338.67 407.466 1338.67C411.066 1338.67 413.866 1336.53 412.8 1334.8C411.6 1332.93 404 1332.93 399.466 1334.67C397.6 1335.33 389.733 1336.8 381.733 1338C373.866 1339.07 363.2 1340.67 358.133 1341.33C350.533 1342.53 348.533 1342.4 346.933 1340.8C345.333 1339.33 345.066 1330.4 344.8 1291.2L344.666 1243.47L350.666 1241.07C354 1239.87 362.666 1237.2 370 1235.33C377.333 1233.47 387.2 1230.67 392 1229.2C396.8 1227.87 401.466 1226.67 402.4 1226.67C403.466 1226.67 408.533 1225.47 413.733 1224.13C424.8 1221.07 440.933 1217.07 453.333 1214.13C458.133 1212.93 468.4 1210.53 476.133 1208.67C484 1206.8 491.6 1205.33 493.066 1205.33C496.933 1205.33 502.8 1202.53 501.866 1201.2C500.933 1199.6 485.066 1199.73 477.333 1201.33C474 1202 457.6 1204.4 440.666 1206.53C369.733 1215.87 350 1217.87 346.4 1215.87C344.133 1214.67 344 1211.6 344 1171.2V1128L347.466 1126.67C349.333 1125.87 352.666 1125.33 355.066 1125.33C359.066 1125.33 372.933 1122.8 398 1117.33C410.133 1114.8 424.133 1111.87 448.666 1106.67C456 1105.2 467.466 1102.8 474 1101.47C480.666 1100 490.533 1098 496 1096.8C512.266 1093.47 537.333 1088 546.666 1086C558 1083.6 574.933 1080.13 583.333 1078.53C587.066 1077.87 592.666 1076.67 596 1075.73C602.933 1074.13 612.666 1072 631.333 1068.13C657.866 1062.8 664.933 1061.33 677.333 1058.67C684.266 1057.07 694.266 1054.93 699.333 1053.87C704.533 1052.8 712 1051.07 716 1050.13C727.333 1047.33 729.2 1047.47 730.133 1051.33ZM1672.27 1109.47C1687.2 1111.87 1703.33 1114.13 1708.4 1114.67C1713.33 1115.2 1717.87 1116 1718.4 1116.53C1719.87 1118.13 1713.2 1122.4 1706.67 1124C1703.33 1124.8 1700.13 1126 1699.33 1126.53C1698.67 1127.2 1691.47 1129.87 1683.33 1132.67C1675.33 1135.33 1668.13 1138.13 1667.33 1138.67C1666.67 1139.2 1663.87 1140.13 1661.33 1140.67C1658.8 1141.2 1654.93 1142.53 1652.67 1143.47C1650.53 1144.4 1637.33 1149.2 1623.33 1154C1609.47 1158.8 1596.27 1163.6 1594 1164.67C1591.87 1165.6 1588.53 1166.8 1586.67 1167.33C1584.8 1167.73 1581.2 1168.93 1578.67 1170C1576.13 1170.93 1562.67 1175.73 1548.67 1180.67C1534.8 1185.47 1521.6 1190.27 1519.33 1191.33C1517.2 1192.4 1513.2 1193.73 1510.67 1194.53C1508.13 1195.2 1500.93 1197.73 1494.67 1200C1479.73 1205.6 1477.73 1206 1470.67 1203.33C1467.33 1202.13 1462.27 1200.67 1459.33 1200.13C1451.73 1198.8 1450.4 1197.73 1452 1194.53C1452.8 1193.2 1454 1192 1454.67 1192C1456 1192 1532.27 1158.4 1548.67 1150.53C1553.07 1148.53 1560.53 1145.07 1565.33 1142.8C1570.13 1140.67 1580.53 1135.87 1588.53 1132.13C1596.4 1128.4 1603.2 1125.33 1603.6 1125.33C1604.93 1125.33 1634 1110.4 1637.07 1108.13C1639.07 1106.67 1641.73 1105.33 1642.93 1105.33C1644.13 1105.33 1657.33 1107.2 1672.27 1109.47ZM1731.07 1125.73C1732.27 1128.8 1727.87 1320.53 1726.53 1321.87C1725.87 1322.67 1717.87 1322.27 1705.73 1320.8C1608.8 1309.33 1570.4 1308.13 1533.87 1315.47C1518.4 1318.53 1492.13 1325.2 1489.07 1326.8C1484.53 1329.2 1482.67 1327.33 1482.67 1320.13C1482.67 1311.87 1484.27 1310.27 1494.13 1308.13C1498.53 1307.2 1504.67 1305.6 1508 1304.53C1511.33 1303.6 1520.27 1301.2 1528 1299.33C1544.67 1295.07 1579.33 1285.87 1588.67 1283.2C1592.4 1282.13 1598.13 1280.8 1601.6 1280.13C1605.07 1279.6 1609.47 1278 1611.2 1276.8C1613.07 1275.6 1615.87 1274.67 1617.33 1274.67C1619.33 1274.67 1620 1274 1619.73 1272.27C1619.47 1270.8 1618.27 1270.13 1616.67 1270.4C1615.2 1270.67 1606.27 1272 1596.67 1273.2C1578.8 1275.73 1558.4 1278.8 1538.67 1282C1532.4 1283.07 1520.13 1284.8 1511.33 1286C1502.53 1287.2 1493.33 1288.8 1490.93 1289.6C1482.67 1292.13 1482.67 1292 1482.67 1250.53V1213.33L1486.4 1211.87C1488.4 1211.07 1491.87 1209.6 1494 1208.67C1496.27 1207.6 1500.67 1206.13 1503.87 1205.33C1507.07 1204.53 1510.67 1203.33 1511.87 1202.67C1514.53 1201.2 1540.53 1192 1541.87 1192C1543.07 1192 1563.2 1184.4 1568.67 1182C1570.93 1180.93 1574.8 1179.6 1577.33 1178.8C1579.87 1178.13 1585.33 1176.27 1589.33 1174.8C1614.8 1165.87 1627.87 1161.07 1631.6 1159.33C1633.87 1158.27 1636.4 1157.33 1637.33 1157.33C1638.27 1157.33 1640.8 1156.53 1643.07 1155.47C1645.47 1154.4 1652.13 1152 1658 1150C1663.87 1148.13 1669.87 1146 1671.33 1145.33C1672.8 1144.67 1680 1142 1687.33 1139.47C1694.67 1136.8 1701.6 1134.13 1702.67 1133.47C1703.87 1132.8 1706.8 1131.87 1709.33 1131.33C1711.87 1130.8 1714.8 1129.73 1716 1129.2C1718 1128 1727.87 1124.27 1729.47 1124.13C1730 1124 1730.67 1124.8 1731.07 1125.73ZM108.133 1155.73C112.533 1158.93 126.8 1167.33 129.733 1168.4C132.533 1169.47 132.666 1171.87 129.866 1172.93C127.333 1173.87 96.1331 1165.33 93.8664 1162.93C91.5997 1160.67 92.5331 1158.53 97.0664 1155.73C101.866 1152.8 104.266 1152.8 108.133 1155.73ZM1169.87 1193.2C1173.87 1194.53 1187.2 1197.2 1216.67 1202.67C1224.8 1204.27 1234.4 1206 1238 1206.8C1246.67 1208.4 1282.13 1214.67 1287.33 1215.47C1289.6 1215.87 1298.4 1217.33 1306.93 1218.8C1331.2 1222.8 1352.4 1226.4 1371.33 1229.6C1396.93 1233.87 1411.33 1233.2 1432.67 1227.2C1440.13 1225.07 1443.33 1220.93 1444.8 1211.87C1445.33 1208.93 1446.13 1206.27 1446.8 1206C1448.13 1205.07 1470.8 1211.6 1472.53 1213.33C1473.33 1214.13 1474.13 1230.27 1474.4 1252L1474.93 1289.2L1471.6 1290C1469.73 1290.53 1454.53 1289.6 1437.73 1288.13C1421.07 1286.67 1392.93 1284.13 1375.33 1282.53C1357.73 1281.07 1334.67 1278.93 1324 1277.87C1298 1275.07 1294.4 1275.07 1293.73 1276.93C1293.33 1277.87 1293.87 1278.93 1294.93 1279.2C1295.87 1279.47 1301.2 1280.93 1306.67 1282.53C1312.13 1284 1323.6 1286.53 1332 1288C1340.4 1289.47 1350.67 1291.2 1354.67 1292C1358.67 1292.8 1367.2 1294.27 1373.6 1295.33C1380 1296.27 1390.53 1298.13 1396.93 1299.2C1415.47 1302.4 1439.6 1306.27 1452.67 1308C1459.33 1308.93 1466.67 1310.53 1469.07 1311.47C1473.2 1313.2 1473.33 1313.33 1473.33 1321.73C1473.33 1329.2 1472.93 1330.4 1470.4 1331.6C1467.6 1332.93 1444.67 1340.27 1410 1350.8C1402.67 1353.07 1394.53 1355.73 1392 1356.8C1389.47 1357.73 1384.67 1359.2 1381.33 1360C1378 1360.8 1372.93 1362.27 1370 1363.33C1362.8 1365.73 1335.47 1374.4 1313.33 1381.33C1303.47 1384.4 1293.2 1387.73 1290.67 1388.67C1288.13 1389.73 1283.33 1391.2 1280 1392.13C1276.67 1392.93 1273.47 1394 1272.67 1394.67C1272 1395.2 1269.2 1396.13 1266.67 1396.67C1264.13 1397.2 1258.27 1399.33 1253.87 1401.33C1246.27 1404.8 1245.6 1405.47 1244.8 1410.27C1242.27 1427.07 1240.8 1472.4 1240.67 1534.4V1604.27L1237.33 1603.6C1233.33 1602.8 1222.8 1599.07 1219.87 1597.47C1218.67 1596.8 1215.33 1595.6 1212.4 1594.8L1207.07 1593.33L1206.13 1568.27C1204.13 1511.73 1196.27 1439.73 1187.07 1394C1186 1388.13 1184.53 1380 1183.87 1376C1183.33 1372 1181.87 1364.8 1180.8 1360C1172 1322.67 1166.4 1300 1164.8 1296C1163.73 1293.47 1161.07 1285.6 1158.8 1278.67C1153.47 1261.87 1150.93 1254.8 1148.67 1249.73C1146 1244 1146.13 1239.6 1149.33 1235.6C1150.8 1233.73 1152 1231.47 1152 1230.4C1152 1229.47 1152.93 1226.8 1154.13 1224.67C1155.33 1222.4 1157.33 1215.47 1158.67 1209.2C1160.93 1198 1163.2 1192 1164.93 1192C1165.47 1192 1167.6 1192.53 1169.87 1193.2ZM1637.07 1323.33C1676 1326.93 1733.47 1333.87 1822 1345.33C1833.73 1346.8 1847.6 1348.67 1852.67 1349.33C1857.87 1350 1876.13 1352.4 1893.33 1354.67C1910.53 1356.93 1934.53 1360 1946.67 1361.47C1978.4 1365.2 1985.2 1367.6 1973.07 1370.67C1969.87 1371.47 1965.2 1372.93 1962.67 1374C1954.93 1377.07 1933.2 1385.47 1925.33 1388.27C1921.33 1389.73 1914.8 1392.4 1910.93 1394.13C1907.07 1395.87 1903.33 1397.33 1902.53 1397.33C1901.73 1397.33 1899.2 1398.13 1896.93 1399.2C1887.87 1403.33 1880.13 1406.53 1866.67 1412C1847.87 1419.47 1825.47 1429.07 1821.33 1431.33C1819.47 1432.27 1814.93 1434.27 1811.33 1435.73C1807.6 1437.2 1801.07 1440 1796.67 1442C1792.27 1444 1786.93 1446.4 1784.67 1447.33C1782.53 1448.4 1777.2 1450.67 1772.93 1452.53C1768.67 1454.4 1764.93 1456 1764.53 1456C1764.13 1456 1761.87 1456.93 1759.6 1458C1752.93 1460.93 1734.8 1465.33 1728.67 1465.33C1725.6 1465.33 1714.27 1463.87 1703.2 1462C1684.4 1458.8 1644 1452.4 1635.33 1451.07C1628.4 1450.13 1598.53 1445.47 1584.67 1443.33C1577.33 1442.13 1566.8 1440.67 1561.33 1440C1555.87 1439.33 1545.33 1437.87 1538 1436.67C1486.53 1428.8 1366.93 1413.33 1306.93 1406.8C1285.73 1404.53 1278.93 1402.67 1280.67 1400C1281.07 1399.33 1283.87 1398.53 1287.07 1398C1290.13 1397.47 1293.87 1396.4 1295.33 1395.6C1296.67 1394.93 1301.87 1393.2 1306.67 1391.87C1318.67 1388.67 1326.27 1386.27 1374 1371.47C1379.87 1369.6 1389.47 1366.67 1395.33 1364.8C1401.2 1363.07 1412.93 1359.33 1421.33 1356.67C1429.73 1354 1440.27 1350.8 1444.67 1349.47C1449.07 1348.13 1457.47 1345.47 1463.33 1343.73C1508.67 1329.6 1526.67 1324.93 1543.73 1322.8C1550.13 1322 1556.8 1321.07 1558.67 1320.8C1565.07 1319.6 1615.6 1321.2 1637.07 1323.33ZM126.666 1368C126.666 1368.67 126.133 1369.33 125.466 1369.33C124.666 1369.33 123.733 1368.67 123.333 1368C122.933 1367.2 123.466 1366.67 124.533 1366.67C125.733 1366.67 126.666 1367.2 126.666 1368ZM885.066 1377.6C885.733 1385.07 874.4 1407.6 864.8 1418.27C858.4 1425.2 840.266 1440 838 1440C837.6 1440 834.8 1441.2 831.6 1442.53C821.733 1447.07 811.733 1449.47 799.066 1450.27C785.6 1451.07 782.666 1450.13 782.666 1444.67C782.666 1440.13 785.2 1438.93 795.333 1438C819.6 1435.87 837.2 1428.4 852.533 1413.73C863.2 1403.33 868.933 1394.93 875.2 1379.33C878.933 1370.27 884.4 1369.33 885.066 1377.6ZM1996.67 1376.93C1996.13 1379.73 1995.33 1387.33 1994.8 1394L1994 1405.87L1984.53 1410.93C1975.87 1415.47 1950.4 1426.8 1900.67 1448.13C1890.4 1452.53 1880.8 1456.67 1879.33 1457.33C1867.07 1462.8 1857.33 1466.67 1856.27 1466.67C1855.6 1466.67 1854.27 1467.47 1853.47 1468.53C1852.53 1469.6 1850 1470.93 1847.73 1471.47C1845.47 1471.87 1841.73 1473.47 1839.47 1474.8C1837.2 1476.13 1834.27 1477.33 1833.07 1477.33C1830.67 1477.33 1826.67 1480.8 1826.67 1482.8C1826.67 1484.93 1833.2 1484.13 1838.67 1481.33C1841.6 1479.87 1844.67 1478.67 1845.47 1478.67C1846.27 1478.67 1849.47 1477.6 1852.53 1476.13C1860.67 1472.4 1875.87 1466.67 1877.47 1466.67C1878.27 1466.67 1880.8 1465.87 1883.07 1464.8C1885.47 1463.73 1899.07 1458.67 1913.33 1453.33C1927.6 1448.13 1941.2 1442.93 1943.33 1442C1945.6 1441.07 1950.4 1438.93 1954 1437.2C1962.4 1433.6 1982.53 1423.6 1986.13 1421.33C1990.13 1418.93 1993.6 1420.53 1992.8 1424.27C1989.47 1439.73 1982.67 1602.4 1980.53 1716.67C1979.73 1761.2 1979.6 1763.47 1976.93 1766.4C1975.47 1768 1973.73 1769.33 1973.07 1769.33C1971.87 1769.33 1966.8 1771.47 1950.67 1778.93C1945.87 1781.2 1937.2 1785.07 1931.33 1787.6C1925.47 1790.13 1919.47 1792.67 1918 1793.33C1908.93 1797.2 1898.93 1801.33 1896.4 1802C1892.53 1803.07 1889.33 1806.27 1889.33 1808.93C1889.33 1811.33 1895.2 1810.4 1903.33 1806.67C1906.27 1805.33 1910.13 1803.87 1912 1803.33C1913.87 1802.93 1916.53 1802 1918 1801.33C1919.47 1800.67 1926.13 1798 1932.67 1795.47C1946 1790.4 1965.2 1782.27 1971.47 1779.07C1973.73 1777.87 1976.67 1777.33 1978 1777.87C1980.13 1778.67 1980.27 1780.67 1979.73 1801.73C1979.2 1825.47 1978.53 1828.4 1972.67 1833.6C1967.73 1838 1963.47 1839.6 1886.67 1864C1872.4 1868.53 1858.53 1873.07 1856 1874.13C1853.47 1875.07 1849.87 1876.27 1848 1876.67C1846.13 1877.07 1842.53 1878.27 1840 1879.33C1837.47 1880.27 1829.07 1883.07 1821.33 1885.33C1813.6 1887.73 1801.33 1891.6 1794 1894C1786.67 1896.4 1772 1901.2 1761.47 1904.67C1750.8 1908.13 1740.8 1911.6 1739.07 1912.4C1731.87 1915.6 1732 1917.2 1734.13 1828C1736.13 1746 1736.13 1746 1739.07 1743.73C1740.67 1742.4 1742.4 1741.33 1742.93 1741.33C1743.73 1741.33 1765.2 1732 1788 1721.73C1792.8 1719.6 1800.93 1716 1806 1714C1811.2 1711.87 1815.6 1709.73 1816 1709.2C1816.4 1708.67 1818.8 1707.73 1821.33 1707.07C1827.87 1705.33 1828.53 1701.33 1822.13 1701.33C1819.6 1701.33 1817.2 1701.87 1816.67 1702.53C1816.27 1703.2 1814 1704.13 1811.6 1704.67C1806.4 1705.73 1787.73 1711.6 1781.33 1714C1778.8 1715.07 1773.33 1716.8 1769.33 1717.87C1761.07 1720.13 1750 1723.73 1746 1725.47C1743.33 1726.53 1740.4 1727.07 1738 1726.8C1737.2 1726.67 1736.8 1717.6 1737.07 1701.73C1737.6 1672.4 1737.2 1673.2 1751.33 1670.27C1756.53 1669.2 1767.6 1666.4 1776 1664C1784.4 1661.6 1793.87 1659.2 1797.07 1658.53C1800.13 1657.87 1803.73 1656.93 1805.07 1656.27C1806.27 1655.6 1814 1653.2 1822 1650.8C1841.2 1645.47 1866.53 1637.07 1881.73 1631.2C1917.6 1617.33 1926.67 1612.67 1926.67 1608.27C1926.67 1605.6 1922.67 1606.53 1900 1614.53C1889.33 1618.13 1872.53 1623.73 1862.67 1626.67C1852.8 1629.73 1842 1633.07 1838.67 1634.13C1831.73 1636.4 1826.8 1637.87 1803.33 1644.53C1793.87 1647.33 1783.87 1650.27 1781.33 1651.33C1778.8 1652.27 1771.6 1654.4 1765.33 1656C1759.07 1657.6 1751.47 1659.87 1748.27 1660.93C1737.87 1664.53 1738.27 1666.67 1739.33 1618.93C1739.73 1595.73 1740.53 1575.73 1740.8 1574.53C1741.2 1573.33 1744.53 1570.93 1748.4 1569.47C1752.27 1567.87 1756.53 1566 1758 1565.33C1759.47 1564.67 1765.47 1562.27 1771.33 1560C1777.2 1557.73 1783.87 1555.07 1786.27 1554C1788.53 1552.93 1790.8 1552 1791.2 1552C1792.13 1552 1815.73 1541.47 1830.27 1534.53C1834.8 1532.4 1839.33 1530.67 1840.4 1530.67C1841.47 1530.67 1842.67 1529.73 1843.07 1528.67C1843.6 1527.6 1845.87 1526.27 1848.27 1525.6C1853.07 1524.4 1854.4 1520.53 1850 1520.93C1847.07 1521.2 1836.4 1524.53 1830 1527.33C1827.87 1528.27 1823.87 1529.47 1821.33 1530C1818.8 1530.53 1815.2 1531.73 1813.33 1532.67C1811.47 1533.6 1807.07 1534.93 1803.33 1535.87C1799.73 1536.67 1794.53 1538.27 1792 1539.2C1789.47 1540.27 1777.87 1543.87 1766.27 1547.33C1749.33 1552.27 1744.8 1553.2 1743.2 1551.87C1741.6 1550.53 1741.33 1544.27 1741.6 1512.13L1742 1474L1756 1468.4C1763.73 1465.2 1770.53 1462.67 1771.07 1462.67C1771.73 1462.67 1775.47 1461.2 1779.47 1459.33C1783.47 1457.47 1787.07 1456 1787.47 1456C1787.87 1456 1790.13 1455.2 1792.4 1454.13C1796.27 1452.27 1824.53 1440.8 1840.4 1434.53C1863.07 1425.47 1882.4 1417.6 1887.6 1415.2C1889.87 1414.13 1892.13 1413.33 1892.53 1413.33C1892.93 1413.33 1895.87 1412.13 1899.07 1410.8C1902.13 1409.33 1911.6 1405.33 1920 1402C1928.4 1398.67 1937.2 1395.07 1939.33 1394C1941.6 1393.07 1946.67 1390.93 1950.67 1389.33C1954.67 1387.73 1961.6 1384.93 1966 1383.07C1970.4 1381.2 1975.87 1379.07 1978 1378.13C1980.27 1377.2 1984.13 1375.47 1986.67 1374.27C1989.2 1373.2 1992.8 1372.13 1994.53 1372.13C1997.47 1372 1997.6 1372.4 1996.67 1376.93ZM1267.2 1412C1271.73 1412.67 1284.93 1414.53 1296.67 1416C1341.73 1422 1387.33 1428.13 1410.67 1431.47C1419.07 1432.53 1428.4 1433.87 1431.33 1434.27C1438.13 1435.07 1469.47 1439.2 1494.67 1442.67C1505.33 1444.13 1523.33 1446.53 1534.67 1448C1546 1449.47 1561.6 1451.6 1569.33 1452.67C1577.07 1453.87 1587.87 1455.33 1593.33 1456C1598.8 1456.67 1625.87 1460.27 1653.33 1464C1680.8 1467.87 1709.47 1471.6 1717.07 1472.4C1727.33 1473.47 1731.07 1474.27 1731.73 1475.87C1732.27 1477.07 1732.4 1495.33 1732 1516.67L1731.33 1555.33L1720.67 1555.07C1706.67 1554.8 1671.47 1550.67 1629.33 1544.53C1568.8 1535.87 1552.27 1534.13 1547.2 1536.13L1543.33 1537.6L1547.33 1539.47C1549.6 1540.4 1552.8 1541.2 1554.67 1541.33C1556.4 1541.33 1563.07 1542.53 1569.33 1544C1581.87 1546.8 1601.2 1550.67 1607.33 1551.47C1609.6 1551.87 1617.33 1553.2 1624.67 1554.67C1632 1556.13 1644.67 1558.53 1652.67 1559.87C1660.8 1561.33 1674 1563.73 1682 1565.2C1690.13 1566.67 1703.47 1568.93 1711.73 1570.13C1720 1571.33 1727.73 1573.2 1728.93 1574C1730.93 1575.47 1730.93 1581.07 1729.47 1646.8C1728.53 1686 1727.33 1720.13 1726.8 1722.67C1726.13 1726.27 1725.2 1727.47 1722.67 1727.87C1718.4 1728.4 1700 1725.73 1685.33 1722.4C1679.07 1721.07 1669.2 1718.93 1663.33 1717.87C1657.47 1716.67 1651.6 1715.2 1650.4 1714.53C1647.07 1712.8 1643.73 1713.07 1644.27 1714.93C1644.67 1715.87 1646 1716.93 1647.47 1717.33C1648.8 1717.73 1651.47 1718.93 1653.33 1720.27C1655.2 1721.47 1658.8 1722.8 1661.33 1723.33C1663.87 1723.87 1666.67 1724.8 1667.33 1725.33C1668.13 1726 1672 1727.33 1676 1728.4C1680 1729.6 1686.67 1731.73 1690.67 1733.33C1694.67 1734.93 1701.07 1737.07 1704.67 1738.13C1708.4 1739.07 1712.53 1740.53 1714 1741.2C1715.47 1742 1718.93 1743.47 1721.87 1744.67L1727.07 1746.67L1726.27 1755.07C1725.73 1759.6 1724.93 1796.8 1724.53 1837.73C1723.73 1898.13 1723.2 1912.27 1721.73 1913.6C1720.4 1914.67 1717.33 1914.53 1709.6 1912.67C1698.8 1910.27 1679.87 1906.53 1662 1903.2C1656.13 1902.13 1650.53 1901.07 1649.6 1900.67C1648.67 1900.27 1628 1896.13 1603.6 1891.33C1579.2 1886.4 1555.47 1881.73 1550.67 1880.67C1545.87 1879.6 1482 1866.8 1408.67 1852.13C1335.33 1837.33 1273.33 1824.93 1270.8 1824.27C1263.2 1822.53 1261.07 1818.13 1259.87 1802.4C1259.33 1794.93 1259.33 1788 1259.6 1787.07C1260.4 1784.93 1269.2 1784.93 1318.67 1786.67C1355.33 1788.13 1363.2 1787.73 1362.27 1784.93C1362 1784 1353.47 1781.07 1343.2 1778.4C1333.07 1775.73 1321.73 1772.53 1318 1771.47C1314.4 1770.4 1305.6 1768 1298.67 1766C1261.6 1755.47 1258.93 1754.67 1257.6 1752.93C1255.6 1750.53 1251.07 1634.13 1250.4 1567.33L1250 1536.67L1287.73 1536.27C1323.47 1536 1325.33 1535.87 1325.33 1533.47C1325.33 1531.6 1324 1530.67 1320.4 1530.13C1314.8 1529.07 1287.33 1520.8 1280 1517.87C1277.47 1516.93 1272 1515.2 1268 1514.27C1264 1513.2 1258.27 1511.2 1255.33 1509.87L1250 1507.33L1250.4 1490C1250.93 1464.53 1253.33 1415.73 1254.13 1412.93C1254.93 1410.27 1256.13 1410.27 1267.2 1412ZM486.933 1520.13C496.266 1526.13 496.666 1527.47 490.8 1534.53C479.6 1548.13 474.666 1561.47 473.466 1580.53L472.666 1593.87L463.333 1596.13C454.4 1598.53 409.066 1606.67 405.733 1606.67C401.733 1606.67 404.666 1600.67 414.4 1588.93C440.266 1557.33 447.866 1548.13 455.6 1538.53C467.333 1523.87 475.2 1516 478 1516C479.333 1516 483.333 1517.87 486.933 1520.13ZM510.533 1540L515.066 1543.87L510.266 1554.27C507.6 1560 504.266 1568 502.666 1572C501.2 1576 499.066 1581.2 498 1583.6C496.933 1585.87 496 1588.4 496 1589.2C496 1589.87 495.333 1592.13 494.4 1594C492.666 1597.87 486.8 1598.67 483.466 1595.2C478.4 1590.27 482.8 1562.93 490.8 1549.6C499.6 1534.8 502.666 1533.33 510.533 1540ZM1214.13 1750.13C1226.93 1755.73 1245.87 1765.33 1247.47 1767.07C1248.4 1768 1250 1780.53 1251.33 1795.33C1252.53 1810 1254.13 1822.93 1254.67 1824C1258.8 1831.6 1254.67 1830.53 1404.13 1860.53C1482 1876.13 1546 1889.47 1546.27 1890.13C1546.67 1891.33 1541.33 1898.8 1530.67 1912C1528.53 1914.53 1517.47 1928.93 1506.13 1944C1494.67 1959.07 1482.8 1974.53 1479.73 1978.53C1476.53 1982.53 1471.6 1988.93 1468.67 1992.8C1444.53 2024.8 1437.73 2033.33 1436 2034C1434.8 2034.4 1424.93 2032.13 1414 2029.2C1402.93 2026.13 1385.6 2021.33 1375.33 2018.53C1365.07 2015.73 1351.33 2011.87 1344.67 2010C1309.47 2000 1297.73 1996.67 1281.33 1992C1271.47 1989.2 1254.67 1984.53 1244 1981.47C1233.33 1978.4 1219.33 1974.4 1212.67 1972.53C1206.13 1970.67 1198 1968.27 1194.67 1967.33C1191.33 1966.4 1182.93 1964 1176 1962C1169.07 1960 1160.67 1957.6 1157.33 1956.67C1154 1955.73 1142.67 1952.53 1132 1949.47C1121.33 1946.4 1104.27 1941.6 1094 1938.67C1083.73 1935.73 1068.8 1931.47 1060.67 1929.2C1052.67 1927.07 1042.4 1924 1038 1922.67C1033.6 1921.33 1021.33 1917.73 1010.67 1914.67C955.733 1899.07 953.333 1898.27 953.333 1896.13C953.333 1895.47 956.533 1893.47 960.4 1891.47C966.666 1888.4 980.4 1880.67 991.333 1874.13C993.6 1872.93 998.4 1870 1002 1867.87C1005.73 1865.73 1009.6 1863.47 1010.67 1862.67C1011.73 1862 1018.93 1857.73 1026.67 1853.33C1034.4 1848.93 1041.6 1844.8 1042.67 1844.13C1048.27 1840.67 1090 1815.2 1108.8 1803.87C1120.67 1796.8 1137.6 1786.4 1146.53 1780.8C1155.47 1775.2 1163.33 1770.67 1164 1770.67C1164.67 1770.67 1165.33 1770.13 1165.6 1769.6C1165.87 1768.93 1169.33 1766.53 1173.33 1764.13C1177.33 1761.73 1183.33 1758.13 1186.67 1756C1196.8 1749.47 1201.87 1746.8 1204.13 1746.8C1205.33 1746.67 1209.87 1748.27 1214.13 1750.13Z",fill:"currentColor"}),f.jsx("path",{d:"M985.733 845.2C984.4 847.333 981.467 850.533 979.2 852.533C973.6 857.066 960.4 864 957.067 864C948.667 864 947.2 870 953.067 881.333C955.2 885.333 958 891.6 959.333 895.333C960.667 898.933 962.267 902.533 962.667 903.333C964.267 905.466 974.533 938.8 976.133 946.666C976.933 950.666 978.133 956.4 978.8 959.333C982 974 984.133 999.866 984.133 1024C984.133 1071.33 989.2 1104.13 1002.4 1141.33C1005.2 1149.33 1012.67 1167.07 1015.07 1171.33C1015.87 1172.8 1017.07 1175.2 1017.87 1176.67C1021.33 1183.07 1024.13 1185.6 1028.93 1186.8C1031.73 1187.47 1046.27 1188.4 1061.33 1188.93C1086.93 1189.6 1088.8 1189.47 1090.8 1187.2C1093.33 1184 1098.27 1153.33 1102.13 1115.2L1102.93 1107.07L1095.73 1098.53C1085.73 1086.53 1069.47 1061.87 1061.87 1046.67C1053.6 1030.13 1040.13 988.8 1040 979.866C1040 977.866 1038.93 972.533 1037.47 967.866C1036.13 963.2 1034 954.8 1032.8 949.333C1030.67 939.733 1025.47 921.733 1022 912C1013.73 889.066 1011.47 883.466 1006 871.333C1004.27 867.6 1000.93 860.4 998.667 855.333C994.533 846.266 991.2 841.333 989.2 841.333C988.667 841.333 987.2 843.066 985.733 845.2Z",fill:"currentColor"}),f.jsx("path",{d:"M910.667 976.133C898.934 981.467 888.534 984.933 876.667 987.467C860.667 990.8 835.467 990.8 819.734 987.6C804.8 984.4 801.867 985.467 803.334 993.733C803.867 996.8 804.8 1003.2 805.334 1008C805.867 1012.8 806.667 1017.6 807.067 1018.67C807.467 1019.73 809.2 1032.4 810.8 1046.67C812.667 1063.47 814.4 1073.6 815.734 1075.73C818 1079.2 826.534 1083.87 838.134 1087.87C842.4 1089.33 849.334 1091.87 853.334 1093.33C881.734 1104.27 884.267 1104.67 891.6 1098.4C903.067 1088.53 928.8 1063.2 931.2 1059.47C933.334 1055.87 933.6 1053.6 932.8 1041.6C931.2 1015.33 926.534 982.267 923.734 977.6C920.667 972.667 918.8 972.4 910.667 976.133ZM918.534 993.6C919.467 998.933 920.667 1006.67 921.334 1010.67C922 1014.67 922.934 1026.27 923.467 1036.27L924.267 1054.53L915.867 1063.47C911.2 1068.4 902 1077.2 895.467 1082.93C884.267 1093.07 883.467 1093.6 878.534 1092.93C875.734 1092.53 871.6 1091.33 869.2 1090.13C866.8 1088.93 864.4 1088 863.6 1088C862.934 1088 860.534 1087.07 858.267 1086C855.867 1084.93 847.734 1081.73 840.134 1078.8C824 1072.53 821.334 1070.53 821.334 1064.67C821.334 1062.27 819.734 1048.4 817.867 1033.87C815.867 1019.2 814.267 1004.67 814.134 1001.33C814 996 814.267 995.333 816.667 995.733C829.867 997.333 852 998.4 860.667 997.867C876.667 996.667 905.334 989.2 910 985.067C910.667 984.533 912.534 984 914.134 984C916.8 984 917.2 985.067 918.534 993.6Z",fill:"currentColor"}),f.jsx("path",{d:"M891.467 582.533C889.6 585.466 892.4 587.733 898.4 588.4C901.867 588.666 906.667 589.733 908.934 590.8C912.4 592.266 913.6 592.266 914.934 590.933C916.267 589.6 915.734 588.4 912.4 585.333C908.667 581.866 907.2 581.333 900.134 581.333C895.734 581.333 891.867 581.866 891.467 582.533Z",fill:"currentColor"}),f.jsx("path",{d:"M906.666 599.867C906.666 601.2 908.666 605.867 911.066 610.133C914.533 616.4 916.133 618 918.666 618C924.133 618 923.733 612.933 917.333 604.533C911.733 597.067 906.666 594.933 906.666 599.867Z",fill:"currentColor"}),f.jsx("path",{d:"M837.333 610.533C832.4 615.733 830 622.133 831.6 626C832.667 629.067 836.533 627.867 837.067 624.267C837.333 622.667 840.267 618.533 843.6 615.333C848.933 610.4 849.6 609.2 848 607.467C845.333 604.133 842.667 604.933 837.333 610.533Z",fill:"currentColor"}),f.jsx("path",{d:"M848.933 619.466C846.933 621.466 848.133 626.666 852.533 635.6C857.999 646.533 860.399 649.066 863.333 646.666C865.999 644.533 865.866 641.333 863.066 637.333C861.733 635.6 858.799 630.8 856.666 626.8C852.666 619.6 850.666 617.733 848.933 619.466Z",fill:"currentColor"}),f.jsx("path",{d:"M886 630.667C884.8 632.667 886.533 634.533 895.333 640.667C902.133 645.6 902.667 646.267 901.867 650C900.4 657.067 900.667 658 903.333 658.4C905.2 658.667 907.067 657.067 909.733 653.067C911.733 650 913.333 646.4 913.333 645.2C913.333 642.533 908.933 639.2 898 633.467C889.467 629.067 887.333 628.533 886 630.667Z",fill:"currentColor"}),f.jsx("path",{d:"M889.599 682.8C882.799 686.266 875.199 694.8 873.866 700.533C873.466 702.8 872.133 706.266 871.066 708.4C869.466 711.6 869.466 712.666 871.333 716.533C876.266 726.8 887.866 724 893.599 711.066C895.999 705.733 895.999 705.466 893.333 699.333C891.866 695.866 890.666 692.266 890.666 691.333C890.666 689.2 895.066 687.6 900.399 687.733C904.666 687.866 906.399 684.933 903.999 682C901.733 679.2 896.266 679.466 889.599 682.8ZM886.666 700.666C888.666 703.066 887.466 711.066 884.666 713.333C882.266 715.333 877.333 713.866 877.333 711.066C877.333 707.6 881.733 698.666 883.466 698.666C884.266 698.666 885.733 699.6 886.666 700.666Z",fill:"currentColor"}),f.jsx("path",{d:"M1286 634.533C1282.93 635.467 1262.53 645.867 1252.67 651.333C1230.27 663.733 1230 664 1208.4 677.867C1199.33 683.6 1192 688.933 1192 689.867C1192 692 1194.8 694.667 1196.8 694.667C1197.73 694.667 1202 692.4 1206.27 689.467C1213.2 684.933 1236 670.8 1242.27 667.333C1256.8 659.2 1275.73 648.8 1282.67 645.333C1293.33 639.733 1296 637.6 1295.07 635.2C1294.4 633.2 1290.67 632.933 1286 634.533Z",fill:"currentColor"}),f.jsx("path",{d:"M1363.47 646.533C1363.07 647.2 1358.27 649.867 1353.07 652.533C1347.73 655.2 1339.2 659.733 1334 662.4C1328.93 665.2 1318.13 671.067 1310 675.333C1302 679.733 1292.4 684.933 1288.67 686.933C1285.07 688.933 1279.87 691.733 1277.33 693.2C1270.27 697.067 1267.2 700.8 1269.33 703.333C1271.6 706.133 1273.87 705.867 1280 702C1282.93 700.133 1285.6 698.667 1286.13 698.667C1286.53 698.667 1288.53 697.6 1290.4 696.133C1292.4 694.8 1296.67 692.267 1300 690.4C1303.33 688.533 1307.87 685.867 1310.27 684.533C1315.2 681.467 1328.8 673.733 1338 668.667C1341.73 666.667 1347.07 663.6 1350 661.867C1352.93 660.133 1356.8 658 1358.67 657.067C1371.73 650.533 1375.87 645.333 1368.13 645.333C1365.87 645.333 1363.87 645.867 1363.47 646.533Z",fill:"currentColor"}),f.jsx("path",{d:"M1421.6 656.266C1420.8 657.2 1415.73 660.4 1410.4 663.2C1405.07 666 1399.73 668.8 1398.67 669.466C1397.6 670.133 1384.4 677.6 1369.33 686.133C1354.27 694.666 1340.4 702.666 1338.53 703.866C1336.67 705.066 1331.73 708 1327.73 710.4C1318.67 715.733 1313.33 720.533 1313.33 723.333C1313.33 727.466 1319.73 726.266 1329.87 720.133C1334.27 717.333 1338.93 714.8 1340 714.266C1341.07 713.733 1344.4 711.866 1347.33 710C1350.27 708.266 1354.8 705.466 1357.33 704C1359.87 702.533 1362.93 700.666 1364 700C1365.07 699.333 1371.73 695.2 1378.67 690.933C1405.47 674.266 1421.6 664.533 1426.13 662.266C1429.2 660.666 1430.67 659.066 1430.4 657.6C1429.87 654.8 1423.6 653.866 1421.6 656.266Z",fill:"currentColor"}),f.jsx("path",{d:"M1491.2 665.6C1487.47 668 1483.33 670.8 1481.87 671.6C1480.53 672.533 1477.2 674.533 1474.67 676C1472.13 677.466 1467.87 680 1465.2 681.733C1457.2 686.666 1423.07 707.066 1405.73 717.2C1396.67 722.4 1389.33 727.466 1389.33 728.4C1389.33 730.666 1392.13 733.333 1394.4 733.333C1396 733.333 1409.47 726.266 1417.87 720.933C1419.33 720 1427.2 715.2 1435.2 710.133C1451.47 700 1472.4 686.533 1484.4 678.533C1488.67 675.6 1492.53 673.333 1493.07 673.333C1495.33 673.2 1504.27 664.266 1503.47 662.8C1501.87 660.266 1498.27 661.2 1491.2 665.6Z",fill:"currentColor"}),f.jsx("path",{d:"M1615.07 742.8C1614.27 743.6 1609.07 745.067 1603.73 746C1585.87 749.067 1542.27 761.867 1517.07 771.6C1507.6 775.2 1505.33 777.867 1508.67 781.2C1510.8 783.333 1509.47 783.733 1536 773.733C1540.8 771.867 1547.73 769.467 1551.33 768.4C1555.07 767.2 1558.67 765.867 1559.33 765.333C1560.13 764.8 1562.8 763.867 1565.33 763.333C1567.87 762.8 1571.47 761.733 1573.33 760.933C1575.2 760.133 1579.73 758.8 1583.33 757.867C1587.07 756.933 1593.87 755.2 1598.67 754C1615.47 749.733 1620.67 747.467 1620.67 744.667C1620.67 741.6 1617.33 740.533 1615.07 742.8Z",fill:"currentColor"}),f.jsx("path",{d:"M1614 827.2C1612.53 828.267 1608.67 829.867 1605.33 830.8C1602 831.733 1598.8 832.933 1598 833.333C1597.33 833.867 1593.33 835.067 1589.33 836C1585.33 836.933 1581.33 838.133 1580.67 838.8C1579.87 839.333 1576.27 840.533 1572.67 841.467C1568.93 842.267 1565.47 843.467 1564.67 844.133C1564 844.667 1559.47 846.133 1554.93 847.333C1550.27 848.533 1545.47 850 1544.27 850.667C1542.93 851.333 1536.67 853.467 1530 855.333C1523.47 857.333 1512.67 860.533 1506 862.667C1499.47 864.667 1487.47 868.4 1479.47 870.8C1471.47 873.333 1464.67 876.133 1464.4 877.067C1463.47 879.2 1466.4 882.667 1469.07 882.667C1472.27 882.667 1524.4 866.267 1532.67 862.667C1534.13 862 1541.33 859.6 1548.67 857.333C1556 855.067 1563.2 852.533 1564.67 851.733C1566.13 850.933 1570 849.467 1573.33 848.533C1582.93 845.733 1594.93 841.467 1596.53 840.133C1597.33 839.467 1600.53 838.533 1603.6 838C1606.53 837.6 1610.13 836.267 1611.6 835.333C1612.93 834.267 1614.93 833.333 1616.13 833.333C1617.2 833.333 1619.33 832.4 1620.8 831.333C1623.33 829.333 1623.33 829.333 1620.8 827.333C1617.6 824.933 1617.2 824.933 1614 827.2Z",fill:"currentColor"}),f.jsx("path",{d:"M1120.4 890.266C1117.87 891.2 1118.27 895.733 1121.07 897.066C1127.6 900.533 1218.67 922 1283.33 935.466C1299.33 938.8 1329.87 942.533 1331.07 941.333C1331.73 940.8 1332 939.2 1331.73 937.866C1331.33 935.2 1330.8 935.066 1308.67 930.666C1300.67 929.066 1289.2 926.533 1283.33 925.2C1277.47 923.866 1265.47 921.2 1256.67 919.333C1247.87 917.466 1237.07 915.066 1232.67 914C1222.4 911.6 1184.13 903.2 1168.67 899.866C1162.13 898.4 1149.33 895.466 1140.27 893.333C1123.07 889.2 1122.93 889.2 1120.4 890.266Z",fill:"currentColor"}),f.jsx("path",{d:"M531.599 998.267C531.066 998.667 530.666 999.6 530.666 1000.13C530.666 1001.33 542.399 1008 544.533 1008C545.333 1008 547.733 1008.93 549.999 1010.13C554.666 1012.53 569.866 1018.67 571.199 1018.67C571.733 1018.67 574.666 1019.73 577.733 1021.2C585.066 1024.53 608.666 1032.8 621.999 1036.8C633.066 1040 641.999 1040.93 643.199 1038.8C645.733 1034.8 639.199 1031.33 618.799 1025.33C610.533 1022.93 606.399 1021.6 591.066 1016.53C587.466 1015.47 581.999 1013.73 578.666 1012.67C565.066 1008.4 559.199 1006.4 555.733 1004.53C553.866 1003.47 551.466 1002.67 550.399 1002.67C549.333 1002.67 546.266 1001.47 543.333 1000C537.999 997.333 533.199 996.533 531.599 998.267Z",fill:"currentColor"}),f.jsx("path",{d:"M480.533 1004.67C479.466 1007.33 483.866 1010.93 496 1017.2C519.333 1029.07 575.733 1056.93 579.6 1058.53C585.066 1060.8 588 1059.6 588 1055.33C588 1052.53 586.666 1051.33 579.066 1047.87C545.333 1032.27 528 1024.13 516.666 1018.67C510.8 1015.87 502 1011.6 496.933 1009.33C492 1006.93 487.6 1004.53 487.2 1003.87C486 1001.87 481.333 1002.53 480.533 1004.67Z",fill:"currentColor"}),f.jsx("path",{d:"M431.333 1013.33C430 1015.6 431.733 1017.07 442.4 1022.4C448 1025.33 461.733 1032.27 472.667 1038C507.067 1055.87 523.733 1064 525.733 1064C528.933 1064 529.733 1059.73 527.067 1057.2C524.8 1054.93 506.267 1045.6 465.333 1025.73C455.467 1020.93 445.2 1015.87 442.533 1014.53C437.2 1011.73 432.667 1011.33 431.333 1013.33Z",fill:"currentColor"}),f.jsx("path",{d:"M349.333 1024.53C349.333 1027.07 351.733 1028.53 358.666 1030.53C362 1031.47 365.333 1032.67 366 1033.33C366.8 1033.87 369.2 1034.67 371.333 1035.2C373.6 1035.73 377.2 1036.93 379.333 1037.87C381.6 1038.8 388.4 1041.47 394.666 1043.87C409.333 1049.47 416 1052 419.333 1053.47C420.8 1054.13 426.8 1056.4 432.666 1058.67C438.533 1060.93 445.2 1063.6 447.333 1064.53C449.6 1065.47 453.466 1067.07 456 1068C458.533 1068.93 461.2 1070.27 462 1070.93C465.866 1074.27 470.933 1069.6 467.733 1065.6C465.6 1063.07 445.333 1053.6 425.333 1045.73C416.933 1042.53 407.866 1039.07 405.333 1038C402.8 1037.07 395.866 1034.67 390 1032.8C358.4 1022.53 349.333 1020.8 349.333 1024.53Z",fill:"currentColor"}),f.jsx("path",{d:"M258.666 1032.4C258.666 1034.13 265.599 1040 267.466 1040C267.999 1040 271.466 1041.47 275.199 1043.2C287.866 1049.07 293.999 1051.6 315.333 1060C327.066 1064.67 337.866 1068.93 339.333 1069.47C349.599 1073.73 388.399 1086.67 390.933 1086.67C393.999 1086.67 395.599 1083.07 393.733 1080.27C393.066 1079.07 389.733 1077.33 386.533 1076.53C378.133 1074.13 367.999 1070.67 363.066 1068.53C360.799 1067.47 358.266 1066.67 357.466 1066.67C356.666 1066.67 354.133 1065.87 351.733 1064.8C349.333 1063.73 338.666 1059.73 327.999 1056C317.333 1052.27 307.066 1048.27 305.066 1047.2C303.199 1046.13 300.799 1045.33 299.733 1045.33C298.799 1045.33 295.066 1043.87 291.333 1042C287.733 1040.27 283.999 1038.67 283.199 1038.67C282.399 1038.67 277.733 1036.8 272.933 1034.67C263.466 1030.4 258.666 1029.6 258.666 1032.4Z",fill:"currentColor"}),f.jsx("path",{d:"M181.733 1039.6C178.799 1040.67 179.866 1044 183.733 1045.6C189.999 1048.27 201.866 1053.47 204.266 1054.8C205.599 1055.47 207.333 1056 208.266 1056C209.199 1056 211.866 1056.93 213.999 1058.13C216.266 1059.33 223.066 1062.27 229.333 1064.67C235.599 1067.07 242.533 1070 244.666 1071.2C246.933 1072.4 249.333 1073.33 250.133 1073.33C251.599 1073.33 259.333 1076.4 268.666 1080.53C270.933 1081.6 280.799 1085.47 290.666 1089.2C300.533 1093.07 309.866 1096.67 311.333 1097.2C330.533 1105.2 337.333 1106.27 337.333 1101.33C337.333 1097.87 334.533 1096 320.933 1091.2C314.266 1088.8 303.599 1084.93 297.333 1082.67C291.066 1080.4 283.866 1077.87 281.333 1077.07C278.799 1076.4 276.133 1075.33 275.333 1074.8C274.666 1074.27 271.066 1072.67 267.333 1071.47C263.733 1070.13 258.799 1068.27 256.399 1067.2C254.133 1066.13 251.333 1065.33 250.266 1065.33C249.066 1065.33 247.866 1064.8 247.466 1064.13C247.066 1063.47 245.066 1062.53 243.066 1062.13C240.933 1061.6 236.933 1060.13 233.999 1058.8C225.866 1055.2 214.133 1050.67 212.799 1050.67C212.133 1050.67 209.199 1049.47 206.133 1048.13C195.999 1043.33 185.066 1038.67 184.133 1038.8C183.733 1038.8 182.533 1039.2 181.733 1039.6Z",fill:"currentColor"}),f.jsx("path",{d:"M705.333 1184.27C690.133 1191.47 671.466 1200.27 668.666 1201.33C667.2 1202 661.466 1204.4 656 1206.67C650.533 1208.93 644.8 1211.33 643.333 1212C641.866 1212.67 634.4 1215.33 626.666 1218C618.933 1220.67 611.2 1223.47 609.333 1224.27C604.266 1226.4 580.133 1233.2 560 1238.13C528.133 1246 524.8 1246.8 517.333 1248C513.333 1248.53 504.666 1250 498 1251.07C471.066 1255.6 452.8 1257.73 431.333 1258.67C418.933 1259.33 408.533 1259.73 408.4 1259.87C407.466 1260.27 408.133 1265.33 409.2 1265.87C411.2 1267.2 465.2 1264 487.333 1261.33C521.6 1257.07 552 1251.07 582.666 1242.4C601.733 1237.07 635.2 1225.33 649.333 1219.07C671.2 1209.47 681.866 1204.27 705.2 1191.73C712 1188.13 717.333 1183.6 717.333 1181.47C717.333 1179.2 714.666 1179.73 705.333 1184.27Z",fill:"currentColor"}),f.jsx("path",{d:"M1662.13 1190.53C1661.6 1191.2 1659.33 1192.27 1656.93 1192.8C1654.67 1193.2 1649.6 1195.07 1645.73 1196.8C1642 1198.53 1638.13 1200 1637.33 1200C1636.4 1200 1633.87 1200.8 1631.6 1201.87C1627.33 1203.73 1619.2 1206.53 1608 1210C1597.47 1213.2 1588.8 1216.13 1584 1218C1581.47 1219.07 1576.93 1220.53 1574 1221.33C1565.07 1223.73 1559.33 1227.07 1559.33 1230C1559.33 1233.6 1566.8 1234.27 1574.8 1231.33C1578 1230.13 1582.8 1228.53 1585.33 1227.87C1587.87 1227.07 1596.27 1224 1604 1221.07C1666.93 1196.93 1671.33 1194.93 1671.33 1192C1671.33 1189.73 1663.47 1188.4 1662.13 1190.53Z",fill:"currentColor"}),f.jsx("path",{d:"M1184.4 1320.8C1183.47 1321.2 1182.67 1322.67 1182.67 1324C1182.67 1325.87 1183.87 1326.67 1187.07 1327.2C1197.73 1328.67 1244.27 1333.6 1266 1335.33C1295.73 1337.87 1370.8 1340.8 1373.87 1339.6C1375.33 1339.07 1376 1337.6 1375.73 1335.73C1375.33 1332.8 1374.53 1332.67 1359.33 1331.73C1285.73 1327.47 1221.47 1323.33 1192.67 1320.8C1189.07 1320.4 1185.2 1320.53 1184.4 1320.8Z",fill:"currentColor"}),f.jsx("path",{d:"M1544.67 1332C1543.2 1332.67 1534.8 1335.87 1526 1339.33C1517.2 1342.67 1508.8 1346 1507.33 1346.67C1505.87 1347.33 1499.87 1349.73 1494 1352C1488.13 1354.27 1482.13 1356.67 1480.67 1357.33C1479.2 1358 1473.2 1360.4 1467.33 1362.67C1461.47 1364.93 1455.47 1367.33 1454 1368C1450.67 1369.47 1429.33 1378.53 1416.67 1383.6C1402.53 1389.47 1398.67 1391.73 1398.67 1394.67C1398.67 1400.53 1405.47 1399.2 1427.33 1389.33C1428.8 1388.67 1437.2 1385.33 1446 1381.87C1469.2 1372.93 1478.67 1369.2 1483.33 1367.33C1485.47 1366.4 1490.67 1364.27 1494.67 1362.67C1498.67 1361.07 1504.4 1358.67 1507.33 1357.33C1510.27 1356.13 1515.33 1353.87 1518.67 1352.53C1530.27 1347.6 1548.67 1338.4 1551.07 1336.4C1556 1331.87 1551.73 1328.93 1544.67 1332Z",fill:"currentColor"}),f.jsx("path",{d:"M1631.2 1340.67C1629.87 1341.73 1627.87 1342.67 1626.8 1342.67C1625.73 1342.67 1622.53 1343.87 1619.47 1345.2C1616.4 1346.67 1607.47 1350.67 1599.33 1354C1591.33 1357.47 1582.8 1361.07 1580.67 1362C1578.4 1363.07 1571.87 1365.73 1566 1368C1560.27 1370.4 1554.53 1372.8 1553.47 1373.47C1552.27 1374 1548.67 1375.73 1545.33 1377.07C1497.6 1397.47 1489.87 1401.73 1493.33 1405.87C1495.47 1408.67 1496.93 1408.53 1503.33 1405.33C1511.73 1401.2 1527.87 1394 1537.33 1390.13C1545.07 1386.93 1553.47 1383.07 1560.4 1379.73C1561.73 1379.07 1569.87 1375.6 1578.4 1371.87C1586.93 1368.13 1596.67 1363.87 1600 1362.4C1603.33 1360.8 1607.87 1358.8 1610 1357.87C1612.27 1356.93 1619.33 1353.73 1625.73 1350.8C1632.27 1347.73 1638 1345.33 1638.67 1345.33C1640.13 1345.33 1641.47 1341.33 1640.53 1339.87C1639.47 1338 1634.13 1338.4 1631.2 1340.67Z",fill:"currentColor"}),f.jsx("path",{d:"M1720.67 1350.13C1717.73 1351.2 1713.6 1352.67 1711.33 1353.2C1702.8 1355.47 1675.2 1364.67 1668.67 1367.47C1666.53 1368.4 1662.53 1369.73 1660 1370.53C1653.2 1372.53 1642.27 1376.4 1628 1382C1621.07 1384.67 1611.47 1388.4 1606.67 1390.27C1602 1392.13 1596.27 1394.4 1594 1395.33C1591.87 1396.27 1586.67 1398.4 1582.67 1400C1563.87 1407.47 1562 1408.8 1563.47 1412.67C1564.67 1415.87 1571.07 1414.67 1585.33 1408.53C1591.6 1406 1598.53 1403.2 1600.93 1402.53C1603.33 1401.87 1606.93 1400.4 1608.93 1399.33C1610.93 1398.27 1613.33 1397.33 1614.27 1397.33C1615.2 1397.33 1619.07 1395.87 1622.93 1394.13C1626.8 1392.4 1639.87 1387.33 1652 1382.8C1664.13 1378.27 1675.07 1374 1676.27 1373.33C1677.6 1372.53 1679.33 1372 1680.13 1372C1680.93 1372 1683.47 1371.2 1685.73 1370.13C1688.13 1369.2 1692.13 1367.6 1694.67 1366.67C1697.2 1365.73 1701.2 1364.13 1703.33 1363.2C1707.33 1361.6 1710.8 1360.4 1723.33 1356C1728.13 1354.4 1730 1353.07 1730 1351.2C1730 1347.87 1727.2 1347.6 1720.67 1350.13Z",fill:"currentColor"}),f.jsx("path",{d:"M1811.33 1358.93C1809.2 1359.73 1806.4 1361.2 1805.2 1362.13C1804.13 1363.2 1802.53 1364 1801.73 1364C1800.53 1364 1771.47 1375.07 1763.33 1378.67C1761.87 1379.33 1754.93 1381.73 1748 1384C1741.07 1386.4 1733.6 1389.07 1731.33 1390C1729.2 1390.8 1723.73 1392.93 1719.33 1394.53C1704.4 1400.13 1678.8 1411.07 1672 1414.8C1653.6 1424.93 1650.4 1427.87 1653.6 1431.6C1655.73 1434.27 1657.73 1433.6 1678.67 1424C1688.53 1419.47 1698.8 1414.93 1701.33 1413.87C1703.87 1412.67 1707.2 1411.33 1708.67 1410.67C1716.67 1407.07 1740.27 1397.33 1740.8 1397.33C1741.2 1397.33 1743.47 1396.53 1745.73 1395.47C1748.13 1394.4 1756.8 1390.8 1764.93 1387.47C1782 1380.53 1805.07 1369.6 1806 1368C1806.4 1367.33 1808.67 1366.4 1811.07 1366C1816.4 1364.8 1818.67 1363.07 1818.67 1359.87C1818.67 1357.07 1817.2 1356.93 1811.33 1358.93Z",fill:"currentColor"}),f.jsx("path",{d:"M1888.67 1372C1885.73 1373.47 1882.93 1374.67 1882.27 1374.67C1881.6 1374.67 1879.2 1375.6 1876.93 1376.67C1874.53 1377.73 1864 1381.87 1853.33 1386C1842.67 1390.13 1832.13 1394.27 1829.73 1395.33C1827.47 1396.4 1825.2 1397.33 1824.67 1397.33C1823.47 1397.33 1794.67 1408.53 1788.4 1411.33C1786.13 1412.4 1783.6 1413.33 1782.8 1413.33C1782 1413.33 1778.8 1414.53 1775.6 1416C1772.53 1417.33 1762.8 1421.33 1754 1424.67C1745.2 1428 1736.13 1431.6 1733.73 1432.67C1731.47 1433.73 1728.67 1434.67 1727.73 1434.67C1725.2 1434.67 1721.33 1438.93 1721.33 1441.73C1721.33 1445.47 1725.47 1446.67 1730.67 1444.4C1733.2 1443.33 1746.4 1438.27 1760 1433.07C1773.6 1427.87 1786.53 1422.93 1788.67 1421.87C1790.93 1420.93 1797.47 1418.27 1803.33 1416C1809.2 1413.73 1815.2 1411.33 1816.67 1410.67C1818.13 1410 1824.13 1407.6 1830 1405.33C1835.87 1403.07 1841.87 1400.67 1843.33 1400C1844.8 1399.33 1849.07 1397.6 1852.8 1396.13C1856.53 1394.67 1862.53 1392.13 1866.13 1390.53C1869.73 1388.93 1876 1386.13 1880 1384.4C1896.27 1377.33 1901.33 1373.2 1897.33 1370.67C1894.67 1368.93 1894.67 1368.93 1888.67 1372Z",fill:"currentColor"}),f.jsx("path",{d:"M1352.67 1598.53C1351.73 1600.27 1355.47 1603.87 1359.07 1604.67C1362.67 1605.47 1364.27 1605.87 1410.67 1617.47C1467.2 1631.6 1467.47 1631.6 1483.33 1634.67C1491.47 1636.27 1503.47 1638.67 1510 1640C1551.6 1648.4 1607.2 1655.2 1641.6 1656.27C1656.4 1656.67 1659.47 1655.73 1657.87 1651.6C1656.93 1648.93 1655.73 1648.67 1638.67 1646.67C1631.73 1645.87 1622.67 1644.67 1618.67 1644C1614.67 1643.2 1603.6 1641.47 1594 1640C1573.2 1636.67 1548.53 1632.53 1534 1629.73C1528.13 1628.67 1519.73 1627.33 1515.33 1626.67C1510.93 1626.13 1502.27 1624.67 1496 1623.47C1489.73 1622.4 1477.73 1620.13 1469.33 1618.67C1460.93 1617.2 1442.67 1613.73 1428.67 1611.2C1414.8 1608.67 1398.27 1605.6 1392 1604.53C1385.73 1603.47 1379.73 1602.27 1378.67 1601.87C1376.8 1601.2 1356.27 1597.33 1354.4 1597.33C1353.87 1597.33 1353.2 1597.87 1352.67 1598.53Z",fill:"currentColor"}),f.jsx("path",{d:"M1318.93 1732.4C1316.4 1735.33 1319.87 1738.13 1328.67 1740.4C1333.07 1741.47 1342.93 1744.27 1350.67 1746.53C1368.67 1751.6 1397.2 1759.07 1413.33 1762.67C1420.27 1764.27 1430.8 1766.67 1436.67 1768C1450.13 1771.07 1467.33 1774.27 1479.33 1775.87C1484.53 1776.53 1495.87 1778.13 1504.67 1779.33C1513.47 1780.53 1529.73 1781.6 1540.67 1781.73C1560.53 1782 1560.67 1782 1561.07 1778.93C1561.47 1776.67 1560.93 1776 1558.4 1776C1551.07 1776 1500.53 1767.2 1440 1755.2C1426.4 1752.53 1412 1749.87 1408 1749.33C1399.47 1748.13 1381.73 1744.53 1355.33 1738.67C1345.07 1736.27 1334 1733.87 1330.67 1733.2C1327.33 1732.53 1323.73 1731.6 1322.53 1731.33C1321.33 1730.93 1319.73 1731.47 1318.93 1732.4Z",fill:"currentColor"}),f.jsx("path",{d:"M1220.67 1816C1213.33 1821.07 1205.6 1826.27 1203.33 1827.47C1201.2 1828.8 1196.27 1832 1192.53 1834.93C1188.8 1837.73 1185.33 1840 1184.8 1840C1184.27 1840 1180 1842.93 1175.2 1846.67C1170.4 1850.27 1165.2 1854 1163.73 1854.8C1162.13 1855.73 1160.13 1856.93 1159.47 1857.6C1158.67 1858.27 1149.33 1865.07 1138.8 1872.67C1128.13 1880.27 1118.93 1887.6 1118.27 1888.8C1116.4 1892.13 1120.93 1895.33 1124.13 1892.93C1138.93 1882.53 1151.47 1873.47 1158 1868.53C1177.87 1853.6 1194.13 1841.73 1196 1840.93C1197.07 1840.4 1201.6 1837.33 1206 1834C1213.33 1828.4 1221.47 1822.8 1226.8 1819.33C1236.53 1813.2 1240.13 1810.27 1239.6 1808.93C1238.4 1805.33 1233.2 1807.2 1220.67 1816Z",fill:"currentColor"}),f.jsx("path",{d:"M1285.87 1861.07C1275.47 1871.07 1272.13 1874.13 1247.87 1894.8C1210.13 1927.07 1204 1932.53 1204 1933.47C1204 1936.13 1205.87 1938.67 1207.87 1938.67C1212.67 1938.67 1301.33 1857.6 1301.33 1853.2C1301.33 1848.4 1296.67 1850.67 1285.87 1861.07Z",fill:"currentColor"}),f.jsx("path",{d:"M1407.6 1880.93C1406.8 1882.93 1405.2 1885.6 1404.27 1886.67C1403.33 1887.73 1399.47 1892.53 1395.6 1897.33C1391.87 1902.13 1377.07 1917.73 1362.93 1932C1348.67 1946.27 1336.67 1958.93 1336.13 1960C1334.53 1962.93 1335.87 1965.33 1339.07 1965.33C1344.27 1965.33 1401.87 1902.67 1411.87 1886.27C1414.4 1882.27 1414.67 1880.93 1413.33 1879.33C1410.93 1876.4 1409.47 1876.93 1407.6 1880.93Z",fill:"currentColor"}),f.jsx("path",{d:"M409.067 754C408.667 754.4 404.533 755.333 399.867 756.133C387.2 758.133 372.533 762.933 355.333 770.666C308.4 791.866 289.333 798.933 272.666 801.333C251.866 804.266 240.533 802.266 220.8 792.4C213.733 788.8 206.667 786.266 203.867 786.133C198.133 786 193.066 789.066 122.666 834.666C113.066 840.933 104.133 846.533 102.8 847.333C88.3998 855.733 84.2665 859.733 86.2665 863.2C89.3332 868.266 116.666 888.8 129.2 895.466C132.533 897.2 136.266 899.2 137.333 900C138.4 900.666 142.133 902.4 145.733 904C149.2 905.466 154.666 907.866 157.866 909.333C161.2 910.8 164.533 912 165.333 912C166.266 912 168.8 912.8 171.067 913.866C179.2 917.6 203.467 922.4 222 924.133C240.667 925.733 270.666 924.4 282.666 921.466C285.2 920.933 290.666 919.6 294.666 918.8C303.333 916.8 330.533 908.133 347.333 902C371.467 893.066 384.4 890.4 402.667 890.266C414.533 890.133 421.467 890.8 427.067 892.4C446.267 898 448.8 898.533 452.667 897.6C456.8 896.4 462.267 889.733 463.2 884.8C464 880.666 469.2 857.066 472.133 844C474.4 833.733 478 813.466 479.467 803.333C479.867 801.066 481.067 793.066 482.267 785.2C483.467 777.466 484 769.6 483.6 767.733C481.6 759.733 456.8 753.333 427.867 753.333C417.867 753.333 409.467 753.6 409.067 754ZM462 766C467.2 767.333 472.133 769.066 473.067 769.866C474.4 771.2 473.867 777.066 470.667 799.333C468.4 814.8 465.067 834.8 463.2 844C461.333 853.2 458.933 865.2 458 870.8C457.067 876.4 455.333 882.933 454 885.2C451.467 890.133 453.2 890.266 432 884.133C420.267 880.666 415.733 880 404 880C383.733 880.133 370.4 883.333 328 898.666C276.933 917.066 232 919.866 184.667 907.333C168.4 903.066 163.2 901.066 144.666 892.133C126.666 883.466 99.9998 865.2 99.9998 861.733C99.9998 861.066 106.8 856.533 115.066 851.466C123.2 846.266 143.866 833.066 160.666 821.866C192.4 801.066 200.933 796 204.8 796C206 796 210.933 798.133 215.867 800.666C233.733 809.866 239.866 811.333 261.333 811.2C277.333 811.066 282.266 810.533 290 808.133C303.066 804 310.533 801.333 316.666 798.666C319.6 797.333 331.067 792.4 342 787.6C371.6 774.666 381.6 771.066 396.533 767.333C414.133 763.066 416.4 762.933 436 763.333C446.533 763.466 456.133 764.533 462 766Z",fill:"currentColor"}),f.jsx("path",{d:"M2044.27 784.8C2040.4 787.2 2037.07 789.333 2036.67 789.333C2036.4 789.333 2032.67 791.733 2028.4 794.666C2024.13 797.6 2019.73 800.666 2018.67 801.333C2017.6 802.133 2012 806 2006.27 810C1964.8 839.333 1945.07 846.666 1897.47 850.533C1885.6 851.466 1881.73 852.266 1879.87 854.266C1878.67 855.6 1875.73 862.4 1873.33 869.333C1871.07 876.266 1868.67 882.533 1868.13 883.333C1867.47 884 1866.53 886.133 1866 888C1864 895.2 1858.4 908.4 1854.67 914.8C1852.4 918.4 1850.67 922 1850.67 922.533C1850.67 924 1839.6 940.266 1833.73 947.6C1827.87 954.8 1828.13 958.8 1834.67 960.266C1850.93 964.133 1865.07 965.6 1891.33 966.266C1923.87 967.066 1957.6 965.2 1968.4 961.866C1979.2 958.666 1993.07 951.866 2000.8 946C2007.2 941.2 2021.33 924.4 2021.33 921.733C2021.33 921.066 2022.4 919.066 2023.73 917.333C2024.93 915.466 2026.67 912.133 2027.47 910C2028.27 907.733 2030.8 901.466 2032.93 896C2039.2 880.133 2045.33 858.533 2048.67 840C2049.2 837.466 2050.4 831.733 2051.33 827.333C2054 815.333 2057.87 784.533 2056.93 782.133C2055.6 778.933 2052.13 779.6 2044.27 784.8ZM2046 801.6C2043.07 824.666 2033.73 865.333 2027.2 883.333C2025.33 888.4 2022.93 895.333 2022 898.666C2020.93 902 2019.2 905.866 2018.13 907.333C2016.93 908.8 2016 910.8 2016 911.733C2016 912.666 2013.2 917.733 2009.73 922.933C1995.07 945.2 1972 954.933 1928.67 957.333C1901.33 958.8 1845.33 955.866 1842.8 952.8C1841.87 951.733 1843.73 947.733 1848.53 940.666C1856.27 929.066 1869.33 904.8 1869.33 902C1869.33 901.066 1870.27 898.533 1871.33 896.533C1872.4 894.4 1873.33 891.6 1873.33 890.4C1873.33 889.2 1873.87 887.866 1874.53 887.466C1875.07 887.066 1877.6 880.666 1880 873.333C1884.93 858.133 1883.33 859.2 1902 858.133C1924.8 856.666 1947.33 851.866 1962.67 845.066C1968.8 842.4 1969.6 842 1979.87 836.266C1985.73 833.066 2011.2 816.533 2014 814.266C2019.87 809.333 2042.53 794.8 2044.4 794.8C2046.67 794.666 2046.8 795.466 2046 801.6Z",fill:"currentColor"}),f.jsx("path",{d:"M359.334 1671.6C356.934 1672.13 329.734 1684.27 306 1695.33C285.734 1704.8 275.067 1709.73 268 1712.93C260.667 1716.27 254.8 1718.93 235.334 1728.13C229.467 1730.8 220.8 1734.93 216 1737.07C179.067 1754 142.8 1771.2 120.267 1782.4C102.934 1791.07 99.7335 1794.4 103.2 1801.07C105.6 1805.73 142.8 1840.67 193.067 1885.6C197.2 1889.33 200 1892.8 200 1894.53C200 1896.13 199.467 1897.33 198.667 1897.33C198 1897.33 194.267 1899.87 190.4 1902.93C186.4 1906.13 180.267 1910.8 176.667 1913.2C170.534 1917.47 163.6 1923.33 138.934 1944.93C134.4 1948.93 130.667 1953.33 130.667 1954.53C130.667 1957.6 134.8 1961.33 144.4 1966.8C148.667 1969.33 153.2 1972 154.4 1972.67C169.6 1981.87 191.067 1994.4 195.334 1996.8C198.267 1998.27 212.4 2006.27 226.667 2014.27C240.934 2022.4 256.934 2031.2 262 2034C267.2 2036.8 273.2 2040.13 275.334 2041.33C277.6 2042.67 282.934 2045.6 287.334 2048C297.067 2053.2 310.934 2060.67 323.334 2067.33C340.534 2076.67 350 2081.33 352.134 2081.33C353.467 2081.33 360.267 2074.13 367.467 2065.07C374.8 2056.13 382.8 2046.4 385.467 2043.47C388 2040.4 393.867 2033.2 398.534 2027.33C403.067 2021.47 411.867 2010.4 418 2002.67C424.267 1994.93 431.867 1985.33 434.934 1981.33C454.134 1956.53 459.867 1949.33 464.8 1943.33C467.734 1939.6 474.4 1931.2 479.334 1924.67C484.4 1918 488.934 1912.4 489.334 1912C489.734 1911.6 493.067 1907.47 496.667 1902.67C500.267 1897.87 510.534 1884.27 519.6 1872.4C528.667 1860.53 536 1849.87 536 1848.8C536 1846.27 527.2 1841.07 515.067 1836.53C504 1832.53 503.2 1830.93 509.2 1824.53C512.534 1820.93 528 1799.07 528 1798C528 1797.73 530.534 1793.2 533.734 1787.73C542.134 1773.6 546 1766.67 555.734 1748C560.534 1738.8 565.734 1729.2 567.334 1726.67C568.934 1724.13 570.534 1720.93 571.067 1719.6C572.134 1716.67 567.734 1712 563.734 1712C560.134 1712 541.2 1708.4 474.667 1695.2C424.934 1685.33 414.4 1683.2 382.667 1675.73C373.467 1673.6 365.067 1671.73 364 1671.47C362.934 1671.2 360.8 1671.33 359.334 1671.6ZM376.667 1683.33C381.067 1684.27 392.534 1686.67 402 1688.67C417.867 1691.87 429.6 1694.27 453.334 1699.33C463.334 1701.47 478.934 1704.53 493.334 1707.33C498.8 1708.4 510.8 1710.8 520 1712.8C529.2 1714.67 540.667 1716.93 545.734 1717.87C558.534 1720.27 558.934 1720.8 552.934 1732.4C550.267 1737.6 547.067 1743.47 546 1745.33C534.4 1765.2 528 1776.4 528 1776.8C528 1777.2 526.8 1779.07 525.467 1781.07C524.134 1783.07 516.534 1794.4 508.8 1806.27C500.267 1819.33 493.867 1828 492.534 1828C491.334 1828 480.667 1824.8 468.8 1820.8C442.134 1811.87 418.534 1804.27 410.667 1802C407.334 1801.07 398.534 1798.4 390.934 1796.13C372.534 1790.53 365.867 1790.67 353.2 1796.8C347.734 1799.47 342.134 1802.13 340.667 1802.8C339.2 1803.47 335.734 1805.33 333.067 1806.93C330.4 1808.67 322.534 1813.2 315.734 1817.2C308.934 1821.2 301.867 1825.47 300 1826.8C286 1836.27 247.734 1861.33 245.334 1862.67C242.134 1864.4 240.934 1863.73 216 1846.13C189.867 1827.6 172.8 1810.67 163.334 1794C158.134 1784.93 157.467 1784 155.2 1784.93C152.4 1786 152.934 1790.13 156.934 1797.07C169.2 1818.4 197.867 1845.47 226.534 1862.93C231.067 1865.6 234.667 1868.53 234.667 1869.33C234.667 1870.13 231.867 1872.67 228.4 1875.07C225.067 1877.33 219.6 1881.33 216.4 1883.6C213.2 1886 210 1888 209.2 1888C208.4 1888 201.734 1882.4 194.267 1875.6C179.067 1862 168.667 1852.67 143.867 1830.93C126.8 1816.13 115.334 1805.2 112.134 1801.07C108.134 1795.73 111.6 1793.73 162 1770.67C167.2 1768.4 174.4 1765.07 178 1763.33C192 1756.8 204.934 1750.93 211.334 1748.13C215.067 1746.53 219.067 1744.67 220.267 1744C221.6 1743.33 228.534 1740 235.734 1736.8C249.067 1730.8 258.534 1726.4 278.4 1717.2C284.4 1714.27 289.6 1712 290 1712C290.4 1712 306.667 1704.67 319.334 1698.67C322.267 1697.2 330.4 1693.47 337.334 1690.4C344.267 1687.2 352.134 1683.6 354.667 1682.4C359.6 1680 362.534 1680.13 376.667 1683.33ZM383.734 1802.67C389.334 1804.27 396.4 1806.27 399.334 1807.2C402.267 1808.13 408.267 1810 412.667 1811.33C417.067 1812.53 424 1814.67 428 1816C432 1817.33 440.8 1820.13 447.334 1822C454 1824 461.2 1826.4 463.334 1827.33C465.6 1828.27 469.467 1829.47 472 1830C474.534 1830.53 477.334 1831.47 478 1832C478.8 1832.67 482 1833.73 485.334 1834.53C488.667 1835.47 493.467 1836.93 496 1837.87C498.534 1838.93 505.867 1841.73 512.4 1844.13C520.267 1847.07 524 1849.2 524 1850.53C524 1852.27 487.467 1902.13 473.067 1920.13C471.067 1922.67 466.8 1927.87 463.734 1931.87C427.734 1977.33 421.6 1984.93 407.334 2002.53C400 2011.6 392.267 2021.2 390 2024C387.867 2026.8 381.2 2034.8 375.334 2042C369.467 2049.2 361.867 2058.53 358.4 2062.67C354.934 2066.93 351.467 2070.8 350.8 2071.33C350 2071.73 342.4 2068.4 333.734 2063.87C325.067 2059.33 316.267 2054.67 314 2053.6C311.867 2052.53 301.067 2046.4 290 2040.27C279.067 2034 267.867 2027.73 265.334 2026.4C260.667 2023.87 254.8 2020.53 244.667 2014.67C241.734 2012.93 237.867 2010.67 236 2009.73C234.134 2008.67 230.934 2006.8 228.667 2005.47C226.534 2004.13 218.667 1999.6 211.334 1995.33C204 1991.2 197.067 1986.8 195.867 1985.87C194.8 1984.8 193.334 1984 192.8 1984C192.267 1984 185.867 1980.4 178.534 1976C171.2 1971.6 164.934 1968 164.534 1968C164.134 1968 161.867 1966.53 159.6 1964.8C157.2 1963.07 152.8 1960.4 149.6 1958.8C146.534 1957.2 144 1955.2 144 1954.27C144 1952.4 151.734 1945.33 172.4 1928.8C188.934 1915.6 230.934 1883.87 242.134 1876.27C246.667 1873.2 251.067 1869.73 252 1868.67C252.934 1867.6 254.134 1866.67 254.667 1866.67C255.2 1866.67 264.934 1860.53 276.134 1852.93C318.4 1824.53 361.334 1800.13 369.067 1800C371.467 1800 378 1801.2 383.734 1802.67Z",fill:"currentColor"}),f.jsx("path",{d:"M271.2 1740.13C269.6 1742.8 293.066 1764.53 307.333 1773.33C316.266 1778.93 322.666 1782.27 337.6 1789.2C344.133 1792.27 349.333 1792 349.333 1788.67C349.333 1786.4 343.066 1781.87 338.266 1780.67C334.8 1779.73 327.466 1776.13 314 1768.67C305.466 1764 292 1753.73 283.2 1745.2C276.4 1738.8 273.066 1737.33 271.2 1740.13Z",fill:"currentColor"}),f.jsx("path",{d:"M193.867 1767.33C191.6 1773.07 228.667 1803.47 251.867 1814.8C259.6 1818.53 267.867 1822.53 270.134 1823.73C275.067 1826.13 278.667 1825.2 278.667 1821.47C278.667 1819.47 274.667 1816.93 261.734 1810.53C236 1798 227.467 1792.4 210.267 1776.93C206 1773.2 200.8 1768.93 198.667 1767.6C194.934 1765.33 194.667 1765.2 193.867 1767.33Z",fill:"currentColor"}),f.jsx("path",{d:"M363.066 1876.93C359.866 1878.13 361.333 1881.2 367.066 1884.93C370.133 1887.07 373.6 1889.2 374.666 1889.73C375.733 1890.4 379.066 1892.27 382 1893.87C394.266 1901.2 425.733 1916 428.667 1916C429.6 1916 431.066 1915.07 432 1914C433.333 1912.4 433.333 1911.6 432 1910C430.266 1908 423.067 1904 421.067 1904C417.6 1904 376.933 1883.73 369.466 1878.27C366.133 1875.87 365.733 1875.73 363.066 1876.93Z",fill:"currentColor"}),f.jsx("path",{d:"M276 1904.93C276.133 1907.87 297.867 1926.53 313.6 1937.2C326.533 1946 345.333 1956.8 355.333 1961.2C359.067 1962.93 363.867 1965.07 366 1966C372.133 1968.8 390.667 1974.67 393.333 1974.67C394.667 1974.67 396.4 1973.73 397.333 1972.67C399.6 1970 397.2 1967.2 391.867 1966C389.733 1965.47 387.733 1964.53 387.333 1963.87C386.8 1963.2 385.6 1962.67 384.533 1962.67C381.733 1962.67 373.333 1959.07 350.667 1947.73C328.4 1936.8 306.4 1922.93 291.067 1910.53C281.467 1902.53 276 1900.53 276 1904.93Z",fill:"currentColor"}),f.jsx("path",{d:"M206.666 1937.07C206.666 1939.47 208.799 1941.33 225.999 1953.33C231.199 1956.93 235.999 1960.4 236.666 1960.93C237.466 1961.6 239.466 1962.8 241.333 1963.6C243.199 1964.53 248.933 1968 253.999 1971.2C262.266 1976.4 292.533 1992 305.333 1997.73C331.199 2009.2 333.599 2009.73 334.399 2004.27C334.799 2002.13 333.866 2000.93 331.066 1999.87C329.066 1999.2 325.599 1997.73 323.333 1996.67C321.199 1995.73 315.466 1993.2 310.666 1991.2C286.399 1980.67 254.799 1963.87 236.133 1951.33C228.533 1946.13 221.199 1941.33 219.866 1940.53C218.533 1939.73 216.266 1938.13 214.933 1936.93C211.599 1933.87 206.666 1934 206.666 1937.07Z",fill:"currentColor"})]})}const Lie=E.styled("div")(({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center",gap:e.spacing(2)})),Tl="ApplicaEmpty",si={message:`${Tl}-message`,icon:`${Tl}-icon`,toolbar:`${Tl}-toolbar`},Bie=E.styled("span",{name:Tl,slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,height:"calc(100vh - 200px)",[`& .${si.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?1:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${si.icon}`]:{fontSize:"9em",marginTop:"16px",marginBottom:"16px"},[`& .${si.toolbar}`]:{textAlign:"center"}}));function Nie({icon:e,className:t}){return e!==void 0?e:t!=null&&t.includes("RaList-noResults")?f.jsx(Fie,{className:si.icon}):f.jsx(Die,{className:si.icon})}function f1({actions:e,className:t,hasCreate:n,icon:r,title:o,subtitle:i,sx:s,...l}){const{hasCreate:d}=ne.useResourceDefinition(l),u=n!==void 0?n:d,p=ne.useResourceContext(l),g=ne.useTranslate(),h=ne.useGetResourceLabel(),m=p?g(`resources.${p}.name`,{smart_count:0,_:h(p,0)}):g("ra.empty.no_resource"),v=g("ra.page.empty",{name:m}),b=g("ra.page.invite");return f.jsxs(Bie,{className:$e(`${Tl}-root`,t),sx:s,children:[f.jsxs(E.Box,{className:si.message,children:[Nie({icon:r,className:t}),f.jsx(E.Typography,{variant:"h4",paragraph:!0,children:o||g(`resources.${p}.empty`,{_:v})}),i||(u?f.jsx(E.Typography,{variant:"body1",children:g(`resources.${p}.invite`,{_:b})}):null)]}),f.jsx(Lie,{className:si.toolbar,children:e||(u?f.jsx(qC,{variant:"contained",size:"medium",disableFloatingButton:!0}):null)})]})}const qm=f.jsx(z.BulkDeleteButton,{}),gx=B.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?z.PureDatagridBody:z.DatagridBody,header:o=z.DatagridHeader,children:i,className:s,empty:l,expand:d,bulkActionsToolbar:u=!1,bulkActionButtons:p=qm,hover:g,isRowSelectable:h,isRowExpandable:m,resource:v,rowClick:b,rowSx:x,rowStyle:S,size:I="small",sx:w,expandSingle:T=!1,...P}=e,M=ne.useTranslate(),{sort:j,data:_,isLoading:N,onSelect:k,onToggleItem:D,selectedIds:U,setSort:H,total:G}=ne.useListContext(e),Y=!!p,V=O.useMemo(()=>({isRowExpandable:m,expandSingle:T}),[m,T]),Z=O.useRef(null);O.useEffect(()=>{(!U||U.length===0)&&(Z.current=null)},[JSON.stringify(U)]);const W=O.useCallback((K,$)=>{const te=_.map(Q=>Q.id),oe=te.indexOf(Z.current);if(Z.current=$.target.checked?K:null,$.shiftKey&&oe!==-1){const Q=te.indexOf(K),de=te.slice(Math.min(oe,Q),Math.max(oe,Q)+1),pe=$.target.checked?qte(U,de):lne(U,de);k(h?pe.filter(ye=>h(_.find(ce=>ce.id===ye))):pe)}else D(K)},[_,h,k,D,U]),se=f.jsx(f1,{hasCreate:!1,sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:M("ra.navigation.no_results")});return N===!0?f.jsx(z.DatagridLoading,{className:s,expand:d,hasBulkActions:Y,nbChildren:B.Children.count(i),size:I}):_==null||_.length===0||G===0?l||se:f.jsx(_ie,{value:V,children:f.jsxs(z.DatagridRoot,{sx:w,className:$e(z.DatagridClasses.root,s),children:[u!=null&&O.isValidElement(u)?O.cloneElement(u,{selectedIds:U,total:G}):p!==!1?f.jsx(px,{children:O.isValidElement(p)?p:qm}):null,f.jsx("div",{className:z.DatagridClasses.tableWrapper,children:f.jsxs(E.Table,{ref:t,className:z.DatagridClasses.table,size:I,...Vie(P),children:[Ym(o,{children:i,sort:j,data:_,hasExpand:!!d,hasBulkActions:Y,isRowSelectable:h,onSelect:k,resource:v,selectedIds:U,setSort:H},i),Ym(r,{expand:d,rowClick:b,data:_,hasBulkActions:Y,hover:g,onToggleItem:W,resource:v,rowSx:x,rowStyle:S,selectedIds:U,isRowSelectable:h},i)]})})]})})});function Ym(e,t,n){return O.isValidElement(e)?O.cloneElement(e,t,n):O.createElement(e,t,n)}const $ie=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"];function Vie(e){return Object.keys(ne.sanitizeListRestProps(e)).filter(t=>!$ie.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{})}gx.displayName="Datagrid";const zie=ge(gx,{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 mx(e){return f.jsx(zie,{...e})}const wp=O.createContext({hasFilterSidebar:!1});function vx(){var e;return((e=O.useContext(wp))==null?void 0:e.hasFilterSidebar)??!1}function Sp({source:e,value:t}){const n=O.useContext(z.FilterContext),r=z.useResourceContext(),o=O.useMemo(()=>n.find(d=>{var u,p;return O.isValidElement(d)&&(((u=d.props)==null?void 0:u.source)===e||(e==null?void 0:e.includes((p=d.props)==null?void 0:p.source)))}),[n,e]),i=O.useMemo(()=>O.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 s={...i,specificSource:e,record:{[e]:t},value:t,resource:r};return O.isValidElement(i.chip)?O.cloneElement(i.chip,s):Qe.isFunction(i.chip)?O.createElement(i.chip,s):null}function Wie(e){const{value:t,source:n,lastItem:r}=e,o=Sp({source:n,value:t});return f.jsxs(E.Stack,{children:[f.jsx(E.ListItem,{alignItems:"flex-start",sx:{pl:0},children:f.jsx(E.ListItemText,{primary:o,sx:{my:0}})}),r===n?null:f.jsx(E.Divider,{})]})}function Uie(){const{filterValues:e}=ne.useListContext(),t=ne.useTranslate();return f.jsxs(E.Stack,{mt:4,width:"100%",children:[f.jsx(E.Typography,{variant:"h6",fontWeight:"bold",color:"secondary",children:t("ra.title.selected_filters")}),f.jsx(E.List,{sx:{bgcolor:"background.paper",pt:0,overflowY:"auto",maxHeight:400},children:e?Object.entries(e).map(([n,r])=>{const o=Object.entries(e).pop(),i=o?o[0]:"";return f.jsx(Wie,{lastItem:i,value:r,source:n},n)}):null})]})}function Hie(e){const{onClose:t,addQuery:n}=e,r=ne.useTranslate(),{handleSubmit:o}=fn.useFormContext(),i=O.useCallback(s=>{n(s.queryName)},[n]);return f.jsxs(E.Toolbar,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[f.jsx(E.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(E.Button,{variant:"contained",onClick:o(i),children:r("ra.action.save")})]})}function yx(e){const{open:t,onClose:n}=e,{filterValues:r,sort:o,perPage:i,displayedFilters:s,resource:l}=ne.useListContext(),[d,u]=uC(l),p=ne.useTranslate(),g=O.useCallback(m=>{const v={label:m.trim(),value:{filter:r,sort:o,perPage:i,displayedFilters:s}},b=dC(d);u(b.concat(v)),n()},[r,o,i,s,d,u,n]),h=O.useCallback(()=>m=>{if(d.some(v=>v.label===(m==null?void 0:m.trim())))return"ra.validation.already_exists"},[d]);return f.jsx(E.Dialog,{open:t,onClose:n,maxWidth:"xs",fullWidth:!0,children:f.jsxs(yp,{toolbar:f.jsx(Hie,{addQuery:g,onClose:n}),title:p("ra.title.save_favorite_filter"),modal:!0,children:[f.jsx(Sr,{fullWidth:!0,source:"queryName",label:p("ra.input.query_name"),placeholder:p("ra.input.query_name_placeholder"),validate:[ne.required(),h()]}),f.jsx(Uie,{})]})})}function bx(){const[e,t]=O.useState(!1),n=ne.useTranslate(),r=O.useCallback(()=>{t(!1)},[]),o=O.useCallback(()=>{t(!0)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(E.Button,{sx:{height:"36px"},variant:"contained",onClick:o,children:n("ra.action.save_filter")}),f.jsx(yx,{open:e,onClose:r})]})}function Gie(e){const{onDelete:t,value:n,source:r}=e,o=Sp({source:r,value:n});return o&&f.jsx(E.Chip,{label:o,variant:"combined",color:"primary",sx:{height:"36px","& .MuiChip-deleteIcon":{fontSize:"1rem !important",mr:1}},deleteIcon:f.jsx(Vt.Close,{}),onDelete:t})}function qie(){const{filterValues:e,setFilters:t}=ne.useListContext(),n=E.useTheme(),r=E.useMediaQuery(n.breakpoints.down("sm")),o=ne.useTranslate(),i=O.useCallback(()=>{t({})},[t]),s=O.useCallback(d=>{const u={...e};delete u[d],t(u)},[e,t]),l=O.useCallback(()=>f.jsxs(E.Stack,{flexDirection:"row",gap:2,children:[f.jsx(bx,{}),f.jsx(E.Button,{variant:"outlined",onClick:i,children:o("ra.action.reset_filters")})]}),[i,o]);return f.jsxs(E.Stack,{gap:2,flexDirection:r?"column":"row",children:[f.jsxs(E.Stack,{flexDirection:"row",flexWrap:r?"nowrap":"wrap",gap:2,py:.5,overflow:"auto",width:r?window.innerWidth-58:"auto",children:[Object.entries(e).map(([d,u])=>f.jsx(Gie,{source:d,value:u,onDelete:()=>s(d)},d)),r?null:f.jsx(l,{})]}),r?f.jsx(l,{}):null]})}function V0(){const{filterValues:e}=ne.useListContext(),t=E.useTheme(),n=E.useMediaQuery(t.breakpoints.down("sm")),r=ne.useTranslate();return e&&!Qe.isEmpty(e)?f.jsxs(E.Stack,{sx:{backgroundColor:t.palette.background.paper},flexDirection:n?"column":"row",alignItems:"baseline",gap:2,p:n?2:0,children:[f.jsx(E.Typography,{variant:"h6",color:"secondary",whiteSpace:"nowrap",children:r("ra.title.active_filters")}),f.jsx(qie,{})]}):null}function Cx({open:e,onClose:t,filterToRemove:n}){var v;const r=ne.useTranslate(),{resource:o,filterValues:i,sort:s,perPage:l,displayedFilters:d}=ne.useListContext(),u=((v=n==null?void 0:n.value)==null?void 0:v.filter)||i,p=(n==null?void 0:n.label)??"",[g,h]=z.useSavedQueries(o);function m(){const b={filter:u,sort:s,perPage:l,displayedFilters:d},x=z.extractValidSavedQueries(g),S=x.findIndex(I=>Nl(I.value,b));h([...x.slice(0,S),...x.slice(S+1)]),t()}return f.jsxs(E.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[f.jsx(E.DialogTitle,{id:"alert-dialog-title",children:r("ra.saved_queries.remove_dialog_title",{label:p,_:"Remove saved query?"})}),f.jsx(E.DialogContent,{children:f.jsx(E.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(E.DialogActions,{children:[f.jsx(E.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(E.Button,{onClick:m,color:"primary",autoFocus:!0,children:r("ra.action.confirm")})]})]})}function Yie(e){const{query:t}=e,[n,r]=O.useState(!1),o=O.useCallback(()=>{r(s=>!s)},[]),i=ne.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(E.Button,{size:"small",color:"primary",onClick:o,children:i("ra.action.delete")}),f.jsx(Cx,{open:n,onClose:o,filterToRemove:t})]})}function xx(e){const{closeSidebar:t}=e,{resource:n,setFilters:r,setSort:o,setPage:i,setPerPage:s}=ne.useListContext(),[l,d]=O.useState(!1),u=wt(),[p]=uC(n),g=dC(p),h=ne.useTranslate(),m=O.useCallback(()=>{d(b=>!b)},[]),v=O.useCallback(b=>{const{value:x}=b;r(x.filter),o({field:x.sort.field,order:x.sort.order}),i(1),s(x.perPage),t()},[r,o,i,s,t]);return p&&p.length>0?f.jsx(E.Box,{sx:{mt:"-1px",mb:2,"& .MuiAccordion-root":{borderColor:u.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:u.palette.divider},"& .MuiAccordionSummary-expandIconWrapper":{color:u.palette.text.primary,"&.Mui-expanded":{transform:"rotate(180deg)"}}}},children:f.jsxs(E.Accordion,{expanded:l,onChange:m,children:[f.jsx(E.AccordionSummary,{sx:{px:"20px"},expandIcon:f.jsx($b,{fontSize:"small"}),children:f.jsxs(E.Typography,{variant:"h5",fontWeight:"bold",children:[h("ra.action.saved_filters")," (",g.length,")"]})}),g==null?void 0:g.map((b,x)=>f.jsxs(E.AccordionDetails,{sx:{display:"flex",justifyContent:"space-between",px:"20px",alignItems:"center"},children:[f.jsx(E.Typography,{variant:"body1",children:b.label}),f.jsxs(E.Stack,{flexDirection:"row",alignItems:"center",children:[f.jsx(Yie,{query:b}),f.jsx(E.Button,{size:"small",color:"primary",onClick:()=>v({value:b.value}),children:h("ra.action.apply")})]})]},x))]})}):f.jsx(E.Box,{height:16})}function Kie(e){const{sx:t}=e;return f.jsx(E.Box,{sx:{...t,flex:"1 1 auto",backgroundColor:"background.paper",overflowY:"auto"},children:e.children})}const Zie=444;function Xie(e){const{sx:t,anchor:n="right",variant:r="temporary",open:o=!1,onClose:i,keepMounted:s=!1}=e,l=E.useTheme(),u=E.useMediaQuery(l.breakpoints.down("sm"))?"bottom":n,p=O.useCallback(()=>{i&&i()},[i]),g=O.useMemo(()=>({backgroundImage:"none",boxShadow:"-10px 4px 42px 0px rgba(0, 0, 0, 0.25)",width:{sm:"30%"},maxWidth:{sm:Zie},[l.breakpoints.down("sm")]:{width:"100% !important",maxWidth:"100% !important"}}),[l.breakpoints]);return f.jsx(E.Drawer,{...e,anchor:u,onClose:p,open:o,PaperProps:{sx:{...g,...t}},variant:r,keepMounted:s,children:e.children})}const Qie=O.memo(Xie);function Jie(e){return f.jsxs(E.Box,{children:[f.jsx(E.Divider,{}),f.jsx(E.Box,{bgcolor:"background.paper",px:2,py:2.5,children:e.children})]})}function ese(e){const{sx:t}=e;return f.jsxs(E.Box,{children:[f.jsx(E.Stack,{alignItems:"center",bgcolor:"background.paper",direction:"row",px:2.5,py:2,spacing:2,minHeight:"64px",sx:t,children:e.children}),f.jsx(E.Divider,{sx:{opacity:.6}})]})}function tse(e){const{primary:t,secondary:n}=e;return f.jsxs(E.Box,{display:"inline-flex",flexGrow:1,flexShrink:1,flexDirection:"column",children:[t?f.jsx(E.Typography,{variant:"h5",children:t}):null,n?f.jsx(E.Typography,{variant:"h6",children:n}):null]})}function nse(e){return f.jsx(E.Box,{display:"inline-flex",flexGrow:0,flexShrink:0,children:e.children})}const xr=Qie;xr.Content=Kie;xr.Footer=Jie;xr.Header=ese;xr.HeaderText=tse;xr.HeaderAction=nse;function rse(e){const{form:t,filters:n}=e,r=ne.useResourceContext();return f.jsx(z.FilterContext.Provider,{value:Array.isArray(n)?n:[n],children:f.jsx(fn.FormProvider,{...t,children:f.jsx(E.Box,{px:"20px",children:n?(Array.isArray(n)?n:[n]).map((o,i)=>{const s={...o.props,display:"label"};return O.isValidElement(o)?f.jsx(E.Box,{mb:1,children:O.cloneElement(o,{...s,resource:r})},i):null}):null})})})}function ose(e){const{filters:t,keepMounted:n=!1}=e,[r,o]=O.useState(!1),{setSidebarOpen:i,sidebarOpen:s}=_3(),{filterValues:l,setFilters:d}=ne.useListContext(),u=ne.useTranslate(),p=O.useMemo(()=>t?(Array.isArray(t)?t:[t]).reduce((w,T)=>(w[T.props.source]=(l==null?void 0:l[T.props.source])??"",w),{}):{},[t,l]),g=fn.useForm({defaultValues:l,values:p}),{handleSubmit:h,getValues:m,reset:v}=g;O.useEffect(()=>{const w=z.getFilterFormValues(m(),l),T=m();Qe.isEqual(w,T)||v(w)},[JSON.stringify(l),l,m,v]);const b=O.useCallback(()=>{i&&i(!1)},[i]),x=O.useCallback(w=>{Object.keys(w).forEach(T=>{(Qe.isNull(w[T])||Qe.isUndefined(w[T])||w[T]==="")&&delete w[T]}),d(w),b()},[d,b]),S=O.useCallback(()=>{v({}),d({})},[v,d]),I=O.useCallback(()=>{o(w=>!w),S(),setTimeout(()=>o(!1),1e3)},[S]);return f.jsxs(xr,{sx:{height:"100%"},open:s,onClose:b,keepMounted:n,children:[f.jsxs(xr.Header,{children:[f.jsx(xr.HeaderText,{primary:u("ra.action.add_filter")}),f.jsx(xr.HeaderAction,{children:f.jsx(Yy,{variant:"text",loading:r,loadingPosition:"start",startIcon:f.jsx(He.ReloadOutlined,{}),onClick:I,children:u("ra.action.reset_filters")})})]}),f.jsxs(xr.Content,{children:[f.jsx(xx,{closeSidebar:b}),f.jsx(rse,{form:g,filters:t})]}),f.jsx(xr.Footer,{children:f.jsxs(E.Stack,{direction:"row",spacing:2,children:[f.jsx(E.Button,{fullWidth:!0,onClick:()=>{v({}),b()},children:u("ra.action.close")}),f.jsx(E.Button,{fullWidth:!0,variant:"contained",color:"primary",onClick:h(x),children:u("ra.action.apply_filters")})]})})]})}const qc=O.memo(ose);function ise(){const{setSidebarOpen:e}=_3(),t=O.useContext(z.FilterContext),n=vx(),r=z.useTranslate(),o=E.useTheme(),i=E.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 s=O.useCallback(()=>{Qe.isFunction(e)&&e(!0)},[e]);return i?f.jsxs(E.Button,{className:"add-filter",onClick:s,children:[f.jsx(Vt.FilterList,{sx:{fontSize:"1rem",mr:.5}}),f.jsx(E.Typography,{variant:"h6",children:r("ra.action.add_filter")})]}):f.jsx(os,{label:"ra.action.add_filter",onClick:s,children:f.jsx(Vt.FilterList,{})})}const wx=O.createContext({sidebarOpen:!1,setSidebarOpen:()=>{},currentTabKey:"",setCurrentTabKey:()=>{}});function Sx(e){const[t,n]=O.useState(!1),[r,o]=O.useState("");return f.jsx(wx.Provider,{value:{currentTabKey:r,setCurrentTabKey:o,sidebarOpen:t,setSidebarOpen:n},children:e.children})}function _3(){return O.useContext(wx)}function z0({tabs:e=[]}){const{setFilters:t,filterValues:n,displayedFilters:r}=z.useListContext(),{setCurrentTabKey:o}=_3(),i=z.useResourceContext(),s=wt(),[l,d]=ut.useSearchParams();if(e.length>0&&e.some(j=>!j.key))throw new Error("ListTabsToolbar: Each tab must have a unique key.");const u=O.useMemo(()=>e.findIndex(j=>j.default)??0,[e]),p=O.useMemo(()=>i.replace(/^entities\//,""),[i]),g=O.useMemo(()=>`${p}-tab-group`,[p]),h=O.useMemo(()=>`${p}-tab-filters`,[p]),[m,v]=B0(g,u),[b,x]=B0(h,{}),S=O.useRef(!1),I=O.useMemo(()=>J.debounce((j,_,N)=>{x(k=>({...k,[j]:{filterValues:{..._},displayedFilters:{...N}}}))},500),[x]),w=O.useCallback((j,_,N)=>{const k=b==null?void 0:b[j];k?t(k.filterValues,k.displayedFilters||{},N):t(_,{},N)},[b,t]),T=O.useCallback((j,_)=>{const N=e[j].key;o==null||o(N),w(N,e[j].filter,_)},[e,o,w]),P=O.useCallback(j=>{const _=new URLSearchParams(l.toString());_.set(g,String(j)),d(_,{replace:!0})},[l,d,g]),M=O.useCallback((j,_)=>{v(_),T(_,!0)},[T,v]);return O.useEffect(()=>{var j;if(S.current&&e.length>0){const _=(j=e[Number(m)])==null?void 0:j.key;_&&I(_,n,r)}},[n,r,m,e,I]),O.useEffect(()=>{l.get(g)!==String(m)&&P(Number(m))},[n]),O.useEffect(()=>{if(!S.current){const j=l.get(g),_=j!=null?Number(j):Number(m);j!=null&&_!==Number(m)&&v(_),T(_,!1),S.current=!0}},[]),f.jsx(E.Box,{sx:{width:"100%"},children:e.length>0?f.jsx(E.Tabs,{value:Number(m),onChange:M,allowScrollButtonsMobile:!0,variant:"scrollable",scrollButtons:"auto",sx:{width:"100%",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.2}},children:e.map(j=>f.jsx(E.Tab,{icon:j.icon,label:j.label,sx:{flex:"0 0 auto",lineHeight:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& .MuiTab-iconWrapper":{marginRight:s.spacing(.5)}}},j.key))}):null})}function Ax(e){const{filters:t,actions:n,className:r,hasFilterSidebar:o,tabs:i,...s}=e,l=wt(),d=E.useMediaQuery(l.breakpoints.down("sm")),u=n?O.cloneElement(n,{...s,...n.props}):null,{filterValues:p,data:g,isLoading:h}=ne.useListContext(),m=!h&&g&&g.length===0,v=i&&i.length>0;return Array.isArray(t)?f.jsx(wp.Provider,{value:{hasFilterSidebar:o},children:f.jsx(z.FilterContext.Provider,{value:t,children:f.jsx(Km,{className:r,children:f.jsxs(E.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",gap:2},children:[i?f.jsx(z0,{tabs:i}):null,f.jsx(E.Box,{children:d&&o?f.jsxs(E.Box,{sx:{border:d&&m?"1px solid":0,borderColor:l.palette.mode==="dark"?l.palette.divider:l.palette.grey.A800},children:[u,Qe.isEmpty(p)?null:f.jsxs(E.Box,{children:[f.jsx(E.Divider,{}),f.jsx(V0,{})]})]}):f.jsxs(E.Box,{sx:{display:"flex",flexDirection:d?"column":"row",alignItems:d?"flex-start":"center",gap:2,px:2.5,py:2.5},children:[o?f.jsx(V0,{}):f.jsx(z.FilterForm,{}),d?null:f.jsx(E.Box,{sx:{flex:1}}),u]})})]})})})}):f.jsx(Km,{className:r,children:f.jsxs(E.Box,{sx:{display:"flex",flex:1,flexDirection:"column",gap:2,width:"100%"},children:[i?f.jsx(z0,{tabs:i}):null,f.jsxs(E.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:2,p:v?0:l.spacing(2.5),px:l.spacing(2.5),pb:l.spacing(2.5),width:"100%"},children:[t?O.cloneElement(t,{...s,context:"form"}):null,f.jsx("span",{}),n?O.cloneElement(n,{...s,filters:t,...n.props}):null]})]})})}Ax.propTypes={filters:C.oneOfType([C.element,C.arrayOf(C.element)]),actions:C.oneOfType([C.bool,C.element]),exporter:C.oneOfType([C.func,C.bool])};const sse="RaListToolbar",Km=ge("div",{name:sse,overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%",padding:0,[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"}})),Ap=O.memo(Ax),ase=f.jsx(z.ListActions,{}),lse=f.jsx(z.Pagination,{}),cse=f.jsx(f1,{}),use=E.Card;function dse(e){const{actions:t=ase,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:i,hasCreate:s,pagination:l=lse,children:d,className:u,component:p=use,title:g,empty:h=cse,tabs:m,...v}=e,{defaultTitle:b,data:x,error:S,isLoading:I,filterValues:w,resource:T}=ne.useListContext(e),P=wt(),M=B.isValidElement(n)&&(n==null?void 0:n.type)!==qc,j=B.isValidElement(n)&&(n==null?void 0:n.type)===qc;if(!d||!x&&I&&i)return null;function _(V){return f.jsxs("div",{className:Kr.main,style:{border:M?"1px solid":"none",borderRadius:M?4:0,borderColor:M?P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800:"transparent",backgroundColor:M?P.palette.background.paper:"transparent"},children:[r||t?f.jsx(Ap,{className:Kr.actions,filters:r,actions:t,hasCreate:s,hasFilterSidebar:j,tabs:m}):null,!S&&f.jsx(p,{className:Kr.content,sx:V?{background:"transparent"}:{},children:o&&d&&B.isValidElement(d)?O.cloneElement(d,{bulkActionButtons:o}):d}),S?f.jsx(ep,{error:S,resetErrorBoundary:null}):l!==!1&&l]})}function N(){return h!==!1&&O.cloneElement(h,{className:Kr.noResults,hasCreate:s})}const k=!I&&(x==null?void 0:x.length)===0,D=!I&&(x==null?void 0:x.length)===0&&!Object.keys(w).length&&h!==!1,U=B.isValidElement(n),H=U&&(n==null?void 0:n.type)===qc,G=I||D||U&&!H?B.Fragment:Nn,Y=!I&&!D&&(!n||H)?{content:!1}:void 0;return f.jsxs(pse,{className:$e("list-page",u),...v,sx:k?{"& .MuiPaper-root":{backgroundColor:"transparent",border:"none",borderRadius:0},"& .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(z.Title,{title:g,defaultTitle:b,preferenceKey:`${T}.list.title`}),f.jsx(G,{...Y,children:I?f.jsx(E.CircularProgress,{sx:{position:"absolute",top:"50%",left:"50%",marginTop:"-20px",marginLeft:"-20px"}}):D?N():_(k)}),M?f.jsx(fse,{aside:n}):null,j?B.cloneElement(n,{filters:r}):null]})}function fse({aside:e}){var r;const t=((r=e==null?void 0:e.props)==null?void 0:r.order)??-1,n=wt();return f.jsx(E.Card,{className:Kr.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(E.CardContent,{sx:{pt:1},children:O.cloneElement(e,{})})})}const zs="RaList",Kr={main:`${zs}-main`,content:`${zs}-content`,actions:`${zs}-actions`,noResults:`${zs}-noResults`,asideCard:`${zs}-asideCard`},pse=ge("div",{name:zs,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex","& >.MuiPaper-root":{flex:1},[`& .${Kr.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${Kr.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${Kr.actions}`]:{},[`& .${Kr.noResults}`]:{alignContent:"center"},[`& .${Kr.asideCard}`]:{[e.breakpoints.down("md")]:{display:"none"},[`& .${z.SavedQueriesListClasses.floatingIcon}`]:{fontSize:"1.125rem"},[`& .${z.SavedQueriesListClasses.floatingTooltip}`]:{top:"-1.2em"},"& form":{marginTop:e.spacing(2)}}}));function hse({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=gse,filterDefaultValues:i,perPage:s=10,queryOptions:l,resource:d,sort:u,storeKey:p,...g}){return f.jsx(ne.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:i,perPage:s,queryOptions:l,resource:d,sort:u,storeKey:p,children:f.jsx(Sx,{children:f.jsx(dse,{...g})})})}const gse={},mse=a1(hse,{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",borderTopLeftRadius:`${e.shape.borderRadius}px`,borderTopRightRadius:`${e.shape.borderRadius}px`,borderBottomLeftRadius:0,borderBottomRightRadius:0,[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)",backgroundColor:e.palette.background.paper,border:"1px solid",borderTop:"none",borderColor:e.palette.mode==="dark"?e.palette.divider:e.palette.grey.A800,borderBottomLeftRadius:`${e.shape.borderRadius}px`,borderBottomRightRadius:`${e.shape.borderRadius}px`}},"& .RaList-noResults":{backgroundColor:e.palette.background.paper,border:"1px solid",borderColor:e.palette.mode==="dark"?e.palette.divider:e.palette.grey.A800,borderRadius:`${e.shape.borderRadius}px`},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function vse(e){const t={...e,pagination:e.pagination??f.jsx(k3,{})};return f.jsx(mse,{...t})}function yse(){const e=z.useRefresh(),t=z.useNotify(),n=z.useResourceContext(),r=z.useUnselectAll(n),{selectedIds:o,data:i}=z.useListContext(),s=z.useRecordContext(),l=o.map(g=>i.find(h=>h.id===g)),[d,{isLoading:u}]=z.useUpdateMany(n,{ids:o.length>0?o:[s==null?void 0:s.id],data:{readed:Br().toISOString()},rows:l},{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=O.useCallback(()=>{d()},[d]);return f.jsx(z.Button,{label:"ra.notification.mark_as_readed",disabled:u||(s==null?void 0:s.readed)!==null,onClick:p,children:f.jsx(Vt.Email,{})})}function bse(){const e=z.useRefresh(),t=z.useNotify(),n=z.useResourceContext(),r=z.useUnselectAll(n),{selectedIds:o,data:i}=z.useListContext(),s=z.useRecordContext(),l=o.map(g=>i.find(h=>h.id===g)).concat([s]),[d,{isLoading:u}]=z.useUpdateMany(n,{ids:o.length>0?o:[s==null?void 0:s.id],data:{readed:null},rows:l},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=O.useCallback(()=>{d()},[d]);return f.jsx(z.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:u||s&&!(s!=null&&s.readed),onClick:p,children:f.jsx(Vt.Drafts,{})})}function Cse(e){const t=z.useRecordContext(e),n=z.useResourceContext(e),r=z.useRedirect(),o=z.useNotify(),i=z.useTranslate(),[s]=z.useLocaleState(),l=O.useMemo(()=>t!=null&&t.readed?Br(t==null?void 0:t.readed).locale(s).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,s]),[d]=z.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Br().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"})}}),u=O.useCallback(()=>d(),[d]);return f.jsxs("div",{onClick:u,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(E.Typography,{variant:"subtitle1",children:f.jsxs(E.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(E.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),l?f.jsx(E.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:i("ra.notification.readed",{readed:l})}):null]})}function xse({...e}){const t=E.useTheme(),{mode:n,colorize:r,density:o}=O.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?E.darken:E.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]);function i(s){return{backgroundColor:s!=null&&s.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)}}return f.jsxs(z.Datagrid,{...e,rowSx:i,children:[f.jsx(Cse,{source:"notification",sortable:!1}),f.jsx(ax,{source:"created"}),f.jsxs(ui,{children:[f.jsx(yse,{}),f.jsx(bse,{})]})]})}function wse({empty:e,...t}){const n=z.useTranslate(),r=f.jsx(f1,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(E.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:n("ra.navigation.no_results")})});return f.jsx(z.SimpleList,{...t,empty:e||r})}function Ex(e){const{id:t,onClick:n,onDelete:r,recordRepresentation:o,resource:i}=e,s=ne.useGetRecordRepresentation(i),{data:l,isLoading:d,error:u}=ne.useGetMany(i,{ids:[t]}),p=J.find(l??[],{id:t}),g=!J.isNil(p)&&J.isFunction(r),h=O.useCallback(()=>{g&&r(p)},[r,p,g]),m=!J.isNil(p)&&J.isFunction(n),v=O.useCallback(()=>{m&&n(p)},[n,p,m]);if(d)return null;if(u||J.isNil(p))return f.jsx(Vt.Error,{color:"error"});{const b=J.isFunction(o)?o(p):s(p);return f.jsx(E.Chip,{label:b,onDelete:g?h:void 0,onClick:m?v:void 0})}}function Tx(e){const t=zC(),n=ne.useTranslate(),{children:r,multiple:o,onCancel:i,onConfirm:s,slotProps:l}=e,{dialogContent:d={},listToolbar:u={},pagination:p}=l??{},g=J.chain(l==null?void 0:l.list).defaults({disableSyncWithLocation:!0,emptyWhileLoading:!0,exporter:!1}).value(),h=!J.isNil(u.filters),m=J.chain(l==null?void 0:l.dialog).defaults({disableEscapeKeyDown:!0,fullWidth:!0,keepMounted:!1,open:!1}).value(),v=J.chain(l==null?void 0:l.dataGrid).defaults({}).extend({bulkActionButtons:!1,rowClick:"toggleSelection"}).value(),b=O.useCallback((x,S)=>o?J.includes(x,S)?J.without(x,S):J.concat(x,S):J.includes(x,S)?[]:[S],[o]);return f.jsx(ne.ListBase,{...g,storeKey:`reference-lookup-input-${t}`,children:f.jsx(ne.WithListContext,{render:({onSelect:x,selectedIds:S,onUnselectItems:I})=>f.jsx(E.Dialog,{...m,onClose:()=>{I(),i()},children:f.jsx(E.DialogContent,{...d,children:f.jsxs(E.Stack,{spacing:2,flexDirection:"column",children:[h?f.jsx(Ap,{...u}):null,f.jsxs(mx,{...v,onToggleItem:w=>x(b(S,w)),children:[f.jsx($0,{render:w=>J.includes(S,w.id)?f.jsx(Vt.CheckBox,{}):f.jsx(Vt.CheckBoxOutlineBlankOutlined,{})}),r??f.jsx($0,{label:n("ra.input.referenceLookup.dialog.defaultField"),render:w=>f.jsx(ne.RecordRepresentation,{record:w})})]}),f.jsx(k3,{...p}),f.jsxs(E.DialogActions,{children:[f.jsx(E.Button,{onClick:()=>{I(),i()},children:n("ra.input.referenceLookup.dialog.cancel")}),f.jsx(E.Button,{disabled:J.isEmpty(S),onClick:()=>{s(S),I()},color:"primary",children:n("ra.input.referenceLookup.dialog.confirm")})]})]})})})})})}function Sse(e){const{children:t,filter:n,filterDefaultValues:r,filters:o,recordRepresentation:i,reference:s,source:l}=e,{field:d}=ne.useInput({source:l}),{value:u,onChange:p}=d??{},g=!J.isEmpty(u),{open:h,handleOpen:m,handleClose:v}=np(!1),b=O.useMemo(()=>J.isEmpty(u)?n:J.chain(n??{}).clone().extend({id__ne:u}).value(),[n,u]),x=O.useMemo(()=>o??[f.jsx(Cp,{source:"keyword",alwaysOn:!0},"keyword")],[o]),S=O.useCallback(w=>{const T=J.first(w);return v(),p(T),T},[p,v]),I=O.useCallback(()=>p(null),[p]);return f.jsx(on,{...e,children:f.jsxs(E.Stack,{alignItems:"center",direction:"row",spacing:1,children:[g?f.jsx(Ex,{id:u,onClick:m,onDelete:I,recordRepresentation:i,resource:s}):null,!g&&f.jsx(ba,{onClick:m,children:f.jsx(Vt.AddCircleRounded,{})}),f.jsx(Tx,{onCancel:v,onConfirm:S,multiple:!1,slotProps:{dialog:{open:h,onClose:v},list:{filter:b,filterDefaultValues:r,resource:s},listToolbar:{filters:x}},children:t})]})})}function Ase(e){const{children:t,filter:n,filterDefaultValues:r,filters:o,recordRepresentation:i,reference:s,source:l}=e,{field:d}=ne.useInput({source:l}),{value:u,onChange:p}=d??{},g=!J.isEmpty(u),{open:h,handleOpen:m,handleClose:v}=np(!1),b=O.useMemo(()=>J.isEmpty(u)?n:J.chain(n??{}).clone().extend({id__nin:u}).value(),[n,u]),x=O.useMemo(()=>o??[f.jsx(Cp,{source:"keyword",alwaysOn:!0},"keyword")],[o]),S=O.useCallback(w=>{const T=J.union(u??[],w);return v(),p(T),T},[p,v,u]),I=O.useCallback(w=>p(J.without(u??[],w.id)),[p,u]);return f.jsx(on,{...e,children:f.jsxs(E.Stack,{alignItems:"center",direction:"row",spacing:1,children:[g?J.map(u??[],(w,T)=>f.jsx(Ex,{id:w,onDelete:I,recordRepresentation:i,resource:s},T)):null,f.jsx(ba,{onClick:m,children:f.jsx(Vt.AddCircleRounded,{})}),f.jsx(Tx,{onCancel:v,onConfirm:S,multiple:!0,slotProps:{dialog:{open:h,onClose:v},list:{filter:b,filterDefaultValues:r,resource:s},listToolbar:{filters:x}},children:t})]})})}function Ese({reference:e,target:t,children:n,filters:r,actions:o,...i}){return f.jsx(z.ResourceContextProvider,{value:e,children:f.jsx(dx,{perPage:5,pagination:f.jsx(z.Pagination,{}),...i,reference:e,target:t,children:f.jsxs(f.Fragment,{children:[f.jsx(z.ListToolbar,{filters:r,actions:o}),n]})})})}const Tse=ge(z.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 Ise({optionText:e="name",optionValue:t="id",...n}){return f.jsx(on,{...n,children:f.jsx(Tse,{optionText:e,optionValue:t,options:{autoWidth:!1}})})}const Ose=ge(z.SelectInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1||e===null?0:"auto"}}));function Pse(e){return f.jsx(on,{...e,children:f.jsx(Ose,{})})}function jse({multiline:e=!1,...t}){var d,u;const n=z.useTranslate(),r=z.maxLength(t==null?void 0:t.maxLength,"app.input.max_length_error"),o=(u=(d=fn.useController({name:t==null?void 0:t.source}))==null?void 0:d.field)==null?void 0:u.value;let i=t.helperText,s=t.validate;s?Array.isArray(s)&&s.indexOf(r)===-1&&s.push(r):s=[r];const l=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?`${l} - ${n(i)}`:l),f.jsx(Sr,{...t,validate:s,helperText:i,multiline:e,inputProps:{maxLength:t==null?void 0:t.maxLength}})}function Rse(e){if(!e)return"";const t=BC(e);return t?t.format("HH:mm"):""}function Mse(e){return e}const kse=ge(z.TimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function _se({parse:e=Mse,format:t=Rse,...n}){return f.jsx(on,{...n,children:f.jsx(kse,{parse:e,format:t,...n})})}function Ep({onSuccess:e,firstAccess:t}){const{spacing:n}=jn(),[r,o]=O.useState(!1),i=ne.useAuthProvider(),s=ne.useTranslate(),l=ne.useNotify(),d=Hi.useQueryClient(),u=O.useCallback(p=>{const{oldPassword:g,newPassword:h}=p;o(!0),i==null||i.changePassword(g,h).then(()=>{l("ra.auth.password_changed"),d.invalidateQueries(["auth","getIdentity"]),e()}).catch(m=>{l((m==null?void 0:m.message)||(m==null?void 0:m.toString()),{type:"error"})}).finally(()=>o(!1))},[i,e,l,d]);return f.jsx(ne.ResourceContextProvider,{value:"user/change-password",children:f.jsx(ne.EditContextProvider,{value:{record:{},resource:"user/change-password",save:u},children:f.jsx(yp,{onSubmit:u,toolbar:f.jsx(gi,{children:f.jsx(z.SaveButton,{disabled:r})}),children:f.jsxs(E.Grid,{container:!0,spacing:n,children:[t===!0&&f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Alert,{severity:"warning",children:[f.jsx(E.AlertTitle,{children:s("ra.auth.first_access.change_password")}),s("ra.auth.first_access.change_password_helper")]})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsx(Sr,{source:"oldPassword",type:"password",validate:ne.required()})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsx(Sr,{source:"newPassword",type:"password",validate:ne.required()})})]})})})})}const Ix=O.createContext({});function Dse(e){const{useDefaults:t=!1,queryOptions:n={}}=e,r=z.useResourceContext(),o=z.useDataProvider(),{search:i}=Yi.useLocation(),s=`${r}/new`,l=O.useCallback(()=>{if(!t||!J.isFunction(o.get))return Promise.resolve({});const h={};return new URLSearchParams(i??"").forEach((m,v)=>{h[v]=m}),o.get(s,h).then(m=>m.data).then(m=>{const{responseCode:v,value:b}=m;return v==="ok"?b:Promise.reject(m)})},[t,i,o,s]),d=O.useMemo(()=>J.chain(n).extend({queryKey:[r,i],queryFn:l}).value(),[r,i,l,n]),{data:u,isLoading:p}=Hi.useQuery(d),g=J.omit(e,["useDefaults"]);return p?f.jsx(E.Stack,{alignItems:"center",justifyContent:"center",flex:1,p:2,children:f.jsx(E.CircularProgress,{})}):f.jsx(Ix.Provider,{value:u??{},children:f.jsx(z.Create,{...g,children:e.children})})}const Fse=ge(Dse,{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 Lse(){return O.useContext(Ix)}const Bse=ge(z.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 Nse(e){return f.jsx(Bse,{...e})}const $se=ge(E.CardHeader)(({theme:e})=>({marginTop:e.spacing(2.5),marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0})),Vse=ge(E.Divider)(({theme:e})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,marginBottom:e.spacing(2),width:`calc(100% + ${e.spacing(5)})`}));function zse({title:e,divider:t=!0,variant:n="h5"}){const r=z.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx($se,{title:r(e,{_:e}),titleTypographyProps:{variant:n}}),t?f.jsx(Vse,{}):null]})}function W0(e){return e.id??e.label}function Ox(e,t){const n=`^${e}.`.replaceAll(".","\\."),r=new RegExp(n,"g");return t.match(r)!==null}function Wse(e){return J.map(e,"id")}function Fu(e){const t=e.match(new RegExp("[^.]+","g"));return t===null?0:t.length}function Px(e,t){const n=e!==void 0?Fu(e):0;return J.chain(t).filter(o=>e!==void 0?Ox(e,o.id):!0).filter(o=>Fu(o.id)===n+1).value()}function Use(e,t){var i;const n=J.clone(e),{type:r,payload:o}=t;switch(r){case"setFormRootPath":return J.extend(n,{formRootPath:o});case"setSyncWithLocation":return J.extend(n,{syncWithLocation:o});case"setErrorCount":return J.extend(n,{errorCount:o});case"setActiveItem":return J.includes(Wse(e.items),o)?J.extend(n,{activeItem:o}):n;case"addItem":{const{id:s}=o;return J.extend(n,{items:J.chain(n.items).clone().reject(l=>l.id===s).concat([o]).orderBy(l=>l.index).value()})}case"removeItem":{const s=J.isString(o)?o:o.id,l=J.chain(n.items).clone().reject(d=>d.id===s).value();return J.extend(n,{items:l}),n.activeItem===s&&J.extend(n,{activeItem:((i=J.first(l))==null?void 0:i.id)??void 0}),n}default:return n}}const Hse={syncWithLocation:!0,errorCount:!0,items:[],activeItem:void 0},jx=O.createContext(void 0);function Rx(e){const t=!!(e.syncWithLocation??!0),n=!!(e.errorCount??!0),{rootMatchString:r}=e,{pathname:o}=Yi.useLocation(),[i,s]=O.useReducer(Use,J.cloneDeep(Hse)),{formRootPath:l,items:d}=i,u=O.useMemo(()=>({state:i,dispatch:s}),[i,s]);return O.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=J.chain(p).map(m=>Yi.matchPath(m,o)).reject(m=>m===null).first().value(),h=g==null?void 0:g.pathnameBase;h!==void 0&&h!==l&&s({type:"setFormRootPath",payload:h})},[o,l,r]),O.useEffect(()=>{s({type:"setSyncWithLocation",payload:!!t})},[t,s]),O.useEffect(()=>{s({type:"setErrorCount",payload:!!n})},[n,s]),O.useEffect(()=>{var p;if(t&&l!==void 0){let g=o.replace(l,"").replace(new RegExp(/^\/?/),"");J.isEmpty(g)&&(g=((p=J.chain(d).filter(h=>Px(h.id,d).length===0).orderBy([h=>Fu(h.id),h=>h.index]).first().value())==null?void 0:p.id)??void 0),s({type:"setActiveItem",payload:g})}},[s,l,o,d,t]),f.jsx(jx.Provider,{value:u,children:e.children})}function Mx(){const e=O.useContext(jx);if(e===void 0)throw new Error("[LongForm] useFormContext: context undefined. Please provide a valid Context using LongForm.Provider");return e}function p1(){return Mx().state}function Tp(){return Mx().dispatch}function kx(){return p1().formRootPath}function _x(){return p1().activeItem}function Dx(){return p1().items}function Fx(){return p1().syncWithLocation}function Lx(){return p1().errorCount}function Bx(){const e=Tp();return O.useCallback(n=>{e({type:"setActiveItem",payload:n})},[e])}function Nx(){const e=Tp();return O.useCallback(n=>{e({type:"addItem",payload:n})},[e])}function $x(){const e=Tp();return O.useCallback(n=>{e({type:"removeItem",payload:n})},[e])}const Gse=ge(E.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 Vx(e){const{spacing:t}=jn(),{spacing:n=t}=e,r=J.omit(e,["spacing"]);return f.jsx(z.Form,{...r,className:"LongFormView",children:f.jsx(Gse,{container:!0,spacing:n*2,children:e.children})})}function zx(e){const{disposition:t={xl:9,lg:9,md:8,sm:8,xs:12}}=e,n=J.omit(e,["disposition"]);return f.jsx(E.Grid,{...n,item:!0,...t,children:e.children})}function Wx(e){const t=_x();return t===void 0?!1:e===t||Ox(e,t)}function Ux(e){const t=Dx();return O.useMemo(()=>Px(e,t),[t,e])}function qse(){const e=kx(),{search:t}=Yi.useLocation(),n=Yi.useNavigate();return O.useCallback(o=>{n(`${e}/${o}${t}`)},[e,n,t])}function Hx(){const e=Ux();return f.jsx(E.Card,{variant:"outlined",children:f.jsx(E.List,{sx:{"& .MuiListItemButton-root.Mui-selected":{borderColor:"palette.primary.main",borderRightStyle:"solid",borderRightWidth:2},"& .MuiListItemAvatar-root":{minWidth:24}},children:J.map(e,(t,n)=>f.jsx(Ip,{...t},n))})})}function Ip(e){const t=ne.useTranslate()??J.identity,n=Gx(e),{selected:r,label:o,icon:i,onClick:s,badge:l,items:d,isGroup:u,level:p,errors:g=0}=n,{spacing:h}=jn(),[m,v]=O.useState(r),b=O.useCallback(I=>{v(!m),s(I)},[s,m]),x=i!==void 0,S=J.omit(e,["label","icon","selected","badge"]);return O.useEffect(()=>{r&&!m&&v(r)},[r,m,v]),f.jsxs(f.Fragment,{children:[f.jsx(E.ListItem,{...S,disablePadding:!0,children:f.jsxs(E.ListItemButton,{selected:r?!u:null,onClick:b,sx:{pl:h*p},children:[x?f.jsx(E.ListItemIcon,{children:i}):null,f.jsx(E.ListItemText,{inset:!x,primary:g===0?t(o):f.jsx(E.Badge,{variant:"dot",color:"error",sx:{"& > .MuiBadge-badge":{transform:"scale(1) translate(125%, 0)"}},children:t(o)})}),l?f.jsx(E.ListItemAvatar,{children:f.jsx(du,{type:"filled",size:"xs",color:l.color??"default",children:l.content})}):null,u?m?f.jsx(Vt.ExpandLess,{}):f.jsx(Vt.ExpandMore,{}):null]})}),u?f.jsx(E.Collapse,{in:m,timeout:"auto",children:f.jsx(E.List,{children:J.map(d,(I,w)=>f.jsx(Ip,{...I},w))})}):null]})}function Gx(e){const{id:t}=e,n=Wx(t),r=Fu(t),o=qse(),i=Fx(),s=Bx(),l=Ux(t),d=!J.isEmpty(l),u=O.useCallback(g=>{d||(i?o(e.id):s(e.id)),J.isFunction(e.onClick)&&e.onClick(g)},[s,o,e,i,d]);return O.useMemo(()=>({...e,selected:n,onClick:u,items:l,isGroup:d,level:r}),[e,n,u,l,d,r])}var Yse=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},qx=e=>e.firstChild?e.firstChild.offsetParent===e:!0,Kse=(e,t)=>{let n=e,r=0;qx(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},Zse=e=>{let t=e.parentElement;for(;t&&getComputedStyle(t,null).getPropertyValue("display")==="contents";)t=t.parentElement;return t||window},zl=null;typeof CSS<"u"&&CSS.supports&&(CSS.supports("position","sticky")?zl="sticky":CSS.supports("position","-webkit-sticky")&&(zl="-webkit-sticky"));var Lu=!1;try{const e=Object.defineProperty({},"passive",{get(){Lu={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch{}var Lf=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}),s=o(i()),l=()=>{Object.assign(s,o(i())),n()};return window.addEventListener("resize",l,Lu),r.push(()=>window.removeEventListener("resize",l)),s}else{const i=o(t.getBoundingClientRect()),s=()=>{Object.assign(i,o(t.getBoundingClientRect())),n()},l=new ResizeObserver(s);return l.observe(t),r.push(()=>l.disconnect()),i}},Xse=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}},Qse=(e,t,n)=>{const{bottom:r,offsetBottom:o,offsetTop:i}=n,s=Yse(e);let l=!1;const d=()=>{l||requestAnimationFrame(()=>{const j=g();j!==w&&T(j),l=!1}),l=!0};let u=s===window?window.scrollY:s.scrollTop;const p=j=>{const{offsetTop:_,height:N}=m,{naturalTop:k}=x,{height:D}=S;return j+_+N>=k+D+I+o},g=()=>{const{height:j}=m,{height:_}=S;return _+i+o<=j?3:p(u)?1:2},h=s!==window&&qx(s),m=Lf({el:s,onChange:d,unsubs:t,measure:({height:j,top:_})=>({height:j,offsetTop:h?_:0})}),v=Zse(e),b=v===window?{top:0,bottom:0}:Xse(v),x=Lf({el:v,onChange:d,unsubs:t,measure:({height:j})=>({height:j-b.top-b.bottom,naturalTop:v===window?0:Kse(v,s)+b.top+m.offsetTop})}),S=Lf({el:e,onChange:d,unsubs:t,measure:({height:j})=>({height:j})});let I=0,w=g();const T=j=>{const _=w;if(w=j,_===2&&(I=-1),j===3){e.style.position=zl,r?e.style.bottom=`${o}px`:e.style.top=`${i}px`;return}const{height:N,offsetTop:k}=m,{height:D,naturalTop:U}=x,{height:H}=S;if(j===2)if(e.style.position="relative",I=_===0?Math.max(0,k+u-U+i):Math.max(0,k+u+N-(U+H+o)),r){const G=Math.max(0,D-H-I);e.style.bottom=`${G}px`}else e.style.top=`${I}px`;else e.style.position=zl,j===1?r?e.style.bottom=`${o}px`:e.style.top=`${N-H-o}px`:r?e.style.bottom=`${N-H-o}px`:e.style.top=`${i}px`};T(w);const P=j=>{if(j===u)return;const _=j-u;if(u=j,w===3)return;const{offsetTop:N,height:k}=m,{naturalTop:D,height:U}=x,{height:H}=S;if(_>0)if(w===0){if(j+N+i>D){const G=Math.max(0,N+u-D+i);j+N+k<=D+H+G+o?T(2):T(1)}}else w===2&&p(j)&&T(1);else if(w===1){if(N+j+k<D+U+o){const G=Math.max(0,N+u+k-(D+H+o));N+j+i>=D+G?T(2):T(0)}}else w===2&&N+j+i<D+I&&T(0)},M=s===window?()=>P(window.scrollY):()=>P(s.scrollTop);s.addEventListener("scroll",M,Lu),s.addEventListener("mousewheel",M,Lu),t.push(()=>s.removeEventListener("scroll",M),()=>s.removeEventListener("mousewheel",M))},Jse=({offsetTop:e=0,offsetBottom:t=0,bottom:n=!1}={})=>{const[r,o]=O.useState(null);return O.useEffect(()=>{if(!r||!zl)return;const i=[];return Qse(r,i,{offsetBottom:t,offsetTop:e,bottom:n}),()=>{i.forEach(s=>s())}},[r,t,e,n]),o},eae=e=>{const{offsetTop:t,offsetBottom:n,bottom:r,children:o,className:i,style:s}=e,l=Jse({offsetTop:t,offsetBottom:n,bottom:r});return f.jsx("div",{className:i,style:s,ref:l,children:o})},tae=eae,Yx=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(Yx||{});function Kx(e){const{sticky:t=!0,disposition:n={xl:3,lg:3,md:4,sm:4,xs:12},spacing:r=2}=e,o=J.omit(e,["sticky","disposition","spacing"]),i=t?tae:E.Box,s=O.useMemo(()=>t?{offsetTop:74,offsetBottom:r*2}:{},[t,r]);return f.jsx(E.Grid,{...o,item:!0,...n,children:f.jsx(i,{...s,children:f.jsx(E.Stack,{spacing:r,children:e.children})})})}function Zx(e){return f.jsx(f.Fragment,{children:e.children})}function Xx(e){const{children:t}=e;return O.useMemo(()=>{const r={top:[],bottom:[]};return O.Children.forEach(t,o=>{if(O.isValidElement(o)&&(o==null?void 0:o.type)===Zx){const{position:i}=o.props;switch(i){case"top":r.top.push(o);break;case"bottom":r.bottom.push(o);break}}}),r},[t])}function Qx(e){const{errors:t}=fn.useFormState(),n=Lx(),{label:r,icon:o,badge:i,index:s=0,children:l}=e,d=W0(e),u=Nx(),p=$x(),g=Wx(d),h=[];n&&(e.sources!==void 0?h.push(...e.sources):R3(l,v=>{var b;((b=v==null?void 0:v.props)==null?void 0:b.source)!==void 0&&h.push(v.props.source)}));const m=J.chain(h).uniq().map(v=>J.get(t,v)).reject(v=>v===void 0).value().length;return O.useEffect(()=>{u({id:d,index:s,label:r,icon:o,badge:i,errors:m})},[u,p,r,o,d,i,s,m]),O.useEffect(()=>()=>{p(d)},[d,p]),f.jsx(E.Box,{display:g?"unset":"none",children:e.children})}function Jx(e){const t=Op(e),n=W0(e);return f.jsx(Qx,{...e,id:n,children:O.Children.map(t,r=>{const o=W0(r.props);return O.cloneElement(r,{id:`${n}.${o}`})})})}function ew(e){return f.jsx(Qx,{...e})}function Op(e){const{children:t}=e;return O.useMemo(()=>J.chain(O.Children.toArray(t)).filter(r=>O.isValidElement(r)&&((r==null?void 0:r.type)===ew||(r==null?void 0:r.type)===Jx)).map((r,o)=>O.cloneElement(r,{index:o})).value(),[t])}function nae(e){const{tabsDisposition:t,contentDisposition:n,spacing:r=2}=e,o=J.pick(e,["syncWithLocation","errorCount"]),i=J.omit(e,["tabsDisposition","contentDisposition","syncWithLocation"]),{top:s,bottom:l}=Xx(e),d=Op(e);return f.jsx(Rx,{...o,children:f.jsxs(Vx,{...i,spacing:r,children:[f.jsxs(Kx,{disposition:t,spacing:r,children:[s,f.jsx(Hx,{}),l]}),f.jsx(zx,{disposition:n,children:d})]})})}const zt=nae;zt.BaseForm=Vx;zt.Content=zx;zt.Provider=Rx;zt.useItems=Dx;zt.useSyncWithLocation=Fx;zt.useErrorCount=Lx;zt.useFormRootPath=kx;zt.useActiveItem=_x;zt.useSetActiveItem=Bx;zt.useAddItem=Nx;zt.useRemoveItem=$x;zt.Sidebar=Kx;zt.SidebarSection=Zx;zt.SidebarSectionPosition=Yx;zt.useSidebarChildren=Xx;zt.NavMenu=Hx;zt.NavMenuItem=Ip;zt.useNavMenuItem=Gx;zt.Tab=ew;zt.Group=Jx;zt.useBaseItemChildren=Op;const rae=ge(z.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 oae(e){return f.jsx(rae,{...e})}const iae=ge(z.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 sae(e){return f.jsx(iae,{...e})}const aae=a1(z.TabbedForm,{slot:"Root"})(({theme:e})=>({"& .MuiGrid-root.MuiGrid-container":{paddingBottom:0},[e.breakpoints.down("sm")]:{paddingBottom:0,"& .MuiTableContainer-root":{paddingBottom:e.spacing(1)}}}));function lae({children:e}){return f.jsx(f.Fragment,{children:e})}function Pp(e){const{title:t,modal:n,content:r,subheader:o,secondary:i=f.jsx(ui,{children:f.jsx(is,{})}),sx:s,noPadding:l,toolbar:d=f.jsx(gi,{children:f.jsx(z.SaveButton,{type:"button"})}),...u}=e,p=fp(t),g=E.useTheme();return f.jsx(Nn,{title:p,modal:n,content:r,subheader:o,secondary:i,sx:{...s,"& .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(aae,{toolbar:d,component:l?lae:void 0,...u})})}function cae({children:e,...t}){return f.jsx(z.TabbedForm.Tab,{...t,children:f.jsx(E.Box,{sx:{width:"100%",p:2.5},children:e})})}Pp.Tab=z.TabbedForm.Tab;Pp.TabStack=cae;function jp(e){const{label:t,disableAdd:n,onClick:r,inset:o}=e,i=E.useTheme(),s=i.palette.mode==="dark"?i.palette.grey.A400:i.palette.grey.A800,l=i.palette.mode==="light"?"#000000":"#FFFFFF";return f.jsxs(E.Stack,{justifyContent:"space-between",alignItems:"center",flexDirection:"row",sx:o?{p:2.5}:{pt:2},children:[t!==!1&&f.jsx(E.Typography,{children:t}),!n&&(O.isValidElement(e==null?void 0:e.customButton)?O.cloneElement(e==null?void 0:e.customButton,{onClick:r}):f.jsx(E.IconButton,{color:"secondary",sx:{border:`1px solid ${s}`},onClick:r,children:f.jsx(He.PlusCircleOutlined,{style:{color:l}})}))]})}const Rp=O.createContext(void 0);function tw(){return O.useContext(Rp)}function Bu(e){const{children:t}=e,{item:n,index:r}=tw(),[o,i]=O.useState(!1),{update:s}=z.useArrayInput(),l=z.useTranslate(),d=O.useCallback(u=>(i(!1),s(r,u),Promise.resolve()),[r,s]);return f.jsxs(f.Fragment,{children:[f.jsx(E.Button,{color:"primary",onClick:()=>i(!0),sx:{justifyContent:"flex-start"},children:l("ra.action.edit")}),f.jsx(E.Dialog,{open:o,onClose:()=>i(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(z.EditContextProvider,{value:{record:n,save:d},children:t})})]})}function nw({source:e,children:t}){const n=O.Children.only(t),{getValues:r}=fn.useFormContext(),o=z.useRecordContext({record:r()});return O.isValidElement(n)?O.cloneElement(n,{source:e,record:o}):null}function Mp(e){const{label:t,disableAdd:n,inset:r,source:o,template:i}=e,[s,l]=O.useState(!1),{append:d}=z.useArrayInput(),u=O.useCallback(()=>{l(g=>!g)},[l]),p=O.useCallback(g=>(l(!1),d(g),Promise.resolve()),[l,d]);return f.jsxs(f.Fragment,{children:[O.cloneElement(f.jsx(jp,{}),{label:t,source:o,disableAdd:n,template:i,onClick:u,inset:r}),f.jsx(E.Dialog,{open:s,onClose:u,maxWidth:"xs",children:f.jsx(ne.CreateContextProvider,{value:{save:p},children:e.children})})]})}const kp=O.createContext(void 0);function rw(){return O.useContext(kp)}const ow=B.forwardRef((e,t)=>{const{children:n,disabled:r,disableRemove:o=!1,index:i,member:s,resource:l,record:d}=e,u=z.useTranslate(),{total:p,remove:g}=rw(),h=B.useCallback(()=>{g(i)},[i,g]),m=O.useMemo(()=>({index:i,total:p,item:d,remove:()=>g(i)}),[i,p,g,d]),v=O.useMemo(()=>O.Children.map(n,b=>O.isValidElement(b)&&(b==null?void 0:b.type)===Bu&&B.isValidElement(b)?b:null),[n]);return f.jsxs(Rp.Provider,{value:m,children:[O.Children.map(n,(b,x)=>{if(b.type===Bu||!O.isValidElement(b))return null;const{source:S,...I}=b.props;return f.jsx(E.TableCell,{children:O.cloneElement(b,{source:S?`${s}.${S}`:s,index:S?void 0:x,resource:l,disabled:r,...I,label:""})})}),!o&&f.jsx(E.TableCell,{children:f.jsx(E.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsxs(ui,{horizontal:!0,children:[f.jsx(is,{onConfirm:h,confirmContent:u("ra.message.remove_item")}),v]})})}),o&&v?f.jsx(E.TableCell,{children:f.jsx(E.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsx(ui,{horizontal:!0,children:v})})}):null]})});function uae(e){var Y,V;const{children:t,resource:n,source:r,label:o,disableAdd:i=!1,disableRemove:s=!1,enableClearAll:l=!1,className:d,empty:u,template:p={},addButton:g=f.jsx(jp,{}),inset:h,sx:m}=e,{fields:v,remove:b,replace:x,append:S}=z.useArrayInput(e),{resetField:I}=fn.useFormContext(),w=wt(),T=ne.useTranslate(),P=O.useRef(p||{}),M=ne.useTranslateLabel(),j=O.useCallback(Z=>{b(Z)},[b]);if(v.length>0){const{...Z}=v[0];P.current=Z;for(const W in P.current)P.current[W]=null}const _=O.useCallback((Z=void 0)=>{let W=Z;Z==null&&(W=P.current,O.Children.count(t)===1&&B.isValidElement(O.Children.only(t))&&!O.Children.only(t).props.source&&O.Children.map(t,K=>B.isValidElement(K)&&K.type!==ne.FormDataConsumer).some(Boolean)?W="":(W=W||{},O.Children.forEach(t,K=>{B.isValidElement(K)&&K.type!==ne.FormDataConsumer&&K.props.source&&(W[K.props.source]=K.props.defaultValue??null)})));const se={...W,...p};S(se),I(`${r}.${v.length}`,{defaultValue:W})},[S,t,I,r,v.length,p]);function N(Z){return W=>{_(),Z&&Z(W)}}const k=O.useCallback(()=>{x([])},[x]),D=O.useMemo(()=>({total:v.length,remove:j,source:r}),[v.length,j,r]),U=w.palette.mode==="dark"?w.palette.grey.A400:w.palette.grey.A800,H=v.length>0&&l,G=h===!0?{borderRadius:0,borderBottom:`1px solid ${w.palette.divider}`}:{mt:2,border:`1px solid ${U}`,boxShadow:w.customShadows.z0};return v?f.jsx(kp.Provider,{value:D,children:f.jsxs("div",{className:d,children:[B.cloneElement(g,{label:o,source:r,disableAdd:i,template:p,onClick:(g==null?void 0:g.type)!==Mp?N((V=(Y=e==null?void 0:e.addButton)==null?void 0:Y.props)==null?void 0:V.onClick):void 0,inset:h}),f.jsx(E.TableContainer,{component:E.Paper,sx:{...G,boxShadow:w.customShadows.z0,...m},children:f.jsxs(E.Table,{size:"small",children:[f.jsx(E.TableHead,{sx:h===!0?{}:{borderTop:0,borderBottom:`1px solid ${U}`},children:f.jsxs(E.TableRow,{children:[O.Children.map(t,(Z,W)=>{if(Z.type===Bu||!B.isValidElement(Z))return null;const se=f.jsx(E.Typography,{display:"flex",variant:"subtitle1",color:"text.primary",textTransform:"none",children:M({...Z.props,resource:n})});return f.jsx(E.TableCell,{children:Z.props.title?f.jsx(b3,{title:Z.props.title,arrow:!0,children:se}):se},W)}),!s&&H?f.jsx(E.TableCell,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(ui,{horizontal:!0,children:f.jsx(is,{onConfirm:k,confirmContent:T("ra.message.clear_array_input")})})},"actions"):f.jsx(E.TableCell,{},"empty_actions")]})}),f.jsxs(E.TableBody,{children:[v.length===0&&f.jsx(E.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:f.jsx(E.TableCell,{colSpan:4+(s?0:1),align:"center",children:u||f.jsx(E.Typography,{variant:"body1",color:"text.secondary",children:"-"})})}),v.length>0&&v.map((Z,W)=>f.jsx(E.TableRow,{sx:{borderBottom:0},children:f.jsx(ow,{disableRemove:s,index:W,member:`${r}.${W}`,onRemoveField:j,record:v&&v[W]||{},resource:n,source:r,children:t})},Z.id))]})]})})]})}):null}const dae=ge(uae,{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}}})),D3=dae;D3.CreateButton=Mp;D3.EditButton=Bu;D3.Field=nw;const iw=O.createContext(void 0);function F3(){const e=O.useContext(iw);if(!e)throw new Error("useWizardFormContext must be used within a WizardFormProvider");return e}function fae({value:e,children:t}){return f.jsx(iw.Provider,{value:e,children:t})}function pae({cancelButton:e,...t}){const{hasNextStep:n,hasPreviousStep:r,goToNextStep:o,goToPreviousStep:i}=F3(),s=ne.useTranslate(),{handleSubmit:l}=fn.useFormContext(),d=O.useCallback(()=>{o()},[o]);return f.jsxs(gi,{...t,children:[f.jsx(E.Box,{sx:{"& .MuiButtonBase-root":{ml:0}},children:e?O.cloneElement(e):null}),f.jsx(E.Box,{sx:{flex:"1 1 auto"}}),r()&&f.jsx(E.Button,{variant:"text",color:"primary",onClick:i,children:s("ra.action.back")}),n()?f.jsx(E.Button,{variant:"contained",color:"primary",onClick:l(d),children:s("ra.action.next")}):f.jsx(z.SaveButton,{})]})}const hae=E.styled(E.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}})),gae=E.styled(E.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 mae({completed:e,active:t,error:n,icon:r,className:o}){return f.jsx(gae,{ownerState:{completed:e,active:t,error:n},className:o,children:n?"!":r})}function vae({isHorizontal:e,setCurrentStep:t,stepFields:n}){const{currentStep:r,steps:o}=F3(),{errors:i}=fn.useFormState();function s(l){l<=r&&t(l)}return f.jsx(hae,{activeStep:r,orientation:e?"horizontal":"vertical",isHorizontal:e,sx:{p:3,mt:1},children:o.map((l,d)=>{const u=n[d].some(h=>J.get(i,h)),{label:p,icon:g}=l.props;return f.jsx(E.Step,{children:f.jsx(E.StepLabel,{StepIconComponent:mae,error:u,icon:g,onClick:()=>s(d),style:{cursor:d<=r?"pointer":"default"},children:e?null:p})},d)})})}function yae({title:e,subheader:t,secondary:n,toolbar:r,progress:o,isSmall:i,modal:s,sx:l,setCurrentStep:d}){const{currentStep:u,steps:p}=F3(),g=z.useTranslate(),h=E.useTheme(),m=i||s,v=O.useMemo(()=>r?O.Children.toArray(r.props.children).find(x=>{var S;return O.isValidElement(x)&&x.type===E.Button&&((S=x.props)==null?void 0:S.children)===g("ra.action.cancel")}):null,[r,g]),b=p.map(x=>{const S=[],{sources:I}=x.props;return I!==void 0?S.push(...I):R3(x,w=>{var T;((T=w==null?void 0:w.props)==null?void 0:T.source)!==void 0&&S.push(w.props.source)}),S});return f.jsxs(E.Grid,{container:!0,spacing:2,sx:l,children:[f.jsx(E.Grid,{item:!0,xl:s?12:2,lg:s?12:3,md:s?12:3,sm:s?12:4,xs:12,children:o||f.jsx(vae,{isHorizontal:m,setCurrentStep:d,stepFields:b})}),s?f.jsx(E.Divider,{sx:{width:"100%"}}):null,f.jsx(E.Grid,{item:!0,xl:s?12:10,lg:s?12:9,md:s?12:9,sm:s?12:8,xs:12,sx:{paddingTop:s?"0 !important":null},children:f.jsxs(Nn,{title:e||p[u].props.label,subheader:t,secondary:n,border:!s,divider:!0,children:[f.jsx(E.Box,{children:p[u]}),f.jsx(E.Box,{sx:{"& .MuiToolbar-root":{paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:h.spacing(2)}},children:r&&!v?r:f.jsx(pae,{cancelButton:v})})]})})]})}const bae=E.styled(z.Form,{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({[e.breakpoints.down("sm")]:t?{}:{paddingBottom:`${e.spacing(2.5)}`}}));function sw({children:e,toolbar:t,progress:n,title:r,subheader:o=null,secondary:i=null,sx:s,modal:l=!1,...d}){const[u,p]=O.useState(0),g=O.Children.toArray(e),h=E.useMediaQuery(I=>I.breakpoints.down("sm"));function m(){return u<g.length-1}function v(){return u>0}function b(){p(I=>Math.min(I+1,g.length-1))}function x(){p(I=>Math.max(I-1,0))}const S={currentStep:u,steps:g,hasNextStep:m,hasPreviousStep:v,goToNextStep:b,goToPreviousStep:x};return f.jsx(fae,{value:S,children:f.jsx(bae,{...d,modal:l,children:f.jsx(yae,{title:r,subheader:o,secondary:i,modal:l,sx:s,toolbar:t,progress:n,isSmall:h,setCurrentStep:p})})})}function Cae({children:e}){return f.jsx(f.Fragment,{children:e})}sw.Step=Cae;function xae(e,t){const n=J.clone(e),{type:r,payload:o}=t;switch(r){case"updateMedia":{const i=J.chain(n.media).clone().extend(o).value();return J.extend(n,{media:i})}case"updateDrawer":{const i=J.chain(n.drawer).clone().extend(o).value();return J.extend(n,{drawer:i})}case"updateLogo":{const i=J.chain(n.logo).clone().extend(o).value();return J.extend(n,{logo:i})}case"updateNotifications":{const i=J.chain(n.notifications).clone().extend(o).value();return J.extend(n,{notifications:i})}case"updateTheme":{const i=J.chain(n.theme).clone().extend(o).value();return J.extend(n,{theme:i})}default:return n}}const wae={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"}},aw=O.createContext(void 0);function lw(e){var k;const t=ne.useAuthProvider(),n=ne.useGetIdentity(),r=E.useTheme(),o=E.useMediaQuery(r.breakpoints.down("md")),i=E.useMediaQuery(r.breakpoints.down("lg")),s=E.useMediaQuery(r.breakpoints.down("xl")),{miniDrawer:l,isHorizontalLayout:d,themeDirection:u,drawerWidth:p}=hp(),g=d(u)&&!i,{drawerOpen:h,openDrawer:m}=I3(),v=O.useCallback(()=>{m(!h)},[h,m]),[b,x]=O.useState(!1),[S,I]=O.useReducer(xae,J.chain(wae).clone().merge({drawer:{open:!l||h}}).value()),w=O.useCallback(()=>x(!1),[]),T=O.useMemo(()=>({state:S,dispatch:I}),[S,I]),{logoIcon:P,logoMain:M,enableNotification:j,notification:_}=e,N=z.useLoading();return O.useEffect(()=>{I({type:"updateMedia",payload:{downMd:o,downLg:i,downXl:s,horizontal:g}})},[o,i,s,g]),O.useEffect(()=>{I({type:"updateDrawer",payload:{open:h,width:p,handleDrawerToggle:v}})},[h,p,v]),O.useEffect(()=>{l||m(!s)},[s,l]),O.useEffect(()=>{I({type:"updateLogo",payload:{main:M,icon:P}})},[P,M]),O.useEffect(()=>{I({type:"updateNotifications",payload:{enable:j,resource:_??"entities/notification"}})},[j,_]),O.useEffect(()=>{I({type:"updateTheme",payload:{iconColorOpen:r.palette.mode==="dark"?"grey.200":"grey.300",iconColor:r.palette.mode==="dark"?"background.default":"grey.100"}})},[r.palette.mode]),O.useEffect(()=>{if(!N){if(!t.isImpersonating){console.warn("authProvider does not contain a method called isImpersonating",t);return}t==null||t.isImpersonating().then(D=>{var U;x(!D&&((U=n==null?void 0:n.data)==null?void 0:U.needToChangePassword)===!0)})}},[(k=n==null?void 0:n.data)==null?void 0:k.needToChangePassword,t,N]),f.jsxs(aw.Provider,{value:T,children:[f.jsx(E.Dialog,{open:b,maxWidth:"xs",fullWidth:!0,children:f.jsx(Ep,{onSuccess:w,firstAccess:!0})}),e.children]})}function cw(e){return O.forwardRef((t,n)=>{const{logoIcon:r,logoMain:o,enableNotification:i,notification:s}=t;return f.jsx(lw,{logoIcon:r,logoMain:o,enableNotification:i,notification:s,children:f.jsx(e,{ref:n,...t})})})}function _p(){const e=O.useContext(aw);if(e===void 0)throw new Error("[Layout] useLayoutContext: context undefined. Please provide a valid LayoutContext using LayoutProvider");return e}function Sae(){return _p().dispatch}function Pa(){return _p().state}function ir(){return Pa().media}function as(){return Pa().drawer}function uw(){return Pa().logo}function L3(){return Pa().notifications}function Aae(){return Pa().theme}function dw(e){const{width:t}=as(),{horizontal:n}=ir(),{container:r}=jn(),[o,i]=O.useState(null);function s(d,u){i(u)}const l=wt();return f.jsx(pJ,{onError:s,fallbackRender:({error:d,resetErrorBoundary:u})=>f.jsx(ep,{error:d,errorComponent:e.error,errorInfo:o,resetErrorBoundary:u}),children:f.jsx(O.Suspense,{fallback:f.jsx(Gb,{}),children:f.jsxs(E.Box,{component:"main",sx:{width:`calc(100% - ${t}px)`,flexGrow:1,p:{xs:0,sm:2,lg:1},pt:{lg:2}},children:[f.jsx(E.Toolbar,{sx:{mt:n?8:"inherit"}})," ",f.jsx(E.Container,{maxWidth:r?"xl":!1,sx:{...r&&{px:{xs:0,sm:2}},position:"relative",minHeight:"calc(100vh - 110px)",display:"flex",flexDirection:"column",[l.breakpoints.down("sm")]:{px:"12px"}},children:e.children})]})})})}const fw=ge(E.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 pw({isIcon:e,sx:t,to:n,logoIcon:r,logoMain:o}){const{appDefaultPath:i}=jn();return f.jsx(E.ButtonBase,{disableRipple:!0,component:ut.Link,to:n||i,sx:t,children:e?r:o})}function hw(e){const t=E.useTheme(),{horizontal:n}=ir(),{open:r}=as(),{icon:o,main:i}=uw(),s=$r(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(fw,{theme:t,open:r,sx:s,children:f.jsx(pw,{to:"/",isIcon:!r,sx:{width:r?"auto":35,height:35},logoMain:i,logoIcon:o})})}function Zm(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 Xm(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 Eae=ge(E.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=jn();return{width:n,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...Zm(e,n),"& .MuiDrawer-paper":Zm(e,n)},...!t&&{...Xm(e),"& .MuiDrawer-paper":Xm(e)}}});var Ae={},U0={exports:{}};(function(e,t){(function(n,r){var o="1.0.39",i="",s="?",l="function",d="undefined",u="object",p="string",g="major",h="model",m="name",v="type",b="vendor",x="version",S="architecture",I="console",w="mobile",T="tablet",P="smarttv",M="wearable",j="embedded",_=500,N="Amazon",k="Apple",D="ASUS",U="BlackBerry",H="Browser",G="Chrome",Y="Edge",V="Firefox",Z="Google",W="Huawei",se="LG",K="Microsoft",$="Motorola",te="Opera",oe="Samsung",Q="Sharp",de="Sony",pe="Xiaomi",ye="Zebra",ce="Facebook",be="Chromium OS",Ce="Mac OS",Ee=" Browser",me=function(Pe,je){var Ie={};for(var xe in Pe)je[xe]&&je[xe].length%2===0?Ie[xe]=je[xe].concat(Pe[xe]):Ie[xe]=Pe[xe];return Ie},Re=function(Pe){for(var je={},Ie=0;Ie<Pe.length;Ie++)je[Pe[Ie].toUpperCase()]=Pe[Ie];return je},ve=function(Pe,je){return typeof Pe===p?qe(je).indexOf(qe(Pe))!==-1:!1},qe=function(Pe){return Pe.toLowerCase()},Ft=function(Pe){return typeof Pe===p?Pe.replace(/[^\d\.]/g,i).split(".")[0]:r},bt=function(Pe,je){if(typeof Pe===p)return Pe=Pe.replace(/^\s\s*/,i),typeof je===d?Pe:Pe.substring(0,_)},st=function(Pe,je){for(var Ie=0,xe,vt,Ct,De,Oe,Yt;Ie<je.length&&!Oe;){var Sn=je[Ie],Hn=je[Ie+1];for(xe=vt=0;xe<Sn.length&&!Oe&&Sn[xe];)if(Oe=Sn[xe++].exec(Pe),Oe)for(Ct=0;Ct<Hn.length;Ct++)Yt=Oe[++vt],De=Hn[Ct],typeof De===u&&De.length>0?De.length===2?typeof De[1]==l?this[De[0]]=De[1].call(this,Yt):this[De[0]]=De[1]:De.length===3?typeof De[1]===l&&!(De[1].exec&&De[1].test)?this[De[0]]=Yt?De[1].call(this,Yt,De[2]):r:this[De[0]]=Yt?Yt.replace(De[1],De[2]):r:De.length===4&&(this[De[0]]=Yt?De[3].call(this,Yt.replace(De[1],De[2])):r):this[De]=Yt||r;Ie+=2}},sn=function(Pe,je){for(var Ie in je)if(typeof je[Ie]===u&&je[Ie].length>0){for(var xe=0;xe<je[Ie].length;xe++)if(ve(je[Ie][xe],Pe))return Ie===s?r:Ie}else if(ve(je[Ie],Pe))return Ie===s?r:Ie;return je.hasOwnProperty("*")?je["*"]:Pe},mt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ke={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"},kt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,x],[/opios[\/ ]+([\w\.]+)/i],[x,[m,te+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[x,[m,te+" GX"]],[/\bopr\/([\w\.]+)/i],[x,[m,te]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[x,[m,"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],[m,x],[/quark(?:pc)?\/([-\w\.]+)/i],[x,[m,"Quark"]],[/\bddg\/([\w\.]+)/i],[x,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[m,"UC"+H]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[x,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[x,[m,"Smart Lenovo "+H]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+H],x],[/\bfocus\/([\w\.]+)/i],[x,[m,V+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[m,te+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[m,te+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[m,"MIUI "+H]],[/fxios\/([-\w\.]+)/i],[x,[m,V]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360"+Ee]],[/\b(qq)\/([\w\.]+)/i],[[m,/(.+)/,"$1Browser"],x],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1"+Ee],x],[/samsungbrowser\/([\w\.]+)/i],[x,[m,oe+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],x],[/metasr[\/ ]?([\d\.]+)/i],[x,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,x],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,ce],x],[/(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],[m,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[x,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[m,G+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,G+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[m,"Android "+H]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[x,sn,mt]],[/(webkit|khtml)\/([\w\.]+)/i],[m,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],x],[/(wolvic)\/([\w\.]+)/i],[m,x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[m,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],[m,[x,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[m,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[S,"amd64"]],[/(ia32(?=;))/i],[[S,qe]],[/((?:i[346]|x)86)[;\)]/i],[[S,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/windows (ce|mobile); ppc;/i],[[S,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[S,/ower/,i,qe]],[/(sun4\w)[;\)]/i],[[S,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[S,qe]]],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],[h,[b,oe],[v,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[h,[b,oe],[v,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[b,k],[v,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[b,k],[v,T]],[/(macintosh);/i],[h,[b,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[b,Q],[v,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[b,W],[v,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[b,W],[v,w]],[/\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],[[h,/_/g," "],[b,pe],[v,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[b,pe],[v,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[b,"OPPO"],[v,w]],[/\b(opd2\d{3}a?) bui/i],[h,[b,"OPPO"],[v,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[b,"Vivo"],[v,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[b,"Realme"],[v,w]],[/\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],[h,[b,$],[v,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[b,$],[v,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[b,se],[v,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[b,se],[v,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[b,"Lenovo"],[v,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[b,"Nokia"],[v,w]],[/(pixel c)\b/i],[h,[b,Z],[v,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[b,Z],[v,w]],[/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],[h,[b,de],[v,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[b,de],[v,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[b,"OnePlus"],[v,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[b,N],[v,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[b,N],[v,w]],[/(playbook);[-\w\),; ]+(rim)/i],[h,b,[v,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[b,U],[v,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[b,D],[v,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[b,D],[v,w]],[/(nexus 9)/i],[h,[b,"HTC"],[v,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[h,/_/g," "],[v,w]],[/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],[h,[b,"TCL"],[v,T]],[/(itel) ((\w+))/i],[[b,qe],h,[v,sn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[b,"Acer"],[v,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[b,"Meizu"],[v,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[b,"Ulefone"],[v,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[h,[b,"Nothing"],[v,w]],[/(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],[b,h,[v,w]],[/(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],[b,h,[v,T]],[/(surface duo)/i],[h,[b,K],[v,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[b,"Fairphone"],[v,w]],[/(u304aa)/i],[h,[b,"AT&T"],[v,w]],[/\bsie-(\w*)/i],[h,[b,"Siemens"],[v,w]],[/\b(rct\w+) b/i],[h,[b,"RCA"],[v,T]],[/\b(venue[\d ]{2,7}) b/i],[h,[b,"Dell"],[v,T]],[/\b(q(?:mv|ta)\w+) b/i],[h,[b,"Verizon"],[v,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[b,"Barnes & Noble"],[v,T]],[/\b(tm\d{3}\w+) b/i],[h,[b,"NuVision"],[v,T]],[/\b(k88) b/i],[h,[b,"ZTE"],[v,T]],[/\b(nx\d{3}j) b/i],[h,[b,"ZTE"],[v,w]],[/\b(gen\d{3}) b.+49h/i],[h,[b,"Swiss"],[v,w]],[/\b(zur\d{3}) b/i],[h,[b,"Swiss"],[v,T]],[/\b((zeki)?tb.*\b) b/i],[h,[b,"Zeki"],[v,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],h,[v,T]],[/\b(ns-?\w{0,9}) b/i],[h,[b,"Insignia"],[v,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[b,"NextBook"],[v,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],h,[v,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],h,[v,w]],[/\b(ph-1) /i],[h,[b,"Essential"],[v,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[b,"Envizen"],[v,T]],[/\b(trio[-\w\. ]+) b/i],[h,[b,"MachSpeed"],[v,T]],[/\btu_(1491) b/i],[h,[b,"Rotor"],[v,T]],[/(shield[\w ]+) b/i],[h,[b,"Nvidia"],[v,T]],[/(sprint) (\w+)/i],[b,h,[v,w]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[b,K],[v,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[b,ye],[v,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[b,ye],[v,w]],[/smart-tv.+(samsung)/i],[b,[v,P]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[b,oe],[v,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,se],[v,P]],[/(apple) ?tv/i],[b,[h,k+" TV"],[v,P]],[/crkey/i],[[h,G+"cast"],[b,Z],[v,P]],[/droid.+aft(\w+)( bui|\))/i],[h,[b,N],[v,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[b,Q],[v,P]],[/(bravia[\w ]+)( bui|\))/i],[h,[b,de],[v,P]],[/(mitv-\w{5}) bui/i],[h,[b,pe],[v,P]],[/Hbbtv.*(technisat) (.*);/i],[b,h,[v,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,bt],[h,bt],[v,P]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,P]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,h,[v,I]],[/droid.+; (shield) bui/i],[h,[b,"Nvidia"],[v,I]],[/(playstation [345portablevi]+)/i],[h,[b,de],[v,I]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[b,K],[v,I]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[h,[b,oe],[v,M]],[/((pebble))app/i],[b,h,[v,M]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[b,k],[v,M]],[/droid.+; (glass) \d/i],[h,[b,Z],[v,M]],[/droid.+; (wt63?0{2,3})\)/i],[h,[b,ye],[v,M]],[/(quest( \d| pro)?)/i],[h,[b,ce],[v,M]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[v,j]],[/(aeobc)\b/i],[h,[b,N],[v,j]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[v,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[v,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,w]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[m,Y+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[m,"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],[m,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,x],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[x,sn,Ke]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[x,sn,Ke],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,Ce],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,x],[/\(bb(10);/i],[x,[m,U]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[m,V+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[x,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[x,[m,G+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,be],x],[/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],[m,x],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,x]]},tt=function(Pe,je){if(typeof Pe===u&&(je=Pe,Pe=r),!(this instanceof tt))return new tt(Pe,je).getResult();var Ie=typeof n!==d&&n.navigator?n.navigator:r,xe=Pe||(Ie&&Ie.userAgent?Ie.userAgent:i),vt=Ie&&Ie.userAgentData?Ie.userAgentData:r,Ct=je?me(kt,je):kt,De=Ie&&Ie.userAgent==xe;return this.getBrowser=function(){var Oe={};return Oe[m]=r,Oe[x]=r,st.call(Oe,xe,Ct.browser),Oe[g]=Ft(Oe[x]),De&&Ie&&Ie.brave&&typeof Ie.brave.isBrave==l&&(Oe[m]="Brave"),Oe},this.getCPU=function(){var Oe={};return Oe[S]=r,st.call(Oe,xe,Ct.cpu),Oe},this.getDevice=function(){var Oe={};return Oe[b]=r,Oe[h]=r,Oe[v]=r,st.call(Oe,xe,Ct.device),De&&!Oe[v]&&vt&&vt.mobile&&(Oe[v]=w),De&&Oe[h]=="Macintosh"&&Ie&&typeof Ie.standalone!==d&&Ie.maxTouchPoints&&Ie.maxTouchPoints>2&&(Oe[h]="iPad",Oe[v]=T),Oe},this.getEngine=function(){var Oe={};return Oe[m]=r,Oe[x]=r,st.call(Oe,xe,Ct.engine),Oe},this.getOS=function(){var Oe={};return Oe[m]=r,Oe[x]=r,st.call(Oe,xe,Ct.os),De&&!Oe[m]&&vt&&vt.platform&&vt.platform!="Unknown"&&(Oe[m]=vt.platform.replace(/chrome os/i,be).replace(/macos/i,Ce)),Oe},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 xe},this.setUA=function(Oe){return xe=typeof Oe===p&&Oe.length>_?bt(Oe,_):Oe,this},this.setUA(xe),this};tt.VERSION=o,tt.BROWSER=Re([m,x,g]),tt.CPU=Re([S]),tt.DEVICE=Re([h,b,v,I,w,P,T,M,j]),tt.ENGINE=tt.OS=Re([m,x]),e.exports&&(t=e.exports=tt),t.UAParser=tt;var ot=typeof n!==d&&(n.jQuery||n.Zepto);if(ot&&!ot.ua){var St=new tt;ot.ua=St.getResult(),ot.ua.get=function(){return St.getUA()},ot.ua.set=function(Pe){St.setUA(Pe);var je=St.getResult();for(var Ie in je)ot.ua[Ie]=je[Ie]}}})(typeof window=="object"?window:Pn)})(U0,U0.exports);var Tae=U0.exports;Object.defineProperty(Ae,"__esModule",{value:!0});function Iae(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var xn=O,Et=Iae(xn),gw=Tae,mi=new gw,wn=mi.getBrowser(),Oae=mi.getCPU(),sr=mi.getDevice(),Dp=mi.getEngine(),vi=mi.getOS(),h1=mi.getUA(),mw=function(t){return mi.setUA(t)},g1=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new gw(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)}}},vw=Object.freeze({ClientUAInstance:mi,browser:wn,cpu:Oae,device:sr,engine:Dp,os:vi,ua:h1,setUa:mw,parseUserAgent:g1});function Qm(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 Pae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(n),!0).forEach(function(r){kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Il(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Il=function(t){return typeof t}:Il=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rae(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 Mae(e,t,n){return t&&Rae(e.prototype,t),e}function kae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0(){return H0=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},H0.apply(this,arguments)}function _ae(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&&q0(e,t)}function G0(e){return G0=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},G0(e)}function q0(e,t){return q0=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},q0(e,t)}function Dae(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 jr(e,t){if(e==null)return{};var n=Dae(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 Yc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fae(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 Yc(e)}function Lae(e,t){return Bae(e)||Nae(e,t)||$ae(e,t)||Vae()}function Bae(e){if(Array.isArray(e))return e}function Nae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(d){i=!0,l=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function $ae(e,t){if(e){if(typeof e=="string")return Jm(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 Jm(e,t)}}function Jm(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 Vae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
625
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Cn={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Un={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"},ja={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},zae={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Wae=function(t){switch(t){case Cn.Mobile:return{isMobile:!0};case Cn.Tablet:return{isTablet:!0};case Cn.SmartTv:return{isSmartTV:!0};case Cn.Console:return{isConsole:!0};case Cn.Wearable:return{isWearable:!0};case Cn.Browser:return{isBrowser:!0};case Cn.Embedded:return{isEmbedded:!0};default:return zae}},Uae=function(t){return mw(t)},Le=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},Fp=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},Lp=function(t){var n=Fp();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},Hae=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:Le(n.major),browserFullVersion:Le(n.version),browserName:Le(n.name),engineName:Le(r.name),engineVersion:Le(r.version),osName:Le(o.name),osVersion:Le(o.version),userAgent:Le(i)}},e9=function(t,n,r,o){return Pae({},t,{vendor:Le(n.vendor),model:Le(n.model),os:Le(r.name),osVersion:Le(r.version),ua:Le(o)})},Gae=function(t,n,r,o){return{isSmartTV:t,engineName:Le(n.name),engineVersion:Le(n.version),osName:Le(r.name),osVersion:Le(r.version),userAgent:Le(o)}},qae=function(t,n,r,o){return{isConsole:t,engineName:Le(n.name),engineVersion:Le(n.version),osName:Le(r.name),osVersion:Le(r.version),userAgent:Le(o)}},Yae=function(t,n,r,o){return{isWearable:t,engineName:Le(n.name),engineVersion:Le(n.version),osName:Le(r.name),osVersion:Le(r.version),userAgent:Le(o)}},Kae=function(t,n,r,o,i){return{isEmbedded:t,vendor:Le(n.vendor),model:Le(n.model),engineName:Le(r.name),engineVersion:Le(r.version),osName:Le(o.name),osVersion:Le(o.version),userAgent:Le(i)}};function Zae(e){var t=e?g1(e):vw,n=t.device,r=t.browser,o=t.engine,i=t.os,s=t.ua,l=Wae(n.type),d=l.isBrowser,u=l.isMobile,p=l.isTablet,g=l.isSmartTV,h=l.isConsole,m=l.isWearable,v=l.isEmbedded;if(d)return Hae(d,r,o,i,s);if(g)return Gae(g,o,i,s);if(h)return qae(h,o,i,s);if(u||p)return e9(l,n,i,s);if(m)return Yae(m,o,i,s);if(v)return Kae(v,n,o,i,s)}var yw=function(t){var n=t.type;return n===Cn.Mobile},bw=function(t){var n=t.type;return n===Cn.Tablet},Cw=function(t){var n=t.type;return n===Cn.Mobile||n===Cn.Tablet},xw=function(t){var n=t.type;return n===Cn.SmartTv},Nu=function(t){var n=t.type;return n===Cn.Browser},ww=function(t){var n=t.type;return n===Cn.Wearable},Sw=function(t){var n=t.type;return n===Cn.Console},Aw=function(t){var n=t.type;return n===Cn.Embedded},Ew=function(t){var n=t.vendor;return Le(n)},Tw=function(t){var n=t.model;return Le(n)},Iw=function(t){var n=t.type;return Le(n,"browser")},Ow=function(t){var n=t.name;return n===ja.Android},Pw=function(t){var n=t.name;return n===ja.Windows},jw=function(t){var n=t.name;return n===ja.MAC_OS},Rw=function(t){var n=t.name;return n===ja.WindowsPhone},Mw=function(t){var n=t.name;return n===ja.IOS},kw=function(t){var n=t.version;return Le(n)},_w=function(t){var n=t.name;return Le(n)},Dw=function(t){var n=t.name;return n===Un.Chrome},Fw=function(t){var n=t.name;return n===Un.Firefox},Lw=function(t){var n=t.name;return n===Un.Chromium},$u=function(t){var n=t.name;return n===Un.Edge},Bw=function(t){var n=t.name;return n===Un.Yandex},Nw=function(t){var n=t.name;return n===Un.Safari||n===Un.MobileSafari},$w=function(t){var n=t.name;return n===Un.MobileSafari},Vw=function(t){var n=t.name;return n===Un.Opera},zw=function(t){var n=t.name;return n===Un.InternetExplorer||n===Un.Ie},Ww=function(t){var n=t.name;return n===Un.MIUI},Uw=function(t){var n=t.name;return n===Un.SamsungBrowser},Hw=function(t){var n=t.version;return Le(n)},Gw=function(t){var n=t.major;return Le(n)},qw=function(t){var n=t.name;return Le(n)},Yw=function(t){var n=t.name;return Le(n)},Kw=function(t){var n=t.version;return Le(n)},Zw=function(){var t=Fp(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},na=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},Xw=function(){var t=Fp();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Zr=function(){return Lp("iPad")},Qw=function(){return Lp("iPhone")},Jw=function(){return Lp("iPod")},eS=function(t){return Le(t)};function tS(e){var t=e||vw,n=t.device,r=t.browser,o=t.os,i=t.engine,s=t.ua;return{isSmartTV:xw(n),isConsole:Sw(n),isWearable:ww(n),isEmbedded:Aw(n),isMobileSafari:$w(r)||Zr(),isChromium:Lw(r),isMobile:Cw(n)||Zr(),isMobileOnly:yw(n),isTablet:bw(n)||Zr(),isBrowser:Nu(n),isDesktop:Nu(n),isAndroid:Ow(o),isWinPhone:Rw(o),isIOS:Mw(o)||Zr(),isChrome:Dw(r),isFirefox:Fw(r),isSafari:Nw(r),isOpera:Vw(r),isIE:zw(r),osVersion:kw(o),osName:_w(o),fullBrowserVersion:Hw(r),browserVersion:Gw(r),browserName:qw(r),mobileVendor:Ew(n),mobileModel:Tw(n),engineName:Yw(i),engineVersion:Kw(i),getUA:eS(s),isEdge:$u(r)||na(s),isYandex:Bw(r),deviceType:Iw(n),isIOS13:Xw(),isIPad13:Zr(),isIPhone13:Qw(),isIPod13:Jw(),isElectron:Zw(),isEdgeChromium:na(s),isLegacyEdge:$u(r)&&!na(s),isWindows:Pw(o),isMacOs:jw(o),isMIUI:Ww(r),isSamsungBrowser:Uw(r)}}var nS=xw(sr),rS=Sw(sr),oS=ww(sr),Xae=Aw(sr),Qae=$w(wn)||Zr(),Jae=Lw(wn),B3=Cw(sr)||Zr(),iS=yw(sr),sS=bw(sr)||Zr(),aS=Nu(sr),ele=Nu(sr),lS=Ow(vi),cS=Rw(vi),uS=Mw(vi)||Zr(),tle=Dw(wn),nle=Fw(wn),rle=Nw(wn),ole=Vw(wn),dS=zw(wn),ile=kw(vi),sle=_w(vi),ale=Hw(wn),lle=Gw(wn),cle=qw(wn),ule=Ew(sr),dle=Tw(sr),fle=Yw(Dp),ple=Kw(Dp),hle=eS(h1),gle=$u(wn)||na(h1),mle=Bw(wn),vle=Iw(sr),yle=Xw(),ble=Zr(),Cle=Qw(),xle=Jw(),wle=Zw(),Sle=na(h1),Ale=$u(wn)&&!na(h1),Ele=Pw(vi),Tle=jw(vi),Ile=Ww(wn),Ole=Uw(wn),Ple=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=g1(t),r=n.device,o=n.browser,i=n.os,s=n.engine,l=n.ua;return tS({device:r,browser:o,os:i,engine:s,ua:l})},jle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return lS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Rle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return aS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Mle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return dS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},kle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return uS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},_le=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return B3?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Dle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return sS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Fle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return cS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Lle=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=jr(t,["renderWithFragment","children","viewClassName","style"]);return iS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Ble=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return nS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Nle=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return rS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},$le=function(t){var n=t.renderWithFragment,r=t.children,o=jr(t,["renderWithFragment","children"]);return oS?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",o,r):null},Vle=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=jr(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?Et.createElement(xn.Fragment,null,r):Et.createElement("div",i,r):null};function zle(e){return function(t){_ae(n,t);function n(r){var o;return jae(this,n),o=Fae(this,G0(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(Yc(o)),o.onOrientationChange=o.onOrientationChange.bind(Yc(o)),o.onPageLoad=o.onPageLoad.bind(Yc(o)),o.state={isLandscape:!1,isPortrait:!1},o}return Mae(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":Il(window))!==void 0&&B3&&(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 Et.createElement(e,H0({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(Et.Component)}function Wle(){var e=xn.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=Lae(e,2),n=t[0],r=t[1],o=xn.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,s={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==s.orientation&&r(s)},[n.orientation]);return xn.useEffect(function(){return(typeof window>"u"?"undefined":Il(window))!==void 0&&B3&&(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 fS(e){var t=e||window.navigator.userAgent;return g1(t)}function Ule(e){var t=e||window.navigator.userAgent,n=fS(t),r=tS(n);return[r,n]}Ae.AndroidView=jle;Ae.BrowserTypes=Un;var Hle=Ae.BrowserView=Rle;Ae.ConsoleView=Nle;Ae.CustomView=Vle;Ae.IEView=Mle;Ae.IOSView=kle;Ae.MobileOnlyView=Lle;var Gle=Ae.MobileView=_le;Ae.OsTypes=ja;Ae.SmartTVView=Ble;Ae.TabletView=Dle;Ae.WearableView=$le;Ae.WinPhoneView=Fle;Ae.browserName=cle;Ae.browserVersion=lle;Ae.deviceDetect=Zae;Ae.deviceType=vle;Ae.engineName=fle;Ae.engineVersion=ple;Ae.fullBrowserVersion=ale;Ae.getSelectorsByUserAgent=Ple;Ae.getUA=hle;Ae.isAndroid=lS;Ae.isBrowser=aS;Ae.isChrome=tle;Ae.isChromium=Jae;Ae.isConsole=rS;Ae.isDesktop=ele;Ae.isEdge=gle;Ae.isEdgeChromium=Sle;Ae.isElectron=wle;Ae.isEmbedded=Xae;Ae.isFirefox=nle;Ae.isIE=dS;Ae.isIOS=uS;Ae.isIOS13=yle;Ae.isIPad13=ble;Ae.isIPhone13=Cle;Ae.isIPod13=xle;Ae.isLegacyEdge=Ale;Ae.isMIUI=Ile;Ae.isMacOs=Tle;Ae.isMobile=B3;Ae.isMobileOnly=iS;Ae.isMobileSafari=Qae;Ae.isOpera=ole;Ae.isSafari=rle;Ae.isSamsungBrowser=Ole;Ae.isSmartTV=nS;Ae.isTablet=sS;Ae.isWearable=oS;Ae.isWinPhone=cS;Ae.isWindows=Ele;Ae.isYandex=mle;Ae.mobileModel=dle;Ae.mobileVendor=ule;Ae.osName=sle;Ae.osVersion=ile;Ae.parseUserAgent=g1;Ae.setUserAgent=Uae;Ae.useDeviceData=fS;Ae.useDeviceSelectors=Ule;Ae.useMobileOrientation=Wle;Ae.withOrientationChange=zle;var qle=typeof global=="object"&&global&&global.Object===Object&&global,Yle=typeof self=="object"&&self&&self.Object===Object&&self,pS=qle||Yle||Function("return this")(),Vu=pS.Symbol,hS=Object.prototype,Kle=hS.hasOwnProperty,Zle=hS.toString,al=Vu?Vu.toStringTag:void 0;function Xle(e){var t=Kle.call(e,al),n=e[al];try{e[al]=void 0;var r=!0}catch{}var o=Zle.call(e);return r&&(t?e[al]=n:delete e[al]),o}var Qle=Object.prototype,Jle=Qle.toString;function e1e(e){return Jle.call(e)}var t1e="[object Null]",n1e="[object Undefined]",t9=Vu?Vu.toStringTag:void 0;function r1e(e){return e==null?e===void 0?n1e:t1e:t9&&t9 in Object(e)?Xle(e):e1e(e)}function o1e(e){return e!=null&&typeof e=="object"}var i1e="[object Symbol]";function s1e(e){return typeof e=="symbol"||o1e(e)&&r1e(e)==i1e}var a1e=/\s/;function l1e(e){for(var t=e.length;t--&&a1e.test(e.charAt(t)););return t}var c1e=/^\s+/;function u1e(e){return e&&e.slice(0,l1e(e)+1).replace(c1e,"")}function zu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var n9=NaN,d1e=/^[-+]0x[0-9a-f]+$/i,f1e=/^0b[01]+$/i,p1e=/^0o[0-7]+$/i,h1e=parseInt;function r9(e){if(typeof e=="number")return e;if(s1e(e))return n9;if(zu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=u1e(e);var n=f1e.test(e);return n||p1e.test(e)?h1e(e.slice(2),n?2:8):d1e.test(e)?n9:+e}var Bf=function(){return pS.Date.now()},g1e="Expected a function",m1e=Math.max,v1e=Math.min;function Kc(e,t,n){var r,o,i,s,l,d,u=0,p=!1,g=!1,h=!0;if(typeof e!="function")throw new TypeError(g1e);t=r9(t)||0,zu(n)&&(p=!!n.leading,g="maxWait"in n,i=g?m1e(r9(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function m(M){var j=r,_=o;return r=o=void 0,u=M,s=e.apply(_,j),s}function v(M){return u=M,l=setTimeout(S,t),p?m(M):s}function b(M){var j=M-d,_=M-u,N=t-j;return g?v1e(N,i-_):N}function x(M){var j=M-d,_=M-u;return d===void 0||j>=t||j<0||g&&_>=i}function S(){var M=Bf();if(x(M))return I(M);l=setTimeout(S,b(M))}function I(M){return l=void 0,h&&r?m(M):(r=o=void 0,s)}function w(){l!==void 0&&clearTimeout(l),u=0,r=d=o=l=void 0}function T(){return l===void 0?s:I(Bf())}function P(){var M=Bf(),j=x(M);if(r=arguments,o=this,d=M,j){if(l===void 0)return v(d);if(g)return clearTimeout(l),l=setTimeout(S,t),m(d)}return l===void 0&&(l=setTimeout(S,t)),s}return P.cancel=w,P.flush=T,P}var y1e="Expected a function";function b1e(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(y1e);return zu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Kc(e,t,{leading:r,maxWait:t,trailing:o})}var Qs=function(){return Qs=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},Qs.apply(this,arguments)};function gS(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function mS(e){return!e||!e.ownerDocument?document:e.ownerDocument}var vS=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(l,d){return d.toUpperCase()});switch(o.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=o.value}}return r},t);return n};function yS(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function bS(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function CS(e){return".".concat(e.split(" ").join("."))}var Bp=!!(typeof window<"u"&&window.document&&window.document.createElement),C1e=Object.freeze({__proto__:null,addClasses:yS,canUseDOM:Bp,classNamesToQuery:CS,getElementDocument:mS,getElementWindow:gS,getOptions:vS,removeClasses:bS}),Ws=null,o9=null;Bp&&window.addEventListener("resize",function(){o9!==window.devicePixelRatio&&(o9=window.devicePixelRatio,Ws=null)});function i9(){if(Ws===null){if(typeof document>"u")return Ws=0,Ws;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),Ws=n}return Ws}var Go=gS,Nf=mS,x1e=vS,qo=yS,Yo=bS,Dn=CS,Pc=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=Go(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,qo(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(){Yo(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(qo(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Yo(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,s;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)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(i||s)&&(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")),s&&(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,s,l,d,u,p,g,h,m,v,b;if(!(!r.draggedAxis||!r.contentWrapperEl)){var x,S=r.axis[r.draggedAxis].track,I=(s=(i=S.rect)===null||i===void 0?void 0:i[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,w=r.axis[r.draggedAxis].scrollbar,T=(d=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,P=parseInt((p=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?x=o.pageY:x=o.pageX;var M=x-((h=(g=S.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;M=r.draggedAxis==="x"&&r.isRtl?((v=(m=S.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].sizeAttr])!==null&&v!==void 0?v:0)-w.size-M:M;var j=M/(I-w.size),_=j*(T-P);r.draggedAxis==="x"&&r.isRtl&&(_=!((b=e.getRtlHelpers())===null||b===void 0)&&b.isScrollingToNegative?-_:_),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=_}},this.onEndDrag=function(o){r.isDragging=!1;var i=Nf(r.el),s=Go(r.el);o.preventDefault(),o.stopPropagation(),Yo(r.el,r.classNames.dragging),r.onStopScrolling(),i.removeEventListener("mousemove",r.drag,!0),i.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.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=Qs(Qs({},e.defaultOptions),n),this.classNames=Qs(Qs({},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=b1e(this._onMouseMove,64),this.onWindowResize=Kc(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Kc(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Kc(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 s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==s.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:i9()}catch{return i9()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Nf(t),o=Go(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Bp&&(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(Dn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Dn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Dn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Dn(this.classNames.offset)),this.maskEl=this.el.querySelector(Dn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Dn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Dn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Dn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Dn(this.classNames.track)).concat(Dn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Dn(this.classNames.track)).concat(Dn(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Dn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Dn(this.classNames.scrollbar)))||null,this.options.autoHide||(qo(this.axis.x.scrollbar.el,this.classNames.visible),qo(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Go(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=Go(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,s=this.elStyles.overflowX,l=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 d=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=d>p,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="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,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>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,s=i/o,l;return l=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},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 s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?u:-u);var p=u/(s-d),g=~~((l-i.size)*p);g=t==="x"&&this.isRtl?-g+(l-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&&(qo(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&&(Yo(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),qo(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?qo(n.scrollbar.el,this.classNames.hover):Yo(n.scrollbar.el,this.classNames.hover)):(Yo(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Yo(this.axis[t].track.el,this.classNames.hover),Yo(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=Nf(this.el),i=Go(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,qo(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,s,l;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=Go(this.el);this.axis[n].scrollbar.rect=d.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,h=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],v=n==="y"?this.mouseY-g:this.mouseX-g,b=v<0?-1:1,x=b===-1?m-h:m+h,S=40,I=function(){r.contentWrapperEl&&(b===-1?m>x&&(m-=S,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,u.requestAnimationFrame(I)):m<x&&(m+=S,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,u.requestAnimationFrame(I)))};I()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Go(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=x1e,e.helpers=C1e,e}(),Jn=function(){return Jn=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},Jn.apply(this,arguments)};function w1e(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 xS=B.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,i=w1e(e,["children","scrollableNodeProps"]),s=B.useRef(),l=B.useRef(),d=B.useRef(),u={},p={};Object.keys(i).forEach(function(m){Object.prototype.hasOwnProperty.call(Pc.defaultOptions,m)?u[m]=i[m]:p[m]=i[m]});var g=Jn(Jn({},Pc.defaultOptions.classNames),u.classNames),h=Jn(Jn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||Pc.defaultOptions.ariaLabel});return B.useEffect(function(){var m;return l.current=h.ref?h.ref.current:l.current,s.current&&(m=new Pc(s.current,Jn(Jn(Jn({},u),l.current&&{scrollableNode:l.current}),d.current&&{contentNode:d.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),B.createElement("div",Jn({"data-simplebar":"init",ref:s},p),B.createElement("div",{className:g.wrapper},B.createElement("div",{className:g.heightAutoObserverWrapperEl},B.createElement("div",{className:g.heightAutoObserverEl})),B.createElement("div",{className:g.mask},B.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Jn(Jn({},h),{ref:l}),contentNodeRef:d,contentNodeProps:{className:g.contentEl,ref:d}}):B.createElement("div",Jn({},h),B.createElement("div",{className:g.contentEl},n)))),B.createElement("div",{className:g.placeholder})),B.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},B.createElement("div",{className:g.scrollbar})),B.createElement("div",{className:"".concat(g.track," simplebar-vertical")},B.createElement("div",{className:g.scrollbar})))});xS.displayName="SimpleBar";const S1e=ge(Hle)({flexGrow:1,height:"100%",overflow:"hidden"}),A1e=ge(xS)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:nt(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 wS({children:e,sx:t,...n}){return f.jsxs(f.Fragment,{children:[f.jsx(S1e,{children:f.jsx(A1e,{timeout:500,clickOnTrack:!1,sx:t,...n,children:e})}),f.jsx(Gle,{children:f.jsx(E.Box,{sx:{overflowX:"auto",...t},...n,children:e})})]})}function SS(e){const t=E.useTheme(),n=$r(e,{flexShrink:{md:0},zIndex:1200}),{downLg:r}=ir(),{open:o,handleDrawerToggle:i,width:s}=as(),l=r?E.Drawer:Eae,d=document.body,u=O.useMemo(()=>r?{container:d,variant:"temporary",onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",lg:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:s,borderRight:`1px solid ${t.palette.divider}`,backgroundImage:"none",boxShadow:"inherit",overflow:"auto"}}}:{variant:"permanent"},[r,d,i,s,t.palette.divider]);return f.jsx(E.Box,{component:"nav",sx:n,"aria-label":"mailbox folders",children:f.jsxs(l,{...u,open:o,children:[f.jsx(hw,{}),f.jsx(wS,{sx:{"& .simplebar-content":{display:"flex",flexDirection:"column"}},children:e.children})]})})}function Np(e){const{name:t,version:n,copy:r="&copy; Applica Software Guru for"}=e;return f.jsx(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",flexGrow:1,height:"auto",sx:{pt:1},children:f.jsxs(E.Typography,{variant:"caption",children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:r||""}})," ",t," - ",n]})})}const AS=ge(E.AppBar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=jn();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})}}}),ES=O.forwardRef(function(t,n){const r=$r(t,{color:"text.primary"},{defaults:!0});return f.jsx(E.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),E1e=O.forwardRef(function(t,n){const r=$r(t,{color:"text.primary"},{defaults:!0});return f.jsx(ba,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),Ra=O.forwardRef(function(t,n){const r=$r(t,{color:"text.primary",borderStyle:"none",padding:1,fontSize:"1.5rem",width:36,height:36},{defaults:!0});return f.jsx(E.ToggleButton,{ref:n,...t,color:"secondary",sx:r})});function TS({onClick:e=void 0}){const{open:t,anchorEl:n,handleClose:r,handleToggle:o}=Ta(),[i,s]=ne.useLocaleState(),l=ne.useLocales();if(l.length===0)return null;function d(u){if(e){e(u,r);return}s(u),r()}return f.jsxs(f.Fragment,{children:[f.jsx(ES,{value:"locale",onClick:o,sx:{minWidth:"auto"},children:f.jsxs(E.Stack,{direction:"row",spacing:.5,children:[f.jsx(E.Typography,{variant:"body1",children:i.toUpperCase()}),t?f.jsx(He.CaretUpOutlined,{}):f.jsx(He.CaretDownOutlined,{})]})}),f.jsx(E.Menu,{id:"menu-appbar",anchorEl:n,keepMounted:!0,open:t,onClose:r,children:l.map((u,p)=>f.jsx(E.MenuItem,{onClick:()=>d(u.locale),children:u.name},p))})]})}const T1e={ml:{xs:0,lg:-2}};function IS(){const{open:e,handleDrawerToggle:t}=as();return f.jsx(Ra,{value:"drawer","aria-label":"open drawer",sx:T1e,onChange:t,selected:e,children:e?f.jsx(He.MenuFoldOutlined,{}):f.jsx(He.MenuUnfoldOutlined,{})})}function OS(e){const t=O.useRef(),n=E.useTheme(),{downLg:r,horizontal:o}=ir(),{open:i,width:s}=as(),l=r?E.AppBar:AS,u={position:"fixed",color:"inherit",elevation:0,sx:$r(e,{borderBottom:`1px solid ${n.palette.divider}`,zIndex:1200,width:o?"100%":i?`calc(100% - ${s}px)`:{xs:"100%",lg:"calc(100% - 60px)"}})};return r||J.extend(u,{open:i}),f.jsx(l,{ref:t,...u,children:f.jsxs(E.Toolbar,{sx:{"& > *":{marginX:n.spacing(.325)}},children:[!o&&f.jsx(IS,{}),e.children]})})}function I1e(e){const t=E.useTheme(),{notification:n,onClick:r,selected:o,divider:i}=e,{resource:s}=L3(),l=ne.useNotify(),d=ne.useRedirect(),[u]=ne.useUpdate(s,{id:n==null?void 0:n.id,data:{...n,readed:Br().toISOString()}},{onSuccess:()=>{n!=null&&n.resource?n!=null&&n.resource.startsWith("/")?(d(n==null?void 0:n.resource),r()):(r(),document.location.href=n==null?void 0:n.resource):r()},onFailure:()=>{l("resources.notifications.messages.readed.error","warning")}}),p=O.useCallback(()=>u(),[u]),[g]=ne.useLocaleState(),h=O.useMemo(()=>Br(n.created).locale(g).fromNow(),[n,g]);return f.jsx(E.ListItem,{disablePadding:!0,divider:i,children:f.jsxs(E.ListItemButton,{selected:o,onClick:p,children:[f.jsx(E.ListItemAvatar,{children:f.jsx(E.Avatar,{sx:{color:"primary.main",bgcolor:"primary.lighter"},children:f.jsx(He.MessageOutlined,{})})}),f.jsx(E.ListItemText,{sx:{overflow:"hidden",wordBreak:"break-word",width:"90%"},primary:n.title,secondary:n.content}),f.jsx(E.Box,{flexGrow:1,flexShrink:1,minWidth:t.spacing(2)}),f.jsx(E.ListItemText,{sx:{overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},primary:h,primaryTypographyProps:{variant:"caption"}})]})})}const O1e={width:36,height:36,fontSize:"1rem"},P1e={mt:"6px",ml:1,top:"auto",right:"auto",alignSelf:"flex-start",transform:"none"};function PS(){const{enable:e}=L3();return e?f.jsx(j1e,{}):null}function j1e(){const e=ne.useTranslate(),t=E.useTheme(),n=ne.useRefresh(),r=ne.useNotify(),{downMd:o}=ir(),{resource:i}=L3(),[s,l]=O.useState([]),{data:d,isLoading:u}=ne.useGetList(i,{pagination:{page:1,perPage:25},sort:{field:"created",order:"DESC"},filter:{readed:!1}}),p=s.filter(I=>I.readed===null).length,{open:g,anchorEl:h,handleClose:m,handleToggle:v}=Ta();O.useEffect(()=>{!u&&d&&l(d??[])},[d,u]);const b=s.filter(I=>!I.readed).map(I=>I.id),[x]=ne.useUpdateMany(i,{ids:b,data:{readed:Br().toISOString()}},{onSuccess:()=>{n(),r("resources.notifications.messages.readed.done")},onError:()=>r("ra.notification.readed_error")}),S=O.useCallback(()=>{x()},[x]);return f.jsxs(f.Fragment,{children:[f.jsx(Ra,{value:"notifications",selected:g,onChange:v,children:f.jsx(E.Badge,{badgeContent:p,color:"primary",children:f.jsx(He.BellOutlined,{})})}),f.jsx(E.Popper,{placement:o?"bottom":"bottom-end",open:g,anchorEl:h,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:I})=>f.jsx(ci,{type:"grow",position:o?"top":"top-right",in:g,...I,children:f.jsx(E.Paper,{sx:{marginTop:1,boxShadow:t.customShadows.z1,width:"100%",minWidth:285,maxWidth:420,[t.breakpoints.down("md")]:{maxWidth:285}},children:f.jsx(E.ClickAwayListener,{onClickAway:m,children:f.jsxs(Nn,{title:e("ra.notification.title"),elevation:0,border:!1,content:!1,secondary:f.jsx(f.Fragment,{children:p>0&&f.jsx(E.Tooltip,{title:e("ra.notification.mark-as-read"),onClick:S,children:f.jsx(ba,{color:"success",size:"small",children:f.jsx(He.CheckCircleOutlined,{style:{fontSize:"1.15rem"}})})})}),children:[s.length===0?f.jsx(f1,{hasCreate:!1,title:f.jsx(E.Typography,{variant:"h5",children:e("ra.notification.empty")}),sx:{"& .ApplicaEmpty-icon":{fontSize:"60px"},"& .ApplicaEmpty-toolbar":{display:"none"}}}):f.jsxs(f.Fragment,{children:[f.jsx(E.List,{component:"nav",sx:{p:0,"& .MuiListItemButton-root":{py:.5,"&.Mui-selected":{bgcolor:"grey.50",color:"text.primary"},"& .MuiAvatar-root":O1e,"& .MuiListItemSecondaryAction-root":{...P1e,position:"relative"}},maxHeight:"calc(100vh - 240px)",overflow:"auto"},children:s.map((w,T)=>f.jsx(I1e,{selected:p>0,notification:w,onClick:m,divider:T<s.length-1},w.id))}),f.jsx(E.ListItemButton,{sx:{textAlign:"center",py:"12px !important"},to:`/${i}`,LinkComponent:ut.Link,onClick:m,children:f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",color:"primary",children:e("ra.notification.view_all")})})})]}),f.jsx(E.Divider,{})]})})})})})]})}function jS(){const[e,t]=O.useState(!1),n=O.useCallback(()=>t(!1),[t]),r=O.useCallback(()=>t(!0),[t]),o=ne.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsxs(E.ListItemButton,{onClick:r,children:[f.jsx(E.ListItemIcon,{children:f.jsx(Vt.Key,{})}),f.jsx(E.ListItemText,{primary:o("ra.auth.change_password")})]}),f.jsx(E.Dialog,{open:e,onClose:()=>t(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(Ep,{onSuccess:n})})]})}function RS(){const e=ne.useLogout(),t=ne.useTranslate();return f.jsx(f.Fragment,{children:f.jsxs(E.ListItemButton,{onClick:e,children:[f.jsx(E.ListItemIcon,{children:f.jsx(Vt.LogoutOutlined,{})}),f.jsx(E.ListItemText,{primary:t("ra.auth.logout")})]})})}function MS(){const e=ne.useTranslate(),t=ne.useAuthProvider(),n=O.useCallback(()=>t.stopImpersonate().then(()=>document.location.href="/"),[t]),[r,o]=O.useState(!1);return O.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(E.ListItemButton,{onClick:n,children:[f.jsx(E.ListItemIcon,{children:f.jsx(Vt.LogoutOutlined,{})}),f.jsx(E.ListItemText,{primary:e("ra.auth.stop_impersonate")})]})}):null}function kS(e){var b;const{roles:t}=e,n=E.useTheme(),r=ne.useDataProvider(),{identity:o}=ne.useGetIdentity(),i=o!==void 0&&o.image&&o.image!==null&&o.image!=="",[s,l]=O.useState(null),{open:d,anchorEl:u,handleToggle:p,handleClose:g}=Ta(),h=ne.useLogout(),m=O.useCallback(()=>{h()},[h]);O.useEffect(()=>{i&&r.getFile("/profile/me/image").then(x=>l(x))},[r,i]);const v=O.useMemo(()=>{var x;return O.isValidElement(t)?t:t?f.jsx(f.Fragment,{children:t}):(x=o==null?void 0:o.roles)==null?void 0:x.map(S=>S.name.replace("ROLE_","")).join(",")},[t,o]);return f.jsxs(f.Fragment,{children:[f.jsx(Ra,{sx:{p:.25,width:"auto"},onClick:p,value:"profile",selected:d,children:f.jsxs(E.Stack,{direction:"row",spacing:2,alignItems:"center",sx:{p:.5},children:[f.jsx(du,{alt:(b=o==null?void 0:o.name)==null?void 0:b.toUpperCase(),src:s,size:"xs"}),f.jsx(E.Typography,{variant:"subtitle1",children:o==null?void 0:o.name})]})}),f.jsx(v2,{placement:"bottom-end",open:d,anchorEl:u,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:x})=>f.jsx(ci,{type:"grow",position:"top-right",in:d,...x,children:f.jsx(E.Paper,{sx:{boxShadow:n.customShadows.z1,width:290,minWidth:240,maxWidth:290,[n.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(E.ClickAwayListener,{onClickAway:g,children:f.jsxs(Nn,{elevation:0,border:!1,content:!1,children:[f.jsx(E.CardContent,{sx:{px:2.5,pt:3},children:f.jsxs(E.Grid,{container:!0,justifyContent:"space-between",alignItems:"center",children:[f.jsx(E.Grid,{item:!0,children:f.jsxs(E.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[f.jsx(du,{alt:"profile user",src:s,sx:{width:32,height:32}}),f.jsxs(E.Stack,{children:[f.jsx(E.Typography,{variant:"h6",children:o==null?void 0:o.name}),f.jsx(E.Typography,{variant:"body2",color:"textSecondary",children:v})]})]})}),f.jsx(E.Grid,{item:!0,children:f.jsx(E.Tooltip,{title:"Logout",children:f.jsx(ba,{size:"large",sx:{color:"text.primary"},onClick:m,children:f.jsx(He.LogoutOutlined,{})})})})]})}),f.jsx(E.Grid,{container:!0,children:f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.List,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32}},children:[f.jsx(jS,{}),f.jsx(RS,{}),f.jsx(MS,{})]})})})]})})})})})]})}function _S(e){const t=wt(),{downMd:n}=ir(),{open:r,anchorEl:o,handleToggle:i,handleClose:s}=Ta();return n?f.jsxs(f.Fragment,{children:[f.jsx(Ra,{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(He.MoreOutlined,{})}),f.jsx(E.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:l})=>f.jsx(ci,{type:"fade",in:r,...l,children:f.jsx(E.Paper,{sx:{boxShadow:t.customShadows.z1},children:f.jsx(E.ClickAwayListener,{onClickAway:s,children:f.jsx(E.AppBar,{color:"inherit",children:f.jsx(E.Toolbar,{children:e.children})})})})})})]}):f.jsx(f.Fragment,{children:e.children})}function DS(e){return f.jsx(E.Box,{...e,flex:1})}function FS(e){const t=E.useTheme(),n=E.useScrollTrigger({disableHysteresis:!0,threshold:0}),{container:r}=jn();return t.shadows[4]=t.customShadows.z1,f.jsx(E.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(E.Container,{maxWidth:r?"xl":!1,children:f.jsx(E.Box,{sx:{display:"flex",alignItems:"center"},children:e.children})})})}function LS(e){const{horizontal:t}=ir();return t?f.jsx(FS,{children:e.children}):f.jsx(SS,{children:e.children})}function Ol({item:e,level:t}){const n=wt(),{horizontal:r,downLg:o}=ir(),{drawerOpen:i,openItem:s,activeItem:l,openDrawer:d}=Vl();let u="_self";e.target&&(u="_blank");const p=(e==null?void 0:e.external)!==!1?{component:O.forwardRef((S,I)=>f.jsx(ut.Link,{...S,to:e.url,target:u,ref:I}))}:{component:"a",href:e.url,target:u},g=e.icon,h=e.icon?f.jsx(g,{style:{fontSize:i?"1rem":"1.25rem"}}):!1,m=s.findIndex(S=>S===e.id)>-1,{pathname:v}=ut.useLocation();O.useEffect(()=>{v.endsWith(e.url)&&l([e.id])},[v]);const b=n.palette.mode==="dark"?"grey.400":"text.primary",x=n.palette.mode==="dark"&&i?"text.primary":"primary.main";return f.jsx(f.Fragment,{children:r?f.jsxs(E.ListItemButton,{...p,disabled:e.disabled,selected:m,sx:{zIndex:1201,...i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{bgcolor:"transparent",color:x,"&:hover":{color:x,bgcolor:"transparent"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[h?f.jsx(E.ListItemIcon,{sx:{minWidth:36,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&m&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:h}):null,!h&&f.jsx(E.ListItemIcon,{sx:{color:m?"primary.main":"secondary.main",...!i&&{borderRadius:1.5,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&m&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:f.jsx(l2,{size:4,color:m?"primary":"secondary"})}),f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",color:"inherit",children:e.title})}),(i||!i&&t!==1)&&e.chip?f.jsx(E.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(E.Avatar,{children:e.chip.avatar}):null}):null]}):f.jsxs(E.ListItemButton,{...p,disabled:e.disabled,selected:m,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:x,"&:hover":{color:x,bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},...o&&{onClick:()=>d(!1)},children:[h?f.jsx(E.ListItemIcon,{sx:{minWidth:28,color:m?x:b,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:n.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!i&&m&&{bgcolor:n.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:n.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:h}):null,i||!i&&t!==1?f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",sx:{color:m?x:b},children:e.title})}):null,(i||!i&&t!==1)&&e.chip?f.jsx(E.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(E.Avatar,{children:e.chip.avatar}):null}):null]})})}const s9=ge(E.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 Pl({menu:e,level:t,parentId:n,setSelectedItems:r,selectedItems:o,setSelectedLevel:i,selectedLevel:s}){var W;const l=wt(),{activeItem:d}=Vl(),{horizontal:u}=ir(),{drawerOpen:p}=Vl(),g=ut.useNavigate(),[h,m]=O.useState(!1),[v,b]=O.useState(null),[x,S]=O.useState(null);function I(se){S(null),i(t),p?(m(!h),b(v?null:e.id),r(v?"":e.id),e.url&&g(`${e.url}`)):S(se==null?void 0:se.currentTarget)}function w(){p||e.url&&g(`${e.url}`)}function T(se){S(se==null?void 0:se.currentTarget)}function P(){m(!1),b(null),S(null)}O.useMemo(()=>{v===o?t===1&&m(!0):t===s&&(m(!1),b(null))},[o,t,v,s]);const{pathname:M}=ut.useLocation(),j=!!x;function _(se,K){se.forEach($=>{$.url===M&&(m(!0),b(K))})}O.useEffect(()=>{m(!1),b(null),j&&S(null),e.children&&e.children.forEach(se=>{var K;(K=se.children)!=null&&K.length&&_(se.children,e.id),se.url===M&&(b(e.id),m(!0)),M.includes(se.url)&&(b(e.id),m(!0))})},[M,e.children]),O.useEffect(()=>{e.url===M&&v!==e.id&&(d([e.id]),b(e.id),S(null),m(!0))},[M,e,v,d]);const N=(W=e.children)==null?void 0:W.map(se=>{switch(se.type){case"collapse":return f.jsx(Pl,{setSelectedItems:r,setSelectedLevel:i,selectedLevel:s,selectedItems:o,menu:se,level:t+1,parentId:n},se.id);case"item":return f.jsx(Ol,{item:se,level:t+1},se.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Collapse or Item"},se.id)}}),k=v===e.id,D=t===1?f.jsx(He.BorderOutlined,{style:{fontSize:"1rem"}}):!1,U=e.icon,H=e.icon?f.jsx(U,{style:{fontSize:p?"1rem":"1.25rem"}}):D,G=l.palette.mode==="dark"?"grey.400":"text.primary",Y=l.palette.mode==="dark"&&p?l.palette.text.primary:l.palette.primary.main,V=j?`collapse-pop-${e.id}`:void 0,Z={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"};return f.jsx(f.Fragment,{children:u?f.jsx(f.Fragment,{children:f.jsxs(E.ListItemButton,{id:`boundary-${V}`,disableRipple:!0,selected:k,onMouseEnter:T,onMouseLeave:P,onClick:T,"aria-describedby":V,sx:{"&.Mui-selected":{bgcolor:"transparent"}},children:[f.jsxs(E.Box,{onClick:w,sx:Z,children:[H?f.jsx(E.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,color:l.palette.secondary.dark},children:H}):null,!H&&t!==1&&f.jsx(E.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,bgcolor:"transparent","&:hover":{bgcolor:"transparent"}},children:f.jsx(l2,{size:4,color:k?"primary":"secondary"})}),f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"body1",color:"inherit",sx:{my:"auto"},children:e.title})}),j?f.jsx(He.RightOutlined,{}):f.jsx(He.DownOutlined,{})]}),x?f.jsx(s9,{id:V,open:j,anchorEl:x,placement:"right-start",style:{zIndex:2001},modifiers:[{name:"offset",options:{offset:[-10,0]}}],children:({TransitionProps:se})=>f.jsx(ci,{in:j,...se,children:f.jsx(E.Paper,{sx:{overflow:"hidden",mt:1.5,py:.5,boxShadow:l.shadows[8],backgroundImage:"none"},children:f.jsx(E.ClickAwayListener,{onClickAway:P,children:f.jsx(E.Box,{children:N})})})})}):null]})}):f.jsxs(f.Fragment,{children:[f.jsxs(E.ListItemButton,{disableRipple:!0,selected:v===e.id,...!p&&{onMouseEnter:I,onMouseLeave:P},onClick:I,sx:{pl:p?`${t*28}px`:1.5,py:!p&&t===1?1.25:1,...p&&{"&:hover":{bgcolor:l.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:"transparent",color:Y,"&:hover":{color:Y,bgcolor:l.palette.mode==="dark"?"divider":"transparent"}}},...!p&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[H?f.jsx(E.ListItemIcon,{onClick:w,sx:{minWidth:28,color:v===e.id?"primary.main":G,...!p&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:l.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!p&&v===e.id&&{bgcolor:l.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:l.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:H}):null,p||!p&&t!==1?f.jsx(E.ListItemText,{primary:f.jsx(E.Typography,{variant:"h6",color:v===e.id?"primary":G,children:e.title}),secondary:e.caption?f.jsx(E.Typography,{variant:"caption",color:"secondary",children:e.caption}):null}):null,p||!p&&t!==1?j||h?f.jsx(He.UpOutlined,{style:{fontSize:"0.625rem",marginLeft:1,color:l.palette.primary.main}}):f.jsx(He.DownOutlined,{style:{fontSize:"0.625rem",marginLeft:1}}):null,!p&&f.jsx(s9,{open:j,anchorEl:x,placement:"right-start",style:{zIndex:2001},popperOptions:{modifiers:[{name:"offset",options:{offset:[-12,1]}}]},children:({TransitionProps:se})=>f.jsx(ci,{in:j,...se,children:f.jsx(E.Paper,{sx:{overflow:"hidden",mt:1.5,boxShadow:l.customShadows.z1,backgroundImage:"none",border:`1px solid ${l.palette.divider}`},children:f.jsx(E.ClickAwayListener,{onClickAway:P,children:f.jsx(E.Box,{children:N})})})})})]}),p?f.jsx(E.Collapse,{in:h,timeout:"auto",unmountOnExit:!0,children:f.jsx(E.List,{sx:{p:0},children:N})}):null]})})}const R1e=ge(E.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 BS({item:e,lastItem:t,remItems:n,lastItemId:r,setSelectedItems:o,selectedItems:i,setSelectedLevel:s,selectedLevel:l}){var V,Z;const d=wt(),u=z.useTranslate(),{pathname:p}={pathname:""},{horizontal:g,downLg:h}=ir(),m=Vl(),{drawerOpen:v,selectedID:b,activeID:x}=m,[S,I]=O.useState(null),[w,T]=O.useState(e),P=!!S;O.useEffect(()=>{if(t)if(e.id===r){const W={...e},se=n.map(K=>K.elements);W.children=se.flat(1),T(W)}else T(e)},[e,t,h]);function M(W,se){W.forEach(K=>{var $;($=K.children)!=null&&$.length&&M(K.children,w.id),K.url===p&&x(se)})}function j(W){(W.children?W.children:[]).forEach(K=>{var $;($=K.children)!=null&&$.length&&M(K.children,w.id),K.url===p&&x(w.id)})}O.useEffect(()=>{j(w),P&&I(null)},[p,w]);function _(W){P||I(W==null?void 0:W.currentTarget)}function N(){I(null)}const k=w==null?void 0:w.icon,D=w!=null&&w.icon?f.jsx(k,{style:{fontSize:20,stroke:"1.5",color:b===w.id?d.palette.primary.main:d.palette.secondary.dark}}):null,U=(V=e.children)==null?void 0:V.map(W=>{switch(W.type){case"collapse":return f.jsx(Pl,{menu:W,setSelectedItems:o,setSelectedLevel:s,selectedLevel:l,selectedItems:i,level:1,parentId:w.id},W.id);case"item":return f.jsx(Ol,{item:W,level:1},W.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),H=n.map((W,se)=>{var K;return f.jsxs(O.Fragment,{children:[W.title?f.jsx(E.Typography,{variant:"caption",sx:{pl:2},children:W.title}):null,(K=W==null?void 0:W.elements)==null?void 0:K.map($=>{switch($.type){case"collapse":return f.jsx(Pl,{menu:$,level:1,parentId:w.id,setSelectedItems:o,setSelectedLevel:s,selectedLevel:l,selectedItems:i},$.id);case"item":return f.jsx(Ol,{item:$,level:1},$.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},$.id)}})]},se)}),G=(Z=w.children)==null?void 0:Z.map(W=>{switch(W.type){case"collapse":return f.jsx(Pl,{menu:W,level:1,parentId:w.id,setSelectedItems:o,setSelectedLevel:s,selectedLevel:l,selectedItems:i},W.id);case"item":return f.jsx(Ol,{item:W,level:1},W.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},W.id)}}),Y=P?`group-pop-${e.id}`:void 0;return f.jsx(f.Fragment,{children:g?f.jsx(E.List,{children:f.jsxs(E.ListItemButton,{selected:b===w.id,sx:{p:1,my:.5,mr:1,display:"flex",alignItems:"center",backgroundColor:"inherit","&.Mui-selected":{bgcolor:"transparent"}},onMouseEnter:_,onClick:_,onMouseLeave:N,"aria-describedby":Y,children:[D?f.jsx(E.ListItemIcon,{sx:{minWidth:28},children:w.id===r?f.jsx(He.DownOutlined,{style:{fontSize:20,stroke:"1.5"}}):D}):null,f.jsx(E.ListItemText,{sx:{mr:1},primary:f.jsx(E.Typography,{variant:"body1",color:b===w.id?d.palette.primary.main:d.palette.secondary.dark,children:w.id===r?u("ra.actions.more"):w.title})}),P?f.jsx(He.DownOutlined,{style:{fontSize:16,stroke:"1.5"}}):f.jsx(He.RightOutlined,{style:{fontSize:16,stroke:"1.5"}}),S?f.jsx(R1e,{id:Y,open:P,anchorEl:S,placement:"bottom-start",style:{zIndex:2001},children:({TransitionProps:W})=>f.jsx(ci,{in:P,...W,children:f.jsx(E.Paper,{sx:{mt:.5,py:1.25,boxShadow:d.shadows[8],backgroundImage:"none"},children:f.jsx(E.ClickAwayListener,{onClickAway:N,children:f.jsx(E.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:d.palette.divider,borderRadius:4}},children:w.id!==r?G:H})})})})}):null]})}):f.jsx(E.List,{subheader:e.title&&v?f.jsxs(E.Box,{sx:{pl:3,mb:1.5},children:[f.jsx(E.Typography,{variant:"subtitle2",color:d.palette.mode==="dark"?"textSecondary":"text.secondary",children:e.title}),e.caption?f.jsx(E.Typography,{variant:"caption",color:"secondary",children:e.caption}):null]}):null,sx:{mt:v&&e.title?1.5:0,py:0,zIndex:0},children:U})})}function NS(e){const{horizontal:t}=ir(),{open:n}=as(),r=$r(e,{pt:n?t?0:2:0,"& > ul:first-of-type":{mt:0},display:t?{xs:"block",lg:"flex"}:"block"});return f.jsx(E.Box,{sx:r,children:e.children})}function $S(e){const{horizontal:t}=ir(),{menu:n,isLoading:r}=tp(),[o,i]=O.useState(""),[s,l]=O.useState(0),{horizontalMaxItems:d}=jn(),u=t?d:void 0;let p=r?0:(n??[]).length-1,g=[],h;return!r&&u&&u<(n??[]).length&&(h=(n??[])[u-1].id,p=u-1,g=(n??[]).slice(u-1,(n??[]).length).map(m=>({title:m.title,elements:m.children,icon:m.icon}))),f.jsx(NS,{...e,children:!r&&J.map((n??[]).slice(0,p+1),m=>{const{type:v}=m;switch(v){case"group":return f.jsx(BS,{item:m,setSelectedItems:i,setSelectedLevel:l,selectedLevel:s,selectedItems:o,lastItem:u,remItems:g,lastItemId:h},m.id);default:return f.jsx(E.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Navigation Group"},m.id)}})})}function M1e({open:e,anchorEl:t,handleClose:n,theme:r,mode:o,toggleThemeMode:i}){const s=ne.useTranslate();return f.jsx(v2,{placement:"bottom-end",open:e,anchorEl:t,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:l})=>f.jsx(ci,{type:"grow",position:"top-right",in:e,...l,children:f.jsx(E.Paper,{sx:{boxShadow:r.customShadows.z1,minWidth:200,[r.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(E.ClickAwayListener,{onClickAway:n,children:f.jsx(Nn,{elevation:0,border:!1,content:!1,children:f.jsxs(E.List,{children:[f.jsxs(E.ListItemButton,{selected:o==="light",onClick:()=>i("light"),children:[f.jsx(He.SunOutlined,{}),f.jsx(E.Typography,{variant:"subtitle1",ml:1,children:s("ra.preferences.theme.light")})]}),f.jsxs(E.ListItemButton,{selected:o==="dark",onClick:()=>i("dark"),children:[f.jsx(He.MoonOutlined,{}),f.jsx(E.Typography,{variant:"subtitle1",ml:1,children:s("ra.preferences.theme.dark")})]}),f.jsxs(E.ListItemButton,{selected:o==="auto",onClick:()=>i("auto"),children:[f.jsx(Vt.Brightness6,{}),f.jsx(E.Typography,{variant:"subtitle1",ml:1,textTransform:"none",children:s("ra.preferences.theme.auto")})]})]})})})})})})}function VS(){const e=E.useTheme(),{mode:t,setMode:n}=jn(),{open:r,anchorEl:o,handleToggle:i,handleClose:s}=Ta(),l=O.useCallback(u=>{n(u)},[n]),d=O.useCallback(()=>{switch(t){case"light":return f.jsx(He.SunOutlined,{});case"dark":return f.jsx(He.MoonOutlined,{});default:return f.jsx(Vt.Brightness6,{})}},[t]);return f.jsxs(Ra,{value:"theme-mode","aria-label":"toggle mode",onClick:i,selected:!1,children:[f.jsx(d,{}),r?f.jsx(M1e,{open:r,anchorEl:o,handleClose:s,theme:e,mode:t,toggleThemeMode:l}):null]})}const zS=O.forwardRef((e,t)=>{const n=$r(e,{display:"flex",width:"100%"});return f.jsx(E.Box,{ref:t,...e,sx:n,children:e.children})});function $p({source:e="paper"}){const{mode:t}=jn(),n=E.useTheme();return O.useEffect(()=>{var o;const r=J.get(n.palette.background,e);(o=document.querySelector('meta[name="theme-color"]'))==null||o.setAttribute("content",r)},[t,n,e]),null}const WS=cw(function(t){const{name:n,version:r,enableThemeToggler:o,enableNotification:i,enableLocaleSwitcher:s}=t,{isLoading:l,navigation:d,breadcrumbs:u}=bC();return f.jsxs(zS,{children:[f.jsxs(OS,{children:[f.jsx(DS,{}),s?f.jsx(TS,{}):null,o?f.jsx(VS,{}):null,f.jsx($p,{}),f.jsx(Pb,{}),i?f.jsx(PS,{}):null,f.jsx(_S,{children:f.jsx(kS,{})})]}),f.jsx(LS,{children:f.jsx($S,{})}),f.jsxs(dw,{error:t.error,children:[!l&&f.jsx(ky,{titleBottom:!0,mode:"breadcrumbs",navigation:d,breadcrumbs:u,card:!1,divider:!1,icon:!0,icons:!0}),t.children,f.jsx(ut.Outlet,{}),f.jsx(Np,{name:n,version:r,copy:t==null?void 0:t.copy})]})]})});function US(e){const t=E.useMediaQuery(n=>n.breakpoints.down("sm"));return f.jsx(_1e,{disableGutters:!0,variant:t?"regular":"dense",...D1e(e)})}US.propTypes={children:C.node,className:C.string};const k1e="RaTopToolbar",_1e=E.styled(E.Toolbar,{name:k1e,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 D1e({hasCreate:e,...t}){return t}const F1e=ge("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}}));function HS(){return f.jsx(F1e,{children:f.jsx(E.LinearProgress,{color:"primary"})})}function L1e(e){return t=>f.jsx(O.Suspense,{fallback:f.jsx(HS,{}),children:f.jsx(e,{...t})})}function Vp({title:e}){return f.jsxs(E.Stack,{direction:"row",children:[f.jsx(E.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(E.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]})}const B1e=ge(z.Notification,{})(({theme:e})=>({zIndex:2e3,"& *":{fontSize:e.typography.body1.fontSize}}));function GS(e){return f.jsx(B1e,{...e})}var Wl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(Wl||{});const qS=Bn().required(),YS=Bn().oneOf(Object.values(Wl));function N1e(e){var S;const t=Hi.useQueryClient(),[n,r]=O.useState(!1),[o,i]=O.useState(()=>()=>Promise.resolve()),s=ne.useGetIdentity(),l=(S=s==null?void 0:s.data)==null?void 0:S.email,d=ne.useDataProvider(),u=O.useCallback(()=>l?d.get("onboarding").then(I=>{var w;return(w=I==null?void 0:I.data)==null?void 0:w.value}):Promise.reject(),[d,l]),{data:p,isLoading:g,isError:h}=Hi.useQuery({queryKey:["GET","onboarding",l],queryFn:u,staleTime:24*60*60*1e3,retry:l!==void 0}),[m,v]=O.useState(()=>()=>Promise.resolve()),x=Hi.useMutation({mutationFn:m}).mutateAsync;return O.useEffect(()=>{function I(){const w=J.chain(p??{}).clone().extend({[e]:Date.now()}).value();return d.post("onboarding",w).then(()=>{t.invalidateQueries(["GET","onboarding",l])})}v(()=>I)},[d,p,e,t,l]),O.useEffect(()=>{r(J.isNil((p??{})[e]))},[p,e,r]),O.useEffect(()=>{i(()=>()=>x())},[x]),{loading:g,error:h,onboardingRequired:n,acknowledgeOnboarding:o}}function $1e(e){const[t,n]=dp("onboarding",{}),[r,o]=O.useState(!1),[i,s]=O.useState(()=>()=>Promise.resolve());return O.useEffect(()=>{o(J.isNil((t??{})[e]))},[t,e,o]),O.useEffect(()=>{s(()=>()=>(n(l=>J.extend(l,{[e]:Date.now()})),Promise.resolve()))},[e,n,s]),{onboardingRequired:r,acknowledgeOnboarding:i}}function V1e(){return{onboardingRequired:!1,acknowledgeOnboarding:O.useRef(()=>Promise.resolve()).current}}function KS(e,t){cp({mode:YS,topic:qS}).validateSync({mode:e,topic:t});const n=N1e(t),r=$1e(t),o=V1e();switch(e){case Wl.USER:return n.loading?o:n.error?r:J.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case Wl.BROWSER:return r;default:return o}}var ra=(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))(ra||{});function z1e(e,t){var o;const n=J.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:i}=t;return J.extend(n,{show:i})}case"REGISTER_TIP":{const{payload:i}=t,{id:s}=i,l=J.chain(n.tips).clone().reject(p=>p.id===s).value(),d=J.find(n.tips,{id:s}),u=J.chain(d??{}).clone().extend(i).value();return l.push(u),J.extend(n,{tips:J.sortBy(l,["step"])})}case"UNREGISTER_TIP":{const{payload:i}=t,s=J.isString(i)?i:i.id,l=J.chain(n.tips).reject(d=>d.id===s).sortBy(["step"]).value();return J.extend(n,{tips:l})}case"DISMISS_TIP":{const{payload:i}=t,s=J.isString(i)?i:i.id,l=J.chain(n.tips).reject(h=>h.id===s).value(),d=J.find(n.tips,{id:s});if(J.isNil(d))return n;const u=J.chain(d).clone().extend({dismissed:!0}).value();l.push(u);const p=((o=J.chain(l).reject(h=>h.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(u==null?void 0:u.completeOnboarding)&&J.chain(l).reject(h=>h.step<p).reject(h=>h.dismissed??!1).isEmpty().value()&&e.onComplete(),J.extend(n,{tips:J.sortBy(l,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:i}=t;return J.extend(n,{onComplete:i})}case"RESTART":{const i=J.chain(n.tips).clone().map(s=>J.omit(s,"dismissed")).value();return J.extend(n,{tips:i,currentStep:0})}default:return n}}const zp=O.createContext(void 0);function W1e(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=KS(t,n),[i,s]=O.useReducer(z1e,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),l=O.useMemo(()=>({state:i,dispatch:s}),[i,s]);return O.useEffect(()=>{s({type:"SET_SHOW",payload:r})},[r,s]),O.useEffect(()=>{function d(){o().then(()=>{s({type:"SET_SHOW",payload:!1})})}s({type:"SET_ON_COMPLETE",payload:d})},[o,s]),f.jsx(zp.Provider,{value:l,children:e.children})}function ZS(){const e=O.useContext(zp);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function U1e(){return ZS().state}function XS(){return ZS().dispatch}function QS(e){cp({id:Bn().required(),step:PC().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:i,currentStep:s}=U1e(),l=J.find(i,{id:t}),{dismissed:d}=l??{},u=XS(),p=O.useCallback(()=>{u({type:ra.DISMISS_TIP,payload:t})},[u,t]);return O.useEffect(()=>{(J.isNil(l)||n!==(l==null?void 0:l.step))&&u({type:ra.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,l,u]),O.useEffect(()=>()=>{u({type:ra.UNREGISTER_TIP,payload:t})},[t,u]),{tip:J.chain(l??e).clone().extend({open:o&&!J.isNil(l)&&s===n&&!d}).value(),dismiss:p}}function H1e(){const e=XS();return O.useCallback(()=>{e({type:ra.RESTART})},[e])}function G1e(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:i,dismiss:s}=QS({id:t,step:n,completeOnboarding:o}),{open:l}=i,d=J.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(b3,{...d,arrow:!0,open:l,title:f.jsxs(E.Stack,{gap:1,children:[f.jsx(E.Typography,{children:r}),f.jsx(E.Button,{onClick:s,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const q1e=E.styled(G1e)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${E.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${E.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${E.tooltipClasses.arrow}`]:{color:r.main}}});function JS({children:e}){const t=ut.useLocation(),{pathname:n}=t;return O.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),f.jsx(f.Fragment,{children:e})}const Y1e=ge("div")({width:"100%",overflowX:"auto",display:"block"});function K1e({shadow:e,children:t,...n}){return f.jsx(Nn,{content:!1,border:!1,shadow:e,boxShadow:!0,...n,children:t})}function eA({title:e}){return f.jsx(E.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substring(0,1).toUpperCase()})}function Z1e({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:i,component:s,leftIcon:l,rightIcon:d,button:u,buttonProps:p,...g}){const{getCurrentDialog:h}=bp(),m=ne.useResourceContext(g),v=h(),b=ne.useRecordContext(),x=r||b,S=Qe.get(x,e||"");return f.jsxs(E.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:I=>({pt:1,pb:1,borderBottom:`1px solid ${I.palette.divider}`,...o&&{mb:2},...i&&{mt:2}}),children:[f.jsxs(E.Stack,{direction:"row",alignItems:"start",children:[l?O.isValidElement(l)?O.cloneElement(l,{style:jc}):O.createElement(l,{style:jc}):null,f.jsx(ne.FieldTitle,{label:t,source:e,resource:v||m})]}),f.jsxs(E.Stack,{direction:"row",alignItems:"center",children:[s?O.isValidElement(s)?O.cloneElement(s,{record:x,resource:m,value:S}):O.createElement(s,{source:e,record:x,resource:m,value:S}):f.jsx(E.Typography,{variant:n,children:S}),d?O.isValidElement(d)?O.cloneElement(d,{style:jc}):O.createElement(d,{style:jc}):null,u?f.jsx(E.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:u}):null]})]})}const jc={width:"1.5rem",alignSelf:"center"};function X1e({children:e}){const t=wt();return f.jsx(Nn,{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(E.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})}function N3({version:e,name:t,copy:n,children:r,logo:o,background:i=C3,footer:s=!0}){return f.jsxs(E.Box,{children:[f.jsx($p,{source:"default"}),O.isValidElement(i)?i:O.createElement(i),f.jsxs(E.Grid,{container:!0,direction:"column",justifyContent:"flex-end",children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(Vp,{title:t})}),f.jsxs(E.Grid,{item:!0,xs:12,children:[f.jsx(E.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(E.Grid,{item:!0,children:f.jsx(X1e,{children:r})})}),s?f.jsx(E.Grid,{item:!0,sx:{pb:1,position:"absolute",bottom:0,ml:2},children:f.jsx(Np,{name:t,copy:n,version:e})}):null]})]})]})}function Q1e({name:e,copy:t,logo:n,version:r,background:o}){const i=ne.useTranslate(),s=ne.useAuthProvider(),l=ne.useNotify(),d=ut.useNavigate(),{token:u}=ut.useParams();return O.useEffect(()=>{if(typeof s.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");s.activate(u).then(()=>{l("ra.auth.activate_success",{type:"info"}),J.delay(()=>d("/login"),1e3)}).catch(p=>{l(p,{type:"error"}),J.delay(()=>d("/login"),1e3)})},[u,s,l,d]),f.jsx(N3,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:i("ra.auth.activate")}),f.jsx(E.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),f.jsx(E.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})}function tA(){const e=O.useCallback(()=>location.reload(),[]);return f.jsx(E.Container,{children:f.jsxs(E.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{alt:"Error",src:Qy,style:{width:"100%",maxWidth:450}}),f.jsx(E.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(E.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(E.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}function nA({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:i=!1,oauth:s={},redirectTo:l,background:d=f.jsx(C3,{})}){const[u,p]=ne.useSafeSetState(!1),g=ne.useLogin(),h=ne.useTranslate(),m=ne.useNotify(),v=ne.useCheckAuth(),b=ut.useNavigate();O.useEffect(()=>{v({},!1).then(()=>{b("/")}).catch(()=>{})},[v,b]);function x(S){p(!0),g(S,l).then(()=>{p(!1)}).catch(I=>{p(!1),m(typeof I=="string"?I:typeof I>"u"||!I.message?"ra.auth.sign_in_error":I.message,{type:"error",messageArgs:{_:typeof I=="string"?I:I&&I.message?I.message:void 0}})})}return f.jsx(N3,{name:t,version:e,copy:n,logo:r,background:d,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:"Login"}),i?f.jsx(E.Typography,{component:ut.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")}):null]})}),f.jsxs(E.Grid,{item:!0,xs:12,children:[f.jsxs(ne.Form,{onSubmit:x,children:[f.jsxs(E.Grid,{container:!0,children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(Sr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ne.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(Sr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ne.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o?f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(E.Link,{variant:"h6",component:ut.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}):null,f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(E.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]}),J.isEmpty(s)?null:f.jsxs(f.Fragment,{children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:2},children:f.jsx(E.Divider,{})}),s.google?f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:2,width:"100%"},children:f.jsx(QC,{setLoading:p})}):null]})]})]})})}function J1e({name:e,copy:t,logo:n,version:r,background:o}){const[i,s]=O.useState(!1),l=ne.useTranslate(),d=ne.useRedirect(),u=ne.useNotify(),p=ne.useAuthProvider();function g({email:h}){s(!0),p.recover(h).then(m=>{const v=`ra.auth.recover_${m.responseCode}`,b=m.responseCode==="ok"?"info":"error";u(v,{type:b}),d("/login")}).catch(m=>{u((m==null?void 0:m.message)||(m==null?void 0:m.toString()),{type:"error"})}).finally(()=>s(!1))}return f.jsx(N3,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:l("ra.auth.recover.title")}),f.jsx(E.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.back_to_login")})]})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(z.Form,{onSubmit:g,children:[f.jsx(E.Grid,{container:!0,children:f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"email",validate:[ne.required(),ne.email()]})})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(E.Typography,{variant:"caption",children:l("ra.auth.recover.inbox_help")})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(E.CircularProgress,{size:19,thickness:3}):l("ra.auth.recover")})})]})})]})})}function ece({name:e,copy:t,version:n,logo:r,background:o}){const[i,s]=O.useState(!1),l=ne.useTranslate(),d=ne.useRedirect(),u=ne.useNotify(),p=ne.useAuthProvider();function g(h){s(!0),p.register(h).then(m=>{const v=`ra.auth.register_${m.responseCode}`,b=m.responseCode==="ok"?"info":"error";u(v,{type:b}),d("/login")}).catch(m=>{u(m.message||m,{type:"error"})}).finally(()=>s(!1))}return f.jsx(N3,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(E.Grid,{container:!0,spacing:3,children:[f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(E.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(E.Typography,{variant:"h3",children:l("ra.auth.register.title")}),f.jsx(E.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.already_have_account")})]})}),f.jsx(E.Grid,{item:!0,xs:12,children:f.jsxs(z.Form,{onSubmit:g,children:[f.jsxs(E.Grid,{container:!0,children:[f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"name",label:l("ra.register.name"),validate:ne.required()})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"email",type:"email",validate:[ne.required(),ne.email()]})}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(Sr,{source:"password",type:"password",validate:ne.required()})})]}),f.jsx(E.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(E.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(E.CircularProgress,{size:19,thickness:3}):l("ra.auth.create_account")})})]})})]})})}function tce(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 nce(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function rce(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(He.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 ji({color:e,theme:t}){const n=hn(t,e),{lighter:r,light:o,main:i}=n;return{borderColor:nt(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:i}}}function oce(e){const t=ji({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":ji({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":ji({color:"secondary",theme:e}),"&.MuiAlert-borderError":ji({color:"error",theme:e}),"&.MuiAlert-borderSuccess":ji({color:"success",theme:e}),"&.MuiAlert-borderInfo":ji({color:"info",theme:e}),"&.MuiAlert-borderWarning":ji({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 ice(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function sce(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 Ri({color:e,theme:t}){const n=hn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function ace(e){const t=Ri({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Ri({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Ri({color:"secondary",theme:e}),"&.MuiBadge-colorError":Ri({color:"error",theme:e}),"&.MuiBadge-colorInfo":Ri({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Ri({color:"success",theme:e}),"&.MuiBadge-colorWarning":Ri({color:"warning",theme:e})}}}}}function it({variant:e,color:t,theme:n}){const r=hn(n,t),{lighter:o,main:i,dark:s,contrastText:l}=r,d=`${t}Button`,u=ya(n,d),p={"&::after":{boxShadow:`0 0 5px 5px ${nt(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${nt(i,.9)}`},"&:focus-visible":{outline:`2px solid ${s}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:s},...p};case"shadow":return{color:l,backgroundColor:i,boxShadow:u,"&:hover":{boxShadow:"none",backgroundColor:s},...p};case"outlined":return{borderColor:i,"&:hover":{color:s,backgroundColor:"transparent",borderColor:s},...p};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:s,borderColor:s},...p};case"text":default:return{"&:hover":{color:s,backgroundColor:o},...p}}}function lce(e){const t=it({variant:"dashed",color:"primary",theme:e}),n=it({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":it({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":it({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":it({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":it({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":it({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":it({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":it({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":it({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":it({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":it({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":it({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":it({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:it({variant:"contained",color:"primary",theme:e}),containedSecondary:it({variant:"contained",color:"secondary",theme:e}),containedError:it({variant:"contained",color:"error",theme:e}),containedSuccess:it({variant:"contained",color:"success",theme:e}),containedInfo:it({variant:"contained",color:"info",theme:e}),containedWarning:it({variant:"contained",color:"warning",theme:e}),outlinedPrimary:it({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:it({variant:"outlined",color:"secondary",theme:e}),outlinedError:it({variant:"outlined",color:"error",theme:e}),outlinedSuccess:it({variant:"outlined",color:"success",theme:e}),outlinedInfo:it({variant:"outlined",color:"info",theme:e}),outlinedWarning:it({variant:"outlined",color:"warning",theme:e}),textPrimary:it({variant:"text",color:"primary",theme:e}),textSecondary:it({variant:"text",color:"secondary",theme:e}),textError:it({variant:"text",color:"error",theme:e}),textSuccess:it({variant:"text",color:"success",theme:e}),textInfo:it({variant:"text",color:"info",theme:e}),textWarning:it({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function cce(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function uce(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function dce(){return{MuiCard:{styleOverrides:{root:{boxShadow:"none"}}}}}function fce(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Fs({color:e,theme:t}){const n=hn(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 pce(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 $f(e){const t=pce(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function hce(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(He.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(He.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...$f("small")},"&.size-medium":{...$f("medium")},"&.size-large":{...$f("large")}},colorPrimary:Fs({color:"primary",theme:e}),colorSecondary:Fs({color:"secondary",theme:e}),colorSuccess:Fs({color:"success",theme:e}),colorWarning:Fs({color:"warning",theme:e}),colorInfo:Fs({color:"info",theme:e}),colorError:Fs({color:"error",theme:e})}}}}function Ls({color:e,theme:t}){const n=hn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Qn({color:e,theme:t}){const n=hn(t,e),{light:r,lighter:o,main:i}=n;return{color:i,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:i,"&:hover":{color:r}}}}function gce(e){const t=Qn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Ls({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Ls({color:"secondary",theme:e}),"&.MuiChip-colorError":Ls({color:"error",theme:e}),"&.MuiChip-colorInfo":Ls({color:"info",theme:e}),"&.MuiChip-colorSuccess":Ls({color:"success",theme:e}),"&.MuiChip-colorWarning":Ls({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Qn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Qn({color:"secondary",theme:e}),"&.MuiChip-lightError":Qn({color:"error",theme:e}),"&.MuiChip-lightInfo":Qn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Qn({color:"success",theme:e}),"&.MuiChip-lightWarning":Qn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Qn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Qn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Qn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Qn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Qn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Qn({color:"warning",theme:e})}}}}}function mce(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:nt("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function vce(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function yce(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Bs({color:e,theme:t}){const n=hn(t,e),{main:r,dark:o,contrastText:i}=n,s=`${e}Button`,l=ya(t,s);return{color:i,backgroundColor:r,boxShadow:l,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${nt(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${nt(r,.9)}`}}}function bce(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Bs({color:"primary",theme:e}),"&.MuiFab-secondary":Bs({color:"secondary",theme:e}),"&.Mui-error":Bs({color:"error",theme:e}),"&.MuiFab-success":Bs({color:"success",theme:e}),"&.MuiFab-info":Bs({color:"info",theme:e}),"&.MuiFab-warning":Bs({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 Cce(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 xce(e){return{MuiInputBase:{styleOverrides:{}}}}function wce(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 Sce(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function Ace(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Ece(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function Tce(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function Ice(e){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function Oce(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function Mi({variant:e,theme:t}){const n=hn(t,e),{light:r}=n,o=ya(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function Pce(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:{...Mi({variant:"primary",theme:e}),"&.Mui-error":{...Mi({variant:"error",theme:e})}},inputSizeSmall:{padding:"9px 8px 9px 12px"},inputMultiline:{padding:0},colorSecondary:Mi({variant:"secondary",theme:e}),colorError:Mi({variant:"error",theme:e}),colorWarning:Mi({variant:"warning",theme:e}),colorInfo:Mi({variant:"info",theme:e}),colorSuccess:Mi({variant:"success",theme:e})}}}}function jce(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function Mt({variant:e,color:t,theme:n}){const r=hn(n,t),{lighter:o,light:i,dark:s,main:l,contrastText:d}=r,u={"&:focus-visible":{outline:`2px solid ${s}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:d,backgroundColor:l,"&:hover":{backgroundColor:i},...u};case"outlined":return{borderColor:l,"&:hover":{backgroundColor:o,borderColor:i},...u};case"text":default:return{color:l,"&:hover":{backgroundColor:l,color:o},...u}}}function Rce(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":Mt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":Mt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":Mt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":Mt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":Mt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":Mt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":Mt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":Mt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":Mt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":Mt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":Mt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":Mt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":Mt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":Mt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":Mt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":Mt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":Mt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":Mt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":Mt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":Mt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":Mt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":Mt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":Mt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":Mt({variant:"outlined",color:"warning",theme:e})}}}}}}function Mce(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Ns({color:e,theme:t}){const n=hn(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 kce(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 Vf(e){const t=kce(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function _ce(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(E.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(E.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":{...Vf("small")},"&.size-medium":{...Vf("medium")},"&.size-large":{...Vf("large")}},colorPrimary:Ns({color:"primary",theme:e}),colorSecondary:Ns({color:"secondary",theme:e}),colorSuccess:Ns({color:"success",theme:e}),colorWarning:Ns({color:"warning",theme:e}),colorInfo:Ns({color:"info",theme:e}),colorError:Ns({color:"error",theme:e})}}}}function $s({color:e,theme:t}){const n=hn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function Dce(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":$s({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":$s({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":$s({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":$s({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":$s({color:"info",theme:e}),"&.MuiSlider-thumbColorError":$s({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 Fce(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 zf(e,t){const n=Fce(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 Lce(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},...zf(e,"medium")},sizeLarge:{...zf(e,"large")},sizeSmall:{...zf(e,"small")}}}}}function Bce(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 Nce(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 $ce(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 Vce(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function zce(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function Wce(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},toolbar:{paddingRight:"16px !important"},displayedRows:{fontSize:"0.875rem"}}}}}function Uce(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function Hce(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function Gce(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 qce(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function Yce(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function Kce(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function Zce(e){return Qe.merge(tce(e),nce(e),rce(e),oce(e),ice(),sce(e),ace(e),lce(e),cce(),uce(),dce(),fce(),hce(e),gce(e),mce(e),vce(e),yce(),bce(e),Cce(e),xce(),wce(e),Sce(),Ace(),Ece(e),Tce(e),Ice(),Oce(),Pce(e),jce(),Rce(e),Mce(e),_ce(e),Dce(e),Lce(e),Bce(e),Nce(e),$ce(e),Vce(e),zce(e),Wce(),Uce(),Hce(),Gce(e),qce(e),Yce(),Kce())}function Xce(e){const{blue:t,red:n,gold:r,cyan:o,green:i,grey:s}=e,l={0:s[0],50:s[1],100:s[2],200:s[3],300:s[4],400:s[5],500:s[6],600:s[7],700:s[8],800:s[9],900:s[10],A50:s[15],A100:s[11],A200:s[12],A400:s[13],A700:s[14],A800:s[16]},d="#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:d},secondary:{lighter:l[100],100:l[100],200:l[200],light:l[300],400:l[400],main:l[500],600:l[600],dark:l[700],800:l[800],darker:l[900],A100:l[0],A200:l.A400,A300:l.A700,contrastText:l[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:d},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:l[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:d},success:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:d},grey:l}}function Qce(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"],s=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],l=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],d=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],u=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(i=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],s=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],l=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],d=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function Jce(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function eue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function tue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function nue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function rue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function oue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function iue(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"],s=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],l=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],d=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],u=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],s=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],l=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],d=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],u=["#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:s[0],light:s[1],main:s[2],dark:s[3],darker:s[4],contrastText:o},warning:{lighter:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:r[100]},info:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},success:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},grey:r}}function sue(e,t,n){switch(t){case"theme1":return Qce(e,n);case"theme2":return Jce(e,n);case"theme3":return eue(e,n);case"theme4":return tue(e,n);case"theme5":return nue(e,n);case"theme6":return rue(e,n);case"theme7":return oue(e,n);case"theme8":return iue(e,n);default:return Xce(e)}}var Y0=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Y0.primary=Y0[5];var K0=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];K0.primary=K0[5];var Z0=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Z0.primary=Z0[5];var X0=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];X0.primary=X0[5];var Q0=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Q0.primary=Q0[5];var J0=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];J0.primary=J0[5];var e6=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];e6.primary=e6[5];var t6=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];t6.primary=t6[5];var n6=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];n6.primary=n6[5];var r6=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];r6.primary=r6[5];var o6=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];o6.primary=o6[5];var i6=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];i6.primary=i6[5];var s6=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];s6.primary=s6[5];var aue={red:Y0,volcano:K0,orange:Z0,gold:X0,yellow:Q0,lime:J0,green:e6,cyan:t6,blue:n6,geekblue:r6,purple:o6,magenta:i6,grey:s6},a6=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];a6.primary=a6[5];var l6=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];l6.primary=l6[5];var c6=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];c6.primary=c6[5];var u6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];u6.primary=u6[5];var d6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];d6.primary=d6[5];var f6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];f6.primary=f6[5];var p6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];p6.primary=p6[5];var h6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];h6.primary=h6[5];var g6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];g6.primary=g6[5];var m6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];m6.primary=m6[5];var v6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];v6.primary=v6[5];var y6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];y6.primary=y6[5];var b6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];b6.primary=b6[5];var lue={red:a6,volcano:l6,orange:c6,gold:u6,yellow:d6,lime:f6,green:p6,cyan:h6,blue:g6,geekblue:m6,purple:v6,magenta:y6,grey:b6};function cue(e,t){const n=e==="dark"?lue:aue;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 s=sue(n,t,e);return Q6({palette:{mode:e,common:{black:"#000",white:"#fff"},...s,text:{primary:e==="dark"?nt(s.grey[900],.87):s.grey[700],secondary:e==="dark"?nt(s.grey[900],.45):s.grey[500],disabled:e==="dark"?nt(s.grey[900],.1):s.grey[400]},action:{disabled:s.grey[300]},divider:e==="dark"?nt(s.grey[900],.05):s.grey[200],background:{paper:e==="dark"?s.grey[100]:s.grey[0],default:s.grey.A50}}})}function uue(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 ${nt(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${nt(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${nt(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${nt(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${nt(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${nt(e.palette.info.main,.2)}`,success:`0 0 0 2px ${nt(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${nt(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${nt(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${nt(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${nt(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${nt(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${nt(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${nt(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${nt(e.palette.grey[500],.2)}`}}function due(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 Wp({themeOverrides:e,children:t}){const n=jn(),{themeDirection:r,mode:o,presetColor:i,fontFamily:s}=n,l=VC(),d=O.useMemo(()=>o==="auto"?l:o,[o,l]),u=O.useMemo(()=>cue(d,i),[d,i]),p=O.useMemo(()=>due(s),[s]),g=O.useMemo(()=>uue(u),[u]),h=O.useMemo(()=>J.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:u.palette,customShadows:g,typography:p,components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:u.spacing(2.6875),height:u.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(u):e),[r,u,p,g,e]),m=Q6(h),v=J.cloneDeep(m.components??{});return m.components=J.merge(Zce(m),v),f.jsx(E.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(Py,{theme:m,children:[f.jsx(E.CssBaseline,{enableColorScheme:!0}),t]})})}function fue({children:e,theme:t,...n}){return f.jsx(z.CoreAdminContext,{...n,children:f.jsx(Wp,{themeOverrides:t,children:f.jsx(JS,{children:e})})})}function rA(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:i,disableTelemetry:s,history:l,i18nProvider:d,layout:u,loading:p,loginPage:g,authCallbackPage:h,menu:m,notification:v,queryClient:b,requireAuth:x,store:S=z.localStorageStore(),ready:I,theme:w,title:T="React Admin"}=e;return f.jsx(fue,{authProvider:t,dataProvider:i,i18nProvider:d,store:S,history:l,queryClient:b,theme:w,children:f.jsx(z.AdminUI,{layout:u,dashboard:o,disableTelemetry:s,menu:m,catchAll:n,title:T,loading:p,loginPage:g,authCallbackPage:h,notification:v,requireAuth:x,ready:I,children:r})})}class oA{constructor({catch:t,display:n,log:r,error:o}){Qa(this,"catch");Qa(this,"display");Qa(this,"log");Qa(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}}var Ul,Hl,oa;class pue{constructor(t){Dr(this,Ul);Dr(this,Hl);Dr(this,oa,new Set);const{apiUrl:n}=t??{};if(!J.isString(n)||J.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");Hr(this,Hl,n),Hr(this,Ul,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var l;const{message:n,filename:r,lineno:o,colno:i}=t,s=`${n}${r}${o}${i}`;cn(this,oa).has(s)||(cn(this,oa).add(s),fetch(`${cn(this,Hl)}/ui/error-log`,{method:"PUT",headers:cn(this,Ul),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(l=t.error)==null?void 0:l.stack})}).catch(d=>{console.warn("Unable to send error to server",d),cn(this,oa).delete(s)}))}}Ul=new WeakMap,Hl=new WeakMap,oa=new WeakMap;function hue({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=i=>new oA({catch:i!=null,display:!1,log:i!=null,error:i}),...o}){const i=B.useMemo(()=>o.errorHandler?o.errorHandler:new pue({apiUrl:t}),[t,o.errorHandler]),s=console.error,l=B.useCallback(function(d,...u){var g;if(!d)return!1;const p=r(d instanceof ErrorEvent?d:(g=d==null?void 0:d.toString())==null?void 0:g.replace(/%s/g,()=>u.shift()));return p.isCatched()||(p.logError()&&(d instanceof ErrorEvent?i.handle(d):i.handle(new ErrorEvent("window.onerror",{error:d,message:d.toString()}))),p.displayError()&&s.apply(console,arguments)),!1},[r,i,s]);return B.useEffect(()=>(window.removeEventListener("error",l),window.addEventListener("error",l),console.error=l,()=>{window.removeEventListener("error",l),console.error=s}),[l,s]),!0}var Gl,ql,Ui;class gue{constructor(t){Dr(this,Gl);Dr(this,ql);Dr(this,Ui,[]);const{apiUrl:n}=t??{};if(!J.isString(n)||J.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");Hr(this,ql,n),Hr(this,Gl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!J.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!J.isString(n)||J.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!J.isString(r)||J.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!J.some(cn(this,Ui),o=>J.isEqual(o,{code:n,lang:r}))){cn(this,Ui).push({code:n,lang:r}),fetch(`${cn(this,ql)}/i18n/message`,{method:"put",headers:cn(this,Gl),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),Hr(this,Ui,J.reject(cn(this,Ui),i=>J.isEqual(i,{code:n,lang:r})))});return}}}Gl=new WeakMap,ql=new WeakMap,Ui=new WeakMap;function iA(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,i=[{locale:n,name:n}],s=new Headers({Accept:"application/json","Content-Type":"application/json"}),l=new gue({apiUrl:t});function d(){return fetch(`${t}/i18n/languages`,{headers:s,method:"get"}).then(g=>g.json()).catch(()=>Promise.resolve(i))}function u(){return fetch(`${t}/i18n/messages`,{headers:s,method:"get"}).then(g=>g.json()).then(g=>g.reduce((h,m)=>({...h,[m.lang]:{...h[m.lang]||{},[m.code]:m.text}}),{}))}function p(g,h,m){return r||console.error(`Warning: Missing translation for key: "${g}"`),o&&(J.isString(g)?g.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${g}`):l.handleMessage({code:g,lang:m}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),g}return Promise.all([d(),u()]).then(g=>{const[h,m]=g;function v(b){return J.get(m,b,{})}return a9(v,n,h,{allowMissing:r||o,onMissingKey:p})})}function mue(e){const{locales:t,defaultLocale:n,path:r}=e,o=new Headers({Accept:"application/json","Content-Type":"application/json"});function i(s){return fetch(`${r}/${s.locale}.json`,{headers:o,method:"get"}).then(l=>l.json()).then(l=>l.reduce((d,u)=>({...d,[u.lang]:{...d[u.lang]||{},[u.code]:u.text}}),{}))}return Promise.all(t.map(i)).then(s=>J.reduce(s,(l,d)=>({...l,...d}),{})).then(s=>{function l(d){return J.get(s,d,{})}return a9(l,n,t,{allowMissing:!0})})}function vue({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})}){const[r,o]=O.useState({loading:!0,languages:null});return O.useEffect(()=>{const i=new Headers;i.append("Accept","application/json"),i.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:i}).then(s=>s.json()).then(s=>o({loading:!1,...n(s)}))},[e,t,n]),r}function sA(e){const[t,n]=O.useState(),r=$C(e);return O.useEffect(()=>{if(e.customProvider!==void 0){e.customProvider.then(n);return}iA(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r,e==null?void 0:e.customProvider]),t}const yue=new Hi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function bue({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:i,logoIcon:s,loginPage:l=f.jsx(nA,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(C3,{})}),menu:d,name:u,copy:p,version:g="0.0.0",dataProvider:h,authProvider:m,i18nProvider:v,errorHandler:b,error:x,enableNotification:S=!1,enableRegistration:I=!1,enablePasswordRecover:w=!1,enableThemeToggler:T=!1,enableLocaleSwitcher:P=!1,oauth:M={},queryClient:j=yue,background:_,notificationAPI:N="entities/notification",...k}){var Y;hue({apiUrl:n,errorHandler:b,catcherFn:V=>{const Z=V==null?void 0:V.toString(),se=["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($=>Z==null?void 0:Z.includes($));return new oA({catch:se,display:!se,log:!se&&o===!0,error:Z})}});const D=O.useMemo(()=>O.isValidElement(l)?O.cloneElement(l,{name:u,copy:p,logo:i,version:g,background:_,enableRegistration:I,enablePasswordRecover:w,oauth:M}):l,[l,u,g,p,_,i,I,w,M]),U=O.useMemo(()=>V=>{const Z=u?f.jsx(Vp,{title:u}):i,W=u?f.jsx(eA,{title:u}):s;return f.jsx(WS,{...V,name:u,copy:p,version:g,logoMain:Z,logoIcon:W,notification:N,enableThemeToggler:T,enableNotification:S,enableLocaleSwitcher:P,error:x})},[i,s,u,p,g,x,N,S,T,P]),H=sA({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o,customProvider:v});if(H===void 0)return f.jsx(f.Fragment,{});if(H.error)return f.jsx(N0,{initialConfig:t,children:f.jsx(Wp,{themeOverrides:e,children:f.jsx(tA,{})})});const G=f.jsx(Ioe,{children:f.jsx(yC,{menu:d,children:f.jsx(N0,{initialConfig:t,children:f.jsx(rA,{theme:e,layout:U,notification:GS,queryClient:j,dataProvider:h,authProvider:m,i18nProvider:H,loginPage:D,...k})})})});return(Y=M.google)!=null&&Y.clientId?f.jsx(Coe,{clientId:M.google.clientId,children:G}):G}Object.defineProperty(exports,"ArrayField",{enumerable:!0,get:()=>z.ArrayField});Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>z.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>z.BooleanField});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>z.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>z.Confirm});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>z.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>z.CustomRoutes});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>z.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>z.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>z.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>z.FieldTitle});Object.defineProperty(exports,"FilterButton",{enumerable:!0,get:()=>z.FilterButton});Object.defineProperty(exports,"FilterList",{enumerable:!0,get:()=>z.FilterList});Object.defineProperty(exports,"FilterListItem",{enumerable:!0,get:()=>z.FilterListItem});Object.defineProperty(exports,"FilterLiveSearch",{enumerable:!0,get:()=>z.FilterLiveSearch});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>z.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>z.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>z.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>z.I18nContextProvider});Object.defineProperty(exports,"ListBase",{enumerable:!0,get:()=>z.ListBase});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>z.LoadingIndicator});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>z.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>z.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>z.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>z.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>z.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>z.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>z.SaveButton});Object.defineProperty(exports,"SavedQueriesList",{enumerable:!0,get:()=>z.SavedQueriesList});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>z.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleShowLayout",{enumerable:!0,get:()=>z.SimpleShowLayout});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>z.SingleFieldList});Object.defineProperty(exports,"TabbedFormTabs",{enumerable:!0,get:()=>z.TabbedFormTabs});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>z.UrlField});Object.defineProperty(exports,"ValidationError",{enumerable:!0,get:()=>z.ValidationError});Object.defineProperty(exports,"WithListContext",{enumerable:!0,get:()=>z.WithListContext});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>z.choices});Object.defineProperty(exports,"downloadCSV",{enumerable:!0,get:()=>z.downloadCSV});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>z.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>z.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>z.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>z.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>z.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>z.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>z.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>z.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>z.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>z.useAuthProvider});Object.defineProperty(exports,"useCheckAuth",{enumerable:!0,get:()=>z.useCheckAuth});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>z.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>z.useChoicesContext});Object.defineProperty(exports,"useCreate",{enumerable:!0,get:()=>z.useCreate});Object.defineProperty(exports,"useCreateContext",{enumerable:!0,get:()=>z.useCreateContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>z.useCreateController});Object.defineProperty(exports,"useCreateSuggestionContext",{enumerable:!0,get:()=>z.useCreateSuggestionContext});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>z.useDataProvider});Object.defineProperty(exports,"useDeleteMany",{enumerable:!0,get:()=>z.useDeleteMany});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>z.useEditContext});Object.defineProperty(exports,"useEditController",{enumerable:!0,get:()=>z.useEditController});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>z.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>z.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>z.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>z.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>z.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>z.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>z.useListContext});Object.defineProperty(exports,"useListController",{enumerable:!0,get:()=>z.useListController});Object.defineProperty(exports,"useLocaleState",{enumerable:!0,get:()=>z.useLocaleState});Object.defineProperty(exports,"useLocales",{enumerable:!0,get:()=>z.useLocales});Object.defineProperty(exports,"useLogin",{enumerable:!0,get:()=>z.useLogin});Object.defineProperty(exports,"useLogout",{enumerable:!0,get:()=>z.useLogout});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>z.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>z.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>z.useRecordContext});Object.defineProperty(exports,"useReferenceArrayFieldController",{enumerable:!0,get:()=>z.useReferenceArrayFieldController});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>z.useRefresh});Object.defineProperty(exports,"useRemoveFromStore",{enumerable:!0,get:()=>z.useRemoveFromStore});Object.defineProperty(exports,"useResetStore",{enumerable:!0,get:()=>z.useResetStore});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>z.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>z.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>z.useResourceDefinitions});Object.defineProperty(exports,"useSafeSetState",{enumerable:!0,get:()=>z.useSafeSetState});Object.defineProperty(exports,"useSaveContext",{enumerable:!0,get:()=>z.useSaveContext});Object.defineProperty(exports,"useShowContext",{enumerable:!0,get:()=>z.useShowContext});Object.defineProperty(exports,"useShowController",{enumerable:!0,get:()=>z.useShowController});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>z.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>z.useSimpleFormIteratorItem});Object.defineProperty(exports,"useStore",{enumerable:!0,get:()=>z.useStore});Object.defineProperty(exports,"useStoreContext",{enumerable:!0,get:()=>z.useStoreContext});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>z.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>z.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>z.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>z.useUnselectAll});Object.defineProperty(exports,"useUpdate",{enumerable:!0,get:()=>z.useUpdate});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>z.useUpdateMany});Object.defineProperty(exports,"withLifecycleCallbacks",{enumerable:!0,get:()=>z.withLifecycleCallbacks});exports.ActionsField=joe;exports.ActionsMenu=ui;exports.ActivatePage=Q1e;exports.ActiveFiltersChips=V0;exports.AddTableRow=jp;exports.Admin=rA;exports.AnimateButton=jD;exports.AppBarStyled=AS;exports.ApplicaAdmin=bue;exports.ArrayInput=Poe;exports.AttachmentField=rx;exports.AttachmentInput=fx;exports.AuthBackground=C3;exports.AutocompleteArrayInput=tie;exports.AutocompleteInput=rie;exports.Avatar=du;exports.BooleanInput=iie;exports.Breadcrumbs=ky;exports.BulkActionsToolbar=px;exports.BulkDeleteWithConfirmButton=HC;exports.BulkFloatingActionsToolbar=kie;exports.Button=os;exports.CardForm=UC;exports.ChangePasswordButton=jS;exports.ChangePasswordForm=Ep;exports.CircularWithLabel=_z;exports.CircularWithPath=Dz;exports.CoverField=ix;exports.Create=Fse;exports.CreateButton=qC;exports.CreateButtonClasses=Du;exports.CreateInDialogButton=Hre;exports.Datagrid=mx;exports.DateAgoField=ax;exports.DateField=Noe;exports.DateInput=lie;exports.DateTimeInput=uie;exports.DeleteWithConfirmButton=is;exports.Dot=l2;exports.Drawer=SS;exports.DrawerHeader=hw;exports.DrawerHeaderStyled=fw;exports.DrawerToggle=IS;exports.Edit=Nse;exports.EditInDialogButton=Yre;exports.EmailField=Voe;exports.Empty=f1;exports.EmptyClasses=si;exports.Error=ep;exports.Field=nw;exports.FileField=lx;exports.FileInput=fie;exports.FilterSidebar=qc;exports.FilterSidebarButton=ise;exports.FilterSidebarContext=wp;exports.Footer=Np;exports.FormHeader=zse;exports.FunctionField=$0;exports.GenericErrorPage=tA;exports.GoogleLoginButton=QC;exports.Header=OS;exports.HeaderButton=ES;exports.HeaderIconButton=E1e;exports.HeaderNotification=PS;exports.HeaderProfile=kS;exports.HeaderSpacer=DS;exports.HeaderToggleButton=Ra;exports.HorizontalBar=FS;exports.IconButton=ba;exports.ImageAttachmentField=cx;exports.ImageAttachmentInput=pie;exports.ImageField=ox;exports.ImageInput=mie;exports.ImpersonateUserButton=Eoe;exports.LabeledArrayInput=nx;exports.LabeledInput=on;exports.Layout=WS;exports.LayoutContent=dw;exports.LayoutProvider=lw;exports.LayoutWrapper=zS;exports.LinearWithIcon=Fz;exports.LinearWithLabel=Lz;exports.List=vse;exports.ListItem=Z1e;exports.ListTabsToolbar=z0;exports.ListToolbar=Ap;exports.ListViewProvider=Sx;exports.Loadable=L1e;exports.Loader=HS;exports.LoadingButton=Yy;exports.LocalStorage=kC;exports.LocaleButton=TS;exports.LocalizedTextField=Uoe;exports.LocalizedTextInput=bie;exports.LoginPage=nA;exports.Logo=pw;exports.LogoutButton=RS;exports.LongForm=zt;exports.MainCard=Nn;exports.MainIcon=Vp;exports.MenuConfigProvider=yC;exports.MenuPopover=Xy;exports.NavCollapse=Pl;exports.NavGroup=BS;exports.NavItem=Ol;exports.NavList=NS;exports.NavMenu=LS;exports.Navigation=$S;exports.Notification=GS;exports.NotificationList=xse;exports.NumberInput=xie;exports.OnboardingActionType=ra;exports.OnboardingContext=zp;exports.OnboardingModes=Wl;exports.OnboardingProvider=W1e;exports.OnboardingTip=q1e;exports.Pagination=k3;exports.PaginationActions=xp;exports.PopupTransition=kz;exports.RadioButtonGroupInput=Sie;exports.ReadonlyField=Yoe;exports.RecordInput=Aie;exports.RecoverPage=J1e;exports.ReferenceArrayInput=Eie;exports.ReferenceInput=Tie;exports.ReferenceLookupInput=Sse;exports.ReferenceManyField=dx;exports.ReferenceManyInput=Ese;exports.ReferenceManyLookupInput=Ase;exports.RegisterPage=ece;exports.RemoveSavedQueryDialog=Cx;exports.ResponsiveSection=_S;exports.SaveFiltersButton=bx;exports.SaveFiltersDialog=yx;exports.SavedFiltersList=xx;exports.ScrollTop=JS;exports.ScrollX=Y1e;exports.SearchInput=Cp;exports.SelectArrayInput=Ise;exports.SelectInput=Pse;exports.SessionStorage=DC;exports.ShadowBox=K1e;exports.Show=oae;exports.Sidebar=xr;exports.SimpleBar=wS;exports.SimpleForm=yp;exports.SimpleFormIterator=sae;exports.SimpleList=wse;exports.SizeField=Xoe;exports.SmallIcon=eA;exports.SmartTextInput=jse;exports.StopImpersonateButton=MS;exports.StyledArrow=Ky;exports.TabbedForm=Pp;exports.TableCreateButton=Mp;exports.TableFormIterator=D3;exports.TableFormIteratorContext=kp;exports.TableFormIteratorItem=ow;exports.TableFormIteratorItemContext=Rp;exports.TextField=ux;exports.TextInput=Sr;exports.ThemeColor=$p;exports.ThemeContext=pp;exports.ThemeCustomizationProvider=Wp;exports.ThemeProvider=N0;exports.ThemeToggler=VS;exports.TimeInput=_se;exports.Toolbar=gi;exports.Tooltip=b3;exports.TopToolbar=US;exports.Transitions=ci;exports.WizardForm=sw;exports.createI18nProvider=iA;exports.createJsonI18nProvider=mue;exports.getLocalizedValue=up;exports.getPosition=Zy;exports.getThemeColor=hn;exports.getThemeShadow=ya;exports.localizedValueHasAllLocales=ku;exports.localizedValueHasAtLeastOneLocale=_C;exports.onboardingModesSchema=YS;exports.onboardingTopicSchema=qS;exports.parseTime=BC;exports.useBreadcrumbs=bC;exports.useDialogState=np;exports.useGetChipValue=Sp;exports.useGetLocalizedValue=bre;exports.useI18nLanguages=vue;exports.useI18nProvider=sA;exports.useIsEnabledSidebarFilter=vx;exports.useLayoutContext=_p;exports.useLayoutDispatch=Sae;exports.useLayoutDrawerState=as;exports.useLayoutLogoState=uw;exports.useLayoutMediaState=ir;exports.useLayoutNotificationsState=L3;exports.useLayoutState=Pa;exports.useLayoutThemeState=Aae;exports.useListViewContext=_3;exports.useLocalStorage=dp;exports.useLocalizedValue=yre;exports.useMemoizedObject=$C;exports.useMenu=tp;exports.useMenuConfig=Vl;exports.useMenuContext=I3;exports.useOnboardingDataProvider=KS;exports.useOnboardingTip=QS;exports.usePopoverState=Ta;exports.useRefDimensions=Cre;exports.useResourceDefaultValues=Lse;exports.useResourceTitle=fp;exports.useRestartOnboarding=H1e;exports.useSessionStorage=B0;exports.useSx=$r;exports.useSystemTheme=VC;exports.useTableFormIterator=rw;exports.useTableFormIteratorItem=tw;exports.useThemeConfig=jn;exports.useThemeContext=hp;exports.useUuid=zC;exports.useWizardFormContext=F3;exports.uuid=_0;exports.walkChildren=R3;exports.withLayoutProvider=cw;
626
626
  //# sourceMappingURL=react-admin.cjs.js.map