@zydon/common 1.0.26 → 1.0.27
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.
- package/dist/App.d.ts.map +1 -1
- package/dist/components/MaskedInput/index.d.ts +37 -0
- package/dist/components/MaskedInput/index.d.ts.map +1 -0
- package/dist/components/MaskedInput/props.d.ts +16 -0
- package/dist/components/MaskedInput/props.d.ts.map +1 -0
- package/dist/components/hook-form/MaskedInput/index.d.ts +5 -0
- package/dist/components/hook-form/MaskedInput/index.d.ts.map +1 -0
- package/dist/components/hook-form/MaskedInput/props.d.ts +14 -0
- package/dist/components/hook-form/MaskedInput/props.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{features-3f566660.js → features-0c4addca.js} +1 -1
- package/dist/{index-5d59cf79.js → index-fd078379.js} +12439 -10003
- package/dist/index.js +61 -59
- package/dist/index.umd.cjs +47 -47
- package/package.json +2 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(B,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-hook-form"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-hook-form","react-router-dom"],m):(B=typeof globalThis<"u"?globalThis:B||self,m(B.common={},B.React,B.material,B.react,B.xDatePickersPro,B.xDataGridPremium,B.require$$1,B.emStyled,B.reactHookForm,B.reactRouterDom))})(this,function(B,m,_,Cl,Qi,Rn,vd,Bb,Tt,_r){"use strict";function Wb(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const be=Wb(m),yd={duration:2,ease:[.43,.13,.23,.96]},Vb={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:yd}},Hb=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},Me=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},Ae=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},Ji=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:Me},exit:{opacity:0,transition:Ae}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Me({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:Ae({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:Me({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:Ae({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:Me({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:Ae({durationOut:n,easeOut:o})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:Me({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:Ae({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Me({durationIn:r,easeIn:i})},exit:{opacity:1,transition:Ae({durationOut:n,easeOut:o})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:Me({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:Ae({durationOut:n,easeOut:o})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:Me({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:Ae({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:Me({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:Ae({durationOut:n,easeOut:o})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:Me({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:Ae({durationOut:n,easeOut:o})}}}},Ub=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:Me({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:Ae({durationOut:n,easeOut:o})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:Me({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:Ae({durationOut:n,easeOut:o})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:Me({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:Ae({durationOut:n,easeOut:o})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:Me({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:Ae({durationOut:n,easeOut:o})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:Me({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:Ae({durationOut:n,easeOut:o})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:Me({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:Me({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:Me({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:Me({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:Me({durationIn:r,easeIn:i})}}}},Yb=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:Me({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:Ae({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:Me({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:Ae({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:Ae({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:Ae({durationOut:r,easeOut:i})}}}},Gb=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:Me({durationIn:r,easeIn:i})},exit:{y:t,transition:Ae({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Me({durationIn:r,easeIn:i})},exit:{y:-t,transition:Ae({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Me({durationIn:r,easeIn:i})},exit:{x:-t,transition:Ae({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Me({durationIn:r,easeIn:i})},exit:{x:t,transition:Ae({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Me({durationIn:r,easeIn:i})},exit:{y:0,transition:Ae({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Me({durationIn:r,easeIn:i})},exit:{y:0,transition:Ae({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Me({durationIn:r,easeIn:i})},exit:{x:0,transition:Ae({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Me({durationIn:r,easeIn:i})},exit:{x:0,transition:Ae({durationOut:n,easeOut:o})}}}},qb=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:Me({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:Ae({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:Me({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:Ae({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:Me({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:Me({durationIn:t,easeIn:n})}}}},Kb=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:Me({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...Me({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:Ae({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:Me({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:Ae({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Me({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:Ae({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Me({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:Ae({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},Xb=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:Me({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:Ae({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:Ae({durationOut:r,easeOut:i})}}}},Zb=e=>({hover:{scale:e||1.1}}),fa=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},Qb=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},Jb=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},e2=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=o=>`linear-gradient(${o}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}};var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tl={exports:{}},to={};/**
|
|
1
|
+
(function(z,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-hook-form"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-hook-form","react-router-dom"],g):(z=typeof globalThis<"u"?globalThis:z||self,g(z.common={},z.React,z.material,z.react,z.xDatePickersPro,z.xDataGridPremium,z.require$$1,z.emStyled,z.reactHookForm,z.reactRouterDom))})(this,function(z,g,P,Nl,co,Xn,Rd,m2,yt,Fr){"use strict";function v2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=v2(g),Bd={duration:2,ease:[.43,.13,.23,.96]},y2={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Bd}},b2=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},Pe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},$e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},fo=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:Pe},exit:{opacity:0,transition:$e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}}}},x2=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:Pe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:Pe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:Pe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:Pe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:Pe({durationIn:r,easeIn:i})}}}},w2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}}}},C2=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}}}},S2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}}}},E2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...Pe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},T2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:Pe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}}}},_2=e=>({hover:{scale:e||1.1}}),Ea=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},O2=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},k2=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},M2=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=o=>`linear-gradient(${o}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}};var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zl={exports:{}},po={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Nd;function P2(){if(Nd)return po;Nd=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,u,l){var c,f={},d=null,h=null;l!==void 0&&(d=""+l),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(h=u.ref);for(c in u)n.call(u,c)&&!o.hasOwnProperty(c)&&(f[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)f[c]===void 0&&(f[c]=u[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return po.Fragment=r,po.jsx=a,po.jsxs=a,po}var go={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,44 +14,44 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+ge+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var zd;function A2(){return zd||(zd=1,process.env.NODE_ENV!=="production"&&function(){var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function v(S){if(S===null||typeof S!="object")return null;var V=m&&S[m]||S[p];return typeof V=="function"?V:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(S){{for(var V=arguments.length,J=new Array(V>1?V-1:0),Te=1;Te<V;Te++)J[Te-1]=arguments[Te];C("error",S,J)}}function C(S,V,J){{var Te=x.ReactDebugCurrentFrame,qe=Te.getStackAddendum();qe!==""&&(V+="%s",J=J.concat([qe]));var it=J.map(function(ze){return String(ze)});it.unshift("Warning: "+V),Function.prototype.apply.call(console[S],console,it)}}var E=!1,w=!1,_=!1,O=!1,k=!1,D;D=Symbol.for("react.module.reference");function L(S){return!!(typeof S=="string"||typeof S=="function"||S===n||S===o||k||S===i||S===l||S===c||O||S===h||E||w||_||typeof S=="object"&&S!==null&&(S.$$typeof===d||S.$$typeof===f||S.$$typeof===a||S.$$typeof===s||S.$$typeof===u||S.$$typeof===D||S.getModuleId!==void 0))}function re(S,V,J){var Te=S.displayName;if(Te)return Te;var qe=V.displayName||V.name||"";return qe!==""?J+"("+qe+")":J}function pe(S){return S.displayName||"Context"}function se(S){if(S==null)return null;if(typeof S.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var V=S;return pe(V)+".Consumer";case a:var J=S;return pe(J._context)+".Provider";case u:return re(S,S.render,"ForwardRef");case f:var Te=S.displayName||null;return Te!==null?Te:se(S.type)||"Memo";case d:{var qe=S,it=qe._payload,ze=qe._init;try{return se(ze(it))}catch{return null}}}return null}var q=Object.assign,G=0,me,Ee,Ie,Oe,$,j,X;function ee(){}ee.__reactDisabledLog=!0;function H(){{if(G===0){me=console.log,Ee=console.info,Ie=console.warn,Oe=console.error,$=console.group,j=console.groupCollapsed,X=console.groupEnd;var S={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}G++}}function fe(){{if(G--,G===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},S,{value:me}),info:q({},S,{value:Ee}),warn:q({},S,{value:Ie}),error:q({},S,{value:Oe}),group:q({},S,{value:$}),groupCollapsed:q({},S,{value:j}),groupEnd:q({},S,{value:X})})}G<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=x.ReactCurrentDispatcher,ge;function Z(S,V,J){{if(ge===void 0)try{throw Error()}catch(qe){var Te=qe.stack.trim().match(/\n( *(at )?)/);ge=Te&&Te[1]||""}return`
|
|
18
|
+
`+ge+S}}var Q=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function R(S,V){if(!S||Q)return"";{var J=ne.get(S);if(J!==void 0)return J}var Te;Q=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var it;it=ue.current,ue.current=null,H();try{if(V){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(Qr){Te=Qr}Reflect.construct(S,[],ze)}else{try{ze.call()}catch(Qr){Te=Qr}S.call(ze.prototype)}}else{try{throw Error()}catch(Qr){Te=Qr}S()}}catch(Qr){if(Qr&&Te&&typeof Qr.stack=="string"){for(var Fe=Qr.stack.split(`
|
|
19
|
+
`),Wt=Te.stack.split(`
|
|
20
|
+
`),Ot=Fe.length-1,Pt=Wt.length-1;Ot>=1&&Pt>=0&&Fe[Ot]!==Wt[Pt];)Pt--;for(;Ot>=1&&Pt>=0;Ot--,Pt--)if(Fe[Ot]!==Wt[Pt]){if(Ot!==1||Pt!==1)do if(Ot--,Pt--,Pt<0||Fe[Ot]!==Wt[Pt]){var hr=`
|
|
21
|
+
`+Fe[Ot].replace(" at new "," at ");return S.displayName&&hr.includes("<anonymous>")&&(hr=hr.replace("<anonymous>",S.displayName)),typeof S=="function"&&ne.set(S,hr),hr}while(Ot>=1&&Pt>=0);break}}}finally{Q=!1,ue.current=it,fe(),Error.prepareStackTrace=qe}var uo=S?S.displayName||S.name:"",g2=uo?Z(uo):"";return typeof S=="function"&&ne.set(S,g2),g2}function Be(S,V,J){return R(S,!1)}function le(S){var V=S.prototype;return!!(V&&V.isReactComponent)}function ht(S,V,J){if(S==null)return"";if(typeof S=="function")return R(S,le(S));if(typeof S=="string")return Z(S);switch(S){case l:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return Be(S.render);case f:return ht(S.type,V,J);case d:{var Te=S,qe=Te._payload,it=Te._init;try{return ht(it(qe),V,J)}catch{}}}return""}var Zt=Object.prototype.hasOwnProperty,Vt={},Kr=x.ReactDebugCurrentFrame;function wr(S){if(S){var V=S._owner,J=ht(S.type,S._source,V?V.type:null);Kr.setExtraStackFrame(J)}else Kr.setExtraStackFrame(null)}function Cr(S,V,J,Te,qe){{var it=Function.call.bind(Zt);for(var ze in S)if(it(S,ze)){var Fe=void 0;try{if(typeof S[ze]!="function"){var Wt=Error((Te||"React class")+": "+J+" type `"+ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Wt.name="Invariant Violation",Wt}Fe=S[ze](V,ze,Te,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Fe=Ot}Fe&&!(Fe instanceof Error)&&(wr(qe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",J,ze,typeof Fe),wr(null)),Fe instanceof Error&&!(Fe.message in Vt)&&(Vt[Fe.message]=!0,wr(qe),b("Failed %s type: %s",J,Fe.message),wr(null))}}}var Ca=Array.isArray;function bn(S){return Ca(S)}function qn(S){{var V=typeof Symbol=="function"&&Symbol.toStringTag,J=V&&S[Symbol.toStringTag]||S.constructor.name||"Object";return J}}function K(S){try{return ve(S),!1}catch{return!0}}function ve(S){return""+S}function ct(S){if(K(S))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qn(S)),ve(S)}var I=x.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},B,N,Ce;Ce={};function ke(S){if(Zt.call(S,"ref")){var V=Object.getOwnPropertyDescriptor(S,"ref").get;if(V&&V.isReactWarning)return!1}return S.ref!==void 0}function Ne(S){if(Zt.call(S,"key")){var V=Object.getOwnPropertyDescriptor(S,"key").get;if(V&&V.isReactWarning)return!1}return S.key!==void 0}function A(S,V){if(typeof S.ref=="string"&&I.current&&V&&I.current.stateNode!==V){var J=se(I.current.type);Ce[J]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(I.current.type),S.ref),Ce[J]=!0)}}function F(S,V){{var J=function(){B||(B=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};J.isReactWarning=!0,Object.defineProperty(S,"key",{get:J,configurable:!0})}}function ce(S,V){{var J=function(){N||(N=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};J.isReactWarning=!0,Object.defineProperty(S,"ref",{get:J,configurable:!0})}}var oe=function(S,V,J,Te,qe,it,ze){var Fe={$$typeof:t,type:S,key:V,ref:J,props:ze,_owner:it};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function ie(S,V,J,Te,qe){{var it,ze={},Fe=null,Wt=null;J!==void 0&&(ct(J),Fe=""+J),Ne(V)&&(ct(V.key),Fe=""+V.key),ke(V)&&(Wt=V.ref,A(V,qe));for(it in V)Zt.call(V,it)&&!M.hasOwnProperty(it)&&(ze[it]=V[it]);if(S&&S.defaultProps){var Ot=S.defaultProps;for(it in Ot)ze[it]===void 0&&(ze[it]=Ot[it])}if(Fe||Wt){var Pt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&F(ze,Pt),Wt&&ce(ze,Pt)}return oe(S,Fe,Wt,qe,Te,I.current,ze)}}var Me=x.ReactCurrentOwner,st=x.ReactDebugCurrentFrame;function et(S){if(S){var V=S._owner,J=ht(S.type,S._source,V?V.type:null);st.setExtraStackFrame(J)}else st.setExtraStackFrame(null)}var tt;tt=!1;function _t(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function vt(){{if(Me.current){var S=se(Me.current.type);if(S)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+S+"`."}return""}}function Ft(S){{if(S!==void 0){var V=S.fileName.replace(/^.*[\\\/]/,""),J=S.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+
|
|
25
|
+
Check your code at `+V+":"+J+"."}return""}}var Xr={};function Zr(S){{var V=vt();if(!V){var J=typeof S=="string"?S:S.displayName||S.name;J&&(V=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+J+">.")}return W}}function Fn(C,W){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var J=Hr(W);if(Vr[J])return;Vr[J]=!0;var Te="";C&&C._owner&&C._owner!==Pe.current&&(Te=" It was passed a child from "+se(C._owner.type)+"."),Qe(C),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,Te),Qe(null)}}function ua(C,W){{if(typeof C!="object")return;if(fn(C))for(var J=0;J<C.length;J++){var Te=C[J];St(Te)&&Fn(Te,W)}else if(St(C))C._store&&(C._store.validated=!0);else if(C){var Ye=v(C);if(typeof Ye=="function"&&Ye!==C.entries)for(var tt=Ye.call(C),Ne;!(Ne=tt.next()).done;)St(Ne.value)&&Fn(Ne.value,W)}}}function Sl(C){{var W=C.type;if(W==null||typeof W=="string")return;var J;if(typeof W=="function")J=W.propTypes;else if(typeof W=="object"&&(W.$$typeof===c||W.$$typeof===f))J=W.propTypes;else return;if(J){var Te=se(W);mr(J,C.props,"prop",Te,C)}else if(W.PropTypes!==void 0&&!Je){Je=!0;var Ye=se(W);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ye||"Unknown")}typeof W.getDefaultProps=="function"&&!W.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _K(C){{for(var W=Object.keys(C.props),J=0;J<W.length;J++){var Te=W[J];if(Te!=="children"&&Te!=="key"){Qe(C),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),Qe(null);break}}C.ref!==null&&(Qe(C),b("Invalid attribute `ref` supplied to `React.Fragment`."),Qe(null))}}function Nb(C,W,J,Te,Ye,tt){{var Ne=F(C);if(!Ne){var De="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(De+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var zt=kt(Ye);zt?De+=zt:De+=pt();var Ct;C===null?Ct="null":fn(C)?Ct="array":C!==void 0&&C.$$typeof===t?(Ct="<"+(se(C.type)||"Unknown")+" />",De=" Did you accidentally export a JSX literal instead of a component?"):Ct=typeof C,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ct,De)}var Pt=ie(C,W,J,Ye,tt);if(Pt==null)return Pt;if(Ne){var sr=W.children;if(sr!==void 0)if(Te)if(fn(sr)){for(var Zi=0;Zi<sr.length;Zi++)ua(sr[Zi],C);Object.freeze&&Object.freeze(sr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ua(sr,C)}return C===n?_K(Pt):Sl(Pt),Pt}}function $K(C,W,J){return Nb(C,W,J,!0)}function AK(C,W,J){return Nb(C,W,J,!1)}var kK=AK,DK=$K;ro.Fragment=n,ro.jsx=kK,ro.jsxs=DK}()),ro}process.env.NODE_ENV==="production"?Tl.exports=t2():Tl.exports=r2();var y=Tl.exports;const wd=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),da=m.createContext({}),ha=m.createContext(null),pa=typeof document<"u",Ol=pa?m.useLayoutEffect:m.useEffect,El=m.createContext({strict:!1});function n2(e,t,r,n){const{visualElement:i}=m.useContext(da),o=m.useContext(El),a=m.useContext(ha),s=m.useContext(wd).reducedMotion,c=m.useRef();n=n||o.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const l=c.current;m.useInsertionEffect(()=>{l&&l.update(r,a)});const u=m.useRef(!!window.HandoffAppearAnimations);return Ol(()=>{l&&(l.render(),u.current&&l.animationState&&l.animationState.animateChanges())}),m.useEffect(()=>{l&&(l.updateFeatures(),!u.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1)}),l}function Nn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function i2(e,t,r){return m.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Nn(r)&&(r.current=n))},[t])}function no(e){return typeof e=="string"||Array.isArray(e)}function ga(e){return typeof e=="object"&&typeof e.start=="function"}const Pl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ml=["initial",...Pl];function ma(e){return ga(e.animate)||Ml.some(t=>no(e[t]))}function Sd(e){return!!(ma(e)||e.variants)}function o2(e,t){if(ma(e)){const{initial:r,animate:n}=e;return{initial:r===!1||no(r)?r:void 0,animate:no(n)?n:void 0}}return e.inherit!==!1?t:{}}function a2(e){const{initial:t,animate:r}=o2(e,m.useContext(da));return m.useMemo(()=>({initial:t,animate:r}),[Cd(t),Cd(r)])}function Cd(e){return Array.isArray(e)?e.join(" "):e}const Td={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"]},io={};for(const e in Td)io[e]={isEnabled:t=>Td[e].some(r=>!!t[r])};function _l(e){for(const t in e)io[t]={...io[t],...e[t]}}const $l=m.createContext({}),Od=m.createContext({}),s2=Symbol.for("motionComponentSymbol");function l2({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&_l(e);function o(s,c){let l;const u={...m.useContext(wd),...s,layoutId:c2(s)},{isStatic:f}=u,d=a2(s),h=n(s,f);if(!f&&pa){d.visualElement=n2(i,h,u,t);const g=m.useContext(Od),p=m.useContext(El).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,p,e,g))}return be.createElement(da.Provider,{value:d},l&&d.visualElement?be.createElement(l,{visualElement:d.visualElement,...u}):null,r(i,s,i2(h,d.visualElement,c),h,f,d.visualElement))}const a=m.forwardRef(o);return a[s2]=i,a}function c2({layoutId:e}){const t=m.useContext($l).id;return t&&e!==void 0?t+"-"+e:e}function u2(e){function t(n,i={}){return l2(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const f2=["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 Al(e){return typeof e!="string"||e.includes("-")?!1:!!(f2.indexOf(e)>-1||/[A-Z]/.test(e))}const va={};function d2(e){Object.assign(va,e)}const oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hn=new Set(oo);function Ed(e,{layout:t,layoutId:r}){return hn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!va[e]||e==="opacity")}const Bt=e=>!!(e&&e.getVelocity),h2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},p2=oo.length;function g2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<p2;a++){const s=oo[a];if(e[s]!==void 0){const c=h2[s]||s;o+=`${c}(${e[s]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const Pd=e=>t=>typeof t=="string"&&t.startsWith(e),Md=Pd("--"),kl=Pd("var(--"),m2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,v2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Yr=(e,t,r)=>Math.min(Math.max(r,e),t),pn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ao={...pn,transform:e=>Yr(0,1,e)},ya={...pn,default:1},so=e=>Math.round(e*1e5)/1e5,ba=/(-)?([\d]*\.?[\d])+/g,_d=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,y2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function lo(e){return typeof e=="string"}const co=e=>({test:t=>lo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gr=co("deg"),vr=co("%"),xe=co("px"),b2=co("vh"),x2=co("vw"),$d={...vr,parse:e=>vr.parse(e)/100,transform:e=>vr.transform(e*100)},Ad={...pn,transform:Math.round},kd={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,radius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,size:xe,top:xe,right:xe,bottom:xe,left:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:ya,scaleX:ya,scaleY:ya,scaleZ:ya,skew:Gr,skewX:Gr,skewY:Gr,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ao,originX:$d,originY:$d,originZ:xe,zIndex:Ad,fillOpacity:ao,strokeOpacity:ao,numOctaves:Ad};function Dl(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let c=!1,l=!1,u=!0;for(const f in t){const d=t[f];if(Md(f)){o[f]=d;continue}const h=kd[f],g=v2(d,h);if(hn.has(f)){if(c=!0,a[f]=g,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(l=!0,s[f]=g):i[f]=g}if(t.transform||(c||n?i.transform=g2(e.transform,r,u,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Il=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dd(e,t,r){for(const n in t)!Bt(t[n])&&!Ed(n,r)&&(e[n]=t[n])}function w2({transformTemplate:e},t,r){return m.useMemo(()=>{const n=Il();return Dl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function S2(e,t,r){const n=e.style||{},i={};return Dd(i,n,e),Object.assign(i,w2(e,t,r)),e.transformValues?e.transformValues(i):i}function C2(e,t,r){const n={},i=S2(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const T2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function xa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||T2.has(e)}let Id=e=>!xa(e);function O2(e){e&&(Id=t=>t.startsWith("on")?!xa(t):e(t))}try{O2(require("@emotion/is-prop-valid").default)}catch{}function E2(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(Id(i)||r===!0&&xa(i)||!t&&!xa(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function jd(e,t,r){return typeof e=="string"?e:xe.transform(t+r*e)}function P2(e,t,r){const n=jd(t,e.x,e.width),i=jd(r,e.y,e.height);return`${n} ${i}`}const M2={offset:"stroke-dashoffset",array:"stroke-dasharray"},_2={offset:"strokeDashoffset",array:"strokeDasharray"};function $2(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?M2:_2;e[o.offset]=xe.transform(-n);const a=xe.transform(t),s=xe.transform(r);e[o.array]=`${a} ${s}`}function jl(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...l},u,f,d){if(Dl(e,l,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=P2(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&$2(h,a,s,c,!1)}const Ld=()=>({...Il(),attrs:{}}),Ll=e=>typeof e=="string"&&e.toLowerCase()==="svg";function A2(e,t,r,n){const i=m.useMemo(()=>{const o=Ld();return jl(o,t,{enableHardwareAcceleration:!1},Ll(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Dd(o,e.style,e),i.style={...o,...i.style}}return i}function k2(e=!1){return(r,n,i,{latestValues:o},a)=>{const c=(Al(r)?A2:C2)(n,o,a,r),u={...E2(n,typeof r=="string",e),...c,ref:i},{children:f}=n,d=m.useMemo(()=>Bt(f)?f.get():f,[f]);return m.createElement(r,{...u,children:d})}}const Fl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Fd(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const Rd=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 Nd(e,t,r,n){Fd(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Rd.has(i)?i:Fl(i),t.attrs[i])}function Rl(e,t){const{style:r}=e,n={};for(const i in r)(Bt(r[i])||t.style&&Bt(t.style[i])||Ed(i,e))&&(n[i]=r[i]);return n}function zd(e,t){const r=Rl(e,t);for(const n in e)if(Bt(e[n])||Bt(t[n])){const i=oo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Nl(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Bd(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const wa=e=>Array.isArray(e),D2=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),I2=e=>wa(e)?e[e.length-1]||0:e;function Sa(e){const t=Bt(e)?e.get():e;return D2(t)?t.toValue():t}function j2({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:L2(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const Wd=e=>(t,r)=>{const n=m.useContext(da),i=m.useContext(ha),o=()=>j2(e,t,n,i);return r?o():Bd(o)};function L2(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=Sa(o[d]);let{initial:a,animate:s}=e;const c=ma(e),l=Sd(e);t&&l&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;const f=u?s:a;return f&&typeof f!="boolean"&&!ga(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=Nl(e,h);if(!g)return;const{transitionEnd:p,transition:v,...x}=g;for(const b in x){let S=x[b];if(Array.isArray(S)){const O=u?S.length-1:0;S=S[O]}S!==null&&(i[b]=S)}for(const b in p)i[b]=p[b]}),i}const gt=e=>e;class Vd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function F2(e){let t=new Vd,r=new Vd,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(c,l=!1,u=!1)=>{const f=u&&i,d=f?t:r;return l&&a.add(c),d.add(c)&&f&&i&&(n=t.order.length),c},cancel:c=>{r.remove(c),a.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const u=t.order[l];u(c),a.has(u)&&(s.schedule(u),e())}i=!1,o&&(o=!1,s.process(c))}};return s}const Ca=["prepare","read","update","preRender","render","postRender"],R2=40;function N2(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ca.reduce((f,d)=>(f[d]=F2(()=>r=!0),f),{}),a=f=>o[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,R2),1),i.timestamp=f,i.isProcessing=!0,Ca.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},c=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:Ca.reduce((f,d)=>{const h=o[d];return f[d]=(g,p=!1,v=!1)=>(r||c(),h.schedule(g,p,v)),f},{}),cancel:f=>Ca.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:rt,cancel:$r,state:_t,steps:zl}=N2(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),z2={useVisualState:Wd({scrapeMotionValuesFromProps:zd,createRenderState:Ld,onMount:(e,t,{renderState:r,latestValues:n})=>{rt.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),rt.render(()=>{jl(r,n,{enableHardwareAcceleration:!1},Ll(t.tagName),e.transformTemplate),Nd(t,r)})}})},B2={useVisualState:Wd({scrapeMotionValuesFromProps:Rl,createRenderState:Il})};function W2(e,{forwardMotionProps:t=!1},r,n){return{...Al(e)?z2:B2,preloadedFeatures:r,useRender:k2(t),createVisualElement:n,Component:e}}function Ar(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Hd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ta(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const V2=e=>t=>Hd(t)&&e(t,Ta(t));function kr(e,t,r,n){return Ar(e,t,V2(r),n)}const H2=(e,t)=>r=>t(e(r)),qr=(...e)=>e.reduce(H2);function Ud(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Yd=Ud("dragHorizontal"),Gd=Ud("dragVertical");function qd(e){let t=!1;if(e==="y")t=Gd();else if(e==="x")t=Yd();else{const r=Yd(),n=Gd();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Kd(){const e=qd(!0);return e?(e(),!1):!0}class Kr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Xd(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||Kd())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&rt.update(()=>s[n](o,a))};return kr(e.current,r,i,{passive:!e.getProps()[n]})}class U2 extends Kr{mount(){this.unmount=qr(Xd(this.node,!0),Xd(this.node,!1))}unmount(){}}class Y2 extends Kr{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=qr(Ar(this.node.current,"focus",()=>this.onFocus()),Ar(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zd=(e,t)=>t?e===t?!0:Zd(e,t.parentElement):!1;function Bl(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ta(r))}class G2 extends Kr{constructor(){super(...arguments),this.removeStartListeners=gt,this.removeEndListeners=gt,this.removeAccessibleListeners=gt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=kr(window,"pointerup",(s,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();rt.update(()=>{Zd(this.node.current,s.target)?l&&l(s,c):u&&u(s,c)})},{passive:!(n.onTap||n.onPointerUp)}),a=kr(window,"pointercancel",(s,c)=>this.cancelPress(s,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=qr(o,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Bl("up",(c,l)=>{const{onTap:u}=this.node.getProps();u&&rt.update(()=>u(c,l))})};this.removeEndListeners(),this.removeEndListeners=Ar(this.node.current,"keyup",a),Bl("down",(s,c)=>{this.startPress(s,c)})},r=Ar(this.node.current,"keydown",t),n=()=>{this.isPressing&&Bl("cancel",(o,a)=>this.cancelPress(o,a))},i=Ar(this.node.current,"blur",n);this.removeAccessibleListeners=qr(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&rt.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Kd()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&rt.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=kr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Ar(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=qr(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Wl=new WeakMap,Vl=new WeakMap,q2=e=>{const t=Wl.get(e.target);t&&t(e)},K2=e=>{e.forEach(q2)};function X2({root:e,...t}){const r=e||document;Vl.has(r)||Vl.set(r,{});const n=Vl.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(K2,{root:e,...t})),n[i]}function Z2(e,t,r){const n=X2(t);return Wl.set(e,r),n.observe(e),()=>{Wl.delete(e),n.unobserve(e)}}const Q2={some:0,all:1};class J2 extends Kr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Q2[i]},s=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return Z2(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(ex(t,r))&&this.startObserver()}unmount(){}}function ex({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const tx={inView:{Feature:J2},tap:{Feature:G2},focus:{Feature:Y2},hover:{Feature:U2}};function Qd(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function rx(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function nx(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Oa(e,t,r){const n=e.getProps();return Nl(n,t,r!==void 0?r:n.custom,rx(e),nx(e))}const ix="data-"+Fl("framerAppearId");let uo=gt,lr=gt;process.env.NODE_ENV!=="production"&&(uo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},lr=(e,t)=>{if(!e)throw new Error(t)});const Xr=e=>e*1e3,Dr=e=>e/1e3,ox={current:!1},Jd=e=>Array.isArray(e)&&typeof e[0]=="number";function eh(e){return!!(!e||typeof e=="string"&&th[e]||Jd(e)||Array.isArray(e)&&e.every(eh))}const fo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,th={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fo([0,.65,.55,1]),circOut:fo([.55,0,1,.45]),backIn:fo([.31,.01,.66,-.59]),backOut:fo([.33,1.53,.69,.99])};function rh(e){if(e)return Jd(e)?fo(e):Array.isArray(e)?e.map(rh):th[e]}function ax(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:c}={}){const l={[t]:r};c&&(l.offset=c);const u=rh(s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function sx(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const nh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,lx=1e-7,cx=12;function ux(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=nh(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>lx&&++s<cx);return a}function ho(e,t,r,n){if(e===t&&r===n)return gt;const i=o=>ux(o,0,1,e,r);return o=>o===0||o===1?o:nh(i(o),t,n)}const fx=ho(.42,0,1,1),dx=ho(0,0,.58,1),ih=ho(.42,0,.58,1),hx=e=>Array.isArray(e)&&typeof e[0]!="number",oh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ah=e=>t=>1-e(1-t),sh=e=>1-Math.sin(Math.acos(e)),Hl=ah(sh),px=oh(Hl),lh=ho(.33,1.53,.69,.99),Ul=ah(lh),gx=oh(Ul),ch={linear:gt,easeIn:fx,easeInOut:ih,easeOut:dx,circIn:sh,circInOut:px,circOut:Hl,backIn:Ul,backInOut:gx,backOut:lh,anticipate:e=>(e*=2)<1?.5*Ul(e):.5*(2-Math.pow(2,-10*(e-1)))},uh=e=>{if(Array.isArray(e)){lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return ho(t,r,n,i)}else if(typeof e=="string")return lr(ch[e]!==void 0,`Invalid easing type '${e}'`),ch[e];return e},Yl=(e,t)=>r=>!!(lo(r)&&y2.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),fh=(e,t,r)=>n=>{if(!lo(n))return n;const[i,o,a,s]=n.match(ba);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},mx=e=>Yr(0,255,e),Gl={...pn,transform:e=>Math.round(mx(e))},gn={test:Yl("rgb","red"),parse:fh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Gl.transform(e)+", "+Gl.transform(t)+", "+Gl.transform(r)+", "+so(ao.transform(n))+")"};function vx(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const ql={test:Yl("#"),parse:vx,transform:gn.transform},zn={test:Yl("hsl","hue"),parse:fh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+vr.transform(so(t))+", "+vr.transform(so(r))+", "+so(ao.transform(n))+")"},Rt={test:e=>gn.test(e)||ql.test(e)||zn.test(e),parse:e=>gn.test(e)?gn.parse(e):zn.test(e)?zn.parse(e):ql.parse(e),transform:e=>lo(e)?e:e.hasOwnProperty("red")?gn.transform(e):zn.transform(e)},ft=(e,t,r)=>-r*e+r*t+e;function Kl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function yx({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;i=Kl(c,s,e+1/3),o=Kl(c,s,e),a=Kl(c,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const Xl=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},bx=[ql,gn,zn],xx=e=>bx.find(t=>t.test(e));function dh(e){const t=xx(e);lr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===zn&&(r=yx(r)),r}const hh=(e,t)=>{const r=dh(e),n=dh(t),i={...r};return o=>(i.red=Xl(r.red,n.red,o),i.green=Xl(r.green,n.green,o),i.blue=Xl(r.blue,n.blue,o),i.alpha=ft(r.alpha,n.alpha,o),gn.transform(i))};function wx(e){var t,r;return isNaN(e)&&lo(e)&&(((t=e.match(ba))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(_d))===null||r===void 0?void 0:r.length)||0)>0}const ph={regex:m2,countKey:"Vars",token:"${v}",parse:gt},gh={regex:_d,countKey:"Colors",token:"${c}",parse:Rt.parse},mh={regex:ba,countKey:"Numbers",token:"${n}",parse:pn.parse};function Zl(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Ea(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Zl(r,ph),Zl(r,gh),Zl(r,mh),r}function vh(e){return Ea(e).values}function yh(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Ea(e),o=t.length;return a=>{let s=i;for(let c=0;c<o;c++)c<n?s=s.replace(ph.token,a[c]):c<n+r?s=s.replace(gh.token,Rt.transform(a[c])):s=s.replace(mh.token,so(a[c]));return s}}const Sx=e=>typeof e=="number"?0:e;function Cx(e){const t=vh(e);return yh(e)(t.map(Sx))}const Zr={test:wx,parse:vh,createTransformer:yh,getAnimatableNone:Cx},bh=(e,t)=>r=>`${r>0?t:e}`;function xh(e,t){return typeof e=="number"?r=>ft(e,t,r):Rt.test(e)?hh(e,t):e.startsWith("var(")?bh(e,t):Sh(e,t)}const wh=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>xh(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Tx=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=xh(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},Sh=(e,t)=>{const r=Zr.createTransformer(t),n=Ea(e),i=Ea(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?qr(wh(n.values,i.values),r):(uo(!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.`),bh(e,t))},po=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Ch=(e,t)=>r=>ft(e,t,r);function Ox(e){return typeof e=="number"?Ch:typeof e=="string"?Rt.test(e)?hh:Sh:Array.isArray(e)?wh:typeof e=="object"?Tx:Ch}function Ex(e,t,r){const n=[],i=r||Ox(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||gt:t;s=qr(c,s)}n.push(s)}return n}function Th(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;if(lr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ex(t,n,i),s=a.length,c=l=>{let u=0;if(s>1)for(;u<e.length-2&&!(l<e[u+1]);u++);const f=po(e[u],e[u+1],l);return a[u](f)};return r?l=>c(Yr(e[0],e[o-1],l)):c}function Px(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=po(0,t,n);e.push(ft(r,1,i))}}function Mx(e){const t=[0];return Px(t,e.length-1),t}function _x(e,t){return e.map(r=>r*t)}function $x(e,t){return e.map(()=>t||ih).splice(0,e.length-1)}function Pa({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=hx(n)?n.map(uh):uh(n),o={done:!1,value:t[0]},a=_x(r&&r.length===t.length?r:Mx(t),e),s=Th(a,t,{ease:Array.isArray(i)?i:$x(t,i)});return{calculatedDuration:e,next:c=>(o.value=s(c),o.done=c>=e,o)}}function Oh(e,t){return t?e*(1e3/t):0}const Ax=5;function Eh(e,t,r){const n=Math.max(t-Ax,0);return Oh(r-e(n),t-n)}const Ql=.001,kx=.01,Ph=10,Dx=.05,Ix=1;function jx({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;uo(e<=Xr(Ph),"Spring duration must be 10 seconds or less");let a=1-t;a=Yr(Dx,Ix,a),e=Yr(kx,Ph,Dr(e)),a<1?(i=l=>{const u=l*a,f=u*e,d=u-r,h=Jl(l,a),g=Math.exp(-f);return Ql-d/h*g},o=l=>{const f=l*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,g=Math.exp(-f),p=Jl(Math.pow(l,2),a);return(-i(l)+Ql>0?-1:1)*((d-h)*g)/p}):(i=l=>{const u=Math.exp(-l*e),f=(l-r)*e+1;return-Ql+u*f},o=l=>{const u=Math.exp(-l*e),f=(r-l)*(e*e);return u*f});const s=5/e,c=Fx(i,o,s);if(e=Xr(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const Lx=12;function Fx(e,t,r){let n=r;for(let i=1;i<Lx;i++)n=n-e(n)/t(n);return n}function Jl(e,t){return e*Math.sqrt(1-t*t)}const Rx=["duration","bounce"],Nx=["stiffness","damping","mass"];function Mh(e,t){return t.some(r=>e[r]!==void 0)}function zx(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mh(e,Nx)&&Mh(e,Rx)){const r=jx(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function _h({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:c,mass:l,velocity:u,duration:f,isResolvedFromDuration:d}=zx(n),h=u?-Dr(u):0,g=c/(2*Math.sqrt(s*l)),p=o-i,v=Dr(Math.sqrt(s/l)),x=Math.abs(p)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(g<1){const S=Jl(v,g);b=O=>{const w=Math.exp(-g*v*O);return o-w*((h+g*v*p)/S*Math.sin(S*O)+p*Math.cos(S*O))}}else if(g===1)b=S=>o-Math.exp(-v*S)*(p+(h+v*p)*S);else{const S=v*Math.sqrt(g*g-1);b=O=>{const w=Math.exp(-g*v*O),T=Math.min(S*O,300);return o-w*((h+g*v*p)*Math.sinh(T)+S*p*Math.cosh(T))/S}}return{calculatedDuration:d&&f||null,next:S=>{const O=b(S);if(d)a.done=S>=f;else{let w=h;S!==0&&(g<1?w=Eh(b,S,O):w=0);const T=Math.abs(w)<=r,E=Math.abs(o-O)<=t;a.done=T&&E}return a.value=a.done?o:O,a}}}function $h({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:c,restDelta:l=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=P=>s!==void 0&&P<s||c!==void 0&&P>c,g=P=>s===void 0?c:c===void 0||Math.abs(s-P)<Math.abs(c-P)?s:c;let p=r*t;const v=f+p,x=a===void 0?v:a(v);x!==v&&(p=x-f);const b=P=>-p*Math.exp(-P/n),S=P=>x+b(P),O=P=>{const k=b(P),F=S(P);d.done=Math.abs(k)<=l,d.value=d.done?x:F};let w,T;const E=P=>{h(d.value)&&(w=P,T=_h({keyframes:[d.value,g(d.value)],velocity:Eh(S,P,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return E(0),{calculatedDuration:null,next:P=>{let k=!1;return!T&&w===void 0&&(k=!0,O(P),E(P)),w!==void 0&&P>w?T.next(P-w):(!k&&O(P),d)}}}const Bx=e=>{const t=({timestamp:r})=>e(r);return{start:()=>rt.update(t,!0),stop:()=>$r(t),now:()=>_t.isProcessing?_t.timestamp:performance.now()}},Ah=2e4;function kh(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Ah;)t+=r,n=e.next(t);return t>=Ah?1/0:t}const Wx={decay:$h,inertia:$h,tween:Pa,keyframes:Pa,spring:_h};function Ma({autoplay:e=!0,delay:t=0,driver:r=Bx,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:c,onStop:l,onComplete:u,onUpdate:f,...d}){let h=1,g=!1,p,v;const x=()=>{v=new Promise(L=>{p=L})};x();let b;const S=Wx[i]||Pa;let O;S!==Pa&&typeof n[0]!="number"&&(O=Th([0,100],n,{clamp:!1}),n=[0,100]);const w=S({...d,keyframes:n});let T;s==="mirror"&&(T=S({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let E="idle",P=null,k=null,F=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=kh(w));const{calculatedDuration:re}=w;let pe=1/0,se=1/0;re!==null&&(pe=re+a,se=pe*(o+1)-a);let q=0;const G=L=>{if(k===null)return;h>0&&(k=Math.min(k,L)),h<0&&(k=Math.min(L-se/h,k)),P!==null?q=P:q=Math.round(L-k)*h;const X=q-t*(h>=0?1:-1),ee=h>=0?X<0:X>se;q=Math.max(X,0),E==="finished"&&P===null&&(q=se);let H=q,fe=w;if(o){const Q=q/pe;let ne=Math.floor(Q),ye=Q%1;!ye&&Q>=1&&(ye=1),ye===1&&ne--,ne=Math.min(ne,o+1);const R=!!(ne%2);R&&(s==="reverse"?(ye=1-ye,a&&(ye-=a/pe)):s==="mirror"&&(fe=T));let Fe=Yr(0,1,ye);q>se&&(Fe=s==="reverse"&&R?1:0),H=Fe*pe}const ce=ee?{done:!1,value:n[0]}:fe.next(H);O&&(ce.value=O(ce.value));let{done:ge}=ce;!ee&&re!==null&&(ge=h>=0?q>=se:q<=0);const Z=P===null&&(E==="finished"||E==="running"&&ge);return f&&f(ce.value),Z&&ke(),ce},me=()=>{b&&b.stop(),b=void 0},Ce=()=>{E="idle",me(),p(),x(),k=F=null},ke=()=>{E="finished",u&&u(),me(),p()},Oe=()=>{if(g)return;b||(b=r(G));const L=b.now();c&&c(),P!==null?k=L-P:(!k||E==="finished")&&(k=L),E==="finished"&&x(),F=k,P=null,E="running",b.start()};e&&Oe();const D={then(L,X){return v.then(L,X)},get time(){return Dr(q)},set time(L){L=Xr(L),q=L,P!==null||!b||h===0?P=L:k=b.now()-L/h},get duration(){const L=w.calculatedDuration===null?kh(w):w.calculatedDuration;return Dr(L)},get speed(){return h},set speed(L){L===h||!b||(h=L,D.time=Dr(q))},get state(){return E},play:Oe,pause:()=>{E="paused",P=q},stop:()=>{g=!0,E!=="idle"&&(E="idle",l&&l(),Ce())},cancel:()=>{F!==null&&G(F),Ce()},complete:()=>{E="finished"},sample:L=>(k=0,G(L))};return D}function Vx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Hx=Vx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ux=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),_a=10,Yx=2e4,Gx=(e,t)=>t.type==="spring"||e==="backgroundColor"||!eh(t.ease);function qx(e,t,{onUpdate:r,onComplete:n,...i}){if(!(Hx()&&Ux.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,s,c;const l=()=>{c=new Promise(b=>{s=b})};l();let{keyframes:u,duration:f=300,ease:d,times:h}=i;if(Gx(t,i)){const b=Ma({...i,repeat:0,delay:0});let S={done:!1,value:u[0]};const O=[];let w=0;for(;!S.done&&w<Yx;)S=b.sample(w),O.push(S.value),w+=_a;h=void 0,u=O,f=w-_a,d="linear"}const g=ax(e.owner.current,t,u,{...i,duration:f,ease:d,times:h});i.syncStart&&(g.startTime=_t.isProcessing?_t.timestamp:performance.now());const p=()=>g.cancel(),v=()=>{rt.update(p),s(),l()};return g.onfinish=()=>{e.set(sx(u,i)),n&&n(),v()},{then(b,S){return c.then(b,S)},attachTimeline(b){return g.timeline=b,g.onfinish=null,gt},get time(){return Dr(g.currentTime||0)},set time(b){g.currentTime=Xr(b)},get speed(){return g.playbackRate},set speed(b){g.playbackRate=b},get duration(){return Dr(f)},play:()=>{a||(g.play(),$r(p))},pause:()=>g.pause(),stop:()=>{if(a=!0,g.playState==="idle")return;const{currentTime:b}=g;if(b){const S=Ma({...i,autoplay:!1});e.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}v()},complete:()=>g.finish(),cancel:v}}function Kx({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:gt,pause:gt,stop:gt,then:o=>(o(),Promise.resolve()),cancel:gt,complete:gt});return t?Ma({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Xx={type:"spring",stiffness:500,damping:25,restSpeed:10},Zx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qx={type:"keyframes",duration:.8},Jx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ew=(e,{keyframes:t})=>t.length>2?Qx:hn.has(e)?e.startsWith("scale")?Zx(t[1]):Xx:Jx,ec=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Zr.test(t)||t==="0")&&!t.startsWith("url(")),tw=new Set(["brightness","contrast","saturate","opacity"]);function rw(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ba)||[];if(!n)return e;const i=r.replace(n,"");let o=tw.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const nw=/([a-z-]*)\(.*?\)/g,tc={...Zr,getAnimatableNone:e=>{const t=e.match(nw);return t?t.map(rw).join(" "):e}},iw={...kd,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:tc,WebkitFilter:tc},rc=e=>iw[e];function Dh(e,t){let r=rc(e);return r!==tc&&(r=Zr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Ih=e=>/^0[^.\s]+$/.test(e);function ow(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ih(e)}function aw(e,t,r,n){const i=ec(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const c=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?a:o[l-1]),ow(o[l])&&c.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(s=o[l]);if(i&&c.length&&s)for(let l=0;l<c.length;l++){const u=c[l];o[u]=Dh(t,s)}return o}function sw({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function jh(e,t){return e[t]||e.default||e}const nc=(e,t,r,n={})=>i=>{const o=jh(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Xr(a);const c=aw(t,e,r,o),l=c[0],u=c[c.length-1],f=ec(e,l),d=ec(e,u);uo(f===d,`You are trying to animate ${e} from "${l}" to "${u}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${u} via the \`style\` property.`);let h={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(sw(o)||(h={...h,...ew(e,h)}),h.duration&&(h.duration=Xr(h.duration)),h.repeatDelay&&(h.repeatDelay=Xr(h.repeatDelay)),!f||!d||ox.current||o.type===!1)return Kx(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=qx(t,e,h);if(g)return g}return Ma(h)};function $a(e){return!!(Bt(e)&&e.add)}const Lh=e=>/^\-?\d*\.?\d+$/.test(e);function ic(e,t){e.indexOf(t)===-1&&e.push(t)}function oc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class ac{constructor(){this.subscriptions=[]}add(t){return ic(this.subscriptions,t),()=>oc(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Fh=new Set;function sc(e,t,r){e||Fh.has(t)||(console.warn(t),r&&console.warn(r),Fh.add(t))}const lw=e=>!isNaN(parseFloat(e));class cw{constructor(t,r={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:a}=_t;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,rt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>rt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=lw(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&sc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new ac);const n=this.events[t].add(r);return t==="change"?()=>{n(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Oh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bn(e,t){return new cw(e,t)}const Rh=e=>t=>t.test(e),Nh=[pn,xe,vr,Gr,x2,b2,{test:e=>e==="auto",parse:e=>e}],go=e=>Nh.find(Rh(e)),uw=[...Nh,Rt,Zr],fw=e=>uw.find(Rh(e));function dw(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Bn(r))}function hw(e,t){const r=Oa(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=I2(o[a]);dw(e,a,s)}}function pw(e,t,r){var n,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const c=o[s],l=t[c];let u=null;Array.isArray(l)&&(u=l[0]),u===null&&(u=(i=(n=r[c])!==null&&n!==void 0?n:e.readValue(c))!==null&&i!==void 0?i:t[c]),u!=null&&(typeof u=="string"&&(Lh(u)||Ih(u))?u=parseFloat(u):!fw(u)&&Zr.test(l)&&(u=Dh(c,l)),e.addValue(c,Bn(u,{owner:e})),r[c]===void 0&&(r[c]=u),u!==null&&e.setBaseTarget(c,u))}}function gw(e,t){return t?(t[e]||t.default||t).from:void 0}function mw(e,t,r){const n={};for(const i in e){const o=gw(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function vw({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function zh(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");n&&(o=n);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||u&&vw(u,f))continue;const g={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const v=e.getProps()[ix];v&&(g.elapsed=window.HandoffAppearAnimations(v,f,d,rt),g.syncStart=!0)}d.start(nc(f,d,h,e.shouldReduceMotion&&hn.has(f)?{type:!1}:g));const p=d.animation;$a(c)&&(c.add(f),p.then(()=>c.remove(f))),l.push(p)}return a&&Promise.all(l).then(()=>{a&&hw(e,a)}),l}function lc(e,t,r={}){const n=Oa(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(zh(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=i;return yw(e,t,l+c,u,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[c,l]=s==="beforeChildren"?[o,a]:[a,o];return c().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function yw(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,c=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(bw).forEach((l,u)=>{l.notify("AnimationStart",t),a.push(lc(l,t,{...o,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function bw(e,t){return e.sortNodePosition(t)}function xw(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>lc(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=lc(e,t,r);else{const i=typeof t=="function"?Oa(e,t,r.custom):t;n=Promise.all(zh(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const ww=[...Pl].reverse(),Sw=Pl.length;function Cw(e){return t=>Promise.all(t.map(({animation:r,options:n})=>xw(e,r,n)))}function Tw(e){let t=Cw(e);const r=Ew();let n=!0;const i=(c,l)=>{const u=Oa(e,l);if(u){const{transition:f,transitionEnd:d,...h}=u;c={...c,...h,...d}}return c};function o(c){t=c(e)}function a(c,l){const u=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let g={},p=1/0;for(let x=0;x<Sw;x++){const b=ww[x],S=r[b],O=u[b]!==void 0?u[b]:f[b],w=no(O),T=b===l?S.isActive:null;T===!1&&(p=x);let E=O===f[b]&&O!==u[b]&&w;if(E&&n&&e.manuallyAnimateOnMount&&(E=!1),S.protectedKeys={...g},!S.isActive&&T===null||!O&&!S.prevProp||ga(O)||typeof O=="boolean")continue;const P=Ow(S.prevProp,O);let k=P||b===l&&S.isActive&&!E&&w||x>p&&w;const F=Array.isArray(O)?O:[O];let re=F.reduce(i,{});T===!1&&(re={});const{prevResolvedValues:pe={}}=S,se={...pe,...re},q=G=>{k=!0,h.delete(G),S.needsAnimating[G]=!0};for(const G in se){const me=re[G],Ce=pe[G];g.hasOwnProperty(G)||(me!==Ce?wa(me)&&wa(Ce)?!Qd(me,Ce)||P?q(G):S.protectedKeys[G]=!0:me!==void 0?q(G):h.add(G):me!==void 0&&h.has(G)?q(G):S.protectedKeys[G]=!0)}S.prevProp=O,S.prevResolvedValues=re,S.isActive&&(g={...g,...re}),n&&e.blockInitialAnimation&&(k=!1),k&&!E&&d.push(...F.map(G=>({animation:G,options:{type:b,...c}})))}if(h.size){const x={};h.forEach(b=>{const S=e.getBaseTarget(b);S!==void 0&&(x[b]=S)}),d.push({animation:x})}let v=!!d.length;return n&&u.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function s(c,l,u){var f;if(r[c].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(c,l)}),r[c].isActive=l;const d=a(u,c);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function Ow(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Qd(t,e):!1}function mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ew(){return{animate:mn(!0),whileInView:mn(),whileHover:mn(),whileTap:mn(),whileDrag:mn(),whileFocus:mn(),exit:mn()}}class Pw extends Kr{constructor(t){super(t),t.animationState||(t.animationState=Tw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ga(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let Mw=0;class _w extends Kr{constructor(){super(...arguments),this.id=Mw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const $w={animation:{Feature:Pw},exit:{Feature:_w}},Bh=(e,t)=>Math.abs(e-t);function Aw(e,t){const r=Bh(e.x,t.x),n=Bh(e.y,t.y);return Math.sqrt(r**2+n**2)}class Wh{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=uc(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=Aw(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=_t;this.history.push({...d,timestamp:h});const{onStart:g,onMove:p}=this.handlers;u||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=cc(u,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=uc(l.type==="pointercancel"?this.lastMoveEventInfo:cc(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!Hd(t))return;this.handlers=r,this.transformPagePoint=n;const i=Ta(t),o=cc(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=_t;this.history=[{...a,timestamp:s}];const{onSessionStart:c}=r;c&&c(t,uc(o,this.history)),this.removeListeners=qr(kr(window,"pointermove",this.handlePointerMove),kr(window,"pointerup",this.handlePointerUp),kr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$r(this.updatePoint)}}function cc(e,t){return t?{point:t(e.point)}:e}function Vh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uc({point:e},t){return{point:e,delta:Vh(e,Hh(t)),offset:Vh(e,kw(t)),velocity:Dw(t,.1)}}function kw(e){return e[0]}function Hh(e){return e[e.length-1]}function Dw(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=Hh(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Xr(t)));)r--;if(!n)return{x:0,y:0};const o=Dr(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Kt(e){return e.max-e.min}function fc(e,t=0,r=.01){return Math.abs(e-t)<=r}function Uh(e,t,r,n=.5){e.origin=n,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Kt(r)/Kt(t),(fc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ft(r.min,r.max,e.origin)-e.originPoint,(fc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mo(e,t,r,n){Uh(e.x,t.x,r.x,n?n.originX:void 0),Uh(e.y,t.y,r.y,n?n.originY:void 0)}function Yh(e,t,r){e.min=r.min+t.min,e.max=e.min+Kt(t)}function Iw(e,t,r){Yh(e.x,t.x,r.x),Yh(e.y,t.y,r.y)}function Gh(e,t,r){e.min=t.min-r.min,e.max=e.min+Kt(t)}function vo(e,t,r){Gh(e.x,t.x,r.x),Gh(e.y,t.y,r.y)}function jw(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?ft(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?ft(r,e,n.max):Math.min(e,r)),e}function qh(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Lw(e,{top:t,left:r,bottom:n,right:i}){return{x:qh(e.x,r,i),y:qh(e.y,t,n)}}function Kh(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Fw(e,t){return{x:Kh(e.x,t.x),y:Kh(e.y,t.y)}}function Rw(e,t){let r=.5;const n=Kt(e),i=Kt(t);return i>n?r=po(t.min,t.max-n,e.min):n>i&&(r=po(e.min,e.max-i,t.min)),Yr(0,1,r)}function Nw(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const dc=.35;function zw(e=dc){return e===!1?e=0:e===!0&&(e=dc),{x:Xh(e,"left","right"),y:Xh(e,"top","bottom")}}function Xh(e,t,r){return{min:Zh(e,t),max:Zh(e,r)}}function Zh(e,t){return typeof e=="number"?e:e[t]||0}const Qh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wn=()=>({x:Qh(),y:Qh()}),Jh=()=>({min:0,max:0}),Ot=()=>({x:Jh(),y:Jh()});function yr(e){return[e("x"),e("y")]}function ep({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Bw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ww(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function hc(e){return e===void 0||e===1}function pc({scale:e,scaleX:t,scaleY:r}){return!hc(e)||!hc(t)||!hc(r)}function vn(e){return pc(e)||tp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function tp(e){return rp(e.x)||rp(e.y)}function rp(e){return e&&e!=="0%"}function Aa(e,t,r){const n=e-r,i=t*n;return r+i}function np(e,t,r,n,i){return i!==void 0&&(e=Aa(e,i,n)),Aa(e,r,n)+t}function gc(e,t=0,r=1,n,i){e.min=np(e.min,t,r,n,i),e.max=np(e.max,t,r,n,i)}function ip(e,{x:t,y:r}){gc(e.x,t.translate,t.scale,t.originPoint),gc(e.y,r.translate,r.scale,r.originPoint)}function Vw(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=r[s],a=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Vn(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ip(e,a)),n&&vn(o.latestValues)&&Vn(e,o.latestValues))}t.x=op(t.x),t.y=op(t.y)}function op(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function ap(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=ft(e.min,e.max,o);gc(e,t[r],t[n],a,t.scale)}const Hw=["x","scaleX","originX"],Uw=["y","scaleY","originY"];function Vn(e,t){ap(e.x,t,Hw),ap(e.y,t,Uw)}function sp(e,t){return ep(Ww(e.getBoundingClientRect(),t))}function Yw(e,t,r){const n=sp(e,r),{scroll:i}=t;return i&&(Qr(n.x,i.offset.x),Qr(n.y,i.offset.y)),n}const Gw=new WeakMap;class qw{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=Ot(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=c=>{this.stopAnimation(),r&&this.snapToCursor(Ta(c,"page").point)},o=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=qd(u),!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),yr(g=>{let p=this.getAxisMotionValue(g).get()||0;if(vr.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[g];x&&(p=Kt(x)*(parseFloat(p)/100))}}this.originPoint[g]=p}),d&&rt.update(()=>d(c,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(c,l)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=l;if(f&&this.currentDirection===null){this.currentDirection=Kw(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,g),this.updateAxis("y",l.point,g),this.visualElement.render(),h&&h(c,l)},s=(c,l)=>this.stop(c,l);this.panSession=new Wh(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&rt.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!ka(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=jw(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Nn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Lw(n.layoutBox,t):this.constraints=!1,this.elastic=zw(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&yr(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=Nw(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Nn(t))return!1;const n=t.current;lr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Yw(n,i.root,this.visualElement.getTransformPagePoint());let a=Fw(i.layout.layoutBox,o);if(r){const s=r(Bw(a));this.hasMutatedConstraints=!!s,s&&(a=ep(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},l=yr(u=>{if(!ka(u,r,this.currentDirection))return;let f=c&&c[u]||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:n?t[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(nc(t,n,0,r))}stopAnimation(){yr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){yr(r=>{const{drag:n}=this.getProps();if(!ka(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[r];o.set(t[r]-ft(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Nn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yr(a=>{const s=this.getAxisMotionValue(a);if(s){const c=s.get();i[a]=Rw({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),yr(a=>{if(!ka(a,t,null))return;const s=this.getAxisMotionValue(a),{min:c,max:l}=this.constraints[a];s.set(ft(c,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;Gw.set(this.visualElement,this);const t=this.visualElement.current,r=kr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Nn(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const a=Ar(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(yr(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=dc,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function ka(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Kw(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Xw extends Kr{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new qw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const lp=e=>(t,r)=>{e&&rt.update(()=>e(t,r))};class Zw extends Kr{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new Wh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:lp(t),onStart:lp(r),onMove:n,onEnd:(o,a)=>{delete this.session,i&&rt.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=kr(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 Qw(){const e=m.useContext(ha);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=m.useId();return m.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const r=cp(e,t.target.x),n=cp(e,t.target.y);return`${r}% ${n}%`}},Jw={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Zr.parse(e);if(i.length>5)return n;const o=Zr.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=c;const l=ft(s,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}};class e5 extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;d2(t5),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||rt.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function up(e){const[t,r]=Qw(),n=m.useContext($l);return m.createElement(e5,{...e,layoutGroup:n,switchLayoutGroup:m.useContext(Od),isPresent:t,safeToRemove:r})}const t5={borderRadius:{...yo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yo,borderTopRightRadius:yo,borderBottomLeftRadius:yo,borderBottomRightRadius:yo,boxShadow:Jw},fp=["TopLeft","TopRight","BottomLeft","BottomRight"],r5=fp.length,dp=e=>typeof e=="string"?parseFloat(e):e,hp=e=>typeof e=="number"||xe.test(e);function n5(e,t,r,n,i,o){i?(e.opacity=ft(0,r.opacity!==void 0?r.opacity:1,i5(n)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,o5(n))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<r5;a++){const s=`border${fp[a]}Radius`;let c=pp(t,s),l=pp(r,s);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||hp(c)===hp(l)?(e[s]=Math.max(ft(dp(c),dp(l),n),0),(vr.test(l)||vr.test(c))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=ft(t.rotate||0,r.rotate||0,n))}function pp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const i5=gp(0,.5,Hl),o5=gp(.5,.95,gt);function gp(e,t,r){return n=>n<e?0:n>t?1:r(po(e,t,n))}function mp(e,t){e.min=t.min,e.max=t.max}function ir(e,t){mp(e.x,t.x),mp(e.y,t.y)}function vp(e,t,r,n,i){return e-=t,e=Aa(e,1/r,n),i!==void 0&&(e=Aa(e,1/i,n)),e}function a5(e,t=0,r=1,n=.5,i,o=e,a=e){if(vr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ft(o.min,o.max,n);e===o&&(s-=t),e.min=vp(e.min,t,r,s,i),e.max=vp(e.max,t,r,s,i)}function yp(e,t,[r,n,i],o,a){a5(e,t[r],t[n],t[i],t.scale,o,a)}const s5=["x","scaleX","originX"],l5=["y","scaleY","originY"];function bp(e,t,r,n){yp(e.x,t,s5,r?r.x:void 0,n?n.x:void 0),yp(e.y,t,l5,r?r.y:void 0,n?n.y:void 0)}function xp(e){return e.translate===0&&e.scale===1}function wp(e){return xp(e.x)&&xp(e.y)}function c5(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 Sp(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 Cp(e){return Kt(e.x)/Kt(e.y)}class u5{constructor(){this.members=[]}add(t){ic(this.members,t),t.scheduleRender()}remove(t){if(oc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Tp(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const f5=(e,t)=>e.depth-t.depth;class d5{constructor(){this.children=[],this.isDirty=!1}add(t){ic(this.children,t),this.isDirty=!0}remove(t){oc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(f5),this.isDirty=!1,this.children.forEach(t)}}function h5(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&($r(n),e(o-t))};return rt.read(n,!0),()=>$r(n)}function p5(e){window.MotionDebug&&window.MotionDebug.record(e)}function g5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function m5(e,t,r){const n=Bt(e)?e:Bn(e);return n.start(nc("",n,t,r)),n.animation}const Op=["","X","Y","Z"],Ep=1e3;let v5=0;const yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Pp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=v5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{yn.totalNodes=yn.resolvedTargetDeltas=yn.recalculatedProjection=0,this.nodes.forEach(x5),this.nodes.forEach(O5),this.nodes.forEach(E5),this.nodes.forEach(w5),p5(yn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new d5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ac),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const c=this.eventHandlers.get(a);c&&c.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=g5(a),this.instance=a;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||c)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=h5(d,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(_p))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||A5,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!Sp(this.targetLayout,g)||h,S=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const O={...jh(p,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else d||_p(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$r(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(P5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:c}=this.options;if(s===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mp);return}this.isUpdating||this.nodes.forEach(C5),this.isUpdating=!1,this.nodes.forEach(T5),this.nodes.forEach(y5),this.nodes.forEach(b5),this.clearAllSnapshots();const s=performance.now();_t.delta=Yr(0,1e3/60,s-_t.timestamp),_t.timestamp=s,_t.isProcessing=!0,zl.update.process(_t),zl.preRender.process(_t),zl.render.process(_t),_t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(S5),this.sharedNodes.forEach(M5)}scheduleUpdateProjection(){rt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){rt.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!wp(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;a&&(s||vn(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let c=this.removeElementScroll(s);return a&&(c=this.removeTransform(c)),k5(c),{animationId:this.root.animationId,measuredBox:s,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ot();const s=a.measureViewportBox(),{scroll:c}=this.root;return c&&(Qr(s.x,c.offset.x),Qr(s.y,c.offset.y)),s}removeElementScroll(a){const s=Ot();ir(s,a);for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:f}=l;if(l!==this.root&&u&&f.layoutScroll){if(u.isRoot){ir(s,a);const{scroll:d}=this.root;d&&(Qr(s.x,-d.offset.x),Qr(s.y,-d.offset.y))}Qr(s.x,u.offset.x),Qr(s.y,u.offset.y)}}return s}applyTransform(a,s=!1){const c=Ot();ir(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Vn(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),vn(u.latestValues)&&Vn(c,u.latestValues)}return vn(this.latestValues)&&Vn(c,this.latestValues),c}removeTransform(a){const s=Ot();ir(s,a);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!vn(l.latestValues))continue;pc(l.latestValues)&&l.updateSnapshot();const u=Ot(),f=l.measurePageBox();ir(u,f),bp(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return vn(this.latestValues)&&bp(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=_t.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),vo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ot(),this.targetWithTransforms=Ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Iw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ir(this.target,this.layout.layoutBox),ip(this.target,this.targetDelta)):ir(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),vo(this.relativeTargetOrigin,this.target,h.target),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||pc(this.parent.latestValues)||tp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),c=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===_t.timestamp&&(l=!1),l)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;ir(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Vw(this.layoutCorrected,this.treeScale,this.path,c),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:g}=s;if(!g){this.projectionTransform&&(this.projectionDelta=Wn(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Wn(),this.projectionDeltaWithTransform=Wn());const p=this.projectionTransform;mo(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=Tp(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),yn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=Wn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=Ot(),h=c?c.source:void 0,g=this.layout?this.layout.source:void 0,p=h!==g,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some($5));this.animationProgress=0;let S;this.mixTargetDelta=O=>{const w=O/1e3;$p(f.x,a.x,w),$p(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_5(this.relativeTarget,this.relativeTargetOrigin,d,w),S&&c5(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ot()),ir(S,this.relativeTarget)),p&&(this.animationValues=u,n5(u,l,this.latestValues,w,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=m5(0,Ep,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ep),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:c,layout:l,latestValues:u}=a;if(!(!s||!c||!l)){if(this!==a&&this.layout&&l&&jp(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Ot();const f=Kt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const d=Kt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+d}ir(s,c),Vn(s,u),mo(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new u5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:c}=a;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(s=!0),!s)return;const l={};for(let u=0;u<Op.length;u++){const f="rotate"+Op[u];c[f]&&(l[f]=c[f],a.setStaticValue(f,0))}a.render();for(const u in l)a.setStaticValue(u,l[u]);a.scheduleRender()}getProjectionStyles(a={}){var s,c;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Sa(a.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Sa(a.pointerEvents)||""),this.hasProjected&&!vn(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=Tp(this.projectionDeltaWithTransform,this.treeScale,d),u&&(l.transform=u(d,l.transform));const{x:h,y:g}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?l.opacity=f===this?(c=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in va){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=va[p],b=l.transform==="none"?d[p]:v(d[p],f);if(x){const S=x.length;for(let O=0;O<S;O++)l[x[O]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=f===this?Sa(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Mp),this.root.sharedNodes.clear()}}}function y5(e){e.updateLayout()}function b5(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?yr(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Kt(d);d.min=n[f].min,d.max=d.min+h}):jp(o,r.layoutBox,n)&&yr(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Kt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Wn();mo(s,n,r.layoutBox);const c=Wn();a?mo(c,e.applyTransform(i,!0),r.measuredBox):mo(c,n,r.layoutBox);const l=!wp(s);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=Ot();vo(g,r.layoutBox,d.layoutBox);const p=Ot();vo(p,n,h.layoutBox),Sp(g,p)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function x5(e){yn.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 w5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function S5(e){e.clearSnapshot()}function Mp(e){e.clearMeasurements()}function C5(e){e.isLayoutDirty=!1}function T5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _p(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function O5(e){e.resolveTargetDelta()}function E5(e){e.calcProjection()}function P5(e){e.resetRotation()}function M5(e){e.removeLeadSnapshot()}function $p(e,t,r){e.translate=ft(t.translate,0,r),e.scale=ft(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ap(e,t,r,n){e.min=ft(t.min,r.min,n),e.max=ft(t.max,r.max,n)}function _5(e,t,r,n){Ap(e.x,t.x,r.x,n),Ap(e.y,t.y,r.y,n)}function $5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const A5={duration:.45,ease:[.4,0,.1,1]},kp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Dp=kp("applewebkit/")&&!kp("chrome/")?Math.round:gt;function Ip(e){e.min=Dp(e.min),e.max=Dp(e.max)}function k5(e){Ip(e.x),Ip(e.y)}function jp(e,t,r){return e==="position"||e==="preserve-aspect"&&!fc(Cp(t),Cp(r),.2)}const D5=Pp({attachResizeListener:(e,t)=>Ar(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mc={current:void 0},Lp=Pp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mc.current){const e=new D5({});e.mount(window),e.setOptions({layoutScroll:!0}),mc.current=e}return mc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),I5={pan:{Feature:Zw},drag:{Feature:Xw,ProjectionNode:Lp,MeasureLayout:up}},j5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function L5(e){const t=j5.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const F5=4;function vc(e,t,r=1){lr(r<=F5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=L5(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return Lh(a)?parseFloat(a):a}else return kl(i)?vc(i,t,r+1):i}function R5(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!kl(o))return;const a=vc(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!kl(o))continue;const a=vc(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const N5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Fp=e=>N5.has(e),z5=e=>Object.keys(e).some(Fp),Ia=e=>e===pn||e===xe,Rp=(e,t)=>parseFloat(e.split(", ")[t]),Np=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return Rp(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?Rp(o[1],e):0}},B5=new Set(["x","y","z"]),W5=oo.filter(e=>!B5.has(e));function V5(e){const t=[];return W5.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Hn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Np(4,13),y:Np(5,14)};Hn.translateX=Hn.x,Hn.translateY=Hn.y;const H5=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=Hn[l](n,o)}),t.render();const c=t.measureViewportBox();return r.forEach(l=>{const u=t.getValue(l);u&&u.jump(s[l]),e[l]=Hn[l](c,o)}),e},U5=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(Fp);let o=[],a=!1;const s=[];if(i.forEach(c=>{const l=e.getValue(c);if(!e.hasValue(c))return;let u=r[c],f=go(u);const d=t[c];let h;if(wa(d)){const g=d.length,p=d[0]===null?1:0;u=d[p],f=go(u);for(let v=p;v<g&&d[v]!==null;v++)h?lr(go(d[v])===h,"All keyframes must be of the same type"):(h=go(d[v]),lr(h===f||Ia(f)&&Ia(h),"Keyframes must be of the same dimension as the current value"))}else h=go(d);if(f!==h)if(Ia(f)&&Ia(h)){const g=l.get();typeof g=="string"&&l.set(parseFloat(g)),typeof d=="string"?t[c]=parseFloat(d):Array.isArray(d)&&h===xe&&(t[c]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(u===0||d===0)?u===0?l.set(h.transform(u)):t[c]=f.transform(d):(a||(o=V5(e),a=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],l.jump(d))}),s.length){const c=s.indexOf("height")>=0?window.pageYOffset:null,l=H5(t,e,s);return o.length&&o.forEach(([u,f])=>{e.getValue(u).set(f)}),e.render(),pa&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function Y5(e,t,r,n){return z5(t)?U5(e,t,r,n):{target:t,transitionEnd:n}}const G5=(e,t,r,n)=>{const i=R5(e,t,n);return t=i.target,n=i.transitionEnd,Y5(e,t,r,n)},yc={current:null},zp={current:!1};function q5(){if(zp.current=!0,!!pa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yc.current=e.matches;e.addListener(t),t()}else yc.current=!1}function K5(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(Bt(o))e.addValue(i,o),$a(n)&&n.add(i),process.env.NODE_ENV==="development"&&sc(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(Bt(a))e.addValue(i,Bn(o,{owner:e})),$a(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Bn(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const Bp=new WeakMap,Wp=Object.keys(io),X5=Wp.length,Vp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Z5=Ml.length;class Q5{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>rt.render(this.render,!1,!0);const{latestValues:s,renderState:c}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=ma(r),this.isVariantNode=Sd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(r,{});for(const f in u){const d=u[f];s[f]!==void 0&&Bt(d)&&(d.set(s[f],!1),$a(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Bp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),zp.current||q5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yc.current,process.env.NODE_ENV!=="production"&&sc(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(){Bp.delete(this.current),this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=hn.has(t),i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&rt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let a,s;if(process.env.NODE_ENV!=="production"&&i&&n){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?uo(!1,c):lr(!1,c)}for(let c=0;c<X5;c++){const l=Wp[c],{isEnabled:u,Feature:f,ProjectionNode:d,MeasureLayout:h}=io[l];d&&(a=d),u(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:l,drag:u,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:c,layout:l,alwaysMeasureLayout:!!u||f&&Nn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ot()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Vp.length;n++){const i=Vp[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=K5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<Z5;n++){const i=Ml[n],o=this.props[i];(no(o)||o===!1)&&(r[i]=o)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Bn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Nl(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Bt(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ac),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Hp extends Q5{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let a=mw(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){pw(this,n,a);const s=G5(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function J5(e){return window.getComputedStyle(e)}class e3 extends Hp{readValueFromInstance(t,r){if(hn.has(r)){const n=rc(r);return n&&n.default||0}else{const n=J5(t),i=(Md(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return sp(t,r)}build(t,r,n,i){Dl(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Rl(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Bt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){Fd(t,r,n,i)}}class t3 extends Hp{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(hn.has(r)){const n=rc(r);return n&&n.default||0}return r=Rd.has(r)?r:Fl(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ot()}scrapeMotionValuesFromProps(t,r){return zd(t,r)}build(t,r,n,i){jl(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){Nd(t,r,n,i)}mount(t){this.isSVGTag=Ll(t.tagName),super.mount(t)}}const r3=(e,t)=>Al(e)?new t3(t,{enableHardwareAcceleration:!1}):new e3(t,{enableHardwareAcceleration:!0}),n3={layout:{ProjectionNode:Lp,MeasureLayout:up}},cr=u2(W2);function Up(){const e=m.useRef(!1);return Ol(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function i3(){const e=Up(),[t,r]=m.useState(0),n=m.useCallback(()=>{e.current&&r(t+1)},[t]);return[m.useCallback(()=>rt.postRender(n),[n]),t]}class o3 extends be.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a3({children:e,isPresent:t}){const r=m.useId(),n=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:c}=i.current;if(t||!n.current||!o||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
27
|
+
Check the top-level render call using <`+J+">.")}return V}}function Kn(S,V){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var J=Zr(V);if(Xr[J])return;Xr[J]=!0;var Te="";S&&S._owner&&S._owner!==Me.current&&(Te=" It was passed a child from "+se(S._owner.type)+"."),et(S),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,Te),et(null)}}function Sa(S,V){{if(typeof S!="object")return;if(bn(S))for(var J=0;J<S.length;J++){var Te=S[J];_t(Te)&&Kn(Te,V)}else if(_t(S))S._store&&(S._store.validated=!0);else if(S){var qe=v(S);if(typeof qe=="function"&&qe!==S.entries)for(var it=qe.call(S),ze;!(ze=it.next()).done;)_t(ze.value)&&Kn(ze.value,V)}}}function Bl(S){{var V=S.type;if(V==null||typeof V=="string")return;var J;if(typeof V=="function")J=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===u||V.$$typeof===f))J=V.propTypes;else return;if(J){var Te=se(V);Cr(J,S.props,"prop",Te,S)}else if(V.PropTypes!==void 0&&!tt){tt=!0;var qe=se(V);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xX(S){{for(var V=Object.keys(S.props),J=0;J<V.length;J++){var Te=V[J];if(Te!=="children"&&Te!=="key"){et(S),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),et(null);break}}S.ref!==null&&(et(S),b("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}function p2(S,V,J,Te,qe,it){{var ze=L(S);if(!ze){var Fe="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Fe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Wt=Ft(qe);Wt?Fe+=Wt:Fe+=vt();var Ot;S===null?Ot="null":bn(S)?Ot="array":S!==void 0&&S.$$typeof===t?(Ot="<"+(se(S.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof S,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Fe)}var Pt=ie(S,V,J,qe,it);if(Pt==null)return Pt;if(ze){var hr=V.children;if(hr!==void 0)if(Te)if(bn(hr)){for(var uo=0;uo<hr.length;uo++)Sa(hr[uo],S);Object.freeze&&Object.freeze(hr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Sa(hr,S)}return S===n?xX(Pt):Bl(Pt),Pt}}function wX(S,V,J){return p2(S,V,J,!0)}function CX(S,V,J){return p2(S,V,J,!1)}var SX=CX,EX=wX;go.Fragment=n,go.jsx=SX,go.jsxs=EX}()),go}process.env.NODE_ENV==="production"?zl.exports=P2():zl.exports=A2();var y=zl.exports;const Vd=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ta=g.createContext({}),_a=g.createContext(null),Oa=typeof document<"u",Vl=Oa?g.useLayoutEffect:g.useEffect,Wl=g.createContext({strict:!1});function D2(e,t,r,n){const{visualElement:i}=g.useContext(Ta),o=g.useContext(Wl),a=g.useContext(_a),s=g.useContext(Vd).reducedMotion,u=g.useRef();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;g.useInsertionEffect(()=>{l&&l.update(r,a)});const c=g.useRef(!!window.HandoffAppearAnimations);return Vl(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),g.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Zn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $2(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Zn(r)&&(r.current=n))},[t])}function mo(e){return typeof e=="string"||Array.isArray(e)}function ka(e){return typeof e=="object"&&typeof e.start=="function"}const Hl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ul=["initial",...Hl];function Ma(e){return ka(e.animate)||Ul.some(t=>mo(e[t]))}function Wd(e){return!!(Ma(e)||e.variants)}function I2(e,t){if(Ma(e)){const{initial:r,animate:n}=e;return{initial:r===!1||mo(r)?r:void 0,animate:mo(n)?n:void 0}}return e.inherit!==!1?t:{}}function F2(e){const{initial:t,animate:r}=I2(e,g.useContext(Ta));return g.useMemo(()=>({initial:t,animate:r}),[Hd(t),Hd(r)])}function Hd(e){return Array.isArray(e)?e.join(" "):e}const Ud={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"]},vo={};for(const e in Ud)vo[e]={isEnabled:t=>Ud[e].some(r=>!!t[r])};function Yl(e){for(const t in e)vo[t]={...vo[t],...e[t]}}const Gl=g.createContext({}),Yd=g.createContext({}),j2=Symbol.for("motionComponentSymbol");function L2({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&Yl(e);function o(s,u){let l;const c={...g.useContext(Vd),...s,layoutId:R2(s)},{isStatic:f}=c,d=F2(s),h=n(s,f);if(!f&&Oa){d.visualElement=D2(i,h,c,t);const m=g.useContext(Yd),p=g.useContext(Wl).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,m))}return xe.createElement(Ta.Provider,{value:d},l&&d.visualElement?xe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,$2(h,d.visualElement,u),h,f,d.visualElement))}const a=g.forwardRef(o);return a[j2]=i,a}function R2({layoutId:e}){const t=g.useContext(Gl).id;return t&&e!==void 0?t+"-"+e:e}function B2(e){function t(n,i={}){return L2(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const N2=["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 ql(e){return typeof e!="string"||e.includes("-")?!1:!!(N2.indexOf(e)>-1||/[A-Z]/.test(e))}const Pa={};function z2(e){Object.assign(Pa,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(yo);function Gd(e,{layout:t,layoutId:r}){return wn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Pa[e]||e==="opacity")}const Ht=e=>!!(e&&e.getVelocity),V2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=yo.length;function H2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<W2;a++){const s=yo[a];if(e[s]!==void 0){const u=V2[s]||s;o+=`${u}(${e[s]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const qd=e=>t=>typeof t=="string"&&t.startsWith(e),Kd=qd("--"),Kl=qd("var(--"),U2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Y2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jr=(e,t,r)=>Math.min(Math.max(r,e),t),Cn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bo={...Cn,transform:e=>Jr(0,1,e)},Aa={...Cn,default:1},xo=e=>Math.round(e*1e5)/1e5,Da=/(-)?([\d]*\.?[\d])+/g,Xd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wo(e){return typeof e=="string"}const Co=e=>({test:t=>wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),en=Co("deg"),Sr=Co("%"),we=Co("px"),q2=Co("vh"),K2=Co("vw"),Zd={...Sr,parse:e=>Sr.parse(e)/100,transform:e=>Sr.transform(e*100)},Qd={...Cn,transform:Math.round},Jd={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,size:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:Aa,scaleX:Aa,scaleY:Aa,scaleZ:Aa,skew:en,skewX:en,skewY:en,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:bo,originX:Zd,originY:Zd,originZ:we,zIndex:Qd,fillOpacity:bo,strokeOpacity:bo,numOctaves:Qd};function Xl(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(Kd(f)){o[f]=d;continue}const h=Jd[f],m=Y2(d,h);if(wn.has(f)){if(u=!0,a[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=m):i[f]=m}if(t.transform||(u||n?i.transform=H2(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Zl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(const n in t)!Ht(t[n])&&!Gd(n,r)&&(e[n]=t[n])}function X2({transformTemplate:e},t,r){return g.useMemo(()=>{const n=Zl();return Xl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Z2(e,t,r){const n=e.style||{},i={};return eh(i,n,e),Object.assign(i,X2(e,t,r)),e.transformValues?e.transformValues(i):i}function Q2(e,t,r){const n={},i=Z2(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const J2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $a(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||J2.has(e)}let th=e=>!$a(e);function ex(e){e&&(th=t=>t.startsWith("on")?!$a(t):e(t))}try{ex(require("@emotion/is-prop-valid").default)}catch{}function tx(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(th(i)||r===!0&&$a(i)||!t&&!$a(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function rh(e,t,r){return typeof e=="string"?e:we.transform(t+r*e)}function rx(e,t,r){const n=rh(t,e.x,e.width),i=rh(r,e.y,e.height);return`${n} ${i}`}const nx={offset:"stroke-dashoffset",array:"stroke-dasharray"},ix={offset:"strokeDashoffset",array:"strokeDasharray"};function ox(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?nx:ix;e[o.offset]=we.transform(-n);const a=we.transform(t),s=we.transform(r);e[o.array]=`${a} ${s}`}function Ql(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Xl(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rx(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&ox(h,a,s,u,!1)}const nh=()=>({...Zl(),attrs:{}}),Jl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ax(e,t,r,n){const i=g.useMemo(()=>{const o=nh();return Ql(o,t,{enableHardwareAcceleration:!1},Jl(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};eh(o,e.style,e),i.style={...o,...i.style}}return i}function sx(e=!1){return(r,n,i,{latestValues:o},a)=>{const u=(ql(r)?ax:Q2)(n,o,a,r),c={...tx(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=g.useMemo(()=>Ht(f)?f.get():f,[f]);return g.createElement(r,{...c,children:d})}}const eu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ih(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const oh=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 ah(e,t,r,n){ih(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(oh.has(i)?i:eu(i),t.attrs[i])}function tu(e,t){const{style:r}=e,n={};for(const i in r)(Ht(r[i])||t.style&&Ht(t.style[i])||Gd(i,e))&&(n[i]=r[i]);return n}function sh(e,t){const r=tu(e,t);for(const n in e)if(Ht(e[n])||Ht(t[n])){const i=yo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function ru(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function lh(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ia=e=>Array.isArray(e),lx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ux=e=>Ia(e)?e[e.length-1]||0:e;function Fa(e){const t=Ht(e)?e.get():e;return lx(t)?t.toValue():t}function cx({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:fx(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const uh=e=>(t,r)=>{const n=g.useContext(Ta),i=g.useContext(_a),o=()=>cx(e,t,n,i);return r?o():lh(o)};function fx(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=Fa(o[d]);let{initial:a,animate:s}=e;const u=Ma(e),l=Wd(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ka(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=ru(e,h);if(!m)return;const{transitionEnd:p,transition:v,...x}=m;for(const b in x){let C=x[b];if(Array.isArray(C)){const E=c?C.length-1:0;C=C[E]}C!==null&&(i[b]=C)}for(const b in p)i[b]=p[b]}),i}const bt=e=>e;class ch{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function dx(e){let t=new ch,r=new ch,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&a.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const ja=["prepare","read","update","preRender","render","postRender"],hx=40;function px(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=ja.reduce((f,d)=>(f[d]=dx(()=>r=!0),f),{}),a=f=>o[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,hx),1),i.timestamp=f,i.isProcessing=!0,ja.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:ja.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,v=!1)=>(r||u(),h.schedule(m,p,v)),f},{}),cancel:f=>ja.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:ot,cancel:jr,state:Dt,steps:nu}=px(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),gx={useVisualState:uh({scrapeMotionValuesFromProps:sh,createRenderState:nh,onMount:(e,t,{renderState:r,latestValues:n})=>{ot.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ot.render(()=>{Ql(r,n,{enableHardwareAcceleration:!1},Jl(t.tagName),e.transformTemplate),ah(t,r)})}})},mx={useVisualState:uh({scrapeMotionValuesFromProps:tu,createRenderState:Zl})};function vx(e,{forwardMotionProps:t=!1},r,n){return{...ql(e)?gx:mx,preloadedFeatures:r,useRender:sx(t),createVisualElement:n,Component:e}}function Lr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function La(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const yx=e=>t=>fh(t)&&e(t,La(t));function Rr(e,t,r,n){return Lr(e,t,yx(r),n)}const bx=(e,t)=>r=>t(e(r)),tn=(...e)=>e.reduce(bx);function dh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const hh=dh("dragHorizontal"),ph=dh("dragVertical");function gh(e){let t=!1;if(e==="y")t=ph();else if(e==="x")t=hh();else{const r=hh(),n=ph();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function mh(){const e=gh(!0);return e?(e(),!1):!0}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vh(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||mh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ot.update(()=>s[n](o,a))};return Rr(e.current,r,i,{passive:!e.getProps()[n]})}class xx extends rn{mount(){this.unmount=tn(vh(this.node,!0),vh(this.node,!1))}unmount(){}}class wx extends rn{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=tn(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yh=(e,t)=>t?e===t?!0:yh(e,t.parentElement):!1;function iu(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,La(r))}class Cx extends rn{constructor(){super(...arguments),this.removeStartListeners=bt,this.removeEndListeners=bt,this.removeAccessibleListeners=bt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=Rr(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();ot.update(()=>{yh(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),a=Rr(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tn(o,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||iu("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&ot.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",a),iu("down",(s,u)=>{this.startPress(s,u)})},r=Lr(this.node.current,"keydown",t),n=()=>{this.isPressing&&iu("cancel",(o,a)=>this.cancelPress(o,a))},i=Lr(this.node.current,"blur",n);this.removeAccessibleListeners=tn(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ot.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ot.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Rr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ou=new WeakMap,au=new WeakMap,Sx=e=>{const t=ou.get(e.target);t&&t(e)},Ex=e=>{e.forEach(Sx)};function Tx({root:e,...t}){const r=e||document;au.has(r)||au.set(r,{});const n=au.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ex,{root:e,...t})),n[i]}function _x(e,t,r){const n=Tx(t);return ou.set(e,r),n.observe(e),()=>{ou.delete(e),n.unobserve(e)}}const Ox={some:0,all:1};class kx extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Ox[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return _x(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Mx(t,r))&&this.startObserver()}unmount(){}}function Mx({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Px={inView:{Feature:kx},tap:{Feature:Cx},focus:{Feature:wx},hover:{Feature:xx}};function bh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Ax(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Dx(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ra(e,t,r){const n=e.getProps();return ru(n,t,r!==void 0?r:n.custom,Ax(e),Dx(e))}const $x="data-"+eu("framerAppearId");let So=bt,pr=bt;process.env.NODE_ENV!=="production"&&(So=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},pr=(e,t)=>{if(!e)throw new Error(t)});const nn=e=>e*1e3,Br=e=>e/1e3,Ix={current:!1},xh=e=>Array.isArray(e)&&typeof e[0]=="number";function wh(e){return!!(!e||typeof e=="string"&&Ch[e]||xh(e)||Array.isArray(e)&&e.every(wh))}const Eo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ch={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Eo([0,.65,.55,1]),circOut:Eo([.55,0,1,.45]),backIn:Eo([.31,.01,.66,-.59]),backOut:Eo([.33,1.53,.69,.99])};function Sh(e){if(e)return xh(e)?Eo(e):Array.isArray(e)?e.map(Sh):Ch[e]}function Fx(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=Sh(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function jx(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Eh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Lx=1e-7,Rx=12;function Bx(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=Eh(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Lx&&++s<Rx);return a}function To(e,t,r,n){if(e===t&&r===n)return bt;const i=o=>Bx(o,0,1,e,r);return o=>o===0||o===1?o:Eh(i(o),t,n)}const Nx=To(.42,0,1,1),zx=To(0,0,.58,1),Th=To(.42,0,.58,1),Vx=e=>Array.isArray(e)&&typeof e[0]!="number",_h=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Oh=e=>t=>1-e(1-t),kh=e=>1-Math.sin(Math.acos(e)),su=Oh(kh),Wx=_h(su),Mh=To(.33,1.53,.69,.99),lu=Oh(Mh),Hx=_h(lu),Ph={linear:bt,easeIn:Nx,easeInOut:Th,easeOut:zx,circIn:kh,circInOut:Wx,circOut:su,backIn:lu,backInOut:Hx,backOut:Mh,anticipate:e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1)))},Ah=e=>{if(Array.isArray(e)){pr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return To(t,r,n,i)}else if(typeof e=="string")return pr(Ph[e]!==void 0,`Invalid easing type '${e}'`),Ph[e];return e},uu=(e,t)=>r=>!!(wo(r)&&G2.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Dh=(e,t,r)=>n=>{if(!wo(n))return n;const[i,o,a,s]=n.match(Da);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ux=e=>Jr(0,255,e),cu={...Cn,transform:e=>Math.round(Ux(e))},Sn={test:uu("rgb","red"),parse:Dh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+cu.transform(e)+", "+cu.transform(t)+", "+cu.transform(r)+", "+xo(bo.transform(n))+")"};function Yx(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const fu={test:uu("#"),parse:Yx,transform:Sn.transform},Qn={test:uu("hsl","hue"),parse:Dh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Sr.transform(xo(t))+", "+Sr.transform(xo(r))+", "+xo(bo.transform(n))+")"},zt={test:e=>Sn.test(e)||fu.test(e)||Qn.test(e),parse:e=>Sn.test(e)?Sn.parse(e):Qn.test(e)?Qn.parse(e):fu.parse(e),transform:e=>wo(e)?e:e.hasOwnProperty("red")?Sn.transform(e):Qn.transform(e)},pt=(e,t,r)=>-r*e+r*t+e;function du(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Gx({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=du(u,s,e+1/3),o=du(u,s,e),a=du(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const hu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},qx=[fu,Sn,Qn],Kx=e=>qx.find(t=>t.test(e));function $h(e){const t=Kx(e);pr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Qn&&(r=Gx(r)),r}const Ih=(e,t)=>{const r=$h(e),n=$h(t),i={...r};return o=>(i.red=hu(r.red,n.red,o),i.green=hu(r.green,n.green,o),i.blue=hu(r.blue,n.blue,o),i.alpha=pt(r.alpha,n.alpha,o),Sn.transform(i))};function Xx(e){var t,r;return isNaN(e)&&wo(e)&&(((t=e.match(Da))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Xd))===null||r===void 0?void 0:r.length)||0)>0}const Fh={regex:U2,countKey:"Vars",token:"${v}",parse:bt},jh={regex:Xd,countKey:"Colors",token:"${c}",parse:zt.parse},Lh={regex:Da,countKey:"Numbers",token:"${n}",parse:Cn.parse};function pu(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Ba(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&pu(r,Fh),pu(r,jh),pu(r,Lh),r}function Rh(e){return Ba(e).values}function Bh(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Ba(e),o=t.length;return a=>{let s=i;for(let u=0;u<o;u++)u<n?s=s.replace(Fh.token,a[u]):u<n+r?s=s.replace(jh.token,zt.transform(a[u])):s=s.replace(Lh.token,xo(a[u]));return s}}const Zx=e=>typeof e=="number"?0:e;function Qx(e){const t=Rh(e);return Bh(e)(t.map(Zx))}const on={test:Xx,parse:Rh,createTransformer:Bh,getAnimatableNone:Qx},Nh=(e,t)=>r=>`${r>0?t:e}`;function zh(e,t){return typeof e=="number"?r=>pt(e,t,r):zt.test(e)?Ih(e,t):e.startsWith("var(")?Nh(e,t):Wh(e,t)}const Vh=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>zh(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Jx=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=zh(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},Wh=(e,t)=>{const r=on.createTransformer(t),n=Ba(e),i=Ba(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?tn(Vh(n.values,i.values),r):(So(!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.`),Nh(e,t))},_o=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Hh=(e,t)=>r=>pt(e,t,r);function ew(e){return typeof e=="number"?Hh:typeof e=="string"?zt.test(e)?Ih:Wh:Array.isArray(e)?Vh:typeof e=="object"?Jx:Hh}function tw(e,t,r){const n=[],i=r||ew(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||bt:t;s=tn(u,s)}n.push(s)}return n}function Uh(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;if(pr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tw(t,n,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=_o(e[c],e[c+1],l);return a[c](f)};return r?l=>u(Jr(e[0],e[o-1],l)):u}function rw(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=_o(0,t,n);e.push(pt(r,1,i))}}function nw(e){const t=[0];return rw(t,e.length-1),t}function iw(e,t){return e.map(r=>r*t)}function ow(e,t){return e.map(()=>t||Th).splice(0,e.length-1)}function Na({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Vx(n)?n.map(Ah):Ah(n),o={done:!1,value:t[0]},a=iw(r&&r.length===t.length?r:nw(t),e),s=Uh(a,t,{ease:Array.isArray(i)?i:ow(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}function Yh(e,t){return t?e*(1e3/t):0}const aw=5;function Gh(e,t,r){const n=Math.max(t-aw,0);return Yh(r-e(n),t-n)}const gu=.001,sw=.01,qh=10,lw=.05,uw=1;function cw({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;So(e<=nn(qh),"Spring duration must be 10 seconds or less");let a=1-t;a=Jr(lw,uw,a),e=Jr(sw,qh,Br(e)),a<1?(i=l=>{const c=l*a,f=c*e,d=c-r,h=mu(l,a),m=Math.exp(-f);return gu-d/h*m},o=l=>{const f=l*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-f),p=mu(Math.pow(l,2),a);return(-i(l)+gu>0?-1:1)*((d-h)*m)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-gu+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=dw(i,o,s);if(e=nn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const fw=12;function dw(e,t,r){let n=r;for(let i=1;i<fw;i++)n=n-e(n)/t(n);return n}function mu(e,t){return e*Math.sqrt(1-t*t)}const hw=["duration","bounce"],pw=["stiffness","damping","mass"];function Kh(e,t){return t.some(r=>e[r]!==void 0)}function gw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Kh(e,pw)&&Kh(e,hw)){const r=cw(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Xh({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=gw(n),h=c?-Br(c):0,m=u/(2*Math.sqrt(s*l)),p=o-i,v=Br(Math.sqrt(s/l)),x=Math.abs(p)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(m<1){const C=mu(v,m);b=E=>{const w=Math.exp(-m*v*E);return o-w*((h+m*v*p)/C*Math.sin(C*E)+p*Math.cos(C*E))}}else if(m===1)b=C=>o-Math.exp(-v*C)*(p+(h+v*p)*C);else{const C=v*Math.sqrt(m*m-1);b=E=>{const w=Math.exp(-m*v*E),_=Math.min(C*E,300);return o-w*((h+m*v*p)*Math.sinh(_)+C*p*Math.cosh(_))/C}}return{calculatedDuration:d&&f||null,next:C=>{const E=b(C);if(d)a.done=C>=f;else{let w=h;C!==0&&(m<1?w=Gh(b,C,E):w=0);const _=Math.abs(w)<=r,O=Math.abs(o-E)<=t;a.done=_&&O}return a.value=a.done?o:E,a}}}function Zh({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&k<s||u!==void 0&&k>u,m=k=>s===void 0?u:u===void 0||Math.abs(s-k)<Math.abs(u-k)?s:u;let p=r*t;const v=f+p,x=a===void 0?v:a(v);x!==v&&(p=x-f);const b=k=>-p*Math.exp(-k/n),C=k=>x+b(k),E=k=>{const D=b(k),L=C(k);d.done=Math.abs(D)<=l,d.value=d.done?x:L};let w,_;const O=k=>{h(d.value)&&(w=k,_=Xh({keyframes:[d.value,m(d.value)],velocity:Gh(C,k,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return O(0),{calculatedDuration:null,next:k=>{let D=!1;return!_&&w===void 0&&(D=!0,E(k),O(k)),w!==void 0&&k>w?_.next(k-w):(!D&&E(k),d)}}}const mw=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ot.update(t,!0),stop:()=>jr(t),now:()=>Dt.isProcessing?Dt.timestamp:performance.now()}},Qh=2e4;function Jh(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Qh;)t+=r,n=e.next(t);return t>=Qh?1/0:t}const vw={decay:Zh,inertia:Zh,tween:Na,keyframes:Na,spring:Xh};function za({autoplay:e=!0,delay:t=0,driver:r=mw,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,m=!1,p,v;const x=()=>{v=new Promise(j=>{p=j})};x();let b;const C=vw[i]||Na;let E;C!==Na&&typeof n[0]!="number"&&(E=Uh([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let _;s==="mirror"&&(_=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let O="idle",k=null,D=null,L=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Jh(w));const{calculatedDuration:re}=w;let pe=1/0,se=1/0;re!==null&&(pe=re+a,se=pe*(o+1)-a);let q=0;const G=j=>{if(D===null)return;h>0&&(D=Math.min(D,j)),h<0&&(D=Math.min(j-se/h,D)),k!==null?q=k:q=Math.round(j-D)*h;const X=q-t*(h>=0?1:-1),ee=h>=0?X<0:X>se;q=Math.max(X,0),O==="finished"&&k===null&&(q=se);let H=q,fe=w;if(o){const Q=q/pe;let ne=Math.floor(Q),be=Q%1;!be&&Q>=1&&(be=1),be===1&&ne--,ne=Math.min(ne,o+1);const R=!!(ne%2);R&&(s==="reverse"?(be=1-be,a&&(be-=a/pe)):s==="mirror"&&(fe=_));let Be=Jr(0,1,be);q>se&&(Be=s==="reverse"&&R?1:0),H=Be*pe}const ue=ee?{done:!1,value:n[0]}:fe.next(H);E&&(ue.value=E(ue.value));let{done:ge}=ue;!ee&&re!==null&&(ge=h>=0?q>=se:q<=0);const Z=k===null&&(O==="finished"||O==="running"&&ge);return f&&f(ue.value),Z&&Ie(),ue},me=()=>{b&&b.stop(),b=void 0},Ee=()=>{O="idle",me(),p(),x(),D=L=null},Ie=()=>{O="finished",c&&c(),me(),p()},Oe=()=>{if(m)return;b||(b=r(G));const j=b.now();u&&u(),k!==null?D=j-k:(!D||O==="finished")&&(D=j),O==="finished"&&x(),L=D,k=null,O="running",b.start()};e&&Oe();const $={then(j,X){return v.then(j,X)},get time(){return Br(q)},set time(j){j=nn(j),q=j,k!==null||!b||h===0?k=j:D=b.now()-j/h},get duration(){const j=w.calculatedDuration===null?Jh(w):w.calculatedDuration;return Br(j)},get speed(){return h},set speed(j){j===h||!b||(h=j,$.time=Br(q))},get state(){return O},play:Oe,pause:()=>{O="paused",k=q},stop:()=>{m=!0,O!=="idle"&&(O="idle",l&&l(),Ee())},cancel:()=>{L!==null&&G(L),Ee()},complete:()=>{O="finished"},sample:j=>(D=0,G(j))};return $}function yw(e){let t;return()=>(t===void 0&&(t=e()),t)}const bw=yw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xw=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Va=10,ww=2e4,Cw=(e,t)=>t.type==="spring"||e==="backgroundColor"||!wh(t.ease);function Sw(e,t,{onUpdate:r,onComplete:n,...i}){if(!(bw()&&xw.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,s,u;const l=()=>{u=new Promise(b=>{s=b})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(Cw(t,i)){const b=za({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const E=[];let w=0;for(;!C.done&&w<ww;)C=b.sample(w),E.push(C.value),w+=Va;h=void 0,c=E,f=w-Va,d="linear"}const m=Fx(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(m.startTime=Dt.isProcessing?Dt.timestamp:performance.now());const p=()=>m.cancel(),v=()=>{ot.update(p),s(),l()};return m.onfinish=()=>{e.set(jx(c,i)),n&&n(),v()},{then(b,C){return u.then(b,C)},attachTimeline(b){return m.timeline=b,m.onfinish=null,bt},get time(){return Br(m.currentTime||0)},set time(b){m.currentTime=nn(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return Br(f)},play:()=>{a||(m.play(),jr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const C=za({...i,autoplay:!1});e.setWithVelocity(C.sample(b-Va).value,C.sample(b).value,Va)}v()},complete:()=>m.finish(),cancel:v}}function Ew({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:bt,pause:bt,stop:bt,then:o=>(o(),Promise.resolve()),cancel:bt,complete:bt});return t?za({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Tw={type:"spring",stiffness:500,damping:25,restSpeed:10},_w=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ow={type:"keyframes",duration:.8},kw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mw=(e,{keyframes:t})=>t.length>2?Ow:wn.has(e)?e.startsWith("scale")?_w(t[1]):Tw:kw,vu=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(on.test(t)||t==="0")&&!t.startsWith("url(")),Pw=new Set(["brightness","contrast","saturate","opacity"]);function Aw(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Da)||[];if(!n)return e;const i=r.replace(n,"");let o=Pw.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Dw=/([a-z-]*)\(.*?\)/g,yu={...on,getAnimatableNone:e=>{const t=e.match(Dw);return t?t.map(Aw).join(" "):e}},$w={...Jd,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:yu,WebkitFilter:yu},bu=e=>$w[e];function ep(e,t){let r=bu(e);return r!==yu&&(r=on),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tp=e=>/^0[^.\s]+$/.test(e);function Iw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tp(e)}function Fw(e,t,r,n){const i=vu(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?a:o[l-1]),Iw(o[l])&&u.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(s=o[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];o[c]=ep(t,s)}return o}function jw({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function rp(e,t){return e[t]||e.default||e}const xu=(e,t,r,n={})=>i=>{const o=rp(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-nn(a);const u=Fw(t,e,r,o),l=u[0],c=u[u.length-1],f=vu(e,l),d=vu(e,c);So(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(jw(o)||(h={...h,...Mw(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!f||!d||Ix.current||o.type===!1)return Ew(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Sw(t,e,h);if(m)return m}return za(h)};function Wa(e){return!!(Ht(e)&&e.add)}const np=e=>/^\-?\d*\.?\d+$/.test(e);function wu(e,t){e.indexOf(t)===-1&&e.push(t)}function Cu(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Su{constructor(){this.subscriptions=[]}add(t){return wu(this.subscriptions,t),()=>Cu(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ip=new Set;function Eu(e,t,r){e||ip.has(t)||(console.warn(t),r&&console.warn(r),ip.add(t))}const Lw=e=>!isNaN(parseFloat(e));class Rw{constructor(t,r={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:a}=Dt;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,ot.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ot.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Lw(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Eu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Su);const n=this.events[t].add(r);return t==="change"?()=>{n(),ot.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Yh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jn(e,t){return new Rw(e,t)}const op=e=>t=>t.test(e),ap=[Cn,we,Sr,en,K2,q2,{test:e=>e==="auto",parse:e=>e}],Oo=e=>ap.find(op(e)),Bw=[...ap,zt,on],Nw=e=>Bw.find(op(e));function zw(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jn(r))}function Vw(e,t){const r=Ra(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=ux(o[a]);zw(e,a,s)}}function Ww(e,t,r){var n,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const u=o[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(np(c)||tp(c))?c=parseFloat(c):!Nw(c)&&on.test(l)&&(c=ep(u,l)),e.addValue(u,Jn(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function Hw(e,t){return t?(t[e]||t.default||t).from:void 0}function Uw(e,t,r){const n={};for(const i in e){const o=Hw(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function Yw({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function sp(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(o=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&Yw(c,f))continue;const m={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const v=e.getProps()[$x];v&&(m.elapsed=window.HandoffAppearAnimations(v,f,d,ot),m.syncStart=!0)}d.start(xu(f,d,h,e.shouldReduceMotion&&wn.has(f)?{type:!1}:m));const p=d.animation;Wa(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return a&&Promise.all(l).then(()=>{a&&Vw(e,a)}),l}function Tu(e,t,r={}){const n=Ra(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(sp(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Gw(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function Gw(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(qw).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(Tu(l,t,{...o,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function qw(e,t){return e.sortNodePosition(t)}function Kw(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>Tu(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Tu(e,t,r);else{const i=typeof t=="function"?Ra(e,t,r.custom):t;n=Promise.all(sp(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Xw=[...Hl].reverse(),Zw=Hl.length;function Qw(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Kw(e,r,n)))}function Jw(e){let t=Qw(e);const r=t5();let n=!0;const i=(u,l)=>{const c=Ra(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function o(u){t=u(e)}function a(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let m={},p=1/0;for(let x=0;x<Zw;x++){const b=Xw[x],C=r[b],E=c[b]!==void 0?c[b]:f[b],w=mo(E),_=b===l?C.isActive:null;_===!1&&(p=x);let O=E===f[b]&&E!==c[b]&&w;if(O&&n&&e.manuallyAnimateOnMount&&(O=!1),C.protectedKeys={...m},!C.isActive&&_===null||!E&&!C.prevProp||ka(E)||typeof E=="boolean")continue;const k=e5(C.prevProp,E);let D=k||b===l&&C.isActive&&!O&&w||x>p&&w;const L=Array.isArray(E)?E:[E];let re=L.reduce(i,{});_===!1&&(re={});const{prevResolvedValues:pe={}}=C,se={...pe,...re},q=G=>{D=!0,h.delete(G),C.needsAnimating[G]=!0};for(const G in se){const me=re[G],Ee=pe[G];m.hasOwnProperty(G)||(me!==Ee?Ia(me)&&Ia(Ee)?!bh(me,Ee)||k?q(G):C.protectedKeys[G]=!0:me!==void 0?q(G):h.add(G):me!==void 0&&h.has(G)?q(G):C.protectedKeys[G]=!0)}C.prevProp=E,C.prevResolvedValues=re,C.isActive&&(m={...m,...re}),n&&e.blockInitialAnimation&&(D=!1),D&&!O&&d.push(...L.map(G=>({animation:G,options:{type:b,...u}})))}if(h.size){const x={};h.forEach(b=>{const C=e.getBaseTarget(b);C!==void 0&&(x[b]=C)}),d.push({animation:x})}let v=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),r[u].isActive=l;const d=a(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function e5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bh(t,e):!1}function En(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t5(){return{animate:En(!0),whileInView:En(),whileHover:En(),whileTap:En(),whileDrag:En(),whileFocus:En(),exit:En()}}class r5 extends rn{constructor(t){super(t),t.animationState||(t.animationState=Jw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ka(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let n5=0;class i5 extends rn{constructor(){super(...arguments),this.id=n5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const o5={animation:{Feature:r5},exit:{Feature:i5}},lp=(e,t)=>Math.abs(e-t);function a5(e,t){const r=lp(e.x,t.x),n=lp(e.y,t.y);return Math.sqrt(r**2+n**2)}class up{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Ou(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=a5(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=Dt;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=_u(c,this.transformPagePoint),ot.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Ou(l.type==="pointercancel"?this.lastMoveEventInfo:_u(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!fh(t))return;this.handlers=r,this.transformPagePoint=n;const i=La(t),o=_u(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=Dt;this.history=[{...a,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,Ou(o,this.history)),this.removeListeners=tn(Rr(window,"pointermove",this.handlePointerMove),Rr(window,"pointerup",this.handlePointerUp),Rr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jr(this.updatePoint)}}function _u(e,t){return t?{point:t(e.point)}:e}function cp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ou({point:e},t){return{point:e,delta:cp(e,fp(t)),offset:cp(e,s5(t)),velocity:l5(t,.1)}}function s5(e){return e[0]}function fp(e){return e[e.length-1]}function l5(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=fp(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>nn(t)));)r--;if(!n)return{x:0,y:0};const o=Br(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Qt(e){return e.max-e.min}function ku(e,t=0,r=.01){return Math.abs(e-t)<=r}function dp(e,t,r,n=.5){e.origin=n,e.originPoint=pt(t.min,t.max,e.origin),e.scale=Qt(r)/Qt(t),(ku(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=pt(r.min,r.max,e.origin)-e.originPoint,(ku(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ko(e,t,r,n){dp(e.x,t.x,r.x,n?n.originX:void 0),dp(e.y,t.y,r.y,n?n.originY:void 0)}function hp(e,t,r){e.min=r.min+t.min,e.max=e.min+Qt(t)}function u5(e,t,r){hp(e.x,t.x,r.x),hp(e.y,t.y,r.y)}function pp(e,t,r){e.min=t.min-r.min,e.max=e.min+Qt(t)}function Mo(e,t,r){pp(e.x,t.x,r.x),pp(e.y,t.y,r.y)}function c5(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?pt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?pt(r,e,n.max):Math.min(e,r)),e}function gp(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function f5(e,{top:t,left:r,bottom:n,right:i}){return{x:gp(e.x,r,i),y:gp(e.y,t,n)}}function mp(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function d5(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function h5(e,t){let r=.5;const n=Qt(e),i=Qt(t);return i>n?r=_o(t.min,t.max-n,e.min):n>i&&(r=_o(e.min,e.max-i,t.min)),Jr(0,1,r)}function p5(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Mu=.35;function g5(e=Mu){return e===!1?e=0:e===!0&&(e=Mu),{x:vp(e,"left","right"),y:vp(e,"top","bottom")}}function vp(e,t,r){return{min:yp(e,t),max:yp(e,r)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:bp(),y:bp()}),xp=()=>({min:0,max:0}),kt=()=>({x:xp(),y:xp()});function Er(e){return[e("x"),e("y")]}function wp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function m5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v5(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Pu(e){return e===void 0||e===1}function Au({scale:e,scaleX:t,scaleY:r}){return!Pu(e)||!Pu(t)||!Pu(r)}function Tn(e){return Au(e)||Cp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cp(e){return Sp(e.x)||Sp(e.y)}function Sp(e){return e&&e!=="0%"}function Ha(e,t,r){const n=e-r,i=t*n;return r+i}function Ep(e,t,r,n,i){return i!==void 0&&(e=Ha(e,i,n)),Ha(e,r,n)+t}function Du(e,t=0,r=1,n,i){e.min=Ep(e.min,t,r,n,i),e.max=Ep(e.max,t,r,n,i)}function Tp(e,{x:t,y:r}){Du(e.x,t.translate,t.scale,t.originPoint),Du(e.y,r.translate,r.scale,r.originPoint)}function y5(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=r[s],a=o.projectionDelta;const u=o.instance;u&&u.style&&u.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ti(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Tp(e,a)),n&&Tn(o.latestValues)&&ti(e,o.latestValues))}t.x=_p(t.x),t.y=_p(t.y)}function _p(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function an(e,t){e.min=e.min+t,e.max=e.max+t}function Op(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=pt(e.min,e.max,o);Du(e,t[r],t[n],a,t.scale)}const b5=["x","scaleX","originX"],x5=["y","scaleY","originY"];function ti(e,t){Op(e.x,t,b5),Op(e.y,t,x5)}function kp(e,t){return wp(v5(e.getBoundingClientRect(),t))}function w5(e,t,r){const n=kp(e,r),{scroll:i}=t;return i&&(an(n.x,i.offset.x),an(n.y,i.offset.y)),n}const C5=new WeakMap;class S5{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:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(La(u,"page").point)},o=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gh(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Er(m=>{let p=this.getAxisMotionValue(m).get()||0;if(Sr.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[m];x&&(p=Qt(x)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&ot.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=l;if(f&&this.currentDirection===null){this.currentDirection=E5(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,m),this.updateAxis("y",l.point,m),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new up(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ot.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Ua(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=c5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=f5(n.layoutBox,t):this.constraints=!1,this.elastic=g5(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Er(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=p5(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Zn(t))return!1;const n=t.current;pr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=w5(n,i.root,this.visualElement.getTransformPagePoint());let a=d5(i.layout.layoutBox,o);if(r){const s=r(m5(a));this.hasMutatedConstraints=!!s,s&&(a=wp(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=Er(c=>{if(!Ua(c,r,this.currentDirection))return;let f=u&&u[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(xu(t,n,0,r))}stopAnimation(){Er(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Er(r=>{const{drag:n}=this.getProps();if(!Ua(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[r];o.set(t[r]-pt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Zn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Er(a=>{const s=this.getAxisMotionValue(a);if(s){const u=s.get();i[a]=h5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Er(a=>{if(!Ua(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(pt(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;C5.set(this.visualElement,this);const t=this.visualElement.current,r=Rr(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Zn(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const a=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Er(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mu,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ua(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function E5(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class T5 extends rn{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new S5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mp=e=>(t,r)=>{e&&ot.update(()=>e(t,r))};class _5 extends rn{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new up(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Mp(t),onStart:Mp(r),onMove:n,onEnd:(o,a)=>{delete this.session,i&&ot.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Rr(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 O5(){const e=g.useContext(_a);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=g.useId();return g.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const r=Pp(e,t.target.x),n=Pp(e,t.target.y);return`${r}% ${n}%`}},k5={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=on.parse(e);if(i.length>5)return n;const o=on.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=pt(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}};class M5 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;z2(P5),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||ot.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ap(e){const[t,r]=O5(),n=g.useContext(Gl);return g.createElement(M5,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(Yd),isPresent:t,safeToRemove:r})}const P5={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:k5},Dp=["TopLeft","TopRight","BottomLeft","BottomRight"],A5=Dp.length,$p=e=>typeof e=="string"?parseFloat(e):e,Ip=e=>typeof e=="number"||we.test(e);function D5(e,t,r,n,i,o){i?(e.opacity=pt(0,r.opacity!==void 0?r.opacity:1,$5(n)),e.opacityExit=pt(t.opacity!==void 0?t.opacity:1,0,I5(n))):o&&(e.opacity=pt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<A5;a++){const s=`border${Dp[a]}Radius`;let u=Fp(t,s),l=Fp(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ip(u)===Ip(l)?(e[s]=Math.max(pt($p(u),$p(l),n),0),(Sr.test(l)||Sr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=pt(t.rotate||0,r.rotate||0,n))}function Fp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $5=jp(0,.5,su),I5=jp(.5,.95,bt);function jp(e,t,r){return n=>n<e?0:n>t?1:r(_o(e,t,n))}function Lp(e,t){e.min=t.min,e.max=t.max}function ur(e,t){Lp(e.x,t.x),Lp(e.y,t.y)}function Rp(e,t,r,n,i){return e-=t,e=Ha(e,1/r,n),i!==void 0&&(e=Ha(e,1/i,n)),e}function F5(e,t=0,r=1,n=.5,i,o=e,a=e){if(Sr.test(t)&&(t=parseFloat(t),t=pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=pt(o.min,o.max,n);e===o&&(s-=t),e.min=Rp(e.min,t,r,s,i),e.max=Rp(e.max,t,r,s,i)}function Bp(e,t,[r,n,i],o,a){F5(e,t[r],t[n],t[i],t.scale,o,a)}const j5=["x","scaleX","originX"],L5=["y","scaleY","originY"];function Np(e,t,r,n){Bp(e.x,t,j5,r?r.x:void 0,n?n.x:void 0),Bp(e.y,t,L5,r?r.y:void 0,n?n.y:void 0)}function zp(e){return e.translate===0&&e.scale===1}function Vp(e){return zp(e.x)&&zp(e.y)}function R5(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 Wp(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 Hp(e){return Qt(e.x)/Qt(e.y)}class B5{constructor(){this.members=[]}add(t){wu(this.members,t),t.scheduleRender()}remove(t){if(Cu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Up(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const N5=(e,t)=>e.depth-t.depth;class z5{constructor(){this.children=[],this.isDirty=!1}add(t){wu(this.children,t),this.isDirty=!0}remove(t){Cu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(N5),this.isDirty=!1,this.children.forEach(t)}}function V5(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(jr(n),e(o-t))};return ot.read(n,!0),()=>jr(n)}function W5(e){window.MotionDebug&&window.MotionDebug.record(e)}function H5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U5(e,t,r){const n=Ht(e)?e:Jn(e);return n.start(xu("",n,t,r)),n.animation}const Yp=["","X","Y","Z"],Gp=1e3;let Y5=0;const _n={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=Y5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{_n.totalNodes=_n.resolvedTargetDeltas=_n.recalculatedProjection=0,this.nodes.forEach(K5),this.nodes.forEach(e3),this.nodes.forEach(t3),this.nodes.forEach(X5),W5(_n)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new z5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Su),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=H5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=V5(d,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(Xp))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||a3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),b=!this.targetLayout||!Wp(this.targetLayout,m)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const E={...rp(p,"layout"),onPlay:v,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else d||Xp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jr(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(r3),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kp);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(J5),this.nodes.forEach(G5),this.nodes.forEach(q5),this.clearAllSnapshots();const s=performance.now();Dt.delta=Jr(0,1e3/60,s-Dt.timestamp),Dt.timestamp=s,Dt.isProcessing=!0,nu.update.process(Dt),nu.preRender.process(Dt),nu.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Z5),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){ot.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Vp(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||Tn(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),s3(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kt();const s=a.measureViewportBox(),{scroll:u}=this.root;return u&&(an(s.x,u.offset.x),an(s.y,u.offset.y)),s}removeElementScroll(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){ur(s,a);const{scroll:d}=this.root;d&&(an(s.x,-d.offset.x),an(s.y,-d.offset.y))}an(s.x,c.offset.x),an(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const u=kt();ur(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ti(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Tn(c.latestValues)&&ti(u,c.latestValues)}return Tn(this.latestValues)&&ti(u,this.latestValues),u}removeTransform(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Tn(l.latestValues))continue;Au(l.latestValues)&&l.updateSnapshot();const c=kt(),f=l.measurePageBox();ur(c,f),Np(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return Tn(this.latestValues)&&Np(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Dt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ur(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(),u5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ur(this.target,this.layout.layoutBox),Tp(this.target,this.targetDelta)):ur(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.target,h.target),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_n.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Au(this.parent.latestValues)||Cp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;ur(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;y5(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=ei(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei());const p=this.projectionTransform;ko(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Up(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),_n.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=ei();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=kt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(o3));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const w=E/1e3;Zp(f.x,a.x,w),Zp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i3(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&R5(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=kt()),ur(C,this.relativeTarget)),p&&(this.animationValues=c,D5(c,l,this.latestValues,w,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ot.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=U5(0,Gp,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&r0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||kt();const f=Qt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const d=Qt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+d}ur(s,u),ti(s,c),ko(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new B5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<Yp.length;c++){const f="rotate"+Yp[c];u[f]&&(l[f]=u[f],a.setStaticValue(f,0))}a.render();for(const c in l)a.setStaticValue(c,l[c]);a.scheduleRender()}getProjectionStyles(a={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Fa(a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Fa(a.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=Up(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Pa){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=Pa[p],b=l.transform==="none"?d[p]:v(d[p],f);if(x){const C=x.length;for(let E=0;E<C;E++)l[x[E]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=f===this?Fa(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Kp),this.root.sharedNodes.clear()}}}function G5(e){e.updateLayout()}function q5(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(d);d.min=n[f].min,d.max=d.min+h}):r0(o,r.layoutBox,n)&&Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=ei();ko(s,n,r.layoutBox);const u=ei();a?ko(u,e.applyTransform(i,!0),r.measuredBox):ko(u,n,r.layoutBox);const l=!Vp(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=kt();Mo(m,r.layoutBox,d.layoutBox);const p=kt();Mo(p,n,h.layoutBox),Wp(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function K5(e){_n.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 X5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Z5(e){e.clearSnapshot()}function Kp(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function J5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e3(e){e.resolveTargetDelta()}function t3(e){e.calcProjection()}function r3(e){e.resetRotation()}function n3(e){e.removeLeadSnapshot()}function Zp(e,t,r){e.translate=pt(t.translate,0,r),e.scale=pt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Qp(e,t,r,n){e.min=pt(t.min,r.min,n),e.max=pt(t.max,r.max,n)}function i3(e,t,r,n){Qp(e.x,t.x,r.x,n),Qp(e.y,t.y,r.y,n)}function o3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a3={duration:.45,ease:[.4,0,.1,1]},Jp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),e0=Jp("applewebkit/")&&!Jp("chrome/")?Math.round:bt;function t0(e){e.min=e0(e.min),e.max=e0(e.max)}function s3(e){t0(e.x),t0(e.y)}function r0(e,t,r){return e==="position"||e==="preserve-aspect"&&!ku(Hp(t),Hp(r),.2)}const l3=qp({attachResizeListener:(e,t)=>Lr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$u={current:void 0},n0=qp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$u.current){const e=new l3({});e.mount(window),e.setOptions({layoutScroll:!0}),$u.current=e}return $u.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),u3={pan:{Feature:_5},drag:{Feature:T5,ProjectionNode:n0,MeasureLayout:Ap}},c3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f3(e){const t=c3.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const d3=4;function Iu(e,t,r=1){pr(r<=d3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=f3(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return np(a)?parseFloat(a):a}else return Kl(i)?Iu(i,t,r+1):i}function h3(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!Kl(o))return;const a=Iu(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!Kl(o))continue;const a=Iu(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const p3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),i0=e=>p3.has(e),g3=e=>Object.keys(e).some(i0),Ga=e=>e===Cn||e===we,o0=(e,t)=>parseFloat(e.split(", ")[t]),a0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return o0(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?o0(o[1],e):0}},m3=new Set(["x","y","z"]),v3=yo.filter(e=>!m3.has(e));function y3(e){const t=[];return v3.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ri={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:a0(4,13),y:a0(5,14)};ri.translateX=ri.x,ri.translateY=ri.y;const b3=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=ri[l](n,o)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=ri[l](u,o)}),e},x3=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(i0);let o=[],a=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Oo(c);const d=t[u];let h;if(Ia(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=Oo(c);for(let v=p;v<m&&d[v]!==null;v++)h?pr(Oo(d[v])===h,"All keyframes must be of the same type"):(h=Oo(d[v]),pr(h===f||Ga(f)&&Ga(h),"Keyframes must be of the same dimension as the current value"))}else h=Oo(d);if(f!==h)if(Ga(f)&&Ga(h)){const m=l.get();typeof m=="string"&&l.set(parseFloat(m)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===we&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(a||(o=y3(e),a=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=b3(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Oa&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function w3(e,t,r,n){return g3(t)?x3(e,t,r,n):{target:t,transitionEnd:n}}const C3=(e,t,r,n)=>{const i=h3(e,t,n);return t=i.target,n=i.transitionEnd,w3(e,t,r,n)},Fu={current:null},s0={current:!1};function S3(){if(s0.current=!0,!!Oa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fu.current=e.matches;e.addListener(t),t()}else Fu.current=!1}function E3(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(Ht(o))e.addValue(i,o),Wa(n)&&n.add(i),process.env.NODE_ENV==="development"&&Eu(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(Ht(a))e.addValue(i,Jn(o,{owner:e})),Wa(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Jn(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const l0=new WeakMap,u0=Object.keys(vo),T3=u0.length,c0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_3=Ul.length;class O3{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ot.render(this.render,!1,!0);const{latestValues:s,renderState:u}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Ma(r),this.isVariantNode=Wd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&Ht(d)&&(d.set(s[f],!1),Wa(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,l0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),s0.current||S3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fu.current,process.env.NODE_ENV!=="production"&&Eu(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(){l0.delete(this.current),this.projection&&this.projection.unmount(),jr(this.notifyUpdate),jr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=wn.has(t),i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ot.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let a,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?So(!1,u):pr(!1,u)}for(let u=0;u<T3;u++){const l=u0[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=vo[l];d&&(a=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&Zn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<c0.length;n++){const i=c0[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=E3(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<_3;n++){const i=Ul[n],o=this.props[i];(mo(o)||o===!1)&&(r[i]=o)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=ru(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ht(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Su),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class f0 extends O3{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let a=Uw(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){Ww(this,n,a);const s=C3(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function k3(e){return window.getComputedStyle(e)}class M3 extends f0{readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}else{const n=k3(t),i=(Kd(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return kp(t,r)}build(t,r,n,i){Xl(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return tu(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){ih(t,r,n,i)}}class P3 extends f0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}return r=oh.has(r)?r:eu(r),t.getAttribute(r)}measureInstanceViewportBox(){return kt()}scrapeMotionValuesFromProps(t,r){return sh(t,r)}build(t,r,n,i){Ql(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){ah(t,r,n,i)}mount(t){this.isSVGTag=Jl(t.tagName),super.mount(t)}}const A3=(e,t)=>ql(e)?new P3(t,{enableHardwareAcceleration:!1}):new M3(t,{enableHardwareAcceleration:!0}),D3={layout:{ProjectionNode:n0,MeasureLayout:Ap}},gr=B2(vx);function d0(){const e=g.useRef(!1);return Vl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $3(){const e=d0(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>ot.postRender(n),[n]),t]}class I3 extends xe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function F3({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:u}=i.current;if(t||!n.current||!o||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
28
28
|
[data-motion-pop-id="${r}"] {
|
|
29
29
|
position: absolute !important;
|
|
30
30
|
width: ${o}px !important;
|
|
31
31
|
height: ${a}px !important;
|
|
32
32
|
top: ${s}px !important;
|
|
33
|
-
left: ${
|
|
33
|
+
left: ${u}px !important;
|
|
34
34
|
}
|
|
35
|
-
`),()=>{document.head.removeChild(l)}},[t]),
|
|
35
|
+
`),()=>{document.head.removeChild(l)}},[t]),xe.createElement(I3,{isPresent:t,childRef:n,sizeRef:i},xe.cloneElement(e,{ref:n}))}const ju=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=lh(j3),u=g.useId(),l=g.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[r]);return g.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[r]),xe.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=xe.createElement(F3,{isPresent:r},e)),xe.createElement(_a.Provider,{value:l},e)};function j3(){return new Map}function L3(e){return g.useEffect(()=>()=>e(),[])}const ni=e=>e.key||"";function R3(e,t){e.forEach(r=>{const n=ni(r);t.set(n,r)})}function B3(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const h0=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{pr(!i,"Replace exitBeforeEnter with mode='wait'");const s=g.useContext(Gl).forceRender||$3()[0],u=d0(),l=B3(e);let c=l;const f=g.useRef(new Map).current,d=g.useRef(c),h=g.useRef(new Map).current,m=g.useRef(!0);if(Vl(()=>{m.current=!1,R3(l,h),d.current=c}),L3(()=>{m.current=!0,h.clear(),f.clear()}),m.current)return xe.createElement(xe.Fragment,null,c.map(b=>xe.createElement(ju,{key:ni(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:a},b)));c=[...c];const p=d.current.map(ni),v=l.map(ni),x=p.length;for(let b=0;b<x;b++){const C=p[b];v.indexOf(C)===-1&&!f.has(C)&&f.set(C,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((b,C)=>{if(v.indexOf(C)!==-1)return;const E=h.get(C);if(!E)return;const w=p.indexOf(C);let _=b;if(!_){const O=()=>{h.delete(C),f.delete(C);const k=d.current.findIndex(D=>D.key===C);if(d.current.splice(k,1),!f.size){if(d.current=l,u.current===!1)return;s(),n&&n()}};_=xe.createElement(ju,{key:ni(E),isPresent:!1,onExitComplete:O,custom:t,presenceAffectsLayout:o,mode:a},E),f.set(C,_)}c.splice(w,0,_)}),c=c.map(b=>{const C=b.key;return f.has(C)?b:xe.createElement(ju,{key:ni(b),isPresent:!0,presenceAffectsLayout:o,mode:a},b)}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),xe.createElement(xe.Fragment,null,f.size?c:c.map(b=>g.cloneElement(b)))};function N3({children:e,features:t,strict:r=!1}){const[,n]=g.useState(!Lu(t)),i=g.useRef(void 0);if(!Lu(t)){const{renderer:o,...a}=t;i.current=o,Yl(a)}return g.useEffect(()=>{Lu(t)&&t().then(({renderer:o,...a})=>{Yl(a),i.current=o,n(!0)})},[]),xe.createElement(Wl.Provider,{value:{renderer:i.current,strict:r}},e)}function Lu(e){return typeof e=="function"}const z3={...{renderer:A3,...o5,...Px},...u3,...D3},V3=({open:e=!1,variants:t,onClose:r,children:n,sx:i,...o})=>y.jsx(h0,{children:e&&y.jsx(P.Dialog,{fullWidth:!0,maxWidth:"xs",open:e,onClose:r,PaperComponent:a=>y.jsxs(P.Box,{component:gr.div,...t||fo({distance:120,durationIn:.32,durationOut:.24,easeIn:"easeInOut"}).inUp,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[y.jsx(P.Box,{onClick:r,sx:{width:"100%",height:"100%",position:"fixed"}}),y.jsx(P.Paper,{sx:i,...a,children:a.children})]}),...o,children:n})}),W3=({text:e,variants:t,sx:r,...n})=>y.jsx(P.Box,{component:gr.div,sx:{m:0,typography:"h1",overflow:"hidden",display:"inline-flex",...r},...n,children:e.split("").map((i,o)=>y.jsx(gr.span,{variants:t||fo().inUp,children:i},o))}),p0=g.forwardRef(({size:e="large",children:t,sx:r,sxWrap:n,...i},o)=>y.jsx(G3,{size:e,sxWrap:n,children:y.jsx(P.Fab,{ref:o,size:e,sx:r,...i,children:t})}));p0.displayName="FabButtonAnimate";const H3={hover:{scale:1.07},tap:{scale:.97}},U3={hover:{scale:1.06},tap:{scale:.98}},Y3={hover:{scale:1.05},tap:{scale:.99}},G3=({size:e,children:t,sxWrap:r})=>{const n=e==="small",i=e==="large";return y.jsx(P.Box,{component:gr.div,whileTap:"tap",whileHover:"hover",variants:n&&H3||i&&Y3||U3,sx:{display:"inline-flex",...r},children:t})},q3={hover:{scale:1.1},tap:{scale:.95}},K3={hover:{scale:1.09},tap:{scale:.97}},X3={hover:{scale:1.08},tap:{scale:.99}},Z3=({size:e,children:t})=>{const r=e==="small",n=e==="large";return y.jsx(P.Box,{component:gr.div,whileTap:"tap",whileHover:"hover",variants:r&&q3||n&&X3||K3,sx:{display:"inline-flex"},children:t})},g0=g.forwardRef(({children:e,size:t="medium",...r},n)=>y.jsx(Z3,{size:t,children:y.jsx(P.IconButton,{size:t,ref:n,...r,children:e})}));g0.displayName="IconButtonAnimate";function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(this,arguments)}function ii(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function m0(e){if(!ii(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=m0(e[r])}),t}function Nr(e,t,r={clone:!0}){const n=r.clone?Ae({},e):e;return ii(e)&&ii(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ii(t[i])&&i in e&&ii(e[i])?n[i]=Nr(e[i],t[i],r):r.clone?n[i]=ii(t[i])?m0(t[i]):t[i]:n[i]=t[i])}),n}var Ru={exports:{}},qa={exports:{}},Ke={};/** @license React v16.13.1
|
|
36
36
|
* react-is.production.min.js
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var
|
|
42
|
+
*/var v0;function Q3(){if(v0)return Ke;v0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var _=w.$$typeof;switch(_){case t:switch(w=w.type,w){case u:case l:case n:case o:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case m:case h:case a:return w;default:return _}}case r:return _}}}function E(w){return C(w)===l}return Ke.AsyncMode=u,Ke.ConcurrentMode=l,Ke.ContextConsumer=s,Ke.ContextProvider=a,Ke.Element=t,Ke.ForwardRef=c,Ke.Fragment=n,Ke.Lazy=m,Ke.Memo=h,Ke.Portal=r,Ke.Profiler=o,Ke.StrictMode=i,Ke.Suspense=f,Ke.isAsyncMode=function(w){return E(w)||C(w)===u},Ke.isConcurrentMode=E,Ke.isContextConsumer=function(w){return C(w)===s},Ke.isContextProvider=function(w){return C(w)===a},Ke.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ke.isForwardRef=function(w){return C(w)===c},Ke.isFragment=function(w){return C(w)===n},Ke.isLazy=function(w){return C(w)===m},Ke.isMemo=function(w){return C(w)===h},Ke.isPortal=function(w){return C(w)===r},Ke.isProfiler=function(w){return C(w)===o},Ke.isStrictMode=function(w){return C(w)===i},Ke.isSuspense=function(w){return C(w)===f},Ke.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===o||w===i||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===c||w.$$typeof===v||w.$$typeof===x||w.$$typeof===b||w.$$typeof===p)},Ke.typeOf=C,Ke}var Xe={};/** @license React v16.13.1
|
|
43
43
|
* react-is.development.js
|
|
44
44
|
*
|
|
45
45
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
49
|
+
*/var y0;function J3(){return y0||(y0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function C(R){return typeof R=="string"||typeof R=="function"||R===n||R===l||R===o||R===i||R===f||R===d||typeof R=="object"&&R!==null&&(R.$$typeof===m||R.$$typeof===h||R.$$typeof===a||R.$$typeof===s||R.$$typeof===c||R.$$typeof===v||R.$$typeof===x||R.$$typeof===b||R.$$typeof===p)}function E(R){if(typeof R=="object"&&R!==null){var Be=R.$$typeof;switch(Be){case t:var le=R.type;switch(le){case u:case l:case n:case o:case i:case f:return le;default:var ht=le&&le.$$typeof;switch(ht){case s:case c:case m:case h:case a:return ht;default:return Be}}case r:return Be}}}var w=u,_=l,O=s,k=a,D=t,L=c,re=n,pe=m,se=h,q=r,G=o,me=i,Ee=f,Ie=!1;function Oe(R){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(R)||E(R)===u}function $(R){return E(R)===l}function j(R){return E(R)===s}function X(R){return E(R)===a}function ee(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function H(R){return E(R)===c}function fe(R){return E(R)===n}function ue(R){return E(R)===m}function ge(R){return E(R)===h}function Z(R){return E(R)===r}function Q(R){return E(R)===o}function ne(R){return E(R)===i}function be(R){return E(R)===f}Xe.AsyncMode=w,Xe.ConcurrentMode=_,Xe.ContextConsumer=O,Xe.ContextProvider=k,Xe.Element=D,Xe.ForwardRef=L,Xe.Fragment=re,Xe.Lazy=pe,Xe.Memo=se,Xe.Portal=q,Xe.Profiler=G,Xe.StrictMode=me,Xe.Suspense=Ee,Xe.isAsyncMode=Oe,Xe.isConcurrentMode=$,Xe.isContextConsumer=j,Xe.isContextProvider=X,Xe.isElement=ee,Xe.isForwardRef=H,Xe.isFragment=fe,Xe.isLazy=ue,Xe.isMemo=ge,Xe.isPortal=Z,Xe.isProfiler=Q,Xe.isStrictMode=ne,Xe.isSuspense=be,Xe.isValidElementType=C,Xe.typeOf=E}()),Xe}var b0;function x0(){return b0||(b0=1,process.env.NODE_ENV==="production"?qa.exports=Q3():qa.exports=J3()),qa.exports}/*
|
|
50
50
|
object-assign
|
|
51
51
|
(c) Sindre Sorhus
|
|
52
52
|
@license MIT
|
|
53
|
-
*/var
|
|
54
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
53
|
+
*/var Bu,w0;function e4(){if(w0)return Bu;w0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bu=i()?Object.assign:function(o,a){for(var s,u=n(o),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){l=e(s);for(var d=0;d<l.length;d++)r.call(s,l[d])&&(u[l[d]]=s[l[d]])}}return u},Bu}var Nu,C0;function zu(){if(C0)return Nu;C0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nu=e,Nu}var Vu,S0;function E0(){return S0||(S0=1,Vu=Function.call.bind(Object.prototype.hasOwnProperty)),Vu}var Wu,T0;function t4(){if(T0)return Wu;T0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zu(),r={},n=E0();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(n(o,c)){var f;try{if(typeof o[c]!="function"){var d=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=o[c](a,c,u,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Wu=i,Wu}var Hu,_0;function r4(){if(_0)return Hu;_0=1;var e=x0(),t=e4(),r=zu(),n=E0(),i=t4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Hu=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f($){var j=$&&(l&&$[l]||$[c]);if(typeof j=="function")return j}var d="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:b(),arrayOf:C,element:E(),elementType:w(),instanceOf:_,node:L(),objectOf:k,oneOf:O,oneOfType:D,shape:pe,exact:se};function m($,j){return $===j?$!==0||1/$===1/j:$!==$&&j!==j}function p($,j){this.message=$,this.data=j&&typeof j=="object"?j:{},this.stack=""}p.prototype=Error.prototype;function v($){if(process.env.NODE_ENV!=="production")var j={},X=0;function ee(fe,ue,ge,Z,Q,ne,be){if(Z=Z||d,ne=ne||ge,be!==r){if(u){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Be=Z+":"+ge;!j[Be]&&X<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+Z+"`. 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."),j[Be]=!0,X++)}}return ue[ge]==null?fe?ue[ge]===null?new p("The "+Q+" `"+ne+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+Q+" `"+ne+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:$(ue,ge,Z,Q,ne)}var H=ee.bind(null,!1);return H.isRequired=ee.bind(null,!0),H}function x($){function j(X,ee,H,fe,ue,ge){var Z=X[ee],Q=me(Z);if(Q!==$){var ne=Ee(Z);return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+H+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return v(j)}function b(){return v(a)}function C($){function j(X,ee,H,fe,ue){if(typeof $!="function")return new p("Property `"+ue+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var ge=X[ee];if(!Array.isArray(ge)){var Z=me(ge);return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+Z+"` supplied to `"+H+"`, expected an array."))}for(var Q=0;Q<ge.length;Q++){var ne=$(ge,Q,H,fe,ue+"["+Q+"]",r);if(ne instanceof Error)return ne}return null}return v(j)}function E(){function $(j,X,ee,H,fe){var ue=j[X];if(!s(ue)){var ge=me(ue);return new p("Invalid "+H+" `"+fe+"` of type "+("`"+ge+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return v($)}function w(){function $(j,X,ee,H,fe){var ue=j[X];if(!e.isValidElementType(ue)){var ge=me(ue);return new p("Invalid "+H+" `"+fe+"` of type "+("`"+ge+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return v($)}function _($){function j(X,ee,H,fe,ue){if(!(X[ee]instanceof $)){var ge=$.name||d,Z=Oe(X[ee]);return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+Z+"` supplied to `"+H+"`, expected ")+("instance of `"+ge+"`."))}return null}return v(j)}function O($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function j(X,ee,H,fe,ue){for(var ge=X[ee],Z=0;Z<$.length;Z++)if(m(ge,$[Z]))return null;var Q=JSON.stringify($,function(be,R){var Be=Ee(R);return Be==="symbol"?String(R):R});return new p("Invalid "+fe+" `"+ue+"` of value `"+String(ge)+"` "+("supplied to `"+H+"`, expected one of "+Q+"."))}return v(j)}function k($){function j(X,ee,H,fe,ue){if(typeof $!="function")return new p("Property `"+ue+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var ge=X[ee],Z=me(ge);if(Z!=="object")return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+Z+"` supplied to `"+H+"`, expected an object."));for(var Q in ge)if(n(ge,Q)){var ne=$(ge,Q,H,fe,ue+"."+Q,r);if(ne instanceof Error)return ne}return null}return v(j)}function D($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var j=0;j<$.length;j++){var X=$[j];if(typeof X!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(X)+" at index "+j+"."),a}function ee(H,fe,ue,ge,Z){for(var Q=[],ne=0;ne<$.length;ne++){var be=$[ne],R=be(H,fe,ue,ge,Z,r);if(R==null)return null;R.data&&n(R.data,"expectedType")&&Q.push(R.data.expectedType)}var Be=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new p("Invalid "+ge+" `"+Z+"` supplied to "+("`"+ue+"`"+Be+"."))}return v(ee)}function L(){function $(j,X,ee,H,fe){return q(j[X])?null:new p("Invalid "+H+" `"+fe+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return v($)}function re($,j,X,ee,H){return new p(($||"React class")+": "+j+" type `"+X+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function pe($){function j(X,ee,H,fe,ue){var ge=X[ee],Z=me(ge);if(Z!=="object")return new p("Invalid "+fe+" `"+ue+"` of type `"+Z+"` "+("supplied to `"+H+"`, expected `object`."));for(var Q in $){var ne=$[Q];if(typeof ne!="function")return re(H,fe,ue,Q,Ee(ne));var be=ne(ge,Q,H,fe,ue+"."+Q,r);if(be)return be}return null}return v(j)}function se($){function j(X,ee,H,fe,ue){var ge=X[ee],Z=me(ge);if(Z!=="object")return new p("Invalid "+fe+" `"+ue+"` of type `"+Z+"` "+("supplied to `"+H+"`, expected `object`."));var Q=t({},X[ee],$);for(var ne in Q){var be=$[ne];if(n($,ne)&&typeof be!="function")return re(H,fe,ue,ne,Ee(be));if(!be)return new p("Invalid "+fe+" `"+ue+"` key `"+ne+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(X[ee],null," ")+`
|
|
54
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var R=be(ge,ne,H,fe,ue+"."+ne,r);if(R)return R}return null}return v(j)}function q($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(q);if($===null||s($))return!0;var j=f($);if(j){var X=j.call($),ee;if(j!==$.entries){for(;!(ee=X.next()).done;)if(!q(ee.value))return!1}else for(;!(ee=X.next()).done;){var H=ee.value;if(H&&!q(H[1]))return!1}}else return!1;return!0;default:return!1}}function G($,j){return $==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function me($){var j=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":G(j,$)?"symbol":j}function Ee($){if(typeof $>"u"||$===null)return""+$;var j=me($);if(j==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return j}function Ie($){var j=Ee($);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Oe($){return!$.constructor||!$.constructor.name?d:$.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Hu}var Uu,O0;function n4(){if(O0)return Uu;O0=1;var e=zu();function t(){}function r(){}return r.resetWarningCache=t,Uu=function(){function n(a,s,u,l,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},Uu}if(process.env.NODE_ENV!=="production"){var i4=x0(),o4=!0;Ru.exports=r4()(i4.isElement,o4)}else Ru.exports=n4()();var a4=Ru.exports;const T=xn(a4),s4="exact-prop: ";function k0(e){return process.env.NODE_ENV==="production"?e:Ae({},e,{[s4]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function oi(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Yu={exports:{}},Ze={};/**
|
|
55
55
|
* @license React
|
|
56
56
|
* react-is.production.min.js
|
|
57
57
|
*
|
|
@@ -59,7 +59,7 @@ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var R=ye(ge,ne,H,fe,ce+"
|
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/var
|
|
62
|
+
*/var M0;function l4(){if(M0)return Ze;M0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var x=v.$$typeof;switch(x){case e:switch(v=v.type,v){case r:case i:case n:case l:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case u:case d:case f:case o:return v;default:return x}}case t:return x}}}return Ze.ContextConsumer=a,Ze.ContextProvider=o,Ze.Element=e,Ze.ForwardRef=u,Ze.Fragment=r,Ze.Lazy=d,Ze.Memo=f,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=n,Ze.Suspense=l,Ze.SuspenseList=c,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(v){return p(v)===a},Ze.isContextProvider=function(v){return p(v)===o},Ze.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ze.isForwardRef=function(v){return p(v)===u},Ze.isFragment=function(v){return p(v)===r},Ze.isLazy=function(v){return p(v)===d},Ze.isMemo=function(v){return p(v)===f},Ze.isPortal=function(v){return p(v)===t},Ze.isProfiler=function(v){return p(v)===i},Ze.isStrictMode=function(v){return p(v)===n},Ze.isSuspense=function(v){return p(v)===l},Ze.isSuspenseList=function(v){return p(v)===c},Ze.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===l||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===o||v.$$typeof===a||v.$$typeof===u||v.$$typeof===m||v.getModuleId!==void 0)},Ze.typeOf=p,Ze}var Qe={};/**
|
|
63
63
|
* @license React
|
|
64
64
|
* react-is.development.js
|
|
65
65
|
*
|
|
@@ -67,26 +67,26 @@ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var R=ye(ge,ne,H,fe,ce+"
|
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the MIT license found in the
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var
|
|
71
|
-
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=W3(i);try{a.insertRule(n,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),It="-ms-",Fa="-moz-",Ve="-webkit-",$c="comm",Ac="rule",kc="decl",U3="@import",g0="@keyframes",Y3="@layer",G3=Math.abs,Ra=String.fromCharCode,q3=Object.assign;function K3(e,t){return Dt(e,0)^45?(((t<<2^Dt(e,0))<<2^Dt(e,1))<<2^Dt(e,2))<<2^Dt(e,3):0}function m0(e){return e.trim()}function X3(e,t){return(e=t.exec(e))?e[0]:e}function He(e,t,r){return e.replace(t,r)}function Dc(e,t){return e.indexOf(t)}function Dt(e,t){return e.charCodeAt(t)|0}function bo(e,t,r){return e.slice(t,r)}function br(e){return e.length}function Ic(e){return e.length}function Na(e,t){return t.push(e),e}function Z3(e,t){return e.map(t).join("")}var za=1,Kn=1,v0=0,Wt=0,Et=0,Xn="";function Ba(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:za,column:Kn,length:a,return:""}}function xo(e,t){return q3(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function Q3(){return Et}function J3(){return Et=Wt>0?Dt(Xn,--Wt):0,Kn--,Et===10&&(Kn=1,za--),Et}function Xt(){return Et=Wt<v0?Dt(Xn,Wt++):0,Kn++,Et===10&&(Kn=1,za++),Et}function xr(){return Dt(Xn,Wt)}function Wa(){return Wt}function wo(e,t){return bo(Xn,e,t)}function So(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function y0(e){return za=Kn=1,v0=br(Xn=e),Wt=0,[]}function b0(e){return Xn="",e}function Va(e){return m0(wo(Wt-1,jc(e===91?e+2:e===40?e+1:e)))}function e4(e){for(;(Et=xr())&&Et<33;)Xt();return So(e)>2||So(Et)>3?"":" "}function t4(e,t){for(;--t&&Xt()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return wo(e,Wa()+(t<6&&xr()==32&&Xt()==32))}function jc(e){for(;Xt();)switch(Et){case e:return Wt;case 34:case 39:e!==34&&e!==39&&jc(Et);break;case 40:e===41&&jc(e);break;case 92:Xt();break}return Wt}function r4(e,t){for(;Xt()&&e+Et!==47+10;)if(e+Et===42+42&&xr()===47)break;return"/*"+wo(t,Wt-1)+"*"+Ra(e===47?e:Xt())}function n4(e){for(;!So(xr());)Xt();return wo(e,Wt)}function i4(e){return b0(Ha("",null,null,null,[""],e=y0(e),0,[0],e))}function Ha(e,t,r,n,i,o,a,s,c){for(var l=0,u=0,f=a,d=0,h=0,g=0,p=1,v=1,x=1,b=0,S="",O=i,w=o,T=n,E=S;v;)switch(g=b,b=Xt()){case 40:if(g!=108&&Dt(E,f-1)==58){Dc(E+=He(Va(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Va(b);break;case 9:case 10:case 13:case 32:E+=e4(g);break;case 92:E+=t4(Wa()-1,7);continue;case 47:switch(xr()){case 42:case 47:Na(o4(r4(Xt(),Wa()),t,r),c);break;default:E+="/"}break;case 123*p:s[l++]=br(E)*x;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:x==-1&&(E=He(E,/\f/g,"")),h>0&&br(E)-f&&Na(h>32?w0(E+";",n,r,f-1):w0(He(E," ","")+";",n,r,f-2),c);break;case 59:E+=";";default:if(Na(T=x0(E,t,r,l,u,i,s,S,O=[],w=[],f),o),b===123)if(u===0)Ha(E,t,T,T,O,o,f,s,w);else switch(d===99&&Dt(E,3)===110?100:d){case 100:case 108:case 109:case 115:Ha(e,T,T,n&&Na(x0(e,T,T,0,0,i,s,S,i,O=[],f),w),i,w,f,s,n?O:w);break;default:Ha(E,T,T,T,[""],w,0,s,w)}}l=u=h=0,p=x=1,S=E="",f=a;break;case 58:f=1+br(E),h=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&J3()==125)continue}switch(E+=Ra(b),b*p){case 38:x=u>0?1:(E+="\f",-1);break;case 44:s[l++]=(br(E)-1)*x,x=1;break;case 64:xr()===45&&(E+=Va(Xt())),d=xr(),u=f=br(S=E+=n4(Wa())),b++;break;case 45:g===45&&br(E)==2&&(p=0)}}return o}function x0(e,t,r,n,i,o,a,s,c,l,u){for(var f=i-1,d=i===0?o:[""],h=Ic(d),g=0,p=0,v=0;g<n;++g)for(var x=0,b=bo(e,f+1,f=G3(p=a[g])),S=e;x<h;++x)(S=m0(p>0?d[x]+" "+b:He(b,/&\f/g,d[x])))&&(c[v++]=S);return Ba(e,t,r,i===0?Ac:s,c,l,u)}function o4(e,t,r){return Ba(e,t,r,$c,Ra(Q3()),bo(e,2,-2),0)}function w0(e,t,r,n){return Ba(e,t,r,kc,bo(e,0,n),bo(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=Ic(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function a4(e,t,r,n){switch(e.type){case Y3:if(e.children.length)break;case U3:case kc:return e.return=e.return||e.value;case $c:return"";case g0:return e.return=e.value+"{"+Zn(e.children,n)+"}";case Ac:e.value=e.props.join(",")}return br(r=Zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function s4(e){var t=Ic(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function l4(e){return function(t){t.root||(t=t.return)&&e(t)}}var c4=function(t,r,n){for(var i=0,o=0;i=o,o=xr(),i===38&&o===12&&(r[n]=1),!So(o);)Xt();return wo(t,Wt)},u4=function(t,r){var n=-1,i=44;do switch(So(i)){case 0:i===38&&xr()===12&&(r[n]=1),t[n]+=c4(Wt-1,r,n);break;case 2:t[n]+=Va(i);break;case 4:if(i===44){t[++n]=xr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ra(i)}while(i=Xt());return t},f4=function(t,r){return b0(u4(y0(t),r))},S0=new WeakMap,d4=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!S0.get(n))&&!i){S0.set(t,!0);for(var o=[],a=f4(r,o),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=o[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},h4=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},p4="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",g4=function(t){return t.type==="comm"&&t.children.indexOf(p4)>-1},m4=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!r.parent,s=a?r.parent.children:i,c=s.length-1;c>=0;c--){var l=s[c];if(l.line<r.line)break;if(l.column<r.column){if(g4(l))return;break}}o.forEach(function(u){console.error('The pseudo class "'+u+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+u.split("-child")[0]+'-of-type".')})}}}},C0=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},v4=function(t,r){for(var n=t-1;n>=0;n--)if(!C0(r[n]))return!0;return!1},T0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},y4=function(t,r,n){C0(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),T0(t)):v4(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),T0(t)))};function O0(e,t){switch(K3(e,t)){case 5103:return Ve+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ve+e+Fa+e+It+e+e;case 6828:case 4268:return Ve+e+It+e+e;case 6165:return Ve+e+It+"flex-"+e+e;case 5187:return Ve+e+He(e,/(\w+).+(:[^]+)/,Ve+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return Ve+e+It+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return Ve+e+It+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return Ve+e+It+He(e,"shrink","negative")+e;case 5292:return Ve+e+It+He(e,"basis","preferred-size")+e;case 6060:return Ve+"box-"+He(e,"-grow","")+Ve+e+It+He(e,"grow","positive")+e;case 4554:return Ve+He(e,/([^-])(transform)/g,"$1"+Ve+"$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,Ve+"$1"),/(image-set)/,Ve+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,Ve+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,Ve+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ve+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,Ve+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(br(e)-1-t>6)switch(Dt(e,t+1)){case 109:if(Dt(e,t+4)!==45)break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+Fa+(Dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dc(e,"stretch")?O0(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dt(e,t+1)!==115)break;case 6444:switch(Dt(e,br(e)-3-(~Dc(e,"!important")&&10))){case 107:return He(e,":",":"+Ve)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(Dt(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+It+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return Ve+e+It+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+It+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+It+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+It+e+e}return e}var b4=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case kc:t.return=O0(t.value,t.length);break;case g0:return Zn([xo(t,{value:He(t.value,"@","@"+Ve)})],i);case Ac:if(t.length)return Z3(t.props,function(o){switch(X3(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([xo(t,{props:[He(o,/:(read-\w+)/,":"+Fa+"$1")]})],i);case"::placeholder":return Zn([xo(t,{props:[He(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),xo(t,{props:[He(o,/:(plac\w+)/,":"+Fa+"$1")]}),xo(t,{props:[He(o,/:(plac\w+)/,It+"input-$1")]})],i)}return""})}},x4=[b4],w4=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
72
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||
|
|
70
|
+
*/var P0;function u4(){return P0||(P0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,p=!1,v=!1,x=!1,b=!1,C;C=Symbol.for("react.module.reference");function E(le){return!!(typeof le=="string"||typeof le=="function"||le===r||le===i||b||le===n||le===l||le===c||x||le===h||m||p||v||typeof le=="object"&&le!==null&&(le.$$typeof===d||le.$$typeof===f||le.$$typeof===o||le.$$typeof===a||le.$$typeof===u||le.$$typeof===C||le.getModuleId!==void 0))}function w(le){if(typeof le=="object"&&le!==null){var ht=le.$$typeof;switch(ht){case e:var Zt=le.type;switch(Zt){case r:case i:case n:case l:case c:return Zt;default:var Vt=Zt&&Zt.$$typeof;switch(Vt){case s:case a:case u:case d:case f:case o:return Vt;default:return ht}}case t:return ht}}}var _=a,O=o,k=e,D=u,L=r,re=d,pe=f,se=t,q=i,G=n,me=l,Ee=c,Ie=!1,Oe=!1;function $(le){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(le){return Oe||(Oe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(le){return w(le)===a}function ee(le){return w(le)===o}function H(le){return typeof le=="object"&&le!==null&&le.$$typeof===e}function fe(le){return w(le)===u}function ue(le){return w(le)===r}function ge(le){return w(le)===d}function Z(le){return w(le)===f}function Q(le){return w(le)===t}function ne(le){return w(le)===i}function be(le){return w(le)===n}function R(le){return w(le)===l}function Be(le){return w(le)===c}Qe.ContextConsumer=_,Qe.ContextProvider=O,Qe.Element=k,Qe.ForwardRef=D,Qe.Fragment=L,Qe.Lazy=re,Qe.Memo=pe,Qe.Portal=se,Qe.Profiler=q,Qe.StrictMode=G,Qe.Suspense=me,Qe.SuspenseList=Ee,Qe.isAsyncMode=$,Qe.isConcurrentMode=j,Qe.isContextConsumer=X,Qe.isContextProvider=ee,Qe.isElement=H,Qe.isForwardRef=fe,Qe.isFragment=ue,Qe.isLazy=ge,Qe.isMemo=Z,Qe.isPortal=Q,Qe.isProfiler=ne,Qe.isStrictMode=be,Qe.isSuspense=R,Qe.isSuspenseList=Be,Qe.isValidElementType=E,Qe.typeOf=w}()),Qe}process.env.NODE_ENV==="production"?Yu.exports=l4():Yu.exports=u4();var A0=Yu.exports;const c4=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function f4(e){const t=`${e}`.match(c4);return t&&t[1]||""}function D0(e,t=""){return e.displayName||e.name||f4(e)||t}function $0(e,t,r){const n=D0(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function d4(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return D0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case A0.ForwardRef:return $0(e,e.render,"ForwardRef");case A0.Memo:return $0(e,e.type,"memo");default:return}}}function ai(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":oi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const h4=typeof window<"u"?xe.useLayoutEffect:xe.useEffect;function I0(e,t){const r=Ae({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ae({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=Ae({},o),Object.keys(i).forEach(a=>{r[n][a]=I0(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const F0=e=>e,p4=(()=>{let e=F0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=F0}}})(),g4={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function m4(e,t,r="Mui"){const n=g4[t];return n?`${r}-${n}`:`${p4.generate(e)}-${t}`}const Ka="$$material";function zr(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function v4(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function y4(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var b4=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y4(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
71
|
+
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=v4(i);try{a.insertRule(n,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Lt="-ms-",Xa="-moz-",Ue="-webkit-",Gu="comm",qu="rule",Ku="decl",x4="@import",j0="@keyframes",w4="@layer",C4=Math.abs,Za=String.fromCharCode,S4=Object.assign;function E4(e,t){return jt(e,0)^45?(((t<<2^jt(e,0))<<2^jt(e,1))<<2^jt(e,2))<<2^jt(e,3):0}function L0(e){return e.trim()}function T4(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,r){return e.replace(t,r)}function Xu(e,t){return e.indexOf(t)}function jt(e,t){return e.charCodeAt(t)|0}function Ao(e,t,r){return e.slice(t,r)}function Tr(e){return e.length}function Zu(e){return e.length}function Qa(e,t){return t.push(e),e}function _4(e,t){return e.map(t).join("")}var Ja=1,si=1,R0=0,Ut=0,Mt=0,li="";function es(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ja,column:si,length:a,return:""}}function Do(e,t){return S4(es("",null,null,"",null,null,0),e,{length:-e.length},t)}function O4(){return Mt}function k4(){return Mt=Ut>0?jt(li,--Ut):0,si--,Mt===10&&(si=1,Ja--),Mt}function Jt(){return Mt=Ut<R0?jt(li,Ut++):0,si++,Mt===10&&(si=1,Ja++),Mt}function _r(){return jt(li,Ut)}function ts(){return Ut}function $o(e,t){return Ao(li,e,t)}function Io(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B0(e){return Ja=si=1,R0=Tr(li=e),Ut=0,[]}function N0(e){return li="",e}function rs(e){return L0($o(Ut-1,Qu(e===91?e+2:e===40?e+1:e)))}function M4(e){for(;(Mt=_r())&&Mt<33;)Jt();return Io(e)>2||Io(Mt)>3?"":" "}function P4(e,t){for(;--t&&Jt()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return $o(e,ts()+(t<6&&_r()==32&&Jt()==32))}function Qu(e){for(;Jt();)switch(Mt){case e:return Ut;case 34:case 39:e!==34&&e!==39&&Qu(Mt);break;case 40:e===41&&Qu(e);break;case 92:Jt();break}return Ut}function A4(e,t){for(;Jt()&&e+Mt!==47+10;)if(e+Mt===42+42&&_r()===47)break;return"/*"+$o(t,Ut-1)+"*"+Za(e===47?e:Jt())}function D4(e){for(;!Io(_r());)Jt();return $o(e,Ut)}function $4(e){return N0(ns("",null,null,null,[""],e=B0(e),0,[0],e))}function ns(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,d=0,h=0,m=0,p=1,v=1,x=1,b=0,C="",E=i,w=o,_=n,O=C;v;)switch(m=b,b=Jt()){case 40:if(m!=108&&jt(O,f-1)==58){Xu(O+=Ye(rs(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=rs(b);break;case 9:case 10:case 13:case 32:O+=M4(m);break;case 92:O+=P4(ts()-1,7);continue;case 47:switch(_r()){case 42:case 47:Qa(I4(A4(Jt(),ts()),t,r),u);break;default:O+="/"}break;case 123*p:s[l++]=Tr(O)*x;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:x==-1&&(O=Ye(O,/\f/g,"")),h>0&&Tr(O)-f&&Qa(h>32?V0(O+";",n,r,f-1):V0(Ye(O," ","")+";",n,r,f-2),u);break;case 59:O+=";";default:if(Qa(_=z0(O,t,r,l,c,i,s,C,E=[],w=[],f),o),b===123)if(c===0)ns(O,t,_,_,E,o,f,s,w);else switch(d===99&&jt(O,3)===110?100:d){case 100:case 108:case 109:case 115:ns(e,_,_,n&&Qa(z0(e,_,_,0,0,i,s,C,i,E=[],f),w),i,w,f,s,n?E:w);break;default:ns(O,_,_,_,[""],w,0,s,w)}}l=c=h=0,p=x=1,C=O="",f=a;break;case 58:f=1+Tr(O),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&k4()==125)continue}switch(O+=Za(b),b*p){case 38:x=c>0?1:(O+="\f",-1);break;case 44:s[l++]=(Tr(O)-1)*x,x=1;break;case 64:_r()===45&&(O+=rs(Jt())),d=_r(),c=f=Tr(C=O+=D4(ts())),b++;break;case 45:m===45&&Tr(O)==2&&(p=0)}}return o}function z0(e,t,r,n,i,o,a,s,u,l,c){for(var f=i-1,d=i===0?o:[""],h=Zu(d),m=0,p=0,v=0;m<n;++m)for(var x=0,b=Ao(e,f+1,f=C4(p=a[m])),C=e;x<h;++x)(C=L0(p>0?d[x]+" "+b:Ye(b,/&\f/g,d[x])))&&(u[v++]=C);return es(e,t,r,i===0?qu:s,u,l,c)}function I4(e,t,r){return es(e,t,r,Gu,Za(O4()),Ao(e,2,-2),0)}function V0(e,t,r,n){return es(e,t,r,Ku,Ao(e,0,n),Ao(e,n+1,-1),n)}function ui(e,t){for(var r="",n=Zu(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function F4(e,t,r,n){switch(e.type){case w4:if(e.children.length)break;case x4:case Ku:return e.return=e.return||e.value;case Gu:return"";case j0:return e.return=e.value+"{"+ui(e.children,n)+"}";case qu:e.value=e.props.join(",")}return Tr(r=ui(e.children,n))?e.return=e.value+"{"+r+"}":""}function j4(e){var t=Zu(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function L4(e){return function(t){t.root||(t=t.return)&&e(t)}}var R4=function(t,r,n){for(var i=0,o=0;i=o,o=_r(),i===38&&o===12&&(r[n]=1),!Io(o);)Jt();return $o(t,Ut)},B4=function(t,r){var n=-1,i=44;do switch(Io(i)){case 0:i===38&&_r()===12&&(r[n]=1),t[n]+=R4(Ut-1,r,n);break;case 2:t[n]+=rs(i);break;case 4:if(i===44){t[++n]=_r()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Za(i)}while(i=Jt());return t},N4=function(t,r){return N0(B4(B0(t),r))},W0=new WeakMap,z4=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!W0.get(n))&&!i){W0.set(t,!0);for(var o=[],a=N4(r,o),s=n.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},V4=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},W4="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",H4=function(t){return t.type==="comm"&&t.children.indexOf(W4)>-1},U4=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!r.parent,s=a?r.parent.children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<r.line)break;if(l.column<r.column){if(H4(l))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},H0=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Y4=function(t,r){for(var n=t-1;n>=0;n--)if(!H0(r[n]))return!0;return!1},U0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},G4=function(t,r,n){H0(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),U0(t)):Y4(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),U0(t)))};function Y0(e,t){switch(E4(e,t)){case 5103:return Ue+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ue+e+Xa+e+Lt+e+e;case 6828:case 4268:return Ue+e+Lt+e+e;case 6165:return Ue+e+Lt+"flex-"+e+e;case 5187:return Ue+e+Ye(e,/(\w+).+(:[^]+)/,Ue+"box-$1$2"+Lt+"flex-$1$2")+e;case 5443:return Ue+e+Lt+"flex-item-"+Ye(e,/flex-|-self/,"")+e;case 4675:return Ue+e+Lt+"flex-line-pack"+Ye(e,/align-content|flex-|-self/,"")+e;case 5548:return Ue+e+Lt+Ye(e,"shrink","negative")+e;case 5292:return Ue+e+Lt+Ye(e,"basis","preferred-size")+e;case 6060:return Ue+"box-"+Ye(e,"-grow","")+Ue+e+Lt+Ye(e,"grow","positive")+e;case 4554:return Ue+Ye(e,/([^-])(transform)/g,"$1"+Ue+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Ue+"$1"),/(image-set)/,Ue+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Ue+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Ue+"box-pack:$3"+Lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ue+e+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Ue+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tr(e)-1-t>6)switch(jt(e,t+1)){case 109:if(jt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Xa+(jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xu(e,"stretch")?Y0(Ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jt(e,t+1)!==115)break;case 6444:switch(jt(e,Tr(e)-3-(~Xu(e,"!important")&&10))){case 107:return Ye(e,":",":"+Ue)+e;case 101:return Ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(jt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(jt(e,t+11)){case 114:return Ue+e+Lt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Lt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Lt+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Lt+e+e}return e}var q4=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Ku:t.return=Y0(t.value,t.length);break;case j0:return ui([Do(t,{value:Ye(t.value,"@","@"+Ue)})],i);case qu:if(t.length)return _4(t.props,function(o){switch(T4(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ui([Do(t,{props:[Ye(o,/:(read-\w+)/,":"+Xa+"$1")]})],i);case"::placeholder":return ui([Do(t,{props:[Ye(o,/:(plac\w+)/,":"+Ue+"input-$1")]}),Do(t,{props:[Ye(o,/:(plac\w+)/,":"+Xa+"$1")]}),Do(t,{props:[Ye(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K4=[q4],X4=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
72
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K4;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),x=1;x<v.length;x++)o[v[x]]=!0;s.push(p)});var u,l=[z4,V4];process.env.NODE_ENV!=="production"&&l.push(U4({get compat(){return m.compat}}),G4);{var c,f=[F4,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==Gu&&c.insert(p.value+"{}"))}:L4(function(p){c.insert(p)})],d=j4(l.concat(i,f)),h=function(v){return ui($4(v),d)};u=function(v,x,b,C){c=b,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(w){b.insert(w+x.map)}}),h(v?v+"{"+x.styles+"}":x.styles),C&&(m.inserted[x.name]=!0)}}var m={key:r,sheet:new b4({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return m.sheet.hydrate(s),m};let Ju;typeof document=="object"&&(Ju=X4({key:"css",prepend:!0}));function G0(e){const{injectFirst:t,children:r}=e;return t&&Ju?y.jsx(Nl.CacheProvider,{value:Ju,children:r}):r}process.env.NODE_ENV!=="production"&&(G0.propTypes={children:T.node,injectFirst:T.bool});/**
|
|
73
73
|
* @mui/styled-engine v5.13.2
|
|
74
74
|
*
|
|
75
75
|
* @license MIT
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/function
|
|
79
|
-
`)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
78
|
+
*/function Z4(e,t){const r=m2(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
79
|
+
`)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const Q4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},J4=["values","unit","step"],eC=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>Ae({},r,{[n.key]:n.val}),{})};function tC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=zr(e,J4),o=eC(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function l(d,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-n/100}${r})`}function c(d){return a.indexOf(d)+1<a.length?l(d,a[a.indexOf(d)+1]):s(d)}function f(d){const h=a.indexOf(d);return h===0?s(a[1]):h===a.length-1?u(a[h]):l(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return Ae({keys:a,values:o,up:s,down:u,between:l,only:c,not:f,unit:r},i)}const rC={borderRadius:4},sn=process.env.NODE_ENV!=="production"?T.oneOfType([T.number,T.string,T.object,T.array]):{};function Fo(e,t){return t?Nr(e,t,{clone:!1}):e}const ec={xs:0,sm:600,md:900,lg:1200,xl:1536},q0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ec[e]}px)`};function Vr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||q0;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const o=n.breakpoints||q0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||ec).indexOf(s)!==-1){const u=o.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function nC(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function iC(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function is(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function os(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=is(e,r)||n,t&&(i=t(i,n,e)),i}function Je(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=is(u,n)||{};return Vr(a,s,f=>{let d=os(l,i,f);return f===d&&typeof f=="string"&&(d=os(l,i,`${t}${f==="default"?"":ai(f)}`,f)),r===!1?d:{[r]:d}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:sn}:{},o.filterProps=[t],o}function oC(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const aC={m:"margin",p:"padding"},sC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},K0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lC=oC(e=>{if(e.length>2)if(K0[e])e=K0[e];else return[e];const[t,r]=e.split(""),n=aC[t],i=sC[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),as=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ss=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],uC=[...as,...ss];function jo(e,t,r,n){var i;const o=(i=is(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
80
80
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
81
81
|
`))),o[a]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
82
|
-
`)),()=>{})}function _0(e){return To(e,"spacing",8,"spacing")}function Oo(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function j4(e,t){return r=>e.reduce((n,i)=>(n[i]=Oo(t,r),n),{})}function L4(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=D4(r),o=j4(i,n),a=e[r];return Lr(e,a,o)}function $0(e,t){const r=_0(e.theme);return Object.keys(e).map(n=>L4(e,t,n,r)).reduce(Co,{})}function mt(e){return $0(e,Ga)}mt.propTypes=process.env.NODE_ENV!=="production"?Ga.reduce((e,t)=>(e[t]=Jr,e),{}):{},mt.filterProps=Ga;function vt(e){return $0(e,qa)}vt.propTypes=process.env.NODE_ENV!=="production"?qa.reduce((e,t)=>(e[t]=Jr,e),{}):{},vt.filterProps=qa,process.env.NODE_ENV!=="production"&&I4.reduce((e,t)=>(e[t]=Jr,e),{});function F4(e=8){if(e.mui)return e;const t=_0({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Ka(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?Co(i,t[o](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function wr(e){return typeof e!="number"?e:`${e}px solid`}const R4=Ze({prop:"border",themeKey:"borders",transform:wr}),N4=Ze({prop:"borderTop",themeKey:"borders",transform:wr}),z4=Ze({prop:"borderRight",themeKey:"borders",transform:wr}),B4=Ze({prop:"borderBottom",themeKey:"borders",transform:wr}),W4=Ze({prop:"borderLeft",themeKey:"borders",transform:wr}),V4=Ze({prop:"borderColor",themeKey:"palette"}),H4=Ze({prop:"borderTopColor",themeKey:"palette"}),U4=Ze({prop:"borderRightColor",themeKey:"palette"}),Y4=Ze({prop:"borderBottomColor",themeKey:"palette"}),G4=Ze({prop:"borderLeftColor",themeKey:"palette"}),Xa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=To(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Oo(t,n)});return Lr(e,e.borderRadius,r)}return null};Xa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jr}:{},Xa.filterProps=["borderRadius"],Ka(R4,N4,z4,B4,W4,V4,H4,U4,Y4,G4,Xa);const Za=e=>{if(e.gap!==void 0&&e.gap!==null){const t=To(e.theme,"spacing",8,"gap"),r=n=>({gap:Oo(t,n)});return Lr(e,e.gap,r)}return null};Za.propTypes=process.env.NODE_ENV!=="production"?{gap:Jr}:{},Za.filterProps=["gap"];const Qa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=To(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Oo(t,n)});return Lr(e,e.columnGap,r)}return null};Qa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jr}:{},Qa.filterProps=["columnGap"];const Ja=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=To(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Oo(t,n)});return Lr(e,e.rowGap,r)}return null};Ja.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jr}:{},Ja.filterProps=["rowGap"];const q4=Ze({prop:"gridColumn"}),K4=Ze({prop:"gridRow"}),X4=Ze({prop:"gridAutoFlow"}),Z4=Ze({prop:"gridAutoColumns"}),Q4=Ze({prop:"gridAutoRows"}),J4=Ze({prop:"gridTemplateColumns"}),eS=Ze({prop:"gridTemplateRows"}),tS=Ze({prop:"gridTemplateAreas"}),rS=Ze({prop:"gridArea"});Ka(Za,Qa,Ja,q4,K4,X4,Z4,Q4,J4,eS,tS,rS);function Qn(e,t){return t==="grey"?t:e}const nS=Ze({prop:"color",themeKey:"palette",transform:Qn}),iS=Ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qn}),oS=Ze({prop:"backgroundColor",themeKey:"palette",transform:Qn});Ka(nS,iS,oS);function Zt(e){return e<=1&&e!==0?`${e*100}%`:e}const aS=Ze({prop:"width",transform:Zt}),Rc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Fc[r]||Zt(r)}};return Lr(e,e.maxWidth,t)}return null};Rc.filterProps=["maxWidth"];const sS=Ze({prop:"minWidth",transform:Zt}),lS=Ze({prop:"height",transform:Zt}),cS=Ze({prop:"maxHeight",transform:Zt}),uS=Ze({prop:"minHeight",transform:Zt});Ze({prop:"size",cssProperty:"width",transform:Zt}),Ze({prop:"size",cssProperty:"height",transform:Zt});const fS=Ze({prop:"boxSizing"});Ka(aS,Rc,sS,lS,cS,uS,fS);const Nc={border:{themeKey:"borders",transform:wr},borderTop:{themeKey:"borders",transform:wr},borderRight:{themeKey:"borders",transform:wr},borderBottom:{themeKey:"borders",transform:wr},borderLeft:{themeKey:"borders",transform:wr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xa},color:{themeKey:"palette",transform:Qn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qn},backgroundColor:{themeKey:"palette",transform:Qn},p:{style:vt},pt:{style:vt},pr:{style:vt},pb:{style:vt},pl:{style:vt},px:{style:vt},py:{style:vt},padding:{style:vt},paddingTop:{style:vt},paddingRight:{style:vt},paddingBottom:{style:vt},paddingLeft:{style:vt},paddingX:{style:vt},paddingY:{style:vt},paddingInline:{style:vt},paddingInlineStart:{style:vt},paddingInlineEnd:{style:vt},paddingBlock:{style:vt},paddingBlockStart:{style:vt},paddingBlockEnd:{style:vt},m:{style:mt},mt:{style:mt},mr:{style:mt},mb:{style:mt},ml:{style:mt},mx:{style:mt},my:{style:mt},margin:{style:mt},marginTop:{style:mt},marginRight:{style:mt},marginBottom:{style:mt},marginLeft:{style:mt},marginX:{style:mt},marginY:{style:mt},marginInline:{style:mt},marginInlineStart:{style:mt},marginInlineEnd:{style:mt},marginBlock:{style:mt},marginBlockStart:{style:mt},marginBlockEnd:{style:mt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Za},rowGap:{style:Ja},columnGap:{style:Qa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zt},maxWidth:{style:Rc},minWidth:{transform:Zt},height:{transform:Zt},maxHeight:{transform:Zt},minHeight:{transform:Zt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dS(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function hS(e,t){return typeof e=="function"?e(t):e}function pS(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:u,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=Ua(i,l)||{};return f?f(a):Lr(a,n,g=>{let p=Ya(d,u,g);return g===p&&typeof g=="string"&&(p=Ya(d,u,`${r}${g==="default"?"":qn(g)}`,g)),c===!1?p:{[c]:p}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:Nc;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=M4(o.breakpoints),f=Object.keys(u);let d=u;return Object.keys(l).forEach(h=>{const g=hS(l[h],o);if(g!=null)if(typeof g=="object")if(a[h])d=Co(d,e(h,g,o,a));else{const p=Lr({theme:o},g,v=>({[h]:v}));dS(p,g)?d[h]=t({sx:g,theme:o}):d=Co(d,p)}else d=Co(d,e(h,g,o,a))}),_4(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const A0=pS();A0.filterProps=["sx"];const zc=A0,gS=["breakpoints","palette","spacing","shape"];function Bc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=jr(e,gS),s=E4(r),c=F4(i);let l=Ir({breakpoints:s,direction:"ltr",components:{},palette:_e({mode:"light"},n),spacing:c,shape:_e({},P4,o)},a);return l=t.reduce((u,f)=>Ir(u,f),l),l.unstable_sxConfig=_e({},Nc,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return zc({sx:f,theme:this})},l}function mS(e){return Object.keys(e).length===0}function Wc(e=null){const t=be.useContext(Cl.ThemeContext);return!t||mS(t)?e:t}const vS=Bc();function yS(e=vS){return Wc(e)}const bS=["variant"];function k0(e){return e.length===0}function D0(e){const{variant:t}=e,r=jr(e,bS);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=k0(n)?e[i]:qn(e[i]):n+=`${k0(n)?i:qn(i)}${qn(e[i].toString())}`}),n}const xS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wS(e){return Object.keys(e).length===0}function SS(e){return typeof e=="string"&&e.charCodeAt(0)>96}const CS=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,TS=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const o=D0(i.props);n[o]=i.style}),n},OS=(e,t,r,n)=>{var i;const{ownerState:o={}}=e,a=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(c=>{let l=!0;Object.keys(c.props).forEach(u=>{o[u]!==c.props[u]&&e[u]!==c.props[u]&&(l=!1)}),l&&a.push(t[D0(c.props)])}),a};function es(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ES=Bc(),I0=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Eo({defaultTheme:e,theme:t,themeId:r}){return wS(t)?e:t[r]||t}function PS(e){return e?(t,r)=>r[e]:null}function MS(e={}){const{themeId:t,defaultTheme:r=ES,rootShouldForwardProp:n=es,slotShouldForwardProp:i=es}=e,o=a=>zc(_e({},a,{theme:Eo(_e({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{C4(a,O=>O.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:u,skipSx:f,overridesResolver:d=PS(I0(l))}=s,h=jr(s,xS),g=u!==void 0?u:l&&l!=="Root"&&l!=="root"||!1,p=f||!1;let v;process.env.NODE_ENV!=="production"&&c&&(v=`${c}-${I0(l||"Root")}`);let x=es;l==="Root"||l==="root"?x=n:l?x=i:SS(a)&&(x=void 0);const b=S4(a,_e({shouldForwardProp:x,label:v},h)),S=(O,...w)=>{const T=w?w.map(F=>typeof F=="function"&&F.__emotion_real!==F?re=>F(_e({},re,{theme:Eo(_e({},re,{defaultTheme:r,themeId:t}))})):F):[];let E=O;c&&d&&T.push(F=>{const re=Eo(_e({},F,{defaultTheme:r,themeId:t})),pe=CS(c,re);if(pe){const se={};return Object.entries(pe).forEach(([q,G])=>{se[q]=typeof G=="function"?G(_e({},F,{theme:re})):G}),d(F,se)}return null}),c&&!g&&T.push(F=>{const re=Eo(_e({},F,{defaultTheme:r,themeId:t}));return OS(F,TS(c,re),re,c)}),p||T.push(o);const P=T.length-w.length;if(Array.isArray(O)&&P>0){const F=new Array(P).fill("");E=[...O,...F],E.raw=[...O.raw,...F]}else typeof O=="function"&&O.__emotion_real!==O&&(E=F=>O(_e({},F,{theme:Eo(_e({},F,{defaultTheme:r,themeId:t}))})));const k=b(E,...T);if(process.env.NODE_ENV!=="production"){let F;c&&(F=`${c}${qn(l||"")}`),F===void 0&&(F=`Styled(${F3(a)})`),k.displayName=F}return a.muiName&&(k.muiName=a.muiName),k};return b.withConfig&&(S.withConfig=b.withConfig),S}}function _S(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:h0(t.components[r].defaultProps,n)}function Vc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function $S(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function bn(e){if(e.type)return e;if(e.charAt(0)==="#")return bn($S(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
83
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
84
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
85
|
-
`))),r}return
|
|
86
|
-
`));const i=
|
|
87
|
-
`));const a=
|
|
88
|
-
`))}return v}const d=({color:p,name:v,mainShade:x=500,lightShade:b=300,darkShade:
|
|
89
|
-
The color object needs to have a \`main\` property or a \`${x}\` property.`:
|
|
82
|
+
`)),()=>{})}function X0(e){return jo(e,"spacing",8,"spacing")}function Lo(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function cC(e,t){return r=>e.reduce((n,i)=>(n[i]=Lo(t,r),n),{})}function fC(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=lC(r),o=cC(i,n),a=e[r];return Vr(e,a,o)}function Z0(e,t){const r=X0(e.theme);return Object.keys(e).map(n=>fC(e,t,n,r)).reduce(Fo,{})}function xt(e){return Z0(e,as)}xt.propTypes=process.env.NODE_ENV!=="production"?as.reduce((e,t)=>(e[t]=sn,e),{}):{},xt.filterProps=as;function wt(e){return Z0(e,ss)}wt.propTypes=process.env.NODE_ENV!=="production"?ss.reduce((e,t)=>(e[t]=sn,e),{}):{},wt.filterProps=ss,process.env.NODE_ENV!=="production"&&uC.reduce((e,t)=>(e[t]=sn,e),{});function dC(e=8){if(e.mui)return e;const t=X0({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function ls(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?Fo(i,t[o](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Or(e){return typeof e!="number"?e:`${e}px solid`}const hC=Je({prop:"border",themeKey:"borders",transform:Or}),pC=Je({prop:"borderTop",themeKey:"borders",transform:Or}),gC=Je({prop:"borderRight",themeKey:"borders",transform:Or}),mC=Je({prop:"borderBottom",themeKey:"borders",transform:Or}),vC=Je({prop:"borderLeft",themeKey:"borders",transform:Or}),yC=Je({prop:"borderColor",themeKey:"palette"}),bC=Je({prop:"borderTopColor",themeKey:"palette"}),xC=Je({prop:"borderRightColor",themeKey:"palette"}),wC=Je({prop:"borderBottomColor",themeKey:"palette"}),CC=Je({prop:"borderLeftColor",themeKey:"palette"}),us=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=jo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Lo(t,n)});return Vr(e,e.borderRadius,r)}return null};us.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:sn}:{},us.filterProps=["borderRadius"],ls(hC,pC,gC,mC,vC,yC,bC,xC,wC,CC,us);const cs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=jo(e.theme,"spacing",8,"gap"),r=n=>({gap:Lo(t,n)});return Vr(e,e.gap,r)}return null};cs.propTypes=process.env.NODE_ENV!=="production"?{gap:sn}:{},cs.filterProps=["gap"];const fs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=jo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Lo(t,n)});return Vr(e,e.columnGap,r)}return null};fs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:sn}:{},fs.filterProps=["columnGap"];const ds=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=jo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Lo(t,n)});return Vr(e,e.rowGap,r)}return null};ds.propTypes=process.env.NODE_ENV!=="production"?{rowGap:sn}:{},ds.filterProps=["rowGap"];const SC=Je({prop:"gridColumn"}),EC=Je({prop:"gridRow"}),TC=Je({prop:"gridAutoFlow"}),_C=Je({prop:"gridAutoColumns"}),OC=Je({prop:"gridAutoRows"}),kC=Je({prop:"gridTemplateColumns"}),MC=Je({prop:"gridTemplateRows"}),PC=Je({prop:"gridTemplateAreas"}),AC=Je({prop:"gridArea"});ls(cs,fs,ds,SC,EC,TC,_C,OC,kC,MC,PC,AC);function ci(e,t){return t==="grey"?t:e}const DC=Je({prop:"color",themeKey:"palette",transform:ci}),$C=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ci}),IC=Je({prop:"backgroundColor",themeKey:"palette",transform:ci});ls(DC,$C,IC);function er(e){return e<=1&&e!==0?`${e*100}%`:e}const FC=Je({prop:"width",transform:er}),tc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ec[r]||er(r)}};return Vr(e,e.maxWidth,t)}return null};tc.filterProps=["maxWidth"];const jC=Je({prop:"minWidth",transform:er}),LC=Je({prop:"height",transform:er}),RC=Je({prop:"maxHeight",transform:er}),BC=Je({prop:"minHeight",transform:er});Je({prop:"size",cssProperty:"width",transform:er}),Je({prop:"size",cssProperty:"height",transform:er});const NC=Je({prop:"boxSizing"});ls(FC,tc,jC,LC,RC,BC,NC);const rc={border:{themeKey:"borders",transform:Or},borderTop:{themeKey:"borders",transform:Or},borderRight:{themeKey:"borders",transform:Or},borderBottom:{themeKey:"borders",transform:Or},borderLeft:{themeKey:"borders",transform:Or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:us},color:{themeKey:"palette",transform:ci},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ci},backgroundColor:{themeKey:"palette",transform:ci},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cs},rowGap:{style:ds},columnGap:{style:fs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:er},maxWidth:{style:tc},minWidth:{transform:er},height:{transform:er},maxHeight:{transform:er},minHeight:{transform:er},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zC(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function VC(e,t){return typeof e=="function"?e(t):e}function WC(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=is(i,l)||{};return f?f(a):Vr(a,n,m=>{let p=os(d,c,m);return m===p&&typeof m=="string"&&(p=os(d,c,`${r}${m==="default"?"":ai(m)}`,m)),u===!1?p:{[u]:p}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:rc;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=nC(o.breakpoints),f=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const m=VC(l[h],o);if(m!=null)if(typeof m=="object")if(a[h])d=Fo(d,e(h,m,o,a));else{const p=Vr({theme:o},m,v=>({[h]:v}));zC(p,m)?d[h]=t({sx:m,theme:o}):d=Fo(d,p)}else d=Fo(d,e(h,m,o,a))}),iC(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const Q0=WC();Q0.filterProps=["sx"];const nc=Q0,HC=["breakpoints","palette","spacing","shape"];function ic(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=zr(e,HC),s=tC(r),u=dC(i);let l=Nr({breakpoints:s,direction:"ltr",components:{},palette:Ae({mode:"light"},n),spacing:u,shape:Ae({},rC,o)},a);return l=t.reduce((c,f)=>Nr(c,f),l),l.unstable_sxConfig=Ae({},rc,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return nc({sx:f,theme:this})},l}function UC(e){return Object.keys(e).length===0}function oc(e=null){const t=xe.useContext(Nl.ThemeContext);return!t||UC(t)?e:t}const YC=ic();function GC(e=YC){return oc(e)}const qC=["variant"];function J0(e){return e.length===0}function eg(e){const{variant:t}=e,r=zr(e,qC);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=J0(n)?e[i]:ai(e[i]):n+=`${J0(n)?i:ai(i)}${ai(e[i].toString())}`}),n}const KC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function XC(e){return Object.keys(e).length===0}function ZC(e){return typeof e=="string"&&e.charCodeAt(0)>96}const QC=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,JC=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const o=eg(i.props);n[o]=i.style}),n},eS=(e,t,r,n)=>{var i;const{ownerState:o={}}=e,a=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{o[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&a.push(t[eg(u.props)])}),a};function hs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tS=ic(),tg=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ro({defaultTheme:e,theme:t,themeId:r}){return XC(t)?e:t[r]||t}function rS(e){return e?(t,r)=>r[e]:null}function nS(e={}){const{themeId:t,defaultTheme:r=tS,rootShouldForwardProp:n=hs,slotShouldForwardProp:i=hs}=e,o=a=>nc(Ae({},a,{theme:Ro(Ae({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Q4(a,E=>E.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:d=rS(tg(l))}=s,h=zr(s,KC),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,p=f||!1;let v;process.env.NODE_ENV!=="production"&&u&&(v=`${u}-${tg(l||"Root")}`);let x=hs;l==="Root"||l==="root"?x=n:l?x=i:ZC(a)&&(x=void 0);const b=Z4(a,Ae({shouldForwardProp:x,label:v},h)),C=(E,...w)=>{const _=w?w.map(L=>typeof L=="function"&&L.__emotion_real!==L?re=>L(Ae({},re,{theme:Ro(Ae({},re,{defaultTheme:r,themeId:t}))})):L):[];let O=E;u&&d&&_.push(L=>{const re=Ro(Ae({},L,{defaultTheme:r,themeId:t})),pe=QC(u,re);if(pe){const se={};return Object.entries(pe).forEach(([q,G])=>{se[q]=typeof G=="function"?G(Ae({},L,{theme:re})):G}),d(L,se)}return null}),u&&!m&&_.push(L=>{const re=Ro(Ae({},L,{defaultTheme:r,themeId:t}));return eS(L,JC(u,re),re,u)}),p||_.push(o);const k=_.length-w.length;if(Array.isArray(E)&&k>0){const L=new Array(k).fill("");O=[...E,...L],O.raw=[...E.raw,...L]}else typeof E=="function"&&E.__emotion_real!==E&&(O=L=>E(Ae({},L,{theme:Ro(Ae({},L,{defaultTheme:r,themeId:t}))})));const D=b(O,..._);if(process.env.NODE_ENV!=="production"){let L;u&&(L=`${u}${ai(l||"")}`),L===void 0&&(L=`Styled(${d4(a)})`),D.displayName=L}return a.muiName&&(D.muiName=a.muiName),D};return b.withConfig&&(C.withConfig=b.withConfig),C}}function iS(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:I0(t.components[r].defaultProps,n)}function ac(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function oS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function On(e){if(e.type)return e;if(e.charAt(0)==="#")return On(oS(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
83
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:oi(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
84
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:oi(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}function ps(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function aS(e){e=On(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(l,c=(l+r/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),ps({type:s,values:u})}function rg(e){e=On(e);let t=e.type==="hsl"||e.type==="hsla"?On(aS(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ng(e,t){const r=rg(e),n=rg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function W(e,t){return e=On(e),t=ac(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ps(e)}function sc(e,t){if(e=On(e),t=ac(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ps(e)}function lc(e,t){if(e=On(e),t=ac(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ps(e)}const ig=xe.createContext(null);process.env.NODE_ENV!=="production"&&(ig.displayName="ThemeContext");const og=ig;function ag(){const e=xe.useContext(og);return process.env.NODE_ENV!=="production"&&xe.useDebugValue(e),e}const sS=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function lS(e,t){if(typeof t=="function"){const r=t(e);return process.env.NODE_ENV!=="production"&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
85
|
+
`))),r}return Ae({},e,t)}function gs(e){const{children:t,theme:r}=e,n=ag();process.env.NODE_ENV!=="production"&&n===null&&typeof r=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
86
|
+
`));const i=xe.useMemo(()=>{const o=n===null?r:lS(n,r);return o!=null&&(o[sS]=n!==null),o},[r,n]);return y.jsx(og.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(gs.propTypes={children:T.node,theme:T.oneOfType([T.object,T.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(gs.propTypes=k0(gs.propTypes));const sg={};function lg(e,t,r,n=!1){return xe.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?Ae({},t,{[e]:o}):o;return n?()=>a:a}return e?Ae({},t,{[e]:r}):Ae({},t,r)},[e,t,r,n])}function ms(e){const{children:t,theme:r,themeId:n}=e,i=oc(sg),o=ag()||sg;process.env.NODE_ENV!=="production"&&(i===null&&typeof r=="function"||n&&i&&!i[n]&&typeof r=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
87
|
+
`));const a=lg(n,i,r),s=lg(n,o,r,!0);return y.jsx(gs,{theme:s,children:y.jsx(Nl.ThemeContext.Provider,{value:a,children:t})})}process.env.NODE_ENV!=="production"&&(ms.propTypes={children:T.node,theme:T.oneOfType([T.func,T.object]).isRequired,themeId:T.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(ms.propTypes=k0(ms.propTypes));function uS(e,t){return Ae({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Bo={black:"#000",white:"#fff"},cS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},fi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},di={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},No={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},hi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},pi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},gi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fS=["mode","contrastThreshold","tonalOffset"],ug={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Bo.white,default:Bo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uc={text:{primary:Bo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Bo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cg(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=lc(e.main,i):t==="dark"&&(e.dark=sc(e.main,o)))}function dS(e="light"){return e==="dark"?{main:hi[200],light:hi[50],dark:hi[400]}:{main:hi[700],light:hi[400],dark:hi[800]}}function hS(e="light"){return e==="dark"?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[500],light:fi[300],dark:fi[700]}}function pS(e="light"){return e==="dark"?{main:di[500],light:di[300],dark:di[700]}:{main:di[700],light:di[400],dark:di[800]}}function gS(e="light"){return e==="dark"?{main:pi[400],light:pi[300],dark:pi[700]}:{main:pi[700],light:pi[500],dark:pi[900]}}function mS(e="light"){return e==="dark"?{main:gi[400],light:gi[300],dark:gi[700]}:{main:gi[800],light:gi[500],dark:gi[900]}}function vS(e="light"){return e==="dark"?{main:No[400],light:No[300],dark:No[700]}:{main:"#ed6c02",light:No[500],dark:No[900]}}function yS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=zr(e,fS),o=e.primary||dS(t),a=e.secondary||hS(t),s=e.error||pS(t),u=e.info||gS(t),l=e.success||mS(t),c=e.warning||vS(t);function f(p){const v=ng(p,uc.text.primary)>=r?uc.text.primary:ug.text.primary;if(process.env.NODE_ENV!=="production"){const x=ng(p,v);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${v} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
88
|
+
`))}return v}const d=({color:p,name:v,mainShade:x=500,lightShade:b=300,darkShade:C=700})=>{if(p=Ae({},p),!p.main&&p[x]&&(p.main=p[x]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
89
|
+
The color object needs to have a \`main\` property or a \`${x}\` property.`:oi(11,v?` (${v})`:"",x));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
90
90
|
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
91
91
|
|
|
92
92
|
Did you intend to use one of the following approaches?
|
|
@@ -99,12 +99,12 @@ const theme1 = createTheme({ palette: {
|
|
|
99
99
|
|
|
100
100
|
const theme2 = createTheme({ palette: {
|
|
101
101
|
primary: { main: green[500] },
|
|
102
|
-
} });`:
|
|
103
|
-
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(
|
|
104
|
-
`))}d[
|
|
105
|
-
`));let c=typeof e=="function"?e(r):e;c=c.replace(/^@media( ?)/m,"");const u=(X0!==void 0?aC:oC)(c,i,o,a,s);return process.env.NODE_ENV!=="production"&&be.useDebugValue({query:c,match:u}),u}const Z0=(e,t,r)=>{const n=ii(),i=is(n.breakpoints.up(t)),o=is(n.breakpoints.down(t)),a=is(n.breakpoints.between(t,r)),s=is(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},sC=({children:e,disableAnimatedMobile:t=!0,...r})=>Z0("down","sm")&&t?y.jsx(_.Box,{...r,children:e}):y.jsx(_.Box,{component:cr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:fa(),...r,children:e}),lC=({animate:e,action:t=!1,children:r,...n})=>t?y.jsx(_.Box,{component:cr.div,initial:!1,animate:e?"animate":"exit",variants:fa(),...n,children:r}):y.jsx(_.Box,{component:cr.div,initial:"initial",animate:"animate",exit:"exit",variants:fa(),...n,children:r}),cC=()=>Promise.resolve().then(()=>MK).then(e=>e.default),uC=({children:e})=>y.jsx(f3,{strict:!0,features:cC,children:y.jsxs(cr.div,{style:{height:"100%"},children:[" ",e," "]})}),Gc=(e=!1)=>{const[t,r]=m.useState(e),n=m.useCallback(()=>r(i=>!i),[]);return[t,n,r]};function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(this,arguments)}function Q0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kc(e,t)}function fC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kc(e,t)}var J0=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function dC(e,t){return!!(e===t||J0(e)&&J0(t))}function hC(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!dC(e[r],t[r]))return!1;return!0}function Xc(e,t){t===void 0&&(t=hC);var r,n=[],i,o=!1;function a(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return o&&r===this&&t(s,n)||(i=e.apply(this,s),o=!0,r=this,n=s),i}return a}var pC=typeof performance=="object"&&typeof performance.now=="function",eg=pC?function(){return performance.now()}:function(){return Date.now()};function tg(e){cancelAnimationFrame(e.id)}function gC(e,t){var r=eg();function n(){eg()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Zc=-1;function rg(e){if(e===void 0&&(e=!1),Zc===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Zc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Zc}var oi=null;function ng(e){if(e===void 0&&(e=!1),oi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?oi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?oi="negative":oi="positive-ascending"),document.body.removeChild(t),oi}return oi}process.env.NODE_ENV;var mC=150,vC=function(t,r){return t},os=null,as=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(os=new WeakSet,as=new WeakSet);function yC(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(f){fC(d,f);function d(g){var p;return p=f.call(this,g)||this,p._instanceProps=c(p.props,Q0(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Q0(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=Xc(function(v,x,b,S){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:x,visibleStartIndex:b,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=Xc(function(v,x,b){return p.props.onScroll({scrollDirection:v,scrollOffset:x,scrollUpdateWasRequested:b})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var x=p.props,b=x.direction,S=x.itemSize,O=x.layout,w=p._getItemStyleCache(l&&S,l&&O,l&&b),T;if(w.hasOwnProperty(v))T=w[v];else{var E=r(p.props,v,p._instanceProps),P=i(p.props,v,p._instanceProps),k=b==="horizontal"||O==="horizontal",F=b==="rtl",re=k?E:0;w[v]=T={position:"absolute",left:F?void 0:re,right:F?re:void 0,top:k?0:E,height:k?"100%":P,width:k?P:"100%"}}return T},p._getItemStyleCache=void 0,p._getItemStyleCache=Xc(function(v,x,b){return{}}),p._onScrollHorizontal=function(v){var x=v.currentTarget,b=x.clientWidth,S=x.scrollLeft,O=x.scrollWidth;p.setState(function(w){if(w.scrollOffset===S)return null;var T=p.props.direction,E=S;if(T==="rtl")switch(ng()){case"negative":E=-S;break;case"positive-descending":E=O-b-S;break}return E=Math.max(0,Math.min(E,O-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<S?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var x=v.currentTarget,b=x.clientHeight,S=x.scrollHeight,O=x.scrollTop;p.setState(function(w){if(w.scrollOffset===O)return null;var T=Math.max(0,Math.min(O,S-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var x=p.props.outerRef;p._outerRef=v,typeof x=="function"?x(v):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&tg(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=gC(p._resetIsScrolling,mC)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,v){return bC(p,v),u(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,v){v===void 0&&(v="auto");var x=this.props,b=x.itemCount,S=x.layout,O=this.state.scrollOffset;p=Math.max(0,Math.min(p,b-1));var w=0;if(this._outerRef){var T=this._outerRef;S==="vertical"?w=T.scrollWidth>T.clientWidth?rg():0:w=T.scrollHeight>T.clientHeight?rg():0}this.scrollTo(o(this.props,p,v,O,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,v=p.direction,x=p.initialScrollOffset,b=p.layout;if(typeof x=="number"&&this._outerRef!=null){var S=this._outerRef;v==="horizontal"||b==="horizontal"?S.scrollLeft=x:S.scrollTop=x}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,v=p.direction,x=p.layout,b=this.state,S=b.scrollOffset,O=b.scrollUpdateWasRequested;if(O&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||x==="horizontal")if(v==="rtl")switch(ng()){case"negative":w.scrollLeft=-S;break;case"positive-ascending":w.scrollLeft=S;break;default:var T=w.clientWidth,E=w.scrollWidth;w.scrollLeft=E-T-S;break}else w.scrollLeft=S;else w.scrollTop=S}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&tg(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,v=p.children,x=p.className,b=p.direction,S=p.height,O=p.innerRef,w=p.innerElementType,T=p.innerTagName,E=p.itemCount,P=p.itemData,k=p.itemKey,F=k===void 0?vC:k,re=p.layout,pe=p.outerElementType,se=p.outerTagName,q=p.style,G=p.useIsScrolling,me=p.width,Ce=this.state.isScrolling,ke=b==="horizontal"||re==="horizontal",Oe=ke?this._onScrollHorizontal:this._onScrollVertical,D=this._getRangeToRender(),L=D[0],X=D[1],ee=[];if(E>0)for(var H=L;H<=X;H++)ee.push(m.createElement(v,{data:P,key:F(H,P),index:H,isScrolling:G?Ce:void 0,style:this._getItemStyle(H)}));var fe=n(this.props,this._instanceProps);return m.createElement(pe||se||"div",{className:x,onScroll:Oe,ref:this._outerRefSetter,style:qc({position:"relative",height:S,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},q)},m.createElement(w||T||"div",{children:ee,ref:O,style:{height:ke?"100%":fe,pointerEvents:Ce?"none":void 0,width:ke?fe:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),x=v[0],b=v[1],S=v[2],O=v[3];this._callOnItemsRendered(x,b,S,O)}}if(typeof this.props.onScroll=="function"){var w=this.state,T=w.scrollDirection,E=w.scrollOffset,P=w.scrollUpdateWasRequested;this._callOnScroll(T,E,P)}},h._getRangeToRender=function(){var p=this.props,v=p.itemCount,x=p.overscanCount,b=this.state,S=b.isScrolling,O=b.scrollDirection,w=b.scrollOffset;if(v===0)return[0,0,0,0];var T=a(this.props,w,this._instanceProps),E=s(this.props,T,w,this._instanceProps),P=!S||O==="backward"?Math.max(1,x):1,k=!S||O==="forward"?Math.max(1,x):1;return[Math.max(0,T-P),Math.max(0,Math.min(v-1,E+k)),T,E]},d}(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bC=function(t,r){var n=t.children,i=t.direction,o=t.height,a=t.layout,s=t.innerTagName,c=t.outerTagName,l=t.width,u=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||c!=null)&&as&&!as.has(u)&&(as.add(u),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":os&&!os.has(u)&&(os.add(u),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},xC=50,ai=function(t,r,n){var i=t,o=i.itemSize,a=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var c=0;if(s>=0){var l=a[s];c=l.offset+l.size}for(var u=s+1;u<=r;u++){var f=o(u);a[u]={offset:c,size:f},c+=f}n.lastMeasuredIndex=r}return a[r]},wC=function(t,r,n){var i=r.itemMetadataMap,o=r.lastMeasuredIndex,a=o>0?i[o].offset:0;return a>=n?ig(t,r,o,0,n):SC(t,r,Math.max(0,o),n)},ig=function(t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=ai(t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},SC=function(t,r,n,i){for(var o=t.itemCount,a=1;n<o&&ai(t,n,r).offset<i;)n+=a,a*=2;return ig(t,r,Math.min(n,o-1),Math.floor(n/2),i)},og=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,o=r.estimatedItemSize,a=r.lastMeasuredIndex,s=0;if(a>=n&&(a=n-1),a>=0){var c=i[a];s=c.offset+c.size}var l=n-a-1,u=l*o;return s+u},CC=yC({getItemOffset:function(t,r,n){return ai(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:og,getOffsetForIndexAndAlignment:function(t,r,n,i,o,a){var s=t.direction,c=t.height,l=t.layout,u=t.width,f=s==="horizontal"||l==="horizontal",d=f?u:c,h=ai(t,r,o),g=og(t,o),p=Math.max(0,Math.min(g-d,h.offset)),v=Math.max(0,h.offset-d+h.size+a);switch(n==="smart"&&(i>=v-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return v;case"center":return Math.round(v+(p-v)/2);case"auto":default:return i>=v&&i<=p?i:i<v?v:p}},getStartIndexForOffset:function(t,r,n){return wC(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var o=t.direction,a=t.height,s=t.itemCount,c=t.layout,l=t.width,u=o==="horizontal"||c==="horizontal",f=u?l:a,d=ai(t,r,i),h=n+f,g=d.offset+d.size,p=r;p<s-1&&g<h;)p++,g+=ai(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||xC,lastMeasuredIndex:-1};return r.resetAfterIndex=function(a,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,a-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const ag=8,TC=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:o,...a}=i[0],s={...n,top:n.top+ag,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?y.jsx(_.ListSubheader,{component:"div",style:s,children:i.group},i.key):y.jsx(_.Typography,{component:"li",...a,noWrap:!0,style:s,children:y.jsxs(_.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,o&&y.jsxs(_.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},sg=m.createContext({}),lg=m.forwardRef((e,t)=>{const r=m.useContext(sg);return y.jsx("div",{ref:t,...e,...r})});lg.displayName="OuterElementType";const OC=e=>{const t=m.useRef(null);return m.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},EC=m.forwardRef(function(t,r){const{children:n,...i}=t,o=[];n.forEach(h=>{o.push(h),o.push(...h.children||[])});const a=_.useTheme(),s=_.useMediaQuery(a.breakpoints.up("sm")),c=o.length,l=s?36:48,u=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>c>8?8*l:o.map(u).reduce((h,g)=>h+g,0),d=OC(c);return y.jsx("div",{ref:r,children:y.jsx(sg.Provider,{value:i,children:y.jsx(CC,{itemData:o,height:f()+2*ag,width:"100%",ref:d,outerElementType:lg,innerElementType:"ul",itemSize:h=>u(o[h]),overscanCount:5,itemCount:c,children:TC})})})}),PC=_.styled(_.Popper)({[`& .${_.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),Qc=m.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:o="Carregando opções...",error:a,helperText:s,placeholder:c,onChange:l,groupBy:u,showValueInLabel:f,disabled:d,multiple:h,required:g,renderOption:p,...v},x)=>{const b=P=>P&&typeof P=="object"?P.value.toString():P.toString(),[S,O,w]=Gc(),T=P=>{P.type!=="change"&&O()},E=m.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((F,re)=>{const pe=r.find(se=>se.value.toString()===re.toString());return pe?[...F,pe]:[...F]},[]):r.find(k=>k.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return y.jsx(_.Autocomplete,{ref:x,value:E,open:S,onClose:O,onOpen:T,onInputChange:(P,k,F)=>{F==="input"&&w(!0),!n&&!E&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:o,disabled:n||d,disableListWrap:!0,PopperComponent:PC,ListboxComponent:p?void 0:EC,filterOptions:(P,k)=>P.filter(F=>`${F.value} ${F.label}`.toLocaleUpperCase().includes(k.inputValue.toLocaleUpperCase())),onChange:(P,k)=>{if(!k){l(h?[]:null);return}if(Array.isArray(k)){l(k.map(b));return}l(typeof k=="string"?k.toString():k.value.toString())},renderOption:(P,k,F,re)=>p?p(P,k,F,re):[{...P,showValueInLabel:f},k],renderGroup:P=>P,groupBy:u,multiple:h,renderInput:P=>y.jsx(_.TextField,{...P,placeholder:c,fullWidth:!0,error:!!a,helperText:s,label:e,required:g,InputProps:{...P.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[n?y.jsx(_.CircularProgress,{color:"primary",size:20}):null,P.InputProps.endAdornment]})}}),...v})});Qc.displayName="Autocomplete";var or={},_o={},MC=typeof eo=="object"&&eo&&eo.Object===Object&&eo,cg=MC,_C=cg,$C=typeof self=="object"&&self&&self.Object===Object&&self,AC=_C||$C||Function("return this")(),Sr=AC,kC=Sr,DC=kC.Symbol,$o=DC,ug=$o,fg=Object.prototype,IC=fg.hasOwnProperty,jC=fg.toString,Ao=ug?ug.toStringTag:void 0;function LC(e){var t=IC.call(e,Ao),r=e[Ao];try{e[Ao]=void 0;var n=!0}catch{}var i=jC.call(e);return n&&(t?e[Ao]=r:delete e[Ao]),i}var FC=LC,RC=Object.prototype,NC=RC.toString;function zC(e){return NC.call(e)}var BC=zC,dg=$o,WC=FC,VC=BC,HC="[object Null]",UC="[object Undefined]",hg=dg?dg.toStringTag:void 0;function YC(e){return e==null?e===void 0?UC:HC:hg&&hg in Object(e)?WC(e):VC(e)}var xn=YC,GC=Array.isArray,ur=GC;function qC(e){return e!=null&&typeof e=="object"}var Fr=qC,KC=xn,XC=ur,ZC=Fr,QC="[object String]";function JC(e){return typeof e=="string"||!XC(e)&&ZC(e)&&KC(e)==QC}var eT=JC;function tT(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(r(o[c],c,o)===!1)break}return t}}var rT=tT,nT=rT,iT=nT(),oT=iT;function aT(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var sT=aT,lT=xn,cT=Fr,uT="[object Arguments]";function fT(e){return cT(e)&&lT(e)==uT}var dT=fT,pg=dT,hT=Fr,gg=Object.prototype,pT=gg.hasOwnProperty,gT=gg.propertyIsEnumerable,mT=pg(function(){return arguments}())?pg:function(e){return hT(e)&&pT.call(e,"callee")&&!gT.call(e,"callee")},mg=mT,ss={exports:{}};function vT(){return!1}var yT=vT;ss.exports,function(e,t){var r=Sr,n=yT,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||n;e.exports=l}(ss,ss.exports);var Jc=ss.exports,bT=9007199254740991,xT=/^(?:0|[1-9]\d*)$/;function wT(e,t){var r=typeof e;return t=t??bT,!!t&&(r=="number"||r!="symbol"&&xT.test(e))&&e>-1&&e%1==0&&e<t}var vg=wT,ST=9007199254740991;function CT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ST}var eu=CT,TT=xn,OT=eu,ET=Fr,PT="[object Arguments]",MT="[object Array]",_T="[object Boolean]",$T="[object Date]",AT="[object Error]",kT="[object Function]",DT="[object Map]",IT="[object Number]",jT="[object Object]",LT="[object RegExp]",FT="[object Set]",RT="[object String]",NT="[object WeakMap]",zT="[object ArrayBuffer]",BT="[object DataView]",WT="[object Float32Array]",VT="[object Float64Array]",HT="[object Int8Array]",UT="[object Int16Array]",YT="[object Int32Array]",GT="[object Uint8Array]",qT="[object Uint8ClampedArray]",KT="[object Uint16Array]",XT="[object Uint32Array]",ot={};ot[WT]=ot[VT]=ot[HT]=ot[UT]=ot[YT]=ot[GT]=ot[qT]=ot[KT]=ot[XT]=!0,ot[PT]=ot[MT]=ot[zT]=ot[_T]=ot[BT]=ot[$T]=ot[AT]=ot[kT]=ot[DT]=ot[IT]=ot[jT]=ot[LT]=ot[FT]=ot[RT]=ot[NT]=!1;function ZT(e){return ET(e)&&OT(e.length)&&!!ot[TT(e)]}var QT=ZT;function JT(e){return function(t){return e(t)}}var tu=JT,ls={exports:{}};ls.exports,function(e,t){var r=cg,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ls,ls.exports);var ru=ls.exports,eO=QT,tO=tu,yg=ru,bg=yg&&yg.isTypedArray,rO=bg?tO(bg):eO,xg=rO,nO=sT,iO=mg,oO=ur,aO=Jc,sO=vg,lO=xg,cO=Object.prototype,uO=cO.hasOwnProperty;function fO(e,t){var r=oO(e),n=!r&&iO(e),i=!r&&!n&&aO(e),o=!r&&!n&&!i&&lO(e),a=r||n||i||o,s=a?nO(e.length,String):[],c=s.length;for(var l in e)(t||uO.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||sO(l,c)))&&s.push(l);return s}var wg=fO,dO=Object.prototype;function hO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||dO;return e===r}var nu=hO;function pO(e,t){return function(r){return e(t(r))}}var Sg=pO,gO=Sg,mO=gO(Object.keys,Object),vO=mO,yO=nu,bO=vO,xO=Object.prototype,wO=xO.hasOwnProperty;function SO(e){if(!yO(e))return bO(e);var t=[];for(var r in Object(e))wO.call(e,r)&&r!="constructor"&&t.push(r);return t}var CO=SO;function TO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var si=TO,OO=xn,EO=si,PO="[object AsyncFunction]",MO="[object Function]",_O="[object GeneratorFunction]",$O="[object Proxy]";function AO(e){if(!EO(e))return!1;var t=OO(e);return t==MO||t==_O||t==PO||t==$O}var Cg=AO,kO=Cg,DO=eu;function IO(e){return e!=null&&DO(e.length)&&!kO(e)}var cs=IO,jO=wg,LO=CO,FO=cs;function RO(e){return FO(e)?jO(e):LO(e)}var ko=RO,NO=oT,zO=ko;function BO(e,t){return e&&NO(e,t,zO)}var Tg=BO;function WO(e){return e}var Og=WO,VO=Og;function HO(e){return typeof e=="function"?e:VO}var UO=HO,YO=Tg,GO=UO;function qO(e,t){return e&&YO(e,GO(t))}var iu=qO,KO=Sg,XO=KO(Object.getPrototypeOf,Object),ou=XO,ZO=xn,QO=ou,JO=Fr,e6="[object Object]",t6=Function.prototype,r6=Object.prototype,Eg=t6.toString,n6=r6.hasOwnProperty,i6=Eg.call(Object);function o6(e){if(!JO(e)||ZO(e)!=e6)return!1;var t=QO(e);if(t===null)return!0;var r=n6.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Eg.call(r)==i6}var a6=o6;function s6(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Pg=s6;function l6(){this.__data__=[],this.size=0}var c6=l6;function u6(e,t){return e===t||e!==e&&t!==t}var au=u6,f6=au;function d6(e,t){for(var r=e.length;r--;)if(f6(e[r][0],t))return r;return-1}var us=d6,h6=us,p6=Array.prototype,g6=p6.splice;function m6(e){var t=this.__data__,r=h6(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():g6.call(t,r,1),--this.size,!0}var v6=m6,y6=us;function b6(e){var t=this.__data__,r=y6(t,e);return r<0?void 0:t[r][1]}var x6=b6,w6=us;function S6(e){return w6(this.__data__,e)>-1}var C6=S6,T6=us;function O6(e,t){var r=this.__data__,n=T6(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var E6=O6,P6=c6,M6=v6,_6=x6,$6=C6,A6=E6;function li(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}li.prototype.clear=P6,li.prototype.delete=M6,li.prototype.get=_6,li.prototype.has=$6,li.prototype.set=A6;var fs=li,k6=fs;function D6(){this.__data__=new k6,this.size=0}var I6=D6;function j6(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var L6=j6;function F6(e){return this.__data__.get(e)}var R6=F6;function N6(e){return this.__data__.has(e)}var z6=N6,B6=Sr,W6=B6["__core-js_shared__"],V6=W6,su=V6,Mg=function(){var e=/[^.]+$/.exec(su&&su.keys&&su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function H6(e){return!!Mg&&Mg in e}var U6=H6,Y6=Function.prototype,G6=Y6.toString;function q6(e){if(e!=null){try{return G6.call(e)}catch{}try{return e+""}catch{}}return""}var _g=q6,K6=Cg,X6=U6,Z6=si,Q6=_g,J6=/[\\^$.*+?()[\]{}|]/g,e7=/^\[object .+?Constructor\]$/,t7=Function.prototype,r7=Object.prototype,n7=t7.toString,i7=r7.hasOwnProperty,o7=RegExp("^"+n7.call(i7).replace(J6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a7(e){if(!Z6(e)||X6(e))return!1;var t=K6(e)?o7:e7;return t.test(Q6(e))}var s7=a7;function l7(e,t){return e==null?void 0:e[t]}var c7=l7,u7=s7,f7=c7;function d7(e,t){var r=f7(e,t);return u7(r)?r:void 0}var wn=d7,h7=wn,p7=Sr,g7=h7(p7,"Map"),lu=g7,m7=wn,v7=m7(Object,"create"),ds=v7,$g=ds;function y7(){this.__data__=$g?$g(null):{},this.size=0}var b7=y7;function x7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var w7=x7,S7=ds,C7="__lodash_hash_undefined__",T7=Object.prototype,O7=T7.hasOwnProperty;function E7(e){var t=this.__data__;if(S7){var r=t[e];return r===C7?void 0:r}return O7.call(t,e)?t[e]:void 0}var P7=E7,M7=ds,_7=Object.prototype,$7=_7.hasOwnProperty;function A7(e){var t=this.__data__;return M7?t[e]!==void 0:$7.call(t,e)}var k7=A7,D7=ds,I7="__lodash_hash_undefined__";function j7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=D7&&t===void 0?I7:t,this}var L7=j7,F7=b7,R7=w7,N7=P7,z7=k7,B7=L7;function ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ci.prototype.clear=F7,ci.prototype.delete=R7,ci.prototype.get=N7,ci.prototype.has=z7,ci.prototype.set=B7;var W7=ci,Ag=W7,V7=fs,H7=lu;function U7(){this.size=0,this.__data__={hash:new Ag,map:new(H7||V7),string:new Ag}}var Y7=U7;function G7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var q7=G7,K7=q7;function X7(e,t){var r=e.__data__;return K7(t)?r[typeof t=="string"?"string":"hash"]:r.map}var hs=X7,Z7=hs;function Q7(e){var t=Z7(this,e).delete(e);return this.size-=t?1:0,t}var J7=Q7,eE=hs;function tE(e){return eE(this,e).get(e)}var rE=tE,nE=hs;function iE(e){return nE(this,e).has(e)}var oE=iE,aE=hs;function sE(e,t){var r=aE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var lE=sE,cE=Y7,uE=J7,fE=rE,dE=oE,hE=lE;function ui(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ui.prototype.clear=cE,ui.prototype.delete=uE,ui.prototype.get=fE,ui.prototype.has=dE,ui.prototype.set=hE;var cu=ui,pE=fs,gE=lu,mE=cu,vE=200;function yE(e,t){var r=this.__data__;if(r instanceof pE){var n=r.__data__;if(!gE||n.length<vE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mE(n)}return r.set(e,t),this.size=r.size,this}var bE=yE,xE=fs,wE=I6,SE=L6,CE=R6,TE=z6,OE=bE;function fi(e){var t=this.__data__=new xE(e);this.size=t.size}fi.prototype.clear=wE,fi.prototype.delete=SE,fi.prototype.get=CE,fi.prototype.has=TE,fi.prototype.set=OE;var uu=fi,EE="__lodash_hash_undefined__";function PE(e){return this.__data__.set(e,EE),this}var ME=PE;function _E(e){return this.__data__.has(e)}var $E=_E,AE=cu,kE=ME,DE=$E;function ps(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new AE;++t<r;)this.add(e[t])}ps.prototype.add=ps.prototype.push=kE,ps.prototype.has=DE;var IE=ps;function jE(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var LE=jE;function FE(e,t){return e.has(t)}var RE=FE,NE=IE,zE=LE,BE=RE,WE=1,VE=2;function HE(e,t,r,n,i,o){var a=r&WE,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,h=r&VE?new NE:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],p=t[f];if(n)var v=a?n(p,g,f,t,e,o):n(g,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!zE(t,function(x,b){if(!BE(h,b)&&(g===x||i(g,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(g===p||i(g,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var kg=HE,UE=Sr,YE=UE.Uint8Array,Dg=YE;function GE(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var qE=GE;function KE(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var XE=KE,Ig=$o,jg=Dg,ZE=au,QE=kg,JE=qE,e9=XE,t9=1,r9=2,n9="[object Boolean]",i9="[object Date]",o9="[object Error]",a9="[object Map]",s9="[object Number]",l9="[object RegExp]",c9="[object Set]",u9="[object String]",f9="[object Symbol]",d9="[object ArrayBuffer]",h9="[object DataView]",Lg=Ig?Ig.prototype:void 0,fu=Lg?Lg.valueOf:void 0;function p9(e,t,r,n,i,o,a){switch(r){case h9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case d9:return!(e.byteLength!=t.byteLength||!o(new jg(e),new jg(t)));case n9:case i9:case s9:return ZE(+e,+t);case o9:return e.name==t.name&&e.message==t.message;case l9:case u9:return e==t+"";case a9:var s=JE;case c9:var c=n&t9;if(s||(s=e9),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=r9,a.set(e,t);var u=QE(s(e),s(t),n,i,o,a);return a.delete(e),u;case f9:if(fu)return fu.call(e)==fu.call(t)}return!1}var g9=p9;function m9(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Fg=m9,v9=Fg,y9=ur;function b9(e,t,r){var n=t(e);return y9(e)?n:v9(n,r(e))}var Rg=b9;function x9(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var w9=x9;function S9(){return[]}var Ng=S9,C9=w9,T9=Ng,O9=Object.prototype,E9=O9.propertyIsEnumerable,zg=Object.getOwnPropertySymbols,P9=zg?function(e){return e==null?[]:(e=Object(e),C9(zg(e),function(t){return E9.call(e,t)}))}:T9,du=P9,M9=Rg,_9=du,$9=ko;function A9(e){return M9(e,$9,_9)}var Bg=A9,Wg=Bg,k9=1,D9=Object.prototype,I9=D9.hasOwnProperty;function j9(e,t,r,n,i,o){var a=r&k9,s=Wg(e),c=s.length,l=Wg(t),u=l.length;if(c!=u&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:I9.call(t,d)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<c;){d=s[f];var x=e[d],b=t[d];if(n)var S=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(S===void 0?x===b||i(x,b,r,n,o):S)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var L9=j9,F9=wn,R9=Sr,N9=F9(R9,"DataView"),z9=N9,B9=wn,W9=Sr,V9=B9(W9,"Promise"),H9=V9,U9=wn,Y9=Sr,G9=U9(Y9,"Set"),q9=G9,K9=wn,X9=Sr,Z9=K9(X9,"WeakMap"),Q9=Z9,hu=z9,pu=lu,gu=H9,mu=q9,vu=Q9,Vg=xn,di=_g,Hg="[object Map]",J9="[object Object]",Ug="[object Promise]",Yg="[object Set]",Gg="[object WeakMap]",qg="[object DataView]",e8=di(hu),t8=di(pu),r8=di(gu),n8=di(mu),i8=di(vu),Sn=Vg;(hu&&Sn(new hu(new ArrayBuffer(1)))!=qg||pu&&Sn(new pu)!=Hg||gu&&Sn(gu.resolve())!=Ug||mu&&Sn(new mu)!=Yg||vu&&Sn(new vu)!=Gg)&&(Sn=function(e){var t=Vg(e),r=t==J9?e.constructor:void 0,n=r?di(r):"";if(n)switch(n){case e8:return qg;case t8:return Hg;case r8:return Ug;case n8:return Yg;case i8:return Gg}return t});var gs=Sn,yu=uu,o8=kg,a8=g9,s8=L9,Kg=gs,Xg=ur,Zg=Jc,l8=xg,c8=1,Qg="[object Arguments]",Jg="[object Array]",ms="[object Object]",u8=Object.prototype,em=u8.hasOwnProperty;function f8(e,t,r,n,i,o){var a=Xg(e),s=Xg(t),c=a?Jg:Kg(e),l=s?Jg:Kg(t);c=c==Qg?ms:c,l=l==Qg?ms:l;var u=c==ms,f=l==ms,d=c==l;if(d&&Zg(e)){if(!Zg(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new yu),a||l8(e)?o8(e,t,r,n,i,o):a8(e,t,c,r,n,i,o);if(!(r&c8)){var h=u&&em.call(e,"__wrapped__"),g=f&&em.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,v=g?t.value():t;return o||(o=new yu),i(p,v,r,n,o)}}return d?(o||(o=new yu),s8(e,t,r,n,i,o)):!1}var d8=f8,h8=d8,tm=Fr;function rm(e,t,r,n,i){return e===t?!0:e==null||t==null||!tm(e)&&!tm(t)?e!==e&&t!==t:h8(e,t,r,n,rm,i)}var bu=rm,p8=uu,g8=bu,m8=1,v8=2;function y8(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var f=new p8;if(n)var d=n(l,u,c,e,t,f);if(!(d===void 0?g8(u,l,m8|v8,n,f):d))return!1}}return!0}var b8=y8,x8=si;function w8(e){return e===e&&!x8(e)}var nm=w8,S8=nm,C8=ko;function T8(e){for(var t=C8(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,S8(i)]}return t}var O8=T8;function E8(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var im=E8,P8=b8,M8=O8,_8=im;function $8(e){var t=M8(e);return t.length==1&&t[0][2]?_8(t[0][0],t[0][1]):function(r){return r===e||P8(r,e,t)}}var A8=$8,k8=xn,D8=Fr,I8="[object Symbol]";function j8(e){return typeof e=="symbol"||D8(e)&&k8(e)==I8}var xu=j8,L8=ur,F8=xu,R8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N8=/^\w*$/;function z8(e,t){if(L8(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||F8(e)?!0:N8.test(e)||!R8.test(e)||t!=null&&e in Object(t)}var wu=z8,om=cu,B8="Expected a function";function Su(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(B8);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Su.Cache||om),r}Su.Cache=om;var W8=Su,V8=W8,H8=500;function U8(e){var t=V8(e,function(n){return r.size===H8&&r.clear(),n}),r=t.cache;return t}var Y8=U8,G8=Y8,q8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K8=/\\(\\)?/g,X8=G8(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(q8,function(r,n,i,o){t.push(i?o.replace(K8,"$1"):n||r)}),t}),Z8=X8,am=$o,Q8=Pg,J8=ur,eP=xu,tP=1/0,sm=am?am.prototype:void 0,lm=sm?sm.toString:void 0;function cm(e){if(typeof e=="string")return e;if(J8(e))return Q8(e,cm)+"";if(eP(e))return lm?lm.call(e):"";var t=e+"";return t=="0"&&1/e==-tP?"-0":t}var rP=cm,nP=rP;function iP(e){return e==null?"":nP(e)}var oP=iP,aP=ur,sP=wu,lP=Z8,cP=oP;function uP(e,t){return aP(e)?e:sP(e,t)?[e]:lP(cP(e))}var um=uP,fP=xu,dP=1/0;function hP(e){if(typeof e=="string"||fP(e))return e;var t=e+"";return t=="0"&&1/e==-dP?"-0":t}var vs=hP,pP=um,gP=vs;function mP(e,t){t=pP(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[gP(t[r++])];return r&&r==n?e:void 0}var fm=mP,vP=fm;function yP(e,t,r){var n=e==null?void 0:vP(e,t);return n===void 0?r:n}var bP=yP;function xP(e,t){return e!=null&&t in Object(e)}var wP=xP,SP=um,CP=mg,TP=ur,OP=vg,EP=eu,PP=vs;function MP(e,t,r){t=SP(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=PP(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&EP(i)&&OP(a,i)&&(TP(e)||CP(e)))}var _P=MP,$P=wP,AP=_P;function kP(e,t){return e!=null&&AP(e,t,$P)}var DP=kP,IP=bu,jP=bP,LP=DP,FP=wu,RP=nm,NP=im,zP=vs,BP=1,WP=2;function VP(e,t){return FP(e)&&RP(t)?NP(zP(e),t):function(r){var n=jP(r,e);return n===void 0&&n===t?LP(r,e):IP(t,n,BP|WP)}}var HP=VP;function UP(e){return function(t){return t==null?void 0:t[e]}}var YP=UP,GP=fm;function qP(e){return function(t){return GP(t,e)}}var KP=qP,XP=YP,ZP=KP,QP=wu,JP=vs;function eM(e){return QP(e)?XP(JP(e)):ZP(e)}var tM=eM,rM=A8,nM=HP,iM=Og,oM=ur,aM=tM;function sM(e){return typeof e=="function"?e:e==null?iM:typeof e=="object"?oM(e)?nM(e[0],e[1]):rM(e):aM(e)}var lM=sM,cM=cs;function uM(e,t){return function(r,n){if(r==null)return r;if(!cM(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var fM=uM,dM=Tg,hM=fM,pM=hM(dM),gM=pM,mM=gM,vM=cs;function yM(e,t){var r=-1,n=vM(e)?Array(e.length):[];return mM(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var bM=yM,xM=Pg,wM=lM,SM=bM,CM=ur;function TM(e,t){var r=CM(e)?xM:SM;return r(e,wM(t))}var OM=TM;Object.defineProperty(_o,"__esModule",{value:!0}),_o.flattenNames=void 0;var EM=eT,PM=ys(EM),MM=iu,_M=ys(MM),$M=a6,AM=ys($M),kM=OM,DM=ys(kM);function ys(e){return e&&e.__esModule?e:{default:e}}var IM=_o.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,DM.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,AM.default)(n)?(0,_M.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,PM.default)(n)&&r.push(n)}),r};_o.default=IM;var Do={};function jM(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var LM=jM,FM=wn,RM=function(){try{var e=FM(Object,"defineProperty");return e({},"",{}),e}catch{}}(),NM=RM,dm=NM;function zM(e,t,r){t=="__proto__"&&dm?dm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var hm=zM,BM=hm,WM=au,VM=Object.prototype,HM=VM.hasOwnProperty;function UM(e,t,r){var n=e[t];(!(HM.call(e,t)&&WM(n,r))||r===void 0&&!(t in e))&&BM(e,t,r)}var pm=UM,YM=pm,GM=hm;function qM(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),i?GM(r,s,c):YM(r,s,c)}return r}var bs=qM,KM=bs,XM=ko;function ZM(e,t){return e&&KM(t,XM(t),e)}var QM=ZM;function JM(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var e_=JM,t_=si,r_=nu,n_=e_,i_=Object.prototype,o_=i_.hasOwnProperty;function a_(e){if(!t_(e))return n_(e);var t=r_(e),r=[];for(var n in e)n=="constructor"&&(t||!o_.call(e,n))||r.push(n);return r}var s_=a_,l_=wg,c_=s_,u_=cs;function f_(e){return u_(e)?l_(e,!0):c_(e)}var Cu=f_,d_=bs,h_=Cu;function p_(e,t){return e&&d_(t,h_(t),e)}var g_=p_,xs={exports:{}};xs.exports,function(e,t){var r=Sr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=c}(xs,xs.exports);var m_=xs.exports;function v_(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var y_=v_,b_=bs,x_=du;function w_(e,t){return b_(e,x_(e),t)}var S_=w_,C_=Fg,T_=ou,O_=du,E_=Ng,P_=Object.getOwnPropertySymbols,M_=P_?function(e){for(var t=[];e;)C_(t,O_(e)),e=T_(e);return t}:E_,gm=M_,__=bs,$_=gm;function A_(e,t){return __(e,$_(e),t)}var k_=A_,D_=Rg,I_=gm,j_=Cu;function L_(e){return D_(e,j_,I_)}var F_=L_,R_=Object.prototype,N_=R_.hasOwnProperty;function z_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&N_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var B_=z_,mm=Dg;function W_(e){var t=new e.constructor(e.byteLength);return new mm(t).set(new mm(e)),t}var Tu=W_,V_=Tu;function H_(e,t){var r=t?V_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var U_=H_,Y_=/\w*$/;function G_(e){var t=new e.constructor(e.source,Y_.exec(e));return t.lastIndex=e.lastIndex,t}var q_=G_,vm=$o,ym=vm?vm.prototype:void 0,bm=ym?ym.valueOf:void 0;function K_(e){return bm?Object(bm.call(e)):{}}var X_=K_,Z_=Tu;function Q_(e,t){var r=t?Z_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var J_=Q_,e$=Tu,t$=U_,r$=q_,n$=X_,i$=J_,o$="[object Boolean]",a$="[object Date]",s$="[object Map]",l$="[object Number]",c$="[object RegExp]",u$="[object Set]",f$="[object String]",d$="[object Symbol]",h$="[object ArrayBuffer]",p$="[object DataView]",g$="[object Float32Array]",m$="[object Float64Array]",v$="[object Int8Array]",y$="[object Int16Array]",b$="[object Int32Array]",x$="[object Uint8Array]",w$="[object Uint8ClampedArray]",S$="[object Uint16Array]",C$="[object Uint32Array]";function T$(e,t,r){var n=e.constructor;switch(t){case h$:return e$(e);case o$:case a$:return new n(+e);case p$:return t$(e,r);case g$:case m$:case v$:case y$:case b$:case x$:case w$:case S$:case C$:return i$(e,r);case s$:return new n;case l$:case f$:return new n(e);case c$:return r$(e);case u$:return new n;case d$:return n$(e)}}var O$=T$,E$=si,xm=Object.create,P$=function(){function e(){}return function(t){if(!E$(t))return{};if(xm)return xm(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),M$=P$,_$=M$,$$=ou,A$=nu;function k$(e){return typeof e.constructor=="function"&&!A$(e)?_$($$(e)):{}}var D$=k$,I$=gs,j$=Fr,L$="[object Map]";function F$(e){return j$(e)&&I$(e)==L$}var R$=F$,N$=R$,z$=tu,wm=ru,Sm=wm&&wm.isMap,B$=Sm?z$(Sm):N$,W$=B$,V$=gs,H$=Fr,U$="[object Set]";function Y$(e){return H$(e)&&V$(e)==U$}var G$=Y$,q$=G$,K$=tu,Cm=ru,Tm=Cm&&Cm.isSet,X$=Tm?K$(Tm):q$,Z$=X$,Q$=uu,J$=LM,eA=pm,tA=QM,rA=g_,nA=m_,iA=y_,oA=S_,aA=k_,sA=Bg,lA=F_,cA=gs,uA=B_,fA=O$,dA=D$,hA=ur,pA=Jc,gA=W$,mA=si,vA=Z$,yA=ko,bA=Cu,xA=1,wA=2,SA=4,Om="[object Arguments]",CA="[object Array]",TA="[object Boolean]",OA="[object Date]",EA="[object Error]",Em="[object Function]",PA="[object GeneratorFunction]",MA="[object Map]",_A="[object Number]",Pm="[object Object]",$A="[object RegExp]",AA="[object Set]",kA="[object String]",DA="[object Symbol]",IA="[object WeakMap]",jA="[object ArrayBuffer]",LA="[object DataView]",FA="[object Float32Array]",RA="[object Float64Array]",NA="[object Int8Array]",zA="[object Int16Array]",BA="[object Int32Array]",WA="[object Uint8Array]",VA="[object Uint8ClampedArray]",HA="[object Uint16Array]",UA="[object Uint32Array]",nt={};nt[Om]=nt[CA]=nt[jA]=nt[LA]=nt[TA]=nt[OA]=nt[FA]=nt[RA]=nt[NA]=nt[zA]=nt[BA]=nt[MA]=nt[_A]=nt[Pm]=nt[$A]=nt[AA]=nt[kA]=nt[DA]=nt[WA]=nt[VA]=nt[HA]=nt[UA]=!0,nt[EA]=nt[Em]=nt[IA]=!1;function ws(e,t,r,n,i,o){var a,s=t&xA,c=t&wA,l=t&SA;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!mA(e))return e;var u=hA(e);if(u){if(a=uA(e),!s)return iA(e,a)}else{var f=cA(e),d=f==Em||f==PA;if(pA(e))return nA(e,s);if(f==Pm||f==Om||d&&!i){if(a=c||d?{}:dA(e),!s)return c?aA(e,rA(a,e)):oA(e,tA(a,e))}else{if(!nt[f])return i?e:{};a=fA(e,f,s)}}o||(o=new Q$);var h=o.get(e);if(h)return h;o.set(e,a),vA(e)?e.forEach(function(v){a.add(ws(v,t,r,v,e,o))}):gA(e)&&e.forEach(function(v,x){a.set(x,ws(v,t,r,x,e,o))});var g=l?c?lA:sA:c?bA:yA,p=u?void 0:g(e);return J$(p||e,function(v,x){p&&(x=v,v=e[x]),eA(a,x,ws(v,t,r,x,e,o))}),a}var YA=ws,GA=YA,qA=1,KA=4;function XA(e){return GA(e,qA|KA)}var ZA=XA;Object.defineProperty(Do,"__esModule",{value:!0}),Do.mergeClasses=void 0;var QA=iu,JA=Mm(QA),ek=ZA,tk=Mm(ek),rk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Mm(e){return e&&e.__esModule?e:{default:e}}var nk=Do.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,tk.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,JA.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=rk({},n[s],o[s])}),i}),n};Do.default=nk;var Io={};Object.defineProperty(Io,"__esModule",{value:!0}),Io.autoprefix=void 0;var ik=iu,_m=ak(ik),ok=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function ak(e){return e&&e.__esModule?e:{default:e}}var sk={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},lk=Io.autoprefix=function(t){var r={};return(0,_m.default)(t,function(n,i){var o={};(0,_m.default)(n,function(a,s){var c=sk[s];c?o=ok({},o,c(a)):o[s]=a}),r[i]=o}),r};Io.default=lk;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.hover=void 0;var ck=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uk=m,Ou=fk(uk);function fk(e){return e&&e.__esModule?e:{default:e}}function dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function hk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var pk=jo.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){hk(i,n);function i(){var o,a,s,c;dk(this,i);for(var l=arguments.length,u=Array(l),f=0;f<l;f++)u[f]=arguments[f];return c=(a=(s=$m(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Ou.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Ou.default.createElement(t,ck({},s.props,s.state)))},a),$m(s,c)}return i}(Ou.default.Component)};jo.default=pk;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.active=void 0;var gk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mk=m,Eu=vk(mk);function vk(e){return e&&e.__esModule?e:{default:e}}function yk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Am(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function bk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var xk=Lo.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){bk(i,n);function i(){var o,a,s,c;yk(this,i);for(var l=arguments.length,u=Array(l),f=0;f<l;f++)u[f]=arguments[f];return c=(a=(s=Am(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Eu.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Eu.default.createElement(t,gk({},s.props,s.state)))},a),Am(s,c)}return i}(Eu.default.Component)};Lo.default=xk;var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});var wk=function(t,r){var n={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[a]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Pu.default=wk,Object.defineProperty(or,"__esModule",{value:!0}),or.ReactCSS=or.loop=or.handleActive=Mu=or.handleHover=or.hover=void 0;var Sk=_o,Ck=hi(Sk),Tk=Do,Ok=hi(Tk),Ek=Io,Pk=hi(Ek),Mk=jo,km=hi(Mk),_k=Lo,$k=hi(_k),Ak=Pu,kk=hi(Ak);function hi(e){return e&&e.__esModule?e:{default:e}}or.hover=km.default;var Mu=or.handleHover=km.default;or.handleActive=$k.default,or.loop=kk.default;var Dk=or.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=(0,Ck.default)(n),a=(0,Ok.default)(t,o);return(0,Pk.default)(a)},Se=or.default=Dk,Ik=function(t,r,n,i,o){var a=o.clientWidth,s=o.clientHeight,c=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=c-(o.getBoundingClientRect().left+window.pageXOffset),f=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(u<0?h=0:u>a?h=1:h=Math.round(u*100/a)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},_u={},jk=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=n*2,o.height=n*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=r,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null},Lk=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(_u[o])return _u[o];var a=jk(t,r,n,i);return _u[o]=a,a},Dm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pi=function(t){var r=t.white,n=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,c=t.children,l=Se({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+Lk(r,n,i,o.canvas)+") center left"}}});return m.isValidElement(c)?m.cloneElement(c,Dm({},c.props,{style:Dm({},c.props.style,l.grid)})):m.createElement("div",{style:l.grid})};pi.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Fk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rk=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Im(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $u=function(e){zk(t,e);function t(){var r,n,i,o;Nk(this,t);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return o=(n=(i=Im(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var u=Ik(l,i.props.hsl,i.props.direction,i.props.a,i.container);u&&typeof i.props.onChange=="function"&&i.props.onChange(u,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),Im(i,o)}return Rk(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Se({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
102
|
+
} });`:oi(12,v?` (${v})`:"",JSON.stringify(p.main)));return cg(p,"light",b,n),cg(p,"dark",C,n),p.contrastText||(p.contrastText=f(p.main)),p},h={dark:uc,light:ug};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nr(Ae({common:Ae({},Bo),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:cS,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const bS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function xS(e){return Math.round(e*1e5)/1e5}const fg={textTransform:"uppercase"},dg='"Roboto", "Helvetica", "Arial", sans-serif';function wS(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=dg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,d=zr(r,bS);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,m=f||(x=>`${x/l*h}rem`),p=(x,b,C,E,w)=>Ae({fontFamily:n,fontWeight:x,fontSize:m(b),lineHeight:C},n===dg?{letterSpacing:`${xS(E/b)}em`}:{},w,c),v={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(s,14,1.75,.4,fg),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,fg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr(Ae({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},v),d,{clone:!1})}const CS=.2,SS=.14,ES=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${SS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ES})`].join(",")}const TS=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],_S=["duration","easing","delay"],OS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},kS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hg(e){return`${Math.round(e)}ms`}function MS(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function PS(e){const t=Ae({},OS,e.easing),r=Ae({},kS,e.duration);return Ae({getAutoHeightDuration:MS,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=o,l=zr(o,_S);if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
103
|
+
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:hg(a)} ${s} ${typeof u=="string"?u:hg(u)}`).join(",")}},e,{easing:t,duration:r})}const AS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},DS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pg(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=zr(e,DS);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":oi(18));const s=yS(n),u=ic(e);let l=Nr(u,{mixins:uS(u.breakpoints,r),palette:s,shadows:TS.slice(),typography:wS(s,o),transitions:PS(i),zIndex:Ae({},AS)});if(l=Nr(l,a),l=t.reduce((c,f)=>Nr(c,f),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,h)=>{let m;for(m in d){const p=d[m];if(c.indexOf(m)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const v=m4("",m);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
104
|
+
`))}d[m]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=Ae({},rc,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return nc({sx:f,theme:this})},l}const gg=pg();function mi(){const e=GC(gg);return process.env.NODE_ENV!=="production"&&xe.useDebugValue(e),e[Ka]||e}const $t=nS({themeId:Ka,defaultTheme:gg,rootShouldForwardProp:e=>hs(e)&&e!=="classes"}),$S=["theme"];function mg(e){let{theme:t}=e,r=zr(e,$S);const n=t[Ka];return y.jsx(ms,Ae({},r,{themeId:n?Ka:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(mg.propTypes={children:T.node,theme:T.oneOfType([T.object,T.func]).isRequired});function IS(e,t,r,n,i){const[o,a]=xe.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return h4(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&a(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const vg=xe["useSyncExternalStore"];function FS(e,t,r,n,i){const o=xe.useCallback(()=>t,[t]),a=xe.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,i,r]),[s,u]=xe.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return vg(u,s,a)}function vs(e,t={}){const r=oc(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=iS({name:"MuiUseMediaQuery",props:t,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
105
|
+
`));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(vg!==void 0?FS:IS)(u,i,o,a,s);return process.env.NODE_ENV!=="production"&&xe.useDebugValue({query:u,match:c}),c}const yg=(e,t,r)=>{const n=mi(),i=vs(n.breakpoints.up(t)),o=vs(n.breakpoints.down(t)),a=vs(n.breakpoints.between(t,r)),s=vs(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},jS=({children:e,disableAnimatedMobile:t=!0,...r})=>yg("down","sm")&&t?y.jsx(P.Box,{...r,children:e}):y.jsx(P.Box,{component:gr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Ea(),...r,children:e}),LS=({animate:e,action:t=!1,children:r,...n})=>t?y.jsx(P.Box,{component:gr.div,initial:!1,animate:e?"animate":"exit",variants:Ea(),...n,children:r}):y.jsx(P.Box,{component:gr.div,initial:"initial",animate:"animate",exit:"exit",variants:Ea(),...n,children:r}),RS=()=>Promise.resolve().then(()=>bX).then(e=>e.default),BS=({children:e})=>y.jsx(N3,{strict:!0,features:RS,children:y.jsxs(gr.div,{style:{height:"100%"},children:[" ",e," "]})}),cc=(e=!1)=>{const[t,r]=g.useState(e),n=g.useCallback(()=>r(i=>!i),[]);return[t,n,r]};function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}function bg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function NS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dc(e,t)}var xg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zS(e,t){return!!(e===t||xg(e)&&xg(t))}function VS(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!zS(e[r],t[r]))return!1;return!0}function hc(e,t){t===void 0&&(t=VS);var r,n=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&r===this&&t(s,n)||(i=e.apply(this,s),o=!0,r=this,n=s),i}return a}var WS=typeof performance=="object"&&typeof performance.now=="function",wg=WS?function(){return performance.now()}:function(){return Date.now()};function Cg(e){cancelAnimationFrame(e.id)}function HS(e,t){var r=wg();function n(){wg()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var pc=-1;function Sg(e){if(e===void 0&&(e=!1),pc===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),pc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pc}var vi=null;function Eg(e){if(e===void 0&&(e=!1),vi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?vi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vi="negative":vi="positive-ascending"),document.body.removeChild(t),vi}return vi}process.env.NODE_ENV;var US=150,YS=function(t,r){return t},ys=null,bs=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(ys=new WeakSet,bs=new WeakSet);function GS(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){NS(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=u(p.props,bg(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:bg(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=hc(function(v,x,b,C){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:x,visibleStartIndex:b,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=hc(function(v,x,b){return p.props.onScroll({scrollDirection:v,scrollOffset:x,scrollUpdateWasRequested:b})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var x=p.props,b=x.direction,C=x.itemSize,E=x.layout,w=p._getItemStyleCache(l&&C,l&&E,l&&b),_;if(w.hasOwnProperty(v))_=w[v];else{var O=r(p.props,v,p._instanceProps),k=i(p.props,v,p._instanceProps),D=b==="horizontal"||E==="horizontal",L=b==="rtl",re=D?O:0;w[v]=_={position:"absolute",left:L?void 0:re,right:L?re:void 0,top:D?0:O,height:D?"100%":k,width:D?k:"100%"}}return _},p._getItemStyleCache=void 0,p._getItemStyleCache=hc(function(v,x,b){return{}}),p._onScrollHorizontal=function(v){var x=v.currentTarget,b=x.clientWidth,C=x.scrollLeft,E=x.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var _=p.props.direction,O=C;if(_==="rtl")switch(Eg()){case"negative":O=-C;break;case"positive-descending":O=E-b-C;break}return O=Math.max(0,Math.min(O,E-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var x=v.currentTarget,b=x.clientHeight,C=x.scrollHeight,E=x.scrollTop;p.setState(function(w){if(w.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,C-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var x=p.props.outerRef;p._outerRef=v,typeof x=="function"?x(v):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&Cg(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=HS(p._resetIsScrolling,US)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,v){return qS(p,v),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,v){v===void 0&&(v="auto");var x=this.props,b=x.itemCount,C=x.layout,E=this.state.scrollOffset;p=Math.max(0,Math.min(p,b-1));var w=0;if(this._outerRef){var _=this._outerRef;C==="vertical"?w=_.scrollWidth>_.clientWidth?Sg():0:w=_.scrollHeight>_.clientHeight?Sg():0}this.scrollTo(o(this.props,p,v,E,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,v=p.direction,x=p.initialScrollOffset,b=p.layout;if(typeof x=="number"&&this._outerRef!=null){var C=this._outerRef;v==="horizontal"||b==="horizontal"?C.scrollLeft=x:C.scrollTop=x}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,v=p.direction,x=p.layout,b=this.state,C=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||x==="horizontal")if(v==="rtl")switch(Eg()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var _=w.clientWidth,O=w.scrollWidth;w.scrollLeft=O-_-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Cg(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,v=p.children,x=p.className,b=p.direction,C=p.height,E=p.innerRef,w=p.innerElementType,_=p.innerTagName,O=p.itemCount,k=p.itemData,D=p.itemKey,L=D===void 0?YS:D,re=p.layout,pe=p.outerElementType,se=p.outerTagName,q=p.style,G=p.useIsScrolling,me=p.width,Ee=this.state.isScrolling,Ie=b==="horizontal"||re==="horizontal",Oe=Ie?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),j=$[0],X=$[1],ee=[];if(O>0)for(var H=j;H<=X;H++)ee.push(g.createElement(v,{data:k,key:L(H,k),index:H,isScrolling:G?Ee:void 0,style:this._getItemStyle(H)}));var fe=n(this.props,this._instanceProps);return g.createElement(pe||se||"div",{className:x,onScroll:Oe,ref:this._outerRefSetter,style:fc({position:"relative",height:C,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},q)},g.createElement(w||_||"div",{children:ee,ref:E,style:{height:Ie?"100%":fe,pointerEvents:Ee?"none":void 0,width:Ie?fe:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),x=v[0],b=v[1],C=v[2],E=v[3];this._callOnItemsRendered(x,b,C,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,O=w.scrollOffset,k=w.scrollUpdateWasRequested;this._callOnScroll(_,O,k)}},h._getRangeToRender=function(){var p=this.props,v=p.itemCount,x=p.overscanCount,b=this.state,C=b.isScrolling,E=b.scrollDirection,w=b.scrollOffset;if(v===0)return[0,0,0,0];var _=a(this.props,w,this._instanceProps),O=s(this.props,_,w,this._instanceProps),k=!C||E==="backward"?Math.max(1,x):1,D=!C||E==="forward"?Math.max(1,x):1;return[Math.max(0,_-k),Math.max(0,Math.min(v-1,O+D)),_,O]},d}(g.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var qS=function(t,r){var n=t.children,i=t.direction,o=t.height,a=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&bs&&!bs.has(c)&&(bs.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":ys&&!ys.has(c)&&(ys.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},KS=50,yi=function(t,r,n){var i=t,o=i.itemSize,a=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=a[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=o(c);a[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return a[r]},XS=function(t,r,n){var i=r.itemMetadataMap,o=r.lastMeasuredIndex,a=o>0?i[o].offset:0;return a>=n?Tg(t,r,o,0,n):ZS(t,r,Math.max(0,o),n)},Tg=function(t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=yi(t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},ZS=function(t,r,n,i){for(var o=t.itemCount,a=1;n<o&&yi(t,n,r).offset<i;)n+=a,a*=2;return Tg(t,r,Math.min(n,o-1),Math.floor(n/2),i)},_g=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,o=r.estimatedItemSize,a=r.lastMeasuredIndex,s=0;if(a>=n&&(a=n-1),a>=0){var u=i[a];s=u.offset+u.size}var l=n-a-1,c=l*o;return s+c},QS=GS({getItemOffset:function(t,r,n){return yi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:_g,getOffsetForIndexAndAlignment:function(t,r,n,i,o,a){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=yi(t,r,o),m=_g(t,o),p=Math.max(0,Math.min(m-d,h.offset)),v=Math.max(0,h.offset-d+h.size+a);switch(n==="smart"&&(i>=v-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return v;case"center":return Math.round(v+(p-v)/2);case"auto":default:return i>=v&&i<=p?i:i<v?v:p}},getStartIndexForOffset:function(t,r,n){return XS(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var o=t.direction,a=t.height,s=t.itemCount,u=t.layout,l=t.width,c=o==="horizontal"||u==="horizontal",f=c?l:a,d=yi(t,r,i),h=n+f,m=d.offset+d.size,p=r;p<s-1&&m<h;)p++,m+=yi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||KS,lastMeasuredIndex:-1};return r.resetAfterIndex=function(a,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,a-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const Og=8,JS=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:o,...a}=i[0],s={...n,top:n.top+Og,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?y.jsx(P.ListSubheader,{component:"div",style:s,children:i.group},i.key):y.jsx(P.Typography,{component:"li",...a,noWrap:!0,style:s,children:y.jsxs(P.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,o&&y.jsxs(P.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},kg=g.createContext({}),Mg=g.forwardRef((e,t)=>{const r=g.useContext(kg);return y.jsx("div",{ref:t,...e,...r})});Mg.displayName="OuterElementType";const eE=e=>{const t=g.useRef(null);return g.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},tE=g.forwardRef(function(t,r){const{children:n,...i}=t,o=[];n.forEach(h=>{o.push(h),o.push(...h.children||[])});const a=P.useTheme(),s=P.useMediaQuery(a.breakpoints.up("sm")),u=o.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:o.map(c).reduce((h,m)=>h+m,0),d=eE(u);return y.jsx("div",{ref:r,children:y.jsx(kg.Provider,{value:i,children:y.jsx(QS,{itemData:o,height:f()+2*Og,width:"100%",ref:d,outerElementType:Mg,innerElementType:"ul",itemSize:h=>c(o[h]),overscanCount:5,itemCount:u,children:JS})})})}),rE=P.styled(P.Popper)({[`& .${P.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),gc=g.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:o="Carregando opções...",error:a,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:m,renderOption:p,...v},x)=>{const b=k=>k&&typeof k=="object"?k.value.toString():k.toString(),[C,E,w]=cc(),_=k=>{k.type!=="change"&&E()},O=g.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((L,re)=>{const pe=r.find(se=>se.value.toString()===re.toString());return pe?[...L,pe]:[...L]},[]):r.find(D=>D.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return y.jsx(P.Autocomplete,{ref:x,value:O,open:C,onClose:E,onOpen:_,onInputChange:(k,D,L)=>{L==="input"&&w(!0),!n&&!O&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:o,disabled:n||d,disableListWrap:!0,PopperComponent:rE,ListboxComponent:p?void 0:tE,filterOptions:(k,D)=>k.filter(L=>`${L.value} ${L.label}`.toLocaleUpperCase().includes(D.inputValue.toLocaleUpperCase())),onChange:(k,D)=>{if(!D){l(h?[]:null);return}if(Array.isArray(D)){l(D.map(b));return}l(typeof D=="string"?D.toString():D.value.toString())},renderOption:(k,D,L,re)=>p?p(k,D,L,re):[{...k,showValueInLabel:f},D],renderGroup:k=>k,groupBy:c,multiple:h,renderInput:k=>y.jsx(P.TextField,{...k,placeholder:u,fullWidth:!0,error:!!a,helperText:s,label:e,required:m,InputProps:{...k.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[n?y.jsx(P.CircularProgress,{color:"primary",size:20}):null,k.InputProps.endAdornment]})}}),...v})});gc.displayName="Autocomplete";var cr={},zo={},nE=typeof ho=="object"&&ho&&ho.Object===Object&&ho,Pg=nE,iE=Pg,oE=typeof self=="object"&&self&&self.Object===Object&&self,aE=iE||oE||Function("return this")(),kr=aE,sE=kr,lE=sE.Symbol,Vo=lE,Ag=Vo,Dg=Object.prototype,uE=Dg.hasOwnProperty,cE=Dg.toString,Wo=Ag?Ag.toStringTag:void 0;function fE(e){var t=uE.call(e,Wo),r=e[Wo];try{e[Wo]=void 0;var n=!0}catch{}var i=cE.call(e);return n&&(t?e[Wo]=r:delete e[Wo]),i}var dE=fE,hE=Object.prototype,pE=hE.toString;function gE(e){return pE.call(e)}var mE=gE,$g=Vo,vE=dE,yE=mE,bE="[object Null]",xE="[object Undefined]",Ig=$g?$g.toStringTag:void 0;function wE(e){return e==null?e===void 0?xE:bE:Ig&&Ig in Object(e)?vE(e):yE(e)}var kn=wE,CE=Array.isArray,mr=CE;function SE(e){return e!=null&&typeof e=="object"}var Wr=SE,EE=kn,TE=mr,_E=Wr,OE="[object String]";function kE(e){return typeof e=="string"||!TE(e)&&_E(e)&&EE(e)==OE}var ME=kE;function PE(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var AE=PE,DE=AE,$E=DE(),IE=$E;function FE(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jE=FE,LE=kn,RE=Wr,BE="[object Arguments]";function NE(e){return RE(e)&&LE(e)==BE}var zE=NE,Fg=zE,VE=Wr,jg=Object.prototype,WE=jg.hasOwnProperty,HE=jg.propertyIsEnumerable,UE=Fg(function(){return arguments}())?Fg:function(e){return VE(e)&&WE.call(e,"callee")&&!HE.call(e,"callee")},Lg=UE,xs={exports:{}};function YE(){return!1}var GE=YE;xs.exports,function(e,t){var r=kr,n=GE,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(xs,xs.exports);var mc=xs.exports,qE=9007199254740991,KE=/^(?:0|[1-9]\d*)$/;function XE(e,t){var r=typeof e;return t=t??qE,!!t&&(r=="number"||r!="symbol"&&KE.test(e))&&e>-1&&e%1==0&&e<t}var Rg=XE,ZE=9007199254740991;function QE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZE}var vc=QE,JE=kn,eT=vc,tT=Wr,rT="[object Arguments]",nT="[object Array]",iT="[object Boolean]",oT="[object Date]",aT="[object Error]",sT="[object Function]",lT="[object Map]",uT="[object Number]",cT="[object Object]",fT="[object RegExp]",dT="[object Set]",hT="[object String]",pT="[object WeakMap]",gT="[object ArrayBuffer]",mT="[object DataView]",vT="[object Float32Array]",yT="[object Float64Array]",bT="[object Int8Array]",xT="[object Int16Array]",wT="[object Int32Array]",CT="[object Uint8Array]",ST="[object Uint8ClampedArray]",ET="[object Uint16Array]",TT="[object Uint32Array]",lt={};lt[vT]=lt[yT]=lt[bT]=lt[xT]=lt[wT]=lt[CT]=lt[ST]=lt[ET]=lt[TT]=!0,lt[rT]=lt[nT]=lt[gT]=lt[iT]=lt[mT]=lt[oT]=lt[aT]=lt[sT]=lt[lT]=lt[uT]=lt[cT]=lt[fT]=lt[dT]=lt[hT]=lt[pT]=!1;function _T(e){return tT(e)&&eT(e.length)&&!!lt[JE(e)]}var OT=_T;function kT(e){return function(t){return e(t)}}var yc=kT,ws={exports:{}};ws.exports,function(e,t){var r=Pg,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ws,ws.exports);var bc=ws.exports,MT=OT,PT=yc,Bg=bc,Ng=Bg&&Bg.isTypedArray,AT=Ng?PT(Ng):MT,zg=AT,DT=jE,$T=Lg,IT=mr,FT=mc,jT=Rg,LT=zg,RT=Object.prototype,BT=RT.hasOwnProperty;function NT(e,t){var r=IT(e),n=!r&&$T(e),i=!r&&!n&&FT(e),o=!r&&!n&&!i&<(e),a=r||n||i||o,s=a?DT(e.length,String):[],u=s.length;for(var l in e)(t||BT.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jT(l,u)))&&s.push(l);return s}var Vg=NT,zT=Object.prototype;function VT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zT;return e===r}var xc=VT;function WT(e,t){return function(r){return e(t(r))}}var Wg=WT,HT=Wg,UT=HT(Object.keys,Object),YT=UT,GT=xc,qT=YT,KT=Object.prototype,XT=KT.hasOwnProperty;function ZT(e){if(!GT(e))return qT(e);var t=[];for(var r in Object(e))XT.call(e,r)&&r!="constructor"&&t.push(r);return t}var QT=ZT;function JT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bi=JT,e_=kn,t_=bi,r_="[object AsyncFunction]",n_="[object Function]",i_="[object GeneratorFunction]",o_="[object Proxy]";function a_(e){if(!t_(e))return!1;var t=e_(e);return t==n_||t==i_||t==r_||t==o_}var Hg=a_,s_=Hg,l_=vc;function u_(e){return e!=null&&l_(e.length)&&!s_(e)}var Cs=u_,c_=Vg,f_=QT,d_=Cs;function h_(e){return d_(e)?c_(e):f_(e)}var Ho=h_,p_=IE,g_=Ho;function m_(e,t){return e&&p_(e,t,g_)}var Ug=m_;function v_(e){return e}var Yg=v_,y_=Yg;function b_(e){return typeof e=="function"?e:y_}var x_=b_,w_=Ug,C_=x_;function S_(e,t){return e&&w_(e,C_(t))}var wc=S_,E_=Wg,T_=E_(Object.getPrototypeOf,Object),Cc=T_,__=kn,O_=Cc,k_=Wr,M_="[object Object]",P_=Function.prototype,A_=Object.prototype,Gg=P_.toString,D_=A_.hasOwnProperty,$_=Gg.call(Object);function I_(e){if(!k_(e)||__(e)!=M_)return!1;var t=O_(e);if(t===null)return!0;var r=D_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gg.call(r)==$_}var F_=I_;function j_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var qg=j_;function L_(){this.__data__=[],this.size=0}var R_=L_;function B_(e,t){return e===t||e!==e&&t!==t}var Sc=B_,N_=Sc;function z_(e,t){for(var r=e.length;r--;)if(N_(e[r][0],t))return r;return-1}var Ss=z_,V_=Ss,W_=Array.prototype,H_=W_.splice;function U_(e){var t=this.__data__,r=V_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():H_.call(t,r,1),--this.size,!0}var Y_=U_,G_=Ss;function q_(e){var t=this.__data__,r=G_(t,e);return r<0?void 0:t[r][1]}var K_=q_,X_=Ss;function Z_(e){return X_(this.__data__,e)>-1}var Q_=Z_,J_=Ss;function eO(e,t){var r=this.__data__,n=J_(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var tO=eO,rO=R_,nO=Y_,iO=K_,oO=Q_,aO=tO;function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=rO,xi.prototype.delete=nO,xi.prototype.get=iO,xi.prototype.has=oO,xi.prototype.set=aO;var Es=xi,sO=Es;function lO(){this.__data__=new sO,this.size=0}var uO=lO;function cO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var fO=cO;function dO(e){return this.__data__.get(e)}var hO=dO;function pO(e){return this.__data__.has(e)}var gO=pO,mO=kr,vO=mO["__core-js_shared__"],yO=vO,Ec=yO,Kg=function(){var e=/[^.]+$/.exec(Ec&&Ec.keys&&Ec.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bO(e){return!!Kg&&Kg in e}var xO=bO,wO=Function.prototype,CO=wO.toString;function SO(e){if(e!=null){try{return CO.call(e)}catch{}try{return e+""}catch{}}return""}var Xg=SO,EO=Hg,TO=xO,_O=bi,OO=Xg,kO=/[\\^$.*+?()[\]{}|]/g,MO=/^\[object .+?Constructor\]$/,PO=Function.prototype,AO=Object.prototype,DO=PO.toString,$O=AO.hasOwnProperty,IO=RegExp("^"+DO.call($O).replace(kO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FO(e){if(!_O(e)||TO(e))return!1;var t=EO(e)?IO:MO;return t.test(OO(e))}var jO=FO;function LO(e,t){return e==null?void 0:e[t]}var RO=LO,BO=jO,NO=RO;function zO(e,t){var r=NO(e,t);return BO(r)?r:void 0}var Mn=zO,VO=Mn,WO=kr,HO=VO(WO,"Map"),Tc=HO,UO=Mn,YO=UO(Object,"create"),Ts=YO,Zg=Ts;function GO(){this.__data__=Zg?Zg(null):{},this.size=0}var qO=GO;function KO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XO=KO,ZO=Ts,QO="__lodash_hash_undefined__",JO=Object.prototype,e6=JO.hasOwnProperty;function t6(e){var t=this.__data__;if(ZO){var r=t[e];return r===QO?void 0:r}return e6.call(t,e)?t[e]:void 0}var r6=t6,n6=Ts,i6=Object.prototype,o6=i6.hasOwnProperty;function a6(e){var t=this.__data__;return n6?t[e]!==void 0:o6.call(t,e)}var s6=a6,l6=Ts,u6="__lodash_hash_undefined__";function c6(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=l6&&t===void 0?u6:t,this}var f6=c6,d6=qO,h6=XO,p6=r6,g6=s6,m6=f6;function wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wi.prototype.clear=d6,wi.prototype.delete=h6,wi.prototype.get=p6,wi.prototype.has=g6,wi.prototype.set=m6;var v6=wi,Qg=v6,y6=Es,b6=Tc;function x6(){this.size=0,this.__data__={hash:new Qg,map:new(b6||y6),string:new Qg}}var w6=x6;function C6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var S6=C6,E6=S6;function T6(e,t){var r=e.__data__;return E6(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _s=T6,_6=_s;function O6(e){var t=_6(this,e).delete(e);return this.size-=t?1:0,t}var k6=O6,M6=_s;function P6(e){return M6(this,e).get(e)}var A6=P6,D6=_s;function $6(e){return D6(this,e).has(e)}var I6=$6,F6=_s;function j6(e,t){var r=F6(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var L6=j6,R6=w6,B6=k6,N6=A6,z6=I6,V6=L6;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=R6,Ci.prototype.delete=B6,Ci.prototype.get=N6,Ci.prototype.has=z6,Ci.prototype.set=V6;var _c=Ci,W6=Es,H6=Tc,U6=_c,Y6=200;function G6(e,t){var r=this.__data__;if(r instanceof W6){var n=r.__data__;if(!H6||n.length<Y6-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U6(n)}return r.set(e,t),this.size=r.size,this}var q6=G6,K6=Es,X6=uO,Z6=fO,Q6=hO,J6=gO,e7=q6;function Si(e){var t=this.__data__=new K6(e);this.size=t.size}Si.prototype.clear=X6,Si.prototype.delete=Z6,Si.prototype.get=Q6,Si.prototype.has=J6,Si.prototype.set=e7;var Oc=Si,t7="__lodash_hash_undefined__";function r7(e){return this.__data__.set(e,t7),this}var n7=r7;function i7(e){return this.__data__.has(e)}var o7=i7,a7=_c,s7=n7,l7=o7;function Os(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new a7;++t<r;)this.add(e[t])}Os.prototype.add=Os.prototype.push=s7,Os.prototype.has=l7;var u7=Os;function c7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var f7=c7;function d7(e,t){return e.has(t)}var h7=d7,p7=u7,g7=f7,m7=h7,v7=1,y7=2;function b7(e,t,r,n,i,o){var a=r&v7,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&y7?new p7:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!g7(t,function(x,b){if(!m7(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var Jg=b7,x7=kr,w7=x7.Uint8Array,em=w7;function C7(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var S7=C7;function E7(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var T7=E7,tm=Vo,rm=em,_7=Sc,O7=Jg,k7=S7,M7=T7,P7=1,A7=2,D7="[object Boolean]",$7="[object Date]",I7="[object Error]",F7="[object Map]",j7="[object Number]",L7="[object RegExp]",R7="[object Set]",B7="[object String]",N7="[object Symbol]",z7="[object ArrayBuffer]",V7="[object DataView]",nm=tm?tm.prototype:void 0,kc=nm?nm.valueOf:void 0;function W7(e,t,r,n,i,o,a){switch(r){case V7:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z7:return!(e.byteLength!=t.byteLength||!o(new rm(e),new rm(t)));case D7:case $7:case j7:return _7(+e,+t);case I7:return e.name==t.name&&e.message==t.message;case L7:case B7:return e==t+"";case F7:var s=k7;case R7:var u=n&P7;if(s||(s=M7),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=A7,a.set(e,t);var c=O7(s(e),s(t),n,i,o,a);return a.delete(e),c;case N7:if(kc)return kc.call(e)==kc.call(t)}return!1}var H7=W7;function U7(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var im=U7,Y7=im,G7=mr;function q7(e,t,r){var n=t(e);return G7(e)?n:Y7(n,r(e))}var om=q7;function K7(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var X7=K7;function Z7(){return[]}var am=Z7,Q7=X7,J7=am,ek=Object.prototype,tk=ek.propertyIsEnumerable,sm=Object.getOwnPropertySymbols,rk=sm?function(e){return e==null?[]:(e=Object(e),Q7(sm(e),function(t){return tk.call(e,t)}))}:J7,Mc=rk,nk=om,ik=Mc,ok=Ho;function ak(e){return nk(e,ok,ik)}var lm=ak,um=lm,sk=1,lk=Object.prototype,uk=lk.hasOwnProperty;function ck(e,t,r,n,i,o){var a=r&sk,s=um(e),u=s.length,l=um(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:uk.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var fk=ck,dk=Mn,hk=kr,pk=dk(hk,"DataView"),gk=pk,mk=Mn,vk=kr,yk=mk(vk,"Promise"),bk=yk,xk=Mn,wk=kr,Ck=xk(wk,"Set"),Sk=Ck,Ek=Mn,Tk=kr,_k=Ek(Tk,"WeakMap"),Ok=_k,Pc=gk,Ac=Tc,Dc=bk,$c=Sk,Ic=Ok,cm=kn,Ei=Xg,fm="[object Map]",kk="[object Object]",dm="[object Promise]",hm="[object Set]",pm="[object WeakMap]",gm="[object DataView]",Mk=Ei(Pc),Pk=Ei(Ac),Ak=Ei(Dc),Dk=Ei($c),$k=Ei(Ic),Pn=cm;(Pc&&Pn(new Pc(new ArrayBuffer(1)))!=gm||Ac&&Pn(new Ac)!=fm||Dc&&Pn(Dc.resolve())!=dm||$c&&Pn(new $c)!=hm||Ic&&Pn(new Ic)!=pm)&&(Pn=function(e){var t=cm(e),r=t==kk?e.constructor:void 0,n=r?Ei(r):"";if(n)switch(n){case Mk:return gm;case Pk:return fm;case Ak:return dm;case Dk:return hm;case $k:return pm}return t});var ks=Pn,Fc=Oc,Ik=Jg,Fk=H7,jk=fk,mm=ks,vm=mr,ym=mc,Lk=zg,Rk=1,bm="[object Arguments]",xm="[object Array]",Ms="[object Object]",Bk=Object.prototype,wm=Bk.hasOwnProperty;function Nk(e,t,r,n,i,o){var a=vm(e),s=vm(t),u=a?xm:mm(e),l=s?xm:mm(t);u=u==bm?Ms:u,l=l==bm?Ms:l;var c=u==Ms,f=l==Ms,d=u==l;if(d&&ym(e)){if(!ym(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Fc),a||Lk(e)?Ik(e,t,r,n,i,o):Fk(e,t,u,r,n,i,o);if(!(r&Rk)){var h=c&&wm.call(e,"__wrapped__"),m=f&&wm.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Fc),i(p,v,r,n,o)}}return d?(o||(o=new Fc),jk(e,t,r,n,i,o)):!1}var zk=Nk,Vk=zk,Cm=Wr;function Sm(e,t,r,n,i){return e===t?!0:e==null||t==null||!Cm(e)&&!Cm(t)?e!==e&&t!==t:Vk(e,t,r,n,Sm,i)}var jc=Sm,Wk=Oc,Hk=jc,Uk=1,Yk=2;function Gk(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Wk;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?Hk(c,l,Uk|Yk,n,f):d))return!1}}return!0}var qk=Gk,Kk=bi;function Xk(e){return e===e&&!Kk(e)}var Em=Xk,Zk=Em,Qk=Ho;function Jk(e){for(var t=Qk(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Zk(i)]}return t}var eM=Jk;function tM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Tm=tM,rM=qk,nM=eM,iM=Tm;function oM(e){var t=nM(e);return t.length==1&&t[0][2]?iM(t[0][0],t[0][1]):function(r){return r===e||rM(r,e,t)}}var aM=oM,sM=kn,lM=Wr,uM="[object Symbol]";function cM(e){return typeof e=="symbol"||lM(e)&&sM(e)==uM}var Lc=cM,fM=mr,dM=Lc,hM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pM=/^\w*$/;function gM(e,t){if(fM(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dM(e)?!0:pM.test(e)||!hM.test(e)||t!=null&&e in Object(t)}var Rc=gM,_m=_c,mM="Expected a function";function Bc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mM);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Bc.Cache||_m),r}Bc.Cache=_m;var vM=Bc,yM=vM,bM=500;function xM(e){var t=yM(e,function(n){return r.size===bM&&r.clear(),n}),r=t.cache;return t}var wM=xM,CM=wM,SM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EM=/\\(\\)?/g,TM=CM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SM,function(r,n,i,o){t.push(i?o.replace(EM,"$1"):n||r)}),t}),_M=TM,Om=Vo,OM=qg,kM=mr,MM=Lc,PM=1/0,km=Om?Om.prototype:void 0,Mm=km?km.toString:void 0;function Pm(e){if(typeof e=="string")return e;if(kM(e))return OM(e,Pm)+"";if(MM(e))return Mm?Mm.call(e):"";var t=e+"";return t=="0"&&1/e==-PM?"-0":t}var AM=Pm,DM=AM;function $M(e){return e==null?"":DM(e)}var IM=$M,FM=mr,jM=Rc,LM=_M,RM=IM;function BM(e,t){return FM(e)?e:jM(e,t)?[e]:LM(RM(e))}var Am=BM,NM=Lc,zM=1/0;function VM(e){if(typeof e=="string"||NM(e))return e;var t=e+"";return t=="0"&&1/e==-zM?"-0":t}var Ps=VM,WM=Am,HM=Ps;function UM(e,t){t=WM(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[HM(t[r++])];return r&&r==n?e:void 0}var Dm=UM,YM=Dm;function GM(e,t,r){var n=e==null?void 0:YM(e,t);return n===void 0?r:n}var qM=GM;function KM(e,t){return e!=null&&t in Object(e)}var XM=KM,ZM=Am,QM=Lg,JM=mr,e9=Rg,t9=vc,r9=Ps;function n9(e,t,r){t=ZM(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=r9(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&t9(i)&&e9(a,i)&&(JM(e)||QM(e)))}var i9=n9,o9=XM,a9=i9;function s9(e,t){return e!=null&&a9(e,t,o9)}var l9=s9,u9=jc,c9=qM,f9=l9,d9=Rc,h9=Em,p9=Tm,g9=Ps,m9=1,v9=2;function y9(e,t){return d9(e)&&h9(t)?p9(g9(e),t):function(r){var n=c9(r,e);return n===void 0&&n===t?f9(r,e):u9(t,n,m9|v9)}}var b9=y9;function x9(e){return function(t){return t==null?void 0:t[e]}}var w9=x9,C9=Dm;function S9(e){return function(t){return C9(t,e)}}var E9=S9,T9=w9,_9=E9,O9=Rc,k9=Ps;function M9(e){return O9(e)?T9(k9(e)):_9(e)}var P9=M9,A9=aM,D9=b9,$9=Yg,I9=mr,F9=P9;function j9(e){return typeof e=="function"?e:e==null?$9:typeof e=="object"?I9(e)?D9(e[0],e[1]):A9(e):F9(e)}var L9=j9,R9=Cs;function B9(e,t){return function(r,n){if(r==null)return r;if(!R9(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var N9=B9,z9=Ug,V9=N9,W9=V9(z9),H9=W9,U9=H9,Y9=Cs;function G9(e,t){var r=-1,n=Y9(e)?Array(e.length):[];return U9(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var q9=G9,K9=qg,X9=L9,Z9=q9,Q9=mr;function J9(e,t){var r=Q9(e)?K9:Z9;return r(e,X9(t))}var e8=J9;Object.defineProperty(zo,"__esModule",{value:!0}),zo.flattenNames=void 0;var t8=ME,r8=As(t8),n8=wc,i8=As(n8),o8=F_,a8=As(o8),s8=e8,l8=As(s8);function As(e){return e&&e.__esModule?e:{default:e}}var u8=zo.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,l8.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,a8.default)(n)?(0,i8.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,r8.default)(n)&&r.push(n)}),r};zo.default=u8;var Uo={};function c8(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var f8=c8,d8=Mn,h8=function(){try{var e=d8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p8=h8,$m=p8;function g8(e,t,r){t=="__proto__"&&$m?$m(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Im=g8,m8=Im,v8=Sc,y8=Object.prototype,b8=y8.hasOwnProperty;function x8(e,t,r){var n=e[t];(!(b8.call(e,t)&&v8(n,r))||r===void 0&&!(t in e))&&m8(e,t,r)}var Fm=x8,w8=Fm,C8=Im;function S8(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?C8(r,s,u):w8(r,s,u)}return r}var Ds=S8,E8=Ds,T8=Ho;function _8(e,t){return e&&E8(t,T8(t),e)}var O8=_8;function k8(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var M8=k8,P8=bi,A8=xc,D8=M8,$8=Object.prototype,I8=$8.hasOwnProperty;function F8(e){if(!P8(e))return D8(e);var t=A8(e),r=[];for(var n in e)n=="constructor"&&(t||!I8.call(e,n))||r.push(n);return r}var j8=F8,L8=Vg,R8=j8,B8=Cs;function N8(e){return B8(e)?L8(e,!0):R8(e)}var Nc=N8,z8=Ds,V8=Nc;function W8(e,t){return e&&z8(t,V8(t),e)}var H8=W8,$s={exports:{}};$s.exports,function(e,t){var r=kr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}($s,$s.exports);var U8=$s.exports;function Y8(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var G8=Y8,q8=Ds,K8=Mc;function X8(e,t){return q8(e,K8(e),t)}var Z8=X8,Q8=im,J8=Cc,eP=Mc,tP=am,rP=Object.getOwnPropertySymbols,nP=rP?function(e){for(var t=[];e;)Q8(t,eP(e)),e=J8(e);return t}:tP,jm=nP,iP=Ds,oP=jm;function aP(e,t){return iP(e,oP(e),t)}var sP=aP,lP=om,uP=jm,cP=Nc;function fP(e){return lP(e,cP,uP)}var dP=fP,hP=Object.prototype,pP=hP.hasOwnProperty;function gP(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var mP=gP,Lm=em;function vP(e){var t=new e.constructor(e.byteLength);return new Lm(t).set(new Lm(e)),t}var zc=vP,yP=zc;function bP(e,t){var r=t?yP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var xP=bP,wP=/\w*$/;function CP(e){var t=new e.constructor(e.source,wP.exec(e));return t.lastIndex=e.lastIndex,t}var SP=CP,Rm=Vo,Bm=Rm?Rm.prototype:void 0,Nm=Bm?Bm.valueOf:void 0;function EP(e){return Nm?Object(Nm.call(e)):{}}var TP=EP,_P=zc;function OP(e,t){var r=t?_P(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var kP=OP,MP=zc,PP=xP,AP=SP,DP=TP,$P=kP,IP="[object Boolean]",FP="[object Date]",jP="[object Map]",LP="[object Number]",RP="[object RegExp]",BP="[object Set]",NP="[object String]",zP="[object Symbol]",VP="[object ArrayBuffer]",WP="[object DataView]",HP="[object Float32Array]",UP="[object Float64Array]",YP="[object Int8Array]",GP="[object Int16Array]",qP="[object Int32Array]",KP="[object Uint8Array]",XP="[object Uint8ClampedArray]",ZP="[object Uint16Array]",QP="[object Uint32Array]";function JP(e,t,r){var n=e.constructor;switch(t){case VP:return MP(e);case IP:case FP:return new n(+e);case WP:return PP(e,r);case HP:case UP:case YP:case GP:case qP:case KP:case XP:case ZP:case QP:return $P(e,r);case jP:return new n;case LP:case NP:return new n(e);case RP:return AP(e);case BP:return new n;case zP:return DP(e)}}var eA=JP,tA=bi,zm=Object.create,rA=function(){function e(){}return function(t){if(!tA(t))return{};if(zm)return zm(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),nA=rA,iA=nA,oA=Cc,aA=xc;function sA(e){return typeof e.constructor=="function"&&!aA(e)?iA(oA(e)):{}}var lA=sA,uA=ks,cA=Wr,fA="[object Map]";function dA(e){return cA(e)&&uA(e)==fA}var hA=dA,pA=hA,gA=yc,Vm=bc,Wm=Vm&&Vm.isMap,mA=Wm?gA(Wm):pA,vA=mA,yA=ks,bA=Wr,xA="[object Set]";function wA(e){return bA(e)&&yA(e)==xA}var CA=wA,SA=CA,EA=yc,Hm=bc,Um=Hm&&Hm.isSet,TA=Um?EA(Um):SA,_A=TA,OA=Oc,kA=f8,MA=Fm,PA=O8,AA=H8,DA=U8,$A=G8,IA=Z8,FA=sP,jA=lm,LA=dP,RA=ks,BA=mP,NA=eA,zA=lA,VA=mr,WA=mc,HA=vA,UA=bi,YA=_A,GA=Ho,qA=Nc,KA=1,XA=2,ZA=4,Ym="[object Arguments]",QA="[object Array]",JA="[object Boolean]",eD="[object Date]",tD="[object Error]",Gm="[object Function]",rD="[object GeneratorFunction]",nD="[object Map]",iD="[object Number]",qm="[object Object]",oD="[object RegExp]",aD="[object Set]",sD="[object String]",lD="[object Symbol]",uD="[object WeakMap]",cD="[object ArrayBuffer]",fD="[object DataView]",dD="[object Float32Array]",hD="[object Float64Array]",pD="[object Int8Array]",gD="[object Int16Array]",mD="[object Int32Array]",vD="[object Uint8Array]",yD="[object Uint8ClampedArray]",bD="[object Uint16Array]",xD="[object Uint32Array]",at={};at[Ym]=at[QA]=at[cD]=at[fD]=at[JA]=at[eD]=at[dD]=at[hD]=at[pD]=at[gD]=at[mD]=at[nD]=at[iD]=at[qm]=at[oD]=at[aD]=at[sD]=at[lD]=at[vD]=at[yD]=at[bD]=at[xD]=!0,at[tD]=at[Gm]=at[uD]=!1;function Is(e,t,r,n,i,o){var a,s=t&KA,u=t&XA,l=t&ZA;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!UA(e))return e;var c=VA(e);if(c){if(a=BA(e),!s)return $A(e,a)}else{var f=RA(e),d=f==Gm||f==rD;if(WA(e))return DA(e,s);if(f==qm||f==Ym||d&&!i){if(a=u||d?{}:zA(e),!s)return u?FA(e,AA(a,e)):IA(e,PA(a,e))}else{if(!at[f])return i?e:{};a=NA(e,f,s)}}o||(o=new OA);var h=o.get(e);if(h)return h;o.set(e,a),YA(e)?e.forEach(function(v){a.add(Is(v,t,r,v,e,o))}):HA(e)&&e.forEach(function(v,x){a.set(x,Is(v,t,r,x,e,o))});var m=l?u?LA:jA:u?qA:GA,p=c?void 0:m(e);return kA(p||e,function(v,x){p&&(x=v,v=e[x]),MA(a,x,Is(v,t,r,x,e,o))}),a}var wD=Is,CD=wD,SD=1,ED=4;function TD(e){return CD(e,SD|ED)}var _D=TD;Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.mergeClasses=void 0;var OD=wc,kD=Km(OD),MD=_D,PD=Km(MD),AD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Km(e){return e&&e.__esModule?e:{default:e}}var DD=Uo.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,PD.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,kD.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=AD({},n[s],o[s])}),i}),n};Uo.default=DD;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.autoprefix=void 0;var $D=wc,Xm=FD($D),ID=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function FD(e){return e&&e.__esModule?e:{default:e}}var jD={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},LD=Yo.autoprefix=function(t){var r={};return(0,Xm.default)(t,function(n,i){var o={};(0,Xm.default)(n,function(a,s){var u=jD[s];u?o=ID({},o,u(a)):o[s]=a}),r[i]=o}),r};Yo.default=LD;var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.hover=void 0;var RD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BD=g,Vc=ND(BD);function ND(e){return e&&e.__esModule?e:{default:e}}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WD=Go.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){VD(i,n);function i(){var o,a,s,u;zD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Zm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Vc.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Vc.default.createElement(t,RD({},s.props,s.state)))},a),Zm(s,u)}return i}(Vc.default.Component)};Go.default=WD;var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.active=void 0;var HD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UD=g,Wc=YD(UD);function YD(e){return e&&e.__esModule?e:{default:e}}function GD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KD=qo.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){qD(i,n);function i(){var o,a,s,u;GD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Qm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Wc.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Wc.default.createElement(t,HD({},s.props,s.state)))},a),Qm(s,u)}return i}(Wc.default.Component)};qo.default=KD;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var XD=function(t,r){var n={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[a]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Hc.default=XD,Object.defineProperty(cr,"__esModule",{value:!0}),cr.ReactCSS=cr.loop=cr.handleActive=Uc=cr.handleHover=cr.hover=void 0;var ZD=zo,QD=Ti(ZD),JD=Uo,e$=Ti(JD),t$=Yo,r$=Ti(t$),n$=Go,Jm=Ti(n$),i$=qo,o$=Ti(i$),a$=Hc,s$=Ti(a$);function Ti(e){return e&&e.__esModule?e:{default:e}}cr.hover=Jm.default;var Uc=cr.handleHover=Jm.default;cr.handleActive=o$.default,cr.loop=s$.default;var l$=cr.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=(0,QD.default)(n),a=(0,e$.default)(t,o);return(0,r$.default)(a)},Se=cr.default=l$,u$=function(t,r,n,i,o){var a=o.clientWidth,s=o.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>a?h=1:h=Math.round(c*100/a)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Yc={},c$=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=n*2,o.height=n*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=r,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null},f$=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(Yc[o])return Yc[o];var a=c$(t,r,n,i);return Yc[o]=a,a},ev=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_i=function(t){var r=t.white,n=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,u=t.children,l=Se({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+f$(r,n,i,o.canvas)+") center left"}}});return g.isValidElement(u)?g.cloneElement(u,ev({},u.props,{style:ev({},u.props.style,l.grid)})):g.createElement("div",{style:l.grid})};_i.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var d$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gc=function(e){g$(t,e);function t(){var r,n,i,o;p$(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=tv(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=u$(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),tv(i,o)}return h$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Se({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
106
106
|
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
107
|
-
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:
|
|
107
|
+
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:d$({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return g.createElement("div",{style:o.alpha},g.createElement("div",{style:o.checkboard},g.createElement(_i,{renderers:this.props.renderers})),g.createElement("div",{style:o.gradient}),g.createElement("div",{style:o.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("div",{style:o.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:o.slider}))))}}]),t}(g.PureComponent||g.Component),m$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function v$(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function x$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w$=1,rv=38,C$=40,S$=[rv,C$],E$=function(t){return S$.indexOf(t)>-1},T$=function(t){return Number(String(t).replace(/%/g,""))},_$=1,je=function(e){x$(t,e);function t(r){y$(this,t);var n=b$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(i){n.setUpdatedValue(i.target.value,i)},n.handleKeyDown=function(i){var o=T$(i.target.value);if(!isNaN(o)&&E$(i.keyCode)){var a=n.getArrowOffset(),s=i.keyCode===rv?o+a:o-a;n.setUpdatedValue(s,i)}},n.handleDrag=function(i){if(n.props.dragLabel){var o=Math.round(n.props.value+i.movementX);o>=0&&o<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(o),i)}},n.handleMouseDown=function(i){n.props.dragLabel&&(i.preventDefault(),n.handleDrag(i),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+_$++,n}return m$(t,[{key:"componentDidUpdate",value:function(n,i){this.props.value!==this.state.value&&(n.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return v$({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||w$}},{key:"setUpdatedValue",value:function(n,i){var o=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(o,i),this.setState({value:n})}},{key:"render",value:function(){var n=this,i=Se({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return g.createElement("div",{style:i.wrap},g.createElement("input",{id:this.inputId,style:i.input,ref:function(a){return n.input=a},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?g.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(g.PureComponent||g.Component),O$=function(t,r,n,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),c=u-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0)f=359;else if(c>a)f=0;else{var d=-(c*100/a)+100;f=360*d/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var h=void 0;if(l<0)h=0;else if(l>o)h=359;else{var m=l*100/o;h=360*m/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},k$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function M$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function P$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Oi=function(e){P$(t,e);function t(){var r,n,i,o;M$(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=nv(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=O$(l,i.props.direction,i.props.hsl,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},n),nv(i,o)}return k$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.direction,o=i===void 0?"horizontal":i,a=Se({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:o==="vertical"});return g.createElement("div",{style:a.hue},g.createElement("div",{className:"hue-"+o,style:a.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
|
|
108
108
|
.hue-horizontal {
|
|
109
109
|
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
110
110
|
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
@@ -118,8 +118,8 @@ const theme2 = createTheme({ palette: {
|
|
|
118
118
|
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
119
119
|
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
120
120
|
}
|
|
121
|
-
`),m.createElement("div",{style:a.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:a.slider}))))}}]),t}(m.PureComponent||m.Component);function rD(){this.__data__=[],this.size=0}function Fo(e,t){return e===t||e!==e&&t!==t}function Ss(e,t){for(var r=e.length;r--;)if(Fo(e[r][0],t))return r;return-1}var nD=Array.prototype,iD=nD.splice;function oD(e){var t=this.__data__,r=Ss(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():iD.call(t,r,1),--this.size,!0}function aD(e){var t=this.__data__,r=Ss(t,e);return r<0?void 0:t[r][1]}function sD(e){return Ss(this.__data__,e)>-1}function lD(e,t){var r=this.__data__,n=Ss(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Rr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Rr.prototype.clear=rD,Rr.prototype.delete=oD,Rr.prototype.get=aD,Rr.prototype.has=sD,Rr.prototype.set=lD;function cD(){this.__data__=new Rr,this.size=0}function uD(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function fD(e){return this.__data__.get(e)}function dD(e){return this.__data__.has(e)}var hD=typeof global=="object"&&global&&global.Object===Object&&global;const Fm=hD;var pD=typeof self=="object"&&self&&self.Object===Object&&self,gD=Fm||pD||Function("return this")();const fr=gD;var mD=fr.Symbol;const en=mD;var Rm=Object.prototype,vD=Rm.hasOwnProperty,yD=Rm.toString,Ro=en?en.toStringTag:void 0;function bD(e){var t=vD.call(e,Ro),r=e[Ro];try{e[Ro]=void 0;var n=!0}catch{}var i=yD.call(e);return n&&(t?e[Ro]=r:delete e[Ro]),i}var xD=Object.prototype,wD=xD.toString;function SD(e){return wD.call(e)}var CD="[object Null]",TD="[object Undefined]",Nm=en?en.toStringTag:void 0;function Cn(e){return e==null?e===void 0?TD:CD:Nm&&Nm in Object(e)?bD(e):SD(e)}function ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var OD="[object AsyncFunction]",ED="[object Function]",PD="[object GeneratorFunction]",MD="[object Proxy]";function Au(e){if(!ar(e))return!1;var t=Cn(e);return t==ED||t==PD||t==OD||t==MD}var _D=fr["__core-js_shared__"];const ku=_D;var zm=function(){var e=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $D(e){return!!zm&&zm in e}var AD=Function.prototype,kD=AD.toString;function Tn(e){if(e!=null){try{return kD.call(e)}catch{}try{return e+""}catch{}}return""}var DD=/[\\^$.*+?()[\]{}|]/g,ID=/^\[object .+?Constructor\]$/,jD=Function.prototype,LD=Object.prototype,FD=jD.toString,RD=LD.hasOwnProperty,ND=RegExp("^"+FD.call(RD).replace(DD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zD(e){if(!ar(e)||$D(e))return!1;var t=Au(e)?ND:ID;return t.test(Tn(e))}function BD(e,t){return e==null?void 0:e[t]}function On(e,t){var r=BD(e,t);return zD(r)?r:void 0}var WD=On(fr,"Map");const No=WD;var VD=On(Object,"create");const zo=VD;function HD(){this.__data__=zo?zo(null):{},this.size=0}function UD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YD="__lodash_hash_undefined__",GD=Object.prototype,qD=GD.hasOwnProperty;function KD(e){var t=this.__data__;if(zo){var r=t[e];return r===YD?void 0:r}return qD.call(t,e)?t[e]:void 0}var XD=Object.prototype,ZD=XD.hasOwnProperty;function QD(e){var t=this.__data__;return zo?t[e]!==void 0:ZD.call(t,e)}var JD="__lodash_hash_undefined__";function eI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zo&&t===void 0?JD:t,this}function En(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}En.prototype.clear=HD,En.prototype.delete=UD,En.prototype.get=KD,En.prototype.has=QD,En.prototype.set=eI;function tI(){this.size=0,this.__data__={hash:new En,map:new(No||Rr),string:new En}}function rI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cs(e,t){var r=e.__data__;return rI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function nI(e){var t=Cs(this,e).delete(e);return this.size-=t?1:0,t}function iI(e){return Cs(this,e).get(e)}function oI(e){return Cs(this,e).has(e)}function aI(e,t){var r=Cs(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Nr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nr.prototype.clear=tI,Nr.prototype.delete=nI,Nr.prototype.get=iI,Nr.prototype.has=oI,Nr.prototype.set=aI;var sI=200;function lI(e,t){var r=this.__data__;if(r instanceof Rr){var n=r.__data__;if(!No||n.length<sI-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nr(n)}return r.set(e,t),this.size=r.size,this}function Cr(e){var t=this.__data__=new Rr(e);this.size=t.size}Cr.prototype.clear=cD,Cr.prototype.delete=uD,Cr.prototype.get=fD,Cr.prototype.has=dD,Cr.prototype.set=lI;var cI=function(){try{var e=On(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ts=cI;function Du(e,t,r){t=="__proto__"&&Ts?Ts(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Iu(e,t,r){(r!==void 0&&!Fo(e[t],r)||r===void 0&&!(t in e))&&Du(e,t,r)}function uI(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(r(o[c],c,o)===!1)break}return t}}var fI=uI();const Bm=fI;var Wm=typeof B=="object"&&B&&!B.nodeType&&B,Vm=Wm&&typeof module=="object"&&module&&!module.nodeType&&module,dI=Vm&&Vm.exports===Wm,Hm=dI?fr.Buffer:void 0,Um=Hm?Hm.allocUnsafe:void 0;function hI(e,t){if(t)return e.slice();var r=e.length,n=Um?Um(r):new e.constructor(r);return e.copy(n),n}var pI=fr.Uint8Array;const Os=pI;function gI(e){var t=new e.constructor(e.byteLength);return new Os(t).set(new Os(e)),t}function mI(e,t){var r=t?gI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function vI(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ym=Object.create,yI=function(){function e(){}return function(t){if(!ar(t))return{};if(Ym)return Ym(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const bI=yI;function Gm(e,t){return function(r){return e(t(r))}}var xI=Gm(Object.getPrototypeOf,Object);const qm=xI;var wI=Object.prototype;function ju(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wI;return e===r}function SI(e){return typeof e.constructor=="function"&&!ju(e)?bI(qm(e)):{}}function tn(e){return e!=null&&typeof e=="object"}var CI="[object Arguments]";function Km(e){return tn(e)&&Cn(e)==CI}var Xm=Object.prototype,TI=Xm.hasOwnProperty,OI=Xm.propertyIsEnumerable,EI=Km(function(){return arguments}())?Km:function(e){return tn(e)&&TI.call(e,"callee")&&!OI.call(e,"callee")};const Es=EI;var PI=Array.isArray;const Qt=PI;var MI=9007199254740991;function Lu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MI}function mi(e){return e!=null&&Lu(e.length)&&!Au(e)}function _I(e){return tn(e)&&mi(e)}function $I(){return!1}var Zm=typeof B=="object"&&B&&!B.nodeType&&B,Qm=Zm&&typeof module=="object"&&module&&!module.nodeType&&module,AI=Qm&&Qm.exports===Zm,Jm=AI?fr.Buffer:void 0,kI=Jm?Jm.isBuffer:void 0,DI=kI||$I;const Ps=DI;var II="[object Object]",jI=Function.prototype,LI=Object.prototype,ev=jI.toString,FI=LI.hasOwnProperty,RI=ev.call(Object);function NI(e){if(!tn(e)||Cn(e)!=II)return!1;var t=qm(e);if(t===null)return!0;var r=FI.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ev.call(r)==RI}var zI="[object Arguments]",BI="[object Array]",WI="[object Boolean]",VI="[object Date]",HI="[object Error]",UI="[object Function]",YI="[object Map]",GI="[object Number]",qI="[object Object]",KI="[object RegExp]",XI="[object Set]",ZI="[object String]",QI="[object WeakMap]",JI="[object ArrayBuffer]",ej="[object DataView]",tj="[object Float32Array]",rj="[object Float64Array]",nj="[object Int8Array]",ij="[object Int16Array]",oj="[object Int32Array]",aj="[object Uint8Array]",sj="[object Uint8ClampedArray]",lj="[object Uint16Array]",cj="[object Uint32Array]",at={};at[tj]=at[rj]=at[nj]=at[ij]=at[oj]=at[aj]=at[sj]=at[lj]=at[cj]=!0,at[zI]=at[BI]=at[JI]=at[WI]=at[ej]=at[VI]=at[HI]=at[UI]=at[YI]=at[GI]=at[qI]=at[KI]=at[XI]=at[ZI]=at[QI]=!1;function uj(e){return tn(e)&&Lu(e.length)&&!!at[Cn(e)]}function fj(e){return function(t){return e(t)}}var tv=typeof B=="object"&&B&&!B.nodeType&&B,Bo=tv&&typeof module=="object"&&module&&!module.nodeType&&module,dj=Bo&&Bo.exports===tv,Fu=dj&&Fm.process,hj=function(){try{var e=Bo&&Bo.require&&Bo.require("util").types;return e||Fu&&Fu.binding&&Fu.binding("util")}catch{}}();const rv=hj;var nv=rv&&rv.isTypedArray,pj=nv?fj(nv):uj;const Ru=pj;function Nu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gj=Object.prototype,mj=gj.hasOwnProperty;function vj(e,t,r){var n=e[t];(!(mj.call(e,t)&&Fo(n,r))||r===void 0&&!(t in e))&&Du(e,t,r)}function yj(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),i?Du(r,s,c):vj(r,s,c)}return r}function bj(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var xj=9007199254740991,wj=/^(?:0|[1-9]\d*)$/;function zu(e,t){var r=typeof e;return t=t??xj,!!t&&(r=="number"||r!="symbol"&&wj.test(e))&&e>-1&&e%1==0&&e<t}var Sj=Object.prototype,Cj=Sj.hasOwnProperty;function iv(e,t){var r=Qt(e),n=!r&&Es(e),i=!r&&!n&&Ps(e),o=!r&&!n&&!i&&Ru(e),a=r||n||i||o,s=a?bj(e.length,String):[],c=s.length;for(var l in e)(t||Cj.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||zu(l,c)))&&s.push(l);return s}function Tj(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Oj=Object.prototype,Ej=Oj.hasOwnProperty;function Pj(e){if(!ar(e))return Tj(e);var t=ju(e),r=[];for(var n in e)n=="constructor"&&(t||!Ej.call(e,n))||r.push(n);return r}function ov(e){return mi(e)?iv(e,!0):Pj(e)}function Mj(e){return yj(e,ov(e))}function _j(e,t,r,n,i,o,a){var s=Nu(e,r),c=Nu(t,r),l=a.get(c);if(l){Iu(e,r,l);return}var u=o?o(s,c,r+"",e,t,a):void 0,f=u===void 0;if(f){var d=Qt(c),h=!d&&Ps(c),g=!d&&!h&&Ru(c);u=c,d||h||g?Qt(s)?u=s:_I(s)?u=vI(s):h?(f=!1,u=hI(c,!0)):g?(f=!1,u=mI(c,!0)):u=[]:NI(c)||Es(c)?(u=s,Es(s)?u=Mj(s):(!ar(s)||Au(s))&&(u=SI(c))):f=!1}f&&(a.set(c,u),i(u,c,n,o,a),a.delete(c)),Iu(e,r,u)}function av(e,t,r,n,i){e!==t&&Bm(t,function(o,a){if(i||(i=new Cr),ar(o))_j(e,t,a,r,av,n,i);else{var s=n?n(Nu(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Iu(e,a,s)}},ov)}function Ms(e){return e}function $j(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sv=Math.max;function Aj(e,t,r){return t=sv(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=sv(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),$j(e,this,s)}}function kj(e){return function(){return e}}var Dj=Ts?function(e,t){return Ts(e,"toString",{configurable:!0,enumerable:!1,value:kj(t),writable:!0})}:Ms;const Ij=Dj;var jj=800,Lj=16,Fj=Date.now;function Rj(e){var t=0,r=0;return function(){var n=Fj(),i=Lj-(n-r);if(r=n,i>0){if(++t>=jj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Nj=Rj(Ij);const zj=Nj;function Bj(e,t){return zj(Aj(e,t,Ms),e+"")}function Wj(e,t,r){if(!ar(r))return!1;var n=typeof t;return(n=="number"?mi(r)&&zu(t,r.length):n=="string"&&t in r)?Fo(r[t],e):!1}function Vj(e){return Bj(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&Wj(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var Hj=Vj(function(e,t,r){av(e,t,r)});const Vt=Hj;var Wo=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,c=Se(Vt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return m.createElement("div",{style:c.wrap},m.createElement("div",{style:c.bg}),m.createElement("div",{style:c.content},o))};Wo.propTypes={background:A.string,zDepth:A.oneOf([0,1,2,3,4,5]),radius:A.number,styles:A.object},Wo.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Uj=function(){return fr.Date.now()};const Bu=Uj;var Yj=/\s/;function Gj(e){for(var t=e.length;t--&&Yj.test(e.charAt(t)););return t}var qj=/^\s+/;function Kj(e){return e&&e.slice(0,Gj(e)+1).replace(qj,"")}var Xj="[object Symbol]";function _s(e){return typeof e=="symbol"||tn(e)&&Cn(e)==Xj}var lv=0/0,Zj=/^[-+]0x[0-9a-f]+$/i,Qj=/^0b[01]+$/i,Jj=/^0o[0-7]+$/i,eL=parseInt;function cv(e){if(typeof e=="number")return e;if(_s(e))return lv;if(ar(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ar(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kj(e);var r=Qj.test(e);return r||Jj.test(e)?eL(e.slice(2),r?2:8):Zj.test(e)?lv:+e}var tL="Expected a function",rL=Math.max,nL=Math.min;function Vo(e,t,r){var n,i,o,a,s,c,l=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(tL);t=cv(t)||0,ar(r)&&(u=!!r.leading,f="maxWait"in r,o=f?rL(cv(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(T){var E=n,P=i;return n=i=void 0,l=T,a=e.apply(P,E),a}function g(T){return l=T,s=setTimeout(x,t),u?h(T):a}function p(T){var E=T-c,P=T-l,k=t-E;return f?nL(k,o-P):k}function v(T){var E=T-c,P=T-l;return c===void 0||E>=t||E<0||f&&P>=o}function x(){var T=Bu();if(v(T))return b(T);s=setTimeout(x,p(T))}function b(T){return s=void 0,d&&n?h(T):(n=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),l=0,n=c=i=s=void 0}function O(){return s===void 0?a:b(Bu())}function w(){var T=Bu(),E=v(T);if(n=arguments,i=this,c=T,E){if(s===void 0)return g(c);if(f)return clearTimeout(s),s=setTimeout(x,t),h(c)}return s===void 0&&(s=setTimeout(x,t)),a}return w.cancel=S,w.flush=O,w}var iL="Expected a function";function uv(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(iL);return ar(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Vo(e,t,{leading:n,maxWait:t,trailing:i})}var oL=function(t,r,n){var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),u=c-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),u<0?u=0:u>a&&(u=a);var f=l/o,d=1-u/a;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},aL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function sL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function cL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $s=function(e){cL(t,e);function t(r){sL(this,t);var n=lL(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,oL(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var o=n.getContainerRenderWindow();o.addEventListener("mousemove",n.handleChange),o.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=uv(function(i,o,a){i(o,a)},50),n}return aL(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},o=i.color,a=i.white,s=i.black,c=i.pointer,l=i.circle,u=Se({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
122
|
-
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:
|
|
121
|
+
`),g.createElement("div",{style:a.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:a.slider}))))}}]),t}(g.PureComponent||g.Component);function A$(){this.__data__=[],this.size=0}function Ko(e,t){return e===t||e!==e&&t!==t}function Fs(e,t){for(var r=e.length;r--;)if(Ko(e[r][0],t))return r;return-1}var D$=Array.prototype,$$=D$.splice;function I$(e){var t=this.__data__,r=Fs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$$.call(t,r,1),--this.size,!0}function F$(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}function j$(e){return Fs(this.__data__,e)>-1}function L$(e,t){var r=this.__data__,n=Fs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hr.prototype.clear=A$,Hr.prototype.delete=I$,Hr.prototype.get=F$,Hr.prototype.has=j$,Hr.prototype.set=L$;function R$(){this.__data__=new Hr,this.size=0}function B$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function N$(e){return this.__data__.get(e)}function z$(e){return this.__data__.has(e)}var V$=typeof global=="object"&&global&&global.Object===Object&&global;const iv=V$;var W$=typeof self=="object"&&self&&self.Object===Object&&self,H$=iv||W$||Function("return this")();const vr=H$;var U$=vr.Symbol;const ln=U$;var ov=Object.prototype,Y$=ov.hasOwnProperty,G$=ov.toString,Xo=ln?ln.toStringTag:void 0;function q$(e){var t=Y$.call(e,Xo),r=e[Xo];try{e[Xo]=void 0;var n=!0}catch{}var i=G$.call(e);return n&&(t?e[Xo]=r:delete e[Xo]),i}var K$=Object.prototype,X$=K$.toString;function Z$(e){return X$.call(e)}var Q$="[object Null]",J$="[object Undefined]",av=ln?ln.toStringTag:void 0;function An(e){return e==null?e===void 0?J$:Q$:av&&av in Object(e)?q$(e):Z$(e)}function fr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eI="[object AsyncFunction]",tI="[object Function]",rI="[object GeneratorFunction]",nI="[object Proxy]";function qc(e){if(!fr(e))return!1;var t=An(e);return t==tI||t==rI||t==eI||t==nI}var iI=vr["__core-js_shared__"];const Kc=iI;var sv=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oI(e){return!!sv&&sv in e}var aI=Function.prototype,sI=aI.toString;function Dn(e){if(e!=null){try{return sI.call(e)}catch{}try{return e+""}catch{}}return""}var lI=/[\\^$.*+?()[\]{}|]/g,uI=/^\[object .+?Constructor\]$/,cI=Function.prototype,fI=Object.prototype,dI=cI.toString,hI=fI.hasOwnProperty,pI=RegExp("^"+dI.call(hI).replace(lI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gI(e){if(!fr(e)||oI(e))return!1;var t=qc(e)?pI:uI;return t.test(Dn(e))}function mI(e,t){return e==null?void 0:e[t]}function $n(e,t){var r=mI(e,t);return gI(r)?r:void 0}var vI=$n(vr,"Map");const Zo=vI;var yI=$n(Object,"create");const Qo=yI;function bI(){this.__data__=Qo?Qo(null):{},this.size=0}function xI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wI="__lodash_hash_undefined__",CI=Object.prototype,SI=CI.hasOwnProperty;function EI(e){var t=this.__data__;if(Qo){var r=t[e];return r===wI?void 0:r}return SI.call(t,e)?t[e]:void 0}var TI=Object.prototype,_I=TI.hasOwnProperty;function OI(e){var t=this.__data__;return Qo?t[e]!==void 0:_I.call(t,e)}var kI="__lodash_hash_undefined__";function MI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qo&&t===void 0?kI:t,this}function In(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}In.prototype.clear=bI,In.prototype.delete=xI,In.prototype.get=EI,In.prototype.has=OI,In.prototype.set=MI;function PI(){this.size=0,this.__data__={hash:new In,map:new(Zo||Hr),string:new In}}function AI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function js(e,t){var r=e.__data__;return AI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function DI(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}function $I(e){return js(this,e).get(e)}function II(e){return js(this,e).has(e)}function FI(e,t){var r=js(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ur.prototype.clear=PI,Ur.prototype.delete=DI,Ur.prototype.get=$I,Ur.prototype.has=II,Ur.prototype.set=FI;var jI=200;function LI(e,t){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!Zo||n.length<jI-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ur(n)}return r.set(e,t),this.size=r.size,this}function Mr(e){var t=this.__data__=new Hr(e);this.size=t.size}Mr.prototype.clear=R$,Mr.prototype.delete=B$,Mr.prototype.get=N$,Mr.prototype.has=z$,Mr.prototype.set=LI;var RI=function(){try{var e=$n(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ls=RI;function Xc(e,t,r){t=="__proto__"&&Ls?Ls(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Zc(e,t,r){(r!==void 0&&!Ko(e[t],r)||r===void 0&&!(t in e))&&Xc(e,t,r)}function BI(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var NI=BI();const lv=NI;var uv=typeof z=="object"&&z&&!z.nodeType&&z,cv=uv&&typeof module=="object"&&module&&!module.nodeType&&module,zI=cv&&cv.exports===uv,fv=zI?vr.Buffer:void 0,dv=fv?fv.allocUnsafe:void 0;function VI(e,t){if(t)return e.slice();var r=e.length,n=dv?dv(r):new e.constructor(r);return e.copy(n),n}var WI=vr.Uint8Array;const Rs=WI;function HI(e){var t=new e.constructor(e.byteLength);return new Rs(t).set(new Rs(e)),t}function UI(e,t){var r=t?HI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function YI(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var hv=Object.create,GI=function(){function e(){}return function(t){if(!fr(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const qI=GI;function pv(e,t){return function(r){return e(t(r))}}var KI=pv(Object.getPrototypeOf,Object);const gv=KI;var XI=Object.prototype;function Qc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XI;return e===r}function ZI(e){return typeof e.constructor=="function"&&!Qc(e)?qI(gv(e)):{}}function un(e){return e!=null&&typeof e=="object"}var QI="[object Arguments]";function mv(e){return un(e)&&An(e)==QI}var vv=Object.prototype,JI=vv.hasOwnProperty,eF=vv.propertyIsEnumerable,tF=mv(function(){return arguments}())?mv:function(e){return un(e)&&JI.call(e,"callee")&&!eF.call(e,"callee")};const Bs=tF;var rF=Array.isArray;const tr=rF;var nF=9007199254740991;function Jc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nF}function ki(e){return e!=null&&Jc(e.length)&&!qc(e)}function iF(e){return un(e)&&ki(e)}function oF(){return!1}var yv=typeof z=="object"&&z&&!z.nodeType&&z,bv=yv&&typeof module=="object"&&module&&!module.nodeType&&module,aF=bv&&bv.exports===yv,xv=aF?vr.Buffer:void 0,sF=xv?xv.isBuffer:void 0,lF=sF||oF;const Ns=lF;var uF="[object Object]",cF=Function.prototype,fF=Object.prototype,wv=cF.toString,dF=fF.hasOwnProperty,hF=wv.call(Object);function pF(e){if(!un(e)||An(e)!=uF)return!1;var t=gv(e);if(t===null)return!0;var r=dF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wv.call(r)==hF}var gF="[object Arguments]",mF="[object Array]",vF="[object Boolean]",yF="[object Date]",bF="[object Error]",xF="[object Function]",wF="[object Map]",CF="[object Number]",SF="[object Object]",EF="[object RegExp]",TF="[object Set]",_F="[object String]",OF="[object WeakMap]",kF="[object ArrayBuffer]",MF="[object DataView]",PF="[object Float32Array]",AF="[object Float64Array]",DF="[object Int8Array]",$F="[object Int16Array]",IF="[object Int32Array]",FF="[object Uint8Array]",jF="[object Uint8ClampedArray]",LF="[object Uint16Array]",RF="[object Uint32Array]",ut={};ut[PF]=ut[AF]=ut[DF]=ut[$F]=ut[IF]=ut[FF]=ut[jF]=ut[LF]=ut[RF]=!0,ut[gF]=ut[mF]=ut[kF]=ut[vF]=ut[MF]=ut[yF]=ut[bF]=ut[xF]=ut[wF]=ut[CF]=ut[SF]=ut[EF]=ut[TF]=ut[_F]=ut[OF]=!1;function BF(e){return un(e)&&Jc(e.length)&&!!ut[An(e)]}function NF(e){return function(t){return e(t)}}var Cv=typeof z=="object"&&z&&!z.nodeType&&z,Jo=Cv&&typeof module=="object"&&module&&!module.nodeType&&module,zF=Jo&&Jo.exports===Cv,ef=zF&&iv.process,VF=function(){try{var e=Jo&&Jo.require&&Jo.require("util").types;return e||ef&&ef.binding&&ef.binding("util")}catch{}}();const Sv=VF;var Ev=Sv&&Sv.isTypedArray,WF=Ev?NF(Ev):BF;const tf=WF;function rf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var HF=Object.prototype,UF=HF.hasOwnProperty;function YF(e,t,r){var n=e[t];(!(UF.call(e,t)&&Ko(n,r))||r===void 0&&!(t in e))&&Xc(e,t,r)}function GF(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Xc(r,s,u):YF(r,s,u)}return r}function qF(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var KF=9007199254740991,XF=/^(?:0|[1-9]\d*)$/;function nf(e,t){var r=typeof e;return t=t??KF,!!t&&(r=="number"||r!="symbol"&&XF.test(e))&&e>-1&&e%1==0&&e<t}var ZF=Object.prototype,QF=ZF.hasOwnProperty;function Tv(e,t){var r=tr(e),n=!r&&Bs(e),i=!r&&!n&&Ns(e),o=!r&&!n&&!i&&tf(e),a=r||n||i||o,s=a?qF(e.length,String):[],u=s.length;for(var l in e)(t||QF.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||nf(l,u)))&&s.push(l);return s}function JF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ej=Object.prototype,tj=ej.hasOwnProperty;function rj(e){if(!fr(e))return JF(e);var t=Qc(e),r=[];for(var n in e)n=="constructor"&&(t||!tj.call(e,n))||r.push(n);return r}function _v(e){return ki(e)?Tv(e,!0):rj(e)}function nj(e){return GF(e,_v(e))}function ij(e,t,r,n,i,o,a){var s=rf(e,r),u=rf(t,r),l=a.get(u);if(l){Zc(e,r,l);return}var c=o?o(s,u,r+"",e,t,a):void 0,f=c===void 0;if(f){var d=tr(u),h=!d&&Ns(u),m=!d&&!h&&tf(u);c=u,d||h||m?tr(s)?c=s:iF(s)?c=YI(s):h?(f=!1,c=VI(u,!0)):m?(f=!1,c=UI(u,!0)):c=[]:pF(u)||Bs(u)?(c=s,Bs(s)?c=nj(s):(!fr(s)||qc(s))&&(c=ZI(u))):f=!1}f&&(a.set(u,c),i(c,u,n,o,a),a.delete(u)),Zc(e,r,c)}function Ov(e,t,r,n,i){e!==t&&lv(t,function(o,a){if(i||(i=new Mr),fr(o))ij(e,t,a,r,Ov,n,i);else{var s=n?n(rf(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Zc(e,a,s)}},_v)}function zs(e){return e}function oj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var kv=Math.max;function aj(e,t,r){return t=kv(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=kv(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),oj(e,this,s)}}function sj(e){return function(){return e}}var lj=Ls?function(e,t){return Ls(e,"toString",{configurable:!0,enumerable:!1,value:sj(t),writable:!0})}:zs;const uj=lj;var cj=800,fj=16,dj=Date.now;function hj(e){var t=0,r=0;return function(){var n=dj(),i=fj-(n-r);if(r=n,i>0){if(++t>=cj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pj=hj(uj);const gj=pj;function mj(e,t){return gj(aj(e,t,zs),e+"")}function vj(e,t,r){if(!fr(r))return!1;var n=typeof t;return(n=="number"?ki(r)&&nf(t,r.length):n=="string"&&t in r)?Ko(r[t],e):!1}function yj(e){return mj(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&vj(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var bj=yj(function(e,t,r){Ov(e,t,r)});const Yt=bj;var ea=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,u=Se(Yt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return g.createElement("div",{style:u.wrap},g.createElement("div",{style:u.bg}),g.createElement("div",{style:u.content},o))};ea.propTypes={background:T.string,zDepth:T.oneOf([0,1,2,3,4,5]),radius:T.number,styles:T.object},ea.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var xj=function(){return vr.Date.now()};const of=xj;var wj=/\s/;function Cj(e){for(var t=e.length;t--&&wj.test(e.charAt(t)););return t}var Sj=/^\s+/;function Ej(e){return e&&e.slice(0,Cj(e)+1).replace(Sj,"")}var Tj="[object Symbol]";function Vs(e){return typeof e=="symbol"||un(e)&&An(e)==Tj}var Mv=0/0,_j=/^[-+]0x[0-9a-f]+$/i,Oj=/^0b[01]+$/i,kj=/^0o[0-7]+$/i,Mj=parseInt;function Pv(e){if(typeof e=="number")return e;if(Vs(e))return Mv;if(fr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ej(e);var r=Oj.test(e);return r||kj.test(e)?Mj(e.slice(2),r?2:8):_j.test(e)?Mv:+e}var Pj="Expected a function",Aj=Math.max,Dj=Math.min;function ta(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Pj);t=Pv(t)||0,fr(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Aj(Pv(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(_){var O=n,k=i;return n=i=void 0,l=_,a=e.apply(k,O),a}function m(_){return l=_,s=setTimeout(x,t),c?h(_):a}function p(_){var O=_-u,k=_-l,D=t-O;return f?Dj(D,o-k):D}function v(_){var O=_-u,k=_-l;return u===void 0||O>=t||O<0||f&&k>=o}function x(){var _=of();if(v(_))return b(_);s=setTimeout(x,p(_))}function b(_){return s=void 0,d&&n?h(_):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function E(){return s===void 0?a:b(of())}function w(){var _=of(),O=v(_);if(n=arguments,i=this,u=_,O){if(s===void 0)return m(u);if(f)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),a}return w.cancel=C,w.flush=E,w}var $j="Expected a function";function Av(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($j);return fr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ta(e,t,{leading:n,maxWait:t,trailing:i})}var Ij=function(t,r,n){var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>a&&(c=a);var f=l/o,d=1-c/a;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},Fj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function jj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lj(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Rj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ws=function(e){Rj(t,e);function t(r){jj(this,t);var n=Lj(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,Ij(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var o=n.getContainerRenderWindow();o.addEventListener("mousemove",n.handleChange),o.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=Av(function(i,o,a){i(o,a)},50),n}return Fj(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},o=i.color,a=i.white,s=i.black,u=i.pointer,l=i.circle,c=Se({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
122
|
+
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:u,circle:l}},{custom:!!this.props.style});return g.createElement("div",{style:c.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
|
|
123
123
|
.saturation-white {
|
|
124
124
|
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
125
125
|
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
@@ -128,8 +128,8 @@ const theme2 = createTheme({ palette: {
|
|
|
128
128
|
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
129
129
|
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
130
130
|
}
|
|
131
|
-
`),m.createElement("div",{style:u.white,className:"saturation-white"},m.createElement("div",{style:u.black,className:"saturation-black"}),m.createElement("div",{style:u.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement("div",{style:u.circle}))))}}]),t}(m.PureComponent||m.Component);function uL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var fL=Gm(Object.keys,Object);const dL=fL;var hL=Object.prototype,pL=hL.hasOwnProperty;function gL(e){if(!ju(e))return dL(e);var t=[];for(var r in Object(e))pL.call(e,r)&&r!="constructor"&&t.push(r);return t}function Wu(e){return mi(e)?iv(e):gL(e)}function mL(e,t){return e&&Bm(e,t,Wu)}function vL(e,t){return function(r,n){if(r==null)return r;if(!mi(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var yL=vL(mL);const fv=yL;function bL(e){return typeof e=="function"?e:Ms}function xL(e,t){var r=Qt(e)?uL:fv;return r(e,bL(t))}function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}var wL=/^\s+/,SL=/\s+$/;function he(e,t){if(e=e||"",t=t||{},e instanceof he)return e;if(!(this instanceof he))return new he(e,t);var r=CL(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}he.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,o,a,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=vv(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=hv(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=hv(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=dv(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=dv(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return pv(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return PL(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ct(this._r,255)*100)+"%",g:Math.round(ct(this._g,255)*100)+"%",b:Math.round(ct(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%)":"rgba("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:NL[pv(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+gv(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=he(t);n="#"+gv(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return he(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(AL,arguments)},brighten:function(){return this._applyModification(kL,arguments)},darken:function(){return this._applyModification(DL,arguments)},desaturate:function(){return this._applyModification(ML,arguments)},saturate:function(){return this._applyModification(_L,arguments)},greyscale:function(){return this._applyModification($L,arguments)},spin:function(){return this._applyModification(IL,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(FL,arguments)},complement:function(){return this._applyCombination(jL,arguments)},monochromatic:function(){return this._applyCombination(RL,arguments)},splitcomplement:function(){return this._applyCombination(LL,arguments)},triad:function(){return this._applyCombination(mv,[3])},tetrad:function(){return this._applyCombination(mv,[4])}},he.fromRatio=function(e,t){if(As(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Ho(e[n]));e=r}return he(e,t)};function CL(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=VL(e)),As(e)=="object"&&(zr(e.r)&&zr(e.g)&&zr(e.b)?(t=TL(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):zr(e.h)&&zr(e.s)&&zr(e.v)?(n=Ho(e.s),i=Ho(e.v),t=EL(e.h,n,i),a=!0,s="hsv"):zr(e.h)&&zr(e.s)&&zr(e.l)&&(n=Ho(e.s),o=Ho(e.l),t=OL(e.h,n,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=vv(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function TL(e,t,r){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(r,255)*255}}function dv(e,t,r){e=ct(e,255),t=ct(t,255),r=ct(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=(n+i)/2;if(n==i)o=a=0;else{var c=n-i;switch(a=s>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,l:s}}function OL(e,t,r){var n,i,o;e=ct(e,360),t=ct(t,100),r=ct(r,100);function a(l,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(u-l)*6*f:f<1/2?u:f<2/3?l+(u-l)*(2/3-f)*6:l}if(t===0)n=i=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=a(c,s,e+1/3),i=a(c,s,e),o=a(c,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function hv(e,t,r){e=ct(e,255),t=ct(t,255),r=ct(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=n,c=n-i;if(a=n===0?0:c/n,n==i)o=0;else{switch(n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,v:s}}function EL(e,t,r){e=ct(e,360)*6,t=ct(t,100),r=ct(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),c=n%6,l=[r,a,o,o,s,r][c],u=[s,r,r,a,o,o][c],f=[o,o,s,r,r,a][c];return{r:l*255,g:u*255,b:f*255}}function pv(e,t,r,n){var i=[dr(Math.round(e).toString(16)),dr(Math.round(t).toString(16)),dr(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function PL(e,t,r,n,i){var o=[dr(Math.round(e).toString(16)),dr(Math.round(t).toString(16)),dr(Math.round(r).toString(16)),dr(yv(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function gv(e,t,r,n){var i=[dr(yv(n)),dr(Math.round(e).toString(16)),dr(Math.round(t).toString(16)),dr(Math.round(r).toString(16))];return i.join("")}he.equals=function(e,t){return!e||!t?!1:he(e).toRgbString()==he(t).toRgbString()},he.random=function(){return he.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ML(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s-=t/100,r.s=ks(r.s),he(r)}function _L(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s+=t/100,r.s=ks(r.s),he(r)}function $L(e){return he(e).desaturate(100)}function AL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l+=t/100,r.l=ks(r.l),he(r)}function kL(e,t){t=t===0?0:t||10;var r=he(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),he(r)}function DL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l-=t/100,r.l=ks(r.l),he(r)}function IL(e,t){var r=he(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,he(r)}function jL(e){var t=he(e).toHsl();return t.h=(t.h+180)%360,he(t)}function mv(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=he(e).toHsl(),n=[he(e)],i=360/t,o=1;o<t;o++)n.push(he({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function LL(e){var t=he(e).toHsl(),r=t.h;return[he(e),he({h:(r+72)%360,s:t.s,l:t.l}),he({h:(r+216)%360,s:t.s,l:t.l})]}function FL(e,t,r){t=t||6,r=r||30;var n=he(e).toHsl(),i=360/r,o=[he(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(he(n));return o}function RL(e,t){t=t||6;for(var r=he(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(he({h:n,s:i,v:o})),o=(o+s)%1;return a}he.mix=function(e,t,r){r=r===0?0:r||50;var n=he(e).toRgb(),i=he(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return he(a)},he.readability=function(e,t){var r=he(e),n=he(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},he.isReadable=function(e,t,r){var n=he.readability(e,t),i,o;switch(o=!1,i=HL(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},he.mostReadable=function(e,t,r){var n=null,i=0,o,a,s,c;r=r||{},a=r.includeFallbackColors,s=r.level,c=r.size;for(var l=0;l<t.length;l++)o=he.readability(e,t[l]),o>i&&(i=o,n=he(t[l]));return he.isReadable(e,n,{level:s,size:c})||!a?n:(r.includeFallbackColors=!1,he.mostReadable(e,["#fff","#000"],r))};var Vu=he.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},NL=he.hexNames=zL(Vu);function zL(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function vv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){BL(e)&&(e="100%");var r=WL(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ks(e){return Math.min(1,Math.max(0,e))}function Jt(e){return parseInt(e,16)}function BL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function WL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dr(e){return e.length==1?"0"+e:""+e}function Ho(e){return e<=1&&(e=e*100+"%"),e}function yv(e){return Math.round(parseFloat(e)*255).toString(16)}function bv(e){return Jt(e)/255}var hr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function zr(e){return!!hr.CSS_UNIT.exec(e)}function VL(e){e=e.replace(wL,"").replace(SL,"").toLowerCase();var t=!1;if(Vu[e])e=Vu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=hr.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=hr.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=hr.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=hr.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=hr.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=hr.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=hr.hex8.exec(e))?{r:Jt(r[1]),g:Jt(r[2]),b:Jt(r[3]),a:bv(r[4]),format:t?"name":"hex8"}:(r=hr.hex6.exec(e))?{r:Jt(r[1]),g:Jt(r[2]),b:Jt(r[3]),format:t?"name":"hex"}:(r=hr.hex4.exec(e))?{r:Jt(r[1]+""+r[1]),g:Jt(r[2]+""+r[2]),b:Jt(r[3]+""+r[3]),a:bv(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=hr.hex3.exec(e))?{r:Jt(r[1]+""+r[1]),g:Jt(r[2]+""+r[2]),b:Jt(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function HL(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var xv=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return xL(r,function(o){if(t[o]&&(n+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),n===i?t:!1},Uo=function(t,r){var n=t.hex?he(t.hex):he(t),i=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,o.h=r||0);var c=s==="000000"&&a.a===0;return{hsl:i,hex:c?"transparent":"#"+s,rgb:a,hsv:o,oldHue:t.h||r||i.h,source:t.source}},rn=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&he(t).isValid()},Hu=function(t){if(!t)return"#fff";var r=Uo(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},Uu=function(t,r){var n=t.replace("°","");return he(r+" ("+n+")")._ok},Yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function YL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ht=function(t){var r=function(n){qL(i,n);function i(o){YL(this,i);var a=GL(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.handleChange=function(s,c){var l=xv(s);if(l){var u=Uo(s,s.h||a.state.oldHue);a.setState(u),a.props.onChangeComplete&&a.debounce(a.props.onChangeComplete,u,c),a.props.onChange&&a.props.onChange(u,c)}},a.handleSwatchHover=function(s,c){var l=xv(s);if(l){var u=Uo(s,s.h||a.state.oldHue);a.props.onSwatchHover&&a.props.onSwatchHover(u,c)}},a.state=Yo({},Uo(o.color,0)),a.debounce=Vo(function(s,c,l){s(c,l)},100),a}return UL(i,[{key:"render",value:function(){var a={};return this.props.onSwatchHover&&(a.onSwatchHover=this.handleSwatchHover),m.createElement(t,Yo({},this.props,this.state,{onChange:this.handleChange},a))}}],[{key:"getDerivedStateFromProps",value:function(a,s){return Yo({},Uo(a.color,s.oldHue))}}]),i}(m.PureComponent||m.Component);return r.propTypes=Yo({},t.propTypes),r.defaultProps=Yo({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},KL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},XL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function ZL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function QL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var JL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){QL(i,n);function i(){var o,a,s,c;ZL(this,i);for(var l=arguments.length,u=Array(l),f=0;f<l;f++)u[f]=arguments[f];return c=(a=(s=wv(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},a),wv(s,c)}return XL(i,[{key:"render",value:function(){return m.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},m.createElement(t,KL({},this.props,this.state)))}}]),i}(m.Component)},Sv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eF=13,tF=function(t){var r=t.color,n=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,c=s===void 0?r:s,l=t.children,u=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",g=Se({default:{swatch:Sv({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,u?d:{})}}),p=function(O){return o(r,O)},v=function(O){return O.keyCode===eF&&o(r,O)},x=function(O){return a(r,O)},b={};return a&&(b.onMouseOver=x),m.createElement("div",Sv({style:g.swatch,onClick:p,title:c,tabIndex:0,onKeyDown:v},b),l,h&&m.createElement(pi,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Pn=JL(tF);var rF=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return m.createElement("div",{style:n.picker})},nF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cv=function(t){var r=t.rgb,n=t.hsl,i=t.width,o=t.height,a=t.onChange,s=t.direction,c=t.style,l=t.renderers,u=t.pointer,f=t.className,d=f===void 0?"":f,h=Se({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:c}}});return m.createElement("div",{style:h.picker,className:"alpha-picker "+d},m.createElement($u,nF({},h.alpha,{rgb:r,hsl:n,pointer:u,renderers:l,onChange:a,direction:s})))};Cv.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:rF},Ht(Cv);function Tv(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var iF="__lodash_hash_undefined__";function oF(e){return this.__data__.set(e,iF),this}function aF(e){return this.__data__.has(e)}function Ds(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Nr;++t<r;)this.add(e[t])}Ds.prototype.add=Ds.prototype.push=oF,Ds.prototype.has=aF;function sF(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function lF(e,t){return e.has(t)}var cF=1,uF=2;function Ov(e,t,r,n,i,o){var a=r&cF,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,h=r&uF?new Ds:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],p=t[f];if(n)var v=a?n(p,g,f,t,e,o):n(g,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!sF(t,function(x,b){if(!lF(h,b)&&(g===x||i(g,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(g===p||i(g,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function fF(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function dF(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var hF=1,pF=2,gF="[object Boolean]",mF="[object Date]",vF="[object Error]",yF="[object Map]",bF="[object Number]",xF="[object RegExp]",wF="[object Set]",SF="[object String]",CF="[object Symbol]",TF="[object ArrayBuffer]",OF="[object DataView]",Ev=en?en.prototype:void 0,Yu=Ev?Ev.valueOf:void 0;function EF(e,t,r,n,i,o,a){switch(r){case OF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TF:return!(e.byteLength!=t.byteLength||!o(new Os(e),new Os(t)));case gF:case mF:case bF:return Fo(+e,+t);case vF:return e.name==t.name&&e.message==t.message;case xF:case SF:return e==t+"";case yF:var s=fF;case wF:var c=n&hF;if(s||(s=dF),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=pF,a.set(e,t);var u=Ov(s(e),s(t),n,i,o,a);return a.delete(e),u;case CF:if(Yu)return Yu.call(e)==Yu.call(t)}return!1}function PF(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function MF(e,t,r){var n=t(e);return Qt(e)?n:PF(n,r(e))}function _F(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function $F(){return[]}var AF=Object.prototype,kF=AF.propertyIsEnumerable,Pv=Object.getOwnPropertySymbols,DF=Pv?function(e){return e==null?[]:(e=Object(e),_F(Pv(e),function(t){return kF.call(e,t)}))}:$F;const IF=DF;function Mv(e){return MF(e,Wu,IF)}var jF=1,LF=Object.prototype,FF=LF.hasOwnProperty;function RF(e,t,r,n,i,o){var a=r&jF,s=Mv(e),c=s.length,l=Mv(t),u=l.length;if(c!=u&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:FF.call(t,d)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<c;){d=s[f];var x=e[d],b=t[d];if(n)var S=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(S===void 0?x===b||i(x,b,r,n,o):S)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var NF=On(fr,"DataView");const Gu=NF;var zF=On(fr,"Promise");const qu=zF;var BF=On(fr,"Set");const Ku=BF;var WF=On(fr,"WeakMap");const Xu=WF;var _v="[object Map]",VF="[object Object]",$v="[object Promise]",Av="[object Set]",kv="[object WeakMap]",Dv="[object DataView]",HF=Tn(Gu),UF=Tn(No),YF=Tn(qu),GF=Tn(Ku),qF=Tn(Xu),Mn=Cn;(Gu&&Mn(new Gu(new ArrayBuffer(1)))!=Dv||No&&Mn(new No)!=_v||qu&&Mn(qu.resolve())!=$v||Ku&&Mn(new Ku)!=Av||Xu&&Mn(new Xu)!=kv)&&(Mn=function(e){var t=Cn(e),r=t==VF?e.constructor:void 0,n=r?Tn(r):"";if(n)switch(n){case HF:return Dv;case UF:return _v;case YF:return $v;case GF:return Av;case qF:return kv}return t});const Iv=Mn;var KF=1,jv="[object Arguments]",Lv="[object Array]",Is="[object Object]",XF=Object.prototype,Fv=XF.hasOwnProperty;function ZF(e,t,r,n,i,o){var a=Qt(e),s=Qt(t),c=a?Lv:Iv(e),l=s?Lv:Iv(t);c=c==jv?Is:c,l=l==jv?Is:l;var u=c==Is,f=l==Is,d=c==l;if(d&&Ps(e)){if(!Ps(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Cr),a||Ru(e)?Ov(e,t,r,n,i,o):EF(e,t,c,r,n,i,o);if(!(r&KF)){var h=u&&Fv.call(e,"__wrapped__"),g=f&&Fv.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,v=g?t.value():t;return o||(o=new Cr),i(p,v,r,n,o)}}return d?(o||(o=new Cr),RF(e,t,r,n,i,o)):!1}function Zu(e,t,r,n,i){return e===t?!0:e==null||t==null||!tn(e)&&!tn(t)?e!==e&&t!==t:ZF(e,t,r,n,Zu,i)}var QF=1,JF=2;function eR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var f=new Cr;if(n)var d=n(l,u,c,e,t,f);if(!(d===void 0?Zu(u,l,QF|JF,n,f):d))return!1}}return!0}function Rv(e){return e===e&&!ar(e)}function tR(e){for(var t=Wu(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Rv(i)]}return t}function Nv(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function rR(e){var t=tR(e);return t.length==1&&t[0][2]?Nv(t[0][0],t[0][1]):function(r){return r===e||eR(r,e,t)}}var nR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iR=/^\w*$/;function Qu(e,t){if(Qt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_s(e)?!0:iR.test(e)||!nR.test(e)||t!=null&&e in Object(t)}var oR="Expected a function";function Ju(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ju.Cache||Nr),r}Ju.Cache=Nr;var aR=500;function sR(e){var t=Ju(e,function(n){return r.size===aR&&r.clear(),n}),r=t.cache;return t}var lR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cR=/\\(\\)?/g,uR=sR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lR,function(r,n,i,o){t.push(i?o.replace(cR,"$1"):n||r)}),t});const fR=uR;var dR=1/0,zv=en?en.prototype:void 0,Bv=zv?zv.toString:void 0;function Wv(e){if(typeof e=="string")return e;if(Qt(e))return Tv(e,Wv)+"";if(_s(e))return Bv?Bv.call(e):"";var t=e+"";return t=="0"&&1/e==-dR?"-0":t}function hR(e){return e==null?"":Wv(e)}function Vv(e,t){return Qt(e)?e:Qu(e,t)?[e]:fR(hR(e))}var pR=1/0;function js(e){if(typeof e=="string"||_s(e))return e;var t=e+"";return t=="0"&&1/e==-pR?"-0":t}function Hv(e,t){t=Vv(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[js(t[r++])];return r&&r==n?e:void 0}function gR(e,t,r){var n=e==null?void 0:Hv(e,t);return n===void 0?r:n}function mR(e,t){return e!=null&&t in Object(e)}function vR(e,t,r){t=Vv(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=js(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Lu(i)&&zu(a,i)&&(Qt(e)||Es(e)))}function yR(e,t){return e!=null&&vR(e,t,mR)}var bR=1,xR=2;function wR(e,t){return Qu(e)&&Rv(t)?Nv(js(e),t):function(r){var n=gR(r,e);return n===void 0&&n===t?yR(r,e):Zu(t,n,bR|xR)}}function SR(e){return function(t){return t==null?void 0:t[e]}}function CR(e){return function(t){return Hv(t,e)}}function TR(e){return Qu(e)?SR(js(e)):CR(e)}function OR(e){return typeof e=="function"?e:e==null?Ms:typeof e=="object"?Qt(e)?wR(e[0],e[1]):rR(e):TR(e)}function ER(e,t){var r=-1,n=mi(e)?Array(e.length):[];return fv(e,function(i,o,a){n[++r]=t(i,o,a)}),n}function _n(e,t){var r=Qt(e)?Tv:ER;return r(e,OR(t))}var PR=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,o=Se({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return m.createElement("div",{style:o.swatches},_n(r,function(a){return m.createElement(Pn,{key:a,color:a,style:o.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+a}})}),m.createElement("div",{style:o.clear}))},ef=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,c=t.styles,l=c===void 0?{}:c,u=t.className,f=u===void 0?"":u,d=i==="transparent",h=function(v,x){rn(v)&&r({hex:v,source:"hex"},x)},g=Se(Vt({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Hu(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return m.createElement("div",{style:g.card,className:"block-picker "+f},m.createElement("div",{style:g.triangle}),m.createElement("div",{style:g.head},d&&m.createElement(pi,{borderRadius:"6px 6px 0 0"}),m.createElement("div",{style:g.label},i)),m.createElement("div",{style:g.body},m.createElement(PR,{colors:o,onClick:h,onSwatchHover:n}),m.createElement(Ie,{style:{input:g.input},value:i,onChange:h})))};ef.propTypes={width:A.oneOfType([A.string,A.number]),colors:A.arrayOf(A.string),triangle:A.oneOf(["top","hide"]),styles:A.object},ef.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Ht(ef);var vi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},yi={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},bi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},xi={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},wi={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Si={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Ci={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Ti={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Oi={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Go={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Ei={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Pi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Mi={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},_i={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},$i={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Ai={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},ki={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Di={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Uv=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,o=t.hover,a=t.active,s=t.circleSize,c=t.circleSpacing,l=Se({default:{swatch:{width:s,height:s,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:o,active:a});return m.createElement("div",{style:l.swatch},m.createElement(Pn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};Uv.defaultProps={circleSize:28,circleSpacing:14};const MR=Mu(Uv);var tf=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,o=t.colors,a=t.hex,s=t.circleSize,c=t.styles,l=c===void 0?{}:c,u=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=Se(Vt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-u,marginBottom:-u}}},l)),g=function(v,x){return n({hex:v,source:"hex"},x)};return m.createElement("div",{style:h.card,className:"circle-picker "+d},_n(o,function(p){return m.createElement(MR,{key:p,color:p,onClick:g,onSwatchHover:i,active:a===p.toLowerCase(),circleSize:s,circleSpacing:u})}))};tf.propTypes={width:A.oneOfType([A.string,A.number]),circleSize:A.number,circleSpacing:A.number,styles:A.object},tf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[vi[500],yi[500],bi[500],xi[500],wi[500],Si[500],Ci[500],Ti[500],Oi[500],Go[500],Ei[500],Pi[500],Mi[500],_i[500],$i[500],Ai[500],ki[500],Di[500]],styles:{}},Ht(tf);function Yv(e){return e===void 0}var Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});var qv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_R=m,Kv=$R(_R);function $R(e){return e&&e.__esModule?e:{default:e}}function AR(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ls=24,kR=Gv.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Ls:n,o=e.height,a=o===void 0?Ls:o,s=e.style,c=s===void 0?{}:s,l=AR(e,["fill","width","height","style"]);return Kv.default.createElement("svg",qv({viewBox:"0 0 "+Ls+" "+Ls,style:qv({fill:r,width:i,height:a},c)},l),Kv.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},DR=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function IR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function LR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Xv=function(e){LR(t,e);function t(r){IR(this,t);var n=jR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,o){i.hex?rn(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},o):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},o):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},o)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(Yv(i.s)?n.props.hsl.s:i.s),l:Number(Yv(i.l)?n.props.hsl.l:i.l),source:"hsl"},o))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return DR(t,[{key:"render",value:function(){var n=this,i=Se({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),m.createElement("div",{style:i.alpha},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=m.createElement("div",{style:i.fields,className:"flexbox-fix"},m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:i.field},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),m.createElement("div",{style:i.alpha},m.createElement(Ie,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),m.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,m.createElement("div",{style:i.toggle},m.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},m.createElement(kR,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(m.Component);Xv.defaultProps={view:"hex"};var Zv=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return m.createElement("div",{style:t.picker})},FR=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return m.createElement("div",{style:t.picker})},rf=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,o=t.rgb,a=t.hsl,s=t.hsv,c=t.hex,l=t.renderers,u=t.styles,f=u===void 0?{}:u,d=t.className,h=d===void 0?"":d,g=t.defaultView,p=Se(Vt({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return m.createElement("div",{style:p.picker,className:"chrome-picker "+h},m.createElement("div",{style:p.saturation},m.createElement($s,{style:p.Saturation,hsl:a,hsv:s,pointer:FR,onChange:n})),m.createElement("div",{style:p.body},m.createElement("div",{style:p.controls,className:"flexbox-fix"},m.createElement("div",{style:p.color},m.createElement("div",{style:p.swatch},m.createElement("div",{style:p.active}),m.createElement(pi,{renderers:l}))),m.createElement("div",{style:p.toggles},m.createElement("div",{style:p.hue},m.createElement(gi,{style:p.Hue,hsl:a,pointer:Zv,onChange:n})),m.createElement("div",{style:p.alpha},m.createElement($u,{style:p.Alpha,rgb:o,hsl:a,pointer:Zv,renderers:l,onChange:n})))),m.createElement(Xv,{rgb:o,hsl:a,hex:c,view:g,onChange:n,disableAlpha:i})))};rf.propTypes={width:A.oneOfType([A.string,A.number]),disableAlpha:A.bool,styles:A.object,defaultView:A.oneOf(["hex","rgb","hsl"])},rf.defaultProps={width:225,disableAlpha:!1,styles:{}};const RR=Ht(rf);var NR=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.active,s=Se({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Hu(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(Pn,{style:s.color,color:r,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:s.dot}))},zR=function(t){var r=t.hex,n=t.rgb,i=t.onChange,o=Se({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(c,l){c.r||c.g||c.b?i({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},l):i({hex:c.hex,source:"hex"},l)};return m.createElement("div",{style:o.fields,className:"flexbox-fix"},m.createElement("div",{style:o.active}),m.createElement(Ie,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:a}),m.createElement(Ie,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),m.createElement(Ie,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),m.createElement(Ie,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))},nf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,o=t.hex,a=t.rgb,s=t.styles,c=s===void 0?{}:s,l=t.className,u=l===void 0?"":l,f=Se(Vt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),d=function(g,p){g.hex?rn(g.hex)&&r({hex:g.hex,source:"hex"},p):r(g,p)};return m.createElement(Wo,{style:f.Compact,styles:c},m.createElement("div",{style:f.compact,className:"compact-picker "+u},m.createElement("div",null,_n(i,function(h){return m.createElement(NR,{key:h,color:h,active:h.toLowerCase()===o,onClick:d,onSwatchHover:n})}),m.createElement("div",{style:f.clear})),m.createElement(zR,{hex:o,rgb:a,onChange:d})))};nf.propTypes={colors:A.arrayOf(A.string),styles:A.object},nf.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Ht(nf);var BR=function(t){var r=t.hover,n=t.color,i=t.onClick,o=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Se({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:r});return m.createElement("div",{style:s.swatch},m.createElement(Pn,{color:n,onClick:i,onHover:o,focusStyle:a}))};const WR=Mu(BR);var of=function(t){var r=t.width,n=t.colors,i=t.onChange,o=t.onSwatchHover,a=t.triangle,s=t.styles,c=s===void 0?{}:s,l=t.className,u=l===void 0?"":l,f=Se(Vt({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":a==="hide","top-left-triangle":a==="top-left","top-right-triangle":a==="top-right","bottom-left-triangle":a==="bottom-left","bottom-right-triangle":a==="bottom-right"}),d=function(g,p){return i({hex:g,source:"hex"},p)};return m.createElement("div",{style:f.card,className:"github-picker "+u},m.createElement("div",{style:f.triangleShadow}),m.createElement("div",{style:f.triangle}),_n(n,function(h){return m.createElement(WR,{color:h,key:h,onClick:d,onSwatchHover:o})}))};of.propTypes={width:A.oneOfType([A.string,A.number]),colors:A.arrayOf(A.string),triangle:A.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:A.object},of.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Ht(of);var VR=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return m.createElement("div",{style:n.picker})},HR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},af=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.hsl,a=t.direction,s=t.pointer,c=t.styles,l=c===void 0?{}:c,u=t.className,f=u===void 0?"":u,d=Se(Vt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return m.createElement("div",{style:d.picker,className:"hue-picker "+f},m.createElement(gi,HR({},d.hue,{hsl:o,pointer:s,onChange:h,direction:a})))};af.propTypes={styles:A.object},af.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:VR,styles:{}},Ht(af);var UR=function(t){var r=t.onChange,n=t.hex,i=t.rgb,o=t.styles,a=o===void 0?{}:o,s=t.className,c=s===void 0?"":s,l=Se(Vt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),u=function(d,h){d.hex?rn(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return m.createElement(Wo,{styles:a},m.createElement("div",{style:l.material,className:"material-picker "+c},m.createElement(Ie,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:u}),m.createElement("div",{style:l.split,className:"flexbox-fix"},m.createElement("div",{style:l.third},m.createElement(Ie,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:u})),m.createElement("div",{style:l.third},m.createElement(Ie,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:u})),m.createElement("div",{style:l.third},m.createElement(Ie,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:u})))))};Ht(UR);var YR=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,o=t.hex,a=Se({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,u){l["#"]?rn(l["#"])&&r({hex:l["#"],source:"hex"},u):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},u):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},u)};return m.createElement("div",{style:a.fields},m.createElement(Ie,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),m.createElement(Ie,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),m.createElement(Ie,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),m.createElement("div",{style:a.divider}),m.createElement(Ie,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),m.createElement(Ie,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),m.createElement(Ie,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),m.createElement("div",{style:a.divider}),m.createElement(Ie,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),m.createElement("div",{style:a.fieldSymbols},m.createElement("div",{style:a.symbol},"°"),m.createElement("div",{style:a.symbol},"%"),m.createElement("div",{style:a.symbol},"%")))},GR=function(t){var r=t.hsl,n=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return m.createElement("div",{style:n.picker})},qR=function(){var t=Se({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return m.createElement("div",{style:t.pointer},m.createElement("div",{style:t.left},m.createElement("div",{style:t.leftInside})),m.createElement("div",{style:t.right},m.createElement("div",{style:t.rightInside})))},Qv=function(t){var r=t.onClick,n=t.label,i=t.children,o=t.active,a=Se({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return m.createElement("div",{style:a.button,onClick:r},n||i)},KR=function(t){var r=t.rgb,n=t.currentColor,i=Se({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return m.createElement("div",null,m.createElement("div",{style:i.label},"new"),m.createElement("div",{style:i.swatches},m.createElement("div",{style:i.new}),m.createElement("div",{style:i.current})),m.createElement("div",{style:i.label},"current"))},XR=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function ZR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function JR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var sf=function(e){JR(t,e);function t(r){ZR(this,t);var n=QR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return XR(t,[{key:"render",value:function(){var n=this.props,i=n.styles,o=i===void 0?{}:i,a=n.className,s=a===void 0?"":a,c=Se(Vt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return m.createElement("div",{style:c.picker,className:"photoshop-picker "+s},m.createElement("div",{style:c.head},this.props.header),m.createElement("div",{style:c.body,className:"flexbox-fix"},m.createElement("div",{style:c.saturation},m.createElement($s,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:GR,onChange:this.props.onChange})),m.createElement("div",{style:c.hue},m.createElement(gi,{direction:"vertical",hsl:this.props.hsl,pointer:qR,onChange:this.props.onChange})),m.createElement("div",{style:c.controls},m.createElement("div",{style:c.top,className:"flexbox-fix"},m.createElement("div",{style:c.previews},m.createElement(KR,{rgb:this.props.rgb,currentColor:this.state.currentColor})),m.createElement("div",{style:c.actions},m.createElement(Qv,{label:"OK",onClick:this.props.onAccept,active:!0}),m.createElement(Qv,{label:"Cancel",onClick:this.props.onCancel}),m.createElement(YR,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(m.Component);sf.propTypes={header:A.string,styles:A.object},sf.defaultProps={header:"Color Picker",styles:{}},Ht(sf);var eN=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Se({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),c=function(u,f){u.hex?rn(u.hex)&&r({hex:u.hex,source:"hex"},f):u.r||u.g||u.b?r({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,a:n.a,source:"rgb"},f):u.a&&(u.a<0?u.a=0:u.a>100&&(u.a=100),u.a/=100,r({h:i.h,s:i.s,l:i.l,a:u.a,source:"rgb"},f))};return m.createElement("div",{style:s.fields,className:"flexbox-fix"},m.createElement("div",{style:s.double},m.createElement(Ie,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:c})),m.createElement("div",{style:s.single},m.createElement(Ie,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:c,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Ie,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:c,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.single},m.createElement(Ie,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:c,dragLabel:"true",dragMax:"255"})),m.createElement("div",{style:s.alpha},m.createElement(Ie,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:c,dragLabel:"true",dragMax:"100"})))},tN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jv=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=Se({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,u){i({hex:l,source:"hex"},u)};return m.createElement("div",{style:a.colors,className:"flexbox-fix"},r.map(function(c){var l=typeof c=="string"?{color:c}:c,u=""+l.color+(l.title||"");return m.createElement("div",{key:u,style:a.swatchWrap},m.createElement(Pn,tN({},l,{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};Jv.propTypes={colors:A.arrayOf(A.oneOfType([A.string,A.shape({color:A.string,title:A.string})])).isRequired};var rN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lf=function(t){var r=t.width,n=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,c=t.onSwatchHover,l=t.disableAlpha,u=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,g=t.className,p=g===void 0?"":g,v=Se(Vt({default:rN({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return m.createElement("div",{style:v.picker,className:"sketch-picker "+p},m.createElement("div",{style:v.saturation},m.createElement($s,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),m.createElement("div",{style:v.controls,className:"flexbox-fix"},m.createElement("div",{style:v.sliders},m.createElement("div",{style:v.hue},m.createElement(gi,{style:v.Hue,hsl:a,onChange:s})),m.createElement("div",{style:v.alpha},m.createElement($u,{style:v.Alpha,rgb:n,hsl:a,renderers:f,onChange:s}))),m.createElement("div",{style:v.color},m.createElement(pi,null),m.createElement("div",{style:v.activeColor}))),m.createElement(eN,{rgb:n,hsl:a,hex:i,onChange:s,disableAlpha:l}),m.createElement(Jv,{colors:u,onClick:s,onSwatchHover:c}))};lf.propTypes={disableAlpha:A.bool,width:A.oneOfType([A.string,A.number]),styles:A.object},lf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Ht(lf);var qo=function(t){var r=t.hsl,n=t.offset,i=t.onClick,o=i===void 0?function(){}:i,a=t.active,s=t.first,c=t.last,l=Se({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:c}),u=function(d){return o({h:r.h,s:.5,l:n,source:"hsl"},d)};return m.createElement("div",{style:l.swatch,onClick:u})},nN=function(t){var r=t.onClick,n=t.hsl,i=Se({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return m.createElement("div",{style:i.swatches},m.createElement("div",{style:i.swatch},m.createElement(qo,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:r,first:!0})),m.createElement("div",{style:i.swatch},m.createElement(qo,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(qo,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(qo,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:r})),m.createElement("div",{style:i.swatch},m.createElement(qo,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:r,last:!0})),m.createElement("div",{style:i.clear}))},iN=function(){var t=Se({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return m.createElement("div",{style:t.picker})},cf=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,o=t.styles,a=o===void 0?{}:o,s=t.className,c=s===void 0?"":s,l=Se(Vt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return m.createElement("div",{style:l.wrap||{},className:"slider-picker "+c},m.createElement("div",{style:l.hue},m.createElement(gi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),m.createElement("div",{style:l.swatches},m.createElement(nN,{hsl:r,onClick:n})))};cf.propTypes={styles:A.object},cf.defaultProps={pointer:iN,styles:{}},Ht(cf);var e1={};Object.defineProperty(e1,"__esModule",{value:!0});var t1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oN=m,r1=aN(oN);function aN(e){return e&&e.__esModule?e:{default:e}}function sN(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Fs=24,lN=e1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Fs:n,o=e.height,a=o===void 0?Fs:o,s=e.style,c=s===void 0?{}:s,l=sN(e,["fill","width","height","style"]);return r1.default.createElement("svg",t1({viewBox:"0 0 "+Fs+" "+Fs,style:t1({fill:r,width:i,height:a},c)},l),r1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},cN=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.first,s=t.last,c=t.active,l=Se({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:Hu(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:c,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return m.createElement(Pn,{color:r,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},m.createElement("div",{style:l.check},m.createElement(lN,null)))},uN=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,o=t.active,a=Se({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return m.createElement("div",{style:a.group},_n(i,function(s,c){return m.createElement(cN,{key:s,color:s,active:s.toLowerCase()===o,first:c===0,last:c===i.length-1,onClick:r,onSwatchHover:n})}))},uf=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.onSwatchHover,a=t.colors,s=t.hex,c=t.styles,l=c===void 0?{}:c,u=t.className,f=u===void 0?"":u,d=Se(Vt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,v){return i({hex:p,source:"hex"},v)};return m.createElement("div",{style:d.picker,className:"swatches-picker "+f},m.createElement(Wo,null,m.createElement("div",{style:d.overflow},m.createElement("div",{style:d.body},_n(a,function(g){return m.createElement(uN,{key:g.toString(),group:g,active:s,onClick:h,onSwatchHover:o})}),m.createElement("div",{style:d.clear})))))};uf.propTypes={width:A.oneOfType([A.string,A.number]),height:A.oneOfType([A.string,A.number]),colors:A.arrayOf(A.arrayOf(A.string)),styles:A.object},uf.defaultProps={width:320,height:240,colors:[[vi[900],vi[700],vi[500],vi[300],vi[100]],[yi[900],yi[700],yi[500],yi[300],yi[100]],[bi[900],bi[700],bi[500],bi[300],bi[100]],[xi[900],xi[700],xi[500],xi[300],xi[100]],[wi[900],wi[700],wi[500],wi[300],wi[100]],[Si[900],Si[700],Si[500],Si[300],Si[100]],[Ci[900],Ci[700],Ci[500],Ci[300],Ci[100]],[Ti[900],Ti[700],Ti[500],Ti[300],Ti[100]],[Oi[900],Oi[700],Oi[500],Oi[300],Oi[100]],["#194D33",Go[700],Go[500],Go[300],Go[100]],[Ei[900],Ei[700],Ei[500],Ei[300],Ei[100]],[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Mi[900],Mi[700],Mi[500],Mi[300],Mi[100]],[_i[900],_i[700],_i[500],_i[300],_i[100]],[$i[900],$i[700],$i[500],$i[300],$i[100]],[Ai[900],Ai[700],Ai[500],Ai[300],Ai[100]],[ki[900],ki[700],ki[500],ki[300],ki[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Ht(uf);var ff=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,c=t.styles,l=c===void 0?{}:c,u=t.className,f=u===void 0?"":u,d=Se(Vt({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,v){rn(p)&&r({hex:p,source:"hex"},v)};return m.createElement("div",{style:d.card,className:"twitter-picker "+f},m.createElement("div",{style:d.triangleShadow}),m.createElement("div",{style:d.triangle}),m.createElement("div",{style:d.body},_n(o,function(g,p){return m.createElement(Pn,{key:p,color:g,hex:g,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+g}})}),m.createElement("div",{style:d.hash},"#"),m.createElement(Ie,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),m.createElement("div",{style:d.clear})))};ff.propTypes={width:A.oneOfType([A.string,A.number]),triangle:A.oneOf(["hide","top-left","top-right"]),colors:A.arrayOf(A.string),styles:A.object},ff.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Ht(ff);var df=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return m.createElement("div",{style:r.picker})};df.propTypes={hsl:A.shape({h:A.number,s:A.number,l:A.number,a:A.number})},df.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var hf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return m.createElement("div",{style:r.picker})};hf.propTypes={hsl:A.shape({h:A.number,s:A.number,l:A.number,a:A.number})},hf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var fN=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.hsv,s=function(h,g){if(h.hex)rn(h.hex)&&r({hex:h.hex,source:"hex"},g);else if(h.rgb){var p=h.rgb.split(",");Uu(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},g)}else if(h.hsv){var v=h.hsv.split(",");Uu(h.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),r({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},g))}else if(h.hsl){var x=h.hsl.split(",");Uu(h.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},g))}},c=Se({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,u=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.v*100)+"%";return m.createElement("div",{style:c.wrap,className:"flexbox-fix"},m.createElement("div",{style:c.fields},m.createElement("div",{style:c.double},m.createElement(Ie,{style:{input:c.input,label:c.label},label:"hex",value:o,onChange:s})),m.createElement("div",{style:c.column},m.createElement("div",{style:c.single},m.createElement(Ie,{style:{input:c.input2,label:c.label2},label:"rgb",value:l,onChange:s})),m.createElement("div",{style:c.single},m.createElement(Ie,{style:{input:c.input2,label:c.label2},label:"hsv",value:f,onChange:s})),m.createElement("div",{style:c.single},m.createElement(Ie,{style:{input:c.input2,label:c.label2},label:"hsl",value:u,onChange:s})))))},pf=function(t){var r=t.width,n=t.onChange,i=t.rgb,o=t.hsl,a=t.hsv,s=t.hex,c=t.header,l=t.styles,u=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=Se(Vt({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},u));return m.createElement("div",{style:h.picker,className:"google-picker "+d},m.createElement("div",{style:h.head},c),m.createElement("div",{style:h.swatch}),m.createElement("div",{style:h.saturation},m.createElement($s,{hsl:o,hsv:a,pointer:df,onChange:n})),m.createElement("div",{style:h.body},m.createElement("div",{style:h.controls,className:"flexbox-fix"},m.createElement("div",{style:h.hue},m.createElement(gi,{style:h.Hue,hsl:o,radius:"4px",pointer:hf,onChange:n}))),m.createElement(fN,{rgb:i,hsl:o,hex:s,hsv:a,onChange:n})))};pf.propTypes={width:A.oneOfType([A.string,A.number]),styles:A.object,header:A.string},pf.defaultProps={width:652,styles:{},header:"Color picker"},Ht(pf);const Ko=/^[a-z0-9]+(-[a-z0-9]+)*$/,Rs=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:n,prefix:c,name:s};return t&&!Ns(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Ns(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!Ns(s,r)?null:s}return null},Ns=(e,t)=>e?!!((e.provider===""||e.provider.match(Ko))&&(t&&e.prefix===""||e.prefix.match(Ko))&&e.name.match(Ko)):!1,n1=Object.freeze({left:0,top:0,width:16,height:16}),zs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),gf=Object.freeze({...n1,...zs}),mf=Object.freeze({...gf,body:"",hidden:!1});function dN(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function i1(e,t){const r=dN(e,t);for(const n in mf)n in zs?n in e&&!(n in r)&&(r[n]=zs[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function hN(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,c=s&&o(s);c&&(i[a]=[s].concat(c))}return i[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function pN(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=i1(n[s]||i[s],o)}return a(t),r.forEach(a),i1(e,o)}function o1(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=hN(e);for(const i in n){const o=n[i];o&&(t(i,pN(e,i,o)),r.push(i))}return r}const gN={provider:"",aliases:{},not_found:{},...n1};function vf(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function a1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!vf(e,gN))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(Ko)||typeof o.body!="string"||!vf(o,mf))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(Ko)||typeof a!="string"||!r[a]&&!n[a]||!vf(o,mf))return null}return t}const s1=Object.create(null);function mN(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $n(e,t){const r=s1[e]||(s1[e]=Object.create(null));return r[t]||(r[t]=mN(e,t))}function yf(e,t){return a1(t)?o1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function vN(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Xo=!1;function l1(e){return typeof e=="boolean"&&(Xo=e),Xo}function yN(e){const t=typeof e=="string"?Rs(e,!0,Xo):e;if(t){const r=$n(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function bN(e,t){const r=Rs(e,!0,Xo);if(!r)return!1;const n=$n(r.provider,r.prefix);return vN(n,r.name,t)}function xN(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Xo&&!t&&!e.prefix){let i=!1;return a1(e)&&(e.prefix="",o1(e,(o,a)=>{a&&bN(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Ns({provider:t,prefix:r,name:"a"}))return!1;const n=$n(t,r);return!!yf(n,e)}const c1=Object.freeze({width:null,height:null}),u1=Object.freeze({...c1,...zs}),wN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,SN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function f1(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(wN);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=SN.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const CN=e=>e==="unset"||e==="undefined"||e==="none";function TN(e,t){const r={...gf,...e},n={...u1,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(g=>{const p=[],v=g.hFlip,x=g.vFlip;let b=g.rotate;v?x?b+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):x&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let S;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:S=i.height/2+i.top,p.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,p.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}b%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),p.length&&(o='<g transform="'+p.join(" ")+'">'+o+"</g>")});const a=n.width,s=n.height,c=i.width,l=i.height;let u,f;a===null?(f=s===null?"1em":s==="auto"?l:s,u=f1(f,c/l)):(u=a==="auto"?c:a,f=s===null?f1(u,l/c):s==="auto"?l:s);const d={},h=(g,p)=>{CN(p)||(d[g]=p.toString())};return h("width",u),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:d,body:o}}const ON=/\sid="(\S+)"/g,EN="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let PN=0;function MN(e,t=EN){const r=[];let n;for(;n=ON.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const a=typeof t=="function"?t(o):t+(PN++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const bf=Object.create(null);function _N(e,t){bf[e]=t}function xf(e){return bf[e]||bf[""]}function wf(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Sf=Object.create(null),Zo=["https://api.simplesvg.com","https://api.unisvg.com"],Bs=[];for(;Zo.length>0;)Zo.length===1||Math.random()>.5?Bs.push(Zo.shift()):Bs.push(Zo.pop());Sf[""]=wf({resources:["https://api.iconify.design"].concat(Bs)});function $N(e,t){const r=wf(t);return r===null?!1:(Sf[e]=r,!0)}function Cf(e){return Sf[e]}let d1=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function AN(e,t){const r=Cf(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function kN(e){return e===404}const DN=(e,t,r)=>{const n=[],i=AN(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((c,l)=>{s+=c.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),n.push(a),n};function IN(e){if(typeof e=="string"){const t=Cf(e);if(t)return t.path}return"/"}const jN={prepare:DN,send:(e,t,r)=>{if(!d1){r("abort",424);return}let n=IN(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});n+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;d1(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(kN(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function LN(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,s=i.name,c=r[o]||(r[o]=Object.create(null)),l=c[a]||(c[a]=$n(o,a));let u;s in l.icons?u=t.loaded:a===""||l.missing.has(s)?u=t.missing:u=t.pending;const f={provider:o,prefix:a,name:s};u.push(f)}),t}function h1(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function FN(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||h1([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let RN=0;function NN(e,t,r){const n=RN++,i=h1.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function zN(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Rs(i,t,r):i;o&&n.push(o)}),n}var BN={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function WN(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let T=e.resources.slice(0);for(a=[];T.length>1;){const E=Math.floor(Math.random()*T.length);a.push(T[E]),T=T.slice(0,E).concat(T.slice(E+1))}a=a.concat(T)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let c="pending",l=0,u,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function g(){f&&(clearTimeout(f),f=null)}function p(){c==="pending"&&(c="aborted"),g(),d.forEach(T=>{T.status==="pending"&&(T.status="aborted")}),d=[]}function v(T,E){E&&(h=[]),typeof T=="function"&&h.push(T)}function x(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:d.length,subscribe:v,abort:p}}function b(){c="failed",h.forEach(T=>{T(void 0,u)})}function S(){d.forEach(T=>{T.status==="pending"&&(T.status="aborted")}),d=[]}function O(T,E,P){const k=E!=="success";switch(d=d.filter(F=>F!==T),c){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){u=P,b();return}if(k){u=P,d.length||(a.length?w():b());return}if(g(),S(),!e.random){const F=e.resources.indexOf(T.resource);F!==-1&&F!==e.index&&(e.index=F)}c="completed",h.forEach(F=>{F(P)})}function w(){if(c!=="pending")return;g();const T=a.shift();if(T===void 0){if(d.length){f=setTimeout(()=>{g(),c==="pending"&&(S(),b())},e.timeout);return}b();return}const E={status:"pending",resource:T,callback:(P,k)=>{O(E,P,k)}};d.push(E),l++,f=setTimeout(w,e.rotate),r(T,t,E.callback)}return setTimeout(w),x}function p1(e){const t={...BN,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,c,l){const u=WN(t,s,c,(f,d)=>{n(),l&&l(f,d)});return r.push(u),u}function o(s){return r.find(c=>s(c))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function g1(){}const Tf=Object.create(null);function VN(e){if(!Tf[e]){const t=Cf(e);if(!t)return;const r=p1(t),n={config:t,redundancy:r};Tf[e]=n}return Tf[e]}function HN(e,t,r){let n,i;if(typeof e=="string"){const o=xf(e);if(!o)return r(void 0,424),g1;i=o.send;const a=VN(e);a&&(n=a.redundancy)}else{const o=wf(e);if(o){n=p1(o);const a=e.resources?e.resources[0]:"",s=xf(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),g1):n.query(t,i,r)().abort}const m1="iconify2",Qo="iconify",v1=Qo+"-count",y1=Qo+"-version",b1=36e5,UN=168;function Of(e,t){try{return e.getItem(t)}catch{}}function Ef(e,t,r){try{return e.setItem(t,r),!0}catch{}}function x1(e,t){try{e.removeItem(t)}catch{}}function Pf(e,t){return Ef(e,v1,t.toString())}function Mf(e){return parseInt(Of(e,v1))||0}const Ws={local:!0,session:!0},w1={local:new Set,session:new Set};let _f=!1;function YN(e){_f=e}let Vs=typeof window>"u"?{}:window;function S1(e){const t=e+"Storage";try{if(Vs&&Vs[t]&&typeof Vs[t].length=="number")return Vs[t]}catch{}Ws[e]=!1}function C1(e,t){const r=S1(e);if(!r)return;const n=Of(r,y1);if(n!==m1){if(n){const s=Mf(r);for(let c=0;c<s;c++)x1(r,Qo+c.toString())}Ef(r,y1,m1),Pf(r,0);return}const i=Math.floor(Date.now()/b1)-UN,o=s=>{const c=Qo+s.toString(),l=Of(r,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}x1(r,c)}};let a=Mf(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,Pf(r,a)):w1[e].add(s))}function T1(){if(!_f){YN(!0);for(const e in Ws)C1(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=$n(n,i);if(!yf(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function GN(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Ws)C1(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function qN(e,t){_f||T1();function r(n){let i;if(!Ws[n]||!(i=S1(n)))return;const o=w1[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Mf(i),!Pf(i,a+1))return;const s={cached:Math.floor(Date.now()/b1),provider:e.provider,data:t};return Ef(i,Qo+a.toString(),JSON.stringify(s))}t.lastModified&&!GN(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function O1(){}function KN(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,FN(e)}))}function XN(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=xf(r)))return;o.prepare(r,n,i).forEach(s=>{HN(r,s,c=>{if(typeof c!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=yf(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),qN(e,c)}catch(l){console.error(l)}KN(e)})})}))}const ZN=(e,t)=>{const r=zN(e,!0,l1()),n=LN(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,O1)}),()=>{c=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===s&&l===a)return;a=l,s=u,o.push($n(l,u));const f=i[l]||(i[l]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(c=>{const{provider:l,prefix:u,name:f}=c,d=$n(l,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][u].push(f))}),o.forEach(c=>{const{provider:l,prefix:u}=c;i[l][u].length&&XN(c,i[l][u])}),t?NN(t,n,o):O1};function QN(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in c1?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const JN=/[\s,]+/;function ez(e,t){t.split(JN).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function tz(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function rz(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function nz(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function iz(e){return"data:image/svg+xml,"+nz(e)}function oz(e){return'url("'+iz(e)+'")'}let Jo;function az(){try{Jo=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Jo=null}}function sz(e){return Jo===void 0&&az(),Jo?Jo.createHTML(e):e}const E1={...u1,inline:!1},lz={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},cz={display:"inline-block"},$f={backgroundColor:"currentColor"},P1={backgroundColor:"transparent"},M1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},_1={WebkitMask:$f,mask:$f,background:P1};for(const e in _1){const t=_1[e];for(const r in M1)t[e+r]=M1[r]}const uz={...E1,inline:!0};function $1(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const fz=(e,t,r,n)=>{const i=r?uz:E1,o=QN(i,t),a=t.mode||"svg",s={},c=t.style||{},l={...a==="svg"?lz:{},ref:n};for(let x in t){const b=t[x];if(b!==void 0)switch(x){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[x]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&ez(o,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?o[x]=tz(b):typeof b=="number"&&(o[x]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete l["aria-hidden"];break;default:i[x]===void 0&&(l[x]=b)}}const u=TN(e,o),f=u.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),a==="svg"){l.style={...s,...c},Object.assign(l,f);let x=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:sz(MN(u.body,b?()=>b+"ID"+x++:"iconifyReact"))},m.createElement("svg",l)}const{body:d,width:h,height:g}=e,p=a==="mask"||(a==="bg"?!1:d.indexOf("currentColor")!==-1),v=rz(d,{...f,width:h+"",height:g+""});return l.style={...s,"--svg":oz(v),width:$1(f.width),height:$1(f.height),...cz,...p?$f:P1,...c},m.createElement("span",l)};if(l1(!0),_N("",jN),typeof document<"u"&&typeof window<"u"){T1();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!xN(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;$N(r,i)||console.error(n)}catch{console.error(n)}}}}class A1 extends m.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Rs(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const o=yN(i);if(!o){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),o!==null&&(this._loading={name:n,abort:ZN([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const a=["iconify"];i.prefix!==""&&a.push("iconify--"+i.prefix),i.provider!==""&&a.push("iconify--"+i.provider),this._setData({data:o,classes:a}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:m.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),fz({...gf,...r.data},n,t._inline,t._ref)}}const dz=m.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return m.createElement(A1,n)});m.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return m.createElement(A1,n)});const jt=m.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>y.jsx(_.Box,{ref:i,component:dz,icon:e,sx:{width:t,height:t,...r},...n}));jt.displayName="Iconify";const k1=({value:e,onChangeColor:t,...r})=>{const[n,i]=m.useState(null),o=s=>{i(s.currentTarget)},a=()=>i(null);return y.jsxs(y.Fragment,{children:[y.jsx(_.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:y.jsx(_.InputAdornment,{position:"start",sx:{ml:2},children:y.jsx(_.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:o,children:y.jsx(jt,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),y.jsx(_.Popover,{open:!!n,anchorEl:n,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:y.jsx(RR,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function ze(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Br(e){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(e)}function U(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Y(e){U(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Br(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Af(e,t){U(2,arguments);var r=Y(e),n=ze(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Hs(e,t){U(2,arguments);var r=Y(e).getTime(),n=ze(t);return new Date(r+n)}function hz(e,t){U(2,arguments);var r=ze(t);return Hs(e,r*1e3)}var pz=6e4;function gz(e,t){U(2,arguments);var r=ze(t);return Hs(e,r*pz)}var mz=36e5;function vz(e,t){U(2,arguments);var r=ze(t);return Hs(e,r*mz)}function yz(e,t){U(2,arguments);var r=ze(t),n=r*7;return Af(e,n)}function Us(e,t){U(2,arguments);var r=Y(e),n=ze(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function D1(e,t){U(2,arguments);var r=ze(t);return Us(e,r*12)}function bz(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()-n.getFullYear()}function Ii(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function xz(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Ii(r,n),o=Math.abs(bz(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=Ii(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function wz(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function kf(e){U(1,arguments);var t=Y(e);return t.setHours(23,59,59,999),t}function Df(e){U(1,arguments);var t=Y(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Sz(e){U(1,arguments);var t=Y(e);return kf(t).getTime()===Df(t).getTime()}function If(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Ii(r,n),o=Math.abs(wz(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=Ii(r,n)===-i;Sz(Y(e))&&o===1&&Ii(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}var I1={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Cz="trunc";function ea(e){return e?I1[e]:I1[Cz]}function Tz(e,t,r){U(2,arguments);var n=If(e,t)/3;return ea(r==null?void 0:r.roundingMethod)(n)}function ji(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Li(e){U(1,arguments);var t=Y(e);return t.setHours(0,0,0,0),t}var Oz=864e5;function Ez(e,t){U(2,arguments);var r=Li(e),n=Li(t),i=r.getTime()-ji(r),o=n.getTime()-ji(n);return Math.round((i-o)/Oz)}function j1(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function L1(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=j1(r,n),o=Math.abs(Ez(r,n));r.setDate(r.getDate()-i*o);var a=+(j1(r,n)===-i),s=i*(o-a);return s===0?0:s}function Pz(e,t,r){U(2,arguments);var n=L1(e,t)/7;return ea(r==null?void 0:r.roundingMethod)(n)}var Ys=6e4,Gs=36e5,Mz=1e3;function qs(e,t){return U(2,arguments),Y(e).getTime()-Y(t).getTime()}function _z(e,t,r){U(2,arguments);var n=qs(e,t)/Gs;return ea(r==null?void 0:r.roundingMethod)(n)}function $z(e,t,r){U(2,arguments);var n=qs(e,t)/Ys;return ea(r==null?void 0:r.roundingMethod)(n)}function F1(e,t,r){U(2,arguments);var n=qs(e,t)/1e3;return ea(r==null?void 0:r.roundingMethod)(n)}function Az(e,t){var r;U(1,arguments);var n=e||{},i=Y(n.start),o=Y(n.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],c=i;c.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=a;)s.push(Y(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}var kz={};function pr(){return kz}function jf(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=pr(),f=ze((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&n!==void 0?n:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),g=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}function Lf(e){U(1,arguments);var t=Y(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function Dz(e){return U(1,arguments),e instanceof Date||Br(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function R1(e){if(U(1,arguments),!Dz(e)&&typeof e!="number")return!1;var t=Y(e);return!isNaN(Number(t))}function N1(e,t){U(2,arguments);var r=ze(t);return Hs(e,-r)}var Iz=864e5;function jz(e){U(1,arguments);var t=Y(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/Iz)+1}function Fi(e){U(1,arguments);var t=1,r=Y(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function z1(e){U(1,arguments);var t=Y(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Fi(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Fi(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function Lz(e){U(1,arguments);var t=z1(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Fi(r);return n}var Fz=6048e5;function B1(e){U(1,arguments);var t=Y(e),r=Fi(t).getTime()-Lz(t).getTime();return Math.round(r/Fz)+1}function An(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=pr(),f=ze((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&n!==void 0?n:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getUTCDay(),g=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-g),d.setUTCHours(0,0,0,0),d}function Ff(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=Y(e),f=u.getUTCFullYear(),d=pr(),h=ze((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(f+1,0,h),g.setUTCHours(0,0,0,0);var p=An(g,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var x=An(v,t);return u.getTime()>=p.getTime()?f+1:u.getTime()>=x.getTime()?f:f-1}function Rz(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=pr(),f=ze((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&n!==void 0?n:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Ff(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var g=An(h,t);return g}var Nz=6048e5;function W1(e,t){U(1,arguments);var r=Y(e),n=An(r,t).getTime()-Rz(r,t).getTime();return Math.round(n/Nz)+1}function $e(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var zz={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return $e(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):$e(n+1,2)},d:function(t,r){return $e(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return $e(t.getUTCHours()%12||12,r.length)},H:function(t,r){return $e(t.getUTCHours(),r.length)},m:function(t,r){return $e(t.getUTCMinutes(),r.length)},s:function(t,r){return $e(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return $e(o,r.length)}};const nn=zz;var Ri={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bz={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return nn.y(t,r)},Y:function(t,r,n,i){var o=Ff(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return $e(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):$e(a,r.length)},R:function(t,r){var n=z1(t);return $e(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return $e(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return $e(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return $e(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return nn.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return $e(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=W1(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):$e(o,r.length)},I:function(t,r,n){var i=B1(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):$e(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):nn.d(t,r)},D:function(t,r,n){var i=jz(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):$e(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return $e(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return $e(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return $e(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=Ri.noon:i===0?o=Ri.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=Ri.evening:i>=12?o=Ri.afternoon:i>=4?o=Ri.morning:o=Ri.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return nn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):nn.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):$e(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):$e(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):nn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):nn.s(t,r)},S:function(t,r){return nn.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return H1(a);case"XXXX":case"XX":return kn(a);case"XXXXX":case"XXX":default:return kn(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return H1(a);case"xxxx":case"xx":return kn(a);case"xxxxx":case"xxx":default:return kn(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+V1(a,":");case"OOOO":default:return"GMT"+kn(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+V1(a,":");case"zzzz":default:return"GMT"+kn(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return $e(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return $e(a,r.length)}};function V1(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+$e(o,2)}function H1(e,t){if(e%60===0){var r=e>0?"-":"+";return r+$e(Math.abs(e)/60,2)}return kn(e,t)}function kn(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=$e(Math.floor(i/60),2),a=$e(i%60,2);return n+o+r+a}const Wz=Bz;var U1=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Y1=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Vz=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return U1(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",U1(i,r)).replace("{{time}}",Y1(o,r))},Hz={p:Y1,P:Vz};const Rf=Hz;var Uz=["D","DD"],Yz=["YY","YYYY"];function G1(e){return Uz.indexOf(e)!==-1}function q1(e){return Yz.indexOf(e)!==-1}function Ks(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Gz={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qz=function(t,r,n){var i,o=Gz[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const Kz=qz;function Ni(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Xz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jz={date:Ni({formats:Xz,defaultWidth:"full"}),time:Ni({formats:Zz,defaultWidth:"full"}),dateTime:Ni({formats:Qz,defaultWidth:"full"})};const eB=Jz;var tB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rB=function(t,r,n,i){return tB[t]};const nB=rB;function Tr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var iB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},aB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},sB={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},lB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},cB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},uB=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fB={ordinalNumber:uB,era:Tr({values:iB,defaultWidth:"wide"}),quarter:Tr({values:oB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Tr({values:aB,defaultWidth:"wide"}),day:Tr({values:sB,defaultWidth:"wide"}),dayPeriod:Tr({values:lB,defaultWidth:"wide",formattingValues:cB,defaultFormattingWidth:"wide"})};const dB=fB;function Or(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?pB(s,function(f){return f.test(a)}):hB(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;var u=t.slice(a.length);return{value:l,rest:u}}}function hB(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function pB(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function K1(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var gB=/^(\d+)(th|st|nd|rd)?/i,mB=/\d+/i,vB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yB={any:[/^b/i,/^(a|c)/i]},bB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xB={any:[/1/i,/2/i,/3/i,/4/i]},wB={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},SB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},CB={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},OB={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},EB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},PB={ordinalNumber:K1({matchPattern:gB,parsePattern:mB,valueCallback:function(t){return parseInt(t,10)}}),era:Or({matchPatterns:vB,defaultMatchWidth:"wide",parsePatterns:yB,defaultParseWidth:"any"}),quarter:Or({matchPatterns:bB,defaultMatchWidth:"wide",parsePatterns:xB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Or({matchPatterns:wB,defaultMatchWidth:"wide",parsePatterns:SB,defaultParseWidth:"any"}),day:Or({matchPatterns:CB,defaultMatchWidth:"wide",parsePatterns:TB,defaultParseWidth:"any"}),dayPeriod:Or({matchPatterns:OB,defaultMatchWidth:"any",parsePatterns:EB,defaultParseWidth:"any"})},MB={code:"en-US",formatDistance:Kz,formatLong:eB,formatRelative:nB,localize:dB,match:PB,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Xs=MB;var _B=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AB=/^'([^]*?)'?$/,kB=/''/g,DB=/[a-zA-Z]/;function Nf(e,t,r){var n,i,o,a,s,c,l,u,f,d,h,g,p,v,x,b,S,O;U(2,arguments);var w=String(t),T=pr(),E=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:T.locale)!==null&&n!==void 0?n:Xs,P=ze((o=(a=(s=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(l=r.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&a!==void 0?a:(f=T.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=ze((h=(g=(p=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(x=r.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&g!==void 0?g:(S=T.locale)===null||S===void 0||(O=S.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&h!==void 0?h:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var F=Y(e);if(!R1(F))throw new RangeError("Invalid time value");var re=ji(F),pe=N1(F,re),se={firstWeekContainsDate:P,weekStartsOn:k,locale:E,_originalDate:F},q=w.match($B).map(function(G){var me=G[0];if(me==="p"||me==="P"){var Ce=Rf[me];return Ce(G,E.formatLong)}return G}).join("").match(_B).map(function(G){if(G==="''")return"'";var me=G[0];if(me==="'")return IB(G);var Ce=Wz[me];if(Ce)return!(r!=null&&r.useAdditionalWeekYearTokens)&&q1(G)&&Ks(G,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&G1(G)&&Ks(G,t,String(e)),Ce(pe,G,E.localize,se);if(me.match(DB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+me+"`");return G}).join("");return q}function IB(e){var t=e.match(AB);return t?t[1].replace(kB,"'"):e}function jB(e){U(1,arguments);var t=Y(e),r=t.getDate();return r}function X1(e){U(1,arguments);var t=Y(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function LB(e){U(1,arguments);var t=Y(e),r=t.getHours();return r}function FB(e){U(1,arguments);var t=Y(e),r=t.getMinutes();return r}function RB(e){U(1,arguments);var t=Y(e),r=t.getMonth();return r}function NB(e){U(1,arguments);var t=Y(e),r=t.getSeconds();return r}function zB(e){U(1,arguments);var t=Y(e),r=t.getMilliseconds();return r}function Dn(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=pr(),f=ze((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&n!==void 0?n:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),g=(h<f?7:0)+h-f;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function BB(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=Y(e),f=u.getFullYear(),d=pr(),h=ze((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setFullYear(f+1,0,h),g.setHours(0,0,0,0);var p=Dn(g,t),v=new Date(0);v.setFullYear(f,0,h),v.setHours(0,0,0,0);var x=Dn(v,t);return u.getTime()>=p.getTime()?f+1:u.getTime()>=x.getTime()?f:f-1}function WB(e,t){var r,n,i,o,a,s,c,l;U(1,arguments);var u=pr(),f=ze((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&n!==void 0?n:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=BB(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var g=Dn(h,t);return g}var VB=6048e5;function HB(e,t){U(1,arguments);var r=Y(e),n=Dn(r,t).getTime()-WB(r,t).getTime();return Math.round(n/VB)+1}function UB(e){return U(1,arguments),Y(e).getFullYear()}function zf(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()>n.getTime()}function ta(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()<n.getTime()}function YB(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()===n.getTime()}function GB(e,t){U(2,arguments);var r=Li(e),n=Li(t);return r.getTime()===n.getTime()}function qB(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()}function KB(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Z1(e){U(1,arguments);var t=Y(e);return t.setMinutes(0,0,0),t}function XB(e,t){U(2,arguments);var r=Z1(e),n=Z1(t);return r.getTime()===n.getTime()}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZB(e,t){if(e){if(typeof e=="string")return Q1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q1(e,t)}}function J1(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ZB(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function Bf(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wf(e,t)}function Be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}function Zs(e){return Zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zs(e)}function QB(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JB(e,t){if(t&&(Br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function We(e){var t=QB();return function(){var n=Zs(e),i;if(t){var o=Zs(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return JB(this,i)}}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eW(e,t){if(Br(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Br(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ey(e){var t=eW(e,"string");return Br(t)==="symbol"?t:String(t)}function ty(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ey(n.key),n)}}function Le(e,t,r){return t&&ty(e.prototype,t),r&&ty(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t,r){return t=ey(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tW=10,ry=function(){function e(){je(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return Le(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),rW=function(e){Be(r,e);var t=We(r);function r(n,i,o,a,s){var c;return je(this,r),c=t.call(this),c.value=n,c.validateValue=i,c.setValue=o,c.priority=a,s&&(c.subPriority=s),c}return Le(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(ry),nW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",tW),te(ae(n),"subPriority",-1),n}return Le(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(ry),Ue=function(){function e(){je(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return Le(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new rW(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),iW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",140),te(ae(n),"incompatibleTokens",["R","u","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),xt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Er={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function wt(e,t){return e&&{value:t(e.value),rest:e.rest}}function dt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Pr(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*Gs+o*Ys+a*Mz),rest:t.slice(r[0].length)}}function ny(e){return dt(xt.anyDigitsSigned,e)}function yt(e,t){switch(e){case 1:return dt(xt.singleDigit,t);case 2:return dt(xt.twoDigits,t);case 3:return dt(xt.threeDigits,t);case 4:return dt(xt.fourDigits,t);default:return dt(new RegExp("^\\d{1,"+e+"}"),t)}}function Qs(e,t){switch(e){case 1:return dt(xt.singleDigitSigned,t);case 2:return dt(xt.twoDigitsSigned,t);case 3:return dt(xt.threeDigitsSigned,t);case 4:return dt(xt.fourDigitsSigned,t);default:return dt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Vf(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function iy(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function oy(e){return e%400===0||e%4===0&&e%100!==0}var oW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return wt(yt(4,i),s);case"yo":return wt(a.ordinalNumber(i,{unit:"year"}),s);default:return wt(yt(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var c=iy(a.year,s);return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),aW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return wt(yt(4,i),s);case"Yo":return wt(a.ordinalNumber(i,{unit:"year"}),s);default:return wt(yt(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var c=Ff(i,s);if(a.isTwoDigitYear){var l=iy(a.year,c);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),An(i,s)}var u=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),An(i,s)}}]),r}(Ue),sW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o){return Qs(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Fi(s)}}]),r}(Ue),lW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o){return Qs(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),cW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return yt(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),uW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return yt(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),fW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ae(n),"priority",110),n}return Le(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"M":return wt(dt(xt.month,i),s);case"MM":return wt(yt(2,i),s);case"Mo":return wt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),dW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",110),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"L":return wt(dt(xt.month,i),s);case"LL":return wt(yt(2,i),s);case"Lo":return wt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ue);function hW(e,t,r){U(2,arguments);var n=Y(e),i=ze(t),o=W1(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var pW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return dt(xt.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return An(hW(i,a,s),s)}}]),r}(Ue);function gW(e,t){U(2,arguments);var r=Y(e),n=ze(t),i=B1(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var mW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return dt(xt.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Fi(gW(i,a))}}]),r}(Ue),vW=[31,28,31,30,31,30,31,31,30,31,30,31],yW=[31,29,31,30,31,30,31,31,30,31,30,31],bW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subPriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return dt(xt.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=oy(a),c=i.getUTCMonth();return s?o>=1&&o<=yW[c]:o>=1&&o<=vW[c]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),xW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subpriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return dt(xt.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=oy(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ue);function Hf(e,t,r){var n,i,o,a,s,c,l,u;U(2,arguments);var f=pr(),d=ze((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Y(e),g=ze(t),p=h.getUTCDay(),v=g%7,x=(v+7)%7,b=(x<d?7:0)+g-p;return h.setUTCDate(h.getUTCDate()+b),h}var wW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Hf(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),SW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a,s){var c=function(u){var f=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+f};switch(o){case"e":case"ee":return wt(yt(o.length,i),c);case"eo":return wt(a.ordinalNumber(i,{unit:"day"}),c);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Hf(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),CW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a,s){var c=function(u){var f=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+f};switch(o){case"c":case"cc":return wt(yt(o.length,i),c);case"co":return wt(a.ordinalNumber(i,{unit:"day"}),c);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Hf(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ue);function TW(e,t){U(2,arguments);var r=ze(t);r%7===0&&(r=r-7);var n=1,i=Y(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,c=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+c),i}var OW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return yt(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return wt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return wt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return wt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return wt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=TW(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ue),EW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Vf(a),0,0,0),i}}]),r}(Ue),PW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Vf(a),0,0,0),i}}]),r}(Ue),MW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","b","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Vf(a),0,0,0),i}}]),r}(Ue),_W=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return dt(xt.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ue),$W=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return dt(xt.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ue),AW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return dt(xt.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ue),kW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return dt(xt.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ue),DW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",60),te(ae(n),"incompatibleTokens",["t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return dt(xt.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ue),IW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",50),te(ae(n),"incompatibleTokens",["t","T"]),n}return Le(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return dt(xt.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return yt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ue),jW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",30),te(ae(n),"incompatibleTokens",["t","T"]),n}return Le(r,[{key:"parse",value:function(i,o){var a=function(c){return Math.floor(c*Math.pow(10,-o.length+3))};return wt(yt(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ue),LW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","x"]),n}return Le(r,[{key:"parse",value:function(i,o){switch(o){case"X":return Pr(Er.basicOptionalMinutes,i);case"XX":return Pr(Er.basic,i);case"XXXX":return Pr(Er.basicOptionalSeconds,i);case"XXXXX":return Pr(Er.extendedOptionalSeconds,i);case"XXX":default:return Pr(Er.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ue),FW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","X"]),n}return Le(r,[{key:"parse",value:function(i,o){switch(o){case"x":return Pr(Er.basicOptionalMinutes,i);case"xx":return Pr(Er.basic,i);case"xxxx":return Pr(Er.basicOptionalSeconds,i);case"xxxxx":return Pr(Er.extendedOptionalSeconds,i);case"xxx":default:return Pr(Er.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ue),RW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",40),te(ae(n),"incompatibleTokens","*"),n}return Le(r,[{key:"parse",value:function(i){return ny(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ue),NW=function(e){Be(r,e);var t=We(r);function r(){var n;je(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",20),te(ae(n),"incompatibleTokens","*"),n}return Le(r,[{key:"parse",value:function(i){return ny(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ue),zW={G:new iW,y:new oW,Y:new aW,R:new sW,u:new lW,Q:new cW,q:new uW,M:new fW,L:new dW,w:new pW,I:new mW,d:new bW,D:new xW,E:new wW,e:new SW,c:new CW,i:new OW,a:new EW,b:new PW,B:new MW,h:new _W,H:new $W,K:new AW,k:new kW,m:new DW,s:new IW,S:new jW,X:new LW,x:new FW,t:new RW,T:new NW},BW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VW=/^'([^]*?)'?$/,HW=/''/g,UW=/\S/,YW=/[a-zA-Z]/;function GW(e,t,r,n){var i,o,a,s,c,l,u,f,d,h,g,p,v,x,b,S,O,w;U(3,arguments);var T=String(e),E=String(t),P=pr(),k=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:P.locale)!==null&&i!==void 0?i:Xs;if(!k.match)throw new RangeError("locale must contain match property");var F=ze((a=(s=(c=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&c!==void 0?c:P.firstWeekContainsDate)!==null&&s!==void 0?s:(d=P.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=ze((g=(p=(v=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&v!==void 0?v:P.weekStartsOn)!==null&&p!==void 0?p:(O=P.locale)===null||O===void 0||(w=O.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(E==="")return T===""?Y(r):new Date(NaN);var pe={firstWeekContainsDate:F,weekStartsOn:re,locale:k},se=[new nW],q=E.match(WW).map(function(Z){var Q=Z[0];if(Q in Rf){var ne=Rf[Q];return ne(Z,k.formatLong)}return Z}).join("").match(BW),G=[],me=J1(q),Ce;try{var ke=function(){var Q=Ce.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&q1(Q)&&Ks(Q,E,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&G1(Q)&&Ks(Q,E,e);var ne=Q[0],ye=zW[ne];if(ye){var R=ye.incompatibleTokens;if(Array.isArray(R)){var Fe=G.find(function(ut){return R.includes(ut.token)||ut.token===ne});if(Fe)throw new RangeError("The format string mustn't contain `".concat(Fe.fullToken,"` and `").concat(Q,"` at the same time"))}else if(ye.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));G.push({token:ne,fullToken:Q});var le=ye.run(T,Q,k.match,pe);if(!le)return{v:new Date(NaN)};se.push(le.setter),T=le.rest}else{if(ne.match(YW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(Q==="''"?Q="'":ne==="'"&&(Q=qW(Q)),T.indexOf(Q)===0)T=T.slice(Q.length);else return{v:new Date(NaN)}}};for(me.s();!(Ce=me.n()).done;){var Oe=ke();if(Br(Oe)==="object")return Oe.v}}catch(Z){me.e(Z)}finally{me.f()}if(T.length>0&&UW.test(T))return new Date(NaN);var D=se.map(function(Z){return Z.priority}).sort(function(Z,Q){return Q-Z}).filter(function(Z,Q,ne){return ne.indexOf(Z)===Q}).map(function(Z){return se.filter(function(Q){return Q.priority===Z}).sort(function(Q,ne){return ne.subPriority-Q.subPriority})}).map(function(Z){return Z[0]}),L=Y(r);if(isNaN(L.getTime()))return new Date(NaN);var X=N1(L,ji(L)),ee={},H=J1(D),fe;try{for(H.s();!(fe=H.n()).done;){var ce=fe.value;if(!ce.validate(X,pe))return new Date(NaN);var ge=ce.set(X,ee,pe);Array.isArray(ge)?(X=ge[0],Bf(ee,ge[1])):X=ge}}catch(Z){H.e(Z)}finally{H.f()}return X}function qW(e){return e.match(VW)[1].replace(HW,"'")}function KW(e,t){U(2,arguments);var r=Y(e),n=ze(t);return r.setDate(n),r}function XW(e,t){U(2,arguments);var r=Y(e),n=ze(t);return r.setHours(n),r}function ZW(e,t){U(2,arguments);var r=Y(e),n=ze(t);return r.setMinutes(n),r}function QW(e,t){U(2,arguments);var r=Y(e),n=ze(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=X1(a);return r.setMonth(n,Math.min(o,s)),r}function JW(e,t){U(2,arguments);var r=Y(e),n=ze(t);return r.setSeconds(n),r}function eV(e,t){U(2,arguments);var r=Y(e),n=ze(t);return r.setMilliseconds(n),r}function tV(e,t){U(2,arguments);var r=Y(e),n=ze(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function ay(e){U(1,arguments);var t=Y(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Js(e){U(1,arguments);var t=Y(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function rV(e,t){var r;U(1,arguments);var n=ze((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=aV(e),o;if(i.date){var a=sV(i.date,n);o=lV(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),c=0,l;if(i.time&&(c=cV(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(l=uV(i.timezone),isNaN(l))return new Date(NaN)}else{var u=new Date(s+c),f=new Date(0);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return new Date(s+c+l)}var el={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nV=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,iV=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,oV=/^([+-])(\d{2})(?::?(\d{2}))?$/;function aV(e){var t={},r=e.split(el.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],el.timeZoneDelimiter.test(t.date)&&(t.date=e.split(el.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=el.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function sV(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function lV(e,t){if(t===null)return new Date(NaN);var r=e.match(nV);if(!r)return new Date(NaN);var n=!!r[4],i=ra(r[1]),o=ra(r[2])-1,a=ra(r[3]),s=ra(r[4]),c=ra(r[5])-1;if(n)return gV(t,s,c)?fV(t,s,c):new Date(NaN);var l=new Date(0);return!hV(t,o,a)||!pV(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function ra(e){return e?parseInt(e):1}function cV(e){var t=e.match(iV);if(!t)return NaN;var r=Uf(t[1]),n=Uf(t[2]),i=Uf(t[3]);return mV(r,n,i)?r*Gs+n*Ys+i*1e3:NaN}function Uf(e){return e&&parseFloat(e.replace(",","."))||0}function uV(e){if(e==="Z")return 0;var t=e.match(oV);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return vV(n,i)?r*(n*Gs+i*Ys):NaN}function fV(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var dV=[31,null,31,30,31,30,31,31,30,31,30,31];function sy(e){return e%400===0||e%4===0&&e%100!==0}function hV(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(dV[t]||(sy(e)?29:28))}function pV(e,t){return t>=1&&t<=(sy(e)?366:365)}function gV(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function mV(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function vV(e,t){return t>=0&&t<=59}function yV(e,t){var r,n;U(1,arguments);var i=Y(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l=o==="extended"?"-":"",u=o==="extended"?":":"";if(a!=="time"){var f=$e(i.getDate(),2),d=$e(i.getMonth()+1,2),h=$e(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var g=i.getTimezoneOffset();if(g!==0){var p=Math.abs(g),v=$e(Math.floor(p/60),2),x=$e(p%60,2),b=g<0?"+":"-";c="".concat(b).concat(v,":").concat(x)}else c="Z";var S=$e(i.getHours(),2),O=$e(i.getMinutes(),2),w=$e(i.getSeconds(),2),T=s===""?"":"T",E=[S,O,w].join(u);s="".concat(s).concat(T).concat(E).concat(c)}return s}function bV(e,t){U(2,arguments);var r=Y(e).getTime(),n=Y(t.start).getTime(),i=Y(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var Yf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,l){switch(c){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(c,l){switch(c){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(c,l){var u=c.match(/(P+)(p+)?/)||[],f=u[1],d=u[2];if(!d)return r(c,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(Yf,Yf.exports);var xV=Yf.exports;const wV=dn(xV),SV={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},CV={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class TV{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=SV,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>rV(n),this.toISO=n=>yV(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:GW(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(o=>{const a=o[0];if(a==="p"||a==="P"){const s=wV[a],c=this.locale||Xs;return s(o,c.formatLong,{})}return o}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>R1(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>Nf(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return xz(n,this.date(i));case"quarters":return Tz(n,this.date(i));case"months":return If(n,this.date(i));case"weeks":return Pz(n,this.date(i));case"days":return L1(n,this.date(i));case"hours":return _z(n,this.date(i));case"minutes":return $z(n,this.date(i));case"seconds":return F1(n,this.date(i));default:return qs(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:YB(n,i),this.isSameYear=(n,i)=>qB(n,i),this.isSameMonth=(n,i)=>KB(n,i),this.isSameDay=(n,i)=>GB(n,i),this.isSameHour=(n,i)=>XB(n,i),this.isAfter=(n,i)=>zf(n,i),this.isAfterYear=(n,i)=>zf(n,Lf(i)),this.isAfterDay=(n,i)=>zf(n,kf(i)),this.isBefore=(n,i)=>ta(n,i),this.isBeforeYear=(n,i)=>ta(n,Js(i)),this.isBeforeDay=(n,i)=>ta(n,Li(i)),this.isWithinRange=(n,[i,o])=>bV(n,{start:i,end:o}),this.startOfYear=n=>Js(n),this.startOfMonth=n=>ay(n),this.startOfWeek=n=>Dn(n,{locale:this.locale}),this.startOfDay=n=>Li(n),this.endOfYear=n=>Lf(n),this.endOfMonth=n=>Df(n),this.endOfWeek=n=>jf(n,{locale:this.locale}),this.endOfDay=n=>kf(n),this.addYears=(n,i)=>D1(n,i),this.addMonths=(n,i)=>Us(n,i),this.addWeeks=(n,i)=>yz(n,i),this.addDays=(n,i)=>Af(n,i),this.addHours=(n,i)=>vz(n,i),this.addMinutes=(n,i)=>gz(n,i),this.addSeconds=(n,i)=>hz(n,i),this.getYear=n=>UB(n),this.getMonth=n=>RB(n),this.getDate=n=>jB(n),this.getHours=n=>LB(n),this.getMinutes=n=>FB(n),this.getSeconds=n=>NB(n),this.getMilliseconds=n=>zB(n),this.setYear=(n,i)=>tV(n,i),this.setMonth=(n,i)=>QW(n,i),this.setDate=(n,i)=>KW(n,i),this.setHours=(n,i)=>XW(n,i),this.setMinutes=(n,i)=>ZW(n,i),this.setSeconds=(n,i)=>JW(n,i),this.setMilliseconds=(n,i)=>eV(n,i),this.getDaysInMonth=n=>X1(n),this.getNextMonth=n=>Us(n,1),this.getPreviousMonth=n=>Us(n,-1),this.getMonthArray=n=>{const o=[Js(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return Az({start:Dn(n,{locale:this.locale}),end:jf(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=Dn(ay(n),{locale:this.locale}),o=jf(Df(n),{locale:this.locale});let a=0,s=i;const c=[];for(;ta(s,o);){const l=Math.floor(a/7);c[l]=c[l]||[],c[l].push(s),s=Af(s,1),a+=1}return c},this.getWeekNumber=n=>HB(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=Js(n),a=Lf(i),s=[];let c=o;for(;ta(c,a);)s.push(c),c=D1(c,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=_e({},CV,r)}}var OV={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},EV=function(t,r,n){var i,o=OV[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const PV=EV;var MV={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},_V={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$V={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AV={date:Ni({formats:MV,defaultWidth:"full"}),time:Ni({formats:_V,defaultWidth:"full"}),dateTime:Ni({formats:$V,defaultWidth:"full"})};const kV=AV;var DV={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},IV=function(t,r,n,i){var o=DV[t];return typeof o=="function"?o(r):o};const jV=IV;var LV={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},FV={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},RV={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},NV={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},zV={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},BV={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},WV=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},VV={ordinalNumber:WV,era:Tr({values:LV,defaultWidth:"wide"}),quarter:Tr({values:FV,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Tr({values:RV,defaultWidth:"wide"}),day:Tr({values:NV,defaultWidth:"wide"}),dayPeriod:Tr({values:zV,defaultWidth:"wide",formattingValues:BV,defaultFormattingWidth:"wide"})};const HV=VV;var UV=/^(\d+)[ºªo]?/i,YV=/\d+/i,GV={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},qV={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},KV={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},XV={any:[/1/i,/2/i,/3/i,/4/i]},ZV={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},QV={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},JV={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},eH={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},tH={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},rH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},nH={ordinalNumber:K1({matchPattern:UV,parsePattern:YV,valueCallback:function(t){return parseInt(t,10)}}),era:Or({matchPatterns:GV,defaultMatchWidth:"wide",parsePatterns:qV,defaultParseWidth:"any"}),quarter:Or({matchPatterns:KV,defaultMatchWidth:"wide",parsePatterns:XV,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Or({matchPatterns:ZV,defaultMatchWidth:"wide",parsePatterns:QV,defaultParseWidth:"any"}),day:Or({matchPatterns:JV,defaultMatchWidth:"wide",parsePatterns:eH,defaultParseWidth:"any"}),dayPeriod:Or({matchPatterns:tH,defaultMatchWidth:"any",parsePatterns:rH,defaultParseWidth:"any"})},iH={code:"pt-BR",formatDistance:PV,formatLong:kV,formatRelative:jV,localize:HV,match:nH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const oH=iH;var ly={exports:{}},cy={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},uy={exports:{}},aH=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},sH=aH,lH=Array.prototype.concat,cH=Array.prototype.slice,fy=uy.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];sH(o)?r=lH.call(r,cH.call(o)):r.push(o)}return r};fy.wrap=function(e){return function(){return e(fy(arguments))}};var uH=uy.exports,na=cy,ia=uH,dy=Object.hasOwnProperty,hy=Object.create(null);for(var Gf in na)dy.call(na,Gf)&&(hy[na[Gf]]=Gf);var er=ly.exports={to:{},get:{}};er.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=er.get.hsl(e),n="hsl";break;case"hwb":r=er.get.hwb(e),n="hwb";break;default:r=er.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},er.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,c,l;if(s=e.match(r)){for(l=s[2],s=s[1],c=0;c<3;c++){var u=c*2;a[c]=parseInt(s.slice(u,u+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],c=0;c<3;c++)a[c]=parseInt(s[c]+s[c],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(c=0;c<3;c++)a[c]=parseInt(s[c+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(c=0;c<3;c++)a[c]=Math.round(parseFloat(s[c+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:dy.call(na,s[1])?(a=na[s[1]],a[3]=1,a):null:null;for(c=0;c<3;c++)a[c]=on(a[c],0,255);return a[3]=on(a[3],0,1),a},er.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=on(parseFloat(r[2]),0,100),a=on(parseFloat(r[3]),0,100),s=on(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},er.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=on(parseFloat(r[2]),0,100),a=on(parseFloat(r[3]),0,100),s=on(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},er.to.hex=function(){var e=ia(arguments);return"#"+tl(e[0])+tl(e[1])+tl(e[2])+(e[3]<1?tl(Math.round(e[3]*255)):"")},er.to.rgb=function(){var e=ia(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},er.to.rgb.percent=function(){var e=ia(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},er.to.hsl=function(){var e=ia(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},er.to.hwb=function(){var e=ia(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},er.to.keyword=function(e){return hy[e.slice(0,3)]};function on(e,t,r){return Math.min(Math.max(t,e),r)}function tl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var fH=ly.exports;const oa=cy,py={};for(const e of Object.keys(oa))py[oa[e]]=e;const de={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var gy=de;for(const e of Object.keys(de)){if(!("channels"in de[e]))throw new Error("missing channels property: "+e);if(!("labels"in de[e]))throw new Error("missing channel labels property: "+e);if(de[e].labels.length!==de[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=de[e];delete de[e].channels,delete de[e].labels,Object.defineProperty(de[e],"channels",{value:t}),Object.defineProperty(de[e],"labels",{value:r})}de.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s,c;o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+o)/2;return o===i?c=0:l<=.5?c=a/(o+i):c=a/(2-o-i),[s,c*100,l*100]},de.rgb.hsv=function(e){let t,r,n,i,o;const a=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(a,s,c),u=l-Math.min(a,s,c),f=function(d){return(l-d)/6/u+1/2};return u===0?(i=0,o=0):(o=u/l,t=f(a),r=f(s),n=f(c),a===l?i=n-r:s===l?i=1/3+t-n:c===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]},de.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=de.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]},de.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function dH(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}de.rgb.keyword=function(e){const t=py[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(oa)){const o=oa[i],a=dH(e,o);a<r&&(r=a,n=i)}return n},de.keyword.rgb=function(e){return oa[e]},de.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]},de.rgb.lab=function(e){const t=de.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(r-n),s=200*(n-i);return[o,a,s]},de.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,c=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,c[l]=a*255;return c},de.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]},de.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,a];case 1:return[s,n,a];case 2:return[a,n,c];case 3:return[a,s,n];case 4:return[c,a,n];case 5:return[n,a,s]}},de.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,a;a=(2-r)*n;const s=(2-r)*i;return o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]},de.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const a=Math.floor(6*t),s=1-n;o=6*t-a,a&1&&(o=1-o);const c=r+o*(s-r);let l,u,f;switch(a){default:case 6:case 0:l=s,u=c,f=r;break;case 1:l=c,u=s,f=r;break;case 2:l=r,u=s,f=c;break;case 3:l=r,u=c,f=s;break;case 4:l=c,u=r,f=s;break;case 5:l=s,u=r,f=c;break}return[l*255,u*255,f*255]},de.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]},de.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]},de.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,o=500*(t-r),a=200*(r-n);return[i,o,a]},de.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;const s=o**3,c=i**3,l=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},de.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(r*r+n*n);return[t,a,i]},de.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),a=r*Math.sin(i);return[t,o,a]},de.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?de.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(a+=60),a},de.hsv.ansi16=function(e){return de.rgb.ansi16(de.hsv.rgb(e),e[2])},de.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},de.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]},de.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},de.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},de.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]},de.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o;let s,c;return a<1?s=o/(1-a):s=0,a<=0?c=0:i===t?c=(r-n)/a%6:i===r?c=2+(n-t)/a:c=4+(t-r)/a,c/=6,c%=1,[c*360,a*100,s*100]},de.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},de.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},de.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]},de.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},de.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},de.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},de.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]},de.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},de.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},de.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},de.gray.hsl=function(e){return[0,0,e[0]]},de.gray.hsv=de.gray.hsl,de.gray.hwb=function(e){return[0,100,e[0]]},de.gray.cmyk=function(e){return[0,0,0,e[0]]},de.gray.lab=function(e){return[e[0],0,0]},de.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},de.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const rl=gy;function hH(){const e={},t=Object.keys(rl);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function pH(e){const t=hH(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(rl[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],c=t[s];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(s))}}return t}function gH(e,t){return function(r){return t(e(r))}}function mH(e,t){const r=[t[e].parent,e];let n=rl[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=gH(rl[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var vH=function(e){const t=pH(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){const a=n[o];t[a].parent!==null&&(r[a]=mH(a,t))}return r};const qf=gy,yH=vH,zi={},bH=Object.keys(qf);function xH(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function wH(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}bH.forEach(e=>{zi[e]={},Object.defineProperty(zi[e],"channels",{value:qf[e].channels}),Object.defineProperty(zi[e],"labels",{value:qf[e].labels});const t=yH(e);Object.keys(t).forEach(n=>{const i=t[n];zi[e][n]=wH(i),zi[e][n].raw=xH(i)})});var SH=zi;const Bi=fH,tr=SH,my=["keyword","gray","hex"],Kf={};for(const e of Object.keys(tr))Kf[[...tr[e].labels].sort().join("")]=e;const nl={};function At(e,t){if(!(this instanceof At))return new At(e,t);if(t&&t in my&&(t=null),t&&!(t in tr))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof At)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Bi.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=tr[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=tr[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=Xf(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in Kf))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Kf[o];const{labels:a}=tr[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=Xf(s)}if(nl[this.model])for(n=tr[this.model].channels,r=0;r<n;r++){const i=nl[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}At.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Bi.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Bi.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Bi.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=tr[this.model],{labels:r}=tr[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new At([...this.color.map(TH(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new At([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:bt("rgb",0,Mt(255)),green:bt("rgb",1,Mt(255)),blue:bt("rgb",2,Mt(255)),hue:bt(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:bt("hsl",1,Mt(100)),lightness:bt("hsl",2,Mt(100)),saturationv:bt("hsv",1,Mt(100)),value:bt("hsv",2,Mt(100)),chroma:bt("hcg",1,Mt(100)),gray:bt("hcg",2,Mt(100)),white:bt("hwb",1,Mt(100)),wblack:bt("hwb",2,Mt(100)),cyan:bt("cmyk",0,Mt(100)),magenta:bt("cmyk",1,Mt(100)),yellow:bt("cmyk",2,Mt(100)),black:bt("cmyk",3,Mt(100)),x:bt("xyz",0,Mt(95.047)),y:bt("xyz",1,Mt(100)),z:bt("xyz",2,Mt(108.833)),l:bt("lab",0,Mt(100)),a:bt("lab",1),b:bt("lab",2),keyword(e){return e!==void 0?new At(e):tr[this.model].keyword(this.color)},hex(e){return e!==void 0?new At(e):Bi.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new At(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Bi.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return At.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,c=1-s;return At.rgb(s*r.red()+c*n.red(),s*r.green()+c*n.green(),s*r.blue()+c*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(tr)){if(my.includes(e))continue;const{channels:t}=tr[e];At.prototype[e]=function(...r){return this.model===e?new At(this):r.length>0?new At(r,e):new At([...OH(tr[this.model][e].raw(this.color)),this.valpha],e)},At[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=Xf(r,t)),new At(n,e)}}function CH(e,t){return Number(e.toFixed(t))}function TH(e){return function(t){return CH(t,e)}}function bt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(nl[n]||(nl[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function Mt(e){return function(t){return Math.max(0,Math.min(e,t))}}function OH(e){return Array.isArray(e)?e:[e]}function Xf(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var EH=At;const PH=dn(EH),et={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},MH={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},_H={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},$H={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},AH={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},kH={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:et[800]},Wi={common:{black:"#000",white:"#fff"},primary:MH,secondary:_H,info:$H,success:AH,warning:kH,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:et,divider:V(et[500],.24),action:{hover:V(et[500],.08),selected:V(et[500],.16),disabled:V(et[500],.8),disabledBackground:V(et[500],.24),focus:V(et[500],.24),hoverOpacity:.08,disabledOpacity:.48}},an=e=>{const t={...Wi,mode:"light",text:{primary:et[800],secondary:et[600],disabled:et[500]},background:{paper:"#fff",default:et[100],neutral:et[200]},action:{...Wi.action,active:et[600]}},r={...Wi,mode:"dark",text:{primary:"#fff",secondary:et[500],disabled:et[600]},background:{paper:et[800],default:et[900],neutral:V(et[500],.16)},action:{...Wi.action,active:et[500]}};return e==="light"?t:r},DH=e=>({lighter:Uc(e,.815),light:Uc(e,.225),main:e,dark:Hc(e,.15),darker:Hc(e,.35)}),IH=e=>PH(e).luminosity()<=.55?"#fff":et[900],jH=e=>{const t=DH(e);return{...Wi,primary:{...t,contrastText:IH(t.main)},mode:"light",text:{primary:et[800],secondary:et[600],disabled:et[500]},background:{paper:"#fff",default:et[100],neutral:et[200]},action:{active:et[600],...Wi.action}}},vy=an("light"),LH=vy.grey[500],FH=vy.common.black;function yy(e,t){const r=V(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${V(t||an("light").primary.main,.24)}`,info:`0 8px 16px 0 ${V(an("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${V(an("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${V(an("light").success.main,.24)}`,warning:`0 8px 16px 0 ${V(an("light").warning.main,.24)}`,error:`0 8px 16px 0 ${V(an("light").error.main,.24)}`,card:`0 0 2px 0 ${V(e,.2)}, 0 12px 24px -4px ${V(e,.12)}`,dialog:`-40px 40px 80px -8px ${V(e,.24)}`,dropdown:`0 0 2px 0 ${V(e,.24)}, -20px 20px 40px -4px ${V(e,.24)}`}}const RH=(e,t)=>yy(e==="light"?LH:FH,t),NH=()=>y.jsx(_.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),zH=["primary","secondary","info","success","warning","error"];function BH(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.color==="inherit",a=n.variant==="circular",s=n.variant==="extended",c=n.variant==="outlined",l=n.variant==="outlinedExtended",u=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(a||s)&&{...(i||o)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(c||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||o)&&{border:`solid 1px ${V(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(u||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{backgroundColor:V(e.palette.grey[500],.08),"&:hover":{backgroundColor:V(e.palette.grey[500],.24)}}}},h=zH.map(v=>({...n.color===v&&{...(a||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(c||l)&&{color:e.palette[v].main,border:`solid 1px ${V(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:V(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(u||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:V(e.palette[v].main,.16),"&:hover":{backgroundColor:V(e.palette[v].main,.32)}}}})),g={"&.Mui-disabled":{...(c||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,g,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function WH(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function VH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function by(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function HH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function UH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function YH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function GH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function qH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function KH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function XH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function ZH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function QH(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function JH(e){return y.jsx(_.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function eU(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function tU(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function rU(e){return y.jsx(_.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const nU=["primary","secondary","info","success","warning","error"];function iU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.variant==="filled",a=n.variant==="outlined",s=n.variant==="soft",c={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:V(e.palette.grey[500],.48)},...a&&{border:`solid 1px ${V(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:V(e.palette.grey[500],.16),"&:hover":{backgroundColor:V(e.palette.grey[500],.32)}}}};return[...nU.map(u=>({...n.color===u&&{"& .MuiChip-avatar":{color:e.palette[u].lighter,backgroundColor:e.palette[u].dark},...o&&{"& .MuiChip-deleteIcon":{color:V(e.palette[u].contrastText,.56),"&:hover":{color:e.palette[u].contrastText}}},...s&&{color:e.palette[u][t?"dark":"light"],backgroundColor:V(e.palette[u].main,.16),"&:hover":{backgroundColor:V(e.palette[u].main,.32)},"& .MuiChip-deleteIcon":{color:V(e.palette[u][t?"dark":"light"],.48),"&:hover":{color:e.palette[u].dark}}}}})),c]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(VH,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function oU(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function aU(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function sU(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function lU(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function cU(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const uU=["info","success","warning","error"];function fU(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...uU.map(c=>({...n.severity===c&&{...i&&{color:e.palette[c][t?"darker":"lighter"],backgroundColor:e.palette[c][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[c][t?"main":"light"]}},...o&&{color:e.palette[c].contrastText,backgroundColor:e.palette[c].main},...a&&{color:e.palette[c][t?"dark":"light"],border:`solid 1px ${e.palette[c].main}`,"& .MuiAlert-icon":{color:e.palette[c].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(HH,{}),success:y.jsx(YH,{}),warning:y.jsx(UH,{}),error:y.jsx(GH,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function dU(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function hU(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function pU(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:V(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:V(e.palette.grey[500],.08),"&:hover":{backgroundColor:V(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:V(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:V(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function gU(e){return{MuiRadio:{defaultProps:{icon:y.jsx(ZH,{}),checkedIcon:y.jsx(QH,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function mU(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${V(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function vU(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function yU(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:V(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function bU(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(by,{}),icon:y.jsx(by,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:V(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function xU(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const wU=["primary","secondary","info","success","warning","error"];function SU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",o=n.variant==="contained",a=n.variant==="outlined",s=n.variant==="text",c=n.variant==="soft",l=n.size==="small",u=n.size==="large",f={...i&&{...o&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...a&&{borderColor:V(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...c&&{color:e.palette.text.primary,backgroundColor:V(e.palette.grey[500],.08),"&:hover":{backgroundColor:V(e.palette.grey[500],.24)}}}},d=wU.map(p=>({...n.color===p&&{...o&&{"&:hover":{boxShadow:e.customShadows[p]}},...c&&{color:e.palette[p][t?"dark":"light"],backgroundColor:V(e.palette[p].main,.16),"&:hover":{backgroundColor:V(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...c&&{backgroundColor:e.palette.action.disabledBackground}}},g={...l&&{height:30,fontSize:13,...c&&{padding:"4px 10px"}},...u&&{height:48,fontSize:15,...c&&{padding:"8px 22px"}}};return[...d,f,h,g]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function CU(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:V(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function TU(e){return{MuiSelect:{defaultProps:{IconComponent:JH}}}}function OU(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function EU(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function PU(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function MU(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function _U(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"none","& .clickable-row":{cursor:"pointer"},"& .no-clickable-row .clickable-row":{cursor:"initial"},"& .no-clickable-row .clickable-row:hover":{backgroundColor:"initial"},"&.simple":{"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:"#fff",borderBottom:"none",borderRadius:0},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:700,fontSize:11}},"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{padding:"0 16px"},"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,borderRadius:0},"& .MuiDataGrid-pinnedColumnHeaders":{backgroundColor:"inherit",boxShadow:"none"},"& .MuiDataGrid-pinnedColumns--right":{backgroundColor:"#fff",boxShadow:"-2px 0px 4px -2px rgba(0, 0, 0, 0.075)"},"& .MuiDataGrid-pinnedColumns--left":{backgroundColor:"#fff",boxShadow:"2px 0px 4px -2px rgba(0, 0, 0, 0.071)"},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.background.neutral},"& .MuiDataGrid-columnHeaderCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-cellCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-pinnedRows":{boxShadow:"none",fontWeight:"bold"},"& .hide-checkbox-select-all div":{display:"none !important"},"& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer":{border:"none"},"& .MuiDataGrid-columnSeparator":{color:e.palette.divider},"& .MuiDataGrid-columnSeparator:hover":{color:e.palette.primary.main},'& .MuiDataGrid-cell[data-field="__check__"]':{padding:0},'& .MuiDataGrid-columnHeader[data-field="__check__"]':{padding:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}function $U(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function AU(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:V(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const kU=["primary","secondary","info","success","warning","error"];function DU(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...kU.map(a=>({...r.color===a&&{backgroundColor:_.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function IU(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function jU(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(eU,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(tU,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(rU,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function LU(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(qH,{}),checkedIcon:y.jsx(KH,{}),indeterminateIcon:y.jsx(XH,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function FU(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function RU(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const NU=["primary","secondary","info","success","warning","error"];function zU(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",o=n.variant==="soft",a={"& .MuiPaginationItem-root":{...i&&{borderColor:V(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...NU.map(c=>({...n.color===c&&{...o&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[c][t?"dark":"light"],backgroundColor:V(e.palette[c].main,.16),"&:hover":{backgroundColor:V(e.palette[c].main,.32)}}}}}})),a]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function BU(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const WU=["primary","secondary","info","success","warning","error"];function VU(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",o=r.variant==="outlined",a=r.variant==="text",s=r.variant==="soft",c=r.orientation==="horizontal",l=r.orientation==="vertical",u={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{borderStyle:"solid",...n&&{borderColor:V(e.palette.grey[500],.32)},...c&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=WU.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{...r.color===h&&{...i&&{borderColor:V(e.palette[h].dark,.48)},...a&&{borderColor:V(e.palette[h].main,.48)},...s&&{borderColor:V(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,u,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function HU(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:V(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const UU=["primary","secondary","info","success","warning","error"];function YU(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=UU.map(s=>({...r.color===s&&{"&:hover":{borderColor:V(e.palette[s].main,.48),backgroundColor:V(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),a={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...o,i,a]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${V(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function GU(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function qU(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function KU(e){return Object.assign(BH(e),oU(e),iU(e),WH(e),aU(e),sU(),pU(e),gU(e),dU(),lU(e),cU(e),hU(),fU(e),CU(e),TU(),SU(e),bU(e),vU(e),yU(e),xU(e),mU(e),MU(e),EU(e),PU(e),OU(),LU(e),_U(e),$U(e),IU(e),jU(e),AU(e),DU(e),FU(e),RU(e),zU(e),VU(e),BU(e),HU(e),GU(e),YU(e),qU())}const xy=an("light"),XU=xy.grey[500],ZU=xy.common.black;function wy(e){const t=V(e,.2),r=V(e,.14),n=V(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const QU=e=>wy(e==="light"?XU:ZU);function Lt(e){return`${e/16}rem`}function Vi({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Lt(e)},"@media (min-width:900px)":{fontSize:Lt(t)},"@media (min-width:1200px)":{fontSize:Lt(r)}}}const JU={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Lt(40),...Vi({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Lt(32),...Vi({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Lt(24),...Vi({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Lt(20),...Vi({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Lt(18),...Vi({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Lt(17),...Vi({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Lt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Lt(14)},body1:{lineHeight:1.5,fontSize:Lt(16)},body2:{lineHeight:22/14,fontSize:Lt(14)},caption:{lineHeight:1.5,fontSize:Lt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Lt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Lt(14),textTransform:"capitalize"}},Sy=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=m.useMemo(()=>({palette:jH(t),typography:JU,shape:{borderRadius:8},direction:r,shadows:QU(n),customShadows:RH(n,t)}),[t,r,n]),o=G0(i);return o.components=KU(o),y.jsx(E0,{injectFirst:!0,children:y.jsxs(K0,{theme:o,children:[y.jsx(_.CssBaseline,{}),y.jsx(NH,{}),e]})})},uX="",fX="",eY=({themeColor:e,children:t})=>y.jsx(Qi.LocalizationProvider,{dateAdapter:TV,adapterLocale:oH,children:y.jsx(Sy,{color:e,children:t})}),Hi=e=>e&&e.charAt(0).toUpperCase(),tY=e=>["A","N","H","L","Q"].includes(Hi(e))?"primary":["F","G","T","I","J"].includes(Hi(e))?"info":["K","D","Y","B","O"].includes(Hi(e))?"success":["P","E","R","S","U"].includes(Hi(e))?"warning":["V","W","X","M","Z"].includes(Hi(e))?"error":"default",Cy=m.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=ii(),c=Hi(t),l=tY(t),u=e||l,f=u==="default"?y.jsxs(_.Avatar,{ref:a,sx:i,...o,children:[t&&c,n]}):y.jsxs(_.Avatar,{ref:a,sx:{color:(d=s.palette[u])==null?void 0:d.contrastText,backgroundColor:(h=s.palette[u])==null?void 0:h.main,fontWeight:s.typography.fontWeightMedium,...i},...o,children:[t&&c,n]});return r?y.jsx(_.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});Cy.displayName="CustomAvatar";const sn={tiny:24,small:32,medium:40,large:56},Ty=m.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...o},a)=>{const s=e==="tiny",c=e==="small",l=e==="medium",u=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return y.jsx(_.AvatarGroup,{ref:a,max:t?3:r,spacing:(s||c)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...u&&{width:sn.large,height:sn.large,"&:first-of-type":{fontSize:16}},...l&&{width:sn.medium,height:sn.medium},...c&&{width:sn.small,height:sn.small},...s&&{width:sn.tiny,height:sn.tiny}},...t&&{...f},...i},...o,children:n})});Ty.displayName="CustomAvatarGroup";const Oy=_.styled(_.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),rY=()=>{const e=Rn.useGridApiContext(),{rowHeight:t,paginationModel:r}=Rn.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,i=Rn.gridColumnsTotalWidthSelector(e),o=Rn.gridColumnPositionsSelector(e),a=m.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),c=m.useMemo(()=>{const l=[];for(let u=0;u<n;u+=1){for(const f of s)l.push(y.jsx(Oy,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(_.Skeleton,{width:"100%"})},`column-${u}-${f.field}`));l.push(y.jsx(Oy,{},`fill-${u}`))}return l},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:c})},nY=({columns:e,...t})=>{const r=[{...Rn.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=m.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return y.jsx(Rn.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:rY},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:i=>`Agrupar por ${i}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:i=>`Parar de agrupar por ${i}`,unpin:"Desafixar",footerRowSelected:i=>`${i} ${i===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:i=>`${i.from}-${i.to} de ${i.count}`}},...t})},iY=({children:e,waitBeforeShow:t=500})=>{const[r,n]=m.useState(!1);return m.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var Ey={exports:{}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,g=d||h||Function("return this")(),p=Object.prototype.toString,v=Math.max,x=Math.min,b=function(){return g.Date.now()};function S(w){var T=typeof w;return!!w&&(T=="object"||T=="function")}function O(w){if(typeof w=="number")return w;if(function(P){return typeof P=="symbol"||function(k){return!!k&&typeof k=="object"}(P)&&p.call(P)=="[object Symbol]"}(w))return NaN;if(S(w)){var T=typeof w.valueOf=="function"?w.valueOf():w;w=S(T)?T+"":T}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var E=l.test(w);return E||u.test(w)?f(w.slice(2),E?2:8):c.test(w)?NaN:+w}i.exports=function(w,T,E){var P,k,F,re,pe,se,q=0,G=!1,me=!1,Ce=!0;if(typeof w!="function")throw new TypeError("Expected a function");function ke(ee){var H=P,fe=k;return P=k=void 0,q=ee,re=w.apply(fe,H)}function Oe(ee){var H=ee-se;return se===void 0||H>=T||H<0||me&&ee-q>=F}function D(){var ee=b();if(Oe(ee))return L(ee);pe=setTimeout(D,function(H){var fe=T-(H-se);return me?x(fe,F-(H-q)):fe}(ee))}function L(ee){return pe=void 0,Ce&&P?ke(ee):(P=k=void 0,re)}function X(){var ee=b(),H=Oe(ee);if(P=arguments,k=this,se=ee,H){if(pe===void 0)return function(fe){return q=fe,pe=setTimeout(D,T),G?ke(fe):re}(se);if(me)return pe=setTimeout(D,T),ke(se)}return pe===void 0&&(pe=setTimeout(D,T)),re}return T=O(T)||0,S(E)&&(G=!!E.leading,F=(me="maxWait"in E)?v(O(E.maxWait)||0,T):F,Ce="trailing"in E?!!E.trailing:Ce),X.cancel=function(){pe!==void 0&&clearTimeout(pe),q=0,P=se=k=pe=void 0},X.flush=function(){return pe===void 0?re:L(b())},X}},96:(i,o,a)=>{var s="Expected a function",c=NaN,l="[object Symbol]",u=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,g=parseInt,p=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,x=p||v||Function("return this")(),b=Object.prototype.toString,S=Math.max,O=Math.min,w=function(){return x.Date.now()};function T(P){var k=typeof P;return!!P&&(k=="object"||k=="function")}function E(P){if(typeof P=="number")return P;if(function(re){return typeof re=="symbol"||function(pe){return!!pe&&typeof pe=="object"}(re)&&b.call(re)==l}(P))return c;if(T(P)){var k=typeof P.valueOf=="function"?P.valueOf():P;P=T(k)?k+"":k}if(typeof P!="string")return P===0?P:+P;P=P.replace(u,"");var F=d.test(P);return F||h.test(P)?g(P.slice(2),F?2:8):f.test(P)?c:+P}i.exports=function(P,k,F){var re=!0,pe=!0;if(typeof P!="function")throw new TypeError(s);return T(F)&&(re="leading"in F?!!F.leading:re,pe="trailing"in F?!!F.trailing:pe),function(se,q,G){var me,Ce,ke,Oe,D,L,X=0,ee=!1,H=!1,fe=!0;if(typeof se!="function")throw new TypeError(s);function ce(ye){var R=me,Fe=Ce;return me=Ce=void 0,X=ye,Oe=se.apply(Fe,R)}function ge(ye){var R=ye-L;return L===void 0||R>=q||R<0||H&&ye-X>=ke}function Z(){var ye=w();if(ge(ye))return Q(ye);D=setTimeout(Z,function(R){var Fe=q-(R-L);return H?O(Fe,ke-(R-X)):Fe}(ye))}function Q(ye){return D=void 0,fe&&me?ce(ye):(me=Ce=void 0,Oe)}function ne(){var ye=w(),R=ge(ye);if(me=arguments,Ce=this,L=ye,R){if(D===void 0)return function(Fe){return X=Fe,D=setTimeout(Z,q),ee?ce(Fe):Oe}(L);if(H)return D=setTimeout(Z,q),ce(L)}return D===void 0&&(D=setTimeout(Z,q)),Oe}return q=E(q)||0,T(G)&&(ee=!!G.leading,ke=(H="maxWait"in G)?S(E(G.maxWait)||0,q):ke,fe="trailing"in G?!!G.trailing:fe),ne.cancel=function(){D!==void 0&&clearTimeout(D),X=0,me=L=Ce=D=void 0},ne.flush=function(){return D===void 0?Oe:Q(w())},ne}(P,k,{leading:re,maxWait:k,trailing:pe})}},703:(i,o,a)=>{var s=a(414);function c(){}function l(){}l.resetWarningCache=c,i.exports=function(){function u(h,g,p,v,x,b){if(b!==s){var S=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 S.name="Invariant Violation",S}}function f(){return u}u.isRequired=u;var d={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:f,element:u,elementType:u,instanceOf:f,node:u,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:c};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var a in o)r.o(o,a)&&!r.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>le,LazyLoadImage:()=>st,trackWindowScroll:()=>L});const i=m;var o=r.n(i),a=r(697);const s=vd;var c=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function u(I){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},u(I)}function f(I,M){var N=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(we){return Object.getOwnPropertyDescriptor(I,we).enumerable})),N.push.apply(N,z)}return N}function d(I,M,N){return(M=g(M))in I?Object.defineProperty(I,M,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[M]=N,I}function h(I,M){for(var N=0;N<M.length;N++){var z=M[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,g(z.key),z)}}function g(I){var M=function(N,z){if(u(N)!=="object"||N===null)return N;var we=N[Symbol.toPrimitive];if(we!==void 0){var Ee=we.call(N,"string");if(u(Ee)!=="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(I);return u(M)==="symbol"?M:String(M)}function p(I,M){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,z){return N.__proto__=z,N},p(I,M)}function v(I){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},v(I)}var x=function(I){I.forEach(function(M){M.isIntersecting&&M.target.onVisible()})},b={},S=function(I){(function($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(j&&j.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),j&&p($,j)})(Re,I);var M,N,z,we,Ee=(z=Re,we=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var $,j=v(z);if(we){var ue=v(this).constructor;$=Reflect.construct(j,arguments,ue)}else $=j.apply(this,arguments);return function(oe,ie){if(ie&&(u(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Pe){if(Pe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}(oe)}(this,$)});function Re($){var j;if(function(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Re),(j=Ee.call(this,$)).supportsObserver=!$.scrollPosition&&$.useIntersectionObserver&&l(),j.supportsObserver){var ue=$.threshold;j.observer=function(oe){return b[oe]=b[oe]||new IntersectionObserver(x,{rootMargin:oe+"px"}),b[oe]}(ue)}return j}return M=Re,N=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,j=this.placeholder.getBoundingClientRect(),ue=c().findDOMNode(this.placeholder).style,oe=parseInt(ue.getPropertyValue("margin-left"),10)||0,ie=parseInt(ue.getPropertyValue("margin-top"),10)||0;return{bottom:$.y+j.bottom+ie,left:$.x+j.left+oe,right:$.x+j.right+oe,top:$.y+j.top+ie}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var $=this.props,j=$.scrollPosition,ue=$.threshold,oe=this.getPlaceholderBoundingBox(j),ie=j.y+window.innerHeight,Pe=j.x,it=j.x+window.innerWidth,Qe=j.y;return Qe-ue<=oe.bottom&&ie+ue>=oe.top&&Pe-ue<=oe.right&&it+ue>=oe.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var $=this,j=this.props,ue=j.className,oe=j.height,ie=j.placeholder,Pe=j.style,it=j.width;if(ie&&typeof ie.type!="function")return o().cloneElement(ie,{ref:function(Je){return $.placeholder=Je}});var Qe=function(Je){for(var St=1;St<arguments.length;St++){var pt=arguments[St]!=null?arguments[St]:{};St%2?f(Object(pt),!0).forEach(function(kt){d(Je,kt,pt[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Je,Object.getOwnPropertyDescriptors(pt)):f(Object(pt)).forEach(function(kt){Object.defineProperty(Je,kt,Object.getOwnPropertyDescriptor(pt,kt))})}return Je}({display:"inline-block"},Pe);return it!==void 0&&(Qe.width=it),oe!==void 0&&(Qe.height=oe),o().createElement("span",{className:ue,ref:function(Je){return $.placeholder=Je},style:Qe},ie)}}],N&&h(M.prototype,N),Object.defineProperty(M,"prototype",{writable:!1}),Re}(o().Component);S.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},S.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const O=S;var w=r(296),T=r.n(w),E=r(96),P=r.n(E),k=function(I){var M=getComputedStyle(I,null);return M.getPropertyValue("overflow")+M.getPropertyValue("overflow-y")+M.getPropertyValue("overflow-x")};const F=function(I){if(!(I instanceof HTMLElement))return window;for(var M=I;M&&M instanceof HTMLElement;){if(/(scroll|auto)/.test(k(M)))return M;M=M.parentNode}return window};function re(I){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},re(I)}var pe=["delayMethod","delayTime"];function se(){return se=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var N=arguments[M];for(var z in N)Object.prototype.hasOwnProperty.call(N,z)&&(I[z]=N[z])}return I},se.apply(this,arguments)}function q(I,M){for(var N=0;N<M.length;N++){var z=M[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(we=function(Ee,Re){if(re(Ee)!=="object"||Ee===null)return Ee;var $=Ee[Symbol.toPrimitive];if($!==void 0){var j=$.call(Ee,"string");if(re(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ee)}(z.key),re(we)==="symbol"?we:String(we)),z)}var we}function G(I,M){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,z){return N.__proto__=z,N},G(I,M)}function me(I,M){if(M&&(re(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(I)}function Ce(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function ke(I){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},ke(I)}var Oe=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},D=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const L=function(I){var M=function(N){(function(ue,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ue.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ue,writable:!0,configurable:!0}}),Object.defineProperty(ue,"prototype",{writable:!1}),oe&&G(ue,oe)})(j,N);var z,we,Ee,Re,$=(Ee=j,Re=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ue,oe=ke(Ee);if(Re){var ie=ke(this).constructor;ue=Reflect.construct(oe,arguments,ie)}else ue=oe.apply(this,arguments);return me(this,ue)});function j(ue){var oe;if(function(Pe,it){if(!(Pe instanceof it))throw new TypeError("Cannot call a class as a function")}(this,j),(oe=$.call(this,ue)).useIntersectionObserver=ue.useIntersectionObserver&&l(),oe.useIntersectionObserver)return me(oe);var ie=oe.onChangeScroll.bind(Ce(oe));return ue.delayMethod==="debounce"?oe.delayedScroll=T()(ie,ue.delayTime):ue.delayMethod==="throttle"&&(oe.delayedScroll=P()(ie,ue.delayTime)),oe.state={scrollPosition:{x:Oe(),y:D()}},oe.baseComponentRef=o().createRef(),oe}return z=j,(we=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||F(c().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=F(c().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Oe(),y:D()}})}},{key:"render",value:function(){var ue=this.props,oe=(ue.delayMethod,ue.delayTime,function(Pe,it){if(Pe==null)return{};var Qe,Je,St=function(kt,Vr){if(kt==null)return{};var Hr,Fn,ua={},Sl=Object.keys(kt);for(Fn=0;Fn<Sl.length;Fn++)Hr=Sl[Fn],Vr.indexOf(Hr)>=0||(ua[Hr]=kt[Hr]);return ua}(Pe,it);if(Object.getOwnPropertySymbols){var pt=Object.getOwnPropertySymbols(Pe);for(Je=0;Je<pt.length;Je++)Qe=pt[Je],it.indexOf(Qe)>=0||Object.prototype.propertyIsEnumerable.call(Pe,Qe)&&(St[Qe]=Pe[Qe])}return St}(ue,pe)),ie=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(I,se({forwardRef:this.baseComponentRef,scrollPosition:ie},oe))}}])&&q(z.prototype,we),Object.defineProperty(z,"prototype",{writable:!1}),j}(o().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function X(I){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},X(I)}function ee(I,M){for(var N=0;N<M.length;N++){var z=M[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(we=function(Ee,Re){if(X(Ee)!=="object"||Ee===null)return Ee;var $=Ee[Symbol.toPrimitive];if($!==void 0){var j=$.call(Ee,"string");if(X(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ee)}(z.key),X(we)==="symbol"?we:String(we)),z)}var we}function H(I,M){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,z){return N.__proto__=z,N},H(I,M)}function fe(I){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},fe(I)}var ce=function(I){(function($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(j&&j.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),j&&H($,j)})(Re,I);var M,N,z,we,Ee=(z=Re,we=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var $,j=fe(z);if(we){var ue=fe(this).constructor;$=Reflect.construct(j,arguments,ue)}else $=j.apply(this,arguments);return function(oe,ie){if(ie&&(X(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Pe){if(Pe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}(oe)}(this,$)});function Re($){return function(j,ue){if(!(j instanceof ue))throw new TypeError("Cannot call a class as a function")}(this,Re),Ee.call(this,$)}return M=Re,(N=[{key:"render",value:function(){return o().createElement(O,this.props)}}])&&ee(M.prototype,N),Object.defineProperty(M,"prototype",{writable:!1}),Re}(o().Component);const ge=L(ce);function Z(I){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Z(I)}function Q(I,M){for(var N=0;N<M.length;N++){var z=M[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(we=function(Ee,Re){if(Z(Ee)!=="object"||Ee===null)return Ee;var $=Ee[Symbol.toPrimitive];if($!==void 0){var j=$.call(Ee,"string");if(Z(j)!=="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ee)}(z.key),Z(we)==="symbol"?we:String(we)),z)}var we}function ne(I,M){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,z){return N.__proto__=z,N},ne(I,M)}function ye(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function R(I){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},R(I)}var Fe=function(I){(function($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(j&&j.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),j&&ne($,j)})(Re,I);var M,N,z,we,Ee=(z=Re,we=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var $,j=R(z);if(we){var ue=R(this).constructor;$=Reflect.construct(j,arguments,ue)}else $=j.apply(this,arguments);return function(oe,ie){if(ie&&(Z(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(oe)}(this,$)});function Re($){var j;(function(it,Qe){if(!(it instanceof Qe))throw new TypeError("Cannot call a class as a function")})(this,Re),j=Ee.call(this,$);var ue=$.afterLoad,oe=$.beforeLoad,ie=$.scrollPosition,Pe=$.visibleByDefault;return j.state={visible:Pe},Pe&&(oe(),ue()),j.onVisible=j.onVisible.bind(ye(j)),j.isScrollTracked=!!(ie&&Number.isFinite(ie.x)&&ie.x>=0&&Number.isFinite(ie.y)&&ie.y>=0),j}return M=Re,(N=[{key:"componentDidUpdate",value:function($,j){j.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var $=this.props,j=$.className,ue=$.delayMethod,oe=$.delayTime,ie=$.height,Pe=$.placeholder,it=$.scrollPosition,Qe=$.style,Je=$.threshold,St=$.useIntersectionObserver,pt=$.width;return this.isScrollTracked||St&&l()?o().createElement(O,{className:j,height:ie,onVisible:this.onVisible,placeholder:Pe,scrollPosition:it,style:Qe,threshold:Je,useIntersectionObserver:St,width:pt}):o().createElement(ge,{className:j,delayMethod:ue,delayTime:oe,height:ie,onVisible:this.onVisible,placeholder:Pe,style:Qe,threshold:Je,width:pt})}}])&&Q(M.prototype,N),Object.defineProperty(M,"prototype",{writable:!1}),Re}(o().Component);Fe.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Fe.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const le=Fe;function ut(I){return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},ut(I)}var qt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Nt(I,M){var N=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(we){return Object.getOwnPropertyDescriptor(I,we).enumerable})),N.push.apply(N,z)}return N}function Wr(I){for(var M=1;M<arguments.length;M++){var N=arguments[M]!=null?arguments[M]:{};M%2?Nt(Object(N),!0).forEach(function(z){gr(I,z,N[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(N)):Nt(Object(N)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(N,z))})}return I}function gr(I,M,N){return(M=fn(M))in I?Object.defineProperty(I,M,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[M]=N,I}function mr(){return mr=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var N=arguments[M];for(var z in N)Object.prototype.hasOwnProperty.call(N,z)&&(I[z]=N[z])}return I},mr.apply(this,arguments)}function ca(I,M){for(var N=0;N<M.length;N++){var z=M[N];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,fn(z.key),z)}}function fn(I){var M=function(N,z){if(ut(N)!=="object"||N===null)return N;var we=N[Symbol.toPrimitive];if(we!==void 0){var Ee=we.call(N,"string");if(ut(Ee)!=="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(I);return ut(M)==="symbol"?M:String(M)}function Ln(I,M){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,z){return N.__proto__=z,N},Ln(I,M)}function K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},K(I)}var ve=function(I){(function($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(j&&j.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),j&&Ln($,j)})(Re,I);var M,N,z,we,Ee=(z=Re,we=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var $,j=K(z);if(we){var ue=K(this).constructor;$=Reflect.construct(j,arguments,ue)}else $=j.apply(this,arguments);return function(oe,ie){if(ie&&(ut(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Pe){if(Pe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}(oe)}(this,$)});function Re($){var j;return function(ue,oe){if(!(ue instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,Re),(j=Ee.call(this,$)).state={loaded:!1},j}return M=Re,(N=[{key:"onImageLoad",value:function(){var $=this;return this.state.loaded?null:function(j){$.props.onLoad(j),$.props.afterLoad(),$.setState({loaded:!0})}}},{key:"getImg",value:function(){var $=this.props,j=($.afterLoad,$.beforeLoad,$.delayMethod,$.delayTime,$.effect,$.placeholder,$.placeholderSrc,$.scrollPosition,$.threshold,$.useIntersectionObserver,$.visibleByDefault,$.wrapperClassName,$.wrapperProps,function(ue,oe){if(ue==null)return{};var ie,Pe,it=function(Je,St){if(Je==null)return{};var pt,kt,Vr={},Hr=Object.keys(Je);for(kt=0;kt<Hr.length;kt++)pt=Hr[kt],St.indexOf(pt)>=0||(Vr[pt]=Je[pt]);return Vr}(ue,oe);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(ue);for(Pe=0;Pe<Qe.length;Pe++)ie=Qe[Pe],oe.indexOf(ie)>=0||Object.prototype.propertyIsEnumerable.call(ue,ie)&&(it[ie]=ue[ie])}return it}($,qt));return o().createElement("img",mr({},j,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var $=this.props,j=$.beforeLoad,ue=$.className,oe=$.delayMethod,ie=$.delayTime,Pe=$.height,it=$.placeholder,Qe=$.scrollPosition,Je=$.style,St=$.threshold,pt=$.useIntersectionObserver,kt=$.visibleByDefault,Vr=$.width;return o().createElement(le,{beforeLoad:j,className:ue,delayMethod:oe,delayTime:ie,height:Pe,placeholder:it,scrollPosition:Qe,style:Je,threshold:St,useIntersectionObserver:pt,visibleByDefault:kt,width:Vr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function($){var j=this.props,ue=j.effect,oe=j.height,ie=j.placeholderSrc,Pe=j.width,it=j.wrapperClassName,Qe=j.wrapperProps,Je=this.state.loaded,St=Je?" lazy-load-image-loaded":"",pt=Je||!ie?{}:{backgroundImage:"url(".concat(ie,")"),backgroundSize:"100% 100%"};return o().createElement("span",mr({className:it+" lazy-load-image-background "+ue+St,style:Wr(Wr({},pt),{},{color:"transparent",display:"inline-block",height:oe,width:Pe})},Qe),$)}},{key:"render",value:function(){var $=this.props,j=$.effect,ue=$.placeholderSrc,oe=$.visibleByDefault,ie=$.wrapperClassName,Pe=$.wrapperProps,it=this.getLazyLoadImage();return(j||ue)&&!oe||ie||Pe?this.getWrappedLazyLoadImage(it):it}}])&&ca(M.prototype,N),Object.defineProperty(M,"prototype",{writable:!1}),Re}(o().Component);ve.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ve.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const st=ve})(),Ey.exports=n})();var oY=Ey.exports;const aY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",sY="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function lY(e="1/1"){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}const il=m.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=y.jsx(_.Box,{component:oY.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?aY:sY,sx:{width:1,height:1,objectFit:"cover"},...i});return e?y.jsx(_.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:lY(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):y.jsx(_.Box,{ref:o,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:a})});il.displayName="Image";/*! *****************************************************************************
|
|
131
|
+
`),g.createElement("div",{style:c.white,className:"saturation-white"},g.createElement("div",{style:c.black,className:"saturation-black"}),g.createElement("div",{style:c.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:c.circle}))))}}]),t}(g.PureComponent||g.Component);function Bj(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Nj=pv(Object.keys,Object);const zj=Nj;var Vj=Object.prototype,Wj=Vj.hasOwnProperty;function Hj(e){if(!Qc(e))return zj(e);var t=[];for(var r in Object(e))Wj.call(e,r)&&r!="constructor"&&t.push(r);return t}function af(e){return ki(e)?Tv(e):Hj(e)}function Uj(e,t){return e&&lv(e,t,af)}function Yj(e,t){return function(r,n){if(r==null)return r;if(!ki(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var Gj=Yj(Uj);const Dv=Gj;function qj(e){return typeof e=="function"?e:zs}function Kj(e,t){var r=tr(e)?Bj:Dv;return r(e,qj(t))}function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}var Xj=/^\s+/,Zj=/\s+$/;function he(e,t){if(e=e||"",t=t||{},e instanceof he)return e;if(!(this instanceof he))return new he(e,t);var r=Qj(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}he.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,o,a,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=Rv(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Iv(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Iv(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=$v(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=$v(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Fv(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return rL(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(dt(this._r,255)*100)+"%",g:Math.round(dt(this._g,255)*100)+"%",b:Math.round(dt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(dt(this._r,255)*100)+"%, "+Math.round(dt(this._g,255)*100)+"%, "+Math.round(dt(this._b,255)*100)+"%)":"rgba("+Math.round(dt(this._r,255)*100)+"%, "+Math.round(dt(this._g,255)*100)+"%, "+Math.round(dt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pL[Fv(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+jv(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=he(t);n="#"+jv(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return he(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(aL,arguments)},brighten:function(){return this._applyModification(sL,arguments)},darken:function(){return this._applyModification(lL,arguments)},desaturate:function(){return this._applyModification(nL,arguments)},saturate:function(){return this._applyModification(iL,arguments)},greyscale:function(){return this._applyModification(oL,arguments)},spin:function(){return this._applyModification(uL,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(dL,arguments)},complement:function(){return this._applyCombination(cL,arguments)},monochromatic:function(){return this._applyCombination(hL,arguments)},splitcomplement:function(){return this._applyCombination(fL,arguments)},triad:function(){return this._applyCombination(Lv,[3])},tetrad:function(){return this._applyCombination(Lv,[4])}},he.fromRatio=function(e,t){if(Hs(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=ra(e[n]));e=r}return he(e,t)};function Qj(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=yL(e)),Hs(e)=="object"&&(Yr(e.r)&&Yr(e.g)&&Yr(e.b)?(t=Jj(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Yr(e.h)&&Yr(e.s)&&Yr(e.v)?(n=ra(e.s),i=ra(e.v),t=tL(e.h,n,i),a=!0,s="hsv"):Yr(e.h)&&Yr(e.s)&&Yr(e.l)&&(n=ra(e.s),o=ra(e.l),t=eL(e.h,n,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Rv(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Jj(e,t,r){return{r:dt(e,255)*255,g:dt(t,255)*255,b:dt(r,255)*255}}function $v(e,t,r){e=dt(e,255),t=dt(t,255),r=dt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=(n+i)/2;if(n==i)o=a=0;else{var u=n-i;switch(a=s>.5?u/(2-n-i):u/(n+i),n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function eL(e,t,r){var n,i,o;e=dt(e,360),t=dt(t,100),r=dt(r,100);function a(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(t===0)n=i=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Iv(e,t,r){e=dt(e,255),t=dt(t,255),r=dt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=n,u=n-i;if(a=n===0?0:u/n,n==i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function tL(e,t,r){e=dt(e,360)*6,t=dt(t,100),r=dt(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,l=[r,a,o,o,s,r][u],c=[s,r,r,a,o,o][u],f=[o,o,s,r,r,a][u];return{r:l*255,g:c*255,b:f*255}}function Fv(e,t,r,n){var i=[yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function rL(e,t,r,n,i){var o=[yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16)),yr(Bv(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function jv(e,t,r,n){var i=[yr(Bv(n)),yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16))];return i.join("")}he.equals=function(e,t){return!e||!t?!1:he(e).toRgbString()==he(t).toRgbString()},he.random=function(){return he.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s-=t/100,r.s=Us(r.s),he(r)}function iL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s+=t/100,r.s=Us(r.s),he(r)}function oL(e){return he(e).desaturate(100)}function aL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l+=t/100,r.l=Us(r.l),he(r)}function sL(e,t){t=t===0?0:t||10;var r=he(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),he(r)}function lL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l-=t/100,r.l=Us(r.l),he(r)}function uL(e,t){var r=he(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,he(r)}function cL(e){var t=he(e).toHsl();return t.h=(t.h+180)%360,he(t)}function Lv(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=he(e).toHsl(),n=[he(e)],i=360/t,o=1;o<t;o++)n.push(he({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function fL(e){var t=he(e).toHsl(),r=t.h;return[he(e),he({h:(r+72)%360,s:t.s,l:t.l}),he({h:(r+216)%360,s:t.s,l:t.l})]}function dL(e,t,r){t=t||6,r=r||30;var n=he(e).toHsl(),i=360/r,o=[he(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(he(n));return o}function hL(e,t){t=t||6;for(var r=he(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(he({h:n,s:i,v:o})),o=(o+s)%1;return a}he.mix=function(e,t,r){r=r===0?0:r||50;var n=he(e).toRgb(),i=he(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return he(a)},he.readability=function(e,t){var r=he(e),n=he(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},he.isReadable=function(e,t,r){var n=he.readability(e,t),i,o;switch(o=!1,i=bL(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},he.mostReadable=function(e,t,r){var n=null,i=0,o,a,s,u;r=r||{},a=r.includeFallbackColors,s=r.level,u=r.size;for(var l=0;l<t.length;l++)o=he.readability(e,t[l]),o>i&&(i=o,n=he(t[l]));return he.isReadable(e,n,{level:s,size:u})||!a?n:(r.includeFallbackColors=!1,he.mostReadable(e,["#fff","#000"],r))};var sf=he.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pL=he.hexNames=gL(sf);function gL(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Rv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dt(e,t){mL(e)&&(e="100%");var r=vL(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Us(e){return Math.min(1,Math.max(0,e))}function rr(e){return parseInt(e,16)}function mL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function vL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function yr(e){return e.length==1?"0"+e:""+e}function ra(e){return e<=1&&(e=e*100+"%"),e}function Bv(e){return Math.round(parseFloat(e)*255).toString(16)}function Nv(e){return rr(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Yr(e){return!!br.CSS_UNIT.exec(e)}function yL(e){e=e.replace(Xj,"").replace(Zj,"").toLowerCase();var t=!1;if(sf[e])e=sf[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=br.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=br.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=br.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=br.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=br.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=br.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=br.hex8.exec(e))?{r:rr(r[1]),g:rr(r[2]),b:rr(r[3]),a:Nv(r[4]),format:t?"name":"hex8"}:(r=br.hex6.exec(e))?{r:rr(r[1]),g:rr(r[2]),b:rr(r[3]),format:t?"name":"hex"}:(r=br.hex4.exec(e))?{r:rr(r[1]+""+r[1]),g:rr(r[2]+""+r[2]),b:rr(r[3]+""+r[3]),a:Nv(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=br.hex3.exec(e))?{r:rr(r[1]+""+r[1]),g:rr(r[2]+""+r[2]),b:rr(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function bL(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var zv=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return Kj(r,function(o){if(t[o]&&(n+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),n===i?t:!1},na=function(t,r){var n=t.hex?he(t.hex):he(t),i=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,o.h=r||0);var u=s==="000000"&&a.a===0;return{hsl:i,hex:u?"transparent":"#"+s,rgb:a,hsv:o,oldHue:t.h||r||i.h,source:t.source}},cn=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&he(t).isValid()},lf=function(t){if(!t)return"#fff";var r=na(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},uf=function(t,r){var n=t.replace("°","");return he(r+" ("+n+")")._ok},ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function wL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function SL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gt=function(t){var r=function(n){SL(i,n);function i(o){wL(this,i);var a=CL(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.handleChange=function(s,u){var l=zv(s);if(l){var c=na(s,s.h||a.state.oldHue);a.setState(c),a.props.onChangeComplete&&a.debounce(a.props.onChangeComplete,c,u),a.props.onChange&&a.props.onChange(c,u)}},a.handleSwatchHover=function(s,u){var l=zv(s);if(l){var c=na(s,s.h||a.state.oldHue);a.props.onSwatchHover&&a.props.onSwatchHover(c,u)}},a.state=ia({},na(o.color,0)),a.debounce=ta(function(s,u,l){s(u,l)},100),a}return xL(i,[{key:"render",value:function(){var a={};return this.props.onSwatchHover&&(a.onSwatchHover=this.handleSwatchHover),g.createElement(t,ia({},this.props,this.state,{onChange:this.handleChange},a))}}],[{key:"getDerivedStateFromProps",value:function(a,s){return ia({},na(a.color,s.oldHue))}}]),i}(g.PureComponent||g.Component);return r.propTypes=ia({},t.propTypes),r.defaultProps=ia({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},EL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var kL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){OL(i,n);function i(){var o,a,s,u;_L(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Vv(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},a),Vv(s,u)}return TL(i,[{key:"render",value:function(){return g.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},g.createElement(t,EL({},this.props,this.state)))}}]),i}(g.Component)},Wv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ML=13,PL=function(t){var r=t.color,n=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,u=s===void 0?r:s,l=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",m=Se({default:{swatch:Wv({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),p=function(E){return o(r,E)},v=function(E){return E.keyCode===ML&&o(r,E)},x=function(E){return a(r,E)},b={};return a&&(b.onMouseOver=x),g.createElement("div",Wv({style:m.swatch,onClick:p,title:u,tabIndex:0,onKeyDown:v},b),l,h&&g.createElement(_i,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Fn=kL(PL);var AL=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},DL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hv=function(t){var r=t.rgb,n=t.hsl,i=t.width,o=t.height,a=t.onChange,s=t.direction,u=t.style,l=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=Se({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:u}}});return g.createElement("div",{style:h.picker,className:"alpha-picker "+d},g.createElement(Gc,DL({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:l,onChange:a,direction:s})))};Hv.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:AL},Gt(Hv);function Uv(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var $L="__lodash_hash_undefined__";function IL(e){return this.__data__.set(e,$L),this}function FL(e){return this.__data__.has(e)}function Ys(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ur;++t<r;)this.add(e[t])}Ys.prototype.add=Ys.prototype.push=IL,Ys.prototype.has=FL;function jL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function LL(e,t){return e.has(t)}var RL=1,BL=2;function Yv(e,t,r,n,i,o){var a=r&RL,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&BL?new Ys:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!jL(t,function(x,b){if(!LL(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function NL(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function zL(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VL=1,WL=2,HL="[object Boolean]",UL="[object Date]",YL="[object Error]",GL="[object Map]",qL="[object Number]",KL="[object RegExp]",XL="[object Set]",ZL="[object String]",QL="[object Symbol]",JL="[object ArrayBuffer]",eR="[object DataView]",Gv=ln?ln.prototype:void 0,cf=Gv?Gv.valueOf:void 0;function tR(e,t,r,n,i,o,a){switch(r){case eR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JL:return!(e.byteLength!=t.byteLength||!o(new Rs(e),new Rs(t)));case HL:case UL:case qL:return Ko(+e,+t);case YL:return e.name==t.name&&e.message==t.message;case KL:case ZL:return e==t+"";case GL:var s=NL;case XL:var u=n&VL;if(s||(s=zL),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=WL,a.set(e,t);var c=Yv(s(e),s(t),n,i,o,a);return a.delete(e),c;case QL:if(cf)return cf.call(e)==cf.call(t)}return!1}function rR(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function nR(e,t,r){var n=t(e);return tr(e)?n:rR(n,r(e))}function iR(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function oR(){return[]}var aR=Object.prototype,sR=aR.propertyIsEnumerable,qv=Object.getOwnPropertySymbols,lR=qv?function(e){return e==null?[]:(e=Object(e),iR(qv(e),function(t){return sR.call(e,t)}))}:oR;const uR=lR;function Kv(e){return nR(e,af,uR)}var cR=1,fR=Object.prototype,dR=fR.hasOwnProperty;function hR(e,t,r,n,i,o){var a=r&cR,s=Kv(e),u=s.length,l=Kv(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:dR.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var pR=$n(vr,"DataView");const ff=pR;var gR=$n(vr,"Promise");const df=gR;var mR=$n(vr,"Set");const hf=mR;var vR=$n(vr,"WeakMap");const pf=vR;var Xv="[object Map]",yR="[object Object]",Zv="[object Promise]",Qv="[object Set]",Jv="[object WeakMap]",e1="[object DataView]",bR=Dn(ff),xR=Dn(Zo),wR=Dn(df),CR=Dn(hf),SR=Dn(pf),jn=An;(ff&&jn(new ff(new ArrayBuffer(1)))!=e1||Zo&&jn(new Zo)!=Xv||df&&jn(df.resolve())!=Zv||hf&&jn(new hf)!=Qv||pf&&jn(new pf)!=Jv)&&(jn=function(e){var t=An(e),r=t==yR?e.constructor:void 0,n=r?Dn(r):"";if(n)switch(n){case bR:return e1;case xR:return Xv;case wR:return Zv;case CR:return Qv;case SR:return Jv}return t});const t1=jn;var ER=1,r1="[object Arguments]",n1="[object Array]",Gs="[object Object]",TR=Object.prototype,i1=TR.hasOwnProperty;function _R(e,t,r,n,i,o){var a=tr(e),s=tr(t),u=a?n1:t1(e),l=s?n1:t1(t);u=u==r1?Gs:u,l=l==r1?Gs:l;var c=u==Gs,f=l==Gs,d=u==l;if(d&&Ns(e)){if(!Ns(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Mr),a||tf(e)?Yv(e,t,r,n,i,o):tR(e,t,u,r,n,i,o);if(!(r&ER)){var h=c&&i1.call(e,"__wrapped__"),m=f&&i1.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Mr),i(p,v,r,n,o)}}return d?(o||(o=new Mr),hR(e,t,r,n,i,o)):!1}function gf(e,t,r,n,i){return e===t?!0:e==null||t==null||!un(e)&&!un(t)?e!==e&&t!==t:_R(e,t,r,n,gf,i)}var OR=1,kR=2;function MR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Mr;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?gf(c,l,OR|kR,n,f):d))return!1}}return!0}function o1(e){return e===e&&!fr(e)}function PR(e){for(var t=af(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,o1(i)]}return t}function a1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function AR(e){var t=PR(e);return t.length==1&&t[0][2]?a1(t[0][0],t[0][1]):function(r){return r===e||MR(r,e,t)}}var DR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$R=/^\w*$/;function mf(e,t){if(tr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vs(e)?!0:$R.test(e)||!DR.test(e)||t!=null&&e in Object(t)}var IR="Expected a function";function vf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(vf.Cache||Ur),r}vf.Cache=Ur;var FR=500;function jR(e){var t=vf(e,function(n){return r.size===FR&&r.clear(),n}),r=t.cache;return t}var LR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RR=/\\(\\)?/g,BR=jR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LR,function(r,n,i,o){t.push(i?o.replace(RR,"$1"):n||r)}),t});const NR=BR;var zR=1/0,s1=ln?ln.prototype:void 0,l1=s1?s1.toString:void 0;function u1(e){if(typeof e=="string")return e;if(tr(e))return Uv(e,u1)+"";if(Vs(e))return l1?l1.call(e):"";var t=e+"";return t=="0"&&1/e==-zR?"-0":t}function VR(e){return e==null?"":u1(e)}function c1(e,t){return tr(e)?e:mf(e,t)?[e]:NR(VR(e))}var WR=1/0;function qs(e){if(typeof e=="string"||Vs(e))return e;var t=e+"";return t=="0"&&1/e==-WR?"-0":t}function f1(e,t){t=c1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qs(t[r++])];return r&&r==n?e:void 0}function HR(e,t,r){var n=e==null?void 0:f1(e,t);return n===void 0?r:n}function UR(e,t){return e!=null&&t in Object(e)}function YR(e,t,r){t=c1(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=qs(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Jc(i)&&nf(a,i)&&(tr(e)||Bs(e)))}function GR(e,t){return e!=null&&YR(e,t,UR)}var qR=1,KR=2;function XR(e,t){return mf(e)&&o1(t)?a1(qs(e),t):function(r){var n=HR(r,e);return n===void 0&&n===t?GR(r,e):gf(t,n,qR|KR)}}function ZR(e){return function(t){return t==null?void 0:t[e]}}function QR(e){return function(t){return f1(t,e)}}function JR(e){return mf(e)?ZR(qs(e)):QR(e)}function eB(e){return typeof e=="function"?e:e==null?zs:typeof e=="object"?tr(e)?XR(e[0],e[1]):AR(e):JR(e)}function tB(e,t){var r=-1,n=ki(e)?Array(e.length):[];return Dv(e,function(i,o,a){n[++r]=t(i,o,a)}),n}function Ln(e,t){var r=tr(e)?Uv:tB;return r(e,eB(t))}var rB=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,o=Se({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return g.createElement("div",{style:o.swatches},Ln(r,function(a){return g.createElement(Fn,{key:a,color:a,style:o.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+a}})}),g.createElement("div",{style:o.clear}))},yf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=i==="transparent",h=function(v,x){cn(v)&&r({hex:v,source:"hex"},x)},m=Se(Yt({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:lf(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return g.createElement("div",{style:m.card,className:"block-picker "+f},g.createElement("div",{style:m.triangle}),g.createElement("div",{style:m.head},d&&g.createElement(_i,{borderRadius:"6px 6px 0 0"}),g.createElement("div",{style:m.label},i)),g.createElement("div",{style:m.body},g.createElement(rB,{colors:o,onClick:h,onSwatchHover:n}),g.createElement(je,{style:{input:m.input},value:i,onChange:h})))};yf.propTypes={width:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.string),triangle:T.oneOf(["top","hide"]),styles:T.object},yf.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Gt(yf);var Mi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Pi={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Ai={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Di={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},$i={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Ii={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Fi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},ji={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Li={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},oa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Ri={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Bi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Ni={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},zi={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Vi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Wi={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Hi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Ui={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},d1=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,o=t.hover,a=t.active,s=t.circleSize,u=t.circleSpacing,l=Se({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:o,active:a});return g.createElement("div",{style:l.swatch},g.createElement(Fn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};d1.defaultProps={circleSize:28,circleSpacing:14};const nB=Uc(d1);var bf=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,o=t.colors,a=t.hex,s=t.circleSize,u=t.styles,l=u===void 0?{}:u,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=Se(Yt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),m=function(v,x){return n({hex:v,source:"hex"},x)};return g.createElement("div",{style:h.card,className:"circle-picker "+d},Ln(o,function(p){return g.createElement(nB,{key:p,color:p,onClick:m,onSwatchHover:i,active:a===p.toLowerCase(),circleSize:s,circleSpacing:c})}))};bf.propTypes={width:T.oneOfType([T.string,T.number]),circleSize:T.number,circleSpacing:T.number,styles:T.object},bf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Mi[500],Pi[500],Ai[500],Di[500],$i[500],Ii[500],Fi[500],ji[500],Li[500],oa[500],Ri[500],Bi[500],Ni[500],zi[500],Vi[500],Wi[500],Hi[500],Ui[500]],styles:{}},Gt(bf);function h1(e){return e===void 0}var p1={};Object.defineProperty(p1,"__esModule",{value:!0});var g1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iB=g,m1=oB(iB);function oB(e){return e&&e.__esModule?e:{default:e}}function aB(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ks=24,sB=p1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Ks:n,o=e.height,a=o===void 0?Ks:o,s=e.style,u=s===void 0?{}:s,l=aB(e,["fill","width","height","style"]);return m1.default.createElement("svg",g1({viewBox:"0 0 "+Ks+" "+Ks,style:g1({fill:r,width:i,height:a},u)},l),m1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},lB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function uB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function fB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v1=function(e){fB(t,e);function t(r){uB(this,t);var n=cB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,o){i.hex?cn(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},o):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},o):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},o)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(h1(i.s)?n.props.hsl.s:i.s),l:Number(h1(i.l)?n.props.hsl.l:i.l),source:"hsl"},o))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return lB(t,[{key:"render",value:function(){var n=this,i=Se({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),g.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,g.createElement("div",{style:i.toggle},g.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},g.createElement(sB,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(g.Component);v1.defaultProps={view:"hex"};var y1=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},dB=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return g.createElement("div",{style:t.picker})},xf=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,o=t.rgb,a=t.hsl,s=t.hsv,u=t.hex,l=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,m=t.defaultView,p=Se(Yt({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return g.createElement("div",{style:p.picker,className:"chrome-picker "+h},g.createElement("div",{style:p.saturation},g.createElement(Ws,{style:p.Saturation,hsl:a,hsv:s,pointer:dB,onChange:n})),g.createElement("div",{style:p.body},g.createElement("div",{style:p.controls,className:"flexbox-fix"},g.createElement("div",{style:p.color},g.createElement("div",{style:p.swatch},g.createElement("div",{style:p.active}),g.createElement(_i,{renderers:l}))),g.createElement("div",{style:p.toggles},g.createElement("div",{style:p.hue},g.createElement(Oi,{style:p.Hue,hsl:a,pointer:y1,onChange:n})),g.createElement("div",{style:p.alpha},g.createElement(Gc,{style:p.Alpha,rgb:o,hsl:a,pointer:y1,renderers:l,onChange:n})))),g.createElement(v1,{rgb:o,hsl:a,hex:u,view:m,onChange:n,disableAlpha:i})))};xf.propTypes={width:T.oneOfType([T.string,T.number]),disableAlpha:T.bool,styles:T.object,defaultView:T.oneOf(["hex","rgb","hsl"])},xf.defaultProps={width:225,disableAlpha:!1,styles:{}};const hB=Gt(xf);var pB=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.active,s=Se({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:lf(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Fn,{style:s.color,color:r,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:s.dot}))},gB=function(t){var r=t.hex,n=t.rgb,i=t.onChange,o=Se({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(u,l){u.r||u.g||u.b?i({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):i({hex:u.hex,source:"hex"},l)};return g.createElement("div",{style:o.fields,className:"flexbox-fix"},g.createElement("div",{style:o.active}),g.createElement(je,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))},wf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,o=t.hex,a=t.rgb,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Yt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),d=function(m,p){m.hex?cn(m.hex)&&r({hex:m.hex,source:"hex"},p):r(m,p)};return g.createElement(ea,{style:f.Compact,styles:u},g.createElement("div",{style:f.compact,className:"compact-picker "+c},g.createElement("div",null,Ln(i,function(h){return g.createElement(pB,{key:h,color:h,active:h.toLowerCase()===o,onClick:d,onSwatchHover:n})}),g.createElement("div",{style:f.clear})),g.createElement(gB,{hex:o,rgb:a,onChange:d})))};wf.propTypes={colors:T.arrayOf(T.string),styles:T.object},wf.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Gt(wf);var mB=function(t){var r=t.hover,n=t.color,i=t.onClick,o=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Se({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:r});return g.createElement("div",{style:s.swatch},g.createElement(Fn,{color:n,onClick:i,onHover:o,focusStyle:a}))};const vB=Uc(mB);var Cf=function(t){var r=t.width,n=t.colors,i=t.onChange,o=t.onSwatchHover,a=t.triangle,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Yt({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":a==="hide","top-left-triangle":a==="top-left","top-right-triangle":a==="top-right","bottom-left-triangle":a==="bottom-left","bottom-right-triangle":a==="bottom-right"}),d=function(m,p){return i({hex:m,source:"hex"},p)};return g.createElement("div",{style:f.card,className:"github-picker "+c},g.createElement("div",{style:f.triangleShadow}),g.createElement("div",{style:f.triangle}),Ln(n,function(h){return g.createElement(vB,{color:h,key:h,onClick:d,onSwatchHover:o})}))};Cf.propTypes={width:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.string),triangle:T.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:T.object},Cf.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Gt(Cf);var yB=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},bB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.hsl,a=t.direction,s=t.pointer,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return g.createElement("div",{style:d.picker,className:"hue-picker "+f},g.createElement(Oi,bB({},d.hue,{hsl:o,pointer:s,onChange:h,direction:a})))};Sf.propTypes={styles:T.object},Sf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:yB,styles:{}},Gt(Sf);var xB=function(t){var r=t.onChange,n=t.hex,i=t.rgb,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Yt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(d,h){d.hex?cn(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return g.createElement(ea,{styles:a},g.createElement("div",{style:l.material,className:"material-picker "+u},g.createElement(je,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),g.createElement("div",{style:l.split,className:"flexbox-fix"},g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))};Gt(xB);var wB=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,o=t.hex,a=Se({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?cn(l["#"])&&r({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},c)};return g.createElement("div",{style:a.fields},g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),g.createElement("div",{style:a.fieldSymbols},g.createElement("div",{style:a.symbol},"°"),g.createElement("div",{style:a.symbol},"%"),g.createElement("div",{style:a.symbol},"%")))},CB=function(t){var r=t.hsl,n=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return g.createElement("div",{style:n.picker})},SB=function(){var t=Se({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return g.createElement("div",{style:t.pointer},g.createElement("div",{style:t.left},g.createElement("div",{style:t.leftInside})),g.createElement("div",{style:t.right},g.createElement("div",{style:t.rightInside})))},b1=function(t){var r=t.onClick,n=t.label,i=t.children,o=t.active,a=Se({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return g.createElement("div",{style:a.button,onClick:r},n||i)},EB=function(t){var r=t.rgb,n=t.currentColor,i=Se({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return g.createElement("div",null,g.createElement("div",{style:i.label},"new"),g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.new}),g.createElement("div",{style:i.current})),g.createElement("div",{style:i.label},"current"))},TB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ef=function(e){kB(t,e);function t(r){_B(this,t);var n=OB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return TB(t,[{key:"render",value:function(){var n=this.props,i=n.styles,o=i===void 0?{}:i,a=n.className,s=a===void 0?"":a,u=Se(Yt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return g.createElement("div",{style:u.picker,className:"photoshop-picker "+s},g.createElement("div",{style:u.head},this.props.header),g.createElement("div",{style:u.body,className:"flexbox-fix"},g.createElement("div",{style:u.saturation},g.createElement(Ws,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:CB,onChange:this.props.onChange})),g.createElement("div",{style:u.hue},g.createElement(Oi,{direction:"vertical",hsl:this.props.hsl,pointer:SB,onChange:this.props.onChange})),g.createElement("div",{style:u.controls},g.createElement("div",{style:u.top,className:"flexbox-fix"},g.createElement("div",{style:u.previews},g.createElement(EB,{rgb:this.props.rgb,currentColor:this.state.currentColor})),g.createElement("div",{style:u.actions},g.createElement(b1,{label:"OK",onClick:this.props.onAccept,active:!0}),g.createElement(b1,{label:"Cancel",onClick:this.props.onCancel}),g.createElement(wB,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(g.Component);Ef.propTypes={header:T.string,styles:T.object},Ef.defaultProps={header:"Color Picker",styles:{}},Gt(Ef);var MB=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Se({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),u=function(c,f){c.hex?cn(c.hex)&&r({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:i.h,s:i.s,l:i.l,a:c.a,source:"rgb"},f))};return g.createElement("div",{style:s.fields,className:"flexbox-fix"},g.createElement("div",{style:s.double},g.createElement(je,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:u})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.alpha},g.createElement(je,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},PB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x1=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=Se({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,c){i({hex:l,source:"hex"},c)};return g.createElement("div",{style:a.colors,className:"flexbox-fix"},r.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return g.createElement("div",{key:c,style:a.swatchWrap},g.createElement(Fn,PB({},l,{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};x1.propTypes={colors:T.arrayOf(T.oneOfType([T.string,T.shape({color:T.string,title:T.string})])).isRequired};var AB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf=function(t){var r=t.width,n=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,u=t.onSwatchHover,l=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,m=t.className,p=m===void 0?"":m,v=Se(Yt({default:AB({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return g.createElement("div",{style:v.picker,className:"sketch-picker "+p},g.createElement("div",{style:v.saturation},g.createElement(Ws,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),g.createElement("div",{style:v.controls,className:"flexbox-fix"},g.createElement("div",{style:v.sliders},g.createElement("div",{style:v.hue},g.createElement(Oi,{style:v.Hue,hsl:a,onChange:s})),g.createElement("div",{style:v.alpha},g.createElement(Gc,{style:v.Alpha,rgb:n,hsl:a,renderers:f,onChange:s}))),g.createElement("div",{style:v.color},g.createElement(_i,null),g.createElement("div",{style:v.activeColor}))),g.createElement(MB,{rgb:n,hsl:a,hex:i,onChange:s,disableAlpha:l}),g.createElement(x1,{colors:c,onClick:s,onSwatchHover:u}))};Tf.propTypes={disableAlpha:T.bool,width:T.oneOfType([T.string,T.number]),styles:T.object},Tf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Gt(Tf);var aa=function(t){var r=t.hsl,n=t.offset,i=t.onClick,o=i===void 0?function(){}:i,a=t.active,s=t.first,u=t.last,l=Se({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:u}),c=function(d){return o({h:r.h,s:.5,l:n,source:"hsl"},d)};return g.createElement("div",{style:l.swatch,onClick:c})},DB=function(t){var r=t.onClick,n=t.hsl,i=Se({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:r,first:!0})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:r,last:!0})),g.createElement("div",{style:i.clear}))},$B=function(){var t=Se({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},_f=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Yt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return g.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},g.createElement("div",{style:l.hue},g.createElement(Oi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),g.createElement("div",{style:l.swatches},g.createElement(DB,{hsl:r,onClick:n})))};_f.propTypes={styles:T.object},_f.defaultProps={pointer:$B,styles:{}},Gt(_f);var w1={};Object.defineProperty(w1,"__esModule",{value:!0});var C1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IB=g,S1=FB(IB);function FB(e){return e&&e.__esModule?e:{default:e}}function jB(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Xs=24,LB=w1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Xs:n,o=e.height,a=o===void 0?Xs:o,s=e.style,u=s===void 0?{}:s,l=jB(e,["fill","width","height","style"]);return S1.default.createElement("svg",C1({viewBox:"0 0 "+Xs+" "+Xs,style:C1({fill:r,width:i,height:a},u)},l),S1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},RB=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.first,s=t.last,u=t.active,l=Se({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:lf(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Fn,{color:r,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:l.check},g.createElement(LB,null)))},BB=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,o=t.active,a=Se({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return g.createElement("div",{style:a.group},Ln(i,function(s,u){return g.createElement(RB,{key:s,color:s,active:s.toLowerCase()===o,first:u===0,last:u===i.length-1,onClick:r,onSwatchHover:n})}))},Of=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.onSwatchHover,a=t.colors,s=t.hex,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,v){return i({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.picker,className:"swatches-picker "+f},g.createElement(ea,null,g.createElement("div",{style:d.overflow},g.createElement("div",{style:d.body},Ln(a,function(m){return g.createElement(BB,{key:m.toString(),group:m,active:s,onClick:h,onSwatchHover:o})}),g.createElement("div",{style:d.clear})))))};Of.propTypes={width:T.oneOfType([T.string,T.number]),height:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.arrayOf(T.string)),styles:T.object},Of.defaultProps={width:320,height:240,colors:[[Mi[900],Mi[700],Mi[500],Mi[300],Mi[100]],[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Ai[900],Ai[700],Ai[500],Ai[300],Ai[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],[$i[900],$i[700],$i[500],$i[300],$i[100]],[Ii[900],Ii[700],Ii[500],Ii[300],Ii[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[ji[900],ji[700],ji[500],ji[300],ji[100]],[Li[900],Li[700],Li[500],Li[300],Li[100]],["#194D33",oa[700],oa[500],oa[300],oa[100]],[Ri[900],Ri[700],Ri[500],Ri[300],Ri[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Ni[900],Ni[700],Ni[500],Ni[300],Ni[100]],[zi[900],zi[700],zi[500],zi[300],zi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Gt(Of);var kf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,v){cn(p)&&r({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.card,className:"twitter-picker "+f},g.createElement("div",{style:d.triangleShadow}),g.createElement("div",{style:d.triangle}),g.createElement("div",{style:d.body},Ln(o,function(m,p){return g.createElement(Fn,{key:p,color:m,hex:m,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+m}})}),g.createElement("div",{style:d.hash},"#"),g.createElement(je,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),g.createElement("div",{style:d.clear})))};kf.propTypes={width:T.oneOfType([T.string,T.number]),triangle:T.oneOf(["hide","top-left","top-right"]),colors:T.arrayOf(T.string),styles:T.object},kf.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Gt(kf);var Mf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return g.createElement("div",{style:r.picker})};Mf.propTypes={hsl:T.shape({h:T.number,s:T.number,l:T.number,a:T.number})},Mf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Pf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return g.createElement("div",{style:r.picker})};Pf.propTypes={hsl:T.shape({h:T.number,s:T.number,l:T.number,a:T.number})},Pf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var NB=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.hsv,s=function(h,m){if(h.hex)cn(h.hex)&&r({hex:h.hex,source:"hex"},m);else if(h.rgb){var p=h.rgb.split(",");uf(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},m)}else if(h.hsv){var v=h.hsv.split(",");uf(h.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),r({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},m))}else if(h.hsl){var x=h.hsl.split(",");uf(h.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},m))}},u=Se({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.v*100)+"%";return g.createElement("div",{style:u.wrap,className:"flexbox-fix"},g.createElement("div",{style:u.fields},g.createElement("div",{style:u.double},g.createElement(je,{style:{input:u.input,label:u.label},label:"hex",value:o,onChange:s})),g.createElement("div",{style:u.column},g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},Af=function(t){var r=t.width,n=t.onChange,i=t.rgb,o=t.hsl,a=t.hsv,s=t.hex,u=t.header,l=t.styles,c=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=Se(Yt({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return g.createElement("div",{style:h.picker,className:"google-picker "+d},g.createElement("div",{style:h.head},u),g.createElement("div",{style:h.swatch}),g.createElement("div",{style:h.saturation},g.createElement(Ws,{hsl:o,hsv:a,pointer:Mf,onChange:n})),g.createElement("div",{style:h.body},g.createElement("div",{style:h.controls,className:"flexbox-fix"},g.createElement("div",{style:h.hue},g.createElement(Oi,{style:h.Hue,hsl:o,radius:"4px",pointer:Pf,onChange:n}))),g.createElement(NB,{rgb:i,hsl:o,hex:s,hsv:a,onChange:n})))};Af.propTypes={width:T.oneOfType([T.string,T.number]),styles:T.object,header:T.string},Af.defaultProps={width:652,styles:{},header:"Color picker"},Gt(Af);const sa=/^[a-z0-9]+(-[a-z0-9]+)*$/,Zs=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:n,prefix:u,name:s};return t&&!Qs(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Qs(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!Qs(s,r)?null:s}return null},Qs=(e,t)=>e?!!((e.provider===""||e.provider.match(sa))&&(t&&e.prefix===""||e.prefix.match(sa))&&e.name.match(sa)):!1,E1=Object.freeze({left:0,top:0,width:16,height:16}),Js=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Df=Object.freeze({...E1,...Js}),$f=Object.freeze({...Df,body:"",hidden:!1});function zB(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function T1(e,t){const r=zB(e,t);for(const n in $f)n in Js?n in e&&!(n in r)&&(r[n]=Js[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function VB(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,u=s&&o(s);u&&(i[a]=[s].concat(u))}return i[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function WB(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=T1(n[s]||i[s],o)}return a(t),r.forEach(a),T1(e,o)}function _1(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=VB(e);for(const i in n){const o=n[i];o&&(t(i,WB(e,i,o)),r.push(i))}return r}const HB={provider:"",aliases:{},not_found:{},...E1};function If(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function O1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!If(e,HB))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(sa)||typeof o.body!="string"||!If(o,$f))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(sa)||typeof a!="string"||!r[a]&&!n[a]||!If(o,$f))return null}return t}const k1=Object.create(null);function UB(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Rn(e,t){const r=k1[e]||(k1[e]=Object.create(null));return r[t]||(r[t]=UB(e,t))}function Ff(e,t){return O1(t)?_1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function YB(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let la=!1;function M1(e){return typeof e=="boolean"&&(la=e),la}function GB(e){const t=typeof e=="string"?Zs(e,!0,la):e;if(t){const r=Rn(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function qB(e,t){const r=Zs(e,!0,la);if(!r)return!1;const n=Rn(r.provider,r.prefix);return YB(n,r.name,t)}function KB(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),la&&!t&&!e.prefix){let i=!1;return O1(e)&&(e.prefix="",_1(e,(o,a)=>{a&&qB(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Qs({provider:t,prefix:r,name:"a"}))return!1;const n=Rn(t,r);return!!Ff(n,e)}const P1=Object.freeze({width:null,height:null}),A1=Object.freeze({...P1,...Js}),XB=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ZB=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function D1(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(XB);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=ZB.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const QB=e=>e==="unset"||e==="undefined"||e==="none";function JB(e,t){const r={...Df,...e},n={...A1,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(m=>{const p=[],v=m.hFlip,x=m.vFlip;let b=m.rotate;v?x?b+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):x&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let C;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:C=i.height/2+i.top,p.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,p.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}b%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),p.length&&(o='<g transform="'+p.join(" ")+'">'+o+"</g>")});const a=n.width,s=n.height,u=i.width,l=i.height;let c,f;a===null?(f=s===null?"1em":s==="auto"?l:s,c=D1(f,u/l)):(c=a==="auto"?u:a,f=s===null?D1(c,l/u):s==="auto"?l:s);const d={},h=(m,p)=>{QB(p)||(d[m]=p.toString())};return h("width",c),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+u.toString()+" "+l.toString(),{attributes:d,body:o}}const eN=/\sid="(\S+)"/g,tN="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let rN=0;function nN(e,t=tN){const r=[];let n;for(;n=eN.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const a=typeof t=="function"?t(o):t+(rN++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const jf=Object.create(null);function iN(e,t){jf[e]=t}function Lf(e){return jf[e]||jf[""]}function Rf(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Bf=Object.create(null),ua=["https://api.simplesvg.com","https://api.unisvg.com"],el=[];for(;ua.length>0;)ua.length===1||Math.random()>.5?el.push(ua.shift()):el.push(ua.pop());Bf[""]=Rf({resources:["https://api.iconify.design"].concat(el)});function oN(e,t){const r=Rf(t);return r===null?!1:(Bf[e]=r,!0)}function Nf(e){return Bf[e]}let $1=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function aN(e,t){const r=Nf(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function sN(e){return e===404}const lN=(e,t,r)=>{const n=[],i=aN(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((u,l)=>{s+=u.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=u.length),a.icons.push(u)}),n.push(a),n};function uN(e){if(typeof e=="string"){const t=Nf(e);if(t)return t.path}return"/"}const cN={prepare:lN,send:(e,t,r)=>{if(!$1){r("abort",424);return}let n=uN(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),u=new URLSearchParams({icons:s});n+=o+".json?"+u.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$1(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(sN(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function fN(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,s=i.name,u=r[o]||(r[o]=Object.create(null)),l=u[a]||(u[a]=Rn(o,a));let c;s in l.icons?c=t.loaded:a===""||l.missing.has(s)?c=t.missing:c=t.pending;const f={provider:o,prefix:a,name:s};c.push(f)}),t}function I1(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function dN(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,s=a.pending.length;a.pending=a.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||I1([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let hN=0;function pN(e,t,r){const n=hN++,i=I1.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function gN(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Zs(i,t,r):i;o&&n.push(o)}),n}var mN={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vN(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let _=e.resources.slice(0);for(a=[];_.length>1;){const O=Math.floor(Math.random()*_.length);a.push(_[O]),_=_.slice(0,O).concat(_.slice(O+1))}a=a.concat(_)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let u="pending",l=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function m(){f&&(clearTimeout(f),f=null)}function p(){u==="pending"&&(u="aborted"),m(),d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function v(_,O){O&&(h=[]),typeof _=="function"&&h.push(_)}function x(){return{startTime:s,payload:t,status:u,queriesSent:l,queriesPending:d.length,subscribe:v,abort:p}}function b(){u="failed",h.forEach(_=>{_(void 0,c)})}function C(){d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function E(_,O,k){const D=O!=="success";switch(d=d.filter(L=>L!==_),u){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){c=k,b();return}if(D){c=k,d.length||(a.length?w():b());return}if(m(),C(),!e.random){const L=e.resources.indexOf(_.resource);L!==-1&&L!==e.index&&(e.index=L)}u="completed",h.forEach(L=>{L(k)})}function w(){if(u!=="pending")return;m();const _=a.shift();if(_===void 0){if(d.length){f=setTimeout(()=>{m(),u==="pending"&&(C(),b())},e.timeout);return}b();return}const O={status:"pending",resource:_,callback:(k,D)=>{E(O,k,D)}};d.push(O),l++,f=setTimeout(w,e.rotate),r(_,t,O.callback)}return setTimeout(w),x}function F1(e){const t={...mN,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,u,l){const c=vN(t,s,u,(f,d)=>{n(),l&&l(f,d)});return r.push(c),c}function o(s){return r.find(u=>s(u))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function j1(){}const zf=Object.create(null);function yN(e){if(!zf[e]){const t=Nf(e);if(!t)return;const r=F1(t),n={config:t,redundancy:r};zf[e]=n}return zf[e]}function bN(e,t,r){let n,i;if(typeof e=="string"){const o=Lf(e);if(!o)return r(void 0,424),j1;i=o.send;const a=yN(e);a&&(n=a.redundancy)}else{const o=Rf(e);if(o){n=F1(o);const a=e.resources?e.resources[0]:"",s=Lf(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),j1):n.query(t,i,r)().abort}const L1="iconify2",ca="iconify",R1=ca+"-count",B1=ca+"-version",N1=36e5,xN=168;function Vf(e,t){try{return e.getItem(t)}catch{}}function Wf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function z1(e,t){try{e.removeItem(t)}catch{}}function Hf(e,t){return Wf(e,R1,t.toString())}function Uf(e){return parseInt(Vf(e,R1))||0}const tl={local:!0,session:!0},V1={local:new Set,session:new Set};let Yf=!1;function wN(e){Yf=e}let rl=typeof window>"u"?{}:window;function W1(e){const t=e+"Storage";try{if(rl&&rl[t]&&typeof rl[t].length=="number")return rl[t]}catch{}tl[e]=!1}function H1(e,t){const r=W1(e);if(!r)return;const n=Vf(r,B1);if(n!==L1){if(n){const s=Uf(r);for(let u=0;u<s;u++)z1(r,ca+u.toString())}Wf(r,B1,L1),Hf(r,0);return}const i=Math.floor(Date.now()/N1)-xN,o=s=>{const u=ca+s.toString(),l=Vf(r,u);if(typeof l=="string"){try{const c=JSON.parse(l);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>i&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}z1(r,u)}};let a=Uf(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,Hf(r,a)):V1[e].add(s))}function U1(){if(!Yf){wN(!0);for(const e in tl)H1(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Rn(n,i);if(!Ff(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function CN(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in tl)H1(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function SN(e,t){Yf||U1();function r(n){let i;if(!tl[n]||!(i=W1(n)))return;const o=V1[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Uf(i),!Hf(i,a+1))return;const s={cached:Math.floor(Date.now()/N1),provider:e.provider,data:t};return Wf(i,ca+a.toString(),JSON.stringify(s))}t.lastModified&&!CN(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Y1(){}function EN(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,dN(e)}))}function TN(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=Lf(r)))return;o.prepare(r,n,i).forEach(s=>{bN(r,s,u=>{if(typeof u!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Ff(e,u);if(!l.length)return;const c=e.pendingIcons;c&&l.forEach(f=>{c.delete(f)}),SN(e,u)}catch(l){console.error(l)}EN(e)})})}))}const _N=(e,t)=>{const r=gN(e,!0,M1()),n=fN(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,Y1)}),()=>{u=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(u=>{const{provider:l,prefix:c}=u;if(c===s&&l===a)return;a=l,s=c,o.push(Rn(l,c));const f=i[l]||(i[l]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(u=>{const{provider:l,prefix:c,name:f}=u,d=Rn(l,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][c].push(f))}),o.forEach(u=>{const{provider:l,prefix:c}=u;i[l][c].length&&TN(u,i[l][c])}),t?pN(t,n,o):Y1};function ON(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in P1?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const kN=/[\s,]+/;function MN(e,t){t.split(kN).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function PN(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function AN(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function DN(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function $N(e){return"data:image/svg+xml,"+DN(e)}function IN(e){return'url("'+$N(e)+'")'}let fa;function FN(){try{fa=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{fa=null}}function jN(e){return fa===void 0&&FN(),fa?fa.createHTML(e):e}const G1={...A1,inline:!1},LN={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},RN={display:"inline-block"},Gf={backgroundColor:"currentColor"},q1={backgroundColor:"transparent"},K1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},X1={WebkitMask:Gf,mask:Gf,background:q1};for(const e in X1){const t=X1[e];for(const r in K1)t[e+r]=K1[r]}const BN={...G1,inline:!0};function Z1(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const NN=(e,t,r,n)=>{const i=r?BN:G1,o=ON(i,t),a=t.mode||"svg",s={},u=t.style||{},l={...a==="svg"?LN:{},ref:n};for(let x in t){const b=t[x];if(b!==void 0)switch(x){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[x]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&MN(o,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?o[x]=PN(b):typeof b=="number"&&(o[x]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete l["aria-hidden"];break;default:i[x]===void 0&&(l[x]=b)}}const c=JB(e,o),f=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),a==="svg"){l.style={...s,...u},Object.assign(l,f);let x=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:jN(nN(c.body,b?()=>b+"ID"+x++:"iconifyReact"))},g.createElement("svg",l)}const{body:d,width:h,height:m}=e,p=a==="mask"||(a==="bg"?!1:d.indexOf("currentColor")!==-1),v=AN(d,{...f,width:h+"",height:m+""});return l.style={...s,"--svg":IN(v),width:Z1(f.width),height:Z1(f.height),...RN,...p?Gf:q1,...u},g.createElement("span",l)};if(M1(!0),iN("",cN),typeof document<"u"&&typeof window<"u"){U1();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!KB(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;oN(r,i)||console.error(n)}catch{console.error(n)}}}}class Q1 extends g.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Zs(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const o=GB(i);if(!o){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),o!==null&&(this._loading={name:n,abort:_N([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const a=["iconify"];i.prefix!==""&&a.push("iconify--"+i.prefix),i.provider!==""&&a.push("iconify--"+i.provider),this._setData({data:o,classes:a}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:g.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),NN({...Df,...r.data},n,t._inline,t._ref)}}const zN=g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return g.createElement(Q1,n)});g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return g.createElement(Q1,n)});const Rt=g.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>y.jsx(P.Box,{ref:i,component:zN,icon:e,sx:{width:t,height:t,...r},...n}));Rt.displayName="Iconify";const J1=({value:e,onChangeColor:t,...r})=>{const[n,i]=g.useState(null),o=s=>{i(s.currentTarget)},a=()=>i(null);return y.jsxs(y.Fragment,{children:[y.jsx(P.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:y.jsx(P.InputAdornment,{position:"start",sx:{ml:2},children:y.jsx(P.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:o,children:y.jsx(Rt,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),y.jsx(P.Popover,{open:!!n,anchorEl:n,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:y.jsx(hB,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function Ve(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function U(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Y(e){U(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Gr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function qf(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function nl(e,t){U(2,arguments);var r=Y(e).getTime(),n=Ve(t);return new Date(r+n)}function VN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*1e3)}var WN=6e4;function HN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*WN)}var UN=36e5;function YN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*UN)}function GN(e,t){U(2,arguments);var r=Ve(t),n=r*7;return qf(e,n)}function il(e,t){U(2,arguments);var r=Y(e),n=Ve(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function ey(e,t){U(2,arguments);var r=Ve(t);return il(e,r*12)}function qN(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()-n.getFullYear()}function Yi(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function KN(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Yi(r,n),o=Math.abs(qN(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=Yi(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function XN(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Kf(e){U(1,arguments);var t=Y(e);return t.setHours(23,59,59,999),t}function Xf(e){U(1,arguments);var t=Y(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function ZN(e){U(1,arguments);var t=Y(e);return Kf(t).getTime()===Xf(t).getTime()}function Zf(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Yi(r,n),o=Math.abs(XN(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=Yi(r,n)===-i;ZN(Y(e))&&o===1&&Yi(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}var ty={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},QN="trunc";function da(e){return e?ty[e]:ty[QN]}function JN(e,t,r){U(2,arguments);var n=Zf(e,t)/3;return da(r==null?void 0:r.roundingMethod)(n)}function Gi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qi(e){U(1,arguments);var t=Y(e);return t.setHours(0,0,0,0),t}var ez=864e5;function tz(e,t){U(2,arguments);var r=qi(e),n=qi(t),i=r.getTime()-Gi(r),o=n.getTime()-Gi(n);return Math.round((i-o)/ez)}function ry(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function ny(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=ry(r,n),o=Math.abs(tz(r,n));r.setDate(r.getDate()-i*o);var a=+(ry(r,n)===-i),s=i*(o-a);return s===0?0:s}function rz(e,t,r){U(2,arguments);var n=ny(e,t)/7;return da(r==null?void 0:r.roundingMethod)(n)}var ol=6e4,al=36e5,nz=1e3;function sl(e,t){return U(2,arguments),Y(e).getTime()-Y(t).getTime()}function iz(e,t,r){U(2,arguments);var n=sl(e,t)/al;return da(r==null?void 0:r.roundingMethod)(n)}function oz(e,t,r){U(2,arguments);var n=sl(e,t)/ol;return da(r==null?void 0:r.roundingMethod)(n)}function iy(e,t,r){U(2,arguments);var n=sl(e,t)/1e3;return da(r==null?void 0:r.roundingMethod)(n)}function az(e,t){var r;U(1,arguments);var n=e||{},i=Y(n.start),o=Y(n.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],u=i;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=a;)s.push(Y(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}var sz={};function xr(){return sz}function Qf(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+m),d.setHours(23,59,59,999),d}function Jf(e){U(1,arguments);var t=Y(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function lz(e){return U(1,arguments),e instanceof Date||Gr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oy(e){if(U(1,arguments),!lz(e)&&typeof e!="number")return!1;var t=Y(e);return!isNaN(Number(t))}function ay(e,t){U(2,arguments);var r=Ve(t);return nl(e,-r)}var uz=864e5;function cz(e){U(1,arguments);var t=Y(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/uz)+1}function Ki(e){U(1,arguments);var t=1,r=Y(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function sy(e){U(1,arguments);var t=Y(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Ki(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Ki(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function fz(e){U(1,arguments);var t=sy(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Ki(r);return n}var dz=6048e5;function ly(e){U(1,arguments);var t=Y(e),r=Ki(t).getTime()-fz(t).getTime();return Math.round(r/dz)+1}function Bn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getUTCDay(),m=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-m),d.setUTCHours(0,0,0,0),d}function ed(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getUTCFullYear(),d=xr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var p=Bn(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var x=Bn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function hz(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=ed(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Bn(h,t);return m}var pz=6048e5;function uy(e,t){U(1,arguments);var r=Y(e),n=Bn(r,t).getTime()-hz(r,t).getTime();return Math.round(n/pz)+1}function De(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var gz={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return De(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):De(n+1,2)},d:function(t,r){return De(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return De(t.getUTCHours()%12||12,r.length)},H:function(t,r){return De(t.getUTCHours(),r.length)},m:function(t,r){return De(t.getUTCMinutes(),r.length)},s:function(t,r){return De(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return De(o,r.length)}};const fn=gz;var Xi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mz={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return fn.y(t,r)},Y:function(t,r,n,i){var o=ed(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return De(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):De(a,r.length)},R:function(t,r){var n=sy(t);return De(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return De(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return De(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return De(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return fn.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return De(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=uy(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):De(o,r.length)},I:function(t,r,n){var i=ly(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):De(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):fn.d(t,r)},D:function(t,r,n){var i=cz(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):De(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return De(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return De(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return De(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=Xi.noon:i===0?o=Xi.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=Xi.evening:i>=12?o=Xi.afternoon:i>=4?o=Xi.morning:o=Xi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return fn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fn.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fn.s(t,r)},S:function(t,r){return fn.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return fy(a);case"XXXX":case"XX":return Nn(a);case"XXXXX":case"XXX":default:return Nn(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return fy(a);case"xxxx":case"xx":return Nn(a);case"xxxxx":case"xxx":default:return Nn(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+cy(a,":");case"OOOO":default:return"GMT"+Nn(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+cy(a,":");case"zzzz":default:return"GMT"+Nn(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return De(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return De(a,r.length)}};function cy(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+De(o,2)}function fy(e,t){if(e%60===0){var r=e>0?"-":"+";return r+De(Math.abs(e)/60,2)}return Nn(e,t)}function Nn(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=De(Math.floor(i/60),2),a=De(i%60,2);return n+o+r+a}const vz=mz;var dy=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},hy=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},yz=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return dy(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",dy(i,r)).replace("{{time}}",hy(o,r))},bz={p:hy,P:yz};const td=bz;var xz=["D","DD"],wz=["YY","YYYY"];function py(e){return xz.indexOf(e)!==-1}function gy(e){return wz.indexOf(e)!==-1}function ll(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cz={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sz=function(t,r,n){var i,o=Cz[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const Ez=Sz;function Zi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Tz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_z={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kz={date:Zi({formats:Tz,defaultWidth:"full"}),time:Zi({formats:_z,defaultWidth:"full"}),dateTime:Zi({formats:Oz,defaultWidth:"full"})};const Mz=kz;var Pz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Az=function(t,r,n,i){return Pz[t]};const Dz=Az;function Pr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var $z={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Iz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Fz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Lz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bz=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Nz={ordinalNumber:Bz,era:Pr({values:$z,defaultWidth:"wide"}),quarter:Pr({values:Iz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:Fz,defaultWidth:"wide"}),day:Pr({values:jz,defaultWidth:"wide"}),dayPeriod:Pr({values:Lz,defaultWidth:"wide",formattingValues:Rz,defaultFormattingWidth:"wide"})};const zz=Nz;function Ar(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Wz(s,function(f){return f.test(a)}):Vz(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(a.length);return{value:l,rest:c}}}function Vz(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Wz(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function my(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Hz=/^(\d+)(th|st|nd|rd)?/i,Uz=/\d+/i,Yz={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gz={any:[/^b/i,/^(a|c)/i]},qz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kz={any:[/1/i,/2/i,/3/i,/4/i]},Xz={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Zz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qz={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Jz={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eV={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tV={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rV={ordinalNumber:my({matchPattern:Hz,parsePattern:Uz,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:Yz,defaultMatchWidth:"wide",parsePatterns:Gz,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:qz,defaultMatchWidth:"wide",parsePatterns:Kz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:Xz,defaultMatchWidth:"wide",parsePatterns:Zz,defaultParseWidth:"any"}),day:Ar({matchPatterns:Qz,defaultMatchWidth:"wide",parsePatterns:Jz,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:eV,defaultMatchWidth:"any",parsePatterns:tV,defaultParseWidth:"any"})},nV={code:"en-US",formatDistance:Ez,formatLong:Mz,formatRelative:Dz,localize:zz,match:rV,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ul=nV;var iV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aV=/^'([^]*?)'?$/,sV=/''/g,lV=/[a-zA-Z]/;function rd(e,t,r){var n,i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E;U(2,arguments);var w=String(t),_=xr(),O=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:ul,k=Ve((o=(a=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Ve((h=(m=(p=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(x=r.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&p!==void 0?p:_.weekStartsOn)!==null&&m!==void 0?m:(C=_.locale)===null||C===void 0||(E=C.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&h!==void 0?h:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var L=Y(e);if(!oy(L))throw new RangeError("Invalid time value");var re=Gi(L),pe=ay(L,re),se={firstWeekContainsDate:k,weekStartsOn:D,locale:O,_originalDate:L},q=w.match(oV).map(function(G){var me=G[0];if(me==="p"||me==="P"){var Ee=td[me];return Ee(G,O.formatLong)}return G}).join("").match(iV).map(function(G){if(G==="''")return"'";var me=G[0];if(me==="'")return uV(G);var Ee=vz[me];if(Ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&gy(G)&&ll(G,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&py(G)&&ll(G,t,String(e)),Ee(pe,G,O.localize,se);if(me.match(lV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+me+"`");return G}).join("");return q}function uV(e){var t=e.match(aV);return t?t[1].replace(sV,"'"):e}function cV(e){U(1,arguments);var t=Y(e),r=t.getDate();return r}function vy(e){U(1,arguments);var t=Y(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function fV(e){U(1,arguments);var t=Y(e),r=t.getHours();return r}function dV(e){U(1,arguments);var t=Y(e),r=t.getMinutes();return r}function hV(e){U(1,arguments);var t=Y(e),r=t.getMonth();return r}function pV(e){U(1,arguments);var t=Y(e),r=t.getSeconds();return r}function gV(e){U(1,arguments);var t=Y(e),r=t.getMilliseconds();return r}function zn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?7:0)+h-f;return d.setDate(d.getDate()-m),d.setHours(0,0,0,0),d}function mV(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getFullYear(),d=xr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(f+1,0,h),m.setHours(0,0,0,0);var p=zn(m,t),v=new Date(0);v.setFullYear(f,0,h),v.setHours(0,0,0,0);var x=zn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function vV(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=mV(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var m=zn(h,t);return m}var yV=6048e5;function bV(e,t){U(1,arguments);var r=Y(e),n=zn(r,t).getTime()-vV(r,t).getTime();return Math.round(n/yV)+1}function xV(e){return U(1,arguments),Y(e).getFullYear()}function nd(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()>n.getTime()}function ha(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()<n.getTime()}function wV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()===n.getTime()}function CV(e,t){U(2,arguments);var r=qi(e),n=qi(t);return r.getTime()===n.getTime()}function SV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()}function EV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function yy(e){U(1,arguments);var t=Y(e);return t.setMinutes(0,0,0),t}function TV(e,t){U(2,arguments);var r=yy(e),n=yy(t);return r.getTime()===n.getTime()}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _V(e,t){if(e){if(typeof e=="string")return by(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return by(e,t)}}function xy(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_V(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function id(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function We(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cl(e)}function OV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kV(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function He(e){var t=OV();return function(){var n=cl(e),i;if(t){var o=cl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kV(this,i)}}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){if(Gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wy(e){var t=MV(e,"string");return Gr(t)==="symbol"?t:String(t)}function Cy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wy(n.key),n)}}function Re(e,t,r){return t&&Cy(e.prototype,t),r&&Cy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t,r){return t=wy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PV=10,Sy=function(){function e(){Le(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return Re(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),AV=function(e){We(r,e);var t=He(r);function r(n,i,o,a,s){var u;return Le(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=o,u.priority=a,s&&(u.subPriority=s),u}return Re(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(Sy),DV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",PV),te(ae(n),"subPriority",-1),n}return Re(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(Sy),Ge=function(){function e(){Le(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return Re(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new AV(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),$V=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",140),te(ae(n),"incompatibleTokens",["R","u","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Dr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function gt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function $r(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*al+o*ol+a*nz),rest:t.slice(r[0].length)}}function Ey(e){return gt(Et.anyDigitsSigned,e)}function Ct(e,t){switch(e){case 1:return gt(Et.singleDigit,t);case 2:return gt(Et.twoDigits,t);case 3:return gt(Et.threeDigits,t);case 4:return gt(Et.fourDigits,t);default:return gt(new RegExp("^\\d{1,"+e+"}"),t)}}function fl(e,t){switch(e){case 1:return gt(Et.singleDigitSigned,t);case 2:return gt(Et.twoDigitsSigned,t);case 3:return gt(Et.threeDigitsSigned,t);case 4:return gt(Et.fourDigitsSigned,t);default:return gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ad(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ty(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function _y(e){return e%400===0||e%4===0&&e%100!==0}var IV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Tt(Ct(4,i),s);case"yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var u=Ty(a.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),FV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Tt(Ct(4,i),s);case"Yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var u=ed(i,s);if(a.isTwoDigitYear){var l=Ty(a.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}}]),r}(Ge),jV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Ki(s)}}]),r}(Ge),LV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),RV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Ct(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),BV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Ct(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),NV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ae(n),"priority",110),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"M":return Tt(gt(Et.month,i),s);case"MM":return Tt(Ct(2,i),s);case"Mo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),zV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",110),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"L":return Tt(gt(Et.month,i),s);case"LL":return Tt(Ct(2,i),s);case"Lo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function VV(e,t,r){U(2,arguments);var n=Y(e),i=Ve(t),o=uy(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var WV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return gt(Et.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return Bn(VV(i,a,s),s)}}]),r}(Ge);function HV(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=ly(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var UV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return gt(Et.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Ki(HV(i,a))}}]),r}(Ge),YV=[31,28,31,30,31,30,31,31,30,31,30,31],GV=[31,29,31,30,31,30,31,31,30,31,30,31],qV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subPriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return gt(Et.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a),u=i.getUTCMonth();return s?o>=1&&o<=GV[u]:o>=1&&o<=YV[u]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),KV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subpriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return gt(Et.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function sd(e,t,r){var n,i,o,a,s,u,l,c;U(2,arguments);var f=xr(),d=Ve((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Y(e),m=Ve(t),p=h.getUTCDay(),v=m%7,x=(v+7)%7,b=(x<d?7:0)+m-p;return h.setUTCDate(h.getUTCDate()+b),h}var XV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),ZV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"e":case"ee":return Tt(Ct(o.length,i),u);case"eo":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),QV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"c":case"cc":return Tt(Ct(o.length,i),u);case"co":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function JV(e,t){U(2,arguments);var r=Ve(t);r%7===0&&(r=r-7);var n=1,i=Y(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,u=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+u),i}var eW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return Ct(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return Tt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Tt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Tt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Tt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=JV(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),tW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),rW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),nW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","b","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),iW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return gt(Et.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),oW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return gt(Et.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ge),aW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return gt(Et.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),sW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return gt(Et.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ge),lW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",60),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return gt(Et.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ge),uW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",50),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return gt(Et.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ge),cW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",30),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){var a=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Tt(Ct(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ge),fW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","x"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"X":return $r(Dr.basicOptionalMinutes,i);case"XX":return $r(Dr.basic,i);case"XXXX":return $r(Dr.basicOptionalSeconds,i);case"XXXXX":return $r(Dr.extendedOptionalSeconds,i);case"XXX":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),dW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","X"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"x":return $r(Dr.basicOptionalMinutes,i);case"xx":return $r(Dr.basic,i);case"xxxx":return $r(Dr.basicOptionalSeconds,i);case"xxxxx":return $r(Dr.extendedOptionalSeconds,i);case"xxx":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),hW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",40),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ge),pW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",20),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ge),gW={G:new $V,y:new IV,Y:new FV,R:new jV,u:new LV,Q:new RV,q:new BV,M:new NV,L:new zV,w:new WV,I:new UV,d:new qV,D:new KV,E:new XV,e:new ZV,c:new QV,i:new eW,a:new tW,b:new rW,B:new nW,h:new iW,H:new oW,K:new aW,k:new sW,m:new lW,s:new uW,S:new cW,X:new fW,x:new dW,t:new hW,T:new pW},mW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yW=/^'([^]*?)'?$/,bW=/''/g,xW=/\S/,wW=/[a-zA-Z]/;function CW(e,t,r,n){var i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E,w;U(3,arguments);var _=String(e),O=String(t),k=xr(),D=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&i!==void 0?i:ul;if(!D.match)throw new RangeError("locale must contain match property");var L=Ve((a=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:k.firstWeekContainsDate)!==null&&s!==void 0?s:(d=k.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=Ve((m=(p=(v=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&p!==void 0?p:(E=k.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(O==="")return _===""?Y(r):new Date(NaN);var pe={firstWeekContainsDate:L,weekStartsOn:re,locale:D},se=[new DV],q=O.match(vW).map(function(Z){var Q=Z[0];if(Q in td){var ne=td[Q];return ne(Z,D.formatLong)}return Z}).join("").match(mW),G=[],me=xy(q),Ee;try{var Ie=function(){var Q=Ee.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&gy(Q)&&ll(Q,O,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&py(Q)&&ll(Q,O,e);var ne=Q[0],be=gW[ne];if(be){var R=be.incompatibleTokens;if(Array.isArray(R)){var Be=G.find(function(ht){return R.includes(ht.token)||ht.token===ne});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(Q,"` at the same time"))}else if(be.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));G.push({token:ne,fullToken:Q});var le=be.run(_,Q,D.match,pe);if(!le)return{v:new Date(NaN)};se.push(le.setter),_=le.rest}else{if(ne.match(wW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(Q==="''"?Q="'":ne==="'"&&(Q=SW(Q)),_.indexOf(Q)===0)_=_.slice(Q.length);else return{v:new Date(NaN)}}};for(me.s();!(Ee=me.n()).done;){var Oe=Ie();if(Gr(Oe)==="object")return Oe.v}}catch(Z){me.e(Z)}finally{me.f()}if(_.length>0&&xW.test(_))return new Date(NaN);var $=se.map(function(Z){return Z.priority}).sort(function(Z,Q){return Q-Z}).filter(function(Z,Q,ne){return ne.indexOf(Z)===Q}).map(function(Z){return se.filter(function(Q){return Q.priority===Z}).sort(function(Q,ne){return ne.subPriority-Q.subPriority})}).map(function(Z){return Z[0]}),j=Y(r);if(isNaN(j.getTime()))return new Date(NaN);var X=ay(j,Gi(j)),ee={},H=xy($),fe;try{for(H.s();!(fe=H.n()).done;){var ue=fe.value;if(!ue.validate(X,pe))return new Date(NaN);var ge=ue.set(X,ee,pe);Array.isArray(ge)?(X=ge[0],id(ee,ge[1])):X=ge}}catch(Z){H.e(Z)}finally{H.f()}return X}function SW(e){return e.match(yW)[1].replace(bW,"'")}function EW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setDate(n),r}function TW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setHours(n),r}function _W(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMinutes(n),r}function OW(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=vy(a);return r.setMonth(n,Math.min(o,s)),r}function kW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setSeconds(n),r}function MW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMilliseconds(n),r}function PW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Oy(e){U(1,arguments);var t=Y(e);return t.setDate(1),t.setHours(0,0,0,0),t}function dl(e){U(1,arguments);var t=Y(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function AW(e,t){var r;U(1,arguments);var n=Ve((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=FW(e),o;if(i.date){var a=jW(i.date,n);o=LW(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,l;if(i.time&&(u=RW(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=BW(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var hl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DW=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$W=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function FW(e){var t={},r=e.split(hl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],hl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=hl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function jW(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function LW(e,t){if(t===null)return new Date(NaN);var r=e.match(DW);if(!r)return new Date(NaN);var n=!!r[4],i=pa(r[1]),o=pa(r[2])-1,a=pa(r[3]),s=pa(r[4]),u=pa(r[5])-1;if(n)return HW(t,s,u)?NW(t,s,u):new Date(NaN);var l=new Date(0);return!VW(t,o,a)||!WW(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function pa(e){return e?parseInt(e):1}function RW(e){var t=e.match($W);if(!t)return NaN;var r=ld(t[1]),n=ld(t[2]),i=ld(t[3]);return UW(r,n,i)?r*al+n*ol+i*1e3:NaN}function ld(e){return e&&parseFloat(e.replace(",","."))||0}function BW(e){if(e==="Z")return 0;var t=e.match(IW);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return YW(n,i)?r*(n*al+i*ol):NaN}function NW(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var zW=[31,null,31,30,31,30,31,31,30,31,30,31];function ky(e){return e%400===0||e%4===0&&e%100!==0}function VW(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(zW[t]||(ky(e)?29:28))}function WW(e,t){return t>=1&&t<=(ky(e)?366:365)}function HW(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function UW(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function YW(e,t){return t>=0&&t<=59}function GW(e,t){var r,n;U(1,arguments);var i=Y(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=De(i.getDate(),2),d=De(i.getMonth()+1,2),h=De(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var p=Math.abs(m),v=De(Math.floor(p/60),2),x=De(p%60,2),b=m<0?"+":"-";u="".concat(b).concat(v,":").concat(x)}else u="Z";var C=De(i.getHours(),2),E=De(i.getMinutes(),2),w=De(i.getSeconds(),2),_=s===""?"":"T",O=[C,E,w].join(c);s="".concat(s).concat(_).concat(O).concat(u)}return s}function qW(e,t){U(2,arguments);var r=Y(e).getTime(),n=Y(t.start).getTime(),i=Y(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(ud,ud.exports);var KW=ud.exports;const XW=xn(KW),ZW={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QW={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class JW{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=ZW,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>AW(n),this.toISO=n=>GW(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:CW(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(o=>{const a=o[0];if(a==="p"||a==="P"){const s=XW[a],u=this.locale||ul;return s(o,u.formatLong,{})}return o}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>oy(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>rd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return KN(n,this.date(i));case"quarters":return JN(n,this.date(i));case"months":return Zf(n,this.date(i));case"weeks":return rz(n,this.date(i));case"days":return ny(n,this.date(i));case"hours":return iz(n,this.date(i));case"minutes":return oz(n,this.date(i));case"seconds":return iy(n,this.date(i));default:return sl(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:wV(n,i),this.isSameYear=(n,i)=>SV(n,i),this.isSameMonth=(n,i)=>EV(n,i),this.isSameDay=(n,i)=>CV(n,i),this.isSameHour=(n,i)=>TV(n,i),this.isAfter=(n,i)=>nd(n,i),this.isAfterYear=(n,i)=>nd(n,Jf(i)),this.isAfterDay=(n,i)=>nd(n,Kf(i)),this.isBefore=(n,i)=>ha(n,i),this.isBeforeYear=(n,i)=>ha(n,dl(i)),this.isBeforeDay=(n,i)=>ha(n,qi(i)),this.isWithinRange=(n,[i,o])=>qW(n,{start:i,end:o}),this.startOfYear=n=>dl(n),this.startOfMonth=n=>Oy(n),this.startOfWeek=n=>zn(n,{locale:this.locale}),this.startOfDay=n=>qi(n),this.endOfYear=n=>Jf(n),this.endOfMonth=n=>Xf(n),this.endOfWeek=n=>Qf(n,{locale:this.locale}),this.endOfDay=n=>Kf(n),this.addYears=(n,i)=>ey(n,i),this.addMonths=(n,i)=>il(n,i),this.addWeeks=(n,i)=>GN(n,i),this.addDays=(n,i)=>qf(n,i),this.addHours=(n,i)=>YN(n,i),this.addMinutes=(n,i)=>HN(n,i),this.addSeconds=(n,i)=>VN(n,i),this.getYear=n=>xV(n),this.getMonth=n=>hV(n),this.getDate=n=>cV(n),this.getHours=n=>fV(n),this.getMinutes=n=>dV(n),this.getSeconds=n=>pV(n),this.getMilliseconds=n=>gV(n),this.setYear=(n,i)=>PW(n,i),this.setMonth=(n,i)=>OW(n,i),this.setDate=(n,i)=>EW(n,i),this.setHours=(n,i)=>TW(n,i),this.setMinutes=(n,i)=>_W(n,i),this.setSeconds=(n,i)=>kW(n,i),this.setMilliseconds=(n,i)=>MW(n,i),this.getDaysInMonth=n=>vy(n),this.getNextMonth=n=>il(n,1),this.getPreviousMonth=n=>il(n,-1),this.getMonthArray=n=>{const o=[dl(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return az({start:zn(n,{locale:this.locale}),end:Qf(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=zn(Oy(n),{locale:this.locale}),o=Qf(Xf(n),{locale:this.locale});let a=0,s=i;const u=[];for(;ha(s,o);){const l=Math.floor(a/7);u[l]=u[l]||[],u[l].push(s),s=qf(s,1),a+=1}return u},this.getWeekNumber=n=>bV(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=dl(n),a=Jf(i),s=[];let u=o;for(;ha(u,a);)s.push(u),u=ey(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=Ae({},QW,r)}}var eH={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},tH=function(t,r,n){var i,o=eH[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const rH=tH;var nH={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},iH={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oH={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aH={date:Zi({formats:nH,defaultWidth:"full"}),time:Zi({formats:iH,defaultWidth:"full"}),dateTime:Zi({formats:oH,defaultWidth:"full"})};const sH=aH;var lH={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},uH=function(t,r,n,i){var o=lH[t];return typeof o=="function"?o(r):o};const cH=uH;var fH={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},dH={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},hH={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},pH={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},gH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},mH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},vH=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},yH={ordinalNumber:vH,era:Pr({values:fH,defaultWidth:"wide"}),quarter:Pr({values:dH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:hH,defaultWidth:"wide"}),day:Pr({values:pH,defaultWidth:"wide"}),dayPeriod:Pr({values:gH,defaultWidth:"wide",formattingValues:mH,defaultFormattingWidth:"wide"})};const bH=yH;var xH=/^(\d+)[ºªo]?/i,wH=/\d+/i,CH={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},SH={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},EH={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},_H={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},OH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},kH={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},MH={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},PH={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},AH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},DH={ordinalNumber:my({matchPattern:xH,parsePattern:wH,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:CH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:EH,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:_H,defaultMatchWidth:"wide",parsePatterns:OH,defaultParseWidth:"any"}),day:Ar({matchPatterns:kH,defaultMatchWidth:"wide",parsePatterns:MH,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:PH,defaultMatchWidth:"any",parsePatterns:AH,defaultParseWidth:"any"})},$H={code:"pt-BR",formatDistance:rH,formatLong:sH,formatRelative:cH,localize:bH,match:DH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const IH=$H;var My={exports:{}},Py={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ay={exports:{}},FH=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},jH=FH,LH=Array.prototype.concat,RH=Array.prototype.slice,Dy=Ay.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];jH(o)?r=LH.call(r,RH.call(o)):r.push(o)}return r};Dy.wrap=function(e){return function(){return e(Dy(arguments))}};var BH=Ay.exports,ga=Py,ma=BH,$y=Object.hasOwnProperty,Iy=Object.create(null);for(var cd in ga)$y.call(ga,cd)&&(Iy[ga[cd]]=cd);var nr=My.exports={to:{},get:{}};nr.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=nr.get.hsl(e),n="hsl";break;case"hwb":r=nr.get.hwb(e),n="hwb";break;default:r=nr.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},nr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;a[u]=parseInt(s.slice(c,c+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)a[u]=parseInt(s[u]+s[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)a[u]=parseInt(s[u+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:$y.call(ga,s[1])?(a=ga[s[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=dn(a[u],0,255);return a[3]=dn(a[3],0,1),a},nr.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.to.hex=function(){var e=ma(arguments);return"#"+pl(e[0])+pl(e[1])+pl(e[2])+(e[3]<1?pl(Math.round(e[3]*255)):"")},nr.to.rgb=function(){var e=ma(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},nr.to.rgb.percent=function(){var e=ma(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},nr.to.hsl=function(){var e=ma(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},nr.to.hwb=function(){var e=ma(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},nr.to.keyword=function(e){return Iy[e.slice(0,3)]};function dn(e,t,r){return Math.min(Math.max(t,e),r)}function pl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var NH=My.exports;const va=Py,Fy={};for(const e of Object.keys(va))Fy[va[e]]=e;const de={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var jy=de;for(const e of Object.keys(de)){if(!("channels"in de[e]))throw new Error("missing channels property: "+e);if(!("labels"in de[e]))throw new Error("missing channel labels property: "+e);if(de[e].labels.length!==de[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=de[e];delete de[e].channels,delete de[e].labels,Object.defineProperty(de[e],"channels",{value:t}),Object.defineProperty(de[e],"labels",{value:r})}de.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s,u;o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+o)/2;return o===i?u=0:l<=.5?u=a/(o+i):u=a/(2-o-i),[s,u*100,l*100]},de.rgb.hsv=function(e){let t,r,n,i,o;const a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,t=f(a),r=f(s),n=f(u),a===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]},de.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=de.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]},de.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function zH(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}de.rgb.keyword=function(e){const t=Fy[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(va)){const o=va[i],a=zH(e,o);a<r&&(r=a,n=i)}return n},de.keyword.rgb=function(e){return va[e]},de.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]},de.rgb.lab=function(e){const t=de.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(r-n),s=200*(n-i);return[o,a,s]},de.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,u[l]=a*255;return u},de.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]},de.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},de.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,a;a=(2-r)*n;const s=(2-r)*i;return o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]},de.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const a=Math.floor(6*t),s=1-n;o=6*t-a,a&1&&(o=1-o);const u=r+o*(s-r);let l,c,f;switch(a){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},de.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]},de.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]},de.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,o=500*(t-r),a=200*(r-n);return[i,o,a]},de.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;const s=o**3,u=i**3,l=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},de.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(r*r+n*n);return[t,a,i]},de.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),a=r*Math.sin(i);return[t,o,a]},de.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?de.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(a+=60),a},de.hsv.ansi16=function(e){return de.rgb.ansi16(de.hsv.rgb(e),e[2])},de.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},de.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]},de.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},de.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},de.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]},de.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o;let s,u;return a<1?s=o/(1-a):s=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a,u/=6,u%=1,[u*360,a*100,s*100]},de.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},de.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},de.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},de.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},de.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},de.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},de.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]},de.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},de.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},de.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},de.gray.hsl=function(e){return[0,0,e[0]]},de.gray.hsv=de.gray.hsl,de.gray.hwb=function(e){return[0,100,e[0]]},de.gray.cmyk=function(e){return[0,0,0,e[0]]},de.gray.lab=function(e){return[e[0],0,0]},de.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},de.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const gl=jy;function VH(){const e={},t=Object.keys(gl);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function WH(e){const t=VH(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(gl[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function HH(e,t){return function(r){return t(e(r))}}function UH(e,t){const r=[t[e].parent,e];let n=gl[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=HH(gl[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var YH=function(e){const t=WH(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){const a=n[o];t[a].parent!==null&&(r[a]=UH(a,t))}return r};const fd=jy,GH=YH,Qi={},qH=Object.keys(fd);function KH(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function XH(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}qH.forEach(e=>{Qi[e]={},Object.defineProperty(Qi[e],"channels",{value:fd[e].channels}),Object.defineProperty(Qi[e],"labels",{value:fd[e].labels});const t=GH(e);Object.keys(t).forEach(n=>{const i=t[n];Qi[e][n]=XH(i),Qi[e][n].raw=KH(i)})});var ZH=Qi;const Ji=NH,ir=ZH,Ly=["keyword","gray","hex"],dd={};for(const e of Object.keys(ir))dd[[...ir[e].labels].sort().join("")]=e;const ml={};function It(e,t){if(!(this instanceof It))return new It(e,t);if(t&&t in Ly&&(t=null),t&&!(t in ir))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof It)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ji.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=ir[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=ir[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=hd(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in dd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=dd[o];const{labels:a}=ir[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=hd(s)}if(ml[this.model])for(n=ir[this.model].channels,r=0;r<n;r++){const i=ml[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}It.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Ji.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ir[this.model],{labels:r}=ir[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new It([...this.color.map(JH(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new It([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:St("rgb",0,At(255)),green:St("rgb",1,At(255)),blue:St("rgb",2,At(255)),hue:St(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:St("hsl",1,At(100)),lightness:St("hsl",2,At(100)),saturationv:St("hsv",1,At(100)),value:St("hsv",2,At(100)),chroma:St("hcg",1,At(100)),gray:St("hcg",2,At(100)),white:St("hwb",1,At(100)),wblack:St("hwb",2,At(100)),cyan:St("cmyk",0,At(100)),magenta:St("cmyk",1,At(100)),yellow:St("cmyk",2,At(100)),black:St("cmyk",3,At(100)),x:St("xyz",0,At(95.047)),y:St("xyz",1,At(100)),z:St("xyz",2,At(108.833)),l:St("lab",0,At(100)),a:St("lab",1),b:St("lab",2),keyword(e){return e!==void 0?new It(e):ir[this.model].keyword(this.color)},hex(e){return e!==void 0?new It(e):Ji.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new It(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Ji.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return It.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return It.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(ir)){if(Ly.includes(e))continue;const{channels:t}=ir[e];It.prototype[e]=function(...r){return this.model===e?new It(this):r.length>0?new It(r,e):new It([...eU(ir[this.model][e].raw(this.color)),this.valpha],e)},It[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=hd(r,t)),new It(n,e)}}function QH(e,t){return Number(e.toFixed(t))}function JH(e){return function(t){return QH(t,e)}}function St(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(ml[n]||(ml[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function At(e){return function(t){return Math.max(0,Math.min(e,t))}}function eU(e){return Array.isArray(e)?e:[e]}function hd(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var tU=It;const rU=xn(tU),nt={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},nU={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},iU={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},oU={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},aU={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},sU={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:nt[800]},eo={common:{black:"#000",white:"#fff"},primary:nU,secondary:iU,info:oU,success:aU,warning:sU,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:nt,divider:W(nt[500],.24),action:{hover:W(nt[500],.08),selected:W(nt[500],.16),disabled:W(nt[500],.8),disabledBackground:W(nt[500],.24),focus:W(nt[500],.24),hoverOpacity:.08,disabledOpacity:.48}},hn=e=>{const t={...eo,mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{...eo.action,active:nt[600]}},r={...eo,mode:"dark",text:{primary:"#fff",secondary:nt[500],disabled:nt[600]},background:{paper:nt[800],default:nt[900],neutral:W(nt[500],.16)},action:{...eo.action,active:nt[500]}};return e==="light"?t:r},lU=e=>({lighter:lc(e,.815),light:lc(e,.225),main:e,dark:sc(e,.15),darker:sc(e,.35)}),uU=e=>rU(e).luminosity()<=.55?"#fff":nt[900],cU=e=>{const t=lU(e);return{...eo,primary:{...t,contrastText:uU(t.main)},mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{active:nt[600],...eo.action}}},Ry=hn("light"),fU=Ry.grey[500],dU=Ry.common.black;function By(e,t){const r=W(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${W(t||hn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${W(hn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${W(hn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${W(hn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${W(hn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${W(hn("light").error.main,.24)}`,card:`0 0 2px 0 ${W(e,.2)}, 0 12px 24px -4px ${W(e,.12)}`,dialog:`-40px 40px 80px -8px ${W(e,.24)}`,dropdown:`0 0 2px 0 ${W(e,.24)}, -20px 20px 40px -4px ${W(e,.24)}`}}const hU=(e,t)=>By(e==="light"?fU:dU,t),pU=()=>y.jsx(P.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),gU=["primary","secondary","info","success","warning","error"];function mU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.color==="inherit",a=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(a||s)&&{...(i||o)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||o)&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},h=gU.map(v=>({...n.color===v&&{...(a||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(u||l)&&{color:e.palette[v].main,border:`solid 1px ${W(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:W(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(c||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:W(e.palette[v].main,.16),"&:hover":{backgroundColor:W(e.palette[v].main,.32)}}}})),m={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,m,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function vU(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function yU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function Ny(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function bU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function xU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function wU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function CU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function SU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function EU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function TU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function _U(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function OU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function kU(e){return y.jsx(P.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function MU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function PU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function AU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const DU=["primary","secondary","info","success","warning","error"];function $U(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.variant==="filled",a=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:W(e.palette.grey[500],.48)},...a&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.16),"&:hover":{backgroundColor:W(e.palette.grey[500],.32)}}}};return[...DU.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...o&&{"& .MuiChip-deleteIcon":{color:W(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:W(e.palette[c].main,.16),"&:hover":{backgroundColor:W(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:W(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(yU,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function IU(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function FU(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function jU(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function LU(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function RU(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const BU=["info","success","warning","error"];function NU(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...BU.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...o&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...a&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(bU,{}),success:y.jsx(wU,{}),warning:y.jsx(xU,{}),error:y.jsx(CU,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function zU(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function VU(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function WU(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:W(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:W(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function HU(e){return{MuiRadio:{defaultProps:{icon:y.jsx(_U,{}),checkedIcon:y.jsx(OU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function UU(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${W(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function YU(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function GU(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function qU(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(Ny,{}),icon:y.jsx(Ny,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:W(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function KU(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const XU=["primary","secondary","info","success","warning","error"];function ZU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",o=n.variant==="contained",a=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={...i&&{...o&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...a&&{borderColor:W(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},d=XU.map(p=>({...n.color===p&&{...o&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:W(e.palette[p].main,.16),"&:hover":{backgroundColor:W(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},m={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,m]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function QU(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:W(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function JU(e){return{MuiSelect:{defaultProps:{IconComponent:kU}}}}function eY(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function tY(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function rY(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function nY(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function iY(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"none","& .clickable-row":{cursor:"pointer"},"& .no-clickable-row .clickable-row":{cursor:"initial"},"& .no-clickable-row .clickable-row:hover":{backgroundColor:"initial"},"&.simple":{"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:"#fff",borderBottom:"none",borderRadius:0},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:700,fontSize:11}},"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{padding:"0 16px"},"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,borderRadius:0},"& .MuiDataGrid-pinnedColumnHeaders":{backgroundColor:"inherit",boxShadow:"none"},"& .MuiDataGrid-pinnedColumns--right":{backgroundColor:"#fff",boxShadow:"-2px 0px 4px -2px rgba(0, 0, 0, 0.075)"},"& .MuiDataGrid-pinnedColumns--left":{backgroundColor:"#fff",boxShadow:"2px 0px 4px -2px rgba(0, 0, 0, 0.071)"},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.background.neutral},"& .MuiDataGrid-columnHeaderCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-cellCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-pinnedRows":{boxShadow:"none",fontWeight:"bold"},"& .hide-checkbox-select-all div":{display:"none !important"},"& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer":{border:"none"},"& .MuiDataGrid-columnSeparator":{color:e.palette.divider},"& .MuiDataGrid-columnSeparator:hover":{color:e.palette.primary.main},'& .MuiDataGrid-cell[data-field="__check__"]':{padding:0},'& .MuiDataGrid-columnHeader[data-field="__check__"]':{padding:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}function oY(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function aY(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:W(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const sY=["primary","secondary","info","success","warning","error"];function lY(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...sY.map(a=>({...r.color===a&&{backgroundColor:P.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function uY(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function cY(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(MU,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(PU,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(AU,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function fY(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(SU,{}),checkedIcon:y.jsx(EU,{}),indeterminateIcon:y.jsx(TU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function dY(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function hY(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const pY=["primary","secondary","info","success","warning","error"];function gY(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",o=n.variant==="soft",a={"& .MuiPaginationItem-root":{...i&&{borderColor:W(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...pY.map(u=>({...n.color===u&&{...o&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:W(e.palette[u].main,.16),"&:hover":{backgroundColor:W(e.palette[u].main,.32)}}}}}})),a]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function mY(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const vY=["primary","secondary","info","success","warning","error"];function yY(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",o=r.variant==="outlined",a=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{borderStyle:"solid",...n&&{borderColor:W(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=vY.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{...r.color===h&&{...i&&{borderColor:W(e.palette[h].dark,.48)},...a&&{borderColor:W(e.palette[h].main,.48)},...s&&{borderColor:W(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function bY(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const xY=["primary","secondary","info","success","warning","error"];function wY(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=xY.map(s=>({...r.color===s&&{"&:hover":{borderColor:W(e.palette[s].main,.48),backgroundColor:W(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),a={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...o,i,a]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function CY(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function SY(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function EY(e){return Object.assign(mU(e),IU(e),$U(e),vU(e),FU(e),jU(),WU(e),HU(e),zU(),LU(e),RU(e),VU(),NU(e),QU(e),JU(),ZU(e),qU(e),YU(e),GU(e),KU(e),UU(e),nY(e),tY(e),rY(e),eY(),fY(e),iY(e),oY(e),uY(e),cY(e),aY(e),lY(e),dY(e),hY(e),gY(e),yY(e),mY(e),bY(e),CY(e),wY(e),SY())}const zy=hn("light"),TY=zy.grey[500],_Y=zy.common.black;function Vy(e){const t=W(e,.2),r=W(e,.14),n=W(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const OY=e=>Vy(e==="light"?TY:_Y);function Bt(e){return`${e/16}rem`}function to({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Bt(e)},"@media (min-width:900px)":{fontSize:Bt(t)},"@media (min-width:1200px)":{fontSize:Bt(r)}}}const kY={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Bt(40),...to({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Bt(32),...to({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Bt(24),...to({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Bt(20),...to({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Bt(18),...to({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Bt(17),...to({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Bt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Bt(14)},body1:{lineHeight:1.5,fontSize:Bt(16)},body2:{lineHeight:22/14,fontSize:Bt(14)},caption:{lineHeight:1.5,fontSize:Bt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Bt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Bt(14),textTransform:"capitalize"}},Wy=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=g.useMemo(()=>({palette:cU(t),typography:kY,shape:{borderRadius:8},direction:r,shadows:OY(n),customShadows:hU(n,t)}),[t,r,n]),o=pg(i);return o.components=EY(o),y.jsx(G0,{injectFirst:!0,children:y.jsxs(mg,{theme:o,children:[y.jsx(P.CssBaseline,{}),y.jsx(pU,{}),e]})})},tZ="",rZ="",MY=({themeColor:e,children:t})=>y.jsx(co.LocalizationProvider,{dateAdapter:JW,adapterLocale:IH,children:y.jsx(Wy,{color:e,children:t})}),ro=e=>e&&e.charAt(0).toUpperCase(),PY=e=>["A","N","H","L","Q"].includes(ro(e))?"primary":["F","G","T","I","J"].includes(ro(e))?"info":["K","D","Y","B","O"].includes(ro(e))?"success":["P","E","R","S","U"].includes(ro(e))?"warning":["V","W","X","M","Z"].includes(ro(e))?"error":"default",Hy=g.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=mi(),u=ro(t),l=PY(t),c=e||l,f=c==="default"?y.jsxs(P.Avatar,{ref:a,sx:i,...o,children:[t&&u,n]}):y.jsxs(P.Avatar,{ref:a,sx:{color:(d=s.palette[c])==null?void 0:d.contrastText,backgroundColor:(h=s.palette[c])==null?void 0:h.main,fontWeight:s.typography.fontWeightMedium,...i},...o,children:[t&&u,n]});return r?y.jsx(P.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});Hy.displayName="CustomAvatar";const pn={tiny:24,small:32,medium:40,large:56},Uy=g.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...o},a)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return y.jsx(P.AvatarGroup,{ref:a,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:pn.large,height:pn.large,"&:first-of-type":{fontSize:16}},...l&&{width:pn.medium,height:pn.medium},...u&&{width:pn.small,height:pn.small},...s&&{width:pn.tiny,height:pn.tiny}},...t&&{...f},...i},...o,children:n})});Uy.displayName="CustomAvatarGroup";const Yy=P.styled(P.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),AY=()=>{const e=Xn.useGridApiContext(),{rowHeight:t,paginationModel:r}=Xn.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,i=Xn.gridColumnsTotalWidthSelector(e),o=Xn.gridColumnPositionsSelector(e),a=g.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),u=g.useMemo(()=>{const l=[];for(let c=0;c<n;c+=1){for(const f of s)l.push(y.jsx(Yy,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(P.Skeleton,{width:"100%"})},`column-${c}-${f.field}`));l.push(y.jsx(Yy,{},`fill-${c}`))}return l},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:u})},DY=({columns:e,...t})=>{const r=[{...Xn.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=g.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return y.jsx(Xn.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:AY},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:i=>`Agrupar por ${i}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:i=>`Parar de agrupar por ${i}`,unpin:"Desafixar",footerRowSelected:i=>`${i} ${i===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:i=>`${i.from}-${i.to} de ${i.count}`}},...t})},$Y=({children:e,waitBeforeShow:t=500})=>{const[r,n]=g.useState(!1);return g.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var Gy={exports:{}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),p=Object.prototype.toString,v=Math.max,x=Math.min,b=function(){return m.Date.now()};function C(w){var _=typeof w;return!!w&&(_=="object"||_=="function")}function E(w){if(typeof w=="number")return w;if(function(k){return typeof k=="symbol"||function(D){return!!D&&typeof D=="object"}(k)&&p.call(k)=="[object Symbol]"}(w))return NaN;if(C(w)){var _=typeof w.valueOf=="function"?w.valueOf():w;w=C(_)?_+"":_}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var O=l.test(w);return O||c.test(w)?f(w.slice(2),O?2:8):u.test(w)?NaN:+w}i.exports=function(w,_,O){var k,D,L,re,pe,se,q=0,G=!1,me=!1,Ee=!0;if(typeof w!="function")throw new TypeError("Expected a function");function Ie(ee){var H=k,fe=D;return k=D=void 0,q=ee,re=w.apply(fe,H)}function Oe(ee){var H=ee-se;return se===void 0||H>=_||H<0||me&&ee-q>=L}function $(){var ee=b();if(Oe(ee))return j(ee);pe=setTimeout($,function(H){var fe=_-(H-se);return me?x(fe,L-(H-q)):fe}(ee))}function j(ee){return pe=void 0,Ee&&k?Ie(ee):(k=D=void 0,re)}function X(){var ee=b(),H=Oe(ee);if(k=arguments,D=this,se=ee,H){if(pe===void 0)return function(fe){return q=fe,pe=setTimeout($,_),G?Ie(fe):re}(se);if(me)return pe=setTimeout($,_),Ie(se)}return pe===void 0&&(pe=setTimeout($,_)),re}return _=E(_)||0,C(O)&&(G=!!O.leading,L=(me="maxWait"in O)?v(E(O.maxWait)||0,_):L,Ee="trailing"in O?!!O.trailing:Ee),X.cancel=function(){pe!==void 0&&clearTimeout(pe),q=0,k=se=D=pe=void 0},X.flush=function(){return pe===void 0?re:j(b())},X}},96:(i,o,a)=>{var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,p=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,x=p||v||Function("return this")(),b=Object.prototype.toString,C=Math.max,E=Math.min,w=function(){return x.Date.now()};function _(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function O(k){if(typeof k=="number")return k;if(function(re){return typeof re=="symbol"||function(pe){return!!pe&&typeof pe=="object"}(re)&&b.call(re)==l}(k))return u;if(_(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=_(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(c,"");var L=d.test(k);return L||h.test(k)?m(k.slice(2),L?2:8):f.test(k)?u:+k}i.exports=function(k,D,L){var re=!0,pe=!0;if(typeof k!="function")throw new TypeError(s);return _(L)&&(re="leading"in L?!!L.leading:re,pe="trailing"in L?!!L.trailing:pe),function(se,q,G){var me,Ee,Ie,Oe,$,j,X=0,ee=!1,H=!1,fe=!0;if(typeof se!="function")throw new TypeError(s);function ue(be){var R=me,Be=Ee;return me=Ee=void 0,X=be,Oe=se.apply(Be,R)}function ge(be){var R=be-j;return j===void 0||R>=q||R<0||H&&be-X>=Ie}function Z(){var be=w();if(ge(be))return Q(be);$=setTimeout(Z,function(R){var Be=q-(R-j);return H?E(Be,Ie-(R-X)):Be}(be))}function Q(be){return $=void 0,fe&&me?ue(be):(me=Ee=void 0,Oe)}function ne(){var be=w(),R=ge(be);if(me=arguments,Ee=this,j=be,R){if($===void 0)return function(Be){return X=Be,$=setTimeout(Z,q),ee?ue(Be):Oe}(j);if(H)return $=setTimeout(Z,q),ue(j)}return $===void 0&&($=setTimeout(Z,q)),Oe}return q=O(q)||0,_(G)&&(ee=!!G.leading,Ie=(H="maxWait"in G)?C(O(G.maxWait)||0,q):Ie,fe="trailing"in G?!!G.trailing:fe),ne.cancel=function(){$!==void 0&&clearTimeout($),X=0,me=j=Ee=$=void 0},ne.flush=function(){return $===void 0?Oe:Q(w())},ne}(k,D,{leading:re,maxWait:D,trailing:pe})}},703:(i,o,a)=>{var s=a(414);function u(){}function l(){}l.resetWarningCache=u,i.exports=function(){function c(h,m,p,v,x,b){if(b!==s){var C=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 C.name="Invariant Violation",C}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var a in o)r.o(o,a)&&!r.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>le,LazyLoadImage:()=>ct,trackWindowScroll:()=>j});const i=g;var o=r.n(i),a=r(697);const s=Rd;var u=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(I){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(I)}function f(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);M&&(N=N.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,N)}return B}function d(I,M,B){return(M=m(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function h(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,m(N.key),N)}}function m(I){var M=function(B,N){if(c(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(c(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return c(M)==="symbol"?M:String(M)}function p(I,M){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},p(I,M)}function v(I){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},v(I)}var x=function(I){I.forEach(function(M){M.isIntersecting&&M.target.onVisible()})},b={},C=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&p(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=v(N);if(Ce){var ce=v(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(c(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;if(function(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).supportsObserver=!A.scrollPosition&&A.useIntersectionObserver&&l(),F.supportsObserver){var ce=A.threshold;F.observer=function(oe){return b[oe]=b[oe]||new IntersectionObserver(x,{rootMargin:oe+"px"}),b[oe]}(ce)}return F}return M=Ne,B=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,F=this.placeholder.getBoundingClientRect(),ce=u().findDOMNode(this.placeholder).style,oe=parseInt(ce.getPropertyValue("margin-left"),10)||0,ie=parseInt(ce.getPropertyValue("margin-top"),10)||0;return{bottom:A.y+F.bottom+ie,left:A.x+F.left+oe,right:A.x+F.right+oe,top:A.y+F.top+ie}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,F=A.scrollPosition,ce=A.threshold,oe=this.getPlaceholderBoundingBox(F),ie=F.y+window.innerHeight,Me=F.x,st=F.x+window.innerWidth,et=F.y;return et-ce<=oe.bottom&&ie+ce>=oe.top&&Me-ce<=oe.right&&st+ce>=oe.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,F=this.props,ce=F.className,oe=F.height,ie=F.placeholder,Me=F.style,st=F.width;if(ie&&typeof ie.type!="function")return o().cloneElement(ie,{ref:function(tt){return A.placeholder=tt}});var et=function(tt){for(var _t=1;_t<arguments.length;_t++){var vt=arguments[_t]!=null?arguments[_t]:{};_t%2?f(Object(vt),!0).forEach(function(Ft){d(tt,Ft,vt[Ft])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):f(Object(vt)).forEach(function(Ft){Object.defineProperty(tt,Ft,Object.getOwnPropertyDescriptor(vt,Ft))})}return tt}({display:"inline-block"},Me);return st!==void 0&&(et.width=st),oe!==void 0&&(et.height=oe),o().createElement("span",{className:ce,ref:function(tt){return A.placeholder=tt},style:et},ie)}}],B&&h(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);C.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},C.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const E=C;var w=r(296),_=r.n(w),O=r(96),k=r.n(O),D=function(I){var M=getComputedStyle(I,null);return M.getPropertyValue("overflow")+M.getPropertyValue("overflow-y")+M.getPropertyValue("overflow-x")};const L=function(I){if(!(I instanceof HTMLElement))return window;for(var M=I;M&&M instanceof HTMLElement;){if(/(scroll|auto)/.test(D(M)))return M;M=M.parentNode}return window};function re(I){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},re(I)}var pe=["delayMethod","delayTime"];function se(){return se=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var N in B)Object.prototype.hasOwnProperty.call(B,N)&&(I[N]=B[N])}return I},se.apply(this,arguments)}function q(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(re(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(re(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(N.key),re(Ce)==="symbol"?Ce:String(Ce)),N)}var Ce}function G(I,M){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},G(I,M)}function me(I,M){if(M&&(re(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(I)}function Ee(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Ie(I){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},Ie(I)}var Oe=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},$=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const j=function(I){var M=function(B){(function(ce,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),oe&&G(ce,oe)})(F,B);var N,Ce,ke,Ne,A=(ke=F,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ce,oe=Ie(ke);if(Ne){var ie=Ie(this).constructor;ce=Reflect.construct(oe,arguments,ie)}else ce=oe.apply(this,arguments);return me(this,ce)});function F(ce){var oe;if(function(Me,st){if(!(Me instanceof st))throw new TypeError("Cannot call a class as a function")}(this,F),(oe=A.call(this,ce)).useIntersectionObserver=ce.useIntersectionObserver&&l(),oe.useIntersectionObserver)return me(oe);var ie=oe.onChangeScroll.bind(Ee(oe));return ce.delayMethod==="debounce"?oe.delayedScroll=_()(ie,ce.delayTime):ce.delayMethod==="throttle"&&(oe.delayedScroll=k()(ie,ce.delayTime)),oe.state={scrollPosition:{x:Oe(),y:$()}},oe.baseComponentRef=o().createRef(),oe}return N=F,(Ce=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||L(u().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=L(u().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Oe(),y:$()}})}},{key:"render",value:function(){var ce=this.props,oe=(ce.delayMethod,ce.delayTime,function(Me,st){if(Me==null)return{};var et,tt,_t=function(Ft,Xr){if(Ft==null)return{};var Zr,Kn,Sa={},Bl=Object.keys(Ft);for(Kn=0;Kn<Bl.length;Kn++)Zr=Bl[Kn],Xr.indexOf(Zr)>=0||(Sa[Zr]=Ft[Zr]);return Sa}(Me,st);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Me);for(tt=0;tt<vt.length;tt++)et=vt[tt],st.indexOf(et)>=0||Object.prototype.propertyIsEnumerable.call(Me,et)&&(_t[et]=Me[et])}return _t}(ce,pe)),ie=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(I,se({forwardRef:this.baseComponentRef,scrollPosition:ie},oe))}}])&&q(N.prototype,Ce),Object.defineProperty(N,"prototype",{writable:!1}),F}(o().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function X(I){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},X(I)}function ee(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(X(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(X(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(N.key),X(Ce)==="symbol"?Ce:String(Ce)),N)}var Ce}function H(I,M){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},H(I,M)}function fe(I){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},fe(I)}var ue=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&H(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=fe(N);if(Ce){var ce=fe(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(X(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){return function(F,ce){if(!(F instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,Ne),ke.call(this,A)}return M=Ne,(B=[{key:"render",value:function(){return o().createElement(E,this.props)}}])&&ee(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);const ge=j(ue);function Z(I){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Z(I)}function Q(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(Z(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(Z(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(N.key),Z(Ce)==="symbol"?Ce:String(Ce)),N)}var Ce}function ne(I,M){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},ne(I,M)}function be(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function R(I){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},R(I)}var Be=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&ne(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=R(N);if(Ce){var ce=R(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(Z(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(oe)}(this,A)});function Ne(A){var F;(function(st,et){if(!(st instanceof et))throw new TypeError("Cannot call a class as a function")})(this,Ne),F=ke.call(this,A);var ce=A.afterLoad,oe=A.beforeLoad,ie=A.scrollPosition,Me=A.visibleByDefault;return F.state={visible:Me},Me&&(oe(),ce()),F.onVisible=F.onVisible.bind(be(F)),F.isScrollTracked=!!(ie&&Number.isFinite(ie.x)&&ie.x>=0&&Number.isFinite(ie.y)&&ie.y>=0),F}return M=Ne,(B=[{key:"componentDidUpdate",value:function(A,F){F.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,F=A.className,ce=A.delayMethod,oe=A.delayTime,ie=A.height,Me=A.placeholder,st=A.scrollPosition,et=A.style,tt=A.threshold,_t=A.useIntersectionObserver,vt=A.width;return this.isScrollTracked||_t&&l()?o().createElement(E,{className:F,height:ie,onVisible:this.onVisible,placeholder:Me,scrollPosition:st,style:et,threshold:tt,useIntersectionObserver:_t,width:vt}):o().createElement(ge,{className:F,delayMethod:ce,delayTime:oe,height:ie,onVisible:this.onVisible,placeholder:Me,style:et,threshold:tt,width:vt})}}])&&Q(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);Be.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Be.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const le=Be;function ht(I){return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},ht(I)}var Zt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Vt(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);M&&(N=N.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,N)}return B}function Kr(I){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?Vt(Object(B),!0).forEach(function(N){wr(I,N,B[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(B)):Vt(Object(B)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(B,N))})}return I}function wr(I,M,B){return(M=bn(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function Cr(){return Cr=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var N in B)Object.prototype.hasOwnProperty.call(B,N)&&(I[N]=B[N])}return I},Cr.apply(this,arguments)}function Ca(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,bn(N.key),N)}}function bn(I){var M=function(B,N){if(ht(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(ht(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return ht(M)==="symbol"?M:String(M)}function qn(I,M){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},qn(I,M)}function K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},K(I)}var ve=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&qn(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=K(N);if(Ce){var ce=K(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(ht(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;return function(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).state={loaded:!1},F}return M=Ne,(B=[{key:"onImageLoad",value:function(){var A=this;return this.state.loaded?null:function(F){A.props.onLoad(F),A.props.afterLoad(),A.setState({loaded:!0})}}},{key:"getImg",value:function(){var A=this.props,F=(A.afterLoad,A.beforeLoad,A.delayMethod,A.delayTime,A.effect,A.placeholder,A.placeholderSrc,A.scrollPosition,A.threshold,A.useIntersectionObserver,A.visibleByDefault,A.wrapperClassName,A.wrapperProps,function(ce,oe){if(ce==null)return{};var ie,Me,st=function(tt,_t){if(tt==null)return{};var vt,Ft,Xr={},Zr=Object.keys(tt);for(Ft=0;Ft<Zr.length;Ft++)vt=Zr[Ft],_t.indexOf(vt)>=0||(Xr[vt]=tt[vt]);return Xr}(ce,oe);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(ce);for(Me=0;Me<et.length;Me++)ie=et[Me],oe.indexOf(ie)>=0||Object.prototype.propertyIsEnumerable.call(ce,ie)&&(st[ie]=ce[ie])}return st}(A,Zt));return o().createElement("img",Cr({},F,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var A=this.props,F=A.beforeLoad,ce=A.className,oe=A.delayMethod,ie=A.delayTime,Me=A.height,st=A.placeholder,et=A.scrollPosition,tt=A.style,_t=A.threshold,vt=A.useIntersectionObserver,Ft=A.visibleByDefault,Xr=A.width;return o().createElement(le,{beforeLoad:F,className:ce,delayMethod:oe,delayTime:ie,height:Me,placeholder:st,scrollPosition:et,style:tt,threshold:_t,useIntersectionObserver:vt,visibleByDefault:Ft,width:Xr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var F=this.props,ce=F.effect,oe=F.height,ie=F.placeholderSrc,Me=F.width,st=F.wrapperClassName,et=F.wrapperProps,tt=this.state.loaded,_t=tt?" lazy-load-image-loaded":"",vt=tt||!ie?{}:{backgroundImage:"url(".concat(ie,")"),backgroundSize:"100% 100%"};return o().createElement("span",Cr({className:st+" lazy-load-image-background "+ce+_t,style:Kr(Kr({},vt),{},{color:"transparent",display:"inline-block",height:oe,width:Me})},et),A)}},{key:"render",value:function(){var A=this.props,F=A.effect,ce=A.placeholderSrc,oe=A.visibleByDefault,ie=A.wrapperClassName,Me=A.wrapperProps,st=this.getLazyLoadImage();return(F||ce)&&!oe||ie||Me?this.getWrappedLazyLoadImage(st):st}}])&&Ca(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);ve.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ve.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ct=ve})(),Gy.exports=n})();var IY=Gy.exports;const FY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",jY="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function LY(e="1/1"){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}const vl=g.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=y.jsx(P.Box,{component:IY.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?FY:jY,sx:{width:1,height:1,objectFit:"cover"},...i});return e?y.jsx(P.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:LY(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):y.jsx(P.Box,{ref:o,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:a})});vl.displayName="Image";/*! *****************************************************************************
|
|
133
133
|
Copyright (c) Microsoft Corporation.
|
|
134
134
|
|
|
135
135
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -142,7 +142,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
142
142
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
143
143
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
144
144
|
PERFORMANCE OF THIS SOFTWARE.
|
|
145
|
-
***************************************************************************** */var
|
|
145
|
+
***************************************************************************** */var pd=function(e,t){return pd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},pd(e,t)};function RY(e,t){pd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Nt=function(){return Nt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Nt.apply(this,arguments)},qy=!1,Vn,gd,md,yl,bl,Ky,xl,vd,yd,bd,Xy,xd,wd,Zy,Qy;function qt(){if(!qy){qy=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(xd=/\b(iPhone|iP[ao]d)/.exec(e),wd=/\b(iP[ao]d)/.exec(e),bd=/Android/i.exec(e),Zy=/FBAN\/\w+;/i.exec(e),Qy=/Mobile/i.exec(e),Xy=!!/Win64/.exec(e),t){Vn=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Vn&&document&&document.documentMode&&(Vn=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);Ky=n?parseFloat(n[1])+4:Vn,gd=t[2]?parseFloat(t[2]):NaN,md=t[3]?parseFloat(t[3]):NaN,yl=t[4]?parseFloat(t[4]):NaN,yl?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),bl=t&&t[1]?parseFloat(t[1]):NaN):bl=NaN}else Vn=gd=md=bl=yl=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);xl=i?parseFloat(i[1].replace("_",".")):!0}else xl=!1;vd=!!r[2],yd=!!r[3]}else xl=vd=yd=!1}}var Cd={ie:function(){return qt()||Vn},ieCompatibilityMode:function(){return qt()||Ky>Vn},ie64:function(){return Cd.ie()&&Xy},firefox:function(){return qt()||gd},opera:function(){return qt()||md},webkit:function(){return qt()||yl},safari:function(){return Cd.webkit()},chrome:function(){return qt()||bl},windows:function(){return qt()||vd},osx:function(){return qt()||xl},linux:function(){return qt()||yd},iphone:function(){return qt()||xd},mobile:function(){return qt()||xd||wd||bd||Qy},nativeApp:function(){return qt()||Zy},android:function(){return qt()||bd},ipad:function(){return qt()||wd}},BY=Cd,wl=!!(typeof window<"u"&&window.document&&window.document.createElement),NY={canUseDOM:wl,canUseWorkers:typeof Worker<"u",canUseEventListeners:wl&&!!(window.addEventListener||window.attachEvent),canUseViewport:wl&&!!window.screen,isInWorker:!wl},zY=NY,Jy=zY,eb;Jy.canUseDOM&&(eb=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
|
|
146
146
|
* Checks if an event is supported in the current execution environment.
|
|
147
147
|
*
|
|
148
148
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
@@ -155,7 +155,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
155
155
|
* @return {boolean} True if the event is supported.
|
|
156
156
|
* @internal
|
|
157
157
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
158
|
-
*/function
|
|
158
|
+
*/function VY(e,t){if(!Jy.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&eb&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var WY=VY,HY=BY,UY=WY,tb=10,rb=40,nb=800;function ib(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*tb,i=r*tb,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=rb,i*=rb):(n*=nb,i*=nb)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}ib.getEventType=function(){return HY.firefox()?"DOMMouseScroll":UY("wheel")?"wheel":"mousewheel"};var YY=ib,GY=YY;const qY=xn(GY);function KY(e,t,r,n,i,o){o===void 0&&(o=0);var a=no(e,t,o),s=a.width,u=a.height,l=Math.min(s,r),c=Math.min(u,n);return l>c*i?{width:c*i,height:c}:{width:l,height:l/i}}function XY(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function Cl(e,t,r,n,i){i===void 0&&(i=0);var o=no(t.width,t.height,i),a=o.width,s=o.height;return{x:ob(e.x,a,r.width,n),y:ob(e.y,s,r.height,n)}}function ob(e,t,r,n){var i=t*n/2-r/2;return Sl(e,-i,i)}function ab(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function sb(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function ZY(e,t,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=!0);var s=a?QY:JY,u=no(t.width,t.height,o),l=no(t.naturalWidth,t.naturalHeight,o),c={x:s(100,((u.width-r.width/i)/2-e.x/i)/u.width*100),y:s(100,((u.height-r.height/i)/2-e.y/i)/u.height*100),width:s(100,r.width/u.width*100/i),height:s(100,r.height/u.height*100/i)},f=Math.round(s(l.width,c.width*l.width/100)),d=Math.round(s(l.height,c.height*l.height/100)),h=l.width>=l.height*n,m=h?{width:Math.round(d*n),height:d}:{width:f,height:Math.round(f/n)},p=Nt(Nt({},m),{x:Math.round(s(l.width-m.width,c.x*l.width/100)),y:Math.round(s(l.height-m.height,c.y*l.height/100))});return{croppedAreaPercentages:c,croppedAreaPixels:p}}function QY(e,t){return Math.min(e,Math.max(0,t))}function JY(e,t){return t}function eG(e,t,r,n,i,o){var a=no(t.width,t.height,r),s=Sl(n.width/a.width*(100/e.width),i,o),u={x:s*a.width/2-n.width/2-a.width*s*(e.x/100),y:s*a.height/2-n.height/2-a.height*s*(e.y/100)};return{crop:u,zoom:s}}function tG(e,t,r){var n=XY(t);return r.height>r.width?r.height/(e.height*n):r.width/(e.width*n)}function rG(e,t,r,n,i,o){r===void 0&&(r=0);var a=no(t.naturalWidth,t.naturalHeight,r),s=Sl(tG(e,t,n),i,o),u=n.height>n.width?n.height/e.height:n.width/e.width,l={x:((a.width-e.width)/2-e.x)*u,y:((a.height-e.height)/2-e.y)*u};return{crop:l,zoom:s}}function lb(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function nG(e){return e*Math.PI/180}function no(e,t,r){var n=nG(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}function Sl(e,t,r){return Math.min(Math.max(e,t),r)}function El(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(r){return typeof r=="string"&&r.length>0}).join(" ").trim()}var iG=`.reactEasyCrop_Container {
|
|
159
159
|
position: absolute;
|
|
160
160
|
top: 0;
|
|
161
161
|
left: 0;
|
|
@@ -235,14 +235,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
235
235
|
border-left: 0;
|
|
236
236
|
border-right: 0;
|
|
237
237
|
}
|
|
238
|
-
`,$Y=1,AY=3,kY=function(e){cY(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.imageRef=m.createRef(),r.videoRef=m.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc=typeof document<"u"?document:null,r.currentWindow=typeof window<"u"?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!r.containerRef)){var n=!0;r.resizeObserver=new window.ResizeObserver(function(i){if(n){n=!1;return}r.computeSizes()}),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(n){return n.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var n=r.computeSizes();n&&(r.emitCropData(),r.setInitialCrop(n)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(n){if(r.props.initialCroppedAreaPercentages){var i=OY(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=i.crop,a=i.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}else if(r.props.initialCroppedAreaPixels){var s=PY(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=s.crop,a=s.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var n,i,o,a,s,c,l=r.imageRef.current||r.videoRef.current;if(l&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var u=r.containerRect.width/r.containerRect.height,f=((n=r.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((i=r.videoRef.current)===null||i===void 0?void 0:i.videoWidth)||0,d=((o=r.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((a=r.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,h=l.offsetWidth<f||l.offsetHeight<d,g=f/d,p=void 0;if(h){var v=r.getObjectFit();switch(v){default:case"contain":p=u>g?{width:r.containerRect.height*g,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/g};break;case"horizontal-cover":p={width:r.containerRect.width,height:r.containerRect.width/g};break;case"vertical-cover":p={width:r.containerRect.height*g,height:r.containerRect.height};break}}else p={width:l.offsetWidth,height:l.offsetHeight};r.mediaSize=Ft(Ft({},p),{naturalWidth:f,naturalHeight:d}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var x=r.props.cropSize?r.props.cropSize:xY(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(((s=r.state.cropSize)===null||s===void 0?void 0:s.height)!==x.height||((c=r.state.cropSize)===null||c===void 0?void 0:c.width)!==x.width)&&r.props.onCropSizeChange&&r.props.onCropSizeChange(x),r.setState({cropSize:x},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(x),x}},r.onMouseDown=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(n)))},r.onMouseMove=function(n){return r.onDrag(t.getMousePoint(n))},r.onTouchStart=function(n){r.currentDoc&&(r.isTouching=!0,!(r.props.onTouchRequest&&!r.props.onTouchRequest(n))&&(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),n.touches.length===2?r.onPinchStart(n):n.touches.length===1&&r.onDragStart(t.getTouchPoint(n.touches[0]))))},r.onTouchMove=function(n){n.preventDefault(),n.touches.length===2?r.onPinchMove(n):n.touches.length===1&&r.onDrag(t.getTouchPoint(n.touches[0]))},r.onGestureStart=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(n){if(n.preventDefault(),!r.isTouching){var i=t.getMousePoint(n),o=r.gestureZoomStart-1+n.scale;if(r.setNewZoom(o,i,{shouldUpdatePosition:!0}),r.props.onRotationChange){var a=r.gestureRotationStart+n.rotation;r.props.onRotationChange(a)}}},r.onGestureEnd=function(n){r.cleanEvents()},r.onDragStart=function(n){var i,o,a=n.x,s=n.y;r.dragStartPosition={x:a,y:s},r.dragStartCrop=Ft({},r.props.crop),(o=(i=r.props).onInteractionStart)===null||o===void 0||o.call(i)},r.onDrag=function(n){var i=n.x,o=n.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame(function(){if(r.state.cropSize&&!(i===void 0||o===void 0)){var a=i-r.dragStartPosition.x,s=o-r.dragStartPosition.y,c={x:r.dragStartCrop.x+a,y:r.dragStartCrop.y+s},l=r.props.restrictPosition?cl(c,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):c;r.props.onCropChange(l)}}))},r.onDragStopped=function(){var n,i;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),(i=(n=r.props).onInteractionEnd)===null||i===void 0||i.call(n)},r.onWheel=function(n){if(r.currentWindow&&!(r.props.onWheelRequest&&!r.props.onWheelRequest(n))){n.preventDefault();var i=t.getMousePoint(n),o=bY(n).pixelY,a=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(a,i,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},function(){var s,c;return(c=(s=r.props).onInteractionStart)===null||c===void 0?void 0:c.call(s)}),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout(function(){return r.setState({hasWheelJustStarted:!1},function(){var s,c;return(c=(s=r.props).onInteractionEnd)===null||c===void 0?void 0:c.call(s)})},250)}},r.getPointOnContainer=function(n){var i=n.x,o=n.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(i-r.containerRect.left),y:r.containerRect.height/2-(o-r.containerRect.top)}},r.getPointOnMedia=function(n){var i=n.x,o=n.y,a=r.props,s=a.crop,c=a.zoom;return{x:(i+s.x)/c,y:(o+s.y)/c}},r.setNewZoom=function(n,i,o){var a=o===void 0?{}:o,s=a.shouldUpdatePosition,c=s===void 0?!0:s;if(!(!r.state.cropSize||!r.props.onZoomChange)){var l=ul(n,r.props.minZoom,r.props.maxZoom);if(c){var u=r.getPointOnContainer(i),f=r.getPointOnMedia(u),d={x:f.x*l-u.x,y:f.y*l-u.y},h=r.props.restrictPosition?cl(d,r.mediaSize,r.state.cropSize,l,r.props.rotation):d;r.props.onCropChange(h)}r.props.onZoomChange(l)}},r.getCropData=function(){if(!r.state.cropSize)return null;var n=r.props.restrictPosition?cl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;return SY(n,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition)},r.emitCropData=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(i,o),r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.emitCropAreaChange=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var n=r.props.restrictPosition?cl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(n),r.emitCropData()}},r}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=_Y,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var r,n;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(r=this.resizeObserver)===null||r===void 0||r.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((n=this.styleRef.parentNode)===null||n===void 0||n.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(r){var n,i,o,a,s,c,l,u,f;r.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):r.aspect!==this.props.aspect?this.computeSizes():r.zoom!==this.props.zoom?this.recomputeCropPosition():((n=r.cropSize)===null||n===void 0?void 0:n.height)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.height)||((o=r.cropSize)===null||o===void 0?void 0:o.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=r.crop)===null||s===void 0?void 0:s.x)!==((c=this.props.crop)===null||c===void 0?void 0:c.x)||((l=r.crop)===null||l===void 0?void 0:l.y)!==((u=this.props.crop)===null||u===void 0?void 0:u.y))&&this.emitCropAreaChange(),r.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),r.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load())},t.prototype.getAspect=function(){var r=this.props,n=r.cropSize,i=r.aspect;return n?n.width/n.height:i},t.prototype.getObjectFit=function(){var r,n,i,o;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,c=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,l=((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((o=this.videoRef.current)===null||o===void 0?void 0:o.videoHeight)||0,u=c/l;return u<s?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(r){var n=t.getTouchPoint(r.touches[0]),i=t.getTouchPoint(r.touches[1]);this.lastPinchDistance=Ny(n,i),this.lastPinchRotation=zy(n,i),this.onDragStart(By(n,i))},t.prototype.onPinchMove=function(r){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var i=t.getTouchPoint(r.touches[0]),o=t.getTouchPoint(r.touches[1]),a=By(i,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var s=Ny(i,o),c=n.props.zoom*(s/n.lastPinchDistance);n.setNewZoom(c,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=s;var l=zy(i,o),u=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(u),n.lastPinchRotation=l})}},t.prototype.render=function(){var r=this,n=this.props,i=n.image,o=n.video,a=n.mediaProps,s=n.transform,c=n.crop,l=c.x,u=c.y,f=n.rotation,d=n.zoom,h=n.cropShape,g=n.showGrid,p=n.style,v=p.containerStyle,x=p.cropAreaStyle,b=p.mediaStyle,S=n.classes,O=S.containerClassName,w=S.cropAreaClassName,T=S.mediaClassName,E=this.getObjectFit();return m.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(k){return r.containerRef=k},"data-testid":"container",style:v,className:fl("reactEasyCrop_Container",O)},i?m.createElement("img",Ft({alt:"",className:fl("reactEasyCrop_Image",E==="contain"&&"reactEasyCrop_Contain",E==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",E==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",T)},a,{src:i,ref:this.imageRef,style:Ft(Ft({},b),{transform:s||"translate(".concat(l,"px, ").concat(u,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):o&&m.createElement("video",Ft({autoPlay:!0,loop:!0,muted:!0,className:fl("reactEasyCrop_Video",E==="contain"&&"reactEasyCrop_Contain",E==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",E==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",T)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Ft(Ft({},b),{transform:s||"translate(".concat(l,"px, ").concat(u,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map(function(P){return m.createElement("source",Ft({key:P.src},P))})),this.state.cropSize&&m.createElement("div",{style:Ft(Ft({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:fl("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:AY,minZoom:$Y,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t.getTouchPoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t}(m.Component);const DY=e=>new Promise((t,r)=>{const n=new Image;n.addEventListener("load",()=>t(n)),n.addEventListener("error",i=>r(i)),n.setAttribute("crossOrigin","anonymous"),n.src=e});function Wy(e){return e*Math.PI/180}function IY(e,t,r){const n=Wy(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}async function jY(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await DY(e),o=document.createElement("canvas"),a=o.getContext("2d");if(!a)return null;const s=Wy(r),{width:c,height:l}=IY(i.width,i.height,r);o.width=c,o.height=l,a.translate(c/2,l/2),a.rotate(s),a.scale(n.horizontal?-1:1,n.vertical?-1:1),a.translate(-i.width/2,-i.height/2),a.drawImage(i,0,0);const u=a.getImageData(t.x,t.y,t.width,t.height);return o.width=t.width,o.height=t.height,a.putImageData(u,0,0),new Promise((f,d)=>{o.toBlob(h=>{f(h)},"image/png")})}const Vy=({title:e,open:t,onClose:r,onFileCropped:n,image:{width:i,height:o,aspect:a,imgSrc:s=""}})=>{const[c,l]=m.useState({x:0,y:0}),[u,f]=m.useState(1),d=m.useRef(),h=m.useRef(),g=async(x,b)=>{try{const S=await jY(s,b,0);d.current=new File([S],"image.png",{type:S.type})}catch{n(void 0)}},p=async()=>{n(h.current),r()},v=()=>{n(d.current),h.current=d.current,r()};return y.jsxs(_.Dialog,{open:t,scroll:"body",PaperProps:{sx:{maxWidth:"100%"}},children:[y.jsx(_.DialogTitle,{children:e}),y.jsx(_.DialogContent,{children:y.jsx(_.Stack,{position:"relative",alignItems:"center",justifyContent:"center",style:{position:"relative",width:i*1.1,height:o*1.1,margin:"auto"},children:y.jsx(kY,{image:s,crop:c,zoom:u,minZoom:1,maxZoom:5,cropSize:{width:i,height:o},aspect:a,onCropChange:l,onZoomChange:f,onCropComplete:g,objectFit:"horizontal-cover"})})}),y.jsxs(_.DialogActions,{children:[y.jsxs(_.Stack,{direction:"row",gap:3,flex:1,alignItems:"center",maxWidth:200,mr:"auto",children:[y.jsx(_.Typography,{variant:"body1",children:"Zoom"}),y.jsx(_.Slider,{value:u,onChange:(x,b)=>f(Array.isArray(b)?b[0]:b),min:1,max:5,size:"medium",step:.5})]}),y.jsx(_.Button,{variant:"soft",size:"medium",onClick:p,children:"Descartar"}),y.jsx(_.Button,{variant:"contained",size:"medium",onClick:v,children:"Salvar"})]})]})},LY=$t(_.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",i=t.variant==="outlined",o=t.variant==="soft",a={...t.color==="default"&&{...i&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${V(e.palette.grey[500],.32)}`},...o&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:V(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...i&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...o&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:V(e.palette[t.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:e.spacing(0,1),color:e.palette.grey[800],fontSize:e.typography.pxToRem(12),fontFamily:e.typography.fontFamily,backgroundColor:e.palette.grey[300],fontWeight:e.typography.fontWeightBold,...s,...a}}),Hy=m.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:i,sx:o,...a},s)=>{const c=ii(),l={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return y.jsxs(LY,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...o},theme:c,...a,children:[n&&y.jsxs(_.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&y.jsxs(_.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});Hy.displayName="Label";function FY(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const RY=$t("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${V(t.palette.grey[500],.12)}`,o={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},s={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},c={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...o,left:20},...e==="top-center"&&{...o,left:0,right:0,margin:"auto"},...e==="top-right"&&{...o,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...s,top:20},...e==="left-center"&&{...s,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...s,bottom:20},...e==="right-top"&&{...c,top:20},...e==="right-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...c,bottom:20}}}),NY=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...o})=>{const{style:a,anchorOrigin:s,transformOrigin:c}=FY(r);return y.jsxs(_.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:c,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...o,children:[!n&&y.jsx(RY,{arrow:r}),t]})},zY=({children:e,container:t})=>vd.createPortal(e,document.getElementById(t)||document.body);var BY=!!(typeof window<"u"&&window.document&&window.document.createElement),WY=BY;const Uy=dn(WY);var Yi=function(){return Yi=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Yi.apply(this,arguments)},Gi=null,Yy=null;Uy&&window.addEventListener("resize",function(){Yy!==window.devicePixelRatio&&(Yy=window.devicePixelRatio,Gi=null)});function Gy(){if(Gi===null){if(typeof document>"u")return Gi=0,Gi;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),Gi=r}return Gi}function qy(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Ky(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Xy=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(s,c){return c.toUpperCase()});switch(i.value){case"true":n[a]=!0;break;case"false":n[a]=!1;break;case void 0:n[a]=!0;break;default:n[a]=i.value}}return n},t);return r};function Zy(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Qy(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Jy(e){return".".concat(e.split(" ").join("."))}var VY=Object.freeze({__proto__:null,getElementWindow:qy,getElementDocument:Ky,getOptions:Xy,addClasses:Zy,removeClasses:Qy,classNamesToQuery:Jy}),ln=qy,ad=Ky,HY=Xy,cn=Zy,un=Qy,Yt=Jy,dl=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ln(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,cn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){un(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(cn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){un(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var o,a;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(o=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(a=n.isWithinBounds(n.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),a&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,s,c,l,u,f,d,h,g,p;if(!(!n.draggedAxis||!n.contentWrapperEl)){var v,x=n.axis[n.draggedAxis].track,b=(a=(o=x.rect)===null||o===void 0?void 0:o[n.axis[n.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,S=n.axis[n.draggedAxis].scrollbar,O=(c=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,w=parseInt((u=(l=n.elStyles)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].sizeAttr])!==null&&u!==void 0?u:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?v=i.pageY:v=i.pageX;var T=v-((d=(f=x.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;T=n.draggedAxis==="x"&&n.isRtl?((g=(h=x.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:0)-S.size-T:T;var E=T/(b-S.size),P=E*(O-w);n.draggedAxis==="x"&&n.isRtl&&(P=!((p=e.getRtlHelpers())===null||p===void 0)&&p.isScrollingToNegative?-P:P),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){var o=ad(n.el),a=ln(n.el);i.preventDefault(),i.stopPropagation(),un(n.el,n.classNames.dragging),o.removeEventListener("mousemove",n.drag,!0),o.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",n.preventClick,!0),o.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=Yi(Yi({},e.defaultOptions),r),this.classNames=Yi(Yi({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=uv(this._onMouseMove,64),this.onWindowResize=Vo(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vo(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vo(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),o=e.getOffset(n);r.scrollLeft=-999;var a=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Gy()}catch{return Gy()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=ad(t),i=ln(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Uy&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Yt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Yt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Yt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Yt(this.classNames.offset)),this.maskEl=this.el.querySelector(Yt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Yt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Yt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Yt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Yt(this.classNames.track)).concat(Yt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Yt(this.classNames.track)).concat(Yt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Yt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Yt(this.classNames.scrollbar)))||null,this.options.autoHide||(cn(this.axis.x.scrollbar.el,this.classNames.visible),cn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=ln(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=n.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ln(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var c=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||l,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&l>r,this.axis.y.isOverflowing=c>u,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>u-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,a=o/i,s;return s=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var u=l/(a-c),f=~~((s-o.size)*u);f=t==="x"&&this.isRtl?-f+(s-o.size):f,o.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(cn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(un(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),cn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?cn(r.scrollbar.el,this.classNames.hover):un(r.scrollbar.el,this.classNames.hover)):(un(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),un(this.axis[t].track.el,this.classNames.hover),un(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var i=ad(this.el),o=ln(this.el),a=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=a.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,cn(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,o,a,s;r===void 0&&(r="y");var c=this.axis[r];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=ln(this.el);this.axis[r].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var u=this.axis[r].scrollbar,f=(o=(i=u.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((s=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),h=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],g=r==="y"?this.mouseY-f:this.mouseX-f,p=g<0?-1:1,v=p===-1?h-d:h+d,x=40,b=function(){n.contentWrapperEl&&(p===-1?h>v&&(h-=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)):h<v&&(h+=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ln(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=HY,e.helpers=VY,e}(),rr=function(){return rr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},rr.apply(this,arguments)};function UY(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var eb=be.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,o=UY(e,["children","scrollableNodeProps"]),a=be.useRef(),s=be.useRef(),c=be.useRef(),l={},u={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(dl.defaultOptions,h)?l[h]=o[h]:u[h]=o[h]});var f=rr(rr({},dl.defaultOptions.classNames),l.classNames),d=rr(rr({},i),{className:"".concat(f.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":l.ariaLabel||dl.defaultOptions.ariaLabel});return be.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,a.current&&(h=new dl(a.current,rr(rr(rr({},l),s.current&&{scrollableNode:s.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),be.createElement("div",rr({"data-simplebar":"init",ref:a},u),be.createElement("div",{className:f.wrapper},be.createElement("div",{className:f.heightAutoObserverWrapperEl},be.createElement("div",{className:f.heightAutoObserverEl})),be.createElement("div",{className:f.mask},be.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:rr(rr({},d),{ref:s}),contentNodeRef:c,contentNodeProps:{className:f.contentEl,ref:c}}):be.createElement("div",rr({},d),be.createElement("div",{className:f.contentEl},r)))),be.createElement("div",{className:f.placeholder})),be.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},be.createElement("div",{className:f.scrollbar})),be.createElement("div",{className:"".concat(f.track," simplebar-vertical")},be.createElement("div",{className:f.scrollbar})))});eb.displayName="SimpleBar";const YY=$t("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),GY=$t(eb)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:V(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),qY=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?y.jsx(_.Box,{sx:{overflowX:"auto",...t},...r,children:e}):y.jsx(YY,{children:y.jsx(GY,{clickOnTrack:!1,sx:t,...r,children:e})})},KY=m.memo(qY),XY=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:i,rules:r,render:({field:o,fieldState:{error:a}})=>y.jsx(Qc,{...o,...n,onChange:s=>o.onChange(s),error:!!a,helperText:(a==null?void 0:a.message)||t})})},ZY=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:i,rules:t,render:({field:{ref:o,onChange:a,...s},fieldState:{error:c}})=>y.jsx(k1,{...s,onChangeColor:a,inputRef:o,fullWidth:!0,error:!!c,helperText:(c==null?void 0:c.message)||r,...n})})},QY=({name:e,...t})=>{const{control:r}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(Qi.DatePicker,{inputRef:n,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},JY=({name:e,label:t,...r})=>{const{control:n,setError:i}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:n,render:({field:{value:o,onChange:a},fieldState:{error:s}})=>y.jsx(Qi.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...r.localeText},value:[(o==null?void 0:o.startDate)||null,(o==null?void 0:o.endDate)||null],onChange:c=>a({startDate:c[0],endDate:c[1]}),onError:c=>{i(e,{message:c[0]||c[1]||void 0})},...r,slotProps:{textField:({position:c})=>{var l;return{...(l=r.slotProps)==null?void 0:l.textField,error:!!s,helperText:s==null?void 0:s.message,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:c==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`}}},sx:{width:1}})})},eG=({name:e,...t})=>{const{control:r}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(Qi.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:n,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},tb=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:i,rules:r,render:({field:{ref:o,...a},fieldState:{error:s}})=>y.jsx(_.TextField,{...a,inputRef:o,fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...n})})},tG=({id:e,children:t,onSubmit:r,methods:n})=>y.jsx(Tt.FormProvider,{...n,children:y.jsx(_.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,children:t})}),rG=e=>{const[t,r]=m.useState(!1);return y.jsx(tb,{...e,type:t?"text":"password",InputProps:{endAdornment:y.jsx(_.InputAdornment,{position:"end",children:y.jsx(_.IconButton,{onClick:()=>r(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",children:y.jsx(jt,{icon:t?"eva:eye-off-fill":"eva:eye-fill"})})})}})},nG=({name:e,helperText:t,...r})=>{const{control:n}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:n,render:({field:i,fieldState:{error:o}})=>y.jsxs("div",{children:[y.jsx(_.FormControlLabel,{control:y.jsx(_.Switch,{...i,checked:i.value}),...r}),(!!o||t)&&y.jsx(_.FormHelperText,{error:!!o,children:o?o==null?void 0:o.message:t})]})})},iG=({name:e,...t})=>{const{control:r}=Tt.useFormContext();return y.jsx(Tt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(Qi.TimePicker,{ampm:!1,format:"HH:mm",inputRef:n,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})};function qi(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(u){try{l(n.next(u))}catch(f){a(f)}}function c(u){try{l(n.throw(u))}catch(f){a(f)}}function l(u){u.done?o(u.value):i(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})}function Ki(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(u){l=[6,u],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function rb(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function nb(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var oG=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function aa(e,t){var r=aG(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function aG(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=oG.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var sG=[".DS_Store","Thumbs.db"];function lG(e){return qi(this,void 0,void 0,function(){return Ki(this,function(t){return hl(e)&&cG(e.dataTransfer)?[2,hG(e.dataTransfer,e.type)]:uG(e)?[2,fG(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,dG(e)]:[2,[]]})})}function cG(e){return hl(e)}function uG(e){return hl(e)&&hl(e.target)}function hl(e){return typeof e=="object"&&e!==null}function fG(e){return sd(e.target.files).map(function(t){return aa(t)})}function dG(e){return qi(this,void 0,void 0,function(){var t;return Ki(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return aa(n)})]}})})}function hG(e,t){return qi(this,void 0,void 0,function(){var r,n;return Ki(this,function(i){switch(i.label){case 0:return e.items?(r=sd(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(pG))]):[3,2];case 1:return n=i.sent(),[2,ib(ob(n))];case 2:return[2,ib(sd(e.files).map(function(o){return aa(o)}))]}})})}function ib(e){return e.filter(function(t){return sG.indexOf(t.name)===-1})}function sd(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function pG(e){if(typeof e.webkitGetAsEntry!="function")return ab(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?sb(t):ab(e)}function ob(e){return e.reduce(function(t,r){return nb(nb([],rb(t),!1),rb(Array.isArray(r)?ob(r):[r]),!1)},[])}function ab(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=aa(t);return Promise.resolve(r)}function gG(e){return qi(this,void 0,void 0,function(){return Ki(this,function(t){return[2,e.isDirectory?sb(e):mG(e)]})})}function sb(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function o(){var a=this;t.readEntries(function(s){return qi(a,void 0,void 0,function(){var c,l,u;return Ki(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return c=f.sent(),r(c),[3,4];case 3:return l=f.sent(),n(l),[3,4];case 4:return[3,6];case 5:u=Promise.all(s.map(gG)),i.push(u),o(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}o()})}function mG(e){return qi(this,void 0,void 0,function(){return Ki(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var o=aa(i,e.fullPath);r(o)},function(i){n(i)})})]})})}var vG=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function lb(e){return xG(e)||bG(e)||db(e)||yG()}function yG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
239
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
240
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
241
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
242
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xb(e,t){if(e){if(typeof e=="string")return ud(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ud(e,t)}}function ud(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(c){o=!0,s=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function KG(e){if(Array.isArray(e))return e}function wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wb(Object(r),!0).forEach(function(n){fd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ml(e,t){if(e==null)return{};var r=XG(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var dd=m.forwardRef(function(e,t){var r=e.children,n=ml(e,NG),i=vl(n),o=i.open,a=ml(i,zG);return m.useImperativeHandle(t,function(){return{open:o}},[o]),m.createElement(m.Fragment,null,r(ht(ht({},a),{},{open:o})))});dd.displayName="Dropzone";var Sb={disabled:!1,getFilesFromEvent:lG,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};dd.defaultProps=Sb,dd.propTypes={children:A.func,accept:A.objectOf(A.arrayOf(A.string)),multiple:A.bool,preventDropOnDocument:A.bool,noClick:A.bool,noKeyboard:A.bool,noDrag:A.bool,noDragEventsBubbling:A.bool,minSize:A.number,maxSize:A.number,maxFiles:A.number,disabled:A.bool,getFilesFromEvent:A.func,onFileDialogCancel:A.func,onFileDialogOpen:A.func,useFsAccessApi:A.bool,autoFocus:A.bool,onDragEnter:A.func,onDragLeave:A.func,onDragOver:A.func,onDrop:A.func,onDropAccepted:A.func,onDropRejected:A.func,onError:A.func,validator:A.func};var hd={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ht(ht({},Sb),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,S=t.preventDropOnDocument,O=t.noClick,w=t.noKeyboard,T=t.noDrag,E=t.noDragEventsBubbling,P=t.onError,k=t.validator,F=m.useMemo(function(){return LG(r)},[r]),re=m.useMemo(function(){return jG(r)},[r]),pe=m.useMemo(function(){return typeof v=="function"?v:Cb},[v]),se=m.useMemo(function(){return typeof p=="function"?p:Cb},[p]),q=m.useRef(null),G=m.useRef(null),me=m.useReducer(ZG,hd),Ce=cd(me,2),ke=Ce[0],Oe=Ce[1],D=ke.isFocused,L=ke.isFileDialogActive,X=m.useRef(typeof window<"u"&&window.isSecureContext&&x&&IG()),ee=function(){!X.current&&L&&setTimeout(function(){if(G.current){var ve=G.current.files;ve.length||(Oe({type:"closeDialog"}),se())}},300)};m.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[G,L,se,X]);var H=m.useRef([]),fe=function(ve){q.current&&q.current.contains(ve.target)||(ve.preventDefault(),H.current=[])};m.useEffect(function(){return S&&(document.addEventListener("dragover",vb,!1),document.addEventListener("drop",fe,!1)),function(){S&&(document.removeEventListener("dragover",vb),document.removeEventListener("drop",fe))}},[q,S]),m.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var ce=m.useCallback(function(K){P?P(K):console.error(K)},[P]),ge=m.useCallback(function(K){K.preventDefault(),K.persist(),mr(K),H.current=[].concat(VG(H.current),[K.target]),gl(K)&&Promise.resolve(i(K)).then(function(ve){if(!(pl(K)&&!E)){var st=ve.length,I=st>0&&$G({files:ve,accept:F,minSize:a,maxSize:o,multiple:s,maxFiles:c,validator:k}),M=st>0&&!I;Oe({isDragAccept:I,isDragReject:M,isDragActive:!0,type:"setDraggedFiles"}),l&&l(K)}}).catch(function(ve){return ce(ve)})},[i,l,ce,E,F,a,o,s,c,k]),Z=m.useCallback(function(K){K.preventDefault(),K.persist(),mr(K);var ve=gl(K);if(ve&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ve&&f&&f(K),!1},[f,E]),Q=m.useCallback(function(K){K.preventDefault(),K.persist(),mr(K);var ve=H.current.filter(function(I){return q.current&&q.current.contains(I)}),st=ve.indexOf(K.target);st!==-1&&ve.splice(st,1),H.current=ve,!(ve.length>0)&&(Oe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),gl(K)&&u&&u(K))},[q,u,E]),ne=m.useCallback(function(K,ve){var st=[],I=[];K.forEach(function(M){var N=gb(M,F),z=cd(N,2),we=z[0],Ee=z[1],Re=mb(M,a,o),$=cd(Re,2),j=$[0],ue=$[1],oe=k?k(M):null;if(we&&j&&!oe)st.push(M);else{var ie=[Ee,ue];oe&&(ie=ie.concat(oe)),I.push({file:M,errors:ie.filter(function(Pe){return Pe})})}}),(!s&&st.length>1||s&&c>=1&&st.length>c)&&(st.forEach(function(M){I.push({file:M,errors:[_G]})}),st.splice(0)),Oe({acceptedFiles:st,fileRejections:I,type:"setFiles"}),d&&d(st,I,ve),I.length>0&&g&&g(I,ve),st.length>0&&h&&h(st,ve)},[Oe,s,F,a,o,c,d,h,g,k]),ye=m.useCallback(function(K){K.preventDefault(),K.persist(),mr(K),H.current=[],gl(K)&&Promise.resolve(i(K)).then(function(ve){pl(K)&&!E||ne(ve,K)}).catch(function(ve){return ce(ve)}),Oe({type:"reset"})},[i,ne,ce,E]),R=m.useCallback(function(){if(X.current){Oe({type:"openDialog"}),pe();var K={multiple:s,types:re};window.showOpenFilePicker(K).then(function(ve){return i(ve)}).then(function(ve){ne(ve,null),Oe({type:"closeDialog"})}).catch(function(ve){FG(ve)?(se(ve),Oe({type:"closeDialog"})):RG(ve)?(X.current=!1,G.current?(G.current.value=null,G.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ce(ve)});return}G.current&&(Oe({type:"openDialog"}),pe(),G.current.value=null,G.current.click())},[Oe,pe,se,x,ne,ce,re,s]),Fe=m.useCallback(function(K){!q.current||!q.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),R())},[q,R]),le=m.useCallback(function(){Oe({type:"focus"})},[]),ut=m.useCallback(function(){Oe({type:"blur"})},[]),qt=m.useCallback(function(){O||(DG()?setTimeout(R,0):R())},[O,R]),Nt=function(ve){return n?null:ve},Wr=function(ve){return w?null:Nt(ve)},gr=function(ve){return T?null:Nt(ve)},mr=function(ve){E&&ve.stopPropagation()},ca=m.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,st=ve===void 0?"ref":ve,I=K.role,M=K.onKeyDown,N=K.onFocus,z=K.onBlur,we=K.onClick,Ee=K.onDragEnter,Re=K.onDragOver,$=K.onDragLeave,j=K.onDrop,ue=ml(K,BG);return ht(ht(fd({onKeyDown:Wr(Mr(M,Fe)),onFocus:Wr(Mr(N,le)),onBlur:Wr(Mr(z,ut)),onClick:Nt(Mr(we,qt)),onDragEnter:gr(Mr(Ee,ge)),onDragOver:gr(Mr(Re,Z)),onDragLeave:gr(Mr($,Q)),onDrop:gr(Mr(j,ye)),role:typeof I=="string"&&I!==""?I:"presentation"},st,q),!n&&!w?{tabIndex:0}:{}),ue)}},[q,Fe,le,ut,qt,ge,Z,Q,ye,w,T,n]),fn=m.useCallback(function(K){K.stopPropagation()},[]),Ln=m.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,st=ve===void 0?"ref":ve,I=K.onChange,M=K.onClick,N=ml(K,WG),z=fd({accept:F,multiple:s,type:"file",style:{display:"none"},onChange:Nt(Mr(I,ye)),onClick:Nt(Mr(M,fn)),tabIndex:-1},st,G);return ht(ht({},z),N)}},[G,r,s,ye,n]);return ht(ht({},ke),{},{isFocused:D&&!n,getRootProps:ca,getInputProps:Ln,rootRef:q,inputRef:G,open:Nt(R)})}function ZG(e,t){switch(t.type){case"focus":return ht(ht({},e),{},{isFocused:!0});case"blur":return ht(ht({},e),{},{isFocused:!1});case"openDialog":return ht(ht({},hd),{},{isFileDialogActive:!0});case"closeDialog":return ht(ht({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ht(ht({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ht(ht({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ht({},hd);default:return e}}function Cb(){}const QG=()=>{const t=ii().palette.primary.main;return y.jsxs(y.Fragment,{children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[y.jsx("stop",{offset:"0%",stopColor:t}),y.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),y.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},JG=m.memo(QG),eq=({...e})=>{const t=ii(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return y.jsx(_.Box,{...e,children:y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx(JG,{}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[y.jsx("stop",{offset:"0%",stopOpacity:"0"}),y.jsx("stop",{offset:"100%"})]})}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),y.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),y.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),y.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),y.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),y.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),y.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),y.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),y.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),y.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),y.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),y.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},tq=m.memo(eq),rq=["pdf"],nq=["txt"],iq=["psd"],oq=["doc","docx"],aq=["xls","xlsx"],sq=["zip","rar","iso"],lq=["ai","esp"],cq=["ppt","pptx"],uq=["wav","aif","mp3","aac"],fq=["jpg","jpeg","gif","bmp","png","svg"],dq=["m4v","avi","mpg","mp4","webm"],nr=e=>`/assets/icons/files/${e}.svg`;function Tb(e){let t;switch(e==null?void 0:e.includes(Gt(e))){case nq.includes(Gt(e)):t="txt";break;case sq.includes(Gt(e)):t="zip";break;case uq.includes(Gt(e)):t="audio";break;case fq.includes(Gt(e)):t="image";break;case dq.includes(Gt(e)):t="video";break;case oq.includes(Gt(e)):t="word";break;case aq.includes(Gt(e)):t="excel";break;case cq.includes(Gt(e)):t="powerpoint";break;case rq.includes(Gt(e)):t="pdf";break;case iq.includes(Gt(e)):t="photoshop";break;case lq.includes(Gt(e)):t="illustrator";break;default:t=Gt(e)}return t}function hq(e){let t;switch(Tb(e)){case"folder":t=nr("ic_folder");break;case"txt":t=nr("ic_txt");break;case"zip":t=nr("ic_zip");break;case"audio":t=nr("ic_audio");break;case"video":t=nr("ic_video");break;case"word":t=nr("ic_word");break;case"excel":t=nr("ic_excel");break;case"powerpoint":t=nr("ic_power_point");break;case"pdf":t=nr("ic_pdf");break;case"photoshop":t=nr("ic_pts");break;case"illustrator":t=nr("ic_ai");break;case"image":t=nr("ic_img");break;default:t=nr("ic_file")}return t}function Gt(e=""){return e&&e.split(".").pop()||""}function pq(e){return e.split("/").pop()}function pd(e){return typeof e=="string"?{key:e,preview:e,name:pq(e),type:Gt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function yl(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:V(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:V(t,n)}}function gq(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,o=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||o}, ${n||o}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function mq(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function vq(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const Ob={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},yq=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:yl,bgGradient:gq,filterStyles:vq,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:Ob,textGradient:mq},Symbol.toStringTag,{value:"Module"})),Eb=({onDownload:e})=>{const t=ii();return y.jsx(_.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...yl({opacity:.64,color:t.palette.grey[900]})}},children:y.jsx(jt,{icon:"eva:arrow-circle-down-fill",width:24})})},Pb=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:c=""}=pd(e),l=Tb(s||c),u=l==="image"&&r?y.jsx(_.Box,{component:"img",src:c,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):y.jsx(_.Box,{component:"img",src:hq(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?y.jsx(_.Tooltip,{title:a,children:y.jsxs(_.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[u,n&&y.jsx(Eb,{onDownload:n})]})}):y.jsxs(y.Fragment,{children:[u,n&&y.jsx(Eb,{onDownload:n})]})};var Mb={exports:{}};/*! @preserve
|
|
238
|
+
`,oG=1,aG=3,sG=function(e){RY(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.imageRef=g.createRef(),r.videoRef=g.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc=typeof document<"u"?document:null,r.currentWindow=typeof window<"u"?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!r.containerRef)){var n=!0;r.resizeObserver=new window.ResizeObserver(function(i){if(n){n=!1;return}r.computeSizes()}),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(n){return n.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var n=r.computeSizes();n&&(r.emitCropData(),r.setInitialCrop(n)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(n){if(r.props.initialCroppedAreaPercentages){var i=eG(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=i.crop,a=i.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}else if(r.props.initialCroppedAreaPixels){var s=rG(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=s.crop,a=s.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var n,i,o,a,s,u,l=r.imageRef.current||r.videoRef.current;if(l&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var c=r.containerRect.width/r.containerRect.height,f=((n=r.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((i=r.videoRef.current)===null||i===void 0?void 0:i.videoWidth)||0,d=((o=r.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((a=r.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,h=l.offsetWidth<f||l.offsetHeight<d,m=f/d,p=void 0;if(h){var v=r.getObjectFit();switch(v){default:case"contain":p=c>m?{width:r.containerRect.height*m,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/m};break;case"horizontal-cover":p={width:r.containerRect.width,height:r.containerRect.width/m};break;case"vertical-cover":p={width:r.containerRect.height*m,height:r.containerRect.height};break}}else p={width:l.offsetWidth,height:l.offsetHeight};r.mediaSize=Nt(Nt({},p),{naturalWidth:f,naturalHeight:d}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var x=r.props.cropSize?r.props.cropSize:KY(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(((s=r.state.cropSize)===null||s===void 0?void 0:s.height)!==x.height||((u=r.state.cropSize)===null||u===void 0?void 0:u.width)!==x.width)&&r.props.onCropSizeChange&&r.props.onCropSizeChange(x),r.setState({cropSize:x},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(x),x}},r.onMouseDown=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(n)))},r.onMouseMove=function(n){return r.onDrag(t.getMousePoint(n))},r.onTouchStart=function(n){r.currentDoc&&(r.isTouching=!0,!(r.props.onTouchRequest&&!r.props.onTouchRequest(n))&&(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),n.touches.length===2?r.onPinchStart(n):n.touches.length===1&&r.onDragStart(t.getTouchPoint(n.touches[0]))))},r.onTouchMove=function(n){n.preventDefault(),n.touches.length===2?r.onPinchMove(n):n.touches.length===1&&r.onDrag(t.getTouchPoint(n.touches[0]))},r.onGestureStart=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(n){if(n.preventDefault(),!r.isTouching){var i=t.getMousePoint(n),o=r.gestureZoomStart-1+n.scale;if(r.setNewZoom(o,i,{shouldUpdatePosition:!0}),r.props.onRotationChange){var a=r.gestureRotationStart+n.rotation;r.props.onRotationChange(a)}}},r.onGestureEnd=function(n){r.cleanEvents()},r.onDragStart=function(n){var i,o,a=n.x,s=n.y;r.dragStartPosition={x:a,y:s},r.dragStartCrop=Nt({},r.props.crop),(o=(i=r.props).onInteractionStart)===null||o===void 0||o.call(i)},r.onDrag=function(n){var i=n.x,o=n.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame(function(){if(r.state.cropSize&&!(i===void 0||o===void 0)){var a=i-r.dragStartPosition.x,s=o-r.dragStartPosition.y,u={x:r.dragStartCrop.x+a,y:r.dragStartCrop.y+s},l=r.props.restrictPosition?Cl(u,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):u;r.props.onCropChange(l)}}))},r.onDragStopped=function(){var n,i;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),(i=(n=r.props).onInteractionEnd)===null||i===void 0||i.call(n)},r.onWheel=function(n){if(r.currentWindow&&!(r.props.onWheelRequest&&!r.props.onWheelRequest(n))){n.preventDefault();var i=t.getMousePoint(n),o=qY(n).pixelY,a=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(a,i,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},function(){var s,u;return(u=(s=r.props).onInteractionStart)===null||u===void 0?void 0:u.call(s)}),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout(function(){return r.setState({hasWheelJustStarted:!1},function(){var s,u;return(u=(s=r.props).onInteractionEnd)===null||u===void 0?void 0:u.call(s)})},250)}},r.getPointOnContainer=function(n){var i=n.x,o=n.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(i-r.containerRect.left),y:r.containerRect.height/2-(o-r.containerRect.top)}},r.getPointOnMedia=function(n){var i=n.x,o=n.y,a=r.props,s=a.crop,u=a.zoom;return{x:(i+s.x)/u,y:(o+s.y)/u}},r.setNewZoom=function(n,i,o){var a=o===void 0?{}:o,s=a.shouldUpdatePosition,u=s===void 0?!0:s;if(!(!r.state.cropSize||!r.props.onZoomChange)){var l=Sl(n,r.props.minZoom,r.props.maxZoom);if(u){var c=r.getPointOnContainer(i),f=r.getPointOnMedia(c),d={x:f.x*l-c.x,y:f.y*l-c.y},h=r.props.restrictPosition?Cl(d,r.mediaSize,r.state.cropSize,l,r.props.rotation):d;r.props.onCropChange(h)}r.props.onZoomChange(l)}},r.getCropData=function(){if(!r.state.cropSize)return null;var n=r.props.restrictPosition?Cl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;return ZY(n,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition)},r.emitCropData=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(i,o),r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.emitCropAreaChange=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var n=r.props.restrictPosition?Cl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(n),r.emitCropData()}},r}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=iG,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var r,n;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(r=this.resizeObserver)===null||r===void 0||r.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((n=this.styleRef.parentNode)===null||n===void 0||n.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(r){var n,i,o,a,s,u,l,c,f;r.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):r.aspect!==this.props.aspect?this.computeSizes():r.zoom!==this.props.zoom?this.recomputeCropPosition():((n=r.cropSize)===null||n===void 0?void 0:n.height)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.height)||((o=r.cropSize)===null||o===void 0?void 0:o.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=r.crop)===null||s===void 0?void 0:s.x)!==((u=this.props.crop)===null||u===void 0?void 0:u.x)||((l=r.crop)===null||l===void 0?void 0:l.y)!==((c=this.props.crop)===null||c===void 0?void 0:c.y))&&this.emitCropAreaChange(),r.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),r.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load())},t.prototype.getAspect=function(){var r=this.props,n=r.cropSize,i=r.aspect;return n?n.width/n.height:i},t.prototype.getObjectFit=function(){var r,n,i,o;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,u=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,l=((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((o=this.videoRef.current)===null||o===void 0?void 0:o.videoHeight)||0,c=u/l;return c<s?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(r){var n=t.getTouchPoint(r.touches[0]),i=t.getTouchPoint(r.touches[1]);this.lastPinchDistance=ab(n,i),this.lastPinchRotation=sb(n,i),this.onDragStart(lb(n,i))},t.prototype.onPinchMove=function(r){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var i=t.getTouchPoint(r.touches[0]),o=t.getTouchPoint(r.touches[1]),a=lb(i,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var s=ab(i,o),u=n.props.zoom*(s/n.lastPinchDistance);n.setNewZoom(u,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=s;var l=sb(i,o),c=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(c),n.lastPinchRotation=l})}},t.prototype.render=function(){var r=this,n=this.props,i=n.image,o=n.video,a=n.mediaProps,s=n.transform,u=n.crop,l=u.x,c=u.y,f=n.rotation,d=n.zoom,h=n.cropShape,m=n.showGrid,p=n.style,v=p.containerStyle,x=p.cropAreaStyle,b=p.mediaStyle,C=n.classes,E=C.containerClassName,w=C.cropAreaClassName,_=C.mediaClassName,O=this.getObjectFit();return g.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(D){return r.containerRef=D},"data-testid":"container",style:v,className:El("reactEasyCrop_Container",E)},i?g.createElement("img",Nt({alt:"",className:El("reactEasyCrop_Image",O==="contain"&&"reactEasyCrop_Contain",O==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",O==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",_)},a,{src:i,ref:this.imageRef,style:Nt(Nt({},b),{transform:s||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):o&&g.createElement("video",Nt({autoPlay:!0,loop:!0,muted:!0,className:El("reactEasyCrop_Video",O==="contain"&&"reactEasyCrop_Contain",O==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",O==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",_)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Nt(Nt({},b),{transform:s||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map(function(k){return g.createElement("source",Nt({key:k.src},k))})),this.state.cropSize&&g.createElement("div",{style:Nt(Nt({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:El("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:aG,minZoom:oG,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t.getTouchPoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t}(g.Component);const lG=e=>new Promise((t,r)=>{const n=new Image;n.addEventListener("load",()=>t(n)),n.addEventListener("error",i=>r(i)),n.setAttribute("crossOrigin","anonymous"),n.src=e});function ub(e){return e*Math.PI/180}function uG(e,t,r){const n=ub(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}async function cG(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await lG(e),o=document.createElement("canvas"),a=o.getContext("2d");if(!a)return null;const s=ub(r),{width:u,height:l}=uG(i.width,i.height,r);o.width=u,o.height=l,a.translate(u/2,l/2),a.rotate(s),a.scale(n.horizontal?-1:1,n.vertical?-1:1),a.translate(-i.width/2,-i.height/2),a.drawImage(i,0,0);const c=a.getImageData(t.x,t.y,t.width,t.height);return o.width=t.width,o.height=t.height,a.putImageData(c,0,0),new Promise((f,d)=>{o.toBlob(h=>{f(h)},"image/png")})}const cb=({title:e,open:t,onClose:r,onFileCropped:n,image:{width:i,height:o,aspect:a,imgSrc:s=""}})=>{const[u,l]=g.useState({x:0,y:0}),[c,f]=g.useState(1),d=g.useRef(),h=g.useRef(),m=async(x,b)=>{try{const C=await cG(s,b,0);d.current=new File([C],"image.png",{type:C.type})}catch{n(void 0)}},p=async()=>{n(h.current),r()},v=()=>{n(d.current),h.current=d.current,r()};return y.jsxs(P.Dialog,{open:t,scroll:"body",PaperProps:{sx:{maxWidth:"100%"}},children:[y.jsx(P.DialogTitle,{children:e}),y.jsx(P.DialogContent,{children:y.jsx(P.Stack,{position:"relative",alignItems:"center",justifyContent:"center",style:{position:"relative",width:i*1.1,height:o*1.1,margin:"auto"},children:y.jsx(sG,{image:s,crop:u,zoom:c,minZoom:1,maxZoom:5,cropSize:{width:i,height:o},aspect:a,onCropChange:l,onZoomChange:f,onCropComplete:m,objectFit:"horizontal-cover"})})}),y.jsxs(P.DialogActions,{children:[y.jsxs(P.Stack,{direction:"row",gap:3,flex:1,alignItems:"center",maxWidth:200,mr:"auto",children:[y.jsx(P.Typography,{variant:"body1",children:"Zoom"}),y.jsx(P.Slider,{value:c,onChange:(x,b)=>f(Array.isArray(b)?b[0]:b),min:1,max:5,size:"medium",step:.5})]}),y.jsx(P.Button,{variant:"soft",size:"medium",onClick:p,children:"Descartar"}),y.jsx(P.Button,{variant:"contained",size:"medium",onClick:v,children:"Salvar"})]})]})},fG=$t(P.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",i=t.variant==="outlined",o=t.variant==="soft",a={...t.color==="default"&&{...i&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${W(e.palette.grey[500],.32)}`},...o&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:W(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...i&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...o&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:W(e.palette[t.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:e.spacing(0,1),color:e.palette.grey[800],fontSize:e.typography.pxToRem(12),fontFamily:e.typography.fontFamily,backgroundColor:e.palette.grey[300],fontWeight:e.typography.fontWeightBold,...s,...a}}),fb=g.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:i,sx:o,...a},s)=>{const u=mi(),l={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return y.jsxs(fG,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...o},theme:u,...a,children:[n&&y.jsxs(P.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&y.jsxs(P.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});fb.displayName="Label";function gn(e){return typeof e=="string"||e instanceof String}function db(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function hb(e,t){return Array.isArray(t)?hb(e,(r,n)=>t.includes(n)):Object.entries(e).reduce((r,n)=>{let[i,o]=n;return t(o,i)&&(r[i]=o),r},{})}const ye={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function dG(e){switch(e){case ye.LEFT:return ye.FORCE_LEFT;case ye.RIGHT:return ye.FORCE_RIGHT;default:return e}}function Sd(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Tl(e,t){if(t===e)return!0;const r=Array.isArray(t),n=Array.isArray(e);let i;if(r&&n){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!Tl(t[i],e[i]))return!1;return!0}if(r!=n)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){const o=t instanceof Date,a=e instanceof Date;if(o&&a)return t.getTime()==e.getTime();if(o!=a)return!1;const s=t instanceof RegExp,u=e instanceof RegExp;if(s&&u)return t.toString()==e.toString();if(s!=u)return!1;const l=Object.keys(t);for(i=0;i<l.length;i++)if(!Object.prototype.hasOwnProperty.call(e,l[i]))return!1;for(i=0;i<l.length;i++)if(!Tl(e[l[i]],t[l[i]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}class hG{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?ye.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?ye.RIGHT:ye.LEFT}}function _e(e,t){return new _e.InputMask(e,t)}function pb(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?_e.MaskedRegExp:gn(e)?_e.MaskedPattern:e===Date?_e.MaskedDate:e===Number?_e.MaskedNumber:Array.isArray(e)||e===Array?_e.MaskedDynamic:_e.Masked&&e.prototype instanceof _e.Masked?e:_e.Masked&&e instanceof _e.Masked?e.constructor:e instanceof Function?_e.MaskedFunction:(console.warn("Mask not found for mask",e),_e.Masked)}function _l(e){if(!e)throw new Error("Options in not defined");if(_e.Masked){if(e.prototype instanceof _e.Masked)return{mask:e};const{mask:t=void 0,...r}=e instanceof _e.Masked?{mask:e}:db(e)&&e.mask instanceof _e.Masked?e:{};if(t){const n=t.mask;return{...hb(t,(i,o)=>!o.startsWith("_")),mask:t.constructor,_mask:n,...r}}}return db(e)?{...e}:{mask:e}}function Wn(e){if(_e.Masked&&e instanceof _e.Masked)return e;const t=_l(e),r=pb(t.mask);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}_e.createMask=Wn;class Ed{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch{}}get isActive(){return!1}}_e.MaskElement=Ed;class Hn extends Ed{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,r,n;return(t=(r=(n=this.input).getRootNode)==null?void 0:r.call(n))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){Object.keys(t).forEach(r=>this._toggleEventHandler(Hn.EVENTS_MAP[r],t[r]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,r){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),r&&(this.input.addEventListener(t,r),this._handlers[t]=r)}}Hn.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},_e.HTMLMaskElement=Hn;class pG extends Hn{constructor(t){super(t),this.input=t,this._handlers={}}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}_e.HTMLMaskElement=Hn;class gb extends Hn{get _unsafeSelectionStart(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,r);const i=this.rootElement,o=i.getSelection&&i.getSelection();o&&(o.removeAllRanges(),o.addRange(n))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}_e.HTMLContenteditableMaskElement=gb;class gG{constructor(t,r){this.el=t instanceof Ed?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new gb(t):new pG(t),this.masked=Wn(r),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof _e.Masked)&&this.masked.constructor===pb(t)){this.masked.updateOptions({mask:t});return}const r=t instanceof _e.Masked?t:Wn({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){const n=this._listeners[t];n&&n.forEach(i=>i(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,r=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==r;this._unmaskedValue=t,this._value=r,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(t){const{mask:r,...n}=t,i=!this.maskEquals(r),o=!Tl(this.masked,n);i&&(this.mask=r),o&&this.masked.updateOptions(n),(i||o)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ye.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;const n=this._listeners[t].indexOf(r);return n>=0&&this._listeners[t].splice(n,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const r=new hG({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,o=n===this.masked.rawInputValue?r.removeDirection:ye.NONE;let a=this.masked.nearestInputPos(r.startChangePos+i,o);o!==ye.NONE&&(a=this.masked.nearestInputPos(a,ye.NONE)),this.updateControl(),this.updateCursor(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}_e.InputMask=gG;class rt{static normalize(t){return Array.isArray(t)?t:[t,new rt]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}_e.ChangeDetails=rt;class qr{constructor(t,r,n){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=n}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class or{constructor(t){this._value="",this._update({...or.DEFAULTS,...t}),this._initialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new qr(this.extractInput(t,r),t)}appendTail(t){return gn(t)&&(t=new qr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new rt({inserted:t,rawInserted:t})):new rt}_appendChar(t,r,n){r===void 0&&(r={});const i=this.state;let o;if([t,o]=this.doPrepareChar(t,r),o=o.aggregate(this._appendCharRaw(t,r)),o.inserted){let a,s=this.doValidate(r)!==!1;if(s&&n!=null){const u=this.state;this.overwrite===!0&&(a=n.state,n.unshift(this.displayValue.length-o.tailShift));let l=this.appendTail(n);s=l.rawInserted===n.toString(),!(s&&l.inserted)&&this.overwrite==="shift"&&(this.state=u,a=n.state,n.shift(),l=this.appendTail(n),s=l.rawInserted===n.toString()),s&&l.inserted&&(this.state=u)}s||(o=new rt,this.state=i,n&&a&&(n.state=a))}return o}_appendPlaceholder(){return new rt}_appendEager(){return new rt}append(t,r,n){if(!gn(t))throw new Error("value should be string");const i=gn(n)?new qr(String(n)):n;r!=null&&r.tail&&(r._beforeTailState=this.state);let o;[t,o]=this.doPrepare(t,r);for(let a=0;a<t.length;++a){const s=this._appendChar(t[a],r,i);if(!s.rawInserted&&!this.doSkipInvalid(t[a],r,i))break;o.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&o.aggregate(this._appendEager()),i!=null&&(o.tailShift+=this.appendTail(i).tailShift),o}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new rt}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;const r=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=r,this.value&&this.value!==n&&n.indexOf(this.value)===0&&this.append(n.slice(this.displayValue.length),{},""),delete this._refreshing,i}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;const r=this.state,n=t(this);return this.state=r,delete this._isolated,n}doSkipInvalid(t,r,n){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),rt.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),rt.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,n,i,o){i===void 0&&(i=ye.NONE),o===void 0&&(o={input:!0});const a=t+r,s=this.extractTail(a),u=this.eager===!0||this.eager==="remove";let l;u&&(i=dG(i),l=this.extractInput(0,a,{raw:!0}));let c=t;const f=new rt;if(i!==ye.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!u?ye.NONE:i),f.tailShift=c-t),f.aggregate(this.remove(c)),u&&i!==ye.NONE&&l===this.rawInputValue)if(i===ye.FORCE_LEFT){let d;for(;l===this.rawInputValue&&(d=this.displayValue.length);)f.aggregate(new rt({tailShift:-1})).aggregate(this.remove(d-1))}else i===ye.FORCE_RIGHT&&s.unshift();return f.aggregate(this.append(n,o,s))}maskEquals(t){return this.mask===t}typedValueEquals(t){const r=this.typedValue;return t===r||or.EMPTY_VALUES.includes(t)&&or.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}}or.DEFAULTS={skipInvalid:!0},or.EMPTY_VALUES=[void 0,null,""],_e.Masked=or;class Un{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=gn(t)?new qr(String(t)):t;const r=this.chunks[this.chunks.length-1],n=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof qr)n?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof Un){if(t.stop==null){let i;for(;t.chunks.length&&t.chunks[0].stop==null;)i=t.chunks.shift(),i.from+=t.from,this.extend(i)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof _e.MaskedPattern))return new qr(this.toString()).appendTo(t);const r=new rt;for(let n=0;n<this.chunks.length&&!r.skip;++n){const i=this.chunks[n],o=t._mapPosToBlock(t.displayValue.length),a=i.stop;let s;if(a!=null&&(!o||o.index<=a)){if(i instanceof Un||t._stops.indexOf(a)>=0){const u=t._appendPlaceholder(a);r.aggregate(u)}s=i instanceof Un&&t._blocks[a]}if(s){const u=s.appendTail(i);u.skip=!1,r.aggregate(u),t._value+=u.inserted;const l=i.toString().slice(u.rawInserted.length);l&&r.aggregate(t.append(l,{tail:!0}))}else r.aggregate(t.append(i.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:r,...n}=t;Object.assign(this,n),this.chunks=r.map(i=>{const o="chunks"in i?new Un:new qr;return o.state=i,o})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const r=t!=null?t-this.from:t;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],o=i.unshift(r);if(i.toString()){if(!o)break;++n}else this.chunks.splice(n,1);if(o)return o}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const r=this.chunks[t],n=r.shift();if(r.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}class mG{constructor(t,r){this.masked=t,this._log=[];const{offset:n,index:i}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ye.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ye.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ye.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ye.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ye.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ye.NONE),!0})}}class mb{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new rt}nearestInputPos(t,r){r===void 0&&(r=ye.NONE);const n=0,i=this._value.length;switch(r){case ye.LEFT:case ye.FORCE_LEFT:return n;case ye.NONE:case ye.RIGHT:case ye.FORCE_RIGHT:default:return i}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){r===void 0&&(r={});const n=new rt;if(this.isFilled)return n;const i=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!i)&&!r.tail;return a&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=a&&(r.raw||r.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new rt;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new qr("")}appendTail(t){return gn(t)&&(t=new qr(String(t))),t.appendTo(this)}append(t,r,n){const i=this._appendChar(t[0],r);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}}class Ol{constructor(t){const{parent:r,isOptional:n,placeholderChar:i,displayChar:o,lazy:a,eager:s,...u}=t;this.masked=Wn(u),Object.assign(this,{parent:r,isOptional:n,placeholderChar:i,displayChar:o,lazy:a,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new rt}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new rt;const n=this.masked.state,i=this.masked._appendChar(t,this.currentMaskFlags(r));return i.inserted&&this.doValidate(r)===!1&&(i.inserted=i.rawInserted="",this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(t,r,n){return this.masked.append(t,this.currentMaskFlags(r),n)}_appendPlaceholder(){const t=new rt;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new rt}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,n)}nearestInputPos(t,r){r===void 0&&(r=ye.NONE);const n=0,i=this.value.length,o=Math.min(Math.max(t,n),i);switch(r){case ye.LEFT:case ye.FORCE_LEFT:return this.isComplete?o:n;case ye.RIGHT:case ye.FORCE_RIGHT:return this.isComplete?o:i;case ye.NONE:default:return o}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return{...t,_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)}}}Ol.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class vG extends or{updateOptions(t){super.updateOptions(t)}_update(t){const r=t.mask;r&&(t.validate=n=>n.search(r)>=0),super._update(t)}}_e.MaskedRegExp=vG;class ar extends or{constructor(t){super({...ar.DEFAULTS,...t,definitions:Object.assign({},Ol.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const r=this.mask;if(!r||!t)return;let n=!1,i=!1;for(let o=0;o<r.length;++o){if(this.blocks){const l=r.slice(o),c=Object.keys(this.blocks).filter(d=>l.indexOf(d)===0);c.sort((d,h)=>h.length-d.length);const f=c[0];if(f){const{expose:d,...h}=_l(this.blocks[f]),m=Wn({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,...h,parent:this});m&&(this._blocks.push(m),d&&(this.exposeBlock=m),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),o+=f.length-1;continue}}let a=r[o],s=a in t;if(a===ar.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(a==="{"||a==="}"){n=!n;continue}if(a==="["||a==="]"){i=!i;continue}if(a===ar.ESCAPE_CHAR){if(++o,a=r[o],!a)break;s=!1}const u=s?new Ol({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,..._l(t[a]),parent:this}):new mb({char:a,eager:this.eager,isUnmasking:n});this._blocks.push(u)}}get state(){return{...super.state,_blocks:this._blocks.map(t=>t.state)}}set state(t){const{_blocks:r,...n}=t;this._blocks.forEach((i,o)=>i.state=r[o]),super.state=n}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const r=new rt;let n=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(n==null)return r;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const o=this._blocks[i]._appendEager();if(!o.inserted)break;r.aggregate(o)}return r}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._mapPosToBlock(this.displayValue.length),i=new rt;if(!n)return i;for(let a=n.index;;++a){var o;const s=this._blocks[a];if(!s)break;const u=s._appendChar(t,{...r,_beforeTailState:(o=r._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}),l=u.skip;if(i.aggregate(u),l||u.rawInserted)break}return i}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=new Un;return t===r||this._forEachBlocksInRange(t,r,(i,o,a,s)=>{const u=i.extractTail(a,s);u.stop=this._findStopBefore(o),u.from=this._blockStartPos(o),u instanceof Un&&(u.blockIndex=o),n.extend(u)}),n}extractInput(t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),n===void 0&&(n={}),t===r)return"";let i="";return this._forEachBlocksInRange(t,r,(o,a,s,u)=>{i+=o.extractInput(s,u,n)}),i}_findStopBefore(t){let r;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=t)r=i;else break}return r}_appendPlaceholder(t){const r=new rt;if(this.lazy&&t==null)return r;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return r;const i=n.index,o=t??this._blocks.length;return this._blocks.slice(i,o).forEach(a=>{if(!a.lazy||t!=null){var s;const u=a._appendPlaceholder((s=a._blocks)==null?void 0:s.length);this._value+=u.inserted,r.aggregate(u)}}),r}_mapPosToBlock(t){let r="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],o=r.length;if(r+=i.displayValue,t<=r.length)return{index:n,offset:t-o}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,n)=>r+=n.displayValue.length,0)}_forEachBlocksInRange(t,r,n){r===void 0&&(r=this.displayValue.length);const i=this._mapPosToBlock(t);if(i){const o=this._mapPosToBlock(r),a=o&&i.index===o.index,s=i.offset,u=o&&a?o.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,s,u),o&&!a){for(let l=i.index+1;l<o.index;++l)n(this._blocks[l],l,0,this._blocks[l].displayValue.length);n(this._blocks[o.index],o.index,0,o.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._forEachBlocksInRange(t,r,(i,o,a,s)=>{n.aggregate(i.remove(a,s))}),n}nearestInputPos(t,r){if(r===void 0&&(r=ye.NONE),!this._blocks.length)return 0;const n=new mG(this,t);if(r===ye.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(r===ye.LEFT||r===ye.FORCE_LEFT){if(r===ye.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),r===ye.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t||(n.popState(),n.ok&&n.pos<=t))return n.pos;n.popState()}return n.ok?n.pos:r===ye.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return r===ye.RIGHT||r===ye.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:r===ye.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(t,ye.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let n=0;return this._forEachBlocksInRange(t,r,(i,o,a,s)=>{n+=i.totalInputPositions(a,s)}),n}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const r=this._maskedBlocks[t];return r?r.map(n=>this._blocks[n]):[]}}ar.DEFAULTS={lazy:!0,placeholderChar:"_"},ar.STOP_CHAR="`",ar.ESCAPE_CHAR="\\",ar.InputDefinition=Ol,ar.FixedDefinition=mb,_e.MaskedPattern=ar;class kl extends ar{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:r=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:o=this.autofix,...a}=t;this.to=r,this.from=n,this.maxLength=Math.max(String(r).length,i),this.autofix=o;const s=String(this.from).padStart(this.maxLength,"0"),u=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<u.length&&u[l]===s[l];)++l;a.mask=u.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(a)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",n="";const[,i,o]=t.match(/^(\D*)(\d*)(\D*)/)||[];return o&&(r="0".repeat(i.length)+o,n="9".repeat(i.length)+o),r=r.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[r,n]}doPrepareChar(t,r){r===void 0&&(r={});let n;if([t,n]=super.doPrepareChar(t.replace(/\D/g,""),r),!this.autofix||!t)return[t,n];const i=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),a=this.value+t;if(a.length>this.maxLength)return["",n];const[s,u]=this.boundaries(a);return Number(u)<this.from?[i[a.length-1],n]:Number(s)>this.to?this.autofix==="pad"&&a.length<this.maxLength?["",n.aggregate(this.append(i[a.length-1]+t,r))]:[o[a.length-1],n]:[t,n]}doValidate(t){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[i,o]=this.boundaries(r);return this.from<=Number(o)&&Number(i)<=this.to&&super.doValidate(t)}}_e.MaskedRange=kl;class Yn extends ar{constructor(t){const{mask:r,pattern:n,...i}={...Yn.DEFAULTS,...t};super({...i,mask:gn(r)?r:n})}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:r,pattern:n,blocks:i,...o}={...Yn.DEFAULTS,...t},a=Object.assign({},Yn.GET_DEFAULT_BLOCKS());t.min&&(a.Y.from=t.min.getFullYear()),t.max&&(a.Y.to=t.max.getFullYear()),t.min&&t.max&&a.Y.from===a.Y.to&&(a.m.from=t.min.getMonth()+1,a.m.to=t.max.getMonth()+1,a.m.from===a.m.to&&(a.d.from=t.min.getDate(),a.d.to=t.max.getDate())),Object.assign(a,this.blocks,i),Object.keys(a).forEach(s=>{const u=a[s];!("autofix"in u)&&"autofix"in t&&(u.autofix=t.autofix)}),super._update({...o,mask:gn(r)?r:n,blocks:a})}doValidate(t){const r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}Yn.GET_DEFAULT_BLOCKS=()=>({d:{mask:kl,from:1,to:31,maxLength:2},m:{mask:kl,from:1,to:12,maxLength:2},Y:{mask:kl,from:1900,to:9999}}),Yn.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return[r,n,i].join(".")},parse:(e,t)=>{const[r,n,i]=e.split(".").map(Number);return new Date(i,n-1,r)}},_e.MaskedDate=Yn;class ya extends or{constructor(t){super({...ya.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{const{expose:n,...i}=_l(r),o=Wn({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=o),o}):[])}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._applyDispatch(t,r);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),n}_applyDispatch(t,r,n){t===void 0&&(t=""),r===void 0&&(r={}),n===void 0&&(n="");const i=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,o=this.rawInputValue,a=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:o,s=o.slice(a.length),u=this.currentMask,l=new rt,c=u==null?void 0:u.state;if(this.currentMask=this.doDispatch(t,{...r},n),this.currentMask)if(this.currentMask!==u){if(this.currentMask.reset(),a){const f=this.currentMask.append(a,{raw:!0});l.tailShift=f.inserted.length-i.length}s&&(l.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else c&&(this.currentMask.state=c);return l}_appendPlaceholder(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const r=new rt;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,n;return{...t,_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((n=t._beforeTailState)==null?void 0:n.currentMask)||t._beforeTailState}}doDispatch(t,r,n){return r===void 0&&(r={}),n===void 0&&(n=""),this.dispatch(t,this,r,n)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[n,i]=super.doPrepare(t,r);if(this.currentMask){let o;[n,o]=super.doPrepare(n,this.currentMaskFlags(r)),i=i.aggregate(o)}return[n,i]}doPrepareChar(t,r){r===void 0&&(r={});let[n,i]=super.doPrepareChar(t,r);if(this.currentMask){let o;[n,o]=super.doPrepareChar(n,this.currentMaskFlags(r)),i=i.aggregate(o)}return[n,i]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){const n=new rt;return this.currentMask&&n.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),n}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:r,currentMaskRef:n,currentMask:i,...o}=t;r&&this.compiledMasks.forEach((a,s)=>a.state=r[s]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=o}extractInput(t,r,n){return this.currentMask?this.currentMask.extractInput(t,r,n):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,n)=>{if(!t[n])return;const{mask:i,...o}=t[n];return Tl(r,o)&&r.maskEquals(i)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}}ya.DEFAULTS=void 0,ya.DEFAULTS={dispatch:(e,t,r,n)=>{if(!t.compiledMasks.length)return;const i=t.rawInputValue,o=t.compiledMasks.map((a,s)=>{const u=t.currentMask===a,l=u?a.displayValue.length:a.nearestInputPos(a.displayValue.length,ye.FORCE_LEFT);return a.rawInputValue!==i?(a.reset(),a.append(i,{raw:!0})):u||a.remove(l),a.append(e,t.currentMaskFlags(r)),a.appendTail(n),{index:s,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(l,a.nearestInputPos(a.displayValue.length,ye.FORCE_LEFT)))}});return o.sort((a,s)=>s.weight-a.weight||s.totalInputPositions-a.totalInputPositions),t.compiledMasks[o[0].index]}},_e.MaskedDynamic=ya;class yG extends ar{constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:r,...n}=t;if(r){const i=r.map(s=>s.length),o=Math.min(...i),a=Math.max(...i)-o;n.mask="*".repeat(o),a&&(n.mask+="["+"*".repeat(a)+"]"),this.enum=r}super._update(n)}doValidate(t){return this.enum.some(r=>r.indexOf(this.unmaskedValue)===0)&&super.doValidate(t)}}_e.MaskedEnum=yG;class bG extends or{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}_e.MaskedFunction=bG;class dr extends or{constructor(t){super({...dr.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",n=(this.scale?"("+Sd(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Sd).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Sd(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(t,r){r===void 0&&(r=!1);let n=0;for(let i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,r&&(t+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,n))}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.thousandsSeparator)return super._appendCharRaw(t,r);const n=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const o=super._appendCharRaw(t,r);this._value=this._insertThousandsSeparators(this._value);const a=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(a);return o.tailShift+=(s-i)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&t===this.thousandsSeparator,o}_findSeparatorAround(t){if(this.thousandsSeparator){const r=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,r);if(n<=t)return n}return-1}_adjustRangeWithSeparators(t,r){const n=this._findSeparatorAround(t);n>=0&&(t=n);const i=this._findSeparatorAround(r);return i>=0&&(r=i+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);const n=this.value.slice(0,t),i=this.value.slice(r),o=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const a=this._separatorsCountFromSlice(n);return new rt({tailShift:(a-o)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case ye.NONE:case ye.LEFT:case ye.FORCE_LEFT:{const n=this._findSeparatorAround(t-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||r===ye.FORCE_LEFT)return n}break}case ye.RIGHT:case ye.FORCE_RIGHT:{const n=this._findSeparatorAround(t);if(n>=0)return n+this.thousandsSeparator.length}}return t}doValidate(t){let r=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(r){const n=this.number;r=r&&!isNaN(n)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return r&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(t){const r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(n,i,o,a)=>i+a),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,n){r===void 0&&(r={});const i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===dr.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,dr.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(dr.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||dr.EMPTY_VALUES.includes(t)&&dr.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}dr.UNMASKED_RADIX=".",dr.EMPTY_VALUES=[...or.EMPTY_VALUES,0],dr.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[dr.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},_e.MaskedNumber=dr;const Td={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function vb(e,t,r){t===void 0&&(t=Td.MASKED),r===void 0&&(r=Td.MASKED);const n=Wn(e);return i=>n.runIsolated(o=>(o[t]=i,o[r]))}function xG(e,t,r,n){return vb(t,r,n)(e)}_e.PIPE_TYPE=Td,_e.createPipe=vb,_e.pipe=xG;try{globalThis.IMask=_e}catch{}const yb={mask:T.oneOfType([T.array,T.func,T.string,T.instanceOf(RegExp),T.oneOf([Date,Number,_e.Masked]),T.instanceOf(_e.Masked)]),value:T.any,unmask:T.oneOfType([T.bool,T.oneOf(["typed"])]),prepare:T.func,prepareChar:T.func,validate:T.func,commit:T.func,overwrite:T.oneOfType([T.bool,T.oneOf(["shift"])]),eager:T.oneOfType([T.bool,T.oneOf(["append","remove"])]),skipInvalid:T.bool,onAccept:T.func,onComplete:T.func,placeholderChar:T.string,displayChar:T.string,lazy:T.bool,definitions:T.object,blocks:T.object,enum:T.arrayOf(T.string),maxLength:T.number,from:T.number,to:T.number,pattern:T.string,format:T.func,parse:T.func,autofix:T.oneOfType([T.bool,T.oneOf(["pad"])]),radix:T.string,thousandsSeparator:T.string,mapToRadix:T.arrayOf(T.string),scale:T.number,normalizeZeros:T.bool,padFractionalZeros:T.bool,min:T.oneOfType([T.number,T.instanceOf(Date)]),max:T.oneOfType([T.number,T.instanceOf(Date)]),dispatch:T.func,inputRef:T.oneOfType([T.func,T.shape({current:T.object})])},bb=Object.keys(yb).filter(e=>e!=="value"),wG=["value","unmask","onAccept","onComplete","inputRef"],CG=bb.filter(e=>wG.indexOf(e)<0);function SG(e){var t;const r=(t=class extends g.Component{constructor(o){super(o),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const o=this.props,a=this._extractMaskOptionsFromProps(o);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in o&&o.value!==void 0&&(this.maskValue=o.value)):this.initMask(a);else if(this.destroyMask(),"value"in o&&o.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=o.value:this.element.value=o.value}}componentWillUnmount(){this.destroyMask()}_inputRef(o){this.element=o,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=o:this.props.inputRef(o))}initMask(o){o===void 0&&(o=this._extractMaskOptionsFromProps(this.props)),this.maskRef=_e(this.element,o).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(o){const{...a}=o;return Object.keys(a).filter(s=>CG.indexOf(s)<0).forEach(s=>{delete a[s]}),a}_extractNonMaskProps(o){const{...a}=o;return bb.forEach(s=>{delete a[s]}),"defaultValue"in a||(a.defaultValue=o.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(o){this.maskRef&&(o=o==null&&this.props.unmask!=="typed"?"":o,this.props.unmask==="typed"?this.maskRef.typedValue=o:this.props.unmask?this.maskRef.unmaskedValue=o:this.maskRef.value=o)}_onAccept(o){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,o)}_onComplete(o){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,o)}render(){return g.createElement(e,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},t.displayName=void 0,t.propTypes=void 0,t),n=e.displayName||e.name||"Component";return r.displayName="IMask("+n+")",r.propTypes=yb,g.forwardRef((i,o)=>g.createElement(r,{...i,ref:o}))}const EG=SG(e=>{let{inputRef:t,...r}=e;return g.createElement("input",{...r,ref:t})}),TG=(e,t)=>g.createElement(EG,{...e,ref:t});g.forwardRef(TG);function _G(e,t){let{onAccept:r,onComplete:n}=t===void 0?{}:t;const i=g.useRef(null),o=g.useRef(null),[a,s]=g.useState(!1),[u,l]=g.useState({}),[c,f]=g.useState(""),[d,h]=g.useState(""),[m,p]=g.useState(),v=g.useCallback(()=>{var C;a&&((C=o.current)==null||C.destroy(),o.current=null)},[]),x=g.useCallback(C=>{const E=o.current;E&&(l({value:E.value,unmaskedValue:E.unmaskedValue,typedValue:E.typedValue}),p(E.typedValue),h(E.unmaskedValue),f(E.value),r==null||r(E.value,E,C))},[r]),b=g.useCallback(()=>o.current&&(n==null?void 0:n(o.current.value,o.current)),[n]);return g.useEffect(()=>{const C=i.current;if(!C||!(e!=null&&e.mask))return v();const E=o.current;E?E==null||E.updateOptions(e):C&&e!=null&&e.mask&&(o.current=_e(C,e),x()),s(!!o.current)},[e,v,x]),g.useEffect(()=>{if(!o.current)return;const C=o.current;return C.on("accept",x),C.on("complete",b),()=>{C.off("accept",x),C.off("complete",b)}},[x,b]),g.useEffect(()=>{const{value:C,...E}=u,w=o.current;w&&a&&(C!==c&&(w.value=c),l(E))},[c]),g.useEffect(()=>{const{unmaskedValue:C,...E}=u,w=o.current;w&&a&&(C!==d&&(w.unmaskedValue=d),l(E))},[d]),g.useEffect(()=>{const{typedValue:C,...E}=u,w=o.current;w&&a&&(C!==m&&(w.typedValue=m),l(E))},[m]),g.useEffect(()=>v,[v]),{ref:i,maskRef:o,value:c,setValue:f,unmaskedValue:d,setUnmaskedValue:h,typedValue:m,setTypedValue:p}}const _d=g.forwardRef(({name:e,value:t,mask:r,onChange:n,...i},o)=>{const{ref:a,unmaskedValue:s,value:u,maskRef:l}=_G({mask:r});return g.useEffect(()=>{l.current.value=t||""},[l,t]),g.useEffect(()=>{n({target:{name:e,value:s||t||""}})},[e,s,t]),y.jsx(P.TextField,{inputRef:o,inputProps:{ref:a},name:e,value:u,onChange:()=>n({target:{name:e,value:s}}),...i})});_d.displayName="MaskedInput";function OG(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const kG=$t("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${W(t.palette.grey[500],.12)}`,o={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},s={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...o,left:20},...e==="top-center"&&{...o,left:0,right:0,margin:"auto"},...e==="top-right"&&{...o,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...s,top:20},...e==="left-center"&&{...s,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...s,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}}),MG=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...o})=>{const{style:a,anchorOrigin:s,transformOrigin:u}=OG(r);return y.jsxs(P.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:u,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...o,children:[!n&&y.jsx(kG,{arrow:r}),t]})},PG=({children:e,container:t})=>Rd.createPortal(e,document.getElementById(t)||document.body);var AG=!!(typeof window<"u"&&window.document&&window.document.createElement),DG=AG;const xb=xn(DG);var io=function(){return io=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},io.apply(this,arguments)},oo=null,wb=null;xb&&window.addEventListener("resize",function(){wb!==window.devicePixelRatio&&(wb=window.devicePixelRatio,oo=null)});function Cb(){if(oo===null){if(typeof document>"u")return oo=0,oo;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),oo=r}return oo}function Sb(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Eb(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Tb=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(s,u){return u.toUpperCase()});switch(i.value){case"true":n[a]=!0;break;case"false":n[a]=!1;break;case void 0:n[a]=!0;break;default:n[a]=i.value}}return n},t);return r};function _b(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Ob(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function kb(e){return".".concat(e.split(" ").join("."))}var $G=Object.freeze({__proto__:null,getElementWindow:Sb,getElementDocument:Eb,getOptions:Tb,addClasses:_b,removeClasses:Ob,classNamesToQuery:kb}),mn=Sb,Od=Eb,IG=Tb,vn=_b,yn=Ob,Kt=kb,Ml=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=mn(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,vn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){yn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(vn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){yn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var o,a;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(o=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(a=n.isWithinBounds(n.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),a&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,s,u,l,c,f,d,h,m,p;if(!(!n.draggedAxis||!n.contentWrapperEl)){var v,x=n.axis[n.draggedAxis].track,b=(a=(o=x.rect)===null||o===void 0?void 0:o[n.axis[n.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,C=n.axis[n.draggedAxis].scrollbar,E=(u=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,w=parseInt((c=(l=n.elStyles)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?v=i.pageY:v=i.pageX;var _=v-((d=(f=x.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;_=n.draggedAxis==="x"&&n.isRtl?((m=(h=x.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-C.size-_:_;var O=_/(b-C.size),k=O*(E-w);n.draggedAxis==="x"&&n.isRtl&&(k=!((p=e.getRtlHelpers())===null||p===void 0)&&p.isScrollingToNegative?-k:k),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(i){var o=Od(n.el),a=mn(n.el);i.preventDefault(),i.stopPropagation(),yn(n.el,n.classNames.dragging),o.removeEventListener("mousemove",n.drag,!0),o.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",n.preventClick,!0),o.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=io(io({},e.defaultOptions),r),this.classNames=io(io({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Av(this._onMouseMove,64),this.onWindowResize=ta(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ta(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ta(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),o=e.getOffset(n);r.scrollLeft=-999;var a=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Cb()}catch{return Cb()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Od(t),i=mn(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){xb&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Kt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Kt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Kt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Kt(this.classNames.offset)),this.maskEl=this.el.querySelector(Kt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Kt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Kt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Kt(this.classNames.scrollbar)))||null,this.options.autoHide||(vn(this.axis.x.scrollbar.el,this.classNames.visible),vn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=mn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=n.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=mn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||l,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&l>r,this.axis.y.isOverflowing=u>c,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>c-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,a=o/i,s;return s=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var c=l/(a-u),f=~~((s-o.size)*c);f=t==="x"&&this.isRtl?-f+(s-o.size):f,o.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(vn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(yn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),vn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?vn(r.scrollbar.el,this.classNames.hover):yn(r.scrollbar.el,this.classNames.hover)):(yn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),yn(this.axis[t].track.el,this.classNames.hover),yn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var i=Od(this.el),o=mn(this.el),a=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=a.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,vn(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,o,a,s;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=mn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var c=this.axis[r].scrollbar,f=(o=(i=c.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((s=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),h=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],m=r==="y"?this.mouseY-f:this.mouseX-f,p=m<0?-1:1,v=p===-1?h-d:h+d,x=40,b=function(){n.contentWrapperEl&&(p===-1?h>v&&(h-=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)):h<v&&(h+=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=mn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=IG,e.helpers=$G,e}(),sr=function(){return sr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},sr.apply(this,arguments)};function FG(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Mb=xe.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,o=FG(e,["children","scrollableNodeProps"]),a=xe.useRef(),s=xe.useRef(),u=xe.useRef(),l={},c={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(Ml.defaultOptions,h)?l[h]=o[h]:c[h]=o[h]});var f=sr(sr({},Ml.defaultOptions.classNames),l.classNames),d=sr(sr({},i),{className:"".concat(f.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":l.ariaLabel||Ml.defaultOptions.ariaLabel});return xe.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,a.current&&(h=new Ml(a.current,sr(sr(sr({},l),s.current&&{scrollableNode:s.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),xe.createElement("div",sr({"data-simplebar":"init",ref:a},c),xe.createElement("div",{className:f.wrapper},xe.createElement("div",{className:f.heightAutoObserverWrapperEl},xe.createElement("div",{className:f.heightAutoObserverEl})),xe.createElement("div",{className:f.mask},xe.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:sr(sr({},d),{ref:s}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):xe.createElement("div",sr({},d),xe.createElement("div",{className:f.contentEl},r)))),xe.createElement("div",{className:f.placeholder})),xe.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},xe.createElement("div",{className:f.scrollbar})),xe.createElement("div",{className:"".concat(f.track," simplebar-vertical")},xe.createElement("div",{className:f.scrollbar})))});Mb.displayName="SimpleBar";const jG=$t("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),LG=$t(Mb)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:W(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),RG=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?y.jsx(P.Box,{sx:{overflowX:"auto",...t},...r,children:e}):y.jsx(jG,{children:y.jsx(LG,{clickOnTrack:!1,sx:t,...r,children:e})})},BG=g.memo(RG),NG=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:r,render:({field:o,fieldState:{error:a}})=>y.jsx(gc,{...o,...n,onChange:s=>o.onChange(s),error:!!a,helperText:(a==null?void 0:a.message)||t})})},zG=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:t,render:({field:{ref:o,onChange:a,...s},fieldState:{error:u}})=>y.jsx(J1,{...s,onChangeColor:a,inputRef:o,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||r,...n})})},VG=({name:e,...t})=>{const{control:r}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(co.DatePicker,{inputRef:n,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},WG=({name:e,label:t,...r})=>{const{control:n,setError:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:n,render:({field:{value:o,onChange:a},fieldState:{error:s}})=>y.jsx(co.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...r.localeText},value:[(o==null?void 0:o.startDate)||null,(o==null?void 0:o.endDate)||null],onChange:u=>a({startDate:u[0],endDate:u[1]}),onError:u=>{i(e,{message:u[0]||u[1]||void 0})},...r,slotProps:{textField:({position:u})=>{var l;return{...(l=r.slotProps)==null?void 0:l.textField,error:!!s,helperText:s==null?void 0:s.message,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:u==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`}}},sx:{width:1}})})},HG=({name:e,...t})=>{const{control:r}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(co.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:n,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},Pb=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:r,render:({field:{ref:o,...a},fieldState:{error:s}})=>y.jsx(P.TextField,{...a,inputRef:o,fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...n})})},UG=({id:e,children:t,onSubmit:r,methods:n})=>y.jsx(yt.FormProvider,{...n,children:y.jsx(P.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,children:t})}),YG=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:r,render:({field:{name:o,onChange:a,value:s,ref:u},fieldState:{error:l}})=>y.jsx(_d,{ref:u,...n,name:o,value:s,error:!!l,helperText:(l==null?void 0:l.message)||t,onChange:({target:{value:c}})=>a(c)})})},GG=e=>{const[t,r]=g.useState(!1);return y.jsx(Pb,{...e,type:t?"text":"password",InputProps:{endAdornment:y.jsx(P.InputAdornment,{position:"end",children:y.jsx(P.IconButton,{onClick:()=>r(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",children:y.jsx(Rt,{icon:t?"eva:eye-off-fill":"eva:eye-fill"})})})}})},qG=({name:e,helperText:t,...r})=>{const{control:n}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:n,render:({field:i,fieldState:{error:o}})=>y.jsxs("div",{children:[y.jsx(P.FormControlLabel,{control:y.jsx(P.Switch,{...i,checked:i.value}),...r}),(!!o||t)&&y.jsx(P.FormHelperText,{error:!!o,children:o?o==null?void 0:o.message:t})]})})},KG=({name:e,...t})=>{const{control:r}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(co.TimePicker,{ampm:!1,format:"HH:mm",inputRef:n,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})};function ao(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(c){try{l(n.next(c))}catch(f){a(f)}}function u(c){try{l(n.throw(c))}catch(f){a(f)}}function l(c){c.done?o(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function so(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ab(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Db(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var XG=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ba(e,t){var r=ZG(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function ZG(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=XG.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var QG=[".DS_Store","Thumbs.db"];function JG(e){return ao(this,void 0,void 0,function(){return so(this,function(t){return Pl(e)&&eq(e.dataTransfer)?[2,iq(e.dataTransfer,e.type)]:tq(e)?[2,rq(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,nq(e)]:[2,[]]})})}function eq(e){return Pl(e)}function tq(e){return Pl(e)&&Pl(e.target)}function Pl(e){return typeof e=="object"&&e!==null}function rq(e){return kd(e.target.files).map(function(t){return ba(t)})}function nq(e){return ao(this,void 0,void 0,function(){var t;return so(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return ba(n)})]}})})}function iq(e,t){return ao(this,void 0,void 0,function(){var r,n;return so(this,function(i){switch(i.label){case 0:return e.items?(r=kd(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(oq))]):[3,2];case 1:return n=i.sent(),[2,$b(Ib(n))];case 2:return[2,$b(kd(e.files).map(function(o){return ba(o)}))]}})})}function $b(e){return e.filter(function(t){return QG.indexOf(t.name)===-1})}function kd(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function oq(e){if(typeof e.webkitGetAsEntry!="function")return Fb(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?jb(t):Fb(e)}function Ib(e){return e.reduce(function(t,r){return Db(Db([],Ab(t),!1),Ab(Array.isArray(r)?Ib(r):[r]),!1)},[])}function Fb(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=ba(t);return Promise.resolve(r)}function aq(e){return ao(this,void 0,void 0,function(){return so(this,function(t){return[2,e.isDirectory?jb(e):sq(e)]})})}function jb(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function o(){var a=this;t.readEntries(function(s){return ao(a,void 0,void 0,function(){var u,l,c;return so(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=f.sent(),r(u),[3,4];case 3:return l=f.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(aq)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}o()})}function sq(e){return ao(this,void 0,void 0,function(){return so(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var o=ba(i,e.fullPath);r(o)},function(i){n(i)})})]})})}var lq=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function Lb(e){return fq(e)||cq(e)||zb(e)||uq()}function uq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
239
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fq(e){if(Array.isArray(e))return Md(e)}function Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(n){Nb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xa(e,t){return pq(e)||hq(e,t)||zb(e,t)||dq()}function dq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
240
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zb(e,t){if(e){if(typeof e=="string")return Md(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Md(e,t)}}function Md(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function pq(e){if(Array.isArray(e))return e}var gq="file-invalid-type",mq="file-too-large",vq="file-too-small",yq="too-many-files",bq=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:gq,message:"File type must be ".concat(r)}},Vb=function(t){return{code:mq,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Wb=function(t){return{code:vq,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},xq={code:yq,message:"Too many files"};function Hb(e,t){var r=e.type==="application/x-moz-file"||lq(e,t);return[r,r?null:bq(t)]}function Ub(e,t,r){if(Gn(e.size))if(Gn(t)&&Gn(r)){if(e.size>r)return[!1,Vb(r)];if(e.size<t)return[!1,Wb(t)]}else{if(Gn(t)&&e.size<t)return[!1,Wb(t)];if(Gn(r)&&e.size>r)return[!1,Vb(r)]}return[!0,null]}function Gn(e){return e!=null}function wq(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(u){var l=Hb(u,r),c=xa(l,1),f=c[0],d=Ub(u,n,i),h=xa(d,1),m=h[0],p=s?s(u):null;return f&&m&&!p})}function Al(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Dl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Yb(e){e.preventDefault()}function Cq(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Sq(e){return e.indexOf("Edge/")!==-1}function Eq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Cq(e)||Sq(e)}function Ir(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!Al(n)&&s&&s.apply(void 0,[n].concat(o)),Al(n)})}}function Tq(){return"showOpenFilePicker"in window}function _q(e){if(Gn(e)){var t=Object.entries(e).filter(function(r){var n=xa(r,2),i=n[0],o=n[1],a=!0;return Gb(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(qb))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(r,n){var i=xa(n,2),o=i[0],a=i[1];return Bb(Bb({},r),{},Nb({},o,a))},{});return[{description:"Files",accept:t}]}return e}function Oq(e){if(Gn(e))return Object.entries(e).reduce(function(t,r){var n=xa(r,2),i=n[0],o=n[1];return[].concat(Lb(t),[i],Lb(o))},[]).filter(function(t){return Gb(t)||qb(t)}).join(",")}function kq(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Mq(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Gb(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function qb(e){return/^.*\.[\w]+$/.test(e)}var Pq=["children"],Aq=["open"],Dq=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],$q=["refKey","onChange","onClick"];function Iq(e){return Lq(e)||jq(e)||Kb(e)||Fq()}function Fq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
241
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lq(e){if(Array.isArray(e))return Ad(e)}function Pd(e,t){return Nq(e)||Bq(e,t)||Kb(e,t)||Rq()}function Rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
242
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(e,t){if(e){if(typeof e=="string")return Ad(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ad(e,t)}}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Nq(e){if(Array.isArray(e))return e}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){Dd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e,t){if(e==null)return{};var r=zq(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $d=g.forwardRef(function(e,t){var r=e.children,n=$l(e,Pq),i=Il(n),o=i.open,a=$l(i,Aq);return g.useImperativeHandle(t,function(){return{open:o}},[o]),g.createElement(g.Fragment,null,r(mt(mt({},a),{},{open:o})))});$d.displayName="Dropzone";var Zb={disabled:!1,getFilesFromEvent:JG,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};$d.defaultProps=Zb,$d.propTypes={children:T.func,accept:T.objectOf(T.arrayOf(T.string)),multiple:T.bool,preventDropOnDocument:T.bool,noClick:T.bool,noKeyboard:T.bool,noDrag:T.bool,noDragEventsBubbling:T.bool,minSize:T.number,maxSize:T.number,maxFiles:T.number,disabled:T.bool,getFilesFromEvent:T.func,onFileDialogCancel:T.func,onFileDialogOpen:T.func,useFsAccessApi:T.bool,autoFocus:T.bool,onDragEnter:T.func,onDragLeave:T.func,onDragOver:T.func,onDrop:T.func,onDropAccepted:T.func,onDropRejected:T.func,onError:T.func,validator:T.func};var Id={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Il(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=mt(mt({},Zb),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,E=t.noClick,w=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,k=t.onError,D=t.validator,L=g.useMemo(function(){return Oq(r)},[r]),re=g.useMemo(function(){return _q(r)},[r]),pe=g.useMemo(function(){return typeof v=="function"?v:Qb},[v]),se=g.useMemo(function(){return typeof p=="function"?p:Qb},[p]),q=g.useRef(null),G=g.useRef(null),me=g.useReducer(Vq,Id),Ee=Pd(me,2),Ie=Ee[0],Oe=Ee[1],$=Ie.isFocused,j=Ie.isFileDialogActive,X=g.useRef(typeof window<"u"&&window.isSecureContext&&x&&Tq()),ee=function(){!X.current&&j&&setTimeout(function(){if(G.current){var ve=G.current.files;ve.length||(Oe({type:"closeDialog"}),se())}},300)};g.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[G,j,se,X]);var H=g.useRef([]),fe=function(ve){q.current&&q.current.contains(ve.target)||(ve.preventDefault(),H.current=[])};g.useEffect(function(){return C&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){C&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[q,C]),g.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var ue=g.useCallback(function(K){k?k(K):console.error(K)},[k]),ge=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[].concat(Iq(H.current),[K.target]),Dl(K)&&Promise.resolve(i(K)).then(function(ve){if(!(Al(K)&&!O)){var ct=ve.length,I=ct>0&&wq({files:ve,accept:L,minSize:a,maxSize:o,multiple:s,maxFiles:u,validator:D}),M=ct>0&&!I;Oe({isDragAccept:I,isDragReject:M,isDragActive:!0,type:"setDraggedFiles"}),l&&l(K)}}).catch(function(ve){return ue(ve)})},[i,l,ue,O,L,a,o,s,u,D]),Z=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=Dl(K);if(ve&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ve&&f&&f(K),!1},[f,O]),Q=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=H.current.filter(function(I){return q.current&&q.current.contains(I)}),ct=ve.indexOf(K.target);ct!==-1&&ve.splice(ct,1),H.current=ve,!(ve.length>0)&&(Oe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Dl(K)&&c&&c(K))},[q,c,O]),ne=g.useCallback(function(K,ve){var ct=[],I=[];K.forEach(function(M){var B=Hb(M,L),N=Pd(B,2),Ce=N[0],ke=N[1],Ne=Ub(M,a,o),A=Pd(Ne,2),F=A[0],ce=A[1],oe=D?D(M):null;if(Ce&&F&&!oe)ct.push(M);else{var ie=[ke,ce];oe&&(ie=ie.concat(oe)),I.push({file:M,errors:ie.filter(function(Me){return Me})})}}),(!s&&ct.length>1||s&&u>=1&&ct.length>u)&&(ct.forEach(function(M){I.push({file:M,errors:[xq]})}),ct.splice(0)),Oe({acceptedFiles:ct,fileRejections:I,type:"setFiles"}),d&&d(ct,I,ve),I.length>0&&m&&m(I,ve),ct.length>0&&h&&h(ct,ve)},[Oe,s,L,a,o,u,d,h,m,D]),be=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[],Dl(K)&&Promise.resolve(i(K)).then(function(ve){Al(K)&&!O||ne(ve,K)}).catch(function(ve){return ue(ve)}),Oe({type:"reset"})},[i,ne,ue,O]),R=g.useCallback(function(){if(X.current){Oe({type:"openDialog"}),pe();var K={multiple:s,types:re};window.showOpenFilePicker(K).then(function(ve){return i(ve)}).then(function(ve){ne(ve,null),Oe({type:"closeDialog"})}).catch(function(ve){kq(ve)?(se(ve),Oe({type:"closeDialog"})):Mq(ve)?(X.current=!1,G.current?(G.current.value=null,G.current.click()):ue(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ue(ve)});return}G.current&&(Oe({type:"openDialog"}),pe(),G.current.value=null,G.current.click())},[Oe,pe,se,x,ne,ue,re,s]),Be=g.useCallback(function(K){!q.current||!q.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),R())},[q,R]),le=g.useCallback(function(){Oe({type:"focus"})},[]),ht=g.useCallback(function(){Oe({type:"blur"})},[]),Zt=g.useCallback(function(){E||(Eq()?setTimeout(R,0):R())},[E,R]),Vt=function(ve){return n?null:ve},Kr=function(ve){return w?null:Vt(ve)},wr=function(ve){return _?null:Vt(ve)},Cr=function(ve){O&&ve.stopPropagation()},Ca=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.role,M=K.onKeyDown,B=K.onFocus,N=K.onBlur,Ce=K.onClick,ke=K.onDragEnter,Ne=K.onDragOver,A=K.onDragLeave,F=K.onDrop,ce=$l(K,Dq);return mt(mt(Dd({onKeyDown:Kr(Ir(M,Be)),onFocus:Kr(Ir(B,le)),onBlur:Kr(Ir(N,ht)),onClick:Vt(Ir(Ce,Zt)),onDragEnter:wr(Ir(ke,ge)),onDragOver:wr(Ir(Ne,Z)),onDragLeave:wr(Ir(A,Q)),onDrop:wr(Ir(F,be)),role:typeof I=="string"&&I!==""?I:"presentation"},ct,q),!n&&!w?{tabIndex:0}:{}),ce)}},[q,Be,le,ht,Zt,ge,Z,Q,be,w,_,n]),bn=g.useCallback(function(K){K.stopPropagation()},[]),qn=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.onChange,M=K.onClick,B=$l(K,$q),N=Dd({accept:L,multiple:s,type:"file",style:{display:"none"},onChange:Vt(Ir(I,be)),onClick:Vt(Ir(M,bn)),tabIndex:-1},ct,G);return mt(mt({},N),B)}},[G,r,s,be,n]);return mt(mt({},Ie),{},{isFocused:$&&!n,getRootProps:Ca,getInputProps:qn,rootRef:q,inputRef:G,open:Vt(R)})}function Vq(e,t){switch(t.type){case"focus":return mt(mt({},e),{},{isFocused:!0});case"blur":return mt(mt({},e),{},{isFocused:!1});case"openDialog":return mt(mt({},Id),{},{isFileDialogActive:!0});case"closeDialog":return mt(mt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mt(mt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mt(mt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mt({},Id);default:return e}}function Qb(){}const Wq=()=>{const t=mi().palette.primary.main;return y.jsxs(y.Fragment,{children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[y.jsx("stop",{offset:"0%",stopColor:t}),y.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),y.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},Hq=g.memo(Wq),Uq=({...e})=>{const t=mi(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return y.jsx(P.Box,{...e,children:y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx(Hq,{}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[y.jsx("stop",{offset:"0%",stopOpacity:"0"}),y.jsx("stop",{offset:"100%"})]})}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),y.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),y.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),y.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),y.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),y.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),y.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),y.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),y.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),y.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),y.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),y.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},Yq=g.memo(Uq),Gq=["pdf"],qq=["txt"],Kq=["psd"],Xq=["doc","docx"],Zq=["xls","xlsx"],Qq=["zip","rar","iso"],Jq=["ai","esp"],eK=["ppt","pptx"],tK=["wav","aif","mp3","aac"],rK=["jpg","jpeg","gif","bmp","png","svg"],nK=["m4v","avi","mpg","mp4","webm"],lr=e=>`/assets/icons/files/${e}.svg`;function Jb(e){let t;switch(e==null?void 0:e.includes(Xt(e))){case qq.includes(Xt(e)):t="txt";break;case Qq.includes(Xt(e)):t="zip";break;case tK.includes(Xt(e)):t="audio";break;case rK.includes(Xt(e)):t="image";break;case nK.includes(Xt(e)):t="video";break;case Xq.includes(Xt(e)):t="word";break;case Zq.includes(Xt(e)):t="excel";break;case eK.includes(Xt(e)):t="powerpoint";break;case Gq.includes(Xt(e)):t="pdf";break;case Kq.includes(Xt(e)):t="photoshop";break;case Jq.includes(Xt(e)):t="illustrator";break;default:t=Xt(e)}return t}function iK(e){let t;switch(Jb(e)){case"folder":t=lr("ic_folder");break;case"txt":t=lr("ic_txt");break;case"zip":t=lr("ic_zip");break;case"audio":t=lr("ic_audio");break;case"video":t=lr("ic_video");break;case"word":t=lr("ic_word");break;case"excel":t=lr("ic_excel");break;case"powerpoint":t=lr("ic_power_point");break;case"pdf":t=lr("ic_pdf");break;case"photoshop":t=lr("ic_pts");break;case"illustrator":t=lr("ic_ai");break;case"image":t=lr("ic_img");break;default:t=lr("ic_file")}return t}function Xt(e=""){return e&&e.split(".").pop()||""}function oK(e){return e.split("/").pop()}function Fd(e){return typeof e=="string"?{key:e,preview:e,name:oK(e),type:Xt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function Fl(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}function aK(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,o=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||o}, ${n||o}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function sK(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function lK(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const e2={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},uK=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:Fl,bgGradient:aK,filterStyles:lK,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:e2,textGradient:sK},Symbol.toStringTag,{value:"Module"})),t2=({onDownload:e})=>{const t=mi();return y.jsx(P.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...Fl({opacity:.64,color:t.palette.grey[900]})}},children:y.jsx(Rt,{icon:"eva:arrow-circle-down-fill",width:24})})},r2=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:u=""}=Fd(e),l=Jb(s||u),c=l==="image"&&r?y.jsx(P.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):y.jsx(P.Box,{component:"img",src:iK(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?y.jsx(P.Tooltip,{title:a,children:y.jsxs(P.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&y.jsx(t2,{onDownload:n})]})}):y.jsxs(y.Fragment,{children:[c,n&&y.jsx(t2,{onDownload:n})]})};var n2={exports:{}};/*! @preserve
|
|
243
243
|
* numeral.js
|
|
244
244
|
* version : 2.0.6
|
|
245
245
|
* author : Adam Draper
|
|
246
246
|
* license : MIT
|
|
247
247
|
* http://adamwdraper.github.com/Numeral-js/
|
|
248
|
-
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(eo,function(){var t,r,n="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function c(l,u){this._input=l,this._value=u}return t=function(l){var u,f,d,h;if(t.isNumeral(l))u=l.value();else if(l===0||typeof l>"u")u=0;else if(l===null||r.isNaN(l))u=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)u=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)u=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,u=d(l)}else u=Number(l)||null;return new c(l,u)},t.version=n,t.isNumeral=function(l){return l instanceof c},t._=r={numberToFormat:function(l,u,f){var d=o[t.options.currentLocale],h=!1,g=!1,p=0,v="",x=1e12,b=1e9,S=1e6,O=1e3,w="",T=!1,E,P,k,F,re,pe,se;if(l=l||0,P=Math.abs(l),t._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(re=t._.includes(u,"+")?u.indexOf("+"):l<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(E=u.match(/a(k|m|b|t)?/),E=E?E[1]:!1,t._.includes(u," a")&&(v=" "),u=u.replace(new RegExp(v+"a[kmbt]?"),""),P>=x&&!E||E==="t"?(v+=d.abbreviations.trillion,l=l/x):P<x&&P>=b&&!E||E==="b"?(v+=d.abbreviations.billion,l=l/b):P<b&&P>=S&&!E||E==="m"?(v+=d.abbreviations.million,l=l/S):(P<S&&P>=O&&!E||E==="k")&&(v+=d.abbreviations.thousand,l=l/O)),t._.includes(u,"[.]")&&(g=!0,u=u.replace("[.]",".")),k=l.toString().split(".")[0],F=u.split(".")[1],pe=u.indexOf(","),p=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,F?(t._.includes(F,"[")?(F=F.replace("]",""),F=F.split("["),w=t._.toFixed(l,F[0].length+F[1].length,f,F[1].length)):w=t._.toFixed(l,F.length,f),k=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",g&&Number(w.slice(1))===0&&(w="")):k=t._.toFixed(l,0,f),v&&!E&&Number(k)>=1e3&&v!==d.abbreviations.trillion)switch(k=String(Number(k)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(t._.includes(k,"-")&&(k=k.slice(1),T=!0),k.length<p)for(var q=p-k.length;q>0;q--)k="0"+k;return pe>-1&&(k=k.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),u.indexOf(".")===0&&(k=""),se=k+w+(v||""),h?se=(h&&T?"(":"")+se+(h&&T?")":""):re>=0?se=re===0?(T?"-":"+")+se:se+(T?"-":"+"):T&&(se="-"+se),se},stringToNumber:function(l){var u=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,g,p;if(s.zeroFormat&&l===s.zeroFormat)g=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)g=null;else{g=1,u.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),f.match(p)){g*=Math.pow(10,d[h]);break}g*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),g*=Number(l)}return g},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,u){return l.indexOf(u)!==-1},insert:function(l,u,f){return l.slice(0,f)+u+l.slice(f)},reduce:function(l,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var f=Object(l),d=f.length>>>0,h=0,g;if(arguments.length===3)g=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");g=f[h++]}for(;h<d;h++)h in f&&(g=u(g,f[h],h,f));return g},multiplier:function(l){var u=l.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(u,f){var d=r.multiplier(f);return u>d?u:d},1)},toFixed:function(l,u,f,d){var h=l.toString().split("."),g=u-(d||0),p,v,x,b;return h.length===2?p=Math.min(Math.max(h[1].length,g),u):p=g,x=Math.pow(10,p),b=(f(l+"e+"+p)/x).toFixed(p),d>u-p&&(v=new RegExp("\\.?0{1,"+(d-(u-p))+"}$"),b=b.replace(v,"")),b}},t.options=s,t.formats=i,t.locales=o,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return o[s.currentLocale];if(l=l.toLowerCase(),!o[l])throw new Error("Unknown locale : "+l);return o[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,u,f){if(u=u.toLowerCase(),this[l+"s"][u])throw new TypeError(u+" "+l+" already registered.");return this[l+"s"][u]=f,f},t.validate=function(l,u){var f,d,h,g,p,v,x,b;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=t.localeData(u)}catch{x=t.localeData(t.locale())}return h=x.currency.symbol,p=x.abbreviations,f=x.delimiters.decimal,x.delimiters.thousands==="."?d="\\.":d=x.delimiters.thousands,b=l.match(/^[^\d]+/),b!==null&&(l=l.substr(1),b[0]!==h)||(b=l.match(/[^\d]+$/),b!==null&&(l=l.slice(0,-1),b[0]!==p.thousand&&b[0]!==p.million&&b[0]!==p.billion&&b[0]!==p.trillion))?!1:(v=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(g=l.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(v):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(v)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(v)&&!!g[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(l,u){var f=this._value,d=l||s.defaultFormat,h,g,p;if(u=u||Math.round,f===0&&s.zeroFormat!==null)g=s.zeroFormat;else if(f===null&&s.nullFormat!==null)g=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,g=p(f,d,u)}return g},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var u=r.correctionFactor.call(null,this._value,l);function f(d,h,g,p){return d+Math.round(u*h)}return this._value=r.reduce([this._value,l],f,0)/u,this},subtract:function(l){var u=r.correctionFactor.call(null,this._value,l);function f(d,h,g,p){return d-Math.round(u*h)}return this._value=r.reduce([l],f,Math.round(this._value*u))/u,this},multiply:function(l){function u(f,d,h,g){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],u,1),this},divide:function(l){function u(f,d,h,g){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],u),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var u=l%10;return~~(l%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,u,f){var d=t._.includes(u," BPS")?" ":"",h;return l=l*1e4,u=u.replace(/\s?BPS/,""),h=t._.numberToFormat(l,u,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(u.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,g,p){var v,x=t._.includes(g,"ib")?u:l,b=t._.includes(g," b")||t._.includes(g," ib")?" ":"",S,O,w;for(g=g.replace(/\s?i?b/,""),S=0;S<=x.suffixes.length;S++)if(O=Math.pow(x.base,S),w=Math.pow(x.base,S+1),h===null||h===0||h>=O&&h<w){b+=x.suffixes[S],O>0&&(h=h/O);break}return v=t._.numberToFormat(h,g,p),v+b},unformat:function(h){var g=t._.stringToNumber(h),p,v;if(g){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){v=Math.pow(l.base,p);break}if(t._.includes(h,u.suffixes[p])){v=Math.pow(u.base,p);break}}g*=v||1}return g}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,u,f){var d=t.locales[t.options.currentLocale],h={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,p,v;for(u=u.replace(/\s?\$\s?/,""),g=t._.numberToFormat(l,u,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(p=h.before[v],p){case"$":g=t._.insert(g,d.currency.symbol,v);break;case" ":g=t._.insert(g," ",v+d.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(p=h.after[v],p){case"$":g=v===h.after.length-1?g+d.currency.symbol:t._.insert(g,d.currency.symbol,-(h.after.length-(1+v)));break;case" ":g=v===h.after.length-1?g+" ":t._.insert(g," ",-(h.after.length-(1+v)+d.currency.symbol.length-1));break}return g}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,u,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",g=h.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(g[0]),u,f),d+"e"+g[1]},unformat:function(l){var u=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(u[0]),d=Number(u[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(g,p,v,x){var b=t._.correctionFactor(g,p),S=g*b*(p*b)/(b*b);return S}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,u,f){var d=t.locales[t.options.currentLocale],h,g=t._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),g+=d.ordinal(l),h=t._.numberToFormat(l,u,f),h+g}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,u,f){var d=t._.includes(u," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),u=u.replace(/\s?\%/,""),h=t._.numberToFormat(l,u,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var u=t._.stringToNumber(l);return t.options.scalePercentBy100?u*.01:u}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,u,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),g=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(g<10?"0"+g:g)},unformat:function(l){var u=l.split(":"),f=0;return u.length===3?(f=f+Number(u[0])*60*60,f=f+Number(u[1])*60,f=f+Number(u[2])):u.length===2&&(f=f+Number(u[0])*60,f=f+Number(u[1])),Number(f)}})}(),t})})(Mb);var bq=Mb.exports;const la=dn(bq);function xq(e){return la(e).format()}function wq(e){const t=e?la(e).format("$0,0.00"):"";return bl(t,".00")}function Sq(e){const t=e?la(Number(e)/100).format("0.0%"):"";return bl(t,".0")}function Cq(e){const t=e?la(e).format("0.00a"):"";return bl(t,".00")}function gd(e){const t=e?la(e).format("0.0 b"):"";return bl(t,".0")}function bl(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const Tq=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:wq,fData:gd,fNumber:xq,fPercent:Sq,fShortenNumber:Cq},Symbol.toStringTag,{value:"Module"})),_b=({fileRejections:e})=>e.length?y.jsx(_.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>V(t.palette.error.main,.08),borderColor:t=>V(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=pd(t);return y.jsxs(_.Box,{sx:{my:1},children:[y.jsxs(_.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?gd(i):""]}),r.map(o=>y.jsxs(_.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,Oq=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?y.jsx(Yp,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=pd(i),c=typeof i=="string";return e?y.jsxs(_.Stack,{component:cr.div,...Ji().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(Pb,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&y.jsx(_.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>V(l.palette.common.white,.72),bgcolor:l=>V(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>V(l.palette.grey[900],.72)}},children:y.jsx(jt,{icon:"eva:close-fill",width:16})})]},o):y.jsxs(_.Stack,{component:cr.div,...Ji().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(Pb,{file:i}),y.jsxs(_.Stack,{flexGrow:1,sx:{minWidth:0},children:[y.jsx(_.Typography,{variant:"subtitle2",noWrap:!0,children:c?i:a}),y.jsx(_.Typography,{variant:"caption",sx:{color:"text.secondary"},children:c?"":gd(s)})]}),r&&y.jsx(_.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:y.jsx(jt,{icon:"eva:close-fill"})})]},o)})}):null,Eq=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(_.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:y.jsx(il,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},Pq=$t("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${V(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),Mq=({header:e,description:t,sx:r,...n})=>y.jsxs(_.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[y.jsx(tq,{sx:{width:220}}),y.jsxs("div",{children:[e||y.jsx(_.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||y.jsxs(_.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",y.jsx(_.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),$b=({disabled:e,multiple:t=!1,error:r,helperText:n,file:i,onDelete:o,files:a,thumbnail:s,onUpload:c,onRemove:l,onRemoveAll:u,sx:f,dropZoneProps:d,placeholderProps:h,placeholderAlt:g,...p})=>{const{getRootProps:v,getInputProps:x,isDragActive:b,isDragReject:S,fileRejections:O}=vl({multiple:t,disabled:e,...p}),w=!!i&&!t,T=a&&t&&a.length>0,E=S||!!r;return y.jsxs(_.Box,{sx:{width:1,position:"relative",...f},children:[y.jsxs(Pq,{...v(),sx:{...b&&{opacity:.72},...E&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"},...d},children:[y.jsx("input",{...x()}),g?y.jsx(_.Stack,{sx:{...w&&{opacity:0}},children:g}):y.jsx(Mq,{sx:{...w&&{opacity:0}},header:h==null?void 0:h.title,description:h==null?void 0:h.description}),w&&y.jsx(Eq,{file:i})]}),n&&n,y.jsx(_b,{fileRejections:O}),w&&o&&y.jsx(_.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:P=>V(P.palette.common.white,.8),bgcolor:P=>V(P.palette.grey[900],.72),"&:hover":{bgcolor:P=>V(P.palette.grey[900],.48)}},children:y.jsx(jt,{icon:"eva:close-fill",width:18})}),T&&y.jsxs(y.Fragment,{children:[y.jsx(_.Box,{sx:{my:3},children:y.jsx(Oq,{files:a,thumbnail:s,onRemove:l})}),y.jsxs(_.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[u&&y.jsx(_.Button,{color:"inherit",variant:"outlined",size:"small",onClick:u,children:"Remove all"}),c&&y.jsx(_.Button,{size:"small",variant:"contained",onClick:c,children:"Upload files"})]})]})]})},Ab=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,c]=Gc(),[l,u]=m.useState(o),f=d=>{d||u(""),e(d)};return y.jsxs(y.Fragment,{children:[y.jsxs(_.Stack,{position:"relative",width:1,children:[y.jsx($b,{...a,onDrop:d=>{if(d.length>0){c(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var p;const g=((p=h.result)==null?void 0:p.toString())||"";u(g)}),h.readAsDataURL(d[0])}}}),l&&y.jsx(_.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:y.jsx(_.IconButton,{color:"primary",onClick:c,children:y.jsx(jt,{icon:"ic:round-crop"})})})]}),y.jsx(Vy,{open:s,onClose:c,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function _q(e,t){const{watch:r,setValue:n}=Tt.useFormContext(),[i,o]=m.useState(t),a=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),o(void 0);return}n(e,d),o(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...a,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),o(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=a.filter(g=>g!==d);n(e,h)},file:i}}const $q=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:c}=Tt.useFormContext(),{uploadFile:l,file:u}=_q(e);return y.jsx(Tt.Controller,{name:e,control:c,rules:t,render:({fieldState:{error:f}})=>y.jsx(Ab,{accept:{"image/*":[]},file:u,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&y.jsx(_.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:r}),aspect:n,label:i,size:o,image:a,...s})})},xl=(e,t=!0)=>{const{pathname:r}=_r.useLocation(),n=e?!!_r.matchPath({path:e,end:!0},r):!1,i=e?!!_r.matchPath({path:e,end:!1},r):!1;return{active:t?i:n,isExternalLink:e.includes("http")}},wl={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},Xi={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},Aq=$t(_.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:V(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},c={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":l,...a&&{flexDirection:"row",padding:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...c,"&:hover":{...c}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),kq=$t(_.ListItemIcon)({marginRight:0,marginBottom:4,width:Xi.NAV_ITEM_MINI,height:Xi.NAV_ITEM_MINI}),Dq=$t(_.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...yl({color:e.palette.background.default})}})),kb=m.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:c,icon:l,children:u,disabled:f,caption:d}=e,h=t!==1,g=y.jsxs(Aq,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&y.jsx(kq,{children:l}),y.jsx(_.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...n&&{fontWeight:"fontWeightMedium"},...h&&{fontSize:14,width:"auto",textAlign:"left"}}}}),d&&y.jsx(_.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(jt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!u&&y.jsx(jt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?y.jsx(_.Link,{href:c,target:"_blank",rel:"noopener",underline:"none",children:g}):y.jsx(_.Link,{component:_r.Link,to:c,underline:"none",children:g}))()});kb.displayName="NavItem";const Iq=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(Db,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Db=({data:e,depth:t,hasChild:r})=>{const n=m.useRef(null),{pathname:i}=_r.useLocation(),{active:o,isExternalLink:a}=xl(e.path),[s,c]=m.useState(!1);m.useEffect(()=>{s&&u()},[i]),m.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{c(!0)},u=()=>{c(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(kb,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:u}),r&&y.jsx(Dq,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:u},children:y.jsx(Iq,{data:e.children,depth:t})})]})},jq=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(Db,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(_.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),Lq=({data:e,sx:t,...r})=>y.jsx(_.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>y.jsx(jq,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),Fq=m.memo(Lq),Rq=$t(_.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:i})=>{const o=i.palette.mode==="light",a=r!==1,s={color:i.palette.primary.main,backgroundColor:V(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},c={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:wl.H_DASHBOARD_ITEM,...a&&{height:wl.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:wl.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...c,"&:hover":{...c}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),Ib=$t(_.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:Xi.NAV_ITEM,height:Xi.NAV_ITEM}),Nq=$t("span",{shouldForwardProp:e=>e!=="active"})(({active:e,theme:t})=>({width:4,height:4,borderRadius:"50%",backgroundColor:t.palette.text.disabled,transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter}),...e&&{transform:"scale(2)",backgroundColor:t.palette.primary.main}})),zq=$t(_.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),Bq=({item:e,depth:t,open:r,active:n,isExternalLink:i,...o})=>{const{title:a,path:s,icon:c,info:l,children:u,disabled:f,caption:d}=e,h=t!==1,g=y.jsxs(Rq,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[c&&y.jsx(Ib,{children:c}),h&&y.jsx(Ib,{children:y.jsx(Nq,{active:n&&h})}),y.jsx(_.ListItemText,{primary:a,secondary:d&&y.jsx(_.Tooltip,{title:d,placement:"top-start",children:y.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&y.jsx(_.Box,{component:"span",sx:{lineHeight:0},children:l}),!!u&&y.jsx(jt,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?y.jsx(_.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:g}):u?g:y.jsx(_.Link,{component:_r.Link,to:s,underline:"none",children:g}))()},Wq=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(jb,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),jb=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=_r.useLocation(),{active:i,isExternalLink:o}=xl(e.path),[a,s]=m.useState(i);m.useEffect(()=>{i||l()},[n]);const c=()=>{s(!a)},l=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Bq,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:c}),r&&y.jsx(_.Collapse,{in:a,unmountOnExit:!0,children:y.jsx(Wq,{data:e.children,depth:t})})]})},Vq=({data:e,sx:t,...r})=>y.jsx(_.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return y.jsxs(_.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(zq,{disableSticky:!0,children:n.subheader}),n.items.map(o=>y.jsx(jb,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),Hq=$t(_.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:V(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},c={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:wl.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":l,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...c,"&:hover":{...c}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),Uq=$t(_.ListItemIcon)({marginRight:8,flexShrink:0,width:Xi.NAV_ITEM_HORIZONTAL,height:Xi.NAV_ITEM_HORIZONTAL}),Yq=$t(_.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...yl({color:e.palette.background.default})}})),Lb=m.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:c,icon:l,info:u,children:f,disabled:d,caption:h}=e,g=t!==1,p=y.jsxs(Hq,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&y.jsx(Uq,{children:l}),y.jsx(_.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),u&&y.jsx(_.Box,{component:"span",sx:{ml:1,lineHeight:0},children:u}),h&&y.jsx(_.Tooltip,{title:h,arrow:!0,children:y.jsx(_.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(jt,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(jt,{icon:g?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?y.jsx(_.Link,{href:c,target:"_blank",rel:"noopener",underline:"none",children:p}):y.jsx(_.Link,{component:_r.Link,to:c,underline:"none",children:p}))()});Lb.displayName="NavItem";const Gq=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(Fb,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Fb=({data:e,depth:t,hasChild:r})=>{const n=m.useRef(null),{pathname:i}=_r.useLocation(),{active:o,isExternalLink:a}=xl(e.path),[s,c]=m.useState(!1);m.useEffect(()=>{s&&u()},[i]),m.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{c(!0)},u=()=>{c(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Lb,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:u}),r&&y.jsx(Yq,{open:s,anchorEl:n.current,anchorOrigin:t===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:t===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:u},children:y.jsx(Gq,{data:e.children,depth:t})})]})},qq=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(Fb,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),Kq=({data:e,sx:t,...r})=>y.jsx(_.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...Ob,...t},...r,children:e.map(n=>y.jsx(qq,{items:n.items},n.subheader))}),Xq=m.memo(Kq),Zq=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(il,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},Qq=$t("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${V(e.palette.grey[500],.32)}`})),Jq=$t("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),eK=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:c,isDragReject:l,fileRejections:u}=vl({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return y.jsxs(y.Fragment,{children:[y.jsxs(Qq,{...a(),sx:{...c&&{opacity:.72},...d&&{borderColor:"error.light",...f&&{bgcolor:"error.lighter"}},...r&&{opacity:.48,pointerEvents:"none"},...f&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[y.jsx("input",{...s()}),f&&y.jsx(Zq,{file:t}),y.jsxs(Jq,{className:"placeholder",sx:{"&:hover":{opacity:.72},...f&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>V(h.palette.grey[900],.64)},...d&&{color:"error.main",bgcolor:"error.lighter"}},children:[y.jsx(jt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),y.jsx(_.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,y.jsx(_b,{fileRejections:u})]})},tK=$t("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:V(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),rK=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:c}=vl({disabled:r,...i}),l=c||t;return y.jsxs(tK,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[y.jsx("input",{...a()}),e||y.jsx(jt,{icon:"eva:cloud-upload-fill",width:28})]})},nK=()=>{const[e,t]=m.useState(!1),[r,n]=m.useState(document.activeElement);return m.useEffect(()=>{const i=a=>n(a.target),o=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",o,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",o)}},[]),{activeElement:r,listenersReady:e}};var iK=bu;function oK(e,t){return iK(e,t)}var aK=oK;const sK=dn(aK),lK=(e,t)=>sK(e,t),cK=e=>{const t=m.useRef();return lK(e,t.current)||(t.current=e),t.current},uK=(e,t)=>{m.useEffect(e,t.map(cK))},fK=()=>{const e=m.useRef(!0);return e.current?(e.current=!1,!0):e.current};function dK(e){const[t,r]=m.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const hK=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),o=`${e.replace(t,"")}.${t}`;i.href=n,i.download=o,i.click()}},Symbol.toStringTag,{value:"Module"}));function pK(e){return Bf({},e)}var Rb=1440,gK=2520,md=43200,mK=86400;function vK(e,t,r){var n,i;U(2,arguments);var o=pr(),a=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:Xs;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Ii(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Bf(pK(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,u;s>0?(l=Y(t),u=Y(e)):(l=Y(e),u=Y(t));var f=F1(u,l),d=(ji(u)-ji(l))/1e3,h=Math.round((f-d)/60),g;if(h<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,c):f<10?a.formatDistance("lessThanXSeconds",10,c):f<20?a.formatDistance("lessThanXSeconds",20,c):f<40?a.formatDistance("halfAMinute",0,c):f<60?a.formatDistance("lessThanXMinutes",1,c):a.formatDistance("xMinutes",1,c):h===0?a.formatDistance("lessThanXMinutes",1,c):a.formatDistance("xMinutes",h,c);if(h<45)return a.formatDistance("xMinutes",h,c);if(h<90)return a.formatDistance("aboutXHours",1,c);if(h<Rb){var p=Math.round(h/60);return a.formatDistance("aboutXHours",p,c)}else{if(h<gK)return a.formatDistance("xDays",1,c);if(h<md){var v=Math.round(h/Rb);return a.formatDistance("xDays",v,c)}else if(h<mK)return g=Math.round(h/md),a.formatDistance("aboutXMonths",g,c)}if(g=If(u,l),g<12){var x=Math.round(h/md);return a.formatDistance("xMonths",x,c)}else{var b=g%12,S=Math.floor(g/12);return b<3?a.formatDistance("aboutXYears",S,c):b<9?a.formatDistance("overXYears",S,c):a.formatDistance("almostXYears",S+1,c)}}function yK(e,t){return U(1,arguments),vK(e,Date.now(),t)}function bK(e){U(1,arguments);var t=Y(e),r=t.getTime();return r}function xK(e,t){const r=t||"dd/MM/yyyy";return e?Nf(new Date(e),r):null}function wK(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?Nf(new Date(e),r):null}function SK(e){return e?bK(new Date(e)):null}function CK(e){return e?yK(new Date(e),{addSuffix:!0}):null}const TK=Object.freeze(Object.defineProperty({__proto__:null,fDate:xK,fDateTime:wK,fTimestamp:SK,fToNow:CK},Symbol.toStringTag,{value:"Module"}));function OK(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const EK=Object.freeze(Object.defineProperty({__proto__:null,getRoot:OK},Symbol.toStringTag,{value:"Module"})),PK=e=>function(r){return y.jsx(m.Suspense,{fallback:y.jsx(_.CircularProgress,{}),children:y.jsx(e,{...r})})},MK=Object.freeze(Object.defineProperty({__proto__:null,default:d3},Symbol.toStringTag,{value:"Module"}));B.Autocomplete=Qc,B.AutocompleteField=XY,B.ColorPickerField=ZY,B.ColorPickerInput=k1,B.Common=eY,B.CustomAvatar=Cy,B.CustomAvatarGroup=Ty,B.DataGrid=nY,B.DatePicker=QY,B.DateRangePicker=JY,B.DateTimePicker=eG,B.Delayed=iY,B.DialogAnimate=h3,B.FabButtonAnimate=Gp,B.Field=tb,B.Form=tG,B.IconButtonAnimate=qp,B.Iconify=jt,B.Image=il,B.ImageCropModal=Vy,B.Label=Hy,B.MenuPopover=NY,B.MotionContainer=lC,B.MotionLazyContainer=uC,B.MotionViewport=sC,B.NavSectionHorizontal=Xq,B.NavSectionMini=Fq,B.NavSectionVertical=Vq,B.PasswordField=rG,B.Portal=zY,B.Scrollbar=KY,B.Switch=nG,B.TRANSITION=yd,B.TextAnimate=p3,B.ThemeProvider=Sy,B.TimePicker=iG,B.Upload=$b,B.UploadAvatar=eK,B.UploadBox=rK,B.UploadWithCrop=Ab,B.UploadWithCropField=$q,B.cssStyles=yq,B.file=hK,B.formatNumber=Tq,B.formatTime=TK,B.loadable=PK,B.routes=EK,B.useActiveElement=nK,B.useActiveLink=xl,B.useDeepCompareEffect=uK,B.useIsMounting=fK,B.useResponsive=Z0,B.useTabs=dK,B.useToggle=Gc,B.varBgColor=Qb,B.varBgKenburns=Jb,B.varBgPan=e2,B.varBounce=Kb,B.varContainer=fa,B.varFade=Ji,B.varFlip=Yb,B.varHover=Zb,B.varPath=Vb,B.varRotate=Xb,B.varScale=qb,B.varSlide=Gb,B.varTranEnter=Me,B.varTranExit=Ae,B.varTranHover=Hb,B.varZoom=Ub,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
|
248
|
+
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ho,function(){var t,r,n="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=o[t.options.currentLocale],h=!1,m=!1,p=0,v="",x=1e12,b=1e9,C=1e6,E=1e3,w="",_=!1,O,k,D,L,re,pe,se;if(l=l||0,k=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(re=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(O=c.match(/a(k|m|b|t)?/),O=O?O[1]:!1,t._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),k>=x&&!O||O==="t"?(v+=d.abbreviations.trillion,l=l/x):k<x&&k>=b&&!O||O==="b"?(v+=d.abbreviations.billion,l=l/b):k<b&&k>=C&&!O||O==="m"?(v+=d.abbreviations.million,l=l/C):(k<C&&k>=E&&!O||O==="k")&&(v+=d.abbreviations.thousand,l=l/E)),t._.includes(c,"[.]")&&(m=!0,c=c.replace("[.]",".")),D=l.toString().split(".")[0],L=c.split(".")[1],pe=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,L?(t._.includes(L,"[")?(L=L.replace("]",""),L=L.split("["),w=t._.toFixed(l,L[0].length+L[1].length,f,L[1].length)):w=t._.toFixed(l,L.length,f),D=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):D=t._.toFixed(l,0,f),v&&!O&&Number(D)>=1e3&&v!==d.abbreviations.trillion)switch(D=String(Number(D)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),_=!0),D.length<p)for(var q=p-D.length;q>0;q--)D="0"+D;return pe>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(D=""),se=D+w+(v||""),h?se=(h&&_?"(":"")+se+(h&&_?")":""):re>=0?se=re===0?(_?"-":"+")+se:se+(_?"-":"+"):_&&(se="-"+se),se},stringToNumber:function(l){var c=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,m,p;if(s.zeroFormat&&l===s.zeroFormat)m=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)m=null;else{m=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,d[h]);break}m*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),m*=Number(l)}return m},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<d;h++)h in f&&(m=c(m,f[h],h,f));return m},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),m=c-(d||0),p,v,x,b;return h.length===2?p=Math.min(Math.max(h[1].length,m),c):p=m,x=Math.pow(10,p),b=(f(l+"e+"+p)/x).toFixed(p),d>c-p&&(v=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),b=b.replace(v,"")),b}},t.options=s,t.formats=i,t.locales=o,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return o[s.currentLocale];if(l=l.toLowerCase(),!o[l])throw new Error("Unknown locale : "+l);return o[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,m,p,v,x,b;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=t.localeData(c)}catch{x=t.localeData(t.locale())}return h=x.currency.symbol,p=x.abbreviations,f=x.delimiters.decimal,x.delimiters.thousands==="."?d="\\.":d=x.delimiters.thousands,b=l.match(/^[^\d]+/),b!==null&&(l=l.substr(1),b[0]!==h)||(b=l.match(/[^\d]+$/),b!==null&&(l=l.slice(0,-1),b[0]!==p.thousand&&b[0]!==p.million&&b[0]!==p.billion&&b[0]!==p.trillion))?!1:(v=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(m=l.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,m,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(f===null&&s.nullFormat!==null)m=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,m=p(f,d,c)}return m},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,m,p){var v,x=t._.includes(m,"ib")?c:l,b=t._.includes(m," b")||t._.includes(m," ib")?" ":"",C,E,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=x.suffixes.length;C++)if(E=Math.pow(x.base,C),w=Math.pow(x.base,C+1),h===null||h===0||h>=E&&h<w){b+=x.suffixes[C],E>0&&(h=h/E);break}return v=t._.numberToFormat(h,m,p),v+b},unformat:function(h){var m=t._.stringToNumber(h),p,v;if(m){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){v=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){v=Math.pow(c.base,p);break}}m*=v||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,v;for(c=c.replace(/\s?\$\s?/,""),m=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(p=h.before[v],p){case"$":m=t._.insert(m,d.currency.symbol,v);break;case" ":m=t._.insert(m," ",v+d.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(p=h.after[v],p){case"$":m=v===h.after.length-1?m+d.currency.symbol:t._.insert(m,d.currency.symbol,-(h.after.length-(1+v)));break;case" ":m=v===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+v)+d.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",m=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(m[0]),c,f),d+"e"+m[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(m,p,v,x){var b=t._.correctionFactor(m,p),C=m*b*(p*b)/(b*b);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,m=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),m+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),m=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(n2);var cK=n2.exports;const wa=xn(cK);function fK(e){return wa(e).format()}function dK(e){const t=e?wa(e).format("$0,0.00"):"";return jl(t,".00")}function hK(e){const t=e?wa(Number(e)/100).format("0.0%"):"";return jl(t,".0")}function pK(e){const t=e?wa(e).format("0.00a"):"";return jl(t,".00")}function jd(e){const t=e?wa(e).format("0.0 b"):"";return jl(t,".0")}function jl(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const gK=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:dK,fData:jd,fNumber:fK,fPercent:hK,fShortenNumber:pK},Symbol.toStringTag,{value:"Module"})),i2=({fileRejections:e})=>e.length?y.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>W(t.palette.error.main,.08),borderColor:t=>W(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=Fd(t);return y.jsxs(P.Box,{sx:{my:1},children:[y.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?jd(i):""]}),r.map(o=>y.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,mK=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?y.jsx(h0,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=Fd(i),u=typeof i=="string";return e?y.jsxs(P.Stack,{component:gr.div,...fo().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&y.jsx(P.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>W(l.palette.common.white,.72),bgcolor:l=>W(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>W(l.palette.grey[900],.72)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:16})})]},o):y.jsxs(P.Stack,{component:gr.div,...fo().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{file:i}),y.jsxs(P.Stack,{flexGrow:1,sx:{minWidth:0},children:[y.jsx(P.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:a}),y.jsx(P.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":jd(s)})]}),r&&y.jsx(P.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:y.jsx(Rt,{icon:"eva:close-fill"})})]},o)})}):null,vK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(P.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:y.jsx(vl,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},yK=$t("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${W(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),bK=({header:e,description:t,sx:r,...n})=>y.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[y.jsx(Yq,{sx:{width:220}}),y.jsxs("div",{children:[e||y.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||y.jsxs(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",y.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),o2=({disabled:e,multiple:t=!1,error:r,helperText:n,file:i,onDelete:o,files:a,thumbnail:s,onUpload:u,onRemove:l,onRemoveAll:c,sx:f,dropZoneProps:d,placeholderProps:h,placeholderAlt:m,...p})=>{const{getRootProps:v,getInputProps:x,isDragActive:b,isDragReject:C,fileRejections:E}=Il({multiple:t,disabled:e,...p}),w=!!i&&!t,_=a&&t&&a.length>0,O=C||!!r;return y.jsxs(P.Box,{sx:{width:1,position:"relative",...f},children:[y.jsxs(yK,{...v(),sx:{...b&&{opacity:.72},...O&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"},...d},children:[y.jsx("input",{...x()}),m?y.jsx(P.Stack,{sx:{...w&&{opacity:0}},children:m}):y.jsx(bK,{sx:{...w&&{opacity:0}},header:h==null?void 0:h.title,description:h==null?void 0:h.description}),w&&y.jsx(vK,{file:i})]}),n&&n,y.jsx(i2,{fileRejections:E}),w&&o&&y.jsx(P.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:k=>W(k.palette.common.white,.8),bgcolor:k=>W(k.palette.grey[900],.72),"&:hover":{bgcolor:k=>W(k.palette.grey[900],.48)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:18})}),_&&y.jsxs(y.Fragment,{children:[y.jsx(P.Box,{sx:{my:3},children:y.jsx(mK,{files:a,thumbnail:s,onRemove:l})}),y.jsxs(P.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[c&&y.jsx(P.Button,{color:"inherit",variant:"outlined",size:"small",onClick:c,children:"Remove all"}),u&&y.jsx(P.Button,{size:"small",variant:"contained",onClick:u,children:"Upload files"})]})]})]})},a2=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,u]=cc(),[l,c]=g.useState(o),f=d=>{d||c(""),e(d)};return y.jsxs(y.Fragment,{children:[y.jsxs(P.Stack,{position:"relative",width:1,children:[y.jsx(o2,{...a,onDrop:d=>{if(d.length>0){u(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var p;const m=((p=h.result)==null?void 0:p.toString())||"";c(m)}),h.readAsDataURL(d[0])}}}),l&&y.jsx(P.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:y.jsx(P.IconButton,{color:"primary",onClick:u,children:y.jsx(Rt,{icon:"ic:round-crop"})})})]}),y.jsx(cb,{open:s,onClose:u,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function xK(e,t){const{watch:r,setValue:n}=yt.useFormContext(),[i,o]=g.useState(t),a=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),o(void 0);return}n(e,d),o(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...a,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),o(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=a.filter(m=>m!==d);n(e,h)},file:i}}const wK=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:u}=yt.useFormContext(),{uploadFile:l,file:c}=xK(e);return y.jsx(yt.Controller,{name:e,control:u,rules:t,render:({fieldState:{error:f}})=>y.jsx(a2,{accept:{"image/*":[]},file:c,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&y.jsx(P.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:r}),aspect:n,label:i,size:o,image:a,...s})})},Ll=(e,t=!0)=>{const{pathname:r}=Fr.useLocation(),n=e?!!Fr.matchPath({path:e,end:!0},r):!1,i=e?!!Fr.matchPath({path:e,end:!1},r):!1;return{active:t?i:n,isExternalLink:e.includes("http")}},Rl={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},lo={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},CK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":l,...a&&{flexDirection:"row",padding:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),SK=$t(P.ListItemIcon)({marginRight:0,marginBottom:4,width:lo.NAV_ITEM_MINI,height:lo.NAV_ITEM_MINI}),EK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),s2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(CK,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&y.jsx(SK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...n&&{fontWeight:"fontWeightMedium"},...h&&{fontSize:14,width:"auto",textAlign:"left"}}}}),d&&y.jsx(P.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(Rt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!c&&y.jsx(Rt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:m}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:m}))()});s2.displayName="NavItem";const TK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(l2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),l2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(s2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(EK,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(TK,{data:e.children,depth:t})})]})},_K=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(l2,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(P.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),OK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>y.jsx(_K,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),kK=g.memo(OK),MK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:i})=>{const o=i.palette.mode==="light",a=r!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM,...a&&{height:Rl.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:Rl.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),u2=$t(P.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:lo.NAV_ITEM,height:lo.NAV_ITEM}),PK=$t("span",{shouldForwardProp:e=>e!=="active"})(({active:e,theme:t})=>({width:4,height:4,borderRadius:"50%",backgroundColor:t.palette.text.disabled,transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter}),...e&&{transform:"scale(2)",backgroundColor:t.palette.primary.main}})),AK=$t(P.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),DK=({item:e,depth:t,open:r,active:n,isExternalLink:i,...o})=>{const{title:a,path:s,icon:u,info:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(MK,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[u&&y.jsx(u2,{children:u}),h&&y.jsx(u2,{children:y.jsx(PK,{active:n&&h})}),y.jsx(P.ListItemText,{primary:a,secondary:d&&y.jsx(P.Tooltip,{title:d,placement:"top-start",children:y.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&y.jsx(P.Box,{component:"span",sx:{lineHeight:0},children:l}),!!c&&y.jsx(Rt,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):c?m:y.jsx(P.Link,{component:Fr.Link,to:s,underline:"none",children:m}))()},$K=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(c2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),c2=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=Fr.useLocation(),{active:i,isExternalLink:o}=Ll(e.path),[a,s]=g.useState(i);g.useEffect(()=>{i||l()},[n]);const u=()=>{s(!a)},l=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(DK,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:u}),r&&y.jsx(P.Collapse,{in:a,unmountOnExit:!0,children:y.jsx($K,{data:e.children,depth:t})})]})},IK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return y.jsxs(P.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(AK,{disableSticky:!0,children:n.subheader}),n.items.map(o=>y.jsx(c2,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),FK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":l,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),jK=$t(P.ListItemIcon)({marginRight:8,flexShrink:0,width:lo.NAV_ITEM_HORIZONTAL,height:lo.NAV_ITEM_HORIZONTAL}),LK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),f2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,info:c,children:f,disabled:d,caption:h}=e,m=t!==1,p=y.jsxs(FK,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&y.jsx(jK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),c&&y.jsx(P.Box,{component:"span",sx:{ml:1,lineHeight:0},children:c}),h&&y.jsx(P.Tooltip,{title:h,arrow:!0,children:y.jsx(P.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(Rt,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(Rt,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:p}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:p}))()});f2.displayName="NavItem";const RK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(d2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),d2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(f2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(LK,{open:s,anchorEl:n.current,anchorOrigin:t===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:t===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(RK,{data:e.children,depth:t})})]})},BK=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(d2,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),NK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...e2,...t},...r,children:e.map(n=>y.jsx(BK,{items:n.items},n.subheader))}),zK=g.memo(NK),VK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(vl,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},WK=$t("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${W(e.palette.grey[500],.32)}`})),HK=$t("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),UK=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:u,isDragReject:l,fileRejections:c}=Il({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return y.jsxs(y.Fragment,{children:[y.jsxs(WK,{...a(),sx:{...u&&{opacity:.72},...d&&{borderColor:"error.light",...f&&{bgcolor:"error.lighter"}},...r&&{opacity:.48,pointerEvents:"none"},...f&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[y.jsx("input",{...s()}),f&&y.jsx(VK,{file:t}),y.jsxs(HK,{className:"placeholder",sx:{"&:hover":{opacity:.72},...f&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>W(h.palette.grey[900],.64)},...d&&{color:"error.main",bgcolor:"error.lighter"}},children:[y.jsx(Rt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),y.jsx(P.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,y.jsx(i2,{fileRejections:c})]})},YK=$t("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),GK=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:u}=Il({disabled:r,...i}),l=u||t;return y.jsxs(YK,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[y.jsx("input",{...a()}),e||y.jsx(Rt,{icon:"eva:cloud-upload-fill",width:28})]})},qK=()=>{const[e,t]=g.useState(!1),[r,n]=g.useState(document.activeElement);return g.useEffect(()=>{const i=a=>n(a.target),o=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",o,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",o)}},[]),{activeElement:r,listenersReady:e}};var KK=jc;function XK(e,t){return KK(e,t)}var ZK=XK;const QK=xn(ZK),JK=(e,t)=>QK(e,t),eX=e=>{const t=g.useRef();return JK(e,t.current)||(t.current=e),t.current},tX=(e,t)=>{g.useEffect(e,t.map(eX))},rX=()=>{const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current};function nX(e){const[t,r]=g.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const iX=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),o=`${e.replace(t,"")}.${t}`;i.href=n,i.download=o,i.click()}},Symbol.toStringTag,{value:"Module"}));function oX(e){return id({},e)}var h2=1440,aX=2520,Ld=43200,sX=86400;function lX(e,t,r){var n,i;U(2,arguments);var o=xr(),a=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:ul;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Yi(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=id(oX(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=Y(t),c=Y(e)):(l=Y(e),c=Y(t));var f=iy(c,l),d=(Gi(c)-Gi(l))/1e3,h=Math.round((f-d)/60),m;if(h<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,u):f<10?a.formatDistance("lessThanXSeconds",10,u):f<20?a.formatDistance("lessThanXSeconds",20,u):f<40?a.formatDistance("halfAMinute",0,u):f<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):h===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<h2){var p=Math.round(h/60);return a.formatDistance("aboutXHours",p,u)}else{if(h<aX)return a.formatDistance("xDays",1,u);if(h<Ld){var v=Math.round(h/h2);return a.formatDistance("xDays",v,u)}else if(h<sX)return m=Math.round(h/Ld),a.formatDistance("aboutXMonths",m,u)}if(m=Zf(c,l),m<12){var x=Math.round(h/Ld);return a.formatDistance("xMonths",x,u)}else{var b=m%12,C=Math.floor(m/12);return b<3?a.formatDistance("aboutXYears",C,u):b<9?a.formatDistance("overXYears",C,u):a.formatDistance("almostXYears",C+1,u)}}function uX(e,t){return U(1,arguments),lX(e,Date.now(),t)}function cX(e){U(1,arguments);var t=Y(e),r=t.getTime();return r}function fX(e,t){const r=t||"dd/MM/yyyy";return e?rd(new Date(e),r):null}function dX(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?rd(new Date(e),r):null}function hX(e){return e?cX(new Date(e)):null}function pX(e){return e?uX(new Date(e),{addSuffix:!0}):null}const gX=Object.freeze(Object.defineProperty({__proto__:null,fDate:fX,fDateTime:dX,fTimestamp:hX,fToNow:pX},Symbol.toStringTag,{value:"Module"}));function mX(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const vX=Object.freeze(Object.defineProperty({__proto__:null,getRoot:mX},Symbol.toStringTag,{value:"Module"})),yX=e=>function(r){return y.jsx(g.Suspense,{fallback:y.jsx(P.CircularProgress,{}),children:y.jsx(e,{...r})})},bX=Object.freeze(Object.defineProperty({__proto__:null,default:z3},Symbol.toStringTag,{value:"Module"}));z.Autocomplete=gc,z.AutocompleteField=NG,z.ColorPickerField=zG,z.ColorPickerInput=J1,z.Common=MY,z.CustomAvatar=Hy,z.CustomAvatarGroup=Uy,z.DataGrid=DY,z.DatePicker=VG,z.DateRangePicker=WG,z.DateTimePicker=HG,z.Delayed=$Y,z.DialogAnimate=V3,z.FabButtonAnimate=p0,z.Field=Pb,z.Form=UG,z.IconButtonAnimate=g0,z.Iconify=Rt,z.Image=vl,z.ImageCropModal=cb,z.Label=fb,z.MaskedInput=_d,z.MaskedInputField=YG,z.MenuPopover=MG,z.MotionContainer=LS,z.MotionLazyContainer=BS,z.MotionViewport=jS,z.NavSectionHorizontal=zK,z.NavSectionMini=kK,z.NavSectionVertical=IK,z.PasswordField=GG,z.Portal=PG,z.Scrollbar=BG,z.Switch=qG,z.TRANSITION=Bd,z.TextAnimate=W3,z.ThemeProvider=Wy,z.TimePicker=KG,z.Upload=o2,z.UploadAvatar=UK,z.UploadBox=GK,z.UploadWithCrop=a2,z.UploadWithCropField=wK,z.cssStyles=uK,z.file=iX,z.formatNumber=gK,z.formatTime=gX,z.loadable=yX,z.routes=vX,z.useActiveElement=qK,z.useActiveLink=Ll,z.useDeepCompareEffect=tX,z.useIsMounting=rX,z.useResponsive=yg,z.useTabs=nX,z.useToggle=cc,z.varBgColor=O2,z.varBgKenburns=k2,z.varBgPan=M2,z.varBounce=E2,z.varContainer=Ea,z.varFade=fo,z.varFlip=w2,z.varHover=_2,z.varPath=y2,z.varRotate=T2,z.varScale=S2,z.varSlide=C2,z.varTranEnter=Pe,z.varTranExit=$e,z.varTranHover=b2,z.varZoom=x2,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|